]> sourceware.org Git - newlib-cygwin.git/blame - Makefile.in
libiberty:
[newlib-cygwin.git] / Makefile.in
CommitLineData
bba02726
NN
1
2# Makefile.in is generated from Makefile.tpl by 'autogen Makefile.def'.
a3acbf46
RH
3#
4# Makefile for directory with subdirs to build.
25688b70 5# Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
a675b75a 6# 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation
a3acbf46
RH
7#
8# This file is free software; you can redistribute it and/or modify
9# it under the terms of the GNU General Public License as published by
10# the Free Software Foundation; either version 2 of the License, or
11# (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU General Public License for more details.
17#
18# You should have received a copy of the GNU General Public License
19# along with this program; if not, write to the Free Software
20# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21#
22
ff0592df
NN
23# -------------------------------
24# Standard Autoconf-set variables
25# -------------------------------
c002f9d3 26VPATH=@srcdir@
c002f9d3
NN
27
28build_alias=@build_alias@
7e9ae190 29build=@build@
c002f9d3 30host_alias=@host_alias@
7e9ae190 31host=@host@
c002f9d3 32target_alias=@target_alias@
7e9ae190 33target=@target@
c002f9d3 34
ff0592df 35program_transform_name = @program_transform_name@
25bab762
NN
36
37prefix = @prefix@
38exec_prefix = @exec_prefix@
39
ff0592df
NN
40srcdir = @srcdir@
41
25bab762
NN
42bindir = @bindir@
43sbindir = @sbindir@
44libexecdir = @libexecdir@
45datadir = @datadir@
46sysconfdir = @sysconfdir@
47sharedstatedir = @sharedstatedir@
48localstatedir = @localstatedir@
49libdir = @libdir@
50includedir = @includedir@
51oldincludedir = @oldincludedir@
52infodir = @infodir@
53mandir = @mandir@
a3acbf46
RH
54man1dir = $(mandir)/man1
55man2dir = $(mandir)/man2
56man3dir = $(mandir)/man3
57man4dir = $(mandir)/man4
58man5dir = $(mandir)/man5
59man6dir = $(mandir)/man6
60man7dir = $(mandir)/man7
61man8dir = $(mandir)/man8
62man9dir = $(mandir)/man9
6acce4b8 63
282c0e47
NN
64INSTALL = @INSTALL@
65INSTALL_PROGRAM = @INSTALL_PROGRAM@
66INSTALL_SCRIPT = @INSTALL_SCRIPT@
67INSTALL_DATA = @INSTALL_DATA@
21ff191e
PB
68LN = @LN@
69LN_S = @LN_S@
a3acbf46 70
ff0592df
NN
71# -------------------------------------------------
72# Miscellaneous non-standard autoconf-set variables
73# -------------------------------------------------
a3acbf46 74
ff0592df
NN
75# The gcc driver likes to know the arguments it was configured with.
76TOPLEVEL_CONFIGURE_ARGUMENTS=@TOPLEVEL_CONFIGURE_ARGUMENTS@
a3acbf46 77
ff0592df
NN
78tooldir = @tooldir@
79build_tooldir = @build_tooldir@
a3acbf46 80
ff0592df 81GDB_NLM_DEPS =
a3acbf46 82
ff0592df
NN
83# This is the name of the environment variable used for the path to
84# the libraries.
85RPATH_ENVVAR = @RPATH_ENVVAR@
a3acbf46 86
ff0592df
NN
87# This is set by configure to REALLY_SET_LIB_PATH if --enable-shared
88# was used.
89SET_LIB_PATH = @SET_LIB_PATH@
a3acbf46 90
ff0592df
NN
91# configure.in sets SET_LIB_PATH to this if --enable-shared was used.
92# Some platforms don't like blank entries, so we remove duplicate,
93# leading and trailing colons.
94REALLY_SET_LIB_PATH = \
9ab64c4a 95 @SET_GCC_LIB_PATH@ \
ff0592df 96 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH):$(TARGET_LIB_PATH):$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
a3acbf46 97
ff0592df 98# This is the list of directories to be built for the build system.
04d55823 99BUILD_CONFIGDIRS = libiberty
ff0592df
NN
100# Build programs are put under this directory.
101BUILD_SUBDIR = @build_subdir@
102# This is set by the configure script to the arguments to use when configuring
103# directories built for the build system.
104BUILD_CONFIGARGS = @build_configargs@
2cb47d68
PB
105
106# This is the list of variables to export in the environment when
107# configuring any subdirectory. It must also be exported whenever
108# recursing into a build directory in case that directory's Makefile
109# re-runs configure.
110BASE_EXPORTS = \
111 FLEX="$(FLEX)"; export FLEX; \
112 LEX="$(LEX)"; export LEX; \
113 BISON="$(BISON)"; export BISON; \
114 YACC="$(YACC)"; export YACC; \
115 M4="$(M4)"; export M4; \
116 MAKEINFO="$(MAKEINFO)"; export MAKEINFO;
117
a675b75a 118# This is the list of variables to export in the environment when
2cb47d68 119# configuring subdirectories for the build system.
a675b75a 120BUILD_EXPORTS = \
2cb47d68 121 $(BASE_EXPORTS) \
a675b75a
DD
122 AR="$(AR_FOR_BUILD)"; export AR; \
123 AS="$(AS_FOR_BUILD)"; export AS; \
124 CC="$(CC_FOR_BUILD)"; export CC; \
125 CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \
126 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
127 CXX="$(CXX_FOR_BUILD)"; export CXX; \
128 CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \
129 GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \
130 GFORTRAN="$(GFORTRAN_FOR_BUILD)"; export GFORTRAN; \
131 DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \
132 LD="$(LD_FOR_BUILD)"; export LD; \
133 LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \
134 NM="$(NM_FOR_BUILD)"; export NM; \
135 RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \
136 WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES;
ff0592df
NN
137
138# This is the list of directories to built for the host system.
139SUBDIRS = @configdirs@
140# This is set by the configure script to the arguments to use when configuring
141# directories built for the host system.
142HOST_CONFIGARGS = @host_configargs@
7fc2ca22
PB
143# Host programs are put under this directory, which is . except if building
144# with srcdir=..
145HOST_SUBDIR = @host_subdir@
a675b75a 146# This is the list of variables to export in the environment when
2cb47d68 147# configuring subdirectories for the host system.
a675b75a 148HOST_EXPORTS = \
2cb47d68 149 $(BASE_EXPORTS) \
a675b75a
DD
150 CC="$(CC)"; export CC; \
151 CFLAGS="$(CFLAGS)"; export CFLAGS; \
152 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
153 CXX="$(CXX)"; export CXX; \
154 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
155 AR="$(AR)"; export AR; \
156 AS="$(AS)"; export AS; \
157 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
158 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
159 LD="$(LD)"; export LD; \
160 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
161 NM="$(NM)"; export NM; \
162 RANLIB="$(RANLIB)"; export RANLIB; \
163 WINDRES="$(WINDRES)"; export WINDRES; \
164 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
ead1b9ae 165 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
a675b75a
DD
166 TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
167 GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \
9ab64c4a
L
168 GMPINC="$(HOST_GMPINC)"; export GMPINC; \
169 SET_GCC_LIB_PATH_CMD="@SET_GCC_LIB_PATH@"; export SET_GCC_LIB_PATH_CMD; \
170 @SET_GCC_LIB_PATH@
a675b75a
DD
171
172# Similar, for later GCC stages.
173STAGE_HOST_EXPORTS = \
63673a5b 174 $(HOST_EXPORTS) \
7fc2ca22
PB
175 CC="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/xgcc$(exeext) \
176 -B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/"; export CC; \
177 CC_FOR_BUILD="$(STAGE_CC_WRAPPER) \
178 $$r/$(HOST_SUBDIR)/prev-gcc/xgcc$(exeext) \
179 -B$$r/$(HOST_SUBDIR)/prev-gcc/ \
180 -B$(build_tooldir)/bin/"; export CC_FOR_BUILD;
ff0592df
NN
181
182# This is set by the configure script to the list of directories which
183# should be built using the target tools.
184TARGET_CONFIGDIRS = @target_configdirs@
185# Target libraries are put under this directory:
186TARGET_SUBDIR = @target_subdir@
187# This is set by the configure script to the arguments to use when configuring
188# directories built for the target.
189TARGET_CONFIGARGS = @target_configargs@
a675b75a 190# This is the list of variables to export in the environment when
2cb47d68 191# configuring subdirectories for the host system.
a675b75a 192BASE_TARGET_EXPORTS = \
2cb47d68 193 $(BASE_EXPORTS) \
a675b75a
DD
194 AR="$(AR_FOR_TARGET)"; export AR; \
195 AS="$(AS_FOR_TARGET)"; export AS; \
196 CC="$(CC_FOR_TARGET)"; export CC; \
197 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
198 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
ec724188 199 CPPFLAGS="$(CPPFLAGS_FOR_TARGET)"; export CPPFLAGS; \
a675b75a
DD
200 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
201 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
202 GFORTRAN="$(GFORTRAN_FOR_TARGET)"; export GFORTRAN; \
203 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
204 LD="$(LD_FOR_TARGET)"; export LD; \
205 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
206 NM="$(NM_FOR_TARGET)"; export NM; \
207 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
9ab64c4a
L
208 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
209 SET_GCC_LIB_PATH_CMD="@SET_GCC_LIB_PATH@"; export SET_GCC_LIB_PATH_CMD; \
210 @SET_GCC_LIB_PATH@
a675b75a
DD
211
212RAW_CXX_TARGET_EXPORTS = \
213 $(BASE_TARGET_EXPORTS) \
214 CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \
215 CXX="$(RAW_CXX_FOR_TARGET)"; export CXX;
216
217NORMAL_TARGET_EXPORTS = \
218 $(BASE_TARGET_EXPORTS) \
219 CXX="$(CXX_FOR_TARGET)"; export CXX;
ff0592df 220
cb2333e8
DD
221# Where to find GMP
222HOST_GMPLIBS = @gmplibs@
223HOST_GMPINC = @gmpinc@
224
ff0592df
NN
225# ----------------------------------------------
226# Programs producing files for the BUILD machine
227# ----------------------------------------------
228
229SHELL = @config_shell@
230
231# pwd command to use. Allow user to override default by setting PWDCMD in
232# the environment to account for automounters. The make variable must not
233# be called PWDCMD, otherwise the value set here is passed to make
234# subprocesses and overrides the setting from the user's environment.
5230d454
L
235# Don't use PWD since it is a common shell environment variable and we
236# don't want to corrupt it.
237PWD_COMMAND = $${PWDCMD-pwd}
ff0592df
NN
238
239# compilers to use to create programs which must be run in the build
240# environment.
241CC_FOR_BUILD = @CC_FOR_BUILD@
e9ea9dec 242CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
ff0592df
NN
243
244CXX_FOR_BUILD = $(CXX)
245
246# Special variables passed down in EXTRA_GCC_FLAGS. They are defined
247# here so that they can be overridden by Makefile fragments.
ff0592df
NN
248BUILD_PREFIX = @BUILD_PREFIX@
249BUILD_PREFIX_1 = @BUILD_PREFIX_1@
a3acbf46 250
99df82b9
PB
251# Flags to pass to stage2 and later makes. They are defined
252# here so that they can be overridden by Makefile fragments.
253BOOT_CFLAGS= -g -O2
254
2cb47d68 255CONFIGURED_BISON = @CONFIGURED_BISON@
6a19fd82
PB
256BISON = `if [ -f $$r/$(BUILD_SUBDIR)/bison/tests/bison ] ; then \
257 echo $$r/$(BUILD_SUBDIR)/bison/tests/bison ; \
a3acbf46 258 else \
2cb47d68 259 echo ${CONFIGURED_BISON} ; \
a3acbf46
RH
260 fi`
261
2cb47d68 262CONFIGURED_YACC = @CONFIGURED_YACC@
6a19fd82
PB
263YACC = `if [ -f $$r/$(BUILD_SUBDIR)/bison/tests/bison ] ; then \
264 echo $$r/$(BUILD_SUBDIR)/bison/tests/bison -y ; \
265 elif [ -f $$r/$(BUILD_SUBDIR)/byacc/byacc ] ; then \
266 echo $$r/$(BUILD_SUBDIR)/byacc/byacc ; \
a3acbf46 267 else \
2cb47d68 268 echo ${CONFIGURED_YACC} ; \
a3acbf46
RH
269 fi`
270
2cb47d68 271CONFIGURED_FLEX = @CONFIGURED_FLEX@
6a19fd82
PB
272FLEX = `if [ -f $$r/$(BUILD_SUBDIR)/flex/flex ] ; \
273 then echo $$r/$(BUILD_SUBDIR)/flex/flex ; \
2cb47d68 274 else echo ${CONFIGURED_FLEX} ; fi`
a3acbf46 275
2cb47d68 276CONFIGURED_LEX = @CONFIGURED_LEX@
6a19fd82
PB
277LEX = `if [ -f $$r/$(BUILD_SUBDIR)/flex/flex ] ; \
278 then echo $$r/$(BUILD_SUBDIR)/flex/flex ; \
2cb47d68
PB
279 else echo ${CONFIGURED_LEX} ; fi`
280
281CONFIGURED_M4 = @CONFIGURED_M4@
6a19fd82
PB
282M4 = `if [ -f $$r/$(BUILD_SUBDIR)/m4/m4 ] ; \
283 then echo $$r/$(BUILD_SUBDIR)/m4/m4 ; \
2cb47d68 284 else echo ${CONFIGURED_M4} ; fi`
a3acbf46 285
37e8e528 286# For an installed makeinfo, we require it to be from texinfo 4.2 or
2cb47d68
PB
287# higher, else we use the "missing" dummy. We also pass the subdirectory
288# makeinfo even if only the Makefile is there, because Texinfo builds its
289# manual when made, and it requires its own version.
290CONFIGURED_MAKEINFO = @CONFIGURED_MAKEINFO@
6a19fd82
PB
291MAKEINFO = `if [ -f $$r/$(BUILD_SUBDIR)/texinfo/makeinfo/Makefile ] ; \
292 then echo $$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo ; \
2cb47d68 293 else if (${CONFIGURED_MAKEINFO} --version \
37e8e528 294 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[2-9]|[5-9])') >/dev/null 2>&1; \
2cb47d68 295 then echo ${CONFIGURED_MAKEINFO}; else echo $$s/missing makeinfo; fi; fi`
a3acbf46
RH
296
297# This just becomes part of the MAKEINFO definition passed down to
298# sub-makes. It lets flags be given on the command line while still
299# using the makeinfo from the object tree.
8997bae8
DD
300# (Default to avoid splitting info files by setting the threshold high.)
301MAKEINFOFLAGS = --split-size=5000000
a3acbf46 302
7fc2ca22
PB
303# FIXME: expect may become a build tool?
304EXPECT = `if [ -f $$r/$(HOST_SUBDIR)/expect/expect ] ; \
305 then echo $$r/$(HOST_SUBDIR)/expect/expect ; \
a3acbf46
RH
306 else echo expect ; fi`
307
308RUNTEST = `if [ -f $$s/dejagnu/runtest ] ; \
309 then echo $$s/dejagnu/runtest ; \
310 else echo runtest ; fi`
311
ff0592df
NN
312# ---------------------------------------------
313# Programs producing files for the HOST machine
314# ---------------------------------------------
a3acbf46 315
ff0592df
NN
316# This is the list of directories that may be needed in RPATH_ENVVAR
317# so that programs built for the host machine work.
7fc2ca22 318HOST_LIB_PATH = $$r/$(HOST_SUBDIR)/bfd:$$r/$(HOST_SUBDIR)/opcodes
a3acbf46 319
ff0592df 320AS = @AS@
a3acbf46 321
ff0592df
NN
322AR = @AR@
323AR_FLAGS = rc
a3acbf46 324
ff0592df
NN
325CC = @CC@
326CFLAGS = @CFLAGS@
327LIBCFLAGS = $(CFLAGS)
a3acbf46 328
ff0592df
NN
329CXX = @CXX@
330CXXFLAGS = @CXXFLAGS@
331LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
f66d1936 332
ff0592df 333DLLTOOL = @DLLTOOL@
a3acbf46 334
ff0592df 335NM = @NM@
43bdb69a 336
ff0592df
NN
337LD = @LD@
338LDFLAGS =
43bdb69a 339
ff0592df 340RANLIB = @RANLIB@
a3acbf46 341
ff0592df 342WINDRES = @WINDRES@
a3acbf46 343
ff0592df
NN
344PICFLAG =
345
346# -----------------------------------------------
347# Programs producing files for the TARGET machine
348# -----------------------------------------------
bb19e2ea
AO
349
350# This is the list of directories that may be needed in RPATH_ENVVAR
351# so that prorgams built for the target machine work.
cb2333e8 352TARGET_LIB_PATH = $$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs:$$r/$(TARGET_SUBDIR)/libmudflap/.libs
bb19e2ea 353
426ce14a 354FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
a3acbf46 355
ff0592df 356AR_FOR_TARGET=@AR_FOR_TARGET@
ef76efc6 357CONFIGURED_AR_FOR_TARGET=@CONFIGURED_AR_FOR_TARGET@
ff0592df 358USUAL_AR_FOR_TARGET = ` \
7fc2ca22
PB
359 if [ -f $$r/$(HOST_SUBDIR)/binutils/ar ] ; then \
360 echo $$r/$(HOST_SUBDIR)/binutils/ar ; \
ff0592df 361 else \
7e9ae190 362 if [ '$(host)' = '$(target)' ] ; then \
ff0592df
NN
363 echo $(AR); \
364 else \
ef76efc6 365 echo $(CONFIGURED_AR_FOR_TARGET) ; \
ff0592df
NN
366 fi; \
367 fi`
a3acbf46 368
712e2a32 369AS_FOR_TARGET=@AS_FOR_TARGET@
ef76efc6 370CONFIGURED_AS_FOR_TARGET=@CONFIGURED_AS_FOR_TARGET@
712e2a32 371USUAL_AS_FOR_TARGET = ` \
7fc2ca22
PB
372 if [ -f $$r/$(HOST_SUBDIR)/gas/as-new ] ; then \
373 echo $$r/$(HOST_SUBDIR)/gas/as-new ; \
374 elif [ -f $$r/$(HOST_SUBDIR)/gcc/xgcc ]; then \
41476ab0 375 $(CC_FOR_TARGET) -print-prog-name=as ; \
a3acbf46 376 else \
7e9ae190 377 if [ '$(host)' = '$(target)' ] ; then \
a3acbf46
RH
378 echo $(AS); \
379 else \
ef76efc6 380 echo $(CONFIGURED_AS_FOR_TARGET) ; \
a3acbf46
RH
381 fi; \
382 fi`
383
ff0592df
NN
384CC_FOR_TARGET = @CC_FOR_TARGET@
385# During gcc bootstrap, if we use some random cc for stage1 then
386# CFLAGS will be just -g. We want to ensure that TARGET libraries
387# (which we know are built with gcc) are built with optimizations so
388# prepend -O2 when setting CFLAGS_FOR_TARGET.
389CFLAGS_FOR_TARGET = -O2 $(CFLAGS)
390# If GCC_FOR_TARGET is not overriden on the command line, then this
391# variable is passed down to the gcc Makefile, where it is used to
392# build libgcc2.a. We define it here so that it can itself be
393# overridden on the command line.
394GCC_FOR_TARGET=@GCC_FOR_TARGET@
7fc2ca22
PB
395USUAL_GCC_FOR_TARGET = $(STAGE_CC_WRAPPER) \
396 $$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/ $(FLAGS_FOR_TARGET)
ff0592df
NN
397LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
398
399CXX_FOR_TARGET = @CXX_FOR_TARGET@
400RAW_CXX_FOR_TARGET = @RAW_CXX_FOR_TARGET@
401CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
402RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
403CXXFLAGS_FOR_TARGET = $(CXXFLAGS)
404LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
a3acbf46 405
712e2a32 406DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@
ef76efc6 407CONFIGURED_DLLTOOL_FOR_TARGET=@CONFIGURED_DLLTOOL_FOR_TARGET@
712e2a32 408USUAL_DLLTOOL_FOR_TARGET = ` \
7fc2ca22
PB
409 if [ -f $$r/$(HOST_SUBDIR)/binutils/dlltool ] ; then \
410 echo $$r/$(HOST_SUBDIR)/binutils/dlltool ; \
a3acbf46 411 else \
7e9ae190 412 if [ '$(host)' = '$(target)' ] ; then \
a3acbf46
RH
413 echo $(DLLTOOL); \
414 else \
ef76efc6 415 echo $(CONFIGURED_DLLTOOL_FOR_TARGET) ; \
a3acbf46
RH
416 fi; \
417 fi`
418
ff0592df 419GCJ_FOR_TARGET = @GCJ_FOR_TARGET@
cb2333e8 420GFORTRAN_FOR_TARGET = @GFORTRAN_FOR_TARGET@
ff0592df
NN
421
422LD_FOR_TARGET=@LD_FOR_TARGET@
ef76efc6 423CONFIGURED_LD_FOR_TARGET=@CONFIGURED_LD_FOR_TARGET@
ff0592df 424USUAL_LD_FOR_TARGET = ` \
7fc2ca22
PB
425 if [ -f $$r/$(HOST_SUBDIR)/ld/ld-new ] ; then \
426 echo $$r/$(HOST_SUBDIR)/ld/ld-new ; \
427 elif [ -f $$r/$(HOST_SUBDIR)/gcc/xgcc ]; then \
ff0592df 428 $(CC_FOR_TARGET) -print-prog-name=ld ; \
a3acbf46 429 else \
7e9ae190 430 if [ '$(host)' = '$(target)' ] ; then \
ff0592df 431 echo $(LD); \
a3acbf46 432 else \
ef76efc6 433 echo $(CONFIGURED_LD_FOR_TARGET) ; \
a3acbf46
RH
434 fi; \
435 fi`
436
ff0592df
NN
437LDFLAGS_FOR_TARGET =
438
439NM_FOR_TARGET=@NM_FOR_TARGET@
ef76efc6 440CONFIGURED_NM_FOR_TARGET=@CONFIGURED_NM_FOR_TARGET@
ff0592df 441USUAL_NM_FOR_TARGET = ` \
7fc2ca22
PB
442 if [ -f $$r/$(HOST_SUBDIR)/binutils/nm-new ] ; then \
443 echo $$r/$(HOST_SUBDIR)/binutils/nm-new ; \
444 elif [ -f $$r/$(HOST_SUBDIR)/gcc/xgcc ]; then \
ff0592df 445 $(CC_FOR_TARGET) -print-prog-name=nm ; \
a3acbf46 446 else \
7e9ae190 447 if [ '$(host)' = '$(target)' ] ; then \
ff0592df 448 echo $(NM); \
a3acbf46 449 else \
ef76efc6 450 echo $(CONFIGURED_NM_FOR_TARGET) ; \
a3acbf46
RH
451 fi; \
452 fi`
453
712e2a32 454RANLIB_FOR_TARGET=@RANLIB_FOR_TARGET@
ef76efc6 455CONFIGURED_RANLIB_FOR_TARGET=@CONFIGURED_RANLIB_FOR_TARGET@
712e2a32 456USUAL_RANLIB_FOR_TARGET = ` \
7fc2ca22
PB
457 if [ -f $$r/$(HOST_SUBDIR)/binutils/ranlib ] ; then \
458 echo $$r/$(HOST_SUBDIR)/binutils/ranlib ; \
a3acbf46 459 else \
7e9ae190 460 if [ '$(host)' = '$(target)' ] ; then \
4a309826
AO
461 if [ x'$(RANLIB)' != x ]; then \
462 echo $(RANLIB); \
463 else \
464 echo ranlib; \
465 fi; \
a3acbf46 466 else \
ef76efc6 467 echo $(CONFIGURED_RANLIB_FOR_TARGET) ; \
a3acbf46
RH
468 fi; \
469 fi`
470
ff0592df 471WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@
ef76efc6 472CONFIGURED_WINDRES_FOR_TARGET=@CONFIGURED_WINDRES_FOR_TARGET@
ff0592df 473USUAL_WINDRES_FOR_TARGET = ` \
7fc2ca22
PB
474 if [ -f $$r/$(HOST_SUBDIR)/binutils/windres ] ; then \
475 echo $$r/$(HOST_SUBDIR)/binutils/windres ; \
a3acbf46 476 else \
7e9ae190 477 if [ '$(host)' = '$(target)' ] ; then \
ff0592df 478 echo $(WINDRES); \
a3acbf46 479 else \
ef76efc6 480 echo $(CONFIGURED_WINDRES_FOR_TARGET) ; \
a3acbf46
RH
481 fi; \
482 fi`
483
ff0592df
NN
484PICFLAG_FOR_TARGET =
485
486# ------------------------------------
487# Miscellaneous targets and flag lists
488# ------------------------------------
489
a3acbf46
RH
490# The first rule in the file had better be this one. Don't put any above it.
491# This lives here to allow makefile fragments to contain dependencies.
e1666221 492@default_target@:
a3acbf46 493
a3acbf46 494#### host and target specific makefile fragments come in here.
bafecfd6
NN
495@target_makefile_frag@
496@alphaieee_frag@
497@ospace_frag@
498@host_makefile_frag@
a3acbf46
RH
499###
500
501# Flags to pass down to all sub-makes.
a3acbf46 502BASE_FLAGS_TO_PASS = \
8ccfe116 503 "DESTDIR=$(DESTDIR)" \
a3acbf46 504 "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
a3acbf46 505 "TARGET_SUBDIR=$(TARGET_SUBDIR)" \
a3acbf46
RH
506 "bindir=$(bindir)" \
507 "datadir=$(datadir)" \
508 "exec_prefix=$(exec_prefix)" \
509 "includedir=$(includedir)" \
510 "infodir=$(infodir)" \
511 "libdir=$(libdir)" \
512 "libexecdir=$(libexecdir)" \
513 "lispdir=$(lispdir)" \
514 "localstatedir=$(localstatedir)" \
515 "mandir=$(mandir)" \
516 "oldincludedir=$(oldincludedir)" \
517 "prefix=$(prefix)" \
518 "sbindir=$(sbindir)" \
519 "sharedstatedir=$(sharedstatedir)" \
520 "sysconfdir=$(sysconfdir)" \
521 "tooldir=$(tooldir)" \
2ff6d12f 522 "build_tooldir=$(build_tooldir)" \
47cd8327
NN
523 "target_alias=$(target_alias)" \
524 "BISON=$(BISON)" \
525 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
526 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
527 "EXPECT=$(EXPECT)" \
2cb47d68 528 "FLEX=$(FLEX)" \
47cd8327
NN
529 "INSTALL=$(INSTALL)" \
530 "INSTALL_DATA=$(INSTALL_DATA)" \
531 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
532 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
533 "LEX=$(LEX)" \
534 "M4=$(M4)" \
535 "MAKE=$(MAKE)" \
536 "RUNTEST=$(RUNTEST)" \
537 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
538 "SHELL=$(SHELL)" \
539 "YACC=$(YACC)" \
540 "AR_FLAGS=$(AR_FLAGS)" \
541 "CFLAGS=$(CFLAGS)" \
542 "CXXFLAGS=$(CXXFLAGS)" \
543 "LDFLAGS=$(LDFLAGS)" \
544 "LIBCFLAGS=$(LIBCFLAGS)" \
545 "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
546 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
547 "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
548 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
549 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
ec724188 550 "CPPFLAGS_FOR_TARGET=$(CPPFLAGS_FOR_TARGET)" \
47cd8327
NN
551 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
552 "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
553 "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
554 "GCJ_FOR_TARGET=$(GCJ_FOR_TARGET)" \
cb2333e8 555 "GFORTRAN_FOR_TARGET=$(GFORTRAN_FOR_TARGET)" \
47cd8327
NN
556 "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
557 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
558 "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
559 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
560 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
561 "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
08bf2e60 562 "CONFIG_SHELL=$(SHELL)" \
47cd8327 563 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)"
a3acbf46 564
68b3c65a
AO
565# For any flags above that may contain shell code that varies from one
566# target library to another. When doing recursive invocations of the
567# top-level Makefile, we don't want the outer make to evaluate them,
568# so we pass these variables down unchanged. They must not contain
569# single nor double quotes.
570RECURSE_FLAGS = \
c5e4bb70
NN
571 CXX_FOR_TARGET='$(CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \
572 RAW_CXX_FOR_TARGET='$(RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \
68b3c65a 573
21ff191e
PB
574RECURSE_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS)
575
a3acbf46
RH
576# Flags to pass down to most sub-makes, in which we're building with
577# the host environment.
a3acbf46
RH
578EXTRA_HOST_FLAGS = \
579 'AR=$(AR)' \
580 'AS=$(AS)' \
581 'CC=$(CC)' \
582 'CXX=$(CXX)' \
583 'DLLTOOL=$(DLLTOOL)' \
584 'LD=$(LD)' \
585 'NM=$(NM)' \
76ab491a 586 'RANLIB=$(RANLIB)' \
a3acbf46
RH
587 'WINDRES=$(WINDRES)'
588
589FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
590
591# Flags that are concerned with the location of the X11 include files
592# and library files
593#
594# NOTE: until the top-level is getting the values via autoconf, it only
595# causes problems to have this top-level Makefile overriding the autoconf-set
596# values in child directories. Only variables that don't conflict with
597# autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now.
598#
599X11_FLAGS_TO_PASS = \
600 'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \
601 'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)'
602
603# Flags to pass down to makes which are built with the target environment.
604# The double $ decreases the length of the command line; the variables
605# are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them.
a3acbf46
RH
606EXTRA_TARGET_FLAGS = \
607 'AR=$$(AR_FOR_TARGET)' \
608 'AS=$$(AS_FOR_TARGET)' \
609 'CC=$$(CC_FOR_TARGET)' \
610 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
611 'CXX=$$(CXX_FOR_TARGET)' \
612 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
613 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
614 'LD=$$(LD_FOR_TARGET)' \
615 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
616 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
617 'NM=$$(NM_FOR_TARGET)' \
618 'RANLIB=$$(RANLIB_FOR_TARGET)' \
619 'WINDRES=$$(WINDRES_FOR_TARGET)'
620
621TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
622
623# Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
624# unfortunately needs the native compiler and the target ar and
625# ranlib.
626# If any variables are added here, they must be added to do-*, below.
657b58f4 627# The BUILD_* variables are a special case, which are used for the gcc
a3acbf46
RH
628# cross-building scheme.
629EXTRA_GCC_FLAGS = \
89d7acf3
DD
630 'BUILD_PREFIX=$(BUILD_PREFIX)' \
631 'BUILD_PREFIX_1=$(BUILD_PREFIX_1)' \
a3acbf46 632 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
f3d61cc7 633 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
07bc9e41
NN
634 "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
635 "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
636 "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
637 "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
638 "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
639 "`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
640 "`echo 'STAGE1_CFLAGS=$(STAGE1_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
641 "`echo 'BOOT_CFLAGS=$(BOOT_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
642 "`echo 'BOOT_ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
a3acbf46 643
2286046e 644GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS)
a3acbf46 645
9b520963 646.PHONY: configure-host
d5eec917 647configure-host: \
9b520963
NN
648 maybe-configure-ash \
649 maybe-configure-autoconf \
650 maybe-configure-automake \
651 maybe-configure-bash \
652 maybe-configure-bfd \
653 maybe-configure-opcodes \
654 maybe-configure-binutils \
655 maybe-configure-bison \
656 maybe-configure-byacc \
657 maybe-configure-bzip2 \
658 maybe-configure-dejagnu \
659 maybe-configure-diff \
660 maybe-configure-dosutils \
661 maybe-configure-etc \
662 maybe-configure-fastjar \
663 maybe-configure-fileutils \
664 maybe-configure-findutils \
665 maybe-configure-find \
5350aa8b 666 maybe-configure-fixincludes \
9b520963
NN
667 maybe-configure-flex \
668 maybe-configure-gas \
d5eec917 669 maybe-configure-gcc \
9b520963
NN
670 maybe-configure-gawk \
671 maybe-configure-gettext \
672 maybe-configure-gnuserv \
673 maybe-configure-gprof \
674 maybe-configure-gzip \
675 maybe-configure-hello \
676 maybe-configure-indent \
677 maybe-configure-intl \
678 maybe-configure-tcl \
679 maybe-configure-itcl \
680 maybe-configure-ld \
c580d516 681 maybe-configure-libcpp \
9b520963
NN
682 maybe-configure-libgui \
683 maybe-configure-libiberty \
684 maybe-configure-libtool \
685 maybe-configure-m4 \
686 maybe-configure-make \
687 maybe-configure-mmalloc \
688 maybe-configure-patch \
689 maybe-configure-perl \
690 maybe-configure-prms \
691 maybe-configure-rcs \
692 maybe-configure-readline \
693 maybe-configure-release \
694 maybe-configure-recode \
695 maybe-configure-sed \
696 maybe-configure-send-pr \
697 maybe-configure-shellutils \
698 maybe-configure-sid \
699 maybe-configure-sim \
700 maybe-configure-tar \
701 maybe-configure-texinfo \
702 maybe-configure-textutils \
703 maybe-configure-time \
704 maybe-configure-uudecode \
705 maybe-configure-wdiff \
706 maybe-configure-zip \
707 maybe-configure-zlib \
708 maybe-configure-gdb \
709 maybe-configure-expect \
710 maybe-configure-guile \
711 maybe-configure-tk \
9b520963 712 maybe-configure-libtermcap \
7fc2ca22
PB
713 maybe-configure-utils \
714 maybe-configure-gnattools
9b520963
NN
715.PHONY: configure-target
716configure-target: \
717 maybe-configure-target-libstdc++-v3 \
cb2333e8 718 maybe-configure-target-libmudflap \
9b520963 719 maybe-configure-target-newlib \
cb2333e8 720 maybe-configure-target-libgfortran \
9b520963
NN
721 maybe-configure-target-libobjc \
722 maybe-configure-target-libtermcap \
723 maybe-configure-target-winsup \
724 maybe-configure-target-libgloss \
725 maybe-configure-target-libiberty \
726 maybe-configure-target-gperf \
727 maybe-configure-target-examples \
728 maybe-configure-target-libffi \
729 maybe-configure-target-libjava \
730 maybe-configure-target-zlib \
731 maybe-configure-target-boehm-gc \
732 maybe-configure-target-qthreads \
d832a288
DD
733 maybe-configure-target-rda \
734 maybe-configure-target-libada
a3acbf46 735
e1666221
PB
736# The target built for a native non-bootstrap build.
737.PHONY: all
6a19fd82 738all: unstage all-host all-target stage
2cb47d68
PB
739
740.PHONY: all-build
741all-build: \
742 maybe-all-build-libiberty \
2cb47d68
PB
743 maybe-all-build-bison \
744 maybe-all-build-byacc \
745 maybe-all-build-flex \
746 maybe-all-build-m4 \
607d4caf
PB
747 maybe-all-build-texinfo \
748 maybe-all-build-fixincludes
9b520963 749.PHONY: all-host
d5eec917 750all-host: \
9b520963
NN
751 maybe-all-ash \
752 maybe-all-autoconf \
753 maybe-all-automake \
754 maybe-all-bash \
755 maybe-all-bfd \
756 maybe-all-opcodes \
757 maybe-all-binutils \
758 maybe-all-bison \
759 maybe-all-byacc \
760 maybe-all-bzip2 \
761 maybe-all-dejagnu \
762 maybe-all-diff \
763 maybe-all-dosutils \
764 maybe-all-etc \
765 maybe-all-fastjar \
766 maybe-all-fileutils \
767 maybe-all-findutils \
768 maybe-all-find \
5350aa8b 769 maybe-all-fixincludes \
9b520963
NN
770 maybe-all-flex \
771 maybe-all-gas \
d5eec917 772 maybe-all-gcc \
9b520963
NN
773 maybe-all-gawk \
774 maybe-all-gettext \
775 maybe-all-gnuserv \
776 maybe-all-gprof \
777 maybe-all-gzip \
778 maybe-all-hello \
779 maybe-all-indent \
780 maybe-all-intl \
781 maybe-all-tcl \
782 maybe-all-itcl \
783 maybe-all-ld \
c580d516 784 maybe-all-libcpp \
9b520963
NN
785 maybe-all-libgui \
786 maybe-all-libiberty \
787 maybe-all-libtool \
788 maybe-all-m4 \
789 maybe-all-make \
790 maybe-all-mmalloc \
791 maybe-all-patch \
792 maybe-all-perl \
793 maybe-all-prms \
794 maybe-all-rcs \
795 maybe-all-readline \
796 maybe-all-release \
797 maybe-all-recode \
798 maybe-all-sed \
799 maybe-all-send-pr \
800 maybe-all-shellutils \
801 maybe-all-sid \
802 maybe-all-sim \
803 maybe-all-tar \
804 maybe-all-texinfo \
805 maybe-all-textutils \
806 maybe-all-time \
807 maybe-all-uudecode \
808 maybe-all-wdiff \
809 maybe-all-zip \
810 maybe-all-zlib \
811 maybe-all-gdb \
812 maybe-all-expect \
813 maybe-all-guile \
814 maybe-all-tk \
9b520963 815 maybe-all-libtermcap \
7fc2ca22
PB
816 maybe-all-utils \
817 maybe-all-gnattools
9b520963
NN
818.PHONY: all-target
819all-target: \
820 maybe-all-target-libstdc++-v3 \
cb2333e8 821 maybe-all-target-libmudflap \
9b520963 822 maybe-all-target-newlib \
cb2333e8 823 maybe-all-target-libgfortran \
9b520963
NN
824 maybe-all-target-libobjc \
825 maybe-all-target-libtermcap \
826 maybe-all-target-winsup \
827 maybe-all-target-libgloss \
828 maybe-all-target-libiberty \
829 maybe-all-target-gperf \
830 maybe-all-target-examples \
831 maybe-all-target-libffi \
832 maybe-all-target-libjava \
833 maybe-all-target-zlib \
834 maybe-all-target-boehm-gc \
835 maybe-all-target-qthreads \
d832a288
DD
836 maybe-all-target-rda \
837 maybe-all-target-libada
a3acbf46
RH
838
839# Do a target for all the subdirectories. A ``make do-X'' will do a
840# ``make X'' in all subdirectories (because, in general, there is a
841# dependency (below) of X upon do-X, a ``make X'' will also do this,
842# but it may do additional work as well).
d6ebd419 843
657b58f4 844.PHONY: do-info
d5eec917 845do-info: unstage info-host info-target stage
d6ebd419 846
657b58f4 847.PHONY: info-host
d5eec917 848info-host: \
657b58f4
NN
849 maybe-info-ash \
850 maybe-info-autoconf \
851 maybe-info-automake \
852 maybe-info-bash \
853 maybe-info-bfd \
854 maybe-info-opcodes \
855 maybe-info-binutils \
856 maybe-info-bison \
857 maybe-info-byacc \
858 maybe-info-bzip2 \
859 maybe-info-dejagnu \
860 maybe-info-diff \
861 maybe-info-dosutils \
862 maybe-info-etc \
863 maybe-info-fastjar \
864 maybe-info-fileutils \
865 maybe-info-findutils \
866 maybe-info-find \
5350aa8b 867 maybe-info-fixincludes \
657b58f4
NN
868 maybe-info-flex \
869 maybe-info-gas \
d5eec917 870 maybe-info-gcc \
657b58f4
NN
871 maybe-info-gawk \
872 maybe-info-gettext \
873 maybe-info-gnuserv \
874 maybe-info-gprof \
875 maybe-info-gzip \
876 maybe-info-hello \
877 maybe-info-indent \
878 maybe-info-intl \
879 maybe-info-tcl \
880 maybe-info-itcl \
881 maybe-info-ld \
c580d516 882 maybe-info-libcpp \
657b58f4
NN
883 maybe-info-libgui \
884 maybe-info-libiberty \
885 maybe-info-libtool \
886 maybe-info-m4 \
887 maybe-info-make \
888 maybe-info-mmalloc \
889 maybe-info-patch \
890 maybe-info-perl \
891 maybe-info-prms \
892 maybe-info-rcs \
893 maybe-info-readline \
894 maybe-info-release \
895 maybe-info-recode \
896 maybe-info-sed \
897 maybe-info-send-pr \
898 maybe-info-shellutils \
899 maybe-info-sid \
900 maybe-info-sim \
901 maybe-info-tar \
902 maybe-info-texinfo \
903 maybe-info-textutils \
904 maybe-info-time \
905 maybe-info-uudecode \
906 maybe-info-wdiff \
907 maybe-info-zip \
908 maybe-info-zlib \
909 maybe-info-gdb \
910 maybe-info-expect \
911 maybe-info-guile \
912 maybe-info-tk \
657b58f4 913 maybe-info-libtermcap \
7fc2ca22
PB
914 maybe-info-utils \
915 maybe-info-gnattools
a3acbf46 916
657b58f4
NN
917.PHONY: info-target
918info-target: \
919 maybe-info-target-libstdc++-v3 \
cb2333e8 920 maybe-info-target-libmudflap \
657b58f4 921 maybe-info-target-newlib \
cb2333e8 922 maybe-info-target-libgfortran \
657b58f4
NN
923 maybe-info-target-libobjc \
924 maybe-info-target-libtermcap \
925 maybe-info-target-winsup \
926 maybe-info-target-libgloss \
927 maybe-info-target-libiberty \
928 maybe-info-target-gperf \
929 maybe-info-target-examples \
930 maybe-info-target-libffi \
931 maybe-info-target-libjava \
932 maybe-info-target-zlib \
933 maybe-info-target-boehm-gc \
934 maybe-info-target-qthreads \
d832a288
DD
935 maybe-info-target-rda \
936 maybe-info-target-libada
a3acbf46 937
8ec98d6c 938.PHONY: do-dvi
d5eec917 939do-dvi: unstage dvi-host dvi-target stage
657b58f4 940
8ec98d6c 941.PHONY: dvi-host
d5eec917 942dvi-host: \
8ec98d6c
NN
943 maybe-dvi-ash \
944 maybe-dvi-autoconf \
945 maybe-dvi-automake \
946 maybe-dvi-bash \
947 maybe-dvi-bfd \
948 maybe-dvi-opcodes \
949 maybe-dvi-binutils \
950 maybe-dvi-bison \
951 maybe-dvi-byacc \
952 maybe-dvi-bzip2 \
953 maybe-dvi-dejagnu \
954 maybe-dvi-diff \
955 maybe-dvi-dosutils \
956 maybe-dvi-etc \
957 maybe-dvi-fastjar \
958 maybe-dvi-fileutils \
959 maybe-dvi-findutils \
960 maybe-dvi-find \
5350aa8b 961 maybe-dvi-fixincludes \
8ec98d6c
NN
962 maybe-dvi-flex \
963 maybe-dvi-gas \
d5eec917 964 maybe-dvi-gcc \
8ec98d6c
NN
965 maybe-dvi-gawk \
966 maybe-dvi-gettext \
967 maybe-dvi-gnuserv \
968 maybe-dvi-gprof \
969 maybe-dvi-gzip \
970 maybe-dvi-hello \
971 maybe-dvi-indent \
972 maybe-dvi-intl \
973 maybe-dvi-tcl \
974 maybe-dvi-itcl \
975 maybe-dvi-ld \
c580d516 976 maybe-dvi-libcpp \
8ec98d6c
NN
977 maybe-dvi-libgui \
978 maybe-dvi-libiberty \
979 maybe-dvi-libtool \
980 maybe-dvi-m4 \
981 maybe-dvi-make \
982 maybe-dvi-mmalloc \
983 maybe-dvi-patch \
984 maybe-dvi-perl \
985 maybe-dvi-prms \
986 maybe-dvi-rcs \
987 maybe-dvi-readline \
988 maybe-dvi-release \
989 maybe-dvi-recode \
990 maybe-dvi-sed \
991 maybe-dvi-send-pr \
992 maybe-dvi-shellutils \
993 maybe-dvi-sid \
994 maybe-dvi-sim \
995 maybe-dvi-tar \
996 maybe-dvi-texinfo \
997 maybe-dvi-textutils \
998 maybe-dvi-time \
999 maybe-dvi-uudecode \
1000 maybe-dvi-wdiff \
1001 maybe-dvi-zip \
1002 maybe-dvi-zlib \
1003 maybe-dvi-gdb \
1004 maybe-dvi-expect \
1005 maybe-dvi-guile \
1006 maybe-dvi-tk \
8ec98d6c 1007 maybe-dvi-libtermcap \
7fc2ca22
PB
1008 maybe-dvi-utils \
1009 maybe-dvi-gnattools
657b58f4 1010
8ec98d6c
NN
1011.PHONY: dvi-target
1012dvi-target: \
1013 maybe-dvi-target-libstdc++-v3 \
cb2333e8 1014 maybe-dvi-target-libmudflap \
8ec98d6c 1015 maybe-dvi-target-newlib \
cb2333e8 1016 maybe-dvi-target-libgfortran \
8ec98d6c
NN
1017 maybe-dvi-target-libobjc \
1018 maybe-dvi-target-libtermcap \
1019 maybe-dvi-target-winsup \
1020 maybe-dvi-target-libgloss \
1021 maybe-dvi-target-libiberty \
1022 maybe-dvi-target-gperf \
1023 maybe-dvi-target-examples \
1024 maybe-dvi-target-libffi \
1025 maybe-dvi-target-libjava \
1026 maybe-dvi-target-zlib \
1027 maybe-dvi-target-boehm-gc \
1028 maybe-dvi-target-qthreads \
1029 maybe-dvi-target-rda \
1030 maybe-dvi-target-libada
657b58f4 1031
b6fb961f
MS
1032.PHONY: do-html
1033do-html: unstage html-host html-target stage
1034
1035.PHONY: html-host
1036html-host: \
1037 maybe-html-ash \
1038 maybe-html-autoconf \
1039 maybe-html-automake \
1040 maybe-html-bash \
1041 maybe-html-bfd \
1042 maybe-html-opcodes \
1043 maybe-html-binutils \
1044 maybe-html-bison \
1045 maybe-html-byacc \
1046 maybe-html-bzip2 \
1047 maybe-html-dejagnu \
1048 maybe-html-diff \
1049 maybe-html-dosutils \
1050 maybe-html-etc \
1051 maybe-html-fastjar \
1052 maybe-html-fileutils \
1053 maybe-html-findutils \
1054 maybe-html-find \
1055 maybe-html-fixincludes \
1056 maybe-html-flex \
1057 maybe-html-gas \
1058 maybe-html-gcc \
1059 maybe-html-gawk \
1060 maybe-html-gettext \
1061 maybe-html-gnuserv \
1062 maybe-html-gprof \
1063 maybe-html-gzip \
1064 maybe-html-hello \
1065 maybe-html-indent \
1066 maybe-html-intl \
1067 maybe-html-tcl \
1068 maybe-html-itcl \
1069 maybe-html-ld \
1070 maybe-html-libcpp \
1071 maybe-html-libgui \
1072 maybe-html-libiberty \
1073 maybe-html-libtool \
1074 maybe-html-m4 \
1075 maybe-html-make \
1076 maybe-html-mmalloc \
1077 maybe-html-patch \
1078 maybe-html-perl \
1079 maybe-html-prms \
1080 maybe-html-rcs \
1081 maybe-html-readline \
1082 maybe-html-release \
1083 maybe-html-recode \
1084 maybe-html-sed \
1085 maybe-html-send-pr \
1086 maybe-html-shellutils \
1087 maybe-html-sid \
1088 maybe-html-sim \
1089 maybe-html-tar \
1090 maybe-html-texinfo \
1091 maybe-html-textutils \
1092 maybe-html-time \
1093 maybe-html-uudecode \
1094 maybe-html-wdiff \
1095 maybe-html-zip \
1096 maybe-html-zlib \
1097 maybe-html-gdb \
1098 maybe-html-expect \
1099 maybe-html-guile \
1100 maybe-html-tk \
1101 maybe-html-libtermcap \
7fc2ca22
PB
1102 maybe-html-utils \
1103 maybe-html-gnattools
b6fb961f
MS
1104
1105.PHONY: html-target
1106html-target: \
1107 maybe-html-target-libstdc++-v3 \
1108 maybe-html-target-libmudflap \
1109 maybe-html-target-newlib \
1110 maybe-html-target-libgfortran \
1111 maybe-html-target-libobjc \
1112 maybe-html-target-libtermcap \
1113 maybe-html-target-winsup \
1114 maybe-html-target-libgloss \
1115 maybe-html-target-libiberty \
1116 maybe-html-target-gperf \
1117 maybe-html-target-examples \
1118 maybe-html-target-libffi \
1119 maybe-html-target-libjava \
1120 maybe-html-target-zlib \
1121 maybe-html-target-boehm-gc \
1122 maybe-html-target-qthreads \
1123 maybe-html-target-rda \
1124 maybe-html-target-libada
1125
8ec98d6c 1126.PHONY: do-TAGS
d5eec917 1127do-TAGS: unstage TAGS-host TAGS-target stage
657b58f4 1128
8ec98d6c 1129.PHONY: TAGS-host
d5eec917 1130TAGS-host: \
8ec98d6c
NN
1131 maybe-TAGS-ash \
1132 maybe-TAGS-autoconf \
1133 maybe-TAGS-automake \
1134 maybe-TAGS-bash \
1135 maybe-TAGS-bfd \
1136 maybe-TAGS-opcodes \
1137 maybe-TAGS-binutils \
1138 maybe-TAGS-bison \
1139 maybe-TAGS-byacc \
1140 maybe-TAGS-bzip2 \
1141 maybe-TAGS-dejagnu \
1142 maybe-TAGS-diff \
1143 maybe-TAGS-dosutils \
1144 maybe-TAGS-etc \
1145 maybe-TAGS-fastjar \
1146 maybe-TAGS-fileutils \
1147 maybe-TAGS-findutils \
1148 maybe-TAGS-find \
5350aa8b 1149 maybe-TAGS-fixincludes \
8ec98d6c
NN
1150 maybe-TAGS-flex \
1151 maybe-TAGS-gas \
d5eec917 1152 maybe-TAGS-gcc \
8ec98d6c
NN
1153 maybe-TAGS-gawk \
1154 maybe-TAGS-gettext \
1155 maybe-TAGS-gnuserv \
1156 maybe-TAGS-gprof \
1157 maybe-TAGS-gzip \
1158 maybe-TAGS-hello \
1159 maybe-TAGS-indent \
1160 maybe-TAGS-intl \
1161 maybe-TAGS-tcl \
1162 maybe-TAGS-itcl \
1163 maybe-TAGS-ld \
c580d516 1164 maybe-TAGS-libcpp \
8ec98d6c
NN
1165 maybe-TAGS-libgui \
1166 maybe-TAGS-libiberty \
1167 maybe-TAGS-libtool \
1168 maybe-TAGS-m4 \
1169 maybe-TAGS-make \
1170 maybe-TAGS-mmalloc \
1171 maybe-TAGS-patch \
1172 maybe-TAGS-perl \
1173 maybe-TAGS-prms \
1174 maybe-TAGS-rcs \
1175 maybe-TAGS-readline \
1176 maybe-TAGS-release \
1177 maybe-TAGS-recode \
1178 maybe-TAGS-sed \
1179 maybe-TAGS-send-pr \
1180 maybe-TAGS-shellutils \
1181 maybe-TAGS-sid \
1182 maybe-TAGS-sim \
1183 maybe-TAGS-tar \
1184 maybe-TAGS-texinfo \
1185 maybe-TAGS-textutils \
1186 maybe-TAGS-time \
1187 maybe-TAGS-uudecode \
1188 maybe-TAGS-wdiff \
1189 maybe-TAGS-zip \
1190 maybe-TAGS-zlib \
1191 maybe-TAGS-gdb \
1192 maybe-TAGS-expect \
1193 maybe-TAGS-guile \
1194 maybe-TAGS-tk \
8ec98d6c 1195 maybe-TAGS-libtermcap \
7fc2ca22
PB
1196 maybe-TAGS-utils \
1197 maybe-TAGS-gnattools
657b58f4 1198
8ec98d6c
NN
1199.PHONY: TAGS-target
1200TAGS-target: \
1201 maybe-TAGS-target-libstdc++-v3 \
cb2333e8 1202 maybe-TAGS-target-libmudflap \
8ec98d6c 1203 maybe-TAGS-target-newlib \
cb2333e8 1204 maybe-TAGS-target-libgfortran \
8ec98d6c
NN
1205 maybe-TAGS-target-libobjc \
1206 maybe-TAGS-target-libtermcap \
1207 maybe-TAGS-target-winsup \
1208 maybe-TAGS-target-libgloss \
1209 maybe-TAGS-target-libiberty \
1210 maybe-TAGS-target-gperf \
1211 maybe-TAGS-target-examples \
1212 maybe-TAGS-target-libffi \
1213 maybe-TAGS-target-libjava \
1214 maybe-TAGS-target-zlib \
1215 maybe-TAGS-target-boehm-gc \
1216 maybe-TAGS-target-qthreads \
1217 maybe-TAGS-target-rda \
1218 maybe-TAGS-target-libada
d832a288 1219
8ec98d6c 1220.PHONY: do-install-info
d5eec917 1221do-install-info: unstage install-info-host install-info-target stage
d832a288 1222
8ec98d6c 1223.PHONY: install-info-host
d5eec917 1224install-info-host: \
8ec98d6c
NN
1225 maybe-install-info-ash \
1226 maybe-install-info-autoconf \
1227 maybe-install-info-automake \
1228 maybe-install-info-bash \
1229 maybe-install-info-bfd \
1230 maybe-install-info-opcodes \
1231 maybe-install-info-binutils \
1232 maybe-install-info-bison \
1233 maybe-install-info-byacc \
1234 maybe-install-info-bzip2 \
1235 maybe-install-info-dejagnu \
1236 maybe-install-info-diff \
1237 maybe-install-info-dosutils \
1238 maybe-install-info-etc \
1239 maybe-install-info-fastjar \
1240 maybe-install-info-fileutils \
1241 maybe-install-info-findutils \
1242 maybe-install-info-find \
5350aa8b 1243 maybe-install-info-fixincludes \
8ec98d6c
NN
1244 maybe-install-info-flex \
1245 maybe-install-info-gas \
d5eec917 1246 maybe-install-info-gcc \
8ec98d6c
NN
1247 maybe-install-info-gawk \
1248 maybe-install-info-gettext \
1249 maybe-install-info-gnuserv \
1250 maybe-install-info-gprof \
1251 maybe-install-info-gzip \
1252 maybe-install-info-hello \
1253 maybe-install-info-indent \
1254 maybe-install-info-intl \
1255 maybe-install-info-tcl \
1256 maybe-install-info-itcl \
1257 maybe-install-info-ld \
c580d516 1258 maybe-install-info-libcpp \
8ec98d6c
NN
1259 maybe-install-info-libgui \
1260 maybe-install-info-libiberty \
1261 maybe-install-info-libtool \
1262 maybe-install-info-m4 \
1263 maybe-install-info-make \
1264 maybe-install-info-mmalloc \
1265 maybe-install-info-patch \
1266 maybe-install-info-perl \
1267 maybe-install-info-prms \
1268 maybe-install-info-rcs \
1269 maybe-install-info-readline \
1270 maybe-install-info-release \
1271 maybe-install-info-recode \
1272 maybe-install-info-sed \
1273 maybe-install-info-send-pr \
1274 maybe-install-info-shellutils \
1275 maybe-install-info-sid \
1276 maybe-install-info-sim \
1277 maybe-install-info-tar \
1278 maybe-install-info-texinfo \
1279 maybe-install-info-textutils \
1280 maybe-install-info-time \
1281 maybe-install-info-uudecode \
1282 maybe-install-info-wdiff \
1283 maybe-install-info-zip \
1284 maybe-install-info-zlib \
1285 maybe-install-info-gdb \
1286 maybe-install-info-expect \
1287 maybe-install-info-guile \
1288 maybe-install-info-tk \
8ec98d6c 1289 maybe-install-info-libtermcap \
7fc2ca22
PB
1290 maybe-install-info-utils \
1291 maybe-install-info-gnattools
d832a288 1292
8ec98d6c
NN
1293.PHONY: install-info-target
1294install-info-target: \
1295 maybe-install-info-target-libstdc++-v3 \
cb2333e8 1296 maybe-install-info-target-libmudflap \
8ec98d6c 1297 maybe-install-info-target-newlib \
cb2333e8 1298 maybe-install-info-target-libgfortran \
8ec98d6c
NN
1299 maybe-install-info-target-libobjc \
1300 maybe-install-info-target-libtermcap \
1301 maybe-install-info-target-winsup \
1302 maybe-install-info-target-libgloss \
1303 maybe-install-info-target-libiberty \
1304 maybe-install-info-target-gperf \
1305 maybe-install-info-target-examples \
1306 maybe-install-info-target-libffi \
1307 maybe-install-info-target-libjava \
1308 maybe-install-info-target-zlib \
1309 maybe-install-info-target-boehm-gc \
1310 maybe-install-info-target-qthreads \
1311 maybe-install-info-target-rda \
1312 maybe-install-info-target-libada
657b58f4
NN
1313
1314.PHONY: do-installcheck
d5eec917 1315do-installcheck: unstage installcheck-host installcheck-target stage
657b58f4
NN
1316
1317.PHONY: installcheck-host
d5eec917 1318installcheck-host: \
657b58f4
NN
1319 maybe-installcheck-ash \
1320 maybe-installcheck-autoconf \
1321 maybe-installcheck-automake \
1322 maybe-installcheck-bash \
1323 maybe-installcheck-bfd \
1324 maybe-installcheck-opcodes \
1325 maybe-installcheck-binutils \
1326 maybe-installcheck-bison \
1327 maybe-installcheck-byacc \
1328 maybe-installcheck-bzip2 \
1329 maybe-installcheck-dejagnu \
1330 maybe-installcheck-diff \
1331 maybe-installcheck-dosutils \
1332 maybe-installcheck-etc \
1333 maybe-installcheck-fastjar \
1334 maybe-installcheck-fileutils \
1335 maybe-installcheck-findutils \
1336 maybe-installcheck-find \
5350aa8b 1337 maybe-installcheck-fixincludes \
657b58f4
NN
1338 maybe-installcheck-flex \
1339 maybe-installcheck-gas \
d5eec917 1340 maybe-installcheck-gcc \
657b58f4
NN
1341 maybe-installcheck-gawk \
1342 maybe-installcheck-gettext \
1343 maybe-installcheck-gnuserv \
1344 maybe-installcheck-gprof \
1345 maybe-installcheck-gzip \
1346 maybe-installcheck-hello \
1347 maybe-installcheck-indent \
1348 maybe-installcheck-intl \
1349 maybe-installcheck-tcl \
1350 maybe-installcheck-itcl \
1351 maybe-installcheck-ld \
c580d516 1352 maybe-installcheck-libcpp \
657b58f4
NN
1353 maybe-installcheck-libgui \
1354 maybe-installcheck-libiberty \
1355 maybe-installcheck-libtool \
1356 maybe-installcheck-m4 \
1357 maybe-installcheck-make \
1358 maybe-installcheck-mmalloc \
1359 maybe-installcheck-patch \
1360 maybe-installcheck-perl \
1361 maybe-installcheck-prms \
1362 maybe-installcheck-rcs \
1363 maybe-installcheck-readline \
1364 maybe-installcheck-release \
1365 maybe-installcheck-recode \
1366 maybe-installcheck-sed \
1367 maybe-installcheck-send-pr \
1368 maybe-installcheck-shellutils \
1369 maybe-installcheck-sid \
1370 maybe-installcheck-sim \
1371 maybe-installcheck-tar \
1372 maybe-installcheck-texinfo \
1373 maybe-installcheck-textutils \
1374 maybe-installcheck-time \
1375 maybe-installcheck-uudecode \
1376 maybe-installcheck-wdiff \
1377 maybe-installcheck-zip \
1378 maybe-installcheck-zlib \
1379 maybe-installcheck-gdb \
1380 maybe-installcheck-expect \
1381 maybe-installcheck-guile \
1382 maybe-installcheck-tk \
657b58f4 1383 maybe-installcheck-libtermcap \
7fc2ca22
PB
1384 maybe-installcheck-utils \
1385 maybe-installcheck-gnattools
657b58f4
NN
1386
1387.PHONY: installcheck-target
1388installcheck-target: \
1389 maybe-installcheck-target-libstdc++-v3 \
cb2333e8 1390 maybe-installcheck-target-libmudflap \
657b58f4 1391 maybe-installcheck-target-newlib \
cb2333e8 1392 maybe-installcheck-target-libgfortran \
657b58f4
NN
1393 maybe-installcheck-target-libobjc \
1394 maybe-installcheck-target-libtermcap \
1395 maybe-installcheck-target-winsup \
1396 maybe-installcheck-target-libgloss \
1397 maybe-installcheck-target-libiberty \
1398 maybe-installcheck-target-gperf \
1399 maybe-installcheck-target-examples \
1400 maybe-installcheck-target-libffi \
1401 maybe-installcheck-target-libjava \
1402 maybe-installcheck-target-zlib \
1403 maybe-installcheck-target-boehm-gc \
1404 maybe-installcheck-target-qthreads \
d832a288
DD
1405 maybe-installcheck-target-rda \
1406 maybe-installcheck-target-libada
657b58f4 1407
8ec98d6c 1408.PHONY: do-mostlyclean
d5eec917 1409do-mostlyclean: unstage mostlyclean-host mostlyclean-target stage
657b58f4 1410
8ec98d6c 1411.PHONY: mostlyclean-host
d5eec917 1412mostlyclean-host: \
8ec98d6c
NN
1413 maybe-mostlyclean-ash \
1414 maybe-mostlyclean-autoconf \
1415 maybe-mostlyclean-automake \
1416 maybe-mostlyclean-bash \
1417 maybe-mostlyclean-bfd \
1418 maybe-mostlyclean-opcodes \
1419 maybe-mostlyclean-binutils \
1420 maybe-mostlyclean-bison \
1421 maybe-mostlyclean-byacc \
1422 maybe-mostlyclean-bzip2 \
1423 maybe-mostlyclean-dejagnu \
1424 maybe-mostlyclean-diff \
1425 maybe-mostlyclean-dosutils \
1426 maybe-mostlyclean-etc \
1427 maybe-mostlyclean-fastjar \
1428 maybe-mostlyclean-fileutils \
1429 maybe-mostlyclean-findutils \
1430 maybe-mostlyclean-find \
5350aa8b 1431 maybe-mostlyclean-fixincludes \
8ec98d6c
NN
1432 maybe-mostlyclean-flex \
1433 maybe-mostlyclean-gas \
d5eec917 1434 maybe-mostlyclean-gcc \
8ec98d6c
NN
1435 maybe-mostlyclean-gawk \
1436 maybe-mostlyclean-gettext \
1437 maybe-mostlyclean-gnuserv \
1438 maybe-mostlyclean-gprof \
1439 maybe-mostlyclean-gzip \
1440 maybe-mostlyclean-hello \
1441 maybe-mostlyclean-indent \
1442 maybe-mostlyclean-intl \
1443 maybe-mostlyclean-tcl \
1444 maybe-mostlyclean-itcl \
1445 maybe-mostlyclean-ld \
c580d516 1446 maybe-mostlyclean-libcpp \
8ec98d6c
NN
1447 maybe-mostlyclean-libgui \
1448 maybe-mostlyclean-libiberty \
1449 maybe-mostlyclean-libtool \
1450 maybe-mostlyclean-m4 \
1451 maybe-mostlyclean-make \
1452 maybe-mostlyclean-mmalloc \
1453 maybe-mostlyclean-patch \
1454 maybe-mostlyclean-perl \
1455 maybe-mostlyclean-prms \
1456 maybe-mostlyclean-rcs \
1457 maybe-mostlyclean-readline \
1458 maybe-mostlyclean-release \
1459 maybe-mostlyclean-recode \
1460 maybe-mostlyclean-sed \
1461 maybe-mostlyclean-send-pr \
1462 maybe-mostlyclean-shellutils \
1463 maybe-mostlyclean-sid \
1464 maybe-mostlyclean-sim \
1465 maybe-mostlyclean-tar \
1466 maybe-mostlyclean-texinfo \
1467 maybe-mostlyclean-textutils \
1468 maybe-mostlyclean-time \
1469 maybe-mostlyclean-uudecode \
1470 maybe-mostlyclean-wdiff \
1471 maybe-mostlyclean-zip \
1472 maybe-mostlyclean-zlib \
1473 maybe-mostlyclean-gdb \
1474 maybe-mostlyclean-expect \
1475 maybe-mostlyclean-guile \
1476 maybe-mostlyclean-tk \
8ec98d6c 1477 maybe-mostlyclean-libtermcap \
7fc2ca22
PB
1478 maybe-mostlyclean-utils \
1479 maybe-mostlyclean-gnattools
657b58f4 1480
8ec98d6c
NN
1481.PHONY: mostlyclean-target
1482mostlyclean-target: \
1483 maybe-mostlyclean-target-libstdc++-v3 \
cb2333e8 1484 maybe-mostlyclean-target-libmudflap \
8ec98d6c 1485 maybe-mostlyclean-target-newlib \
cb2333e8 1486 maybe-mostlyclean-target-libgfortran \
8ec98d6c
NN
1487 maybe-mostlyclean-target-libobjc \
1488 maybe-mostlyclean-target-libtermcap \
1489 maybe-mostlyclean-target-winsup \
1490 maybe-mostlyclean-target-libgloss \
1491 maybe-mostlyclean-target-libiberty \
1492 maybe-mostlyclean-target-gperf \
1493 maybe-mostlyclean-target-examples \
1494 maybe-mostlyclean-target-libffi \
1495 maybe-mostlyclean-target-libjava \
1496 maybe-mostlyclean-target-zlib \
1497 maybe-mostlyclean-target-boehm-gc \
1498 maybe-mostlyclean-target-qthreads \
1499 maybe-mostlyclean-target-rda \
1500 maybe-mostlyclean-target-libada
657b58f4 1501
8ec98d6c 1502.PHONY: do-clean
d5eec917 1503do-clean: unstage clean-host clean-target stage
657b58f4 1504
8ec98d6c 1505.PHONY: clean-host
d5eec917 1506clean-host: \
8ec98d6c
NN
1507 maybe-clean-ash \
1508 maybe-clean-autoconf \
1509 maybe-clean-automake \
1510 maybe-clean-bash \
1511 maybe-clean-bfd \
1512 maybe-clean-opcodes \
1513 maybe-clean-binutils \
1514 maybe-clean-bison \
1515 maybe-clean-byacc \
1516 maybe-clean-bzip2 \
1517 maybe-clean-dejagnu \
1518 maybe-clean-diff \
1519 maybe-clean-dosutils \
1520 maybe-clean-etc \
1521 maybe-clean-fastjar \
1522 maybe-clean-fileutils \
1523 maybe-clean-findutils \
1524 maybe-clean-find \
5350aa8b 1525 maybe-clean-fixincludes \
8ec98d6c
NN
1526 maybe-clean-flex \
1527 maybe-clean-gas \
d5eec917 1528 maybe-clean-gcc \
8ec98d6c
NN
1529 maybe-clean-gawk \
1530 maybe-clean-gettext \
1531 maybe-clean-gnuserv \
1532 maybe-clean-gprof \
1533 maybe-clean-gzip \
1534 maybe-clean-hello \
1535 maybe-clean-indent \
1536 maybe-clean-intl \
1537 maybe-clean-tcl \
1538 maybe-clean-itcl \
1539 maybe-clean-ld \
c580d516 1540 maybe-clean-libcpp \
8ec98d6c
NN
1541 maybe-clean-libgui \
1542 maybe-clean-libiberty \
1543 maybe-clean-libtool \
1544 maybe-clean-m4 \
1545 maybe-clean-make \
1546 maybe-clean-mmalloc \
1547 maybe-clean-patch \
1548 maybe-clean-perl \
1549 maybe-clean-prms \
1550 maybe-clean-rcs \
1551 maybe-clean-readline \
1552 maybe-clean-release \
1553 maybe-clean-recode \
1554 maybe-clean-sed \
1555 maybe-clean-send-pr \
1556 maybe-clean-shellutils \
1557 maybe-clean-sid \
1558 maybe-clean-sim \
1559 maybe-clean-tar \
1560 maybe-clean-texinfo \
1561 maybe-clean-textutils \
1562 maybe-clean-time \
1563 maybe-clean-uudecode \
1564 maybe-clean-wdiff \
1565 maybe-clean-zip \
1566 maybe-clean-zlib \
1567 maybe-clean-gdb \
1568 maybe-clean-expect \
1569 maybe-clean-guile \
1570 maybe-clean-tk \
8ec98d6c 1571 maybe-clean-libtermcap \
7fc2ca22
PB
1572 maybe-clean-utils \
1573 maybe-clean-gnattools
657b58f4 1574
8ec98d6c
NN
1575.PHONY: clean-target
1576clean-target: \
1577 maybe-clean-target-libstdc++-v3 \
cb2333e8 1578 maybe-clean-target-libmudflap \
8ec98d6c 1579 maybe-clean-target-newlib \
cb2333e8 1580 maybe-clean-target-libgfortran \
8ec98d6c
NN
1581 maybe-clean-target-libobjc \
1582 maybe-clean-target-libtermcap \
1583 maybe-clean-target-winsup \
1584 maybe-clean-target-libgloss \
1585 maybe-clean-target-libiberty \
1586 maybe-clean-target-gperf \
1587 maybe-clean-target-examples \
1588 maybe-clean-target-libffi \
1589 maybe-clean-target-libjava \
1590 maybe-clean-target-zlib \
1591 maybe-clean-target-boehm-gc \
1592 maybe-clean-target-qthreads \
1593 maybe-clean-target-rda \
1594 maybe-clean-target-libada
657b58f4 1595
8ec98d6c 1596.PHONY: do-distclean
d5eec917 1597do-distclean: unstage distclean-host distclean-target stage
657b58f4 1598
8ec98d6c 1599.PHONY: distclean-host
d5eec917 1600distclean-host: \
8ec98d6c
NN
1601 maybe-distclean-ash \
1602 maybe-distclean-autoconf \
1603 maybe-distclean-automake \
1604 maybe-distclean-bash \
1605 maybe-distclean-bfd \
1606 maybe-distclean-opcodes \
1607 maybe-distclean-binutils \
1608 maybe-distclean-bison \
1609 maybe-distclean-byacc \
1610 maybe-distclean-bzip2 \
1611 maybe-distclean-dejagnu \
1612 maybe-distclean-diff \
1613 maybe-distclean-dosutils \
1614 maybe-distclean-etc \
1615 maybe-distclean-fastjar \
1616 maybe-distclean-fileutils \
1617 maybe-distclean-findutils \
1618 maybe-distclean-find \
5350aa8b 1619 maybe-distclean-fixincludes \
8ec98d6c
NN
1620 maybe-distclean-flex \
1621 maybe-distclean-gas \
d5eec917 1622 maybe-distclean-gcc \
8ec98d6c
NN
1623 maybe-distclean-gawk \
1624 maybe-distclean-gettext \
1625 maybe-distclean-gnuserv \
1626 maybe-distclean-gprof \
1627 maybe-distclean-gzip \
1628 maybe-distclean-hello \
1629 maybe-distclean-indent \
1630 maybe-distclean-intl \
1631 maybe-distclean-tcl \
1632 maybe-distclean-itcl \
1633 maybe-distclean-ld \
c580d516 1634 maybe-distclean-libcpp \
8ec98d6c
NN
1635 maybe-distclean-libgui \
1636 maybe-distclean-libiberty \
1637 maybe-distclean-libtool \
1638 maybe-distclean-m4 \
1639 maybe-distclean-make \
1640 maybe-distclean-mmalloc \
1641 maybe-distclean-patch \
1642 maybe-distclean-perl \
1643 maybe-distclean-prms \
1644 maybe-distclean-rcs \
1645 maybe-distclean-readline \
1646 maybe-distclean-release \
1647 maybe-distclean-recode \
1648 maybe-distclean-sed \
1649 maybe-distclean-send-pr \
1650 maybe-distclean-shellutils \
1651 maybe-distclean-sid \
1652 maybe-distclean-sim \
1653 maybe-distclean-tar \
1654 maybe-distclean-texinfo \
1655 maybe-distclean-textutils \
1656 maybe-distclean-time \
1657 maybe-distclean-uudecode \
1658 maybe-distclean-wdiff \
1659 maybe-distclean-zip \
1660 maybe-distclean-zlib \
1661 maybe-distclean-gdb \
1662 maybe-distclean-expect \
1663 maybe-distclean-guile \
1664 maybe-distclean-tk \
8ec98d6c 1665 maybe-distclean-libtermcap \
7fc2ca22
PB
1666 maybe-distclean-utils \
1667 maybe-distclean-gnattools
657b58f4 1668
8ec98d6c
NN
1669.PHONY: distclean-target
1670distclean-target: \
1671 maybe-distclean-target-libstdc++-v3 \
cb2333e8 1672 maybe-distclean-target-libmudflap \
8ec98d6c 1673 maybe-distclean-target-newlib \
cb2333e8 1674 maybe-distclean-target-libgfortran \
8ec98d6c
NN
1675 maybe-distclean-target-libobjc \
1676 maybe-distclean-target-libtermcap \
1677 maybe-distclean-target-winsup \
1678 maybe-distclean-target-libgloss \
1679 maybe-distclean-target-libiberty \
1680 maybe-distclean-target-gperf \
1681 maybe-distclean-target-examples \
1682 maybe-distclean-target-libffi \
1683 maybe-distclean-target-libjava \
1684 maybe-distclean-target-zlib \
1685 maybe-distclean-target-boehm-gc \
1686 maybe-distclean-target-qthreads \
1687 maybe-distclean-target-rda \
1688 maybe-distclean-target-libada
657b58f4 1689
8ec98d6c 1690.PHONY: do-maintainer-clean
d5eec917 1691do-maintainer-clean: unstage maintainer-clean-host maintainer-clean-target stage
657b58f4 1692
8ec98d6c 1693.PHONY: maintainer-clean-host
d5eec917 1694maintainer-clean-host: \
8ec98d6c
NN
1695 maybe-maintainer-clean-ash \
1696 maybe-maintainer-clean-autoconf \
1697 maybe-maintainer-clean-automake \
1698 maybe-maintainer-clean-bash \
1699 maybe-maintainer-clean-bfd \
1700 maybe-maintainer-clean-opcodes \
1701 maybe-maintainer-clean-binutils \
1702 maybe-maintainer-clean-bison \
1703 maybe-maintainer-clean-byacc \
1704 maybe-maintainer-clean-bzip2 \
1705 maybe-maintainer-clean-dejagnu \
1706 maybe-maintainer-clean-diff \
1707 maybe-maintainer-clean-dosutils \
1708 maybe-maintainer-clean-etc \
1709 maybe-maintainer-clean-fastjar \
1710 maybe-maintainer-clean-fileutils \
1711 maybe-maintainer-clean-findutils \
1712 maybe-maintainer-clean-find \
5350aa8b 1713 maybe-maintainer-clean-fixincludes \
8ec98d6c
NN
1714 maybe-maintainer-clean-flex \
1715 maybe-maintainer-clean-gas \
d5eec917 1716 maybe-maintainer-clean-gcc \
8ec98d6c
NN
1717 maybe-maintainer-clean-gawk \
1718 maybe-maintainer-clean-gettext \
1719 maybe-maintainer-clean-gnuserv \
1720 maybe-maintainer-clean-gprof \
1721 maybe-maintainer-clean-gzip \
1722 maybe-maintainer-clean-hello \
1723 maybe-maintainer-clean-indent \
1724 maybe-maintainer-clean-intl \
1725 maybe-maintainer-clean-tcl \
1726 maybe-maintainer-clean-itcl \
1727 maybe-maintainer-clean-ld \
c580d516 1728 maybe-maintainer-clean-libcpp \
8ec98d6c
NN
1729 maybe-maintainer-clean-libgui \
1730 maybe-maintainer-clean-libiberty \
1731 maybe-maintainer-clean-libtool \
1732 maybe-maintainer-clean-m4 \
1733 maybe-maintainer-clean-make \
1734 maybe-maintainer-clean-mmalloc \
1735 maybe-maintainer-clean-patch \
1736 maybe-maintainer-clean-perl \
1737 maybe-maintainer-clean-prms \
1738 maybe-maintainer-clean-rcs \
1739 maybe-maintainer-clean-readline \
1740 maybe-maintainer-clean-release \
1741 maybe-maintainer-clean-recode \
1742 maybe-maintainer-clean-sed \
1743 maybe-maintainer-clean-send-pr \
1744 maybe-maintainer-clean-shellutils \
1745 maybe-maintainer-clean-sid \
1746 maybe-maintainer-clean-sim \
1747 maybe-maintainer-clean-tar \
1748 maybe-maintainer-clean-texinfo \
1749 maybe-maintainer-clean-textutils \
1750 maybe-maintainer-clean-time \
1751 maybe-maintainer-clean-uudecode \
1752 maybe-maintainer-clean-wdiff \
1753 maybe-maintainer-clean-zip \
1754 maybe-maintainer-clean-zlib \
1755 maybe-maintainer-clean-gdb \
1756 maybe-maintainer-clean-expect \
1757 maybe-maintainer-clean-guile \
1758 maybe-maintainer-clean-tk \
8ec98d6c 1759 maybe-maintainer-clean-libtermcap \
7fc2ca22
PB
1760 maybe-maintainer-clean-utils \
1761 maybe-maintainer-clean-gnattools
657b58f4 1762
8ec98d6c
NN
1763.PHONY: maintainer-clean-target
1764maintainer-clean-target: \
1765 maybe-maintainer-clean-target-libstdc++-v3 \
cb2333e8 1766 maybe-maintainer-clean-target-libmudflap \
8ec98d6c 1767 maybe-maintainer-clean-target-newlib \
cb2333e8 1768 maybe-maintainer-clean-target-libgfortran \
8ec98d6c
NN
1769 maybe-maintainer-clean-target-libobjc \
1770 maybe-maintainer-clean-target-libtermcap \
1771 maybe-maintainer-clean-target-winsup \
1772 maybe-maintainer-clean-target-libgloss \
1773 maybe-maintainer-clean-target-libiberty \
1774 maybe-maintainer-clean-target-gperf \
1775 maybe-maintainer-clean-target-examples \
1776 maybe-maintainer-clean-target-libffi \
1777 maybe-maintainer-clean-target-libjava \
1778 maybe-maintainer-clean-target-zlib \
1779 maybe-maintainer-clean-target-boehm-gc \
1780 maybe-maintainer-clean-target-qthreads \
1781 maybe-maintainer-clean-target-rda \
1782 maybe-maintainer-clean-target-libada
657b58f4 1783
657b58f4 1784
8ec98d6c 1785# Here are the targets which correspond to the do-X targets.
657b58f4 1786
b6fb961f 1787.PHONY: info installcheck dvi html install-info
8ec98d6c
NN
1788.PHONY: clean distclean mostlyclean maintainer-clean realclean
1789.PHONY: local-clean local-distclean local-maintainer-clean
1790info: do-info
1791installcheck: do-installcheck
1792dvi: do-dvi
b6fb961f 1793html: do-html
657b58f4 1794
8ec98d6c
NN
1795# Make sure makeinfo is built before we do a `make info', if we're
1796# in fact building texinfo.
1797do-info: maybe-all-texinfo
657b58f4 1798
8ec98d6c 1799install-info: do-install-info dir.info
5230d454 1800 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8ec98d6c
NN
1801 if [ -f dir.info ] ; then \
1802 $(INSTALL_DATA) dir.info $(DESTDIR)$(infodir)/dir.info ; \
1803 else true ; fi
657b58f4 1804
8ec98d6c
NN
1805local-clean:
1806 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
657b58f4 1807
8ec98d6c
NN
1808local-distclean:
1809 -rm -f Makefile config.status config.cache mh-frag mt-frag
1810 -rm -f multilib.out multilib.tmp maybedep.tmp serdep.tmp
1811 -if [ "$(TARGET_SUBDIR)" != "." ]; then \
1812 rm -rf $(TARGET_SUBDIR); \
1813 else true; fi
1814 -rm -rf $(BUILD_SUBDIR)
7fc2ca22
PB
1815 -if [ "$(HOST_SUBDIR)" != "." ]; then \
1816 rm -rf $(HOST_SUBDIR); \
1817 else true; fi
8ec98d6c
NN
1818 -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
1819 -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
1820 -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
1821 -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
1822 -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
657b58f4 1823
8ec98d6c
NN
1824local-maintainer-clean:
1825 @echo "This command is intended for maintainers to use;"
1826 @echo "it deletes files that may require special tools to rebuild."
657b58f4 1827
8ec98d6c
NN
1828clean: do-clean local-clean
1829mostlyclean: do-mostlyclean local-clean
1830distclean: do-distclean local-clean local-distclean
1831maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
1832maintainer-clean: local-distclean
1833realclean: maintainer-clean
657b58f4 1834
8ec98d6c
NN
1835# Extra dependency for clean-target, owing to the mixed nature of gcc
1836clean-target: clean-target-libgcc
1837clean-target-libgcc:
1838 test ! -d gcc/libgcc || \
1839 (cd gcc/libgcc && find . -type d -print) | \
1840 while read d; do rm -f gcc/$$d/libgcc.a || : ; done
1841 -rm -rf gcc/libgcc
7046d222 1842 -rm -f gcc/stmp-dirs
657b58f4 1843
8ec98d6c 1844# Check target.
657b58f4 1845
8ec98d6c
NN
1846.PHONY: check do-check
1847check: do-check
657b58f4 1848
8ec98d6c 1849# Only include modules actually being configured and built.
d5eec917 1850do-check: unstage \
8ec98d6c
NN
1851 maybe-check-ash \
1852 maybe-check-autoconf \
1853 maybe-check-automake \
1854 maybe-check-bash \
1855 maybe-check-bfd \
1856 maybe-check-opcodes \
1857 maybe-check-binutils \
1858 maybe-check-bison \
1859 maybe-check-byacc \
1860 maybe-check-bzip2 \
1861 maybe-check-dejagnu \
1862 maybe-check-diff \
1863 maybe-check-dosutils \
1864 maybe-check-etc \
1865 maybe-check-fastjar \
1866 maybe-check-fileutils \
1867 maybe-check-findutils \
1868 maybe-check-find \
5350aa8b 1869 maybe-check-fixincludes \
8ec98d6c
NN
1870 maybe-check-flex \
1871 maybe-check-gas \
d5eec917 1872 maybe-check-gcc \
8ec98d6c
NN
1873 maybe-check-gawk \
1874 maybe-check-gettext \
1875 maybe-check-gnuserv \
1876 maybe-check-gprof \
1877 maybe-check-gzip \
1878 maybe-check-hello \
1879 maybe-check-indent \
1880 maybe-check-intl \
1881 maybe-check-tcl \
1882 maybe-check-itcl \
1883 maybe-check-ld \
c580d516 1884 maybe-check-libcpp \
8ec98d6c
NN
1885 maybe-check-libgui \
1886 maybe-check-libiberty \
1887 maybe-check-libtool \
1888 maybe-check-m4 \
1889 maybe-check-make \
1890 maybe-check-mmalloc \
1891 maybe-check-patch \
1892 maybe-check-perl \
1893 maybe-check-prms \
1894 maybe-check-rcs \
1895 maybe-check-readline \
1896 maybe-check-release \
1897 maybe-check-recode \
1898 maybe-check-sed \
1899 maybe-check-send-pr \
1900 maybe-check-shellutils \
1901 maybe-check-sid \
1902 maybe-check-sim \
1903 maybe-check-tar \
1904 maybe-check-texinfo \
1905 maybe-check-textutils \
1906 maybe-check-time \
1907 maybe-check-uudecode \
1908 maybe-check-wdiff \
1909 maybe-check-zip \
1910 maybe-check-zlib \
1911 maybe-check-gdb \
1912 maybe-check-expect \
1913 maybe-check-guile \
1914 maybe-check-tk \
8ec98d6c
NN
1915 maybe-check-libtermcap \
1916 maybe-check-utils \
7fc2ca22 1917 maybe-check-gnattools \
8ec98d6c 1918 maybe-check-target-libstdc++-v3 \
cb2333e8 1919 maybe-check-target-libmudflap \
8ec98d6c 1920 maybe-check-target-newlib \
cb2333e8 1921 maybe-check-target-libgfortran \
8ec98d6c
NN
1922 maybe-check-target-libobjc \
1923 maybe-check-target-libtermcap \
1924 maybe-check-target-winsup \
1925 maybe-check-target-libgloss \
1926 maybe-check-target-libiberty \
1927 maybe-check-target-gperf \
1928 maybe-check-target-examples \
1929 maybe-check-target-libffi \
1930 maybe-check-target-libjava \
1931 maybe-check-target-zlib \
1932 maybe-check-target-boehm-gc \
1933 maybe-check-target-qthreads \
1934 maybe-check-target-rda \
d5eec917 1935 maybe-check-target-libada stage
657b58f4 1936
8ec98d6c 1937# Automated reporting of test results.
657b58f4 1938
8ec98d6c
NN
1939warning.log: build.log
1940 $(srcdir)/contrib/warn_summary build.log > $@
657b58f4 1941
8ec98d6c
NN
1942mail-report.log:
1943 if test x'$(BOOT_CFLAGS)' != x''; then \
1944 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1945 fi; \
1946 $(srcdir)/contrib/test_summary -t >$@
1947 chmod +x $@
1948 echo If you really want to send e-mail, run ./$@ now
657b58f4 1949
8ec98d6c
NN
1950mail-report-with-warnings.log: warning.log
1951 if test x'$(BOOT_CFLAGS)' != x''; then \
1952 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1953 fi; \
1954 $(srcdir)/contrib/test_summary -t -i warning.log >$@
1955 chmod +x $@
1956 echo If you really want to send e-mail, run ./$@ now
657b58f4 1957
8ec98d6c 1958# Installation targets.
657b58f4 1959
8ec98d6c
NN
1960.PHONY: install uninstall
1961install: installdirs install-host install-target
657b58f4 1962
8ec98d6c
NN
1963.PHONY: install-host-nogcc
1964install-host-nogcc: \
1965 maybe-install-ash \
1966 maybe-install-autoconf \
1967 maybe-install-automake \
1968 maybe-install-bash \
1969 maybe-install-bfd \
1970 maybe-install-opcodes \
1971 maybe-install-binutils \
1972 maybe-install-bison \
1973 maybe-install-byacc \
1974 maybe-install-bzip2 \
1975 maybe-install-dejagnu \
1976 maybe-install-diff \
1977 maybe-install-dosutils \
1978 maybe-install-etc \
1979 maybe-install-fastjar \
1980 maybe-install-fileutils \
1981 maybe-install-findutils \
1982 maybe-install-find \
5350aa8b 1983 maybe-install-fixincludes \
8ec98d6c
NN
1984 maybe-install-flex \
1985 maybe-install-gas \
1986 maybe-install-gawk \
1987 maybe-install-gettext \
1988 maybe-install-gnuserv \
1989 maybe-install-gprof \
1990 maybe-install-gzip \
1991 maybe-install-hello \
1992 maybe-install-indent \
1993 maybe-install-intl \
1994 maybe-install-tcl \
1995 maybe-install-itcl \
1996 maybe-install-ld \
c580d516 1997 maybe-install-libcpp \
8ec98d6c
NN
1998 maybe-install-libgui \
1999 maybe-install-libiberty \
2000 maybe-install-libtool \
2001 maybe-install-m4 \
2002 maybe-install-make \
2003 maybe-install-mmalloc \
2004 maybe-install-patch \
2005 maybe-install-perl \
2006 maybe-install-prms \
2007 maybe-install-rcs \
2008 maybe-install-readline \
2009 maybe-install-release \
2010 maybe-install-recode \
2011 maybe-install-sed \
2012 maybe-install-send-pr \
2013 maybe-install-shellutils \
2014 maybe-install-sid \
2015 maybe-install-sim \
2016 maybe-install-tar \
2017 maybe-install-texinfo \
2018 maybe-install-textutils \
2019 maybe-install-time \
2020 maybe-install-uudecode \
2021 maybe-install-wdiff \
2022 maybe-install-zip \
2023 maybe-install-zlib \
2024 maybe-install-gdb \
2025 maybe-install-expect \
2026 maybe-install-guile \
2027 maybe-install-tk \
8ec98d6c 2028 maybe-install-libtermcap \
7fc2ca22
PB
2029 maybe-install-utils \
2030 maybe-install-gnattools
657b58f4 2031
8ec98d6c 2032.PHONY: install-host
d5eec917 2033install-host: \
8ec98d6c
NN
2034 maybe-install-ash \
2035 maybe-install-autoconf \
2036 maybe-install-automake \
2037 maybe-install-bash \
2038 maybe-install-bfd \
2039 maybe-install-opcodes \
2040 maybe-install-binutils \
2041 maybe-install-bison \
2042 maybe-install-byacc \
2043 maybe-install-bzip2 \
2044 maybe-install-dejagnu \
2045 maybe-install-diff \
2046 maybe-install-dosutils \
2047 maybe-install-etc \
2048 maybe-install-fastjar \
2049 maybe-install-fileutils \
2050 maybe-install-findutils \
2051 maybe-install-find \
5350aa8b 2052 maybe-install-fixincludes \
8ec98d6c
NN
2053 maybe-install-flex \
2054 maybe-install-gas \
d5eec917 2055 maybe-install-gcc \
8ec98d6c
NN
2056 maybe-install-gawk \
2057 maybe-install-gettext \
2058 maybe-install-gnuserv \
2059 maybe-install-gprof \
2060 maybe-install-gzip \
2061 maybe-install-hello \
2062 maybe-install-indent \
2063 maybe-install-intl \
2064 maybe-install-tcl \
2065 maybe-install-itcl \
2066 maybe-install-ld \
c580d516 2067 maybe-install-libcpp \
8ec98d6c
NN
2068 maybe-install-libgui \
2069 maybe-install-libiberty \
2070 maybe-install-libtool \
2071 maybe-install-m4 \
2072 maybe-install-make \
2073 maybe-install-mmalloc \
2074 maybe-install-patch \
2075 maybe-install-perl \
2076 maybe-install-prms \
2077 maybe-install-rcs \
2078 maybe-install-readline \
2079 maybe-install-release \
2080 maybe-install-recode \
2081 maybe-install-sed \
2082 maybe-install-send-pr \
2083 maybe-install-shellutils \
2084 maybe-install-sid \
2085 maybe-install-sim \
2086 maybe-install-tar \
2087 maybe-install-texinfo \
2088 maybe-install-textutils \
2089 maybe-install-time \
2090 maybe-install-uudecode \
2091 maybe-install-wdiff \
2092 maybe-install-zip \
2093 maybe-install-zlib \
2094 maybe-install-gdb \
2095 maybe-install-expect \
2096 maybe-install-guile \
2097 maybe-install-tk \
8ec98d6c 2098 maybe-install-libtermcap \
7fc2ca22
PB
2099 maybe-install-utils \
2100 maybe-install-gnattools
657b58f4 2101
8ec98d6c
NN
2102.PHONY: install-target
2103install-target: \
2104 maybe-install-target-libstdc++-v3 \
cb2333e8 2105 maybe-install-target-libmudflap \
8ec98d6c 2106 maybe-install-target-newlib \
cb2333e8 2107 maybe-install-target-libgfortran \
8ec98d6c
NN
2108 maybe-install-target-libobjc \
2109 maybe-install-target-libtermcap \
2110 maybe-install-target-winsup \
2111 maybe-install-target-libgloss \
2112 maybe-install-target-libiberty \
2113 maybe-install-target-gperf \
2114 maybe-install-target-examples \
2115 maybe-install-target-libffi \
2116 maybe-install-target-libjava \
2117 maybe-install-target-zlib \
2118 maybe-install-target-boehm-gc \
2119 maybe-install-target-qthreads \
2120 maybe-install-target-rda \
2121 maybe-install-target-libada
657b58f4 2122
8ec98d6c
NN
2123uninstall:
2124 @echo "the uninstall target is not supported in this tree"
657b58f4 2125
8ec98d6c
NN
2126.PHONY: install.all
2127install.all: install-no-fixedincludes
2128 @if [ -f ./gcc/Makefile ] ; then \
2129 r=`${PWD_COMMAND}` ; export r ; \
2130 $(SET_LIB_PATH) \
63673a5b 2131 $(HOST_EXPORTS) \
8ec98d6c
NN
2132 (cd ./gcc && \
2133 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
2134 else \
2135 true ; \
2136 fi
657b58f4 2137
8ec98d6c
NN
2138# install-no-fixedincludes is used because Cygnus can not distribute
2139# the fixed header files.
2140.PHONY: install-no-fixedincludes
2141install-no-fixedincludes: installdirs install-host-nogcc \
2142 install-target gcc-no-fixedincludes
657b58f4 2143
8ec98d6c 2144### other supporting targets
657b58f4 2145
8ec98d6c
NN
2146MAKEDIRS= \
2147 $(DESTDIR)$(prefix) \
2148 $(DESTDIR)$(exec_prefix)
2149.PHONY: installdirs
2150installdirs: mkinstalldirs
2151 $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
657b58f4 2152
8ec98d6c
NN
2153dir.info: do-install-info
2154 if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
2155 $(srcdir)/texinfo/gen-info-dir $(DESTDIR)$(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
2156 mv -f dir.info.new dir.info ; \
2157 else true ; \
2158 fi
657b58f4 2159
8ec98d6c
NN
2160dist:
2161 @echo "Building a full distribution of this tree isn't done"
2162 @echo "via 'make dist'. Check out the etc/ subdirectory"
657b58f4 2163
8ec98d6c 2164etags tags: TAGS
657b58f4 2165
8ec98d6c
NN
2166# Right now this just builds TAGS in each subdirectory. emacs19 has the
2167# ability to use several tags files at once, so there is probably no need
2168# to combine them into one big TAGS file (like CVS 1.3 does). We could
2169# (if we felt like it) have this Makefile write a piece of elisp which
2170# the user could load to tell emacs19 where all the TAGS files we just
2171# built are.
2172TAGS: do-TAGS
657b58f4 2173
8ec98d6c
NN
2174# --------------------------------------
2175# Modules which run on the build machine
2176# --------------------------------------
2177
2178.PHONY: configure-build-libiberty maybe-configure-build-libiberty
2179maybe-configure-build-libiberty:
a7e609d6
PB
2180@if build-libiberty
2181maybe-configure-build-libiberty: configure-build-libiberty
8ec98d6c
NN
2182configure-build-libiberty:
2183 @test ! -f $(BUILD_SUBDIR)/libiberty/Makefile || exit 0; \
2184 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libiberty ; \
5230d454
L
2185 r=`${PWD_COMMAND}`; export r; \
2186 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 2187 $(BUILD_EXPORTS) \
8ec98d6c
NN
2188 echo Configuring in $(BUILD_SUBDIR)/libiberty; \
2189 cd "$(BUILD_SUBDIR)/libiberty" || exit 1; \
2190 case $(srcdir) in \
7fc2ca22
PB
2191 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2192 *) topdir=`echo $(BUILD_SUBDIR)/libiberty/ | \
2193 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 2194 esac; \
7fc2ca22
PB
2195 srcdiroption="--srcdir=$${topdir}/libiberty"; \
2196 libsrcdir="$$s/libiberty"; \
8ec98d6c
NN
2197 rm -f no-such-file || : ; \
2198 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2199 $(BUILD_CONFIGARGS) $${srcdiroption} \
63673a5b 2200 --with-build-subdir="$(BUILD_SUBDIR)" \
657b58f4 2201 || exit 1
a7e609d6 2202@endif build-libiberty
657b58f4 2203
8ec98d6c
NN
2204.PHONY: all-build-libiberty maybe-all-build-libiberty
2205maybe-all-build-libiberty:
a7e609d6 2206@if build-libiberty
6a19fd82 2207TARGET-build-libiberty=all
a7e609d6 2208maybe-all-build-libiberty: all-build-libiberty
8ec98d6c
NN
2209all-build-libiberty: configure-build-libiberty
2210 @r=`${PWD_COMMAND}`; export r; \
5230d454 2211 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 2212 $(BUILD_EXPORTS) \
6a19fd82
PB
2213 (cd $(BUILD_SUBDIR)/libiberty && \
2214 $(MAKE) $(TARGET-build-libiberty))
a7e609d6 2215@endif build-libiberty
657b58f4 2216
2cb47d68
PB
2217.PHONY: configure-build-bison maybe-configure-build-bison
2218maybe-configure-build-bison:
2219@if build-bison
2220maybe-configure-build-bison: configure-build-bison
2221configure-build-bison:
2222 @test ! -f $(BUILD_SUBDIR)/bison/Makefile || exit 0; \
2223 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/bison ; \
2224 r=`${PWD_COMMAND}`; export r; \
2225 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2226 $(BUILD_EXPORTS) \
2227 echo Configuring in $(BUILD_SUBDIR)/bison; \
2228 cd "$(BUILD_SUBDIR)/bison" || exit 1; \
2229 case $(srcdir) in \
7fc2ca22
PB
2230 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2231 *) topdir=`echo $(BUILD_SUBDIR)/bison/ | \
2232 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2cb47d68 2233 esac; \
7fc2ca22
PB
2234 srcdiroption="--srcdir=$${topdir}/bison"; \
2235 libsrcdir="$$s/bison"; \
2cb47d68
PB
2236 rm -f no-such-file || : ; \
2237 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2238 $(BUILD_CONFIGARGS) $${srcdiroption} \
2239 --with-build-subdir="$(BUILD_SUBDIR)" \
2240 || exit 1
2241@endif build-bison
2242
2243.PHONY: all-build-bison maybe-all-build-bison
2244maybe-all-build-bison:
2245@if build-bison
6a19fd82 2246TARGET-build-bison=all
2cb47d68
PB
2247maybe-all-build-bison: all-build-bison
2248all-build-bison: configure-build-bison
2249 @r=`${PWD_COMMAND}`; export r; \
2250 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2251 $(BUILD_EXPORTS) \
6a19fd82
PB
2252 (cd $(BUILD_SUBDIR)/bison && \
2253 $(MAKE) $(TARGET-build-bison))
2cb47d68
PB
2254@endif build-bison
2255
2256.PHONY: configure-build-byacc maybe-configure-build-byacc
2257maybe-configure-build-byacc:
2258@if build-byacc
2259maybe-configure-build-byacc: configure-build-byacc
2260configure-build-byacc:
2261 @test ! -f $(BUILD_SUBDIR)/byacc/Makefile || exit 0; \
2262 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/byacc ; \
2263 r=`${PWD_COMMAND}`; export r; \
2264 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2265 $(BUILD_EXPORTS) \
2266 echo Configuring in $(BUILD_SUBDIR)/byacc; \
2267 cd "$(BUILD_SUBDIR)/byacc" || exit 1; \
2268 case $(srcdir) in \
7fc2ca22
PB
2269 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2270 *) topdir=`echo $(BUILD_SUBDIR)/byacc/ | \
2271 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2cb47d68 2272 esac; \
7fc2ca22
PB
2273 srcdiroption="--srcdir=$${topdir}/byacc"; \
2274 libsrcdir="$$s/byacc"; \
2cb47d68
PB
2275 rm -f no-such-file || : ; \
2276 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2277 $(BUILD_CONFIGARGS) $${srcdiroption} \
2278 --with-build-subdir="$(BUILD_SUBDIR)" \
2279 || exit 1
2280@endif build-byacc
2281
2282.PHONY: all-build-byacc maybe-all-build-byacc
2283maybe-all-build-byacc:
2284@if build-byacc
6a19fd82 2285TARGET-build-byacc=all
2cb47d68
PB
2286maybe-all-build-byacc: all-build-byacc
2287all-build-byacc: configure-build-byacc
2288 @r=`${PWD_COMMAND}`; export r; \
2289 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2290 $(BUILD_EXPORTS) \
6a19fd82
PB
2291 (cd $(BUILD_SUBDIR)/byacc && \
2292 $(MAKE) $(TARGET-build-byacc))
2cb47d68
PB
2293@endif build-byacc
2294
2295.PHONY: configure-build-flex maybe-configure-build-flex
2296maybe-configure-build-flex:
2297@if build-flex
2298maybe-configure-build-flex: configure-build-flex
2299configure-build-flex:
2300 @test ! -f $(BUILD_SUBDIR)/flex/Makefile || exit 0; \
2301 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/flex ; \
2302 r=`${PWD_COMMAND}`; export r; \
2303 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2304 $(BUILD_EXPORTS) \
2305 echo Configuring in $(BUILD_SUBDIR)/flex; \
2306 cd "$(BUILD_SUBDIR)/flex" || exit 1; \
2307 case $(srcdir) in \
7fc2ca22
PB
2308 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2309 *) topdir=`echo $(BUILD_SUBDIR)/flex/ | \
2310 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2cb47d68 2311 esac; \
7fc2ca22
PB
2312 srcdiroption="--srcdir=$${topdir}/flex"; \
2313 libsrcdir="$$s/flex"; \
2cb47d68
PB
2314 rm -f no-such-file || : ; \
2315 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2316 $(BUILD_CONFIGARGS) $${srcdiroption} \
2317 --with-build-subdir="$(BUILD_SUBDIR)" \
2318 || exit 1
2319@endif build-flex
2320
2321.PHONY: all-build-flex maybe-all-build-flex
2322maybe-all-build-flex:
2323@if build-flex
6a19fd82 2324TARGET-build-flex=all
2cb47d68
PB
2325maybe-all-build-flex: all-build-flex
2326all-build-flex: configure-build-flex
2327 @r=`${PWD_COMMAND}`; export r; \
2328 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2329 $(BUILD_EXPORTS) \
6a19fd82
PB
2330 (cd $(BUILD_SUBDIR)/flex && \
2331 $(MAKE) $(TARGET-build-flex))
2cb47d68
PB
2332@endif build-flex
2333
2334.PHONY: configure-build-m4 maybe-configure-build-m4
2335maybe-configure-build-m4:
2336@if build-m4
2337maybe-configure-build-m4: configure-build-m4
2338configure-build-m4:
2339 @test ! -f $(BUILD_SUBDIR)/m4/Makefile || exit 0; \
2340 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/m4 ; \
2341 r=`${PWD_COMMAND}`; export r; \
2342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2343 $(BUILD_EXPORTS) \
2344 echo Configuring in $(BUILD_SUBDIR)/m4; \
2345 cd "$(BUILD_SUBDIR)/m4" || exit 1; \
2346 case $(srcdir) in \
7fc2ca22
PB
2347 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2348 *) topdir=`echo $(BUILD_SUBDIR)/m4/ | \
2349 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2cb47d68 2350 esac; \
7fc2ca22
PB
2351 srcdiroption="--srcdir=$${topdir}/m4"; \
2352 libsrcdir="$$s/m4"; \
2cb47d68
PB
2353 rm -f no-such-file || : ; \
2354 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2355 $(BUILD_CONFIGARGS) $${srcdiroption} \
2356 --with-build-subdir="$(BUILD_SUBDIR)" \
2357 || exit 1
2358@endif build-m4
2359
2360.PHONY: all-build-m4 maybe-all-build-m4
2361maybe-all-build-m4:
2362@if build-m4
6a19fd82 2363TARGET-build-m4=all
2cb47d68
PB
2364maybe-all-build-m4: all-build-m4
2365all-build-m4: configure-build-m4
2366 @r=`${PWD_COMMAND}`; export r; \
2367 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2368 $(BUILD_EXPORTS) \
6a19fd82
PB
2369 (cd $(BUILD_SUBDIR)/m4 && \
2370 $(MAKE) $(TARGET-build-m4))
2cb47d68
PB
2371@endif build-m4
2372
2373.PHONY: configure-build-texinfo maybe-configure-build-texinfo
2374maybe-configure-build-texinfo:
2375@if build-texinfo
2376maybe-configure-build-texinfo: configure-build-texinfo
2377configure-build-texinfo:
2378 @test ! -f $(BUILD_SUBDIR)/texinfo/Makefile || exit 0; \
2379 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/texinfo ; \
2380 r=`${PWD_COMMAND}`; export r; \
2381 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2382 $(BUILD_EXPORTS) \
2383 echo Configuring in $(BUILD_SUBDIR)/texinfo; \
2384 cd "$(BUILD_SUBDIR)/texinfo" || exit 1; \
2385 case $(srcdir) in \
7fc2ca22
PB
2386 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2387 *) topdir=`echo $(BUILD_SUBDIR)/texinfo/ | \
2388 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2cb47d68 2389 esac; \
7fc2ca22
PB
2390 srcdiroption="--srcdir=$${topdir}/texinfo"; \
2391 libsrcdir="$$s/texinfo"; \
2cb47d68
PB
2392 rm -f no-such-file || : ; \
2393 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2394 $(BUILD_CONFIGARGS) $${srcdiroption} \
2395 --with-build-subdir="$(BUILD_SUBDIR)" \
2396 || exit 1
2397@endif build-texinfo
2398
2399.PHONY: all-build-texinfo maybe-all-build-texinfo
2400maybe-all-build-texinfo:
2401@if build-texinfo
6a19fd82 2402TARGET-build-texinfo=all
2cb47d68
PB
2403maybe-all-build-texinfo: all-build-texinfo
2404all-build-texinfo: configure-build-texinfo
2405 @r=`${PWD_COMMAND}`; export r; \
2406 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2407 $(BUILD_EXPORTS) \
6a19fd82
PB
2408 (cd $(BUILD_SUBDIR)/texinfo && \
2409 $(MAKE) $(TARGET-build-texinfo))
2cb47d68
PB
2410@endif build-texinfo
2411
607d4caf
PB
2412.PHONY: configure-build-fixincludes maybe-configure-build-fixincludes
2413maybe-configure-build-fixincludes:
2414@if build-fixincludes
2415maybe-configure-build-fixincludes: configure-build-fixincludes
2416configure-build-fixincludes:
2417 @test ! -f $(BUILD_SUBDIR)/fixincludes/Makefile || exit 0; \
2418 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/fixincludes ; \
2419 r=`${PWD_COMMAND}`; export r; \
2420 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2421 $(BUILD_EXPORTS) \
2422 echo Configuring in $(BUILD_SUBDIR)/fixincludes; \
2423 cd "$(BUILD_SUBDIR)/fixincludes" || exit 1; \
2424 case $(srcdir) in \
7fc2ca22
PB
2425 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2426 *) topdir=`echo $(BUILD_SUBDIR)/fixincludes/ | \
2427 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
607d4caf 2428 esac; \
7fc2ca22
PB
2429 srcdiroption="--srcdir=$${topdir}/fixincludes"; \
2430 libsrcdir="$$s/fixincludes"; \
607d4caf
PB
2431 rm -f no-such-file || : ; \
2432 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2433 $(BUILD_CONFIGARGS) $${srcdiroption} \
2434 --with-build-subdir="$(BUILD_SUBDIR)" \
2435 || exit 1
2436@endif build-fixincludes
2437
2438.PHONY: all-build-fixincludes maybe-all-build-fixincludes
2439maybe-all-build-fixincludes:
2440@if build-fixincludes
2441TARGET-build-fixincludes=all
2442maybe-all-build-fixincludes: all-build-fixincludes
2443all-build-fixincludes: configure-build-fixincludes
2444 @r=`${PWD_COMMAND}`; export r; \
2445 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2446 $(BUILD_EXPORTS) \
2447 (cd $(BUILD_SUBDIR)/fixincludes && \
2448 $(MAKE) $(TARGET-build-fixincludes))
2449@endif build-fixincludes
2450
657b58f4 2451
8ec98d6c
NN
2452# --------------------------------------
2453# Modules which run on the host machine
2454# --------------------------------------
657b58f4 2455
8ec98d6c
NN
2456.PHONY: configure-ash maybe-configure-ash
2457maybe-configure-ash:
a7e609d6
PB
2458@if ash
2459maybe-configure-ash: configure-ash
8ec98d6c 2460configure-ash:
7fc2ca22
PB
2461 @test ! -f $(HOST_SUBDIR)/ash/Makefile || exit 0; \
2462 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ash ; \
5230d454
L
2463 r=`${PWD_COMMAND}`; export r; \
2464 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 2465 $(HOST_EXPORTS) \
8ec98d6c 2466 echo Configuring in ash; \
7fc2ca22 2467 cd $(HOST_SUBDIR)/ash || exit 1; \
8ec98d6c 2468 case $(srcdir) in \
7fc2ca22
PB
2469 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2470 *) topdir=`echo $(HOST_SUBDIR)/ash/ | \
2471 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 2472 esac; \
7fc2ca22
PB
2473 srcdiroption="--srcdir=$${topdir}/ash"; \
2474 libsrcdir="$$s/ash"; \
8ec98d6c 2475 $(SHELL) $${libsrcdir}/configure \
63673a5b 2476 $(HOST_CONFIGARGS) $${srcdiroption} \
657b58f4 2477 || exit 1
a7e609d6 2478@endif ash
657b58f4 2479
8ec98d6c
NN
2480.PHONY: all-ash maybe-all-ash
2481maybe-all-ash:
a7e609d6 2482@if ash
5e6b1f07 2483TARGET-ash=all
a7e609d6 2484maybe-all-ash: all-ash
8ec98d6c
NN
2485all-ash: configure-ash
2486 @r=`${PWD_COMMAND}`; export r; \
2487 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2488 $(SET_LIB_PATH) \
a675b75a 2489 $(HOST_EXPORTS) \
7fc2ca22
PB
2490 (cd $(HOST_SUBDIR)/ash && \
2491 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-ash))
a7e609d6 2492@endif ash
657b58f4 2493
8ec98d6c
NN
2494.PHONY: check-ash maybe-check-ash
2495maybe-check-ash:
a7e609d6
PB
2496@if ash
2497maybe-check-ash: check-ash
657b58f4 2498
8ec98d6c
NN
2499check-ash:
2500 @r=`${PWD_COMMAND}`; export r; \
5230d454 2501 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 2502 $(SET_LIB_PATH) \
a675b75a 2503 $(HOST_EXPORTS) \
7fc2ca22
PB
2504 (cd $(HOST_SUBDIR)/ash && \
2505 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 2506
a7e609d6 2507@endif ash
657b58f4 2508
8ec98d6c
NN
2509.PHONY: install-ash maybe-install-ash
2510maybe-install-ash:
a7e609d6
PB
2511@if ash
2512maybe-install-ash: install-ash
657b58f4 2513
8ec98d6c
NN
2514install-ash: installdirs
2515 @r=`${PWD_COMMAND}`; export r; \
5230d454 2516 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 2517 $(SET_LIB_PATH) \
a675b75a 2518 $(HOST_EXPORTS) \
7fc2ca22 2519 (cd $(HOST_SUBDIR)/ash && \
93c60b6d 2520 $(MAKE) $(FLAGS_TO_PASS) install)
657b58f4 2521
a7e609d6 2522@endif ash
657b58f4 2523
8ec98d6c 2524# Other targets (info, dvi, etc.)
657b58f4 2525
8ec98d6c
NN
2526.PHONY: maybe-info-ash info-ash
2527maybe-info-ash:
a7e609d6
PB
2528@if ash
2529maybe-info-ash: info-ash
8ec98d6c
NN
2530
2531info-ash: \
2532 configure-ash
2533 @[ -f ./ash/Makefile ] || exit 0; \
5230d454
L
2534 r=`${PWD_COMMAND}`; export r; \
2535 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 2536 $(SET_LIB_PATH) \
a675b75a 2537 $(HOST_EXPORTS) \
d5eec917 2538 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
2539 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2540 done; \
8ec98d6c 2541 echo "Doing info in ash" ; \
7fc2ca22 2542 (cd $(HOST_SUBDIR)/ash && \
657b58f4
NN
2543 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2544 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2545 "RANLIB=$${RANLIB}" \
2546 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 2547 info) \
657b58f4
NN
2548 || exit 1
2549
a7e609d6 2550@endif ash
657b58f4 2551
8ec98d6c
NN
2552.PHONY: maybe-dvi-ash dvi-ash
2553maybe-dvi-ash:
a7e609d6
PB
2554@if ash
2555maybe-dvi-ash: dvi-ash
657b58f4 2556
8ec98d6c
NN
2557dvi-ash: \
2558 configure-ash
2559 @[ -f ./ash/Makefile ] || exit 0; \
5230d454
L
2560 r=`${PWD_COMMAND}`; export r; \
2561 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 2562 $(SET_LIB_PATH) \
a675b75a 2563 $(HOST_EXPORTS) \
d5eec917 2564 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
2565 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2566 done; \
8ec98d6c 2567 echo "Doing dvi in ash" ; \
7fc2ca22 2568 (cd $(HOST_SUBDIR)/ash && \
657b58f4
NN
2569 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2570 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2571 "RANLIB=$${RANLIB}" \
2572 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 2573 dvi) \
657b58f4
NN
2574 || exit 1
2575
a7e609d6 2576@endif ash
657b58f4 2577
b6fb961f
MS
2578.PHONY: maybe-html-ash html-ash
2579maybe-html-ash:
2580@if ash
2581maybe-html-ash: html-ash
2582
2583html-ash: \
2584 configure-ash
2585 @[ -f ./ash/Makefile ] || exit 0; \
2586 r=`${PWD_COMMAND}`; export r; \
2587 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2588 $(SET_LIB_PATH) \
2589 $(HOST_EXPORTS) \
2590 for flag in $(EXTRA_HOST_FLAGS) ; do \
2591 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2592 done; \
2593 echo "Doing html in ash" ; \
7fc2ca22 2594 (cd $(HOST_SUBDIR)/ash && \
b6fb961f
MS
2595 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2596 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2597 "RANLIB=$${RANLIB}" \
2598 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2599 html) \
2600 || exit 1
2601
2602@endif ash
2603
8ec98d6c
NN
2604.PHONY: maybe-TAGS-ash TAGS-ash
2605maybe-TAGS-ash:
a7e609d6
PB
2606@if ash
2607maybe-TAGS-ash: TAGS-ash
657b58f4 2608
8ec98d6c
NN
2609TAGS-ash: \
2610 configure-ash
2611 @[ -f ./ash/Makefile ] || exit 0; \
5230d454
L
2612 r=`${PWD_COMMAND}`; export r; \
2613 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 2614 $(SET_LIB_PATH) \
a675b75a 2615 $(HOST_EXPORTS) \
d5eec917 2616 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
2617 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2618 done; \
8ec98d6c 2619 echo "Doing TAGS in ash" ; \
7fc2ca22 2620 (cd $(HOST_SUBDIR)/ash && \
657b58f4
NN
2621 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2622 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2623 "RANLIB=$${RANLIB}" \
2624 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 2625 TAGS) \
657b58f4
NN
2626 || exit 1
2627
a7e609d6 2628@endif ash
657b58f4 2629
8ec98d6c
NN
2630.PHONY: maybe-install-info-ash install-info-ash
2631maybe-install-info-ash:
a7e609d6
PB
2632@if ash
2633maybe-install-info-ash: install-info-ash
657b58f4 2634
8ec98d6c
NN
2635install-info-ash: \
2636 configure-ash \
2637 info-ash
2638 @[ -f ./ash/Makefile ] || exit 0; \
5230d454
L
2639 r=`${PWD_COMMAND}`; export r; \
2640 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 2641 $(SET_LIB_PATH) \
a675b75a 2642 $(HOST_EXPORTS) \
d5eec917 2643 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
2644 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2645 done; \
8ec98d6c 2646 echo "Doing install-info in ash" ; \
7fc2ca22 2647 (cd $(HOST_SUBDIR)/ash && \
657b58f4
NN
2648 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2649 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2650 "RANLIB=$${RANLIB}" \
2651 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 2652 install-info) \
657b58f4
NN
2653 || exit 1
2654
a7e609d6 2655@endif ash
657b58f4 2656
8ec98d6c
NN
2657.PHONY: maybe-installcheck-ash installcheck-ash
2658maybe-installcheck-ash:
a7e609d6
PB
2659@if ash
2660maybe-installcheck-ash: installcheck-ash
657b58f4 2661
8ec98d6c
NN
2662installcheck-ash: \
2663 configure-ash
2664 @[ -f ./ash/Makefile ] || exit 0; \
5230d454
L
2665 r=`${PWD_COMMAND}`; export r; \
2666 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 2667 $(SET_LIB_PATH) \
a675b75a 2668 $(HOST_EXPORTS) \
d5eec917 2669 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
2670 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2671 done; \
8ec98d6c 2672 echo "Doing installcheck in ash" ; \
7fc2ca22 2673 (cd $(HOST_SUBDIR)/ash && \
657b58f4
NN
2674 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2675 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2676 "RANLIB=$${RANLIB}" \
2677 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 2678 installcheck) \
657b58f4
NN
2679 || exit 1
2680
a7e609d6 2681@endif ash
657b58f4 2682
8ec98d6c
NN
2683.PHONY: maybe-mostlyclean-ash mostlyclean-ash
2684maybe-mostlyclean-ash:
a7e609d6
PB
2685@if ash
2686maybe-mostlyclean-ash: mostlyclean-ash
657b58f4 2687
8ec98d6c
NN
2688mostlyclean-ash:
2689 @[ -f ./ash/Makefile ] || exit 0; \
5230d454
L
2690 r=`${PWD_COMMAND}`; export r; \
2691 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 2692 $(SET_LIB_PATH) \
a675b75a 2693 $(HOST_EXPORTS) \
d5eec917 2694 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
2695 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2696 done; \
8ec98d6c 2697 echo "Doing mostlyclean in ash" ; \
7fc2ca22 2698 (cd $(HOST_SUBDIR)/ash && \
657b58f4
NN
2699 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2700 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2701 "RANLIB=$${RANLIB}" \
2702 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 2703 mostlyclean) \
657b58f4
NN
2704 || exit 1
2705
a7e609d6 2706@endif ash
657b58f4 2707
8ec98d6c
NN
2708.PHONY: maybe-clean-ash clean-ash
2709maybe-clean-ash:
a7e609d6
PB
2710@if ash
2711maybe-clean-ash: clean-ash
657b58f4 2712
8ec98d6c
NN
2713clean-ash:
2714 @[ -f ./ash/Makefile ] || exit 0; \
5230d454
L
2715 r=`${PWD_COMMAND}`; export r; \
2716 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 2717 $(SET_LIB_PATH) \
a675b75a 2718 $(HOST_EXPORTS) \
d5eec917 2719 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
2720 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2721 done; \
8ec98d6c 2722 echo "Doing clean in ash" ; \
7fc2ca22 2723 (cd $(HOST_SUBDIR)/ash && \
657b58f4
NN
2724 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2725 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2726 "RANLIB=$${RANLIB}" \
2727 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 2728 clean) \
657b58f4
NN
2729 || exit 1
2730
a7e609d6 2731@endif ash
657b58f4 2732
8ec98d6c
NN
2733.PHONY: maybe-distclean-ash distclean-ash
2734maybe-distclean-ash:
a7e609d6
PB
2735@if ash
2736maybe-distclean-ash: distclean-ash
657b58f4 2737
8ec98d6c
NN
2738distclean-ash:
2739 @[ -f ./ash/Makefile ] || exit 0; \
5230d454
L
2740 r=`${PWD_COMMAND}`; export r; \
2741 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 2742 $(SET_LIB_PATH) \
a675b75a 2743 $(HOST_EXPORTS) \
d5eec917 2744 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
2745 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2746 done; \
8ec98d6c 2747 echo "Doing distclean in ash" ; \
7fc2ca22 2748 (cd $(HOST_SUBDIR)/ash && \
657b58f4
NN
2749 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2750 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2751 "RANLIB=$${RANLIB}" \
2752 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 2753 distclean) \
657b58f4
NN
2754 || exit 1
2755
a7e609d6 2756@endif ash
657b58f4 2757
8ec98d6c
NN
2758.PHONY: maybe-maintainer-clean-ash maintainer-clean-ash
2759maybe-maintainer-clean-ash:
a7e609d6
PB
2760@if ash
2761maybe-maintainer-clean-ash: maintainer-clean-ash
657b58f4 2762
8ec98d6c
NN
2763maintainer-clean-ash:
2764 @[ -f ./ash/Makefile ] || exit 0; \
5230d454
L
2765 r=`${PWD_COMMAND}`; export r; \
2766 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 2767 $(SET_LIB_PATH) \
a675b75a 2768 $(HOST_EXPORTS) \
d5eec917 2769 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
2770 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2771 done; \
8ec98d6c 2772 echo "Doing maintainer-clean in ash" ; \
7fc2ca22 2773 (cd $(HOST_SUBDIR)/ash && \
657b58f4
NN
2774 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2775 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2776 "RANLIB=$${RANLIB}" \
2777 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 2778 maintainer-clean) \
657b58f4
NN
2779 || exit 1
2780
a7e609d6 2781@endif ash
657b58f4 2782
657b58f4 2783
8ec98d6c
NN
2784.PHONY: configure-autoconf maybe-configure-autoconf
2785maybe-configure-autoconf:
a7e609d6
PB
2786@if autoconf
2787maybe-configure-autoconf: configure-autoconf
8ec98d6c 2788configure-autoconf:
7fc2ca22
PB
2789 @test ! -f $(HOST_SUBDIR)/autoconf/Makefile || exit 0; \
2790 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/autoconf ; \
5230d454
L
2791 r=`${PWD_COMMAND}`; export r; \
2792 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 2793 $(HOST_EXPORTS) \
8ec98d6c 2794 echo Configuring in autoconf; \
7fc2ca22 2795 cd $(HOST_SUBDIR)/autoconf || exit 1; \
8ec98d6c 2796 case $(srcdir) in \
7fc2ca22
PB
2797 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2798 *) topdir=`echo $(HOST_SUBDIR)/autoconf/ | \
2799 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 2800 esac; \
7fc2ca22
PB
2801 srcdiroption="--srcdir=$${topdir}/autoconf"; \
2802 libsrcdir="$$s/autoconf"; \
8ec98d6c 2803 $(SHELL) $${libsrcdir}/configure \
63673a5b 2804 $(HOST_CONFIGARGS) $${srcdiroption} \
657b58f4 2805 || exit 1
a7e609d6 2806@endif autoconf
657b58f4 2807
8ec98d6c
NN
2808.PHONY: all-autoconf maybe-all-autoconf
2809maybe-all-autoconf:
a7e609d6 2810@if autoconf
5e6b1f07 2811TARGET-autoconf=all
a7e609d6 2812maybe-all-autoconf: all-autoconf
8ec98d6c
NN
2813all-autoconf: configure-autoconf
2814 @r=`${PWD_COMMAND}`; export r; \
2815 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2816 $(SET_LIB_PATH) \
a675b75a 2817 $(HOST_EXPORTS) \
7fc2ca22
PB
2818 (cd $(HOST_SUBDIR)/autoconf && \
2819 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-autoconf))
a7e609d6 2820@endif autoconf
657b58f4 2821
8ec98d6c
NN
2822.PHONY: check-autoconf maybe-check-autoconf
2823maybe-check-autoconf:
a7e609d6
PB
2824@if autoconf
2825maybe-check-autoconf: check-autoconf
657b58f4 2826
8ec98d6c
NN
2827check-autoconf:
2828 @r=`${PWD_COMMAND}`; export r; \
5230d454 2829 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 2830 $(SET_LIB_PATH) \
a675b75a 2831 $(HOST_EXPORTS) \
7fc2ca22
PB
2832 (cd $(HOST_SUBDIR)/autoconf && \
2833 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 2834
a7e609d6 2835@endif autoconf
657b58f4 2836
8ec98d6c
NN
2837.PHONY: install-autoconf maybe-install-autoconf
2838maybe-install-autoconf:
a7e609d6
PB
2839@if autoconf
2840maybe-install-autoconf: install-autoconf
657b58f4 2841
8ec98d6c
NN
2842install-autoconf: installdirs
2843 @r=`${PWD_COMMAND}`; export r; \
5230d454 2844 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 2845 $(SET_LIB_PATH) \
a675b75a 2846 $(HOST_EXPORTS) \
7fc2ca22 2847 (cd $(HOST_SUBDIR)/autoconf && \
93c60b6d 2848 $(MAKE) $(FLAGS_TO_PASS) install)
657b58f4 2849
a7e609d6 2850@endif autoconf
657b58f4 2851
8ec98d6c 2852# Other targets (info, dvi, etc.)
657b58f4 2853
8ec98d6c
NN
2854.PHONY: maybe-info-autoconf info-autoconf
2855maybe-info-autoconf:
a7e609d6
PB
2856@if autoconf
2857maybe-info-autoconf: info-autoconf
8ec98d6c
NN
2858
2859info-autoconf: \
2860 configure-autoconf
2861 @[ -f ./autoconf/Makefile ] || exit 0; \
5230d454
L
2862 r=`${PWD_COMMAND}`; export r; \
2863 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 2864 $(SET_LIB_PATH) \
a675b75a 2865 $(HOST_EXPORTS) \
d5eec917 2866 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
2867 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2868 done; \
8ec98d6c 2869 echo "Doing info in autoconf" ; \
7fc2ca22 2870 (cd $(HOST_SUBDIR)/autoconf && \
657b58f4
NN
2871 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2872 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2873 "RANLIB=$${RANLIB}" \
2874 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 2875 info) \
657b58f4
NN
2876 || exit 1
2877
a7e609d6 2878@endif autoconf
657b58f4 2879
8ec98d6c
NN
2880.PHONY: maybe-dvi-autoconf dvi-autoconf
2881maybe-dvi-autoconf:
a7e609d6
PB
2882@if autoconf
2883maybe-dvi-autoconf: dvi-autoconf
657b58f4 2884
8ec98d6c
NN
2885dvi-autoconf: \
2886 configure-autoconf
2887 @[ -f ./autoconf/Makefile ] || exit 0; \
5230d454
L
2888 r=`${PWD_COMMAND}`; export r; \
2889 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 2890 $(SET_LIB_PATH) \
a675b75a 2891 $(HOST_EXPORTS) \
d5eec917 2892 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
2893 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2894 done; \
8ec98d6c 2895 echo "Doing dvi in autoconf" ; \
7fc2ca22 2896 (cd $(HOST_SUBDIR)/autoconf && \
657b58f4
NN
2897 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2898 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2899 "RANLIB=$${RANLIB}" \
2900 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 2901 dvi) \
657b58f4
NN
2902 || exit 1
2903
a7e609d6 2904@endif autoconf
657b58f4 2905
b6fb961f
MS
2906.PHONY: maybe-html-autoconf html-autoconf
2907maybe-html-autoconf:
2908@if autoconf
2909maybe-html-autoconf: html-autoconf
2910
2911html-autoconf: \
2912 configure-autoconf
2913 @[ -f ./autoconf/Makefile ] || exit 0; \
2914 r=`${PWD_COMMAND}`; export r; \
2915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2916 $(SET_LIB_PATH) \
2917 $(HOST_EXPORTS) \
2918 for flag in $(EXTRA_HOST_FLAGS) ; do \
2919 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2920 done; \
2921 echo "Doing html in autoconf" ; \
7fc2ca22 2922 (cd $(HOST_SUBDIR)/autoconf && \
b6fb961f
MS
2923 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2924 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2925 "RANLIB=$${RANLIB}" \
2926 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2927 html) \
2928 || exit 1
2929
2930@endif autoconf
2931
8ec98d6c
NN
2932.PHONY: maybe-TAGS-autoconf TAGS-autoconf
2933maybe-TAGS-autoconf:
a7e609d6
PB
2934@if autoconf
2935maybe-TAGS-autoconf: TAGS-autoconf
657b58f4 2936
8ec98d6c
NN
2937TAGS-autoconf: \
2938 configure-autoconf
2939 @[ -f ./autoconf/Makefile ] || exit 0; \
5230d454
L
2940 r=`${PWD_COMMAND}`; export r; \
2941 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 2942 $(SET_LIB_PATH) \
a675b75a 2943 $(HOST_EXPORTS) \
d5eec917 2944 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
2945 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2946 done; \
8ec98d6c 2947 echo "Doing TAGS in autoconf" ; \
7fc2ca22 2948 (cd $(HOST_SUBDIR)/autoconf && \
657b58f4
NN
2949 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2950 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2951 "RANLIB=$${RANLIB}" \
2952 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 2953 TAGS) \
657b58f4
NN
2954 || exit 1
2955
a7e609d6 2956@endif autoconf
657b58f4 2957
8ec98d6c
NN
2958.PHONY: maybe-install-info-autoconf install-info-autoconf
2959maybe-install-info-autoconf:
a7e609d6
PB
2960@if autoconf
2961maybe-install-info-autoconf: install-info-autoconf
657b58f4 2962
8ec98d6c
NN
2963install-info-autoconf: \
2964 configure-autoconf \
2965 info-autoconf
2966 @[ -f ./autoconf/Makefile ] || exit 0; \
5230d454
L
2967 r=`${PWD_COMMAND}`; export r; \
2968 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 2969 $(SET_LIB_PATH) \
a675b75a 2970 $(HOST_EXPORTS) \
d5eec917 2971 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
2972 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2973 done; \
8ec98d6c 2974 echo "Doing install-info in autoconf" ; \
7fc2ca22 2975 (cd $(HOST_SUBDIR)/autoconf && \
657b58f4
NN
2976 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2977 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2978 "RANLIB=$${RANLIB}" \
2979 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 2980 install-info) \
657b58f4
NN
2981 || exit 1
2982
a7e609d6 2983@endif autoconf
657b58f4 2984
8ec98d6c
NN
2985.PHONY: maybe-installcheck-autoconf installcheck-autoconf
2986maybe-installcheck-autoconf:
a7e609d6
PB
2987@if autoconf
2988maybe-installcheck-autoconf: installcheck-autoconf
657b58f4 2989
8ec98d6c
NN
2990installcheck-autoconf: \
2991 configure-autoconf
2992 @[ -f ./autoconf/Makefile ] || exit 0; \
5230d454
L
2993 r=`${PWD_COMMAND}`; export r; \
2994 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 2995 $(SET_LIB_PATH) \
a675b75a 2996 $(HOST_EXPORTS) \
d5eec917 2997 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
2998 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2999 done; \
8ec98d6c 3000 echo "Doing installcheck in autoconf" ; \
7fc2ca22 3001 (cd $(HOST_SUBDIR)/autoconf && \
657b58f4
NN
3002 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3003 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3004 "RANLIB=$${RANLIB}" \
3005 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 3006 installcheck) \
657b58f4
NN
3007 || exit 1
3008
a7e609d6 3009@endif autoconf
657b58f4 3010
8ec98d6c
NN
3011.PHONY: maybe-mostlyclean-autoconf mostlyclean-autoconf
3012maybe-mostlyclean-autoconf:
a7e609d6
PB
3013@if autoconf
3014maybe-mostlyclean-autoconf: mostlyclean-autoconf
657b58f4 3015
8ec98d6c
NN
3016mostlyclean-autoconf:
3017 @[ -f ./autoconf/Makefile ] || exit 0; \
5230d454
L
3018 r=`${PWD_COMMAND}`; export r; \
3019 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 3020 $(SET_LIB_PATH) \
a675b75a 3021 $(HOST_EXPORTS) \
d5eec917 3022 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
3023 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3024 done; \
8ec98d6c 3025 echo "Doing mostlyclean in autoconf" ; \
7fc2ca22 3026 (cd $(HOST_SUBDIR)/autoconf && \
657b58f4
NN
3027 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3028 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3029 "RANLIB=$${RANLIB}" \
3030 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 3031 mostlyclean) \
657b58f4
NN
3032 || exit 1
3033
a7e609d6 3034@endif autoconf
657b58f4 3035
8ec98d6c
NN
3036.PHONY: maybe-clean-autoconf clean-autoconf
3037maybe-clean-autoconf:
a7e609d6
PB
3038@if autoconf
3039maybe-clean-autoconf: clean-autoconf
657b58f4 3040
8ec98d6c
NN
3041clean-autoconf:
3042 @[ -f ./autoconf/Makefile ] || exit 0; \
5230d454
L
3043 r=`${PWD_COMMAND}`; export r; \
3044 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 3045 $(SET_LIB_PATH) \
a675b75a 3046 $(HOST_EXPORTS) \
d5eec917 3047 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
3048 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3049 done; \
8ec98d6c 3050 echo "Doing clean in autoconf" ; \
7fc2ca22 3051 (cd $(HOST_SUBDIR)/autoconf && \
657b58f4
NN
3052 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3053 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3054 "RANLIB=$${RANLIB}" \
3055 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 3056 clean) \
657b58f4
NN
3057 || exit 1
3058
a7e609d6 3059@endif autoconf
657b58f4 3060
8ec98d6c
NN
3061.PHONY: maybe-distclean-autoconf distclean-autoconf
3062maybe-distclean-autoconf:
a7e609d6
PB
3063@if autoconf
3064maybe-distclean-autoconf: distclean-autoconf
657b58f4 3065
8ec98d6c
NN
3066distclean-autoconf:
3067 @[ -f ./autoconf/Makefile ] || exit 0; \
5230d454
L
3068 r=`${PWD_COMMAND}`; export r; \
3069 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 3070 $(SET_LIB_PATH) \
a675b75a 3071 $(HOST_EXPORTS) \
d5eec917 3072 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
3073 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3074 done; \
8ec98d6c 3075 echo "Doing distclean in autoconf" ; \
7fc2ca22 3076 (cd $(HOST_SUBDIR)/autoconf && \
657b58f4
NN
3077 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3078 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3079 "RANLIB=$${RANLIB}" \
3080 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 3081 distclean) \
657b58f4
NN
3082 || exit 1
3083
a7e609d6 3084@endif autoconf
657b58f4 3085
8ec98d6c
NN
3086.PHONY: maybe-maintainer-clean-autoconf maintainer-clean-autoconf
3087maybe-maintainer-clean-autoconf:
a7e609d6
PB
3088@if autoconf
3089maybe-maintainer-clean-autoconf: maintainer-clean-autoconf
657b58f4 3090
8ec98d6c
NN
3091maintainer-clean-autoconf:
3092 @[ -f ./autoconf/Makefile ] || exit 0; \
5230d454
L
3093 r=`${PWD_COMMAND}`; export r; \
3094 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 3095 $(SET_LIB_PATH) \
a675b75a 3096 $(HOST_EXPORTS) \
d5eec917 3097 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
3098 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3099 done; \
8ec98d6c 3100 echo "Doing maintainer-clean in autoconf" ; \
7fc2ca22 3101 (cd $(HOST_SUBDIR)/autoconf && \
657b58f4
NN
3102 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3103 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3104 "RANLIB=$${RANLIB}" \
3105 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 3106 maintainer-clean) \
657b58f4
NN
3107 || exit 1
3108
a7e609d6 3109@endif autoconf
657b58f4 3110
657b58f4 3111
8ec98d6c
NN
3112.PHONY: configure-automake maybe-configure-automake
3113maybe-configure-automake:
a7e609d6
PB
3114@if automake
3115maybe-configure-automake: configure-automake
8ec98d6c 3116configure-automake:
7fc2ca22
PB
3117 @test ! -f $(HOST_SUBDIR)/automake/Makefile || exit 0; \
3118 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/automake ; \
5230d454
L
3119 r=`${PWD_COMMAND}`; export r; \
3120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 3121 $(HOST_EXPORTS) \
8ec98d6c 3122 echo Configuring in automake; \
7fc2ca22 3123 cd $(HOST_SUBDIR)/automake || exit 1; \
8ec98d6c 3124 case $(srcdir) in \
7fc2ca22
PB
3125 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3126 *) topdir=`echo $(HOST_SUBDIR)/automake/ | \
3127 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 3128 esac; \
7fc2ca22
PB
3129 srcdiroption="--srcdir=$${topdir}/automake"; \
3130 libsrcdir="$$s/automake"; \
8ec98d6c 3131 $(SHELL) $${libsrcdir}/configure \
63673a5b 3132 $(HOST_CONFIGARGS) $${srcdiroption} \
657b58f4 3133 || exit 1
a7e609d6 3134@endif automake
657b58f4 3135
8ec98d6c
NN
3136.PHONY: all-automake maybe-all-automake
3137maybe-all-automake:
a7e609d6 3138@if automake
5e6b1f07 3139TARGET-automake=all
a7e609d6 3140maybe-all-automake: all-automake
8ec98d6c
NN
3141all-automake: configure-automake
3142 @r=`${PWD_COMMAND}`; export r; \
3143 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3144 $(SET_LIB_PATH) \
a675b75a 3145 $(HOST_EXPORTS) \
7fc2ca22
PB
3146 (cd $(HOST_SUBDIR)/automake && \
3147 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-automake))
a7e609d6 3148@endif automake
657b58f4 3149
8ec98d6c
NN
3150.PHONY: check-automake maybe-check-automake
3151maybe-check-automake:
a7e609d6
PB
3152@if automake
3153maybe-check-automake: check-automake
657b58f4 3154
8ec98d6c
NN
3155check-automake:
3156 @r=`${PWD_COMMAND}`; export r; \
5230d454 3157 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 3158 $(SET_LIB_PATH) \
a675b75a 3159 $(HOST_EXPORTS) \
7fc2ca22
PB
3160 (cd $(HOST_SUBDIR)/automake && \
3161 $(MAKE) $(FLAGS_TO_PASS) check)
8ec98d6c 3162
a7e609d6 3163@endif automake
8ec98d6c
NN
3164
3165.PHONY: install-automake maybe-install-automake
3166maybe-install-automake:
a7e609d6
PB
3167@if automake
3168maybe-install-automake: install-automake
657b58f4 3169
8ec98d6c
NN
3170install-automake: installdirs
3171 @r=`${PWD_COMMAND}`; export r; \
3172 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3173 $(SET_LIB_PATH) \
a675b75a 3174 $(HOST_EXPORTS) \
7fc2ca22 3175 (cd $(HOST_SUBDIR)/automake && \
93c60b6d 3176 $(MAKE) $(FLAGS_TO_PASS) install)
657b58f4 3177
a7e609d6 3178@endif automake
657b58f4 3179
8ec98d6c
NN
3180# Other targets (info, dvi, etc.)
3181
3182.PHONY: maybe-info-automake info-automake
3183maybe-info-automake:
a7e609d6
PB
3184@if automake
3185maybe-info-automake: info-automake
8ec98d6c
NN
3186
3187info-automake: \
3188 configure-automake
3189 @[ -f ./automake/Makefile ] || exit 0; \
5230d454
L
3190 r=`${PWD_COMMAND}`; export r; \
3191 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 3192 $(SET_LIB_PATH) \
a675b75a 3193 $(HOST_EXPORTS) \
d5eec917 3194 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
3195 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3196 done; \
8ec98d6c 3197 echo "Doing info in automake" ; \
7fc2ca22 3198 (cd $(HOST_SUBDIR)/automake && \
657b58f4
NN
3199 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3200 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3201 "RANLIB=$${RANLIB}" \
3202 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 3203 info) \
657b58f4
NN
3204 || exit 1
3205
a7e609d6 3206@endif automake
657b58f4 3207
8ec98d6c
NN
3208.PHONY: maybe-dvi-automake dvi-automake
3209maybe-dvi-automake:
a7e609d6
PB
3210@if automake
3211maybe-dvi-automake: dvi-automake
657b58f4 3212
8ec98d6c
NN
3213dvi-automake: \
3214 configure-automake
3215 @[ -f ./automake/Makefile ] || exit 0; \
5230d454
L
3216 r=`${PWD_COMMAND}`; export r; \
3217 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 3218 $(SET_LIB_PATH) \
a675b75a 3219 $(HOST_EXPORTS) \
d5eec917 3220 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
3221 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3222 done; \
8ec98d6c 3223 echo "Doing dvi in automake" ; \
7fc2ca22 3224 (cd $(HOST_SUBDIR)/automake && \
657b58f4
NN
3225 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3226 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3227 "RANLIB=$${RANLIB}" \
3228 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 3229 dvi) \
657b58f4
NN
3230 || exit 1
3231
a7e609d6 3232@endif automake
657b58f4 3233
b6fb961f
MS
3234.PHONY: maybe-html-automake html-automake
3235maybe-html-automake:
3236@if automake
3237maybe-html-automake: html-automake
3238
3239html-automake: \
3240 configure-automake
3241 @[ -f ./automake/Makefile ] || exit 0; \
3242 r=`${PWD_COMMAND}`; export r; \
3243 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3244 $(SET_LIB_PATH) \
3245 $(HOST_EXPORTS) \
3246 for flag in $(EXTRA_HOST_FLAGS) ; do \
3247 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3248 done; \
3249 echo "Doing html in automake" ; \
7fc2ca22 3250 (cd $(HOST_SUBDIR)/automake && \
b6fb961f
MS
3251 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3252 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3253 "RANLIB=$${RANLIB}" \
3254 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3255 html) \
3256 || exit 1
3257
3258@endif automake
3259
8ec98d6c
NN
3260.PHONY: maybe-TAGS-automake TAGS-automake
3261maybe-TAGS-automake:
a7e609d6
PB
3262@if automake
3263maybe-TAGS-automake: TAGS-automake
657b58f4 3264
8ec98d6c
NN
3265TAGS-automake: \
3266 configure-automake
3267 @[ -f ./automake/Makefile ] || exit 0; \
5230d454
L
3268 r=`${PWD_COMMAND}`; export r; \
3269 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 3270 $(SET_LIB_PATH) \
a675b75a 3271 $(HOST_EXPORTS) \
d5eec917 3272 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
3273 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3274 done; \
8ec98d6c 3275 echo "Doing TAGS in automake" ; \
7fc2ca22 3276 (cd $(HOST_SUBDIR)/automake && \
657b58f4
NN
3277 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3278 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3279 "RANLIB=$${RANLIB}" \
3280 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 3281 TAGS) \
657b58f4
NN
3282 || exit 1
3283
a7e609d6 3284@endif automake
657b58f4 3285
8ec98d6c
NN
3286.PHONY: maybe-install-info-automake install-info-automake
3287maybe-install-info-automake:
a7e609d6
PB
3288@if automake
3289maybe-install-info-automake: install-info-automake
657b58f4 3290
8ec98d6c
NN
3291install-info-automake: \
3292 configure-automake \
3293 info-automake
3294 @[ -f ./automake/Makefile ] || exit 0; \
5230d454
L
3295 r=`${PWD_COMMAND}`; export r; \
3296 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 3297 $(SET_LIB_PATH) \
a675b75a 3298 $(HOST_EXPORTS) \
d5eec917 3299 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
3300 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3301 done; \
8ec98d6c 3302 echo "Doing install-info in automake" ; \
7fc2ca22 3303 (cd $(HOST_SUBDIR)/automake && \
657b58f4
NN
3304 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3305 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3306 "RANLIB=$${RANLIB}" \
3307 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 3308 install-info) \
657b58f4
NN
3309 || exit 1
3310
a7e609d6 3311@endif automake
657b58f4 3312
8ec98d6c
NN
3313.PHONY: maybe-installcheck-automake installcheck-automake
3314maybe-installcheck-automake:
a7e609d6
PB
3315@if automake
3316maybe-installcheck-automake: installcheck-automake
657b58f4 3317
8ec98d6c
NN
3318installcheck-automake: \
3319 configure-automake
3320 @[ -f ./automake/Makefile ] || exit 0; \
5230d454
L
3321 r=`${PWD_COMMAND}`; export r; \
3322 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 3323 $(SET_LIB_PATH) \
a675b75a 3324 $(HOST_EXPORTS) \
d5eec917 3325 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
3326 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3327 done; \
8ec98d6c 3328 echo "Doing installcheck in automake" ; \
7fc2ca22 3329 (cd $(HOST_SUBDIR)/automake && \
657b58f4
NN
3330 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3331 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3332 "RANLIB=$${RANLIB}" \
3333 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 3334 installcheck) \
657b58f4
NN
3335 || exit 1
3336
a7e609d6 3337@endif automake
657b58f4 3338
8ec98d6c
NN
3339.PHONY: maybe-mostlyclean-automake mostlyclean-automake
3340maybe-mostlyclean-automake:
a7e609d6
PB
3341@if automake
3342maybe-mostlyclean-automake: mostlyclean-automake
657b58f4 3343
8ec98d6c
NN
3344mostlyclean-automake:
3345 @[ -f ./automake/Makefile ] || exit 0; \
5230d454
L
3346 r=`${PWD_COMMAND}`; export r; \
3347 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 3348 $(SET_LIB_PATH) \
a675b75a 3349 $(HOST_EXPORTS) \
d5eec917 3350 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
3351 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3352 done; \
8ec98d6c 3353 echo "Doing mostlyclean in automake" ; \
7fc2ca22 3354 (cd $(HOST_SUBDIR)/automake && \
657b58f4
NN
3355 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3356 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3357 "RANLIB=$${RANLIB}" \
3358 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 3359 mostlyclean) \
657b58f4
NN
3360 || exit 1
3361
a7e609d6 3362@endif automake
657b58f4 3363
8ec98d6c
NN
3364.PHONY: maybe-clean-automake clean-automake
3365maybe-clean-automake:
a7e609d6
PB
3366@if automake
3367maybe-clean-automake: clean-automake
657b58f4 3368
8ec98d6c
NN
3369clean-automake:
3370 @[ -f ./automake/Makefile ] || exit 0; \
5230d454
L
3371 r=`${PWD_COMMAND}`; export r; \
3372 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 3373 $(SET_LIB_PATH) \
a675b75a 3374 $(HOST_EXPORTS) \
d5eec917 3375 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
3376 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3377 done; \
8ec98d6c 3378 echo "Doing clean in automake" ; \
7fc2ca22 3379 (cd $(HOST_SUBDIR)/automake && \
657b58f4
NN
3380 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3381 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3382 "RANLIB=$${RANLIB}" \
3383 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 3384 clean) \
657b58f4
NN
3385 || exit 1
3386
a7e609d6 3387@endif automake
657b58f4 3388
8ec98d6c
NN
3389.PHONY: maybe-distclean-automake distclean-automake
3390maybe-distclean-automake:
a7e609d6
PB
3391@if automake
3392maybe-distclean-automake: distclean-automake
657b58f4 3393
8ec98d6c
NN
3394distclean-automake:
3395 @[ -f ./automake/Makefile ] || exit 0; \
5230d454
L
3396 r=`${PWD_COMMAND}`; export r; \
3397 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 3398 $(SET_LIB_PATH) \
a675b75a 3399 $(HOST_EXPORTS) \
d5eec917 3400 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
3401 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3402 done; \
8ec98d6c 3403 echo "Doing distclean in automake" ; \
7fc2ca22 3404 (cd $(HOST_SUBDIR)/automake && \
657b58f4
NN
3405 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3406 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3407 "RANLIB=$${RANLIB}" \
3408 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 3409 distclean) \
657b58f4
NN
3410 || exit 1
3411
a7e609d6 3412@endif automake
657b58f4 3413
8ec98d6c
NN
3414.PHONY: maybe-maintainer-clean-automake maintainer-clean-automake
3415maybe-maintainer-clean-automake:
a7e609d6
PB
3416@if automake
3417maybe-maintainer-clean-automake: maintainer-clean-automake
657b58f4 3418
8ec98d6c
NN
3419maintainer-clean-automake:
3420 @[ -f ./automake/Makefile ] || exit 0; \
5230d454
L
3421 r=`${PWD_COMMAND}`; export r; \
3422 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 3423 $(SET_LIB_PATH) \
a675b75a 3424 $(HOST_EXPORTS) \
d5eec917 3425 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
3426 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3427 done; \
8ec98d6c 3428 echo "Doing maintainer-clean in automake" ; \
7fc2ca22 3429 (cd $(HOST_SUBDIR)/automake && \
657b58f4
NN
3430 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3431 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3432 "RANLIB=$${RANLIB}" \
3433 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 3434 maintainer-clean) \
657b58f4
NN
3435 || exit 1
3436
a7e609d6 3437@endif automake
657b58f4 3438
657b58f4 3439
8ec98d6c
NN
3440.PHONY: configure-bash maybe-configure-bash
3441maybe-configure-bash:
a7e609d6
PB
3442@if bash
3443maybe-configure-bash: configure-bash
8ec98d6c 3444configure-bash:
7fc2ca22
PB
3445 @test ! -f $(HOST_SUBDIR)/bash/Makefile || exit 0; \
3446 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bash ; \
5230d454
L
3447 r=`${PWD_COMMAND}`; export r; \
3448 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 3449 $(HOST_EXPORTS) \
8ec98d6c 3450 echo Configuring in bash; \
7fc2ca22 3451 cd $(HOST_SUBDIR)/bash || exit 1; \
8ec98d6c 3452 case $(srcdir) in \
7fc2ca22
PB
3453 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3454 *) topdir=`echo $(HOST_SUBDIR)/bash/ | \
3455 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 3456 esac; \
7fc2ca22
PB
3457 srcdiroption="--srcdir=$${topdir}/bash"; \
3458 libsrcdir="$$s/bash"; \
8ec98d6c 3459 $(SHELL) $${libsrcdir}/configure \
63673a5b 3460 $(HOST_CONFIGARGS) $${srcdiroption} \
657b58f4 3461 || exit 1
a7e609d6 3462@endif bash
657b58f4 3463
8ec98d6c
NN
3464.PHONY: all-bash maybe-all-bash
3465maybe-all-bash:
a7e609d6 3466@if bash
5e6b1f07 3467TARGET-bash=all
a7e609d6 3468maybe-all-bash: all-bash
8ec98d6c
NN
3469all-bash: configure-bash
3470 @r=`${PWD_COMMAND}`; export r; \
3471 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3472 $(SET_LIB_PATH) \
a675b75a 3473 $(HOST_EXPORTS) \
7fc2ca22
PB
3474 (cd $(HOST_SUBDIR)/bash && \
3475 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-bash))
a7e609d6 3476@endif bash
657b58f4 3477
8ec98d6c
NN
3478.PHONY: check-bash maybe-check-bash
3479maybe-check-bash:
a7e609d6
PB
3480@if bash
3481maybe-check-bash: check-bash
657b58f4 3482
8ec98d6c
NN
3483check-bash:
3484 @r=`${PWD_COMMAND}`; export r; \
5230d454 3485 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 3486 $(SET_LIB_PATH) \
a675b75a 3487 $(HOST_EXPORTS) \
7fc2ca22
PB
3488 (cd $(HOST_SUBDIR)/bash && \
3489 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 3490
a7e609d6 3491@endif bash
657b58f4 3492
8ec98d6c
NN
3493.PHONY: install-bash maybe-install-bash
3494maybe-install-bash:
a7e609d6
PB
3495@if bash
3496maybe-install-bash: install-bash
657b58f4 3497
8ec98d6c
NN
3498install-bash: installdirs
3499 @r=`${PWD_COMMAND}`; export r; \
5230d454 3500 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 3501 $(SET_LIB_PATH) \
a675b75a 3502 $(HOST_EXPORTS) \
7fc2ca22 3503 (cd $(HOST_SUBDIR)/bash && \
93c60b6d 3504 $(MAKE) $(FLAGS_TO_PASS) install)
657b58f4 3505
a7e609d6 3506@endif bash
657b58f4 3507
8ec98d6c 3508# Other targets (info, dvi, etc.)
657b58f4 3509
8ec98d6c
NN
3510.PHONY: maybe-info-bash info-bash
3511maybe-info-bash:
a7e609d6
PB
3512@if bash
3513maybe-info-bash: info-bash
8ec98d6c
NN
3514
3515info-bash: \
3516 configure-bash
3517 @[ -f ./bash/Makefile ] || exit 0; \
5230d454
L
3518 r=`${PWD_COMMAND}`; export r; \
3519 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 3520 $(SET_LIB_PATH) \
a675b75a 3521 $(HOST_EXPORTS) \
d5eec917 3522 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
3523 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3524 done; \
8ec98d6c 3525 echo "Doing info in bash" ; \
7fc2ca22 3526 (cd $(HOST_SUBDIR)/bash && \
657b58f4
NN
3527 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3528 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3529 "RANLIB=$${RANLIB}" \
3530 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 3531 info) \
657b58f4
NN
3532 || exit 1
3533
a7e609d6 3534@endif bash
657b58f4 3535
8ec98d6c
NN
3536.PHONY: maybe-dvi-bash dvi-bash
3537maybe-dvi-bash:
a7e609d6
PB
3538@if bash
3539maybe-dvi-bash: dvi-bash
657b58f4 3540
8ec98d6c
NN
3541dvi-bash: \
3542 configure-bash
3543 @[ -f ./bash/Makefile ] || exit 0; \
5230d454
L
3544 r=`${PWD_COMMAND}`; export r; \
3545 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 3546 $(SET_LIB_PATH) \
a675b75a 3547 $(HOST_EXPORTS) \
d5eec917 3548 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
3549 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3550 done; \
8ec98d6c 3551 echo "Doing dvi in bash" ; \
7fc2ca22 3552 (cd $(HOST_SUBDIR)/bash && \
657b58f4
NN
3553 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3554 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3555 "RANLIB=$${RANLIB}" \
3556 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 3557 dvi) \
657b58f4
NN
3558 || exit 1
3559
a7e609d6 3560@endif bash
657b58f4 3561
b6fb961f
MS
3562.PHONY: maybe-html-bash html-bash
3563maybe-html-bash:
3564@if bash
3565maybe-html-bash: html-bash
3566
3567html-bash: \
3568 configure-bash
3569 @[ -f ./bash/Makefile ] || exit 0; \
3570 r=`${PWD_COMMAND}`; export r; \
3571 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3572 $(SET_LIB_PATH) \
3573 $(HOST_EXPORTS) \
3574 for flag in $(EXTRA_HOST_FLAGS) ; do \
3575 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3576 done; \
3577 echo "Doing html in bash" ; \
7fc2ca22 3578 (cd $(HOST_SUBDIR)/bash && \
b6fb961f
MS
3579 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3580 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3581 "RANLIB=$${RANLIB}" \
3582 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3583 html) \
3584 || exit 1
3585
3586@endif bash
3587
8ec98d6c
NN
3588.PHONY: maybe-TAGS-bash TAGS-bash
3589maybe-TAGS-bash:
a7e609d6
PB
3590@if bash
3591maybe-TAGS-bash: TAGS-bash
657b58f4 3592
8ec98d6c
NN
3593TAGS-bash: \
3594 configure-bash
3595 @[ -f ./bash/Makefile ] || exit 0; \
5230d454
L
3596 r=`${PWD_COMMAND}`; export r; \
3597 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 3598 $(SET_LIB_PATH) \
a675b75a 3599 $(HOST_EXPORTS) \
d5eec917 3600 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
3601 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3602 done; \
8ec98d6c 3603 echo "Doing TAGS in bash" ; \
7fc2ca22 3604 (cd $(HOST_SUBDIR)/bash && \
657b58f4
NN
3605 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3606 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3607 "RANLIB=$${RANLIB}" \
3608 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 3609 TAGS) \
657b58f4
NN
3610 || exit 1
3611
a7e609d6 3612@endif bash
657b58f4 3613
8ec98d6c
NN
3614.PHONY: maybe-install-info-bash install-info-bash
3615maybe-install-info-bash:
a7e609d6
PB
3616@if bash
3617maybe-install-info-bash: install-info-bash
657b58f4 3618
8ec98d6c
NN
3619install-info-bash: \
3620 configure-bash \
3621 info-bash
3622 @[ -f ./bash/Makefile ] || exit 0; \
5230d454
L
3623 r=`${PWD_COMMAND}`; export r; \
3624 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 3625 $(SET_LIB_PATH) \
a675b75a 3626 $(HOST_EXPORTS) \
d5eec917 3627 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
3628 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3629 done; \
8ec98d6c 3630 echo "Doing install-info in bash" ; \
7fc2ca22 3631 (cd $(HOST_SUBDIR)/bash && \
657b58f4
NN
3632 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3633 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3634 "RANLIB=$${RANLIB}" \
3635 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 3636 install-info) \
657b58f4
NN
3637 || exit 1
3638
a7e609d6 3639@endif bash
657b58f4 3640
8ec98d6c
NN
3641.PHONY: maybe-installcheck-bash installcheck-bash
3642maybe-installcheck-bash:
a7e609d6
PB
3643@if bash
3644maybe-installcheck-bash: installcheck-bash
657b58f4 3645
8ec98d6c
NN
3646installcheck-bash: \
3647 configure-bash
3648 @[ -f ./bash/Makefile ] || exit 0; \
5230d454
L
3649 r=`${PWD_COMMAND}`; export r; \
3650 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 3651 $(SET_LIB_PATH) \
a675b75a 3652 $(HOST_EXPORTS) \
d5eec917 3653 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
3654 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3655 done; \
8ec98d6c 3656 echo "Doing installcheck in bash" ; \
7fc2ca22 3657 (cd $(HOST_SUBDIR)/bash && \
657b58f4
NN
3658 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3659 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3660 "RANLIB=$${RANLIB}" \
3661 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 3662 installcheck) \
657b58f4
NN
3663 || exit 1
3664
a7e609d6 3665@endif bash
657b58f4 3666
8ec98d6c
NN
3667.PHONY: maybe-mostlyclean-bash mostlyclean-bash
3668maybe-mostlyclean-bash:
a7e609d6
PB
3669@if bash
3670maybe-mostlyclean-bash: mostlyclean-bash
657b58f4 3671
8ec98d6c
NN
3672mostlyclean-bash:
3673 @[ -f ./bash/Makefile ] || exit 0; \
5230d454
L
3674 r=`${PWD_COMMAND}`; export r; \
3675 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 3676 $(SET_LIB_PATH) \
a675b75a 3677 $(HOST_EXPORTS) \
d5eec917 3678 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
3679 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3680 done; \
8ec98d6c 3681 echo "Doing mostlyclean in bash" ; \
7fc2ca22 3682 (cd $(HOST_SUBDIR)/bash && \
657b58f4
NN
3683 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3684 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3685 "RANLIB=$${RANLIB}" \
3686 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 3687 mostlyclean) \
657b58f4
NN
3688 || exit 1
3689
a7e609d6 3690@endif bash
657b58f4 3691
8ec98d6c
NN
3692.PHONY: maybe-clean-bash clean-bash
3693maybe-clean-bash:
a7e609d6
PB
3694@if bash
3695maybe-clean-bash: clean-bash
657b58f4 3696
8ec98d6c
NN
3697clean-bash:
3698 @[ -f ./bash/Makefile ] || exit 0; \
5230d454
L
3699 r=`${PWD_COMMAND}`; export r; \
3700 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 3701 $(SET_LIB_PATH) \
a675b75a 3702 $(HOST_EXPORTS) \
d5eec917 3703 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
3704 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3705 done; \
8ec98d6c 3706 echo "Doing clean in bash" ; \
7fc2ca22 3707 (cd $(HOST_SUBDIR)/bash && \
657b58f4
NN
3708 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3709 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3710 "RANLIB=$${RANLIB}" \
3711 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 3712 clean) \
657b58f4
NN
3713 || exit 1
3714
a7e609d6 3715@endif bash
657b58f4 3716
8ec98d6c
NN
3717.PHONY: maybe-distclean-bash distclean-bash
3718maybe-distclean-bash:
a7e609d6
PB
3719@if bash
3720maybe-distclean-bash: distclean-bash
657b58f4 3721
8ec98d6c
NN
3722distclean-bash:
3723 @[ -f ./bash/Makefile ] || exit 0; \
5230d454
L
3724 r=`${PWD_COMMAND}`; export r; \
3725 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 3726 $(SET_LIB_PATH) \
a675b75a 3727 $(HOST_EXPORTS) \
d5eec917 3728 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
3729 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3730 done; \
8ec98d6c 3731 echo "Doing distclean in bash" ; \
7fc2ca22 3732 (cd $(HOST_SUBDIR)/bash && \
657b58f4
NN
3733 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3734 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3735 "RANLIB=$${RANLIB}" \
3736 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 3737 distclean) \
657b58f4
NN
3738 || exit 1
3739
a7e609d6 3740@endif bash
657b58f4 3741
8ec98d6c
NN
3742.PHONY: maybe-maintainer-clean-bash maintainer-clean-bash
3743maybe-maintainer-clean-bash:
a7e609d6
PB
3744@if bash
3745maybe-maintainer-clean-bash: maintainer-clean-bash
657b58f4 3746
8ec98d6c
NN
3747maintainer-clean-bash:
3748 @[ -f ./bash/Makefile ] || exit 0; \
5230d454
L
3749 r=`${PWD_COMMAND}`; export r; \
3750 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 3751 $(SET_LIB_PATH) \
a675b75a 3752 $(HOST_EXPORTS) \
d5eec917 3753 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
3754 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3755 done; \
8ec98d6c 3756 echo "Doing maintainer-clean in bash" ; \
7fc2ca22 3757 (cd $(HOST_SUBDIR)/bash && \
657b58f4
NN
3758 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3759 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3760 "RANLIB=$${RANLIB}" \
3761 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 3762 maintainer-clean) \
657b58f4
NN
3763 || exit 1
3764
a7e609d6 3765@endif bash
657b58f4 3766
657b58f4 3767
8ec98d6c
NN
3768.PHONY: configure-bfd maybe-configure-bfd
3769maybe-configure-bfd:
a7e609d6
PB
3770@if bfd
3771maybe-configure-bfd: configure-bfd
8ec98d6c 3772configure-bfd:
6a19fd82 3773 @test -f stage_last && exit 0; \
7fc2ca22
PB
3774 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
3775 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
5230d454
L
3776 r=`${PWD_COMMAND}`; export r; \
3777 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 3778 $(HOST_EXPORTS) \
8ec98d6c 3779 echo Configuring in bfd; \
7fc2ca22 3780 cd $(HOST_SUBDIR)/bfd || exit 1; \
8ec98d6c 3781 case $(srcdir) in \
7fc2ca22
PB
3782 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3783 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3784 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 3785 esac; \
7fc2ca22
PB
3786 srcdiroption="--srcdir=$${topdir}/bfd"; \
3787 libsrcdir="$$s/bfd"; \
8ec98d6c 3788 $(SHELL) $${libsrcdir}/configure \
63673a5b 3789 $(HOST_CONFIGARGS) $${srcdiroption} \
657b58f4 3790 || exit 1
a7e609d6 3791@endif bfd
657b58f4 3792
8ec98d6c
NN
3793.PHONY: all-bfd maybe-all-bfd
3794maybe-all-bfd:
a7e609d6 3795@if bfd
5e6b1f07 3796TARGET-bfd=all
a7e609d6 3797maybe-all-bfd: all-bfd
8ec98d6c 3798all-bfd: configure-bfd
6a19fd82
PB
3799 @test -f stage_last && exit 0; \
3800 r=`${PWD_COMMAND}`; export r; \
8ec98d6c
NN
3801 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3802 $(SET_LIB_PATH) \
a675b75a 3803 $(HOST_EXPORTS) \
7fc2ca22
PB
3804 (cd $(HOST_SUBDIR)/bfd && \
3805 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-bfd))
a7e609d6 3806@endif bfd
657b58f4 3807
8ec98d6c
NN
3808.PHONY: check-bfd maybe-check-bfd
3809maybe-check-bfd:
a7e609d6
PB
3810@if bfd
3811maybe-check-bfd: check-bfd
657b58f4 3812
8ec98d6c
NN
3813check-bfd:
3814 @r=`${PWD_COMMAND}`; export r; \
5230d454 3815 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 3816 $(SET_LIB_PATH) \
a675b75a 3817 $(HOST_EXPORTS) \
7fc2ca22
PB
3818 (cd $(HOST_SUBDIR)/bfd && \
3819 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 3820
a7e609d6 3821@endif bfd
657b58f4 3822
8ec98d6c
NN
3823.PHONY: install-bfd maybe-install-bfd
3824maybe-install-bfd:
a7e609d6
PB
3825@if bfd
3826maybe-install-bfd: install-bfd
657b58f4 3827
8ec98d6c
NN
3828install-bfd: installdirs
3829 @r=`${PWD_COMMAND}`; export r; \
5230d454 3830 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 3831 $(SET_LIB_PATH) \
a675b75a 3832 $(HOST_EXPORTS) \
7fc2ca22 3833 (cd $(HOST_SUBDIR)/bfd && \
93c60b6d 3834 $(MAKE) $(FLAGS_TO_PASS) install)
657b58f4 3835
a7e609d6 3836@endif bfd
657b58f4 3837
8ec98d6c 3838# Other targets (info, dvi, etc.)
657b58f4 3839
8ec98d6c
NN
3840.PHONY: maybe-info-bfd info-bfd
3841maybe-info-bfd:
a7e609d6
PB
3842@if bfd
3843maybe-info-bfd: info-bfd
8ec98d6c
NN
3844
3845info-bfd: \
3846 configure-bfd
3847 @[ -f ./bfd/Makefile ] || exit 0; \
5230d454
L
3848 r=`${PWD_COMMAND}`; export r; \
3849 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 3850 $(SET_LIB_PATH) \
a675b75a 3851 $(HOST_EXPORTS) \
d5eec917 3852 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
3853 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3854 done; \
8ec98d6c 3855 echo "Doing info in bfd" ; \
7fc2ca22 3856 (cd $(HOST_SUBDIR)/bfd && \
657b58f4
NN
3857 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3858 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3859 "RANLIB=$${RANLIB}" \
3860 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 3861 info) \
657b58f4
NN
3862 || exit 1
3863
a7e609d6 3864@endif bfd
657b58f4 3865
8ec98d6c
NN
3866.PHONY: maybe-dvi-bfd dvi-bfd
3867maybe-dvi-bfd:
a7e609d6
PB
3868@if bfd
3869maybe-dvi-bfd: dvi-bfd
657b58f4 3870
8ec98d6c
NN
3871dvi-bfd: \
3872 configure-bfd
3873 @[ -f ./bfd/Makefile ] || exit 0; \
5230d454
L
3874 r=`${PWD_COMMAND}`; export r; \
3875 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 3876 $(SET_LIB_PATH) \
a675b75a 3877 $(HOST_EXPORTS) \
d5eec917 3878 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
3879 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3880 done; \
8ec98d6c 3881 echo "Doing dvi in bfd" ; \
7fc2ca22 3882 (cd $(HOST_SUBDIR)/bfd && \
657b58f4
NN
3883 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3884 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3885 "RANLIB=$${RANLIB}" \
3886 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 3887 dvi) \
657b58f4
NN
3888 || exit 1
3889
a7e609d6 3890@endif bfd
657b58f4 3891
b6fb961f
MS
3892.PHONY: maybe-html-bfd html-bfd
3893maybe-html-bfd:
3894@if bfd
3895maybe-html-bfd: html-bfd
3896
3897html-bfd: \
3898 configure-bfd
3899 @[ -f ./bfd/Makefile ] || exit 0; \
3900 r=`${PWD_COMMAND}`; export r; \
3901 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3902 $(SET_LIB_PATH) \
3903 $(HOST_EXPORTS) \
3904 for flag in $(EXTRA_HOST_FLAGS) ; do \
3905 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3906 done; \
3907 echo "Doing html in bfd" ; \
7fc2ca22 3908 (cd $(HOST_SUBDIR)/bfd && \
b6fb961f
MS
3909 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3910 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3911 "RANLIB=$${RANLIB}" \
3912 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3913 html) \
3914 || exit 1
3915
3916@endif bfd
3917
8ec98d6c
NN
3918.PHONY: maybe-TAGS-bfd TAGS-bfd
3919maybe-TAGS-bfd:
a7e609d6
PB
3920@if bfd
3921maybe-TAGS-bfd: TAGS-bfd
657b58f4 3922
8ec98d6c
NN
3923TAGS-bfd: \
3924 configure-bfd
3925 @[ -f ./bfd/Makefile ] || exit 0; \
5230d454
L
3926 r=`${PWD_COMMAND}`; export r; \
3927 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 3928 $(SET_LIB_PATH) \
a675b75a 3929 $(HOST_EXPORTS) \
d5eec917 3930 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
3931 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3932 done; \
8ec98d6c 3933 echo "Doing TAGS in bfd" ; \
7fc2ca22 3934 (cd $(HOST_SUBDIR)/bfd && \
657b58f4
NN
3935 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3936 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3937 "RANLIB=$${RANLIB}" \
3938 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 3939 TAGS) \
657b58f4
NN
3940 || exit 1
3941
a7e609d6 3942@endif bfd
657b58f4 3943
8ec98d6c
NN
3944.PHONY: maybe-install-info-bfd install-info-bfd
3945maybe-install-info-bfd:
a7e609d6
PB
3946@if bfd
3947maybe-install-info-bfd: install-info-bfd
657b58f4 3948
8ec98d6c
NN
3949install-info-bfd: \
3950 configure-bfd \
3951 info-bfd
3952 @[ -f ./bfd/Makefile ] || exit 0; \
5230d454
L
3953 r=`${PWD_COMMAND}`; export r; \
3954 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 3955 $(SET_LIB_PATH) \
a675b75a 3956 $(HOST_EXPORTS) \
d5eec917 3957 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
3958 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3959 done; \
8ec98d6c 3960 echo "Doing install-info in bfd" ; \
7fc2ca22 3961 (cd $(HOST_SUBDIR)/bfd && \
657b58f4
NN
3962 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3963 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3964 "RANLIB=$${RANLIB}" \
3965 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 3966 install-info) \
657b58f4
NN
3967 || exit 1
3968
a7e609d6 3969@endif bfd
657b58f4 3970
8ec98d6c
NN
3971.PHONY: maybe-installcheck-bfd installcheck-bfd
3972maybe-installcheck-bfd:
a7e609d6
PB
3973@if bfd
3974maybe-installcheck-bfd: installcheck-bfd
657b58f4 3975
8ec98d6c
NN
3976installcheck-bfd: \
3977 configure-bfd
3978 @[ -f ./bfd/Makefile ] || exit 0; \
5230d454
L
3979 r=`${PWD_COMMAND}`; export r; \
3980 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 3981 $(SET_LIB_PATH) \
a675b75a 3982 $(HOST_EXPORTS) \
d5eec917 3983 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
3984 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3985 done; \
8ec98d6c 3986 echo "Doing installcheck in bfd" ; \
7fc2ca22 3987 (cd $(HOST_SUBDIR)/bfd && \
657b58f4
NN
3988 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3989 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3990 "RANLIB=$${RANLIB}" \
3991 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 3992 installcheck) \
657b58f4
NN
3993 || exit 1
3994
a7e609d6 3995@endif bfd
657b58f4 3996
8ec98d6c
NN
3997.PHONY: maybe-mostlyclean-bfd mostlyclean-bfd
3998maybe-mostlyclean-bfd:
a7e609d6
PB
3999@if bfd
4000maybe-mostlyclean-bfd: mostlyclean-bfd
657b58f4 4001
8ec98d6c
NN
4002mostlyclean-bfd:
4003 @[ -f ./bfd/Makefile ] || exit 0; \
5230d454
L
4004 r=`${PWD_COMMAND}`; export r; \
4005 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 4006 $(SET_LIB_PATH) \
a675b75a 4007 $(HOST_EXPORTS) \
d5eec917 4008 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4009 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4010 done; \
8ec98d6c 4011 echo "Doing mostlyclean in bfd" ; \
7fc2ca22 4012 (cd $(HOST_SUBDIR)/bfd && \
657b58f4
NN
4013 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4014 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4015 "RANLIB=$${RANLIB}" \
4016 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 4017 mostlyclean) \
657b58f4
NN
4018 || exit 1
4019
a7e609d6 4020@endif bfd
657b58f4 4021
8ec98d6c
NN
4022.PHONY: maybe-clean-bfd clean-bfd
4023maybe-clean-bfd:
a7e609d6
PB
4024@if bfd
4025maybe-clean-bfd: clean-bfd
657b58f4 4026
8ec98d6c
NN
4027clean-bfd:
4028 @[ -f ./bfd/Makefile ] || exit 0; \
5230d454
L
4029 r=`${PWD_COMMAND}`; export r; \
4030 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 4031 $(SET_LIB_PATH) \
a675b75a 4032 $(HOST_EXPORTS) \
d5eec917 4033 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4034 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4035 done; \
8ec98d6c 4036 echo "Doing clean in bfd" ; \
7fc2ca22 4037 (cd $(HOST_SUBDIR)/bfd && \
657b58f4
NN
4038 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4039 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4040 "RANLIB=$${RANLIB}" \
4041 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 4042 clean) \
657b58f4
NN
4043 || exit 1
4044
a7e609d6 4045@endif bfd
657b58f4 4046
8ec98d6c
NN
4047.PHONY: maybe-distclean-bfd distclean-bfd
4048maybe-distclean-bfd:
a7e609d6
PB
4049@if bfd
4050maybe-distclean-bfd: distclean-bfd
657b58f4 4051
8ec98d6c
NN
4052distclean-bfd:
4053 @[ -f ./bfd/Makefile ] || exit 0; \
5230d454
L
4054 r=`${PWD_COMMAND}`; export r; \
4055 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 4056 $(SET_LIB_PATH) \
a675b75a 4057 $(HOST_EXPORTS) \
d5eec917 4058 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4059 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4060 done; \
8ec98d6c 4061 echo "Doing distclean in bfd" ; \
7fc2ca22 4062 (cd $(HOST_SUBDIR)/bfd && \
657b58f4
NN
4063 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4064 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4065 "RANLIB=$${RANLIB}" \
4066 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 4067 distclean) \
657b58f4
NN
4068 || exit 1
4069
a7e609d6 4070@endif bfd
657b58f4 4071
8ec98d6c
NN
4072.PHONY: maybe-maintainer-clean-bfd maintainer-clean-bfd
4073maybe-maintainer-clean-bfd:
a7e609d6
PB
4074@if bfd
4075maybe-maintainer-clean-bfd: maintainer-clean-bfd
d832a288 4076
8ec98d6c
NN
4077maintainer-clean-bfd:
4078 @[ -f ./bfd/Makefile ] || exit 0; \
d832a288
DD
4079 r=`${PWD_COMMAND}`; export r; \
4080 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4081 $(SET_LIB_PATH) \
a675b75a 4082 $(HOST_EXPORTS) \
d5eec917 4083 for flag in $(EXTRA_HOST_FLAGS) ; do \
d832a288
DD
4084 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4085 done; \
8ec98d6c 4086 echo "Doing maintainer-clean in bfd" ; \
7fc2ca22 4087 (cd $(HOST_SUBDIR)/bfd && \
d832a288
DD
4088 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4089 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4090 "RANLIB=$${RANLIB}" \
4091 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 4092 maintainer-clean) \
d832a288
DD
4093 || exit 1
4094
a7e609d6 4095@endif bfd
d832a288 4096
657b58f4 4097
8ec98d6c
NN
4098.PHONY: configure-opcodes maybe-configure-opcodes
4099maybe-configure-opcodes:
a7e609d6
PB
4100@if opcodes
4101maybe-configure-opcodes: configure-opcodes
8ec98d6c 4102configure-opcodes:
6a19fd82 4103 @test -f stage_last && exit 0; \
7fc2ca22
PB
4104 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
4105 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
8ec98d6c
NN
4106 r=`${PWD_COMMAND}`; export r; \
4107 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 4108 $(HOST_EXPORTS) \
8ec98d6c 4109 echo Configuring in opcodes; \
7fc2ca22 4110 cd $(HOST_SUBDIR)/opcodes || exit 1; \
8ec98d6c 4111 case $(srcdir) in \
7fc2ca22
PB
4112 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4113 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4114 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 4115 esac; \
7fc2ca22
PB
4116 srcdiroption="--srcdir=$${topdir}/opcodes"; \
4117 libsrcdir="$$s/opcodes"; \
8ec98d6c 4118 $(SHELL) $${libsrcdir}/configure \
63673a5b 4119 $(HOST_CONFIGARGS) $${srcdiroption} \
8ec98d6c 4120 || exit 1
a7e609d6 4121@endif opcodes
657b58f4 4122
8ec98d6c
NN
4123.PHONY: all-opcodes maybe-all-opcodes
4124maybe-all-opcodes:
a7e609d6 4125@if opcodes
5e6b1f07 4126TARGET-opcodes=all
a7e609d6 4127maybe-all-opcodes: all-opcodes
8ec98d6c 4128all-opcodes: configure-opcodes
6a19fd82
PB
4129 @test -f stage_last && exit 0; \
4130 r=`${PWD_COMMAND}`; export r; \
8ec98d6c
NN
4131 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4132 $(SET_LIB_PATH) \
a675b75a 4133 $(HOST_EXPORTS) \
7fc2ca22
PB
4134 (cd $(HOST_SUBDIR)/opcodes && \
4135 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-opcodes))
a7e609d6 4136@endif opcodes
657b58f4 4137
8ec98d6c
NN
4138.PHONY: check-opcodes maybe-check-opcodes
4139maybe-check-opcodes:
a7e609d6
PB
4140@if opcodes
4141maybe-check-opcodes: check-opcodes
8ec98d6c
NN
4142
4143check-opcodes:
4144 @r=`${PWD_COMMAND}`; export r; \
5230d454 4145 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 4146 $(SET_LIB_PATH) \
a675b75a 4147 $(HOST_EXPORTS) \
7fc2ca22
PB
4148 (cd $(HOST_SUBDIR)/opcodes && \
4149 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 4150
a7e609d6 4151@endif opcodes
657b58f4 4152
8ec98d6c
NN
4153.PHONY: install-opcodes maybe-install-opcodes
4154maybe-install-opcodes:
a7e609d6
PB
4155@if opcodes
4156maybe-install-opcodes: install-opcodes
657b58f4 4157
8ec98d6c
NN
4158install-opcodes: installdirs
4159 @r=`${PWD_COMMAND}`; export r; \
4160 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4161 $(SET_LIB_PATH) \
a675b75a 4162 $(HOST_EXPORTS) \
7fc2ca22 4163 (cd $(HOST_SUBDIR)/opcodes && \
93c60b6d 4164 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 4165
a7e609d6 4166@endif opcodes
8ec98d6c
NN
4167
4168# Other targets (info, dvi, etc.)
4169
4170.PHONY: maybe-info-opcodes info-opcodes
4171maybe-info-opcodes:
a7e609d6
PB
4172@if opcodes
4173maybe-info-opcodes: info-opcodes
8ec98d6c
NN
4174
4175info-opcodes: \
4176 configure-opcodes
4177 @[ -f ./opcodes/Makefile ] || exit 0; \
5230d454
L
4178 r=`${PWD_COMMAND}`; export r; \
4179 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 4180 $(SET_LIB_PATH) \
a675b75a 4181 $(HOST_EXPORTS) \
d5eec917 4182 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4183 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4184 done; \
8ec98d6c 4185 echo "Doing info in opcodes" ; \
7fc2ca22 4186 (cd $(HOST_SUBDIR)/opcodes && \
657b58f4
NN
4187 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4188 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4189 "RANLIB=$${RANLIB}" \
4190 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 4191 info) \
657b58f4
NN
4192 || exit 1
4193
a7e609d6 4194@endif opcodes
657b58f4 4195
8ec98d6c
NN
4196.PHONY: maybe-dvi-opcodes dvi-opcodes
4197maybe-dvi-opcodes:
a7e609d6
PB
4198@if opcodes
4199maybe-dvi-opcodes: dvi-opcodes
657b58f4 4200
8ec98d6c
NN
4201dvi-opcodes: \
4202 configure-opcodes
4203 @[ -f ./opcodes/Makefile ] || exit 0; \
5230d454
L
4204 r=`${PWD_COMMAND}`; export r; \
4205 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 4206 $(SET_LIB_PATH) \
a675b75a 4207 $(HOST_EXPORTS) \
d5eec917 4208 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4209 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4210 done; \
8ec98d6c 4211 echo "Doing dvi in opcodes" ; \
7fc2ca22 4212 (cd $(HOST_SUBDIR)/opcodes && \
657b58f4
NN
4213 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4214 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4215 "RANLIB=$${RANLIB}" \
4216 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 4217 dvi) \
657b58f4
NN
4218 || exit 1
4219
a7e609d6 4220@endif opcodes
657b58f4 4221
b6fb961f
MS
4222.PHONY: maybe-html-opcodes html-opcodes
4223maybe-html-opcodes:
4224@if opcodes
4225maybe-html-opcodes: html-opcodes
4226
4227html-opcodes: \
4228 configure-opcodes
4229 @[ -f ./opcodes/Makefile ] || exit 0; \
4230 r=`${PWD_COMMAND}`; export r; \
4231 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4232 $(SET_LIB_PATH) \
4233 $(HOST_EXPORTS) \
4234 for flag in $(EXTRA_HOST_FLAGS) ; do \
4235 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4236 done; \
4237 echo "Doing html in opcodes" ; \
7fc2ca22 4238 (cd $(HOST_SUBDIR)/opcodes && \
b6fb961f
MS
4239 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4240 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4241 "RANLIB=$${RANLIB}" \
4242 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4243 html) \
4244 || exit 1
4245
4246@endif opcodes
4247
8ec98d6c
NN
4248.PHONY: maybe-TAGS-opcodes TAGS-opcodes
4249maybe-TAGS-opcodes:
a7e609d6
PB
4250@if opcodes
4251maybe-TAGS-opcodes: TAGS-opcodes
657b58f4 4252
8ec98d6c
NN
4253TAGS-opcodes: \
4254 configure-opcodes
4255 @[ -f ./opcodes/Makefile ] || exit 0; \
5230d454
L
4256 r=`${PWD_COMMAND}`; export r; \
4257 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 4258 $(SET_LIB_PATH) \
a675b75a 4259 $(HOST_EXPORTS) \
d5eec917 4260 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4261 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4262 done; \
8ec98d6c 4263 echo "Doing TAGS in opcodes" ; \
7fc2ca22 4264 (cd $(HOST_SUBDIR)/opcodes && \
657b58f4
NN
4265 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4266 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4267 "RANLIB=$${RANLIB}" \
4268 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 4269 TAGS) \
657b58f4
NN
4270 || exit 1
4271
a7e609d6 4272@endif opcodes
657b58f4 4273
8ec98d6c
NN
4274.PHONY: maybe-install-info-opcodes install-info-opcodes
4275maybe-install-info-opcodes:
a7e609d6
PB
4276@if opcodes
4277maybe-install-info-opcodes: install-info-opcodes
657b58f4 4278
8ec98d6c
NN
4279install-info-opcodes: \
4280 configure-opcodes \
4281 info-opcodes
4282 @[ -f ./opcodes/Makefile ] || exit 0; \
5230d454
L
4283 r=`${PWD_COMMAND}`; export r; \
4284 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 4285 $(SET_LIB_PATH) \
a675b75a 4286 $(HOST_EXPORTS) \
d5eec917 4287 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4288 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4289 done; \
8ec98d6c 4290 echo "Doing install-info in opcodes" ; \
7fc2ca22 4291 (cd $(HOST_SUBDIR)/opcodes && \
657b58f4
NN
4292 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4293 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4294 "RANLIB=$${RANLIB}" \
4295 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 4296 install-info) \
657b58f4
NN
4297 || exit 1
4298
a7e609d6 4299@endif opcodes
657b58f4 4300
8ec98d6c
NN
4301.PHONY: maybe-installcheck-opcodes installcheck-opcodes
4302maybe-installcheck-opcodes:
a7e609d6
PB
4303@if opcodes
4304maybe-installcheck-opcodes: installcheck-opcodes
657b58f4 4305
8ec98d6c
NN
4306installcheck-opcodes: \
4307 configure-opcodes
4308 @[ -f ./opcodes/Makefile ] || exit 0; \
5230d454
L
4309 r=`${PWD_COMMAND}`; export r; \
4310 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 4311 $(SET_LIB_PATH) \
a675b75a 4312 $(HOST_EXPORTS) \
d5eec917 4313 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4314 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4315 done; \
8ec98d6c 4316 echo "Doing installcheck in opcodes" ; \
7fc2ca22 4317 (cd $(HOST_SUBDIR)/opcodes && \
657b58f4
NN
4318 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4319 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4320 "RANLIB=$${RANLIB}" \
4321 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 4322 installcheck) \
657b58f4
NN
4323 || exit 1
4324
a7e609d6 4325@endif opcodes
657b58f4
NN
4326
4327.PHONY: maybe-mostlyclean-opcodes mostlyclean-opcodes
4328maybe-mostlyclean-opcodes:
a7e609d6
PB
4329@if opcodes
4330maybe-mostlyclean-opcodes: mostlyclean-opcodes
657b58f4
NN
4331
4332mostlyclean-opcodes:
4333 @[ -f ./opcodes/Makefile ] || exit 0; \
5230d454
L
4334 r=`${PWD_COMMAND}`; export r; \
4335 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 4336 $(SET_LIB_PATH) \
a675b75a 4337 $(HOST_EXPORTS) \
d5eec917 4338 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4339 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4340 done; \
4341 echo "Doing mostlyclean in opcodes" ; \
7fc2ca22 4342 (cd $(HOST_SUBDIR)/opcodes && \
657b58f4
NN
4343 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4344 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4345 "RANLIB=$${RANLIB}" \
4346 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 4347 mostlyclean) \
657b58f4
NN
4348 || exit 1
4349
a7e609d6 4350@endif opcodes
657b58f4 4351
8ec98d6c
NN
4352.PHONY: maybe-clean-opcodes clean-opcodes
4353maybe-clean-opcodes:
a7e609d6
PB
4354@if opcodes
4355maybe-clean-opcodes: clean-opcodes
657b58f4 4356
8ec98d6c
NN
4357clean-opcodes:
4358 @[ -f ./opcodes/Makefile ] || exit 0; \
5230d454
L
4359 r=`${PWD_COMMAND}`; export r; \
4360 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 4361 $(SET_LIB_PATH) \
a675b75a 4362 $(HOST_EXPORTS) \
d5eec917 4363 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4364 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4365 done; \
8ec98d6c 4366 echo "Doing clean in opcodes" ; \
7fc2ca22 4367 (cd $(HOST_SUBDIR)/opcodes && \
657b58f4
NN
4368 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4369 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4370 "RANLIB=$${RANLIB}" \
4371 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 4372 clean) \
657b58f4
NN
4373 || exit 1
4374
a7e609d6 4375@endif opcodes
657b58f4 4376
8ec98d6c
NN
4377.PHONY: maybe-distclean-opcodes distclean-opcodes
4378maybe-distclean-opcodes:
a7e609d6
PB
4379@if opcodes
4380maybe-distclean-opcodes: distclean-opcodes
657b58f4 4381
8ec98d6c
NN
4382distclean-opcodes:
4383 @[ -f ./opcodes/Makefile ] || exit 0; \
5230d454
L
4384 r=`${PWD_COMMAND}`; export r; \
4385 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 4386 $(SET_LIB_PATH) \
a675b75a 4387 $(HOST_EXPORTS) \
d5eec917 4388 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4389 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4390 done; \
8ec98d6c 4391 echo "Doing distclean in opcodes" ; \
7fc2ca22 4392 (cd $(HOST_SUBDIR)/opcodes && \
657b58f4
NN
4393 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4394 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4395 "RANLIB=$${RANLIB}" \
4396 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 4397 distclean) \
657b58f4
NN
4398 || exit 1
4399
a7e609d6 4400@endif opcodes
657b58f4 4401
8ec98d6c
NN
4402.PHONY: maybe-maintainer-clean-opcodes maintainer-clean-opcodes
4403maybe-maintainer-clean-opcodes:
a7e609d6
PB
4404@if opcodes
4405maybe-maintainer-clean-opcodes: maintainer-clean-opcodes
657b58f4 4406
8ec98d6c
NN
4407maintainer-clean-opcodes:
4408 @[ -f ./opcodes/Makefile ] || exit 0; \
5230d454
L
4409 r=`${PWD_COMMAND}`; export r; \
4410 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 4411 $(SET_LIB_PATH) \
a675b75a 4412 $(HOST_EXPORTS) \
d5eec917 4413 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4414 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4415 done; \
8ec98d6c 4416 echo "Doing maintainer-clean in opcodes" ; \
7fc2ca22 4417 (cd $(HOST_SUBDIR)/opcodes && \
657b58f4
NN
4418 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4419 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4420 "RANLIB=$${RANLIB}" \
4421 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 4422 maintainer-clean) \
657b58f4
NN
4423 || exit 1
4424
a7e609d6 4425@endif opcodes
657b58f4 4426
657b58f4 4427
8ec98d6c
NN
4428.PHONY: configure-binutils maybe-configure-binutils
4429maybe-configure-binutils:
a7e609d6
PB
4430@if binutils
4431maybe-configure-binutils: configure-binutils
8ec98d6c 4432configure-binutils:
6a19fd82 4433 @test -f stage_last && exit 0; \
7fc2ca22
PB
4434 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
4435 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
5230d454
L
4436 r=`${PWD_COMMAND}`; export r; \
4437 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 4438 $(HOST_EXPORTS) \
8ec98d6c 4439 echo Configuring in binutils; \
7fc2ca22 4440 cd $(HOST_SUBDIR)/binutils || exit 1; \
8ec98d6c 4441 case $(srcdir) in \
7fc2ca22
PB
4442 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4443 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
4444 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 4445 esac; \
7fc2ca22
PB
4446 srcdiroption="--srcdir=$${topdir}/binutils"; \
4447 libsrcdir="$$s/binutils"; \
8ec98d6c 4448 $(SHELL) $${libsrcdir}/configure \
63673a5b 4449 $(HOST_CONFIGARGS) $${srcdiroption} \
657b58f4 4450 || exit 1
a7e609d6 4451@endif binutils
657b58f4 4452
8ec98d6c
NN
4453.PHONY: all-binutils maybe-all-binutils
4454maybe-all-binutils:
a7e609d6 4455@if binutils
5e6b1f07 4456TARGET-binutils=all
a7e609d6 4457maybe-all-binutils: all-binutils
8ec98d6c 4458all-binutils: configure-binutils
6a19fd82
PB
4459 @test -f stage_last && exit 0; \
4460 r=`${PWD_COMMAND}`; export r; \
5230d454 4461 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 4462 $(SET_LIB_PATH) \
a675b75a 4463 $(HOST_EXPORTS) \
7fc2ca22
PB
4464 (cd $(HOST_SUBDIR)/binutils && \
4465 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-binutils))
a7e609d6 4466@endif binutils
8ec98d6c
NN
4467
4468.PHONY: check-binutils maybe-check-binutils
4469maybe-check-binutils:
a7e609d6
PB
4470@if binutils
4471maybe-check-binutils: check-binutils
8ec98d6c
NN
4472
4473check-binutils:
4474 @r=`${PWD_COMMAND}`; export r; \
4475 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4476 $(SET_LIB_PATH) \
a675b75a 4477 $(HOST_EXPORTS) \
7fc2ca22
PB
4478 (cd $(HOST_SUBDIR)/binutils && \
4479 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 4480
a7e609d6 4481@endif binutils
657b58f4 4482
8ec98d6c
NN
4483.PHONY: install-binutils maybe-install-binutils
4484maybe-install-binutils:
a7e609d6
PB
4485@if binutils
4486maybe-install-binutils: install-binutils
657b58f4 4487
8ec98d6c
NN
4488install-binutils: installdirs
4489 @r=`${PWD_COMMAND}`; export r; \
5230d454 4490 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 4491 $(SET_LIB_PATH) \
a675b75a 4492 $(HOST_EXPORTS) \
7fc2ca22 4493 (cd $(HOST_SUBDIR)/binutils && \
93c60b6d 4494 $(MAKE) $(FLAGS_TO_PASS) install)
657b58f4 4495
a7e609d6 4496@endif binutils
657b58f4 4497
8ec98d6c 4498# Other targets (info, dvi, etc.)
657b58f4 4499
8ec98d6c
NN
4500.PHONY: maybe-info-binutils info-binutils
4501maybe-info-binutils:
a7e609d6
PB
4502@if binutils
4503maybe-info-binutils: info-binutils
8ec98d6c
NN
4504
4505info-binutils: \
4506 configure-binutils
4507 @[ -f ./binutils/Makefile ] || exit 0; \
5230d454
L
4508 r=`${PWD_COMMAND}`; export r; \
4509 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 4510 $(SET_LIB_PATH) \
a675b75a 4511 $(HOST_EXPORTS) \
d5eec917 4512 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4513 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4514 done; \
8ec98d6c 4515 echo "Doing info in binutils" ; \
7fc2ca22 4516 (cd $(HOST_SUBDIR)/binutils && \
657b58f4
NN
4517 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4518 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4519 "RANLIB=$${RANLIB}" \
4520 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 4521 info) \
657b58f4
NN
4522 || exit 1
4523
a7e609d6 4524@endif binutils
657b58f4 4525
8ec98d6c
NN
4526.PHONY: maybe-dvi-binutils dvi-binutils
4527maybe-dvi-binutils:
a7e609d6
PB
4528@if binutils
4529maybe-dvi-binutils: dvi-binutils
657b58f4 4530
8ec98d6c
NN
4531dvi-binutils: \
4532 configure-binutils
4533 @[ -f ./binutils/Makefile ] || exit 0; \
5230d454
L
4534 r=`${PWD_COMMAND}`; export r; \
4535 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 4536 $(SET_LIB_PATH) \
a675b75a 4537 $(HOST_EXPORTS) \
d5eec917 4538 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4539 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4540 done; \
8ec98d6c 4541 echo "Doing dvi in binutils" ; \
7fc2ca22 4542 (cd $(HOST_SUBDIR)/binutils && \
657b58f4
NN
4543 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4544 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4545 "RANLIB=$${RANLIB}" \
4546 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 4547 dvi) \
657b58f4
NN
4548 || exit 1
4549
a7e609d6 4550@endif binutils
657b58f4 4551
b6fb961f
MS
4552.PHONY: maybe-html-binutils html-binutils
4553maybe-html-binutils:
4554@if binutils
4555maybe-html-binutils: html-binutils
4556
4557html-binutils: \
4558 configure-binutils
4559 @[ -f ./binutils/Makefile ] || exit 0; \
4560 r=`${PWD_COMMAND}`; export r; \
4561 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4562 $(SET_LIB_PATH) \
4563 $(HOST_EXPORTS) \
4564 for flag in $(EXTRA_HOST_FLAGS) ; do \
4565 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4566 done; \
4567 echo "Doing html in binutils" ; \
7fc2ca22 4568 (cd $(HOST_SUBDIR)/binutils && \
b6fb961f
MS
4569 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4570 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4571 "RANLIB=$${RANLIB}" \
4572 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4573 html) \
4574 || exit 1
4575
4576@endif binutils
4577
8ec98d6c
NN
4578.PHONY: maybe-TAGS-binutils TAGS-binutils
4579maybe-TAGS-binutils:
a7e609d6
PB
4580@if binutils
4581maybe-TAGS-binutils: TAGS-binutils
657b58f4 4582
8ec98d6c
NN
4583TAGS-binutils: \
4584 configure-binutils
4585 @[ -f ./binutils/Makefile ] || exit 0; \
5230d454
L
4586 r=`${PWD_COMMAND}`; export r; \
4587 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 4588 $(SET_LIB_PATH) \
a675b75a 4589 $(HOST_EXPORTS) \
d5eec917 4590 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4591 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4592 done; \
8ec98d6c 4593 echo "Doing TAGS in binutils" ; \
7fc2ca22 4594 (cd $(HOST_SUBDIR)/binutils && \
657b58f4
NN
4595 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4596 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4597 "RANLIB=$${RANLIB}" \
4598 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 4599 TAGS) \
657b58f4
NN
4600 || exit 1
4601
a7e609d6 4602@endif binutils
657b58f4 4603
8ec98d6c
NN
4604.PHONY: maybe-install-info-binutils install-info-binutils
4605maybe-install-info-binutils:
a7e609d6
PB
4606@if binutils
4607maybe-install-info-binutils: install-info-binutils
657b58f4 4608
8ec98d6c
NN
4609install-info-binutils: \
4610 configure-binutils \
4611 info-binutils
4612 @[ -f ./binutils/Makefile ] || exit 0; \
5230d454
L
4613 r=`${PWD_COMMAND}`; export r; \
4614 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 4615 $(SET_LIB_PATH) \
a675b75a 4616 $(HOST_EXPORTS) \
d5eec917 4617 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4618 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4619 done; \
8ec98d6c 4620 echo "Doing install-info in binutils" ; \
7fc2ca22 4621 (cd $(HOST_SUBDIR)/binutils && \
657b58f4
NN
4622 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4623 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4624 "RANLIB=$${RANLIB}" \
4625 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 4626 install-info) \
657b58f4
NN
4627 || exit 1
4628
a7e609d6 4629@endif binutils
657b58f4 4630
8ec98d6c
NN
4631.PHONY: maybe-installcheck-binutils installcheck-binutils
4632maybe-installcheck-binutils:
a7e609d6
PB
4633@if binutils
4634maybe-installcheck-binutils: installcheck-binutils
657b58f4 4635
8ec98d6c
NN
4636installcheck-binutils: \
4637 configure-binutils
4638 @[ -f ./binutils/Makefile ] || exit 0; \
5230d454
L
4639 r=`${PWD_COMMAND}`; export r; \
4640 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 4641 $(SET_LIB_PATH) \
a675b75a 4642 $(HOST_EXPORTS) \
d5eec917 4643 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4644 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4645 done; \
8ec98d6c 4646 echo "Doing installcheck in binutils" ; \
7fc2ca22 4647 (cd $(HOST_SUBDIR)/binutils && \
657b58f4
NN
4648 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4649 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4650 "RANLIB=$${RANLIB}" \
4651 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 4652 installcheck) \
657b58f4
NN
4653 || exit 1
4654
a7e609d6 4655@endif binutils
657b58f4 4656
8ec98d6c
NN
4657.PHONY: maybe-mostlyclean-binutils mostlyclean-binutils
4658maybe-mostlyclean-binutils:
a7e609d6
PB
4659@if binutils
4660maybe-mostlyclean-binutils: mostlyclean-binutils
657b58f4 4661
8ec98d6c
NN
4662mostlyclean-binutils:
4663 @[ -f ./binutils/Makefile ] || exit 0; \
5230d454
L
4664 r=`${PWD_COMMAND}`; export r; \
4665 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 4666 $(SET_LIB_PATH) \
a675b75a 4667 $(HOST_EXPORTS) \
d5eec917 4668 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4669 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4670 done; \
8ec98d6c 4671 echo "Doing mostlyclean in binutils" ; \
7fc2ca22 4672 (cd $(HOST_SUBDIR)/binutils && \
657b58f4
NN
4673 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4674 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4675 "RANLIB=$${RANLIB}" \
4676 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 4677 mostlyclean) \
657b58f4
NN
4678 || exit 1
4679
a7e609d6 4680@endif binutils
657b58f4 4681
8ec98d6c
NN
4682.PHONY: maybe-clean-binutils clean-binutils
4683maybe-clean-binutils:
a7e609d6
PB
4684@if binutils
4685maybe-clean-binutils: clean-binutils
657b58f4 4686
8ec98d6c
NN
4687clean-binutils:
4688 @[ -f ./binutils/Makefile ] || exit 0; \
5230d454
L
4689 r=`${PWD_COMMAND}`; export r; \
4690 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 4691 $(SET_LIB_PATH) \
a675b75a 4692 $(HOST_EXPORTS) \
d5eec917 4693 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4694 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4695 done; \
8ec98d6c 4696 echo "Doing clean in binutils" ; \
7fc2ca22 4697 (cd $(HOST_SUBDIR)/binutils && \
657b58f4
NN
4698 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4699 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4700 "RANLIB=$${RANLIB}" \
4701 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 4702 clean) \
657b58f4
NN
4703 || exit 1
4704
a7e609d6 4705@endif binutils
657b58f4 4706
8ec98d6c
NN
4707.PHONY: maybe-distclean-binutils distclean-binutils
4708maybe-distclean-binutils:
a7e609d6
PB
4709@if binutils
4710maybe-distclean-binutils: distclean-binutils
657b58f4 4711
8ec98d6c
NN
4712distclean-binutils:
4713 @[ -f ./binutils/Makefile ] || exit 0; \
5230d454
L
4714 r=`${PWD_COMMAND}`; export r; \
4715 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 4716 $(SET_LIB_PATH) \
a675b75a 4717 $(HOST_EXPORTS) \
d5eec917 4718 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4719 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4720 done; \
8ec98d6c 4721 echo "Doing distclean in binutils" ; \
7fc2ca22 4722 (cd $(HOST_SUBDIR)/binutils && \
657b58f4
NN
4723 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4724 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4725 "RANLIB=$${RANLIB}" \
4726 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 4727 distclean) \
657b58f4
NN
4728 || exit 1
4729
a7e609d6 4730@endif binutils
657b58f4 4731
8ec98d6c
NN
4732.PHONY: maybe-maintainer-clean-binutils maintainer-clean-binutils
4733maybe-maintainer-clean-binutils:
a7e609d6
PB
4734@if binutils
4735maybe-maintainer-clean-binutils: maintainer-clean-binutils
657b58f4 4736
8ec98d6c
NN
4737maintainer-clean-binutils:
4738 @[ -f ./binutils/Makefile ] || exit 0; \
5230d454
L
4739 r=`${PWD_COMMAND}`; export r; \
4740 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 4741 $(SET_LIB_PATH) \
a675b75a 4742 $(HOST_EXPORTS) \
d5eec917 4743 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4744 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4745 done; \
8ec98d6c 4746 echo "Doing maintainer-clean in binutils" ; \
7fc2ca22 4747 (cd $(HOST_SUBDIR)/binutils && \
657b58f4
NN
4748 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4749 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4750 "RANLIB=$${RANLIB}" \
4751 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 4752 maintainer-clean) \
657b58f4
NN
4753 || exit 1
4754
a7e609d6 4755@endif binutils
657b58f4 4756
657b58f4 4757
8ec98d6c
NN
4758.PHONY: configure-bison maybe-configure-bison
4759maybe-configure-bison:
a7e609d6
PB
4760@if bison
4761maybe-configure-bison: configure-bison
8ec98d6c 4762configure-bison:
7fc2ca22
PB
4763 @test ! -f $(HOST_SUBDIR)/bison/Makefile || exit 0; \
4764 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bison ; \
5230d454
L
4765 r=`${PWD_COMMAND}`; export r; \
4766 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 4767 $(HOST_EXPORTS) \
8ec98d6c 4768 echo Configuring in bison; \
7fc2ca22 4769 cd $(HOST_SUBDIR)/bison || exit 1; \
8ec98d6c 4770 case $(srcdir) in \
7fc2ca22
PB
4771 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4772 *) topdir=`echo $(HOST_SUBDIR)/bison/ | \
4773 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 4774 esac; \
7fc2ca22
PB
4775 srcdiroption="--srcdir=$${topdir}/bison"; \
4776 libsrcdir="$$s/bison"; \
8ec98d6c 4777 $(SHELL) $${libsrcdir}/configure \
63673a5b 4778 $(HOST_CONFIGARGS) $${srcdiroption} \
657b58f4 4779 || exit 1
a7e609d6 4780@endif bison
657b58f4 4781
8ec98d6c
NN
4782.PHONY: all-bison maybe-all-bison
4783maybe-all-bison:
a7e609d6 4784@if bison
5e6b1f07 4785TARGET-bison=all
a7e609d6 4786maybe-all-bison: all-bison
8ec98d6c
NN
4787all-bison: configure-bison
4788 @r=`${PWD_COMMAND}`; export r; \
4789 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4790 $(SET_LIB_PATH) \
a675b75a 4791 $(HOST_EXPORTS) \
7fc2ca22
PB
4792 (cd $(HOST_SUBDIR)/bison && \
4793 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-bison))
a7e609d6 4794@endif bison
657b58f4 4795
8ec98d6c
NN
4796.PHONY: check-bison maybe-check-bison
4797maybe-check-bison:
a7e609d6
PB
4798@if bison
4799maybe-check-bison: check-bison
657b58f4 4800
8ec98d6c
NN
4801# This module is only tested in a native toolchain.
4802check-bison:
4803 @if [ '$(host)' = '$(target)' ] ; then \
4804 r=`${PWD_COMMAND}`; export r; \
4805 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4806 $(SET_LIB_PATH) \
a675b75a 4807 $(HOST_EXPORTS) \
7fc2ca22 4808 (cd $(HOST_SUBDIR)/bison && \
80e4c577 4809 $(MAKE) $(FLAGS_TO_PASS) check); \
8ec98d6c
NN
4810 fi
4811
a7e609d6 4812@endif bison
8ec98d6c
NN
4813
4814.PHONY: install-bison maybe-install-bison
4815maybe-install-bison:
a7e609d6
PB
4816@if bison
4817maybe-install-bison: install-bison
8ec98d6c
NN
4818
4819install-bison: installdirs
4820 @r=`${PWD_COMMAND}`; export r; \
5230d454 4821 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 4822 $(SET_LIB_PATH) \
a675b75a 4823 $(HOST_EXPORTS) \
7fc2ca22 4824 (cd $(HOST_SUBDIR)/bison && \
93c60b6d 4825 $(MAKE) $(FLAGS_TO_PASS) install)
657b58f4 4826
a7e609d6 4827@endif bison
657b58f4 4828
8ec98d6c 4829# Other targets (info, dvi, etc.)
657b58f4 4830
8ec98d6c
NN
4831.PHONY: maybe-info-bison info-bison
4832maybe-info-bison:
a7e609d6
PB
4833@if bison
4834maybe-info-bison: info-bison
8ec98d6c
NN
4835
4836info-bison: \
4837 configure-bison
4838 @[ -f ./bison/Makefile ] || exit 0; \
5230d454
L
4839 r=`${PWD_COMMAND}`; export r; \
4840 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 4841 $(SET_LIB_PATH) \
a675b75a 4842 $(HOST_EXPORTS) \
d5eec917 4843 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4844 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4845 done; \
8ec98d6c 4846 echo "Doing info in bison" ; \
7fc2ca22 4847 (cd $(HOST_SUBDIR)/bison && \
657b58f4
NN
4848 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4849 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4850 "RANLIB=$${RANLIB}" \
4851 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 4852 info) \
657b58f4
NN
4853 || exit 1
4854
a7e609d6 4855@endif bison
657b58f4 4856
8ec98d6c
NN
4857.PHONY: maybe-dvi-bison dvi-bison
4858maybe-dvi-bison:
a7e609d6
PB
4859@if bison
4860maybe-dvi-bison: dvi-bison
657b58f4 4861
8ec98d6c
NN
4862dvi-bison: \
4863 configure-bison
4864 @[ -f ./bison/Makefile ] || exit 0; \
5230d454
L
4865 r=`${PWD_COMMAND}`; export r; \
4866 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 4867 $(SET_LIB_PATH) \
a675b75a 4868 $(HOST_EXPORTS) \
d5eec917 4869 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4870 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4871 done; \
8ec98d6c 4872 echo "Doing dvi in bison" ; \
7fc2ca22 4873 (cd $(HOST_SUBDIR)/bison && \
657b58f4
NN
4874 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4875 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4876 "RANLIB=$${RANLIB}" \
4877 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 4878 dvi) \
657b58f4
NN
4879 || exit 1
4880
a7e609d6 4881@endif bison
657b58f4 4882
b6fb961f
MS
4883.PHONY: maybe-html-bison html-bison
4884maybe-html-bison:
4885@if bison
4886maybe-html-bison: html-bison
4887
4888html-bison: \
4889 configure-bison
4890 @[ -f ./bison/Makefile ] || exit 0; \
4891 r=`${PWD_COMMAND}`; export r; \
4892 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4893 $(SET_LIB_PATH) \
4894 $(HOST_EXPORTS) \
4895 for flag in $(EXTRA_HOST_FLAGS) ; do \
4896 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4897 done; \
4898 echo "Doing html in bison" ; \
7fc2ca22 4899 (cd $(HOST_SUBDIR)/bison && \
b6fb961f
MS
4900 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4901 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4902 "RANLIB=$${RANLIB}" \
4903 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4904 html) \
4905 || exit 1
4906
4907@endif bison
4908
8ec98d6c
NN
4909.PHONY: maybe-TAGS-bison TAGS-bison
4910maybe-TAGS-bison:
a7e609d6
PB
4911@if bison
4912maybe-TAGS-bison: TAGS-bison
657b58f4 4913
8ec98d6c
NN
4914TAGS-bison: \
4915 configure-bison
4916 @[ -f ./bison/Makefile ] || exit 0; \
5230d454
L
4917 r=`${PWD_COMMAND}`; export r; \
4918 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 4919 $(SET_LIB_PATH) \
a675b75a 4920 $(HOST_EXPORTS) \
d5eec917 4921 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4922 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4923 done; \
8ec98d6c 4924 echo "Doing TAGS in bison" ; \
7fc2ca22 4925 (cd $(HOST_SUBDIR)/bison && \
657b58f4
NN
4926 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4927 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4928 "RANLIB=$${RANLIB}" \
4929 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 4930 TAGS) \
657b58f4
NN
4931 || exit 1
4932
a7e609d6 4933@endif bison
657b58f4 4934
8ec98d6c
NN
4935.PHONY: maybe-install-info-bison install-info-bison
4936maybe-install-info-bison:
a7e609d6
PB
4937@if bison
4938maybe-install-info-bison: install-info-bison
657b58f4 4939
8ec98d6c
NN
4940install-info-bison: \
4941 configure-bison \
4942 info-bison
4943 @[ -f ./bison/Makefile ] || exit 0; \
5230d454
L
4944 r=`${PWD_COMMAND}`; export r; \
4945 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 4946 $(SET_LIB_PATH) \
a675b75a 4947 $(HOST_EXPORTS) \
d5eec917 4948 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4949 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4950 done; \
8ec98d6c 4951 echo "Doing install-info in bison" ; \
7fc2ca22 4952 (cd $(HOST_SUBDIR)/bison && \
657b58f4
NN
4953 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4954 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4955 "RANLIB=$${RANLIB}" \
4956 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 4957 install-info) \
657b58f4
NN
4958 || exit 1
4959
a7e609d6 4960@endif bison
657b58f4 4961
8ec98d6c
NN
4962.PHONY: maybe-installcheck-bison installcheck-bison
4963maybe-installcheck-bison:
a7e609d6
PB
4964@if bison
4965maybe-installcheck-bison: installcheck-bison
657b58f4 4966
8ec98d6c
NN
4967installcheck-bison: \
4968 configure-bison
4969 @[ -f ./bison/Makefile ] || exit 0; \
5230d454
L
4970 r=`${PWD_COMMAND}`; export r; \
4971 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 4972 $(SET_LIB_PATH) \
a675b75a 4973 $(HOST_EXPORTS) \
d5eec917 4974 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4975 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4976 done; \
8ec98d6c 4977 echo "Doing installcheck in bison" ; \
7fc2ca22 4978 (cd $(HOST_SUBDIR)/bison && \
657b58f4
NN
4979 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4980 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4981 "RANLIB=$${RANLIB}" \
4982 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 4983 installcheck) \
657b58f4
NN
4984 || exit 1
4985
a7e609d6 4986@endif bison
657b58f4 4987
8ec98d6c
NN
4988.PHONY: maybe-mostlyclean-bison mostlyclean-bison
4989maybe-mostlyclean-bison:
a7e609d6
PB
4990@if bison
4991maybe-mostlyclean-bison: mostlyclean-bison
657b58f4 4992
8ec98d6c
NN
4993mostlyclean-bison:
4994 @[ -f ./bison/Makefile ] || exit 0; \
5230d454
L
4995 r=`${PWD_COMMAND}`; export r; \
4996 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 4997 $(SET_LIB_PATH) \
a675b75a 4998 $(HOST_EXPORTS) \
d5eec917 4999 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
5000 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5001 done; \
8ec98d6c 5002 echo "Doing mostlyclean in bison" ; \
7fc2ca22 5003 (cd $(HOST_SUBDIR)/bison && \
657b58f4
NN
5004 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5005 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5006 "RANLIB=$${RANLIB}" \
5007 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 5008 mostlyclean) \
657b58f4
NN
5009 || exit 1
5010
a7e609d6 5011@endif bison
657b58f4 5012
8ec98d6c
NN
5013.PHONY: maybe-clean-bison clean-bison
5014maybe-clean-bison:
a7e609d6
PB
5015@if bison
5016maybe-clean-bison: clean-bison
657b58f4 5017
8ec98d6c
NN
5018clean-bison:
5019 @[ -f ./bison/Makefile ] || exit 0; \
5230d454
L
5020 r=`${PWD_COMMAND}`; export r; \
5021 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 5022 $(SET_LIB_PATH) \
a675b75a 5023 $(HOST_EXPORTS) \
d5eec917 5024 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
5025 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5026 done; \
8ec98d6c 5027 echo "Doing clean in bison" ; \
7fc2ca22 5028 (cd $(HOST_SUBDIR)/bison && \
657b58f4
NN
5029 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5030 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5031 "RANLIB=$${RANLIB}" \
5032 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 5033 clean) \
657b58f4
NN
5034 || exit 1
5035
a7e609d6 5036@endif bison
657b58f4 5037
8ec98d6c
NN
5038.PHONY: maybe-distclean-bison distclean-bison
5039maybe-distclean-bison:
a7e609d6
PB
5040@if bison
5041maybe-distclean-bison: distclean-bison
657b58f4 5042
8ec98d6c
NN
5043distclean-bison:
5044 @[ -f ./bison/Makefile ] || exit 0; \
5230d454
L
5045 r=`${PWD_COMMAND}`; export r; \
5046 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 5047 $(SET_LIB_PATH) \
a675b75a 5048 $(HOST_EXPORTS) \
d5eec917 5049 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
5050 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5051 done; \
8ec98d6c 5052 echo "Doing distclean in bison" ; \
7fc2ca22 5053 (cd $(HOST_SUBDIR)/bison && \
657b58f4
NN
5054 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5055 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5056 "RANLIB=$${RANLIB}" \
5057 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 5058 distclean) \
657b58f4
NN
5059 || exit 1
5060
a7e609d6 5061@endif bison
657b58f4 5062
8ec98d6c
NN
5063.PHONY: maybe-maintainer-clean-bison maintainer-clean-bison
5064maybe-maintainer-clean-bison:
a7e609d6
PB
5065@if bison
5066maybe-maintainer-clean-bison: maintainer-clean-bison
657b58f4 5067
8ec98d6c
NN
5068maintainer-clean-bison:
5069 @[ -f ./bison/Makefile ] || exit 0; \
5230d454
L
5070 r=`${PWD_COMMAND}`; export r; \
5071 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 5072 $(SET_LIB_PATH) \
a675b75a 5073 $(HOST_EXPORTS) \
d5eec917 5074 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
5075 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5076 done; \
8ec98d6c 5077 echo "Doing maintainer-clean in bison" ; \
7fc2ca22 5078 (cd $(HOST_SUBDIR)/bison && \
657b58f4
NN
5079 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5080 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5081 "RANLIB=$${RANLIB}" \
5082 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 5083 maintainer-clean) \
657b58f4
NN
5084 || exit 1
5085
a7e609d6 5086@endif bison
657b58f4 5087
657b58f4 5088
8ec98d6c
NN
5089.PHONY: configure-byacc maybe-configure-byacc
5090maybe-configure-byacc:
a7e609d6
PB
5091@if byacc
5092maybe-configure-byacc: configure-byacc
8ec98d6c 5093configure-byacc:
7fc2ca22
PB
5094 @test ! -f $(HOST_SUBDIR)/byacc/Makefile || exit 0; \
5095 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/byacc ; \
8ec98d6c
NN
5096 r=`${PWD_COMMAND}`; export r; \
5097 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 5098 $(HOST_EXPORTS) \
8ec98d6c 5099 echo Configuring in byacc; \
7fc2ca22 5100 cd $(HOST_SUBDIR)/byacc || exit 1; \
8ec98d6c 5101 case $(srcdir) in \
7fc2ca22
PB
5102 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
5103 *) topdir=`echo $(HOST_SUBDIR)/byacc/ | \
5104 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 5105 esac; \
7fc2ca22
PB
5106 srcdiroption="--srcdir=$${topdir}/byacc"; \
5107 libsrcdir="$$s/byacc"; \
8ec98d6c 5108 $(SHELL) $${libsrcdir}/configure \
63673a5b 5109 $(HOST_CONFIGARGS) $${srcdiroption} \
8ec98d6c 5110 || exit 1
a7e609d6 5111@endif byacc
8ec98d6c
NN
5112
5113.PHONY: all-byacc maybe-all-byacc
5114maybe-all-byacc:
a7e609d6 5115@if byacc
5e6b1f07 5116TARGET-byacc=all
a7e609d6 5117maybe-all-byacc: all-byacc
8ec98d6c
NN
5118all-byacc: configure-byacc
5119 @r=`${PWD_COMMAND}`; export r; \
5120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5121 $(SET_LIB_PATH) \
a675b75a 5122 $(HOST_EXPORTS) \
7fc2ca22
PB
5123 (cd $(HOST_SUBDIR)/byacc && \
5124 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-byacc))
a7e609d6 5125@endif byacc
8ec98d6c
NN
5126
5127.PHONY: check-byacc maybe-check-byacc
5128maybe-check-byacc:
a7e609d6
PB
5129@if byacc
5130maybe-check-byacc: check-byacc
8ec98d6c
NN
5131
5132# This module is only tested in a native toolchain.
5133check-byacc:
5134 @if [ '$(host)' = '$(target)' ] ; then \
5135 r=`${PWD_COMMAND}`; export r; \
5136 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5137 $(SET_LIB_PATH) \
a675b75a 5138 $(HOST_EXPORTS) \
7fc2ca22 5139 (cd $(HOST_SUBDIR)/byacc && \
80e4c577 5140 $(MAKE) $(FLAGS_TO_PASS) check); \
8ec98d6c
NN
5141 fi
5142
a7e609d6 5143@endif byacc
8ec98d6c
NN
5144
5145.PHONY: install-byacc maybe-install-byacc
5146maybe-install-byacc:
a7e609d6
PB
5147@if byacc
5148maybe-install-byacc: install-byacc
8ec98d6c
NN
5149
5150install-byacc: installdirs
5151 @r=`${PWD_COMMAND}`; export r; \
5152 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5153 $(SET_LIB_PATH) \
a675b75a 5154 $(HOST_EXPORTS) \
7fc2ca22 5155 (cd $(HOST_SUBDIR)/byacc && \
93c60b6d 5156 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 5157
a7e609d6 5158@endif byacc
8ec98d6c
NN
5159
5160# Other targets (info, dvi, etc.)
5161
5162.PHONY: maybe-info-byacc info-byacc
5163maybe-info-byacc:
a7e609d6
PB
5164@if byacc
5165maybe-info-byacc: info-byacc
8ec98d6c
NN
5166
5167info-byacc: \
5168 configure-byacc
5169 @[ -f ./byacc/Makefile ] || exit 0; \
5230d454
L
5170 r=`${PWD_COMMAND}`; export r; \
5171 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 5172 $(SET_LIB_PATH) \
a675b75a 5173 $(HOST_EXPORTS) \
d5eec917 5174 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
5175 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5176 done; \
8ec98d6c 5177 echo "Doing info in byacc" ; \
7fc2ca22 5178 (cd $(HOST_SUBDIR)/byacc && \
657b58f4
NN
5179 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5180 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5181 "RANLIB=$${RANLIB}" \
5182 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 5183 info) \
657b58f4
NN
5184 || exit 1
5185
a7e609d6 5186@endif byacc
657b58f4 5187
8ec98d6c
NN
5188.PHONY: maybe-dvi-byacc dvi-byacc
5189maybe-dvi-byacc:
a7e609d6
PB
5190@if byacc
5191maybe-dvi-byacc: dvi-byacc
657b58f4 5192
8ec98d6c
NN
5193dvi-byacc: \
5194 configure-byacc
5195 @[ -f ./byacc/Makefile ] || exit 0; \
5230d454
L
5196 r=`${PWD_COMMAND}`; export r; \
5197 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 5198 $(SET_LIB_PATH) \
a675b75a 5199 $(HOST_EXPORTS) \
d5eec917 5200 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
5201 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5202 done; \
8ec98d6c 5203 echo "Doing dvi in byacc" ; \
7fc2ca22 5204 (cd $(HOST_SUBDIR)/byacc && \
657b58f4
NN
5205 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5206 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5207 "RANLIB=$${RANLIB}" \
5208 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 5209 dvi) \
657b58f4
NN
5210 || exit 1
5211
a7e609d6 5212@endif byacc
657b58f4 5213
b6fb961f
MS
5214.PHONY: maybe-html-byacc html-byacc
5215maybe-html-byacc:
5216@if byacc
5217maybe-html-byacc: html-byacc
5218
5219html-byacc: \
5220 configure-byacc
5221 @[ -f ./byacc/Makefile ] || exit 0; \
5222 r=`${PWD_COMMAND}`; export r; \
5223 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5224 $(SET_LIB_PATH) \
5225 $(HOST_EXPORTS) \
5226 for flag in $(EXTRA_HOST_FLAGS) ; do \
5227 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5228 done; \
5229 echo "Doing html in byacc" ; \
7fc2ca22 5230 (cd $(HOST_SUBDIR)/byacc && \
b6fb961f
MS
5231 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5232 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5233 "RANLIB=$${RANLIB}" \
5234 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5235 html) \
5236 || exit 1
5237
5238@endif byacc
5239
8ec98d6c
NN
5240.PHONY: maybe-TAGS-byacc TAGS-byacc
5241maybe-TAGS-byacc:
a7e609d6
PB
5242@if byacc
5243maybe-TAGS-byacc: TAGS-byacc
657b58f4 5244
8ec98d6c
NN
5245TAGS-byacc: \
5246 configure-byacc
5247 @[ -f ./byacc/Makefile ] || exit 0; \
5230d454
L
5248 r=`${PWD_COMMAND}`; export r; \
5249 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 5250 $(SET_LIB_PATH) \
a675b75a 5251 $(HOST_EXPORTS) \
d5eec917 5252 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
5253 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5254 done; \
8ec98d6c 5255 echo "Doing TAGS in byacc" ; \
7fc2ca22 5256 (cd $(HOST_SUBDIR)/byacc && \
657b58f4
NN
5257 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5258 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5259 "RANLIB=$${RANLIB}" \
5260 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 5261 TAGS) \
657b58f4
NN
5262 || exit 1
5263
a7e609d6 5264@endif byacc
657b58f4 5265
8ec98d6c
NN
5266.PHONY: maybe-install-info-byacc install-info-byacc
5267maybe-install-info-byacc:
a7e609d6
PB
5268@if byacc
5269maybe-install-info-byacc: install-info-byacc
657b58f4 5270
8ec98d6c
NN
5271install-info-byacc: \
5272 configure-byacc \
5273 info-byacc
5274 @[ -f ./byacc/Makefile ] || exit 0; \
5230d454
L
5275 r=`${PWD_COMMAND}`; export r; \
5276 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 5277 $(SET_LIB_PATH) \
a675b75a 5278 $(HOST_EXPORTS) \
d5eec917 5279 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
5280 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5281 done; \
8ec98d6c 5282 echo "Doing install-info in byacc" ; \
7fc2ca22 5283 (cd $(HOST_SUBDIR)/byacc && \
657b58f4
NN
5284 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5285 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5286 "RANLIB=$${RANLIB}" \
5287 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 5288 install-info) \
657b58f4
NN
5289 || exit 1
5290
a7e609d6 5291@endif byacc
657b58f4 5292
8ec98d6c
NN
5293.PHONY: maybe-installcheck-byacc installcheck-byacc
5294maybe-installcheck-byacc:
a7e609d6
PB
5295@if byacc
5296maybe-installcheck-byacc: installcheck-byacc
657b58f4 5297
8ec98d6c
NN
5298installcheck-byacc: \
5299 configure-byacc
5300 @[ -f ./byacc/Makefile ] || exit 0; \
5230d454
L
5301 r=`${PWD_COMMAND}`; export r; \
5302 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 5303 $(SET_LIB_PATH) \
a675b75a 5304 $(HOST_EXPORTS) \
d5eec917 5305 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
5306 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5307 done; \
8ec98d6c 5308 echo "Doing installcheck in byacc" ; \
7fc2ca22 5309 (cd $(HOST_SUBDIR)/byacc && \
657b58f4
NN
5310 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5311 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5312 "RANLIB=$${RANLIB}" \
5313 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 5314 installcheck) \
657b58f4
NN
5315 || exit 1
5316
a7e609d6 5317@endif byacc
657b58f4 5318
8ec98d6c
NN
5319.PHONY: maybe-mostlyclean-byacc mostlyclean-byacc
5320maybe-mostlyclean-byacc:
a7e609d6
PB
5321@if byacc
5322maybe-mostlyclean-byacc: mostlyclean-byacc
657b58f4 5323
8ec98d6c
NN
5324mostlyclean-byacc:
5325 @[ -f ./byacc/Makefile ] || exit 0; \
5230d454
L
5326 r=`${PWD_COMMAND}`; export r; \
5327 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 5328 $(SET_LIB_PATH) \
a675b75a 5329 $(HOST_EXPORTS) \
d5eec917 5330 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
5331 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5332 done; \
8ec98d6c 5333 echo "Doing mostlyclean in byacc" ; \
7fc2ca22 5334 (cd $(HOST_SUBDIR)/byacc && \
657b58f4
NN
5335 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5336 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5337 "RANLIB=$${RANLIB}" \
5338 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 5339 mostlyclean) \
657b58f4
NN
5340 || exit 1
5341
a7e609d6 5342@endif byacc
657b58f4 5343
8ec98d6c
NN
5344.PHONY: maybe-clean-byacc clean-byacc
5345maybe-clean-byacc:
a7e609d6
PB
5346@if byacc
5347maybe-clean-byacc: clean-byacc
657b58f4 5348
8ec98d6c
NN
5349clean-byacc:
5350 @[ -f ./byacc/Makefile ] || exit 0; \
5230d454
L
5351 r=`${PWD_COMMAND}`; export r; \
5352 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 5353 $(SET_LIB_PATH) \
a675b75a 5354 $(HOST_EXPORTS) \
d5eec917 5355 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
5356 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5357 done; \
8ec98d6c 5358 echo "Doing clean in byacc" ; \
7fc2ca22 5359 (cd $(HOST_SUBDIR)/byacc && \
657b58f4
NN
5360 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5361 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5362 "RANLIB=$${RANLIB}" \
5363 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 5364 clean) \
657b58f4
NN
5365 || exit 1
5366
a7e609d6 5367@endif byacc
657b58f4 5368
8ec98d6c
NN
5369.PHONY: maybe-distclean-byacc distclean-byacc
5370maybe-distclean-byacc:
a7e609d6
PB
5371@if byacc
5372maybe-distclean-byacc: distclean-byacc
657b58f4 5373
8ec98d6c
NN
5374distclean-byacc:
5375 @[ -f ./byacc/Makefile ] || exit 0; \
5230d454
L
5376 r=`${PWD_COMMAND}`; export r; \
5377 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 5378 $(SET_LIB_PATH) \
a675b75a 5379 $(HOST_EXPORTS) \
d5eec917 5380 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
5381 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5382 done; \
8ec98d6c 5383 echo "Doing distclean in byacc" ; \
7fc2ca22 5384 (cd $(HOST_SUBDIR)/byacc && \
657b58f4
NN
5385 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5386 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5387 "RANLIB=$${RANLIB}" \
5388 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 5389 distclean) \
657b58f4
NN
5390 || exit 1
5391
a7e609d6 5392@endif byacc
657b58f4 5393
8ec98d6c
NN
5394.PHONY: maybe-maintainer-clean-byacc maintainer-clean-byacc
5395maybe-maintainer-clean-byacc:
a7e609d6
PB
5396@if byacc
5397maybe-maintainer-clean-byacc: maintainer-clean-byacc
657b58f4 5398
8ec98d6c
NN
5399maintainer-clean-byacc:
5400 @[ -f ./byacc/Makefile ] || exit 0; \
5230d454
L
5401 r=`${PWD_COMMAND}`; export r; \
5402 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 5403 $(SET_LIB_PATH) \
a675b75a 5404 $(HOST_EXPORTS) \
d5eec917 5405 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
5406 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5407 done; \
8ec98d6c 5408 echo "Doing maintainer-clean in byacc" ; \
7fc2ca22 5409 (cd $(HOST_SUBDIR)/byacc && \
657b58f4
NN
5410 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5411 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5412 "RANLIB=$${RANLIB}" \
5413 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 5414 maintainer-clean) \
657b58f4
NN
5415 || exit 1
5416
a7e609d6 5417@endif byacc
657b58f4 5418
657b58f4 5419
8ec98d6c
NN
5420.PHONY: configure-bzip2 maybe-configure-bzip2
5421maybe-configure-bzip2:
a7e609d6
PB
5422@if bzip2
5423maybe-configure-bzip2: configure-bzip2
8ec98d6c 5424configure-bzip2:
7fc2ca22
PB
5425 @test ! -f $(HOST_SUBDIR)/bzip2/Makefile || exit 0; \
5426 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bzip2 ; \
8ec98d6c
NN
5427 r=`${PWD_COMMAND}`; export r; \
5428 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 5429 $(HOST_EXPORTS) \
8ec98d6c 5430 echo Configuring in bzip2; \
7fc2ca22 5431 cd $(HOST_SUBDIR)/bzip2 || exit 1; \
8ec98d6c 5432 case $(srcdir) in \
7fc2ca22
PB
5433 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
5434 *) topdir=`echo $(HOST_SUBDIR)/bzip2/ | \
5435 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 5436 esac; \
7fc2ca22
PB
5437 srcdiroption="--srcdir=$${topdir}/bzip2"; \
5438 libsrcdir="$$s/bzip2"; \
8ec98d6c 5439 $(SHELL) $${libsrcdir}/configure \
63673a5b 5440 $(HOST_CONFIGARGS) $${srcdiroption} \
8ec98d6c 5441 || exit 1
a7e609d6 5442@endif bzip2
8ec98d6c
NN
5443
5444.PHONY: all-bzip2 maybe-all-bzip2
5445maybe-all-bzip2:
a7e609d6 5446@if bzip2
5e6b1f07 5447TARGET-bzip2=all
a7e609d6 5448maybe-all-bzip2: all-bzip2
8ec98d6c
NN
5449all-bzip2: configure-bzip2
5450 @r=`${PWD_COMMAND}`; export r; \
5451 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5452 $(SET_LIB_PATH) \
a675b75a 5453 $(HOST_EXPORTS) \
7fc2ca22
PB
5454 (cd $(HOST_SUBDIR)/bzip2 && \
5455 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-bzip2))
a7e609d6 5456@endif bzip2
8ec98d6c
NN
5457
5458.PHONY: check-bzip2 maybe-check-bzip2
5459maybe-check-bzip2:
a7e609d6
PB
5460@if bzip2
5461maybe-check-bzip2: check-bzip2
8ec98d6c
NN
5462
5463check-bzip2:
5464 @r=`${PWD_COMMAND}`; export r; \
5465 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5466 $(SET_LIB_PATH) \
a675b75a 5467 $(HOST_EXPORTS) \
7fc2ca22
PB
5468 (cd $(HOST_SUBDIR)/bzip2 && \
5469 $(MAKE) $(FLAGS_TO_PASS) check)
8ec98d6c 5470
a7e609d6 5471@endif bzip2
8ec98d6c
NN
5472
5473.PHONY: install-bzip2 maybe-install-bzip2
5474maybe-install-bzip2:
a7e609d6
PB
5475@if bzip2
5476maybe-install-bzip2: install-bzip2
8ec98d6c
NN
5477
5478install-bzip2: installdirs
5479 @r=`${PWD_COMMAND}`; export r; \
5480 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5481 $(SET_LIB_PATH) \
a675b75a 5482 $(HOST_EXPORTS) \
7fc2ca22 5483 (cd $(HOST_SUBDIR)/bzip2 && \
93c60b6d 5484 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 5485
a7e609d6 5486@endif bzip2
8ec98d6c
NN
5487
5488# Other targets (info, dvi, etc.)
5489
5490.PHONY: maybe-info-bzip2 info-bzip2
5491maybe-info-bzip2:
a7e609d6
PB
5492@if bzip2
5493maybe-info-bzip2: info-bzip2
8ec98d6c
NN
5494
5495info-bzip2: \
5496 configure-bzip2
5497 @[ -f ./bzip2/Makefile ] || exit 0; \
5230d454
L
5498 r=`${PWD_COMMAND}`; export r; \
5499 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 5500 $(SET_LIB_PATH) \
a675b75a 5501 $(HOST_EXPORTS) \
d5eec917 5502 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
5503 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5504 done; \
8ec98d6c 5505 echo "Doing info in bzip2" ; \
7fc2ca22 5506 (cd $(HOST_SUBDIR)/bzip2 && \
657b58f4
NN
5507 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5508 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5509 "RANLIB=$${RANLIB}" \
5510 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 5511 info) \
657b58f4
NN
5512 || exit 1
5513
a7e609d6 5514@endif bzip2
657b58f4 5515
8ec98d6c
NN
5516.PHONY: maybe-dvi-bzip2 dvi-bzip2
5517maybe-dvi-bzip2:
a7e609d6
PB
5518@if bzip2
5519maybe-dvi-bzip2: dvi-bzip2
657b58f4 5520
8ec98d6c
NN
5521dvi-bzip2: \
5522 configure-bzip2
5523 @[ -f ./bzip2/Makefile ] || exit 0; \
5230d454
L
5524 r=`${PWD_COMMAND}`; export r; \
5525 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 5526 $(SET_LIB_PATH) \
a675b75a 5527 $(HOST_EXPORTS) \
d5eec917 5528 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
5529 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5530 done; \
8ec98d6c 5531 echo "Doing dvi in bzip2" ; \
7fc2ca22 5532 (cd $(HOST_SUBDIR)/bzip2 && \
657b58f4
NN
5533 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5534 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5535 "RANLIB=$${RANLIB}" \
5536 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 5537 dvi) \
657b58f4
NN
5538 || exit 1
5539
a7e609d6 5540@endif bzip2
657b58f4 5541
b6fb961f
MS
5542.PHONY: maybe-html-bzip2 html-bzip2
5543maybe-html-bzip2:
5544@if bzip2
5545maybe-html-bzip2: html-bzip2
5546
5547html-bzip2: \
5548 configure-bzip2
5549 @[ -f ./bzip2/Makefile ] || exit 0; \
5550 r=`${PWD_COMMAND}`; export r; \
5551 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5552 $(SET_LIB_PATH) \
5553 $(HOST_EXPORTS) \
5554 for flag in $(EXTRA_HOST_FLAGS) ; do \
5555 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5556 done; \
5557 echo "Doing html in bzip2" ; \
7fc2ca22 5558 (cd $(HOST_SUBDIR)/bzip2 && \
b6fb961f
MS
5559 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5560 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5561 "RANLIB=$${RANLIB}" \
5562 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5563 html) \
5564 || exit 1
5565
5566@endif bzip2
5567
8ec98d6c
NN
5568.PHONY: maybe-TAGS-bzip2 TAGS-bzip2
5569maybe-TAGS-bzip2:
a7e609d6
PB
5570@if bzip2
5571maybe-TAGS-bzip2: TAGS-bzip2
657b58f4 5572
8ec98d6c
NN
5573TAGS-bzip2: \
5574 configure-bzip2
5575 @[ -f ./bzip2/Makefile ] || exit 0; \
5230d454
L
5576 r=`${PWD_COMMAND}`; export r; \
5577 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 5578 $(SET_LIB_PATH) \
a675b75a 5579 $(HOST_EXPORTS) \
d5eec917 5580 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
5581 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5582 done; \
8ec98d6c 5583 echo "Doing TAGS in bzip2" ; \
7fc2ca22 5584 (cd $(HOST_SUBDIR)/bzip2 && \
657b58f4
NN
5585 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5586 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5587 "RANLIB=$${RANLIB}" \
5588 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 5589 TAGS) \
657b58f4
NN
5590 || exit 1
5591
a7e609d6 5592@endif bzip2
657b58f4 5593
8ec98d6c
NN
5594.PHONY: maybe-install-info-bzip2 install-info-bzip2
5595maybe-install-info-bzip2:
a7e609d6
PB
5596@if bzip2
5597maybe-install-info-bzip2: install-info-bzip2
657b58f4 5598
8ec98d6c
NN
5599install-info-bzip2: \
5600 configure-bzip2 \
5601 info-bzip2
5602 @[ -f ./bzip2/Makefile ] || exit 0; \
5230d454
L
5603 r=`${PWD_COMMAND}`; export r; \
5604 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 5605 $(SET_LIB_PATH) \
a675b75a 5606 $(HOST_EXPORTS) \
d5eec917 5607 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
5608 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5609 done; \
8ec98d6c 5610 echo "Doing install-info in bzip2" ; \
7fc2ca22 5611 (cd $(HOST_SUBDIR)/bzip2 && \
657b58f4
NN
5612 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5613 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5614 "RANLIB=$${RANLIB}" \
5615 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 5616 install-info) \
657b58f4
NN
5617 || exit 1
5618
a7e609d6 5619@endif bzip2
657b58f4 5620
8ec98d6c
NN
5621.PHONY: maybe-installcheck-bzip2 installcheck-bzip2
5622maybe-installcheck-bzip2:
a7e609d6
PB
5623@if bzip2
5624maybe-installcheck-bzip2: installcheck-bzip2
657b58f4 5625
8ec98d6c
NN
5626installcheck-bzip2: \
5627 configure-bzip2
5628 @[ -f ./bzip2/Makefile ] || exit 0; \
5230d454
L
5629 r=`${PWD_COMMAND}`; export r; \
5630 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 5631 $(SET_LIB_PATH) \
a675b75a 5632 $(HOST_EXPORTS) \
d5eec917 5633 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
5634 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5635 done; \
8ec98d6c 5636 echo "Doing installcheck in bzip2" ; \
7fc2ca22 5637 (cd $(HOST_SUBDIR)/bzip2 && \
657b58f4
NN
5638 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5639 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5640 "RANLIB=$${RANLIB}" \
5641 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 5642 installcheck) \
657b58f4
NN
5643 || exit 1
5644
a7e609d6 5645@endif bzip2
657b58f4 5646
8ec98d6c
NN
5647.PHONY: maybe-mostlyclean-bzip2 mostlyclean-bzip2
5648maybe-mostlyclean-bzip2:
a7e609d6
PB
5649@if bzip2
5650maybe-mostlyclean-bzip2: mostlyclean-bzip2
657b58f4 5651
8ec98d6c
NN
5652mostlyclean-bzip2:
5653 @[ -f ./bzip2/Makefile ] || exit 0; \
5230d454
L
5654 r=`${PWD_COMMAND}`; export r; \
5655 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 5656 $(SET_LIB_PATH) \
a675b75a 5657 $(HOST_EXPORTS) \
d5eec917 5658 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
5659 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5660 done; \
8ec98d6c 5661 echo "Doing mostlyclean in bzip2" ; \
7fc2ca22 5662 (cd $(HOST_SUBDIR)/bzip2 && \
657b58f4
NN
5663 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5664 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5665 "RANLIB=$${RANLIB}" \
5666 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 5667 mostlyclean) \
657b58f4
NN
5668 || exit 1
5669
a7e609d6 5670@endif bzip2
657b58f4 5671
8ec98d6c
NN
5672.PHONY: maybe-clean-bzip2 clean-bzip2
5673maybe-clean-bzip2:
a7e609d6
PB
5674@if bzip2
5675maybe-clean-bzip2: clean-bzip2
657b58f4 5676
8ec98d6c
NN
5677clean-bzip2:
5678 @[ -f ./bzip2/Makefile ] || exit 0; \
5230d454
L
5679 r=`${PWD_COMMAND}`; export r; \
5680 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 5681 $(SET_LIB_PATH) \
a675b75a 5682 $(HOST_EXPORTS) \
d5eec917 5683 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
5684 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5685 done; \
8ec98d6c 5686 echo "Doing clean in bzip2" ; \
7fc2ca22 5687 (cd $(HOST_SUBDIR)/bzip2 && \
657b58f4
NN
5688 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5689 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5690 "RANLIB=$${RANLIB}" \
5691 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 5692 clean) \
657b58f4
NN
5693 || exit 1
5694
a7e609d6 5695@endif bzip2
657b58f4 5696
8ec98d6c
NN
5697.PHONY: maybe-distclean-bzip2 distclean-bzip2
5698maybe-distclean-bzip2:
a7e609d6
PB
5699@if bzip2
5700maybe-distclean-bzip2: distclean-bzip2
657b58f4 5701
8ec98d6c
NN
5702distclean-bzip2:
5703 @[ -f ./bzip2/Makefile ] || exit 0; \
5230d454
L
5704 r=`${PWD_COMMAND}`; export r; \
5705 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 5706 $(SET_LIB_PATH) \
a675b75a 5707 $(HOST_EXPORTS) \
d5eec917 5708 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
5709 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5710 done; \
8ec98d6c 5711 echo "Doing distclean in bzip2" ; \
7fc2ca22 5712 (cd $(HOST_SUBDIR)/bzip2 && \
657b58f4
NN
5713 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5714 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5715 "RANLIB=$${RANLIB}" \
5716 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 5717 distclean) \
657b58f4
NN
5718 || exit 1
5719
a7e609d6 5720@endif bzip2
657b58f4 5721
8ec98d6c
NN
5722.PHONY: maybe-maintainer-clean-bzip2 maintainer-clean-bzip2
5723maybe-maintainer-clean-bzip2:
a7e609d6
PB
5724@if bzip2
5725maybe-maintainer-clean-bzip2: maintainer-clean-bzip2
657b58f4 5726
8ec98d6c
NN
5727maintainer-clean-bzip2:
5728 @[ -f ./bzip2/Makefile ] || exit 0; \
5230d454
L
5729 r=`${PWD_COMMAND}`; export r; \
5730 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 5731 $(SET_LIB_PATH) \
a675b75a 5732 $(HOST_EXPORTS) \
d5eec917 5733 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
5734 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5735 done; \
8ec98d6c 5736 echo "Doing maintainer-clean in bzip2" ; \
7fc2ca22 5737 (cd $(HOST_SUBDIR)/bzip2 && \
657b58f4
NN
5738 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5739 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5740 "RANLIB=$${RANLIB}" \
5741 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 5742 maintainer-clean) \
657b58f4
NN
5743 || exit 1
5744
a7e609d6 5745@endif bzip2
657b58f4 5746
657b58f4 5747
8ec98d6c
NN
5748.PHONY: configure-dejagnu maybe-configure-dejagnu
5749maybe-configure-dejagnu:
a7e609d6
PB
5750@if dejagnu
5751maybe-configure-dejagnu: configure-dejagnu
8ec98d6c 5752configure-dejagnu:
7fc2ca22
PB
5753 @test ! -f $(HOST_SUBDIR)/dejagnu/Makefile || exit 0; \
5754 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/dejagnu ; \
8ec98d6c
NN
5755 r=`${PWD_COMMAND}`; export r; \
5756 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 5757 $(HOST_EXPORTS) \
8ec98d6c 5758 echo Configuring in dejagnu; \
7fc2ca22 5759 cd $(HOST_SUBDIR)/dejagnu || exit 1; \
8ec98d6c 5760 case $(srcdir) in \
7fc2ca22
PB
5761 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
5762 *) topdir=`echo $(HOST_SUBDIR)/dejagnu/ | \
5763 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 5764 esac; \
7fc2ca22
PB
5765 srcdiroption="--srcdir=$${topdir}/dejagnu"; \
5766 libsrcdir="$$s/dejagnu"; \
8ec98d6c 5767 $(SHELL) $${libsrcdir}/configure \
63673a5b 5768 $(HOST_CONFIGARGS) $${srcdiroption} \
8ec98d6c 5769 || exit 1
a7e609d6 5770@endif dejagnu
8ec98d6c
NN
5771
5772.PHONY: all-dejagnu maybe-all-dejagnu
5773maybe-all-dejagnu:
a7e609d6 5774@if dejagnu
5e6b1f07 5775TARGET-dejagnu=all
a7e609d6 5776maybe-all-dejagnu: all-dejagnu
8ec98d6c
NN
5777all-dejagnu: configure-dejagnu
5778 @r=`${PWD_COMMAND}`; export r; \
5779 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5780 $(SET_LIB_PATH) \
a675b75a 5781 $(HOST_EXPORTS) \
7fc2ca22
PB
5782 (cd $(HOST_SUBDIR)/dejagnu && \
5783 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-dejagnu))
a7e609d6 5784@endif dejagnu
8ec98d6c
NN
5785
5786.PHONY: check-dejagnu maybe-check-dejagnu
5787maybe-check-dejagnu:
a7e609d6
PB
5788@if dejagnu
5789maybe-check-dejagnu: check-dejagnu
8ec98d6c
NN
5790
5791check-dejagnu:
5792 @r=`${PWD_COMMAND}`; export r; \
5793 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5794 $(SET_LIB_PATH) \
a675b75a 5795 $(HOST_EXPORTS) \
7fc2ca22
PB
5796 (cd $(HOST_SUBDIR)/dejagnu && \
5797 $(MAKE) $(FLAGS_TO_PASS) check)
8ec98d6c 5798
a7e609d6 5799@endif dejagnu
8ec98d6c
NN
5800
5801.PHONY: install-dejagnu maybe-install-dejagnu
5802maybe-install-dejagnu:
a7e609d6
PB
5803@if dejagnu
5804maybe-install-dejagnu: install-dejagnu
8ec98d6c
NN
5805
5806install-dejagnu: installdirs
5807 @r=`${PWD_COMMAND}`; export r; \
5808 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5809 $(SET_LIB_PATH) \
a675b75a 5810 $(HOST_EXPORTS) \
7fc2ca22 5811 (cd $(HOST_SUBDIR)/dejagnu && \
93c60b6d 5812 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 5813
a7e609d6 5814@endif dejagnu
8ec98d6c
NN
5815
5816# Other targets (info, dvi, etc.)
5817
5818.PHONY: maybe-info-dejagnu info-dejagnu
5819maybe-info-dejagnu:
a7e609d6
PB
5820@if dejagnu
5821maybe-info-dejagnu: info-dejagnu
8ec98d6c
NN
5822
5823info-dejagnu: \
5824 configure-dejagnu
5825 @[ -f ./dejagnu/Makefile ] || exit 0; \
5230d454
L
5826 r=`${PWD_COMMAND}`; export r; \
5827 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 5828 $(SET_LIB_PATH) \
a675b75a 5829 $(HOST_EXPORTS) \
d5eec917 5830 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
5831 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5832 done; \
8ec98d6c 5833 echo "Doing info in dejagnu" ; \
7fc2ca22 5834 (cd $(HOST_SUBDIR)/dejagnu && \
657b58f4
NN
5835 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5836 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5837 "RANLIB=$${RANLIB}" \
5838 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 5839 info) \
657b58f4
NN
5840 || exit 1
5841
a7e609d6 5842@endif dejagnu
657b58f4 5843
8ec98d6c
NN
5844.PHONY: maybe-dvi-dejagnu dvi-dejagnu
5845maybe-dvi-dejagnu:
a7e609d6
PB
5846@if dejagnu
5847maybe-dvi-dejagnu: dvi-dejagnu
657b58f4 5848
8ec98d6c
NN
5849dvi-dejagnu: \
5850 configure-dejagnu
5851 @[ -f ./dejagnu/Makefile ] || exit 0; \
5230d454
L
5852 r=`${PWD_COMMAND}`; export r; \
5853 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 5854 $(SET_LIB_PATH) \
a675b75a 5855 $(HOST_EXPORTS) \
d5eec917 5856 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
5857 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5858 done; \
8ec98d6c 5859 echo "Doing dvi in dejagnu" ; \
7fc2ca22 5860 (cd $(HOST_SUBDIR)/dejagnu && \
657b58f4
NN
5861 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5862 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5863 "RANLIB=$${RANLIB}" \
5864 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 5865 dvi) \
657b58f4
NN
5866 || exit 1
5867
a7e609d6 5868@endif dejagnu
657b58f4 5869
b6fb961f
MS
5870.PHONY: maybe-html-dejagnu html-dejagnu
5871maybe-html-dejagnu:
5872@if dejagnu
5873maybe-html-dejagnu: html-dejagnu
5874
5875html-dejagnu: \
5876 configure-dejagnu
5877 @[ -f ./dejagnu/Makefile ] || exit 0; \
5878 r=`${PWD_COMMAND}`; export r; \
5879 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5880 $(SET_LIB_PATH) \
5881 $(HOST_EXPORTS) \
5882 for flag in $(EXTRA_HOST_FLAGS) ; do \
5883 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5884 done; \
5885 echo "Doing html in dejagnu" ; \
7fc2ca22 5886 (cd $(HOST_SUBDIR)/dejagnu && \
b6fb961f
MS
5887 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5888 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5889 "RANLIB=$${RANLIB}" \
5890 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5891 html) \
5892 || exit 1
5893
5894@endif dejagnu
5895
8ec98d6c
NN
5896.PHONY: maybe-TAGS-dejagnu TAGS-dejagnu
5897maybe-TAGS-dejagnu:
a7e609d6
PB
5898@if dejagnu
5899maybe-TAGS-dejagnu: TAGS-dejagnu
657b58f4 5900
8ec98d6c
NN
5901TAGS-dejagnu: \
5902 configure-dejagnu
5903 @[ -f ./dejagnu/Makefile ] || exit 0; \
5230d454
L
5904 r=`${PWD_COMMAND}`; export r; \
5905 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 5906 $(SET_LIB_PATH) \
a675b75a 5907 $(HOST_EXPORTS) \
d5eec917 5908 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
5909 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5910 done; \
8ec98d6c 5911 echo "Doing TAGS in dejagnu" ; \
7fc2ca22 5912 (cd $(HOST_SUBDIR)/dejagnu && \
657b58f4
NN
5913 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5914 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5915 "RANLIB=$${RANLIB}" \
5916 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 5917 TAGS) \
657b58f4
NN
5918 || exit 1
5919
a7e609d6 5920@endif dejagnu
657b58f4 5921
8ec98d6c
NN
5922.PHONY: maybe-install-info-dejagnu install-info-dejagnu
5923maybe-install-info-dejagnu:
a7e609d6
PB
5924@if dejagnu
5925maybe-install-info-dejagnu: install-info-dejagnu
657b58f4 5926
8ec98d6c
NN
5927install-info-dejagnu: \
5928 configure-dejagnu \
5929 info-dejagnu
5930 @[ -f ./dejagnu/Makefile ] || exit 0; \
5230d454
L
5931 r=`${PWD_COMMAND}`; export r; \
5932 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 5933 $(SET_LIB_PATH) \
a675b75a 5934 $(HOST_EXPORTS) \
d5eec917 5935 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
5936 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5937 done; \
8ec98d6c 5938 echo "Doing install-info in dejagnu" ; \
7fc2ca22 5939 (cd $(HOST_SUBDIR)/dejagnu && \
657b58f4
NN
5940 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5941 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5942 "RANLIB=$${RANLIB}" \
5943 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 5944 install-info) \
657b58f4
NN
5945 || exit 1
5946
a7e609d6 5947@endif dejagnu
657b58f4 5948
8ec98d6c
NN
5949.PHONY: maybe-installcheck-dejagnu installcheck-dejagnu
5950maybe-installcheck-dejagnu:
a7e609d6
PB
5951@if dejagnu
5952maybe-installcheck-dejagnu: installcheck-dejagnu
657b58f4 5953
8ec98d6c
NN
5954installcheck-dejagnu: \
5955 configure-dejagnu
5956 @[ -f ./dejagnu/Makefile ] || exit 0; \
5230d454
L
5957 r=`${PWD_COMMAND}`; export r; \
5958 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 5959 $(SET_LIB_PATH) \
a675b75a 5960 $(HOST_EXPORTS) \
d5eec917 5961 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
5962 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5963 done; \
8ec98d6c 5964 echo "Doing installcheck in dejagnu" ; \
7fc2ca22 5965 (cd $(HOST_SUBDIR)/dejagnu && \
657b58f4
NN
5966 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5967 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5968 "RANLIB=$${RANLIB}" \
5969 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 5970 installcheck) \
657b58f4
NN
5971 || exit 1
5972
a7e609d6 5973@endif dejagnu
657b58f4 5974
8ec98d6c
NN
5975.PHONY: maybe-mostlyclean-dejagnu mostlyclean-dejagnu
5976maybe-mostlyclean-dejagnu:
a7e609d6
PB
5977@if dejagnu
5978maybe-mostlyclean-dejagnu: mostlyclean-dejagnu
657b58f4 5979
8ec98d6c
NN
5980mostlyclean-dejagnu:
5981 @[ -f ./dejagnu/Makefile ] || exit 0; \
5230d454
L
5982 r=`${PWD_COMMAND}`; export r; \
5983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 5984 $(SET_LIB_PATH) \
a675b75a 5985 $(HOST_EXPORTS) \
d5eec917 5986 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
5987 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5988 done; \
8ec98d6c 5989 echo "Doing mostlyclean in dejagnu" ; \
7fc2ca22 5990 (cd $(HOST_SUBDIR)/dejagnu && \
657b58f4
NN
5991 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5992 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5993 "RANLIB=$${RANLIB}" \
5994 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 5995 mostlyclean) \
657b58f4
NN
5996 || exit 1
5997
a7e609d6 5998@endif dejagnu
657b58f4 5999
8ec98d6c
NN
6000.PHONY: maybe-clean-dejagnu clean-dejagnu
6001maybe-clean-dejagnu:
a7e609d6
PB
6002@if dejagnu
6003maybe-clean-dejagnu: clean-dejagnu
657b58f4 6004
8ec98d6c
NN
6005clean-dejagnu:
6006 @[ -f ./dejagnu/Makefile ] || exit 0; \
5230d454
L
6007 r=`${PWD_COMMAND}`; export r; \
6008 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 6009 $(SET_LIB_PATH) \
a675b75a 6010 $(HOST_EXPORTS) \
d5eec917 6011 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
6012 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6013 done; \
8ec98d6c 6014 echo "Doing clean in dejagnu" ; \
7fc2ca22 6015 (cd $(HOST_SUBDIR)/dejagnu && \
657b58f4
NN
6016 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6017 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6018 "RANLIB=$${RANLIB}" \
6019 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 6020 clean) \
657b58f4
NN
6021 || exit 1
6022
a7e609d6 6023@endif dejagnu
657b58f4 6024
8ec98d6c
NN
6025.PHONY: maybe-distclean-dejagnu distclean-dejagnu
6026maybe-distclean-dejagnu:
a7e609d6
PB
6027@if dejagnu
6028maybe-distclean-dejagnu: distclean-dejagnu
657b58f4 6029
8ec98d6c
NN
6030distclean-dejagnu:
6031 @[ -f ./dejagnu/Makefile ] || exit 0; \
5230d454
L
6032 r=`${PWD_COMMAND}`; export r; \
6033 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 6034 $(SET_LIB_PATH) \
a675b75a 6035 $(HOST_EXPORTS) \
d5eec917 6036 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
6037 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6038 done; \
8ec98d6c 6039 echo "Doing distclean in dejagnu" ; \
7fc2ca22 6040 (cd $(HOST_SUBDIR)/dejagnu && \
657b58f4
NN
6041 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6042 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6043 "RANLIB=$${RANLIB}" \
6044 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 6045 distclean) \
657b58f4
NN
6046 || exit 1
6047
a7e609d6 6048@endif dejagnu
657b58f4 6049
8ec98d6c
NN
6050.PHONY: maybe-maintainer-clean-dejagnu maintainer-clean-dejagnu
6051maybe-maintainer-clean-dejagnu:
a7e609d6
PB
6052@if dejagnu
6053maybe-maintainer-clean-dejagnu: maintainer-clean-dejagnu
657b58f4 6054
8ec98d6c
NN
6055maintainer-clean-dejagnu:
6056 @[ -f ./dejagnu/Makefile ] || exit 0; \
5230d454
L
6057 r=`${PWD_COMMAND}`; export r; \
6058 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 6059 $(SET_LIB_PATH) \
a675b75a 6060 $(HOST_EXPORTS) \
d5eec917 6061 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
6062 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6063 done; \
8ec98d6c 6064 echo "Doing maintainer-clean in dejagnu" ; \
7fc2ca22 6065 (cd $(HOST_SUBDIR)/dejagnu && \
657b58f4
NN
6066 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6067 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6068 "RANLIB=$${RANLIB}" \
6069 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 6070 maintainer-clean) \
8ec98d6c
NN
6071 || exit 1
6072
a7e609d6 6073@endif dejagnu
8ec98d6c
NN
6074
6075
6076.PHONY: configure-diff maybe-configure-diff
6077maybe-configure-diff:
a7e609d6
PB
6078@if diff
6079maybe-configure-diff: configure-diff
8ec98d6c 6080configure-diff:
7fc2ca22
PB
6081 @test ! -f $(HOST_SUBDIR)/diff/Makefile || exit 0; \
6082 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/diff ; \
8ec98d6c
NN
6083 r=`${PWD_COMMAND}`; export r; \
6084 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 6085 $(HOST_EXPORTS) \
8ec98d6c 6086 echo Configuring in diff; \
7fc2ca22 6087 cd $(HOST_SUBDIR)/diff || exit 1; \
8ec98d6c 6088 case $(srcdir) in \
7fc2ca22
PB
6089 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
6090 *) topdir=`echo $(HOST_SUBDIR)/diff/ | \
6091 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 6092 esac; \
7fc2ca22
PB
6093 srcdiroption="--srcdir=$${topdir}/diff"; \
6094 libsrcdir="$$s/diff"; \
8ec98d6c 6095 $(SHELL) $${libsrcdir}/configure \
63673a5b 6096 $(HOST_CONFIGARGS) $${srcdiroption} \
657b58f4 6097 || exit 1
a7e609d6 6098@endif diff
657b58f4 6099
8ec98d6c
NN
6100.PHONY: all-diff maybe-all-diff
6101maybe-all-diff:
a7e609d6 6102@if diff
5e6b1f07 6103TARGET-diff=all
a7e609d6 6104maybe-all-diff: all-diff
8ec98d6c
NN
6105all-diff: configure-diff
6106 @r=`${PWD_COMMAND}`; export r; \
6107 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6108 $(SET_LIB_PATH) \
a675b75a 6109 $(HOST_EXPORTS) \
7fc2ca22
PB
6110 (cd $(HOST_SUBDIR)/diff && \
6111 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-diff))
a7e609d6 6112@endif diff
657b58f4 6113
8ec98d6c
NN
6114.PHONY: check-diff maybe-check-diff
6115maybe-check-diff:
a7e609d6
PB
6116@if diff
6117maybe-check-diff: check-diff
657b58f4 6118
8ec98d6c
NN
6119check-diff:
6120 @r=`${PWD_COMMAND}`; export r; \
5230d454 6121 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 6122 $(SET_LIB_PATH) \
a675b75a 6123 $(HOST_EXPORTS) \
7fc2ca22
PB
6124 (cd $(HOST_SUBDIR)/diff && \
6125 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 6126
a7e609d6 6127@endif diff
657b58f4 6128
8ec98d6c
NN
6129.PHONY: install-diff maybe-install-diff
6130maybe-install-diff:
a7e609d6
PB
6131@if diff
6132maybe-install-diff: install-diff
657b58f4 6133
8ec98d6c
NN
6134install-diff: installdirs
6135 @r=`${PWD_COMMAND}`; export r; \
5230d454 6136 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 6137 $(SET_LIB_PATH) \
a675b75a 6138 $(HOST_EXPORTS) \
7fc2ca22 6139 (cd $(HOST_SUBDIR)/diff && \
93c60b6d 6140 $(MAKE) $(FLAGS_TO_PASS) install)
657b58f4 6141
a7e609d6 6142@endif diff
657b58f4 6143
8ec98d6c 6144# Other targets (info, dvi, etc.)
657b58f4 6145
8ec98d6c
NN
6146.PHONY: maybe-info-diff info-diff
6147maybe-info-diff:
a7e609d6
PB
6148@if diff
6149maybe-info-diff: info-diff
657b58f4 6150
8ec98d6c
NN
6151info-diff: \
6152 configure-diff
6153 @[ -f ./diff/Makefile ] || exit 0; \
5230d454
L
6154 r=`${PWD_COMMAND}`; export r; \
6155 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 6156 $(SET_LIB_PATH) \
a675b75a 6157 $(HOST_EXPORTS) \
d5eec917 6158 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
6159 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6160 done; \
8ec98d6c 6161 echo "Doing info in diff" ; \
7fc2ca22 6162 (cd $(HOST_SUBDIR)/diff && \
657b58f4
NN
6163 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6164 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6165 "RANLIB=$${RANLIB}" \
6166 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 6167 info) \
657b58f4
NN
6168 || exit 1
6169
a7e609d6 6170@endif diff
657b58f4 6171
8ec98d6c
NN
6172.PHONY: maybe-dvi-diff dvi-diff
6173maybe-dvi-diff:
a7e609d6
PB
6174@if diff
6175maybe-dvi-diff: dvi-diff
657b58f4 6176
8ec98d6c
NN
6177dvi-diff: \
6178 configure-diff
6179 @[ -f ./diff/Makefile ] || exit 0; \
5230d454
L
6180 r=`${PWD_COMMAND}`; export r; \
6181 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 6182 $(SET_LIB_PATH) \
a675b75a 6183 $(HOST_EXPORTS) \
d5eec917 6184 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
6185 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6186 done; \
8ec98d6c 6187 echo "Doing dvi in diff" ; \
7fc2ca22 6188 (cd $(HOST_SUBDIR)/diff && \
657b58f4
NN
6189 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6190 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6191 "RANLIB=$${RANLIB}" \
6192 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 6193 dvi) \
657b58f4
NN
6194 || exit 1
6195
a7e609d6 6196@endif diff
657b58f4 6197
b6fb961f
MS
6198.PHONY: maybe-html-diff html-diff
6199maybe-html-diff:
6200@if diff
6201maybe-html-diff: html-diff
6202
6203html-diff: \
6204 configure-diff
6205 @[ -f ./diff/Makefile ] || exit 0; \
6206 r=`${PWD_COMMAND}`; export r; \
6207 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6208 $(SET_LIB_PATH) \
6209 $(HOST_EXPORTS) \
6210 for flag in $(EXTRA_HOST_FLAGS) ; do \
6211 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6212 done; \
6213 echo "Doing html in diff" ; \
7fc2ca22 6214 (cd $(HOST_SUBDIR)/diff && \
b6fb961f
MS
6215 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6216 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6217 "RANLIB=$${RANLIB}" \
6218 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6219 html) \
6220 || exit 1
6221
6222@endif diff
6223
8ec98d6c
NN
6224.PHONY: maybe-TAGS-diff TAGS-diff
6225maybe-TAGS-diff:
a7e609d6
PB
6226@if diff
6227maybe-TAGS-diff: TAGS-diff
657b58f4 6228
8ec98d6c
NN
6229TAGS-diff: \
6230 configure-diff
6231 @[ -f ./diff/Makefile ] || exit 0; \
5230d454
L
6232 r=`${PWD_COMMAND}`; export r; \
6233 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 6234 $(SET_LIB_PATH) \
a675b75a 6235 $(HOST_EXPORTS) \
d5eec917 6236 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
6237 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6238 done; \
8ec98d6c 6239 echo "Doing TAGS in diff" ; \
7fc2ca22 6240 (cd $(HOST_SUBDIR)/diff && \
657b58f4
NN
6241 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6242 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6243 "RANLIB=$${RANLIB}" \
6244 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 6245 TAGS) \
657b58f4
NN
6246 || exit 1
6247
a7e609d6 6248@endif diff
657b58f4 6249
8ec98d6c
NN
6250.PHONY: maybe-install-info-diff install-info-diff
6251maybe-install-info-diff:
a7e609d6
PB
6252@if diff
6253maybe-install-info-diff: install-info-diff
657b58f4 6254
8ec98d6c
NN
6255install-info-diff: \
6256 configure-diff \
6257 info-diff
6258 @[ -f ./diff/Makefile ] || exit 0; \
5230d454
L
6259 r=`${PWD_COMMAND}`; export r; \
6260 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 6261 $(SET_LIB_PATH) \
a675b75a 6262 $(HOST_EXPORTS) \
d5eec917 6263 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
6264 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6265 done; \
8ec98d6c 6266 echo "Doing install-info in diff" ; \
7fc2ca22 6267 (cd $(HOST_SUBDIR)/diff && \
657b58f4
NN
6268 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6269 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6270 "RANLIB=$${RANLIB}" \
6271 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 6272 install-info) \
657b58f4
NN
6273 || exit 1
6274
a7e609d6 6275@endif diff
657b58f4 6276
8ec98d6c
NN
6277.PHONY: maybe-installcheck-diff installcheck-diff
6278maybe-installcheck-diff:
a7e609d6
PB
6279@if diff
6280maybe-installcheck-diff: installcheck-diff
657b58f4 6281
8ec98d6c
NN
6282installcheck-diff: \
6283 configure-diff
6284 @[ -f ./diff/Makefile ] || exit 0; \
5230d454
L
6285 r=`${PWD_COMMAND}`; export r; \
6286 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 6287 $(SET_LIB_PATH) \
a675b75a 6288 $(HOST_EXPORTS) \
d5eec917 6289 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
6290 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6291 done; \
8ec98d6c 6292 echo "Doing installcheck in diff" ; \
7fc2ca22 6293 (cd $(HOST_SUBDIR)/diff && \
657b58f4
NN
6294 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6295 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6296 "RANLIB=$${RANLIB}" \
6297 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 6298 installcheck) \
657b58f4
NN
6299 || exit 1
6300
a7e609d6 6301@endif diff
657b58f4 6302
8ec98d6c
NN
6303.PHONY: maybe-mostlyclean-diff mostlyclean-diff
6304maybe-mostlyclean-diff:
a7e609d6
PB
6305@if diff
6306maybe-mostlyclean-diff: mostlyclean-diff
657b58f4 6307
8ec98d6c
NN
6308mostlyclean-diff:
6309 @[ -f ./diff/Makefile ] || exit 0; \
5230d454
L
6310 r=`${PWD_COMMAND}`; export r; \
6311 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 6312 $(SET_LIB_PATH) \
a675b75a 6313 $(HOST_EXPORTS) \
d5eec917 6314 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
6315 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6316 done; \
8ec98d6c 6317 echo "Doing mostlyclean in diff" ; \
7fc2ca22 6318 (cd $(HOST_SUBDIR)/diff && \
657b58f4
NN
6319 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6320 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6321 "RANLIB=$${RANLIB}" \
6322 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 6323 mostlyclean) \
657b58f4
NN
6324 || exit 1
6325
a7e609d6 6326@endif diff
657b58f4 6327
8ec98d6c
NN
6328.PHONY: maybe-clean-diff clean-diff
6329maybe-clean-diff:
a7e609d6
PB
6330@if diff
6331maybe-clean-diff: clean-diff
657b58f4 6332
8ec98d6c
NN
6333clean-diff:
6334 @[ -f ./diff/Makefile ] || exit 0; \
5230d454
L
6335 r=`${PWD_COMMAND}`; export r; \
6336 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 6337 $(SET_LIB_PATH) \
a675b75a 6338 $(HOST_EXPORTS) \
d5eec917 6339 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
6340 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6341 done; \
8ec98d6c 6342 echo "Doing clean in diff" ; \
7fc2ca22 6343 (cd $(HOST_SUBDIR)/diff && \
657b58f4
NN
6344 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6345 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6346 "RANLIB=$${RANLIB}" \
6347 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 6348 clean) \
657b58f4
NN
6349 || exit 1
6350
a7e609d6 6351@endif diff
657b58f4 6352
8ec98d6c
NN
6353.PHONY: maybe-distclean-diff distclean-diff
6354maybe-distclean-diff:
a7e609d6
PB
6355@if diff
6356maybe-distclean-diff: distclean-diff
657b58f4 6357
8ec98d6c
NN
6358distclean-diff:
6359 @[ -f ./diff/Makefile ] || exit 0; \
5230d454
L
6360 r=`${PWD_COMMAND}`; export r; \
6361 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 6362 $(SET_LIB_PATH) \
a675b75a 6363 $(HOST_EXPORTS) \
d5eec917 6364 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
6365 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6366 done; \
8ec98d6c 6367 echo "Doing distclean in diff" ; \
7fc2ca22 6368 (cd $(HOST_SUBDIR)/diff && \
657b58f4
NN
6369 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6370 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6371 "RANLIB=$${RANLIB}" \
6372 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 6373 distclean) \
657b58f4
NN
6374 || exit 1
6375
a7e609d6 6376@endif diff
657b58f4 6377
8ec98d6c
NN
6378.PHONY: maybe-maintainer-clean-diff maintainer-clean-diff
6379maybe-maintainer-clean-diff:
a7e609d6
PB
6380@if diff
6381maybe-maintainer-clean-diff: maintainer-clean-diff
657b58f4 6382
8ec98d6c
NN
6383maintainer-clean-diff:
6384 @[ -f ./diff/Makefile ] || exit 0; \
5230d454
L
6385 r=`${PWD_COMMAND}`; export r; \
6386 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 6387 $(SET_LIB_PATH) \
a675b75a 6388 $(HOST_EXPORTS) \
d5eec917 6389 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
6390 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6391 done; \
8ec98d6c 6392 echo "Doing maintainer-clean in diff" ; \
7fc2ca22 6393 (cd $(HOST_SUBDIR)/diff && \
657b58f4
NN
6394 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6395 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6396 "RANLIB=$${RANLIB}" \
6397 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 6398 maintainer-clean) \
657b58f4
NN
6399 || exit 1
6400
a7e609d6 6401@endif diff
657b58f4 6402
657b58f4 6403
8ec98d6c
NN
6404.PHONY: configure-dosutils maybe-configure-dosutils
6405maybe-configure-dosutils:
a7e609d6
PB
6406@if dosutils
6407maybe-configure-dosutils: configure-dosutils
8ec98d6c 6408configure-dosutils:
7fc2ca22
PB
6409 @test ! -f $(HOST_SUBDIR)/dosutils/Makefile || exit 0; \
6410 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/dosutils ; \
5230d454
L
6411 r=`${PWD_COMMAND}`; export r; \
6412 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 6413 $(HOST_EXPORTS) \
8ec98d6c 6414 echo Configuring in dosutils; \
7fc2ca22 6415 cd $(HOST_SUBDIR)/dosutils || exit 1; \
8ec98d6c 6416 case $(srcdir) in \
7fc2ca22
PB
6417 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
6418 *) topdir=`echo $(HOST_SUBDIR)/dosutils/ | \
6419 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 6420 esac; \
7fc2ca22
PB
6421 srcdiroption="--srcdir=$${topdir}/dosutils"; \
6422 libsrcdir="$$s/dosutils"; \
8ec98d6c 6423 $(SHELL) $${libsrcdir}/configure \
63673a5b 6424 $(HOST_CONFIGARGS) $${srcdiroption} \
8ec98d6c 6425 || exit 1
a7e609d6 6426@endif dosutils
8ec98d6c
NN
6427
6428.PHONY: all-dosutils maybe-all-dosutils
6429maybe-all-dosutils:
a7e609d6 6430@if dosutils
5e6b1f07 6431TARGET-dosutils=all
a7e609d6 6432maybe-all-dosutils: all-dosutils
8ec98d6c
NN
6433all-dosutils: configure-dosutils
6434 @r=`${PWD_COMMAND}`; export r; \
6435 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 6436 $(SET_LIB_PATH) \
a675b75a 6437 $(HOST_EXPORTS) \
7fc2ca22
PB
6438 (cd $(HOST_SUBDIR)/dosutils && \
6439 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-dosutils))
a7e609d6 6440@endif dosutils
8ec98d6c
NN
6441
6442.PHONY: check-dosutils maybe-check-dosutils
6443maybe-check-dosutils:
a7e609d6
PB
6444@if dosutils
6445maybe-check-dosutils: check-dosutils
657b58f4 6446
8ec98d6c 6447check-dosutils:
657b58f4 6448
a7e609d6 6449@endif dosutils
657b58f4 6450
8ec98d6c
NN
6451.PHONY: install-dosutils maybe-install-dosutils
6452maybe-install-dosutils:
a7e609d6
PB
6453@if dosutils
6454maybe-install-dosutils: install-dosutils
8ec98d6c
NN
6455
6456install-dosutils: installdirs
6457 @r=`${PWD_COMMAND}`; export r; \
5230d454 6458 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 6459 $(SET_LIB_PATH) \
a675b75a 6460 $(HOST_EXPORTS) \
7fc2ca22 6461 (cd $(HOST_SUBDIR)/dosutils && \
93c60b6d 6462 $(MAKE) $(FLAGS_TO_PASS) install)
657b58f4 6463
a7e609d6 6464@endif dosutils
657b58f4 6465
8ec98d6c 6466# Other targets (info, dvi, etc.)
657b58f4 6467
8ec98d6c
NN
6468.PHONY: maybe-info-dosutils info-dosutils
6469maybe-info-dosutils:
a7e609d6
PB
6470@if dosutils
6471maybe-info-dosutils: info-dosutils
8ec98d6c
NN
6472
6473info-dosutils: \
6474 configure-dosutils
6475 @[ -f ./dosutils/Makefile ] || exit 0; \
5230d454
L
6476 r=`${PWD_COMMAND}`; export r; \
6477 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 6478 $(SET_LIB_PATH) \
a675b75a 6479 $(HOST_EXPORTS) \
d5eec917 6480 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
6481 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6482 done; \
8ec98d6c 6483 echo "Doing info in dosutils" ; \
7fc2ca22 6484 (cd $(HOST_SUBDIR)/dosutils && \
657b58f4
NN
6485 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6486 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6487 "RANLIB=$${RANLIB}" \
6488 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 6489 info) \
657b58f4
NN
6490 || exit 1
6491
a7e609d6 6492@endif dosutils
657b58f4 6493
8ec98d6c
NN
6494.PHONY: maybe-dvi-dosutils dvi-dosutils
6495maybe-dvi-dosutils:
a7e609d6
PB
6496@if dosutils
6497maybe-dvi-dosutils: dvi-dosutils
657b58f4 6498
8ec98d6c
NN
6499dvi-dosutils: \
6500 configure-dosutils
6501 @[ -f ./dosutils/Makefile ] || exit 0; \
5230d454
L
6502 r=`${PWD_COMMAND}`; export r; \
6503 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 6504 $(SET_LIB_PATH) \
a675b75a 6505 $(HOST_EXPORTS) \
d5eec917 6506 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
6507 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6508 done; \
8ec98d6c 6509 echo "Doing dvi in dosutils" ; \
7fc2ca22 6510 (cd $(HOST_SUBDIR)/dosutils && \
657b58f4
NN
6511 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6512 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6513 "RANLIB=$${RANLIB}" \
6514 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 6515 dvi) \
657b58f4
NN
6516 || exit 1
6517
a7e609d6 6518@endif dosutils
657b58f4 6519
b6fb961f
MS
6520.PHONY: maybe-html-dosutils html-dosutils
6521maybe-html-dosutils:
a7e609d6 6522@if dosutils
b6fb961f 6523maybe-html-dosutils: html-dosutils
657b58f4 6524
b6fb961f 6525html-dosutils: \
8ec98d6c
NN
6526 configure-dosutils
6527 @[ -f ./dosutils/Makefile ] || exit 0; \
5230d454
L
6528 r=`${PWD_COMMAND}`; export r; \
6529 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 6530 $(SET_LIB_PATH) \
a675b75a 6531 $(HOST_EXPORTS) \
d5eec917 6532 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
6533 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6534 done; \
b6fb961f 6535 echo "Doing html in dosutils" ; \
7fc2ca22 6536 (cd $(HOST_SUBDIR)/dosutils && \
657b58f4
NN
6537 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6538 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6539 "RANLIB=$${RANLIB}" \
6540 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b6fb961f 6541 html) \
657b58f4
NN
6542 || exit 1
6543
a7e609d6 6544@endif dosutils
657b58f4 6545
b6fb961f
MS
6546.PHONY: maybe-TAGS-dosutils TAGS-dosutils
6547maybe-TAGS-dosutils:
a7e609d6 6548@if dosutils
b6fb961f 6549maybe-TAGS-dosutils: TAGS-dosutils
657b58f4 6550
b6fb961f
MS
6551TAGS-dosutils: \
6552 configure-dosutils
6553 @[ -f ./dosutils/Makefile ] || exit 0; \
6554 r=`${PWD_COMMAND}`; export r; \
6555 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6556 $(SET_LIB_PATH) \
6557 $(HOST_EXPORTS) \
6558 for flag in $(EXTRA_HOST_FLAGS) ; do \
6559 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6560 done; \
6561 echo "Doing TAGS in dosutils" ; \
7fc2ca22 6562 (cd $(HOST_SUBDIR)/dosutils && \
b6fb961f
MS
6563 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6564 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6565 "RANLIB=$${RANLIB}" \
6566 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6567 TAGS) \
6568 || exit 1
6569
6570@endif dosutils
6571
6572.PHONY: maybe-install-info-dosutils install-info-dosutils
6573maybe-install-info-dosutils:
6574@if dosutils
6575maybe-install-info-dosutils: install-info-dosutils
6576
6577install-info-dosutils: \
6578 configure-dosutils \
6579 info-dosutils
8ec98d6c 6580 @[ -f ./dosutils/Makefile ] || exit 0; \
5230d454
L
6581 r=`${PWD_COMMAND}`; export r; \
6582 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 6583 $(SET_LIB_PATH) \
a675b75a 6584 $(HOST_EXPORTS) \
d5eec917 6585 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
6586 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6587 done; \
8ec98d6c 6588 echo "Doing install-info in dosutils" ; \
7fc2ca22 6589 (cd $(HOST_SUBDIR)/dosutils && \
657b58f4
NN
6590 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6591 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6592 "RANLIB=$${RANLIB}" \
6593 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 6594 install-info) \
657b58f4
NN
6595 || exit 1
6596
a7e609d6 6597@endif dosutils
657b58f4 6598
8ec98d6c
NN
6599.PHONY: maybe-installcheck-dosutils installcheck-dosutils
6600maybe-installcheck-dosutils:
a7e609d6
PB
6601@if dosutils
6602maybe-installcheck-dosutils: installcheck-dosutils
657b58f4 6603
8ec98d6c
NN
6604installcheck-dosutils: \
6605 configure-dosutils
6606 @[ -f ./dosutils/Makefile ] || exit 0; \
5230d454
L
6607 r=`${PWD_COMMAND}`; export r; \
6608 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 6609 $(SET_LIB_PATH) \
a675b75a 6610 $(HOST_EXPORTS) \
d5eec917 6611 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
6612 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6613 done; \
8ec98d6c 6614 echo "Doing installcheck in dosutils" ; \
7fc2ca22 6615 (cd $(HOST_SUBDIR)/dosutils && \
657b58f4
NN
6616 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6617 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6618 "RANLIB=$${RANLIB}" \
6619 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 6620 installcheck) \
657b58f4
NN
6621 || exit 1
6622
a7e609d6 6623@endif dosutils
657b58f4 6624
8ec98d6c
NN
6625.PHONY: maybe-mostlyclean-dosutils mostlyclean-dosutils
6626maybe-mostlyclean-dosutils:
a7e609d6
PB
6627@if dosutils
6628maybe-mostlyclean-dosutils: mostlyclean-dosutils
d832a288 6629
8ec98d6c
NN
6630mostlyclean-dosutils:
6631 @[ -f ./dosutils/Makefile ] || exit 0; \
d832a288
DD
6632 r=`${PWD_COMMAND}`; export r; \
6633 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6634 $(SET_LIB_PATH) \
a675b75a 6635 $(HOST_EXPORTS) \
d5eec917 6636 for flag in $(EXTRA_HOST_FLAGS) ; do \
d832a288
DD
6637 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6638 done; \
8ec98d6c 6639 echo "Doing mostlyclean in dosutils" ; \
7fc2ca22 6640 (cd $(HOST_SUBDIR)/dosutils && \
d832a288
DD
6641 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6642 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6643 "RANLIB=$${RANLIB}" \
6644 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 6645 mostlyclean) \
d832a288
DD
6646 || exit 1
6647
a7e609d6 6648@endif dosutils
d832a288 6649
8ec98d6c
NN
6650.PHONY: maybe-clean-dosutils clean-dosutils
6651maybe-clean-dosutils:
a7e609d6
PB
6652@if dosutils
6653maybe-clean-dosutils: clean-dosutils
657b58f4 6654
8ec98d6c
NN
6655clean-dosutils:
6656 @[ -f ./dosutils/Makefile ] || exit 0; \
5230d454
L
6657 r=`${PWD_COMMAND}`; export r; \
6658 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 6659 $(SET_LIB_PATH) \
a675b75a 6660 $(HOST_EXPORTS) \
d5eec917 6661 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
6662 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6663 done; \
8ec98d6c 6664 echo "Doing clean in dosutils" ; \
7fc2ca22 6665 (cd $(HOST_SUBDIR)/dosutils && \
657b58f4
NN
6666 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6667 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6668 "RANLIB=$${RANLIB}" \
6669 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 6670 clean) \
657b58f4
NN
6671 || exit 1
6672
a7e609d6 6673@endif dosutils
657b58f4 6674
8ec98d6c
NN
6675.PHONY: maybe-distclean-dosutils distclean-dosutils
6676maybe-distclean-dosutils:
a7e609d6
PB
6677@if dosutils
6678maybe-distclean-dosutils: distclean-dosutils
657b58f4 6679
8ec98d6c
NN
6680distclean-dosutils:
6681 @[ -f ./dosutils/Makefile ] || exit 0; \
5230d454
L
6682 r=`${PWD_COMMAND}`; export r; \
6683 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 6684 $(SET_LIB_PATH) \
a675b75a 6685 $(HOST_EXPORTS) \
d5eec917 6686 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
6687 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6688 done; \
8ec98d6c 6689 echo "Doing distclean in dosutils" ; \
7fc2ca22 6690 (cd $(HOST_SUBDIR)/dosutils && \
657b58f4
NN
6691 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6692 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6693 "RANLIB=$${RANLIB}" \
6694 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 6695 distclean) \
657b58f4
NN
6696 || exit 1
6697
a7e609d6 6698@endif dosutils
657b58f4 6699
8ec98d6c
NN
6700.PHONY: maybe-maintainer-clean-dosutils maintainer-clean-dosutils
6701maybe-maintainer-clean-dosutils:
a7e609d6
PB
6702@if dosutils
6703maybe-maintainer-clean-dosutils: maintainer-clean-dosutils
657b58f4 6704
8ec98d6c
NN
6705maintainer-clean-dosutils:
6706 @[ -f ./dosutils/Makefile ] || exit 0; \
5230d454
L
6707 r=`${PWD_COMMAND}`; export r; \
6708 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 6709 $(SET_LIB_PATH) \
a675b75a 6710 $(HOST_EXPORTS) \
d5eec917 6711 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
6712 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6713 done; \
8ec98d6c 6714 echo "Doing maintainer-clean in dosutils" ; \
7fc2ca22 6715 (cd $(HOST_SUBDIR)/dosutils && \
657b58f4
NN
6716 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6717 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6718 "RANLIB=$${RANLIB}" \
6719 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 6720 maintainer-clean) \
657b58f4
NN
6721 || exit 1
6722
a7e609d6 6723@endif dosutils
657b58f4 6724
657b58f4 6725
8ec98d6c
NN
6726.PHONY: configure-etc maybe-configure-etc
6727maybe-configure-etc:
a7e609d6
PB
6728@if etc
6729maybe-configure-etc: configure-etc
8ec98d6c 6730configure-etc:
7fc2ca22
PB
6731 @test ! -f $(HOST_SUBDIR)/etc/Makefile || exit 0; \
6732 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/etc ; \
8ec98d6c
NN
6733 r=`${PWD_COMMAND}`; export r; \
6734 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 6735 $(HOST_EXPORTS) \
8ec98d6c 6736 echo Configuring in etc; \
7fc2ca22 6737 cd $(HOST_SUBDIR)/etc || exit 1; \
8ec98d6c 6738 case $(srcdir) in \
7fc2ca22
PB
6739 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
6740 *) topdir=`echo $(HOST_SUBDIR)/etc/ | \
6741 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 6742 esac; \
7fc2ca22
PB
6743 srcdiroption="--srcdir=$${topdir}/etc"; \
6744 libsrcdir="$$s/etc"; \
8ec98d6c 6745 $(SHELL) $${libsrcdir}/configure \
63673a5b 6746 $(HOST_CONFIGARGS) $${srcdiroption} \
8ec98d6c 6747 || exit 1
a7e609d6 6748@endif etc
8ec98d6c
NN
6749
6750.PHONY: all-etc maybe-all-etc
6751maybe-all-etc:
a7e609d6 6752@if etc
5e6b1f07 6753TARGET-etc=all
a7e609d6 6754maybe-all-etc: all-etc
8ec98d6c
NN
6755all-etc: configure-etc
6756 @r=`${PWD_COMMAND}`; export r; \
6757 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6758 $(SET_LIB_PATH) \
a675b75a 6759 $(HOST_EXPORTS) \
7fc2ca22
PB
6760 (cd $(HOST_SUBDIR)/etc && \
6761 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-etc))
a7e609d6 6762@endif etc
8ec98d6c
NN
6763
6764.PHONY: check-etc maybe-check-etc
6765maybe-check-etc:
a7e609d6
PB
6766@if etc
6767maybe-check-etc: check-etc
8ec98d6c
NN
6768
6769check-etc:
6770 @r=`${PWD_COMMAND}`; export r; \
6771 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6772 $(SET_LIB_PATH) \
a675b75a 6773 $(HOST_EXPORTS) \
7fc2ca22
PB
6774 (cd $(HOST_SUBDIR)/etc && \
6775 $(MAKE) $(FLAGS_TO_PASS) check)
8ec98d6c 6776
a7e609d6 6777@endif etc
8ec98d6c
NN
6778
6779.PHONY: install-etc maybe-install-etc
6780maybe-install-etc:
a7e609d6
PB
6781@if etc
6782maybe-install-etc: install-etc
8ec98d6c
NN
6783
6784install-etc: installdirs
6785 @r=`${PWD_COMMAND}`; export r; \
6786 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6787 $(SET_LIB_PATH) \
a675b75a 6788 $(HOST_EXPORTS) \
7fc2ca22 6789 (cd $(HOST_SUBDIR)/etc && \
93c60b6d 6790 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 6791
a7e609d6 6792@endif etc
8ec98d6c
NN
6793
6794# Other targets (info, dvi, etc.)
6795
6796.PHONY: maybe-info-etc info-etc
6797maybe-info-etc:
a7e609d6
PB
6798@if etc
6799maybe-info-etc: info-etc
8ec98d6c
NN
6800
6801info-etc: \
6802 configure-etc
6803 @[ -f ./etc/Makefile ] || exit 0; \
5230d454
L
6804 r=`${PWD_COMMAND}`; export r; \
6805 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 6806 $(SET_LIB_PATH) \
a675b75a 6807 $(HOST_EXPORTS) \
d5eec917 6808 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
6809 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6810 done; \
8ec98d6c 6811 echo "Doing info in etc" ; \
7fc2ca22 6812 (cd $(HOST_SUBDIR)/etc && \
657b58f4
NN
6813 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6814 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6815 "RANLIB=$${RANLIB}" \
6816 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 6817 info) \
657b58f4
NN
6818 || exit 1
6819
a7e609d6 6820@endif etc
657b58f4 6821
8ec98d6c
NN
6822.PHONY: maybe-dvi-etc dvi-etc
6823maybe-dvi-etc:
a7e609d6
PB
6824@if etc
6825maybe-dvi-etc: dvi-etc
657b58f4 6826
8ec98d6c
NN
6827dvi-etc: \
6828 configure-etc
6829 @[ -f ./etc/Makefile ] || exit 0; \
5230d454
L
6830 r=`${PWD_COMMAND}`; export r; \
6831 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 6832 $(SET_LIB_PATH) \
a675b75a 6833 $(HOST_EXPORTS) \
d5eec917 6834 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
6835 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6836 done; \
8ec98d6c 6837 echo "Doing dvi in etc" ; \
7fc2ca22 6838 (cd $(HOST_SUBDIR)/etc && \
657b58f4
NN
6839 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6840 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6841 "RANLIB=$${RANLIB}" \
6842 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 6843 dvi) \
657b58f4
NN
6844 || exit 1
6845
a7e609d6 6846@endif etc
657b58f4 6847
b6fb961f
MS
6848.PHONY: maybe-html-etc html-etc
6849maybe-html-etc:
6850@if etc
6851maybe-html-etc: html-etc
6852
6853html-etc: \
6854 configure-etc
6855 @[ -f ./etc/Makefile ] || exit 0; \
6856 r=`${PWD_COMMAND}`; export r; \
6857 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6858 $(SET_LIB_PATH) \
6859 $(HOST_EXPORTS) \
6860 for flag in $(EXTRA_HOST_FLAGS) ; do \
6861 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6862 done; \
6863 echo "Doing html in etc" ; \
7fc2ca22 6864 (cd $(HOST_SUBDIR)/etc && \
b6fb961f
MS
6865 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6866 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6867 "RANLIB=$${RANLIB}" \
6868 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6869 html) \
6870 || exit 1
6871
6872@endif etc
6873
8ec98d6c
NN
6874.PHONY: maybe-TAGS-etc TAGS-etc
6875maybe-TAGS-etc:
a7e609d6
PB
6876@if etc
6877maybe-TAGS-etc: TAGS-etc
657b58f4 6878
8ec98d6c
NN
6879TAGS-etc: \
6880 configure-etc
6881 @[ -f ./etc/Makefile ] || exit 0; \
5230d454
L
6882 r=`${PWD_COMMAND}`; export r; \
6883 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 6884 $(SET_LIB_PATH) \
a675b75a 6885 $(HOST_EXPORTS) \
d5eec917 6886 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
6887 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6888 done; \
8ec98d6c 6889 echo "Doing TAGS in etc" ; \
7fc2ca22 6890 (cd $(HOST_SUBDIR)/etc && \
657b58f4
NN
6891 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6892 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6893 "RANLIB=$${RANLIB}" \
6894 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 6895 TAGS) \
657b58f4
NN
6896 || exit 1
6897
a7e609d6 6898@endif etc
657b58f4 6899
8ec98d6c
NN
6900.PHONY: maybe-install-info-etc install-info-etc
6901maybe-install-info-etc:
a7e609d6
PB
6902@if etc
6903maybe-install-info-etc: install-info-etc
657b58f4 6904
8ec98d6c
NN
6905install-info-etc: \
6906 configure-etc \
6907 info-etc
6908 @[ -f ./etc/Makefile ] || exit 0; \
5230d454
L
6909 r=`${PWD_COMMAND}`; export r; \
6910 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 6911 $(SET_LIB_PATH) \
a675b75a 6912 $(HOST_EXPORTS) \
d5eec917 6913 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
6914 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6915 done; \
8ec98d6c 6916 echo "Doing install-info in etc" ; \
7fc2ca22 6917 (cd $(HOST_SUBDIR)/etc && \
657b58f4
NN
6918 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6919 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6920 "RANLIB=$${RANLIB}" \
6921 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 6922 install-info) \
657b58f4
NN
6923 || exit 1
6924
a7e609d6 6925@endif etc
657b58f4 6926
8ec98d6c
NN
6927.PHONY: maybe-installcheck-etc installcheck-etc
6928maybe-installcheck-etc:
a7e609d6
PB
6929@if etc
6930maybe-installcheck-etc: installcheck-etc
657b58f4 6931
8ec98d6c
NN
6932installcheck-etc: \
6933 configure-etc
6934 @[ -f ./etc/Makefile ] || exit 0; \
5230d454
L
6935 r=`${PWD_COMMAND}`; export r; \
6936 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 6937 $(SET_LIB_PATH) \
a675b75a 6938 $(HOST_EXPORTS) \
d5eec917 6939 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
6940 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6941 done; \
8ec98d6c 6942 echo "Doing installcheck in etc" ; \
7fc2ca22 6943 (cd $(HOST_SUBDIR)/etc && \
657b58f4
NN
6944 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6945 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6946 "RANLIB=$${RANLIB}" \
6947 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 6948 installcheck) \
657b58f4
NN
6949 || exit 1
6950
a7e609d6 6951@endif etc
657b58f4 6952
8ec98d6c
NN
6953.PHONY: maybe-mostlyclean-etc mostlyclean-etc
6954maybe-mostlyclean-etc:
a7e609d6
PB
6955@if etc
6956maybe-mostlyclean-etc: mostlyclean-etc
657b58f4 6957
8ec98d6c
NN
6958mostlyclean-etc:
6959 @[ -f ./etc/Makefile ] || exit 0; \
5230d454
L
6960 r=`${PWD_COMMAND}`; export r; \
6961 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 6962 $(SET_LIB_PATH) \
a675b75a 6963 $(HOST_EXPORTS) \
d5eec917 6964 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
6965 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6966 done; \
8ec98d6c 6967 echo "Doing mostlyclean in etc" ; \
7fc2ca22 6968 (cd $(HOST_SUBDIR)/etc && \
657b58f4
NN
6969 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6970 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6971 "RANLIB=$${RANLIB}" \
6972 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 6973 mostlyclean) \
657b58f4
NN
6974 || exit 1
6975
a7e609d6 6976@endif etc
657b58f4 6977
8ec98d6c
NN
6978.PHONY: maybe-clean-etc clean-etc
6979maybe-clean-etc:
a7e609d6
PB
6980@if etc
6981maybe-clean-etc: clean-etc
657b58f4 6982
8ec98d6c
NN
6983clean-etc:
6984 @[ -f ./etc/Makefile ] || exit 0; \
5230d454
L
6985 r=`${PWD_COMMAND}`; export r; \
6986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 6987 $(SET_LIB_PATH) \
a675b75a 6988 $(HOST_EXPORTS) \
d5eec917 6989 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
6990 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6991 done; \
8ec98d6c 6992 echo "Doing clean in etc" ; \
7fc2ca22 6993 (cd $(HOST_SUBDIR)/etc && \
657b58f4
NN
6994 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6995 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6996 "RANLIB=$${RANLIB}" \
6997 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 6998 clean) \
657b58f4
NN
6999 || exit 1
7000
a7e609d6 7001@endif etc
657b58f4 7002
8ec98d6c
NN
7003.PHONY: maybe-distclean-etc distclean-etc
7004maybe-distclean-etc:
a7e609d6
PB
7005@if etc
7006maybe-distclean-etc: distclean-etc
657b58f4 7007
8ec98d6c
NN
7008distclean-etc:
7009 @[ -f ./etc/Makefile ] || exit 0; \
5230d454
L
7010 r=`${PWD_COMMAND}`; export r; \
7011 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 7012 $(SET_LIB_PATH) \
a675b75a 7013 $(HOST_EXPORTS) \
d5eec917 7014 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
7015 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7016 done; \
8ec98d6c 7017 echo "Doing distclean in etc" ; \
7fc2ca22 7018 (cd $(HOST_SUBDIR)/etc && \
657b58f4
NN
7019 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7020 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7021 "RANLIB=$${RANLIB}" \
7022 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 7023 distclean) \
657b58f4
NN
7024 || exit 1
7025
a7e609d6 7026@endif etc
657b58f4 7027
8ec98d6c
NN
7028.PHONY: maybe-maintainer-clean-etc maintainer-clean-etc
7029maybe-maintainer-clean-etc:
a7e609d6
PB
7030@if etc
7031maybe-maintainer-clean-etc: maintainer-clean-etc
657b58f4 7032
8ec98d6c
NN
7033maintainer-clean-etc:
7034 @[ -f ./etc/Makefile ] || exit 0; \
5230d454
L
7035 r=`${PWD_COMMAND}`; export r; \
7036 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 7037 $(SET_LIB_PATH) \
a675b75a 7038 $(HOST_EXPORTS) \
d5eec917 7039 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
7040 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7041 done; \
8ec98d6c 7042 echo "Doing maintainer-clean in etc" ; \
7fc2ca22 7043 (cd $(HOST_SUBDIR)/etc && \
657b58f4
NN
7044 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7045 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7046 "RANLIB=$${RANLIB}" \
7047 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 7048 maintainer-clean) \
657b58f4
NN
7049 || exit 1
7050
a7e609d6 7051@endif etc
657b58f4 7052
657b58f4 7053
8ec98d6c
NN
7054.PHONY: configure-fastjar maybe-configure-fastjar
7055maybe-configure-fastjar:
a7e609d6
PB
7056@if fastjar
7057maybe-configure-fastjar: configure-fastjar
8ec98d6c 7058configure-fastjar:
7fc2ca22
PB
7059 @test ! -f $(HOST_SUBDIR)/fastjar/Makefile || exit 0; \
7060 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fastjar ; \
5230d454
L
7061 r=`${PWD_COMMAND}`; export r; \
7062 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 7063 $(HOST_EXPORTS) \
8ec98d6c 7064 echo Configuring in fastjar; \
7fc2ca22 7065 cd $(HOST_SUBDIR)/fastjar || exit 1; \
8ec98d6c 7066 case $(srcdir) in \
7fc2ca22
PB
7067 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7068 *) topdir=`echo $(HOST_SUBDIR)/fastjar/ | \
7069 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 7070 esac; \
7fc2ca22
PB
7071 srcdiroption="--srcdir=$${topdir}/fastjar"; \
7072 libsrcdir="$$s/fastjar"; \
8ec98d6c 7073 $(SHELL) $${libsrcdir}/configure \
63673a5b 7074 $(HOST_CONFIGARGS) $${srcdiroption} \
8ec98d6c 7075 || exit 1
a7e609d6 7076@endif fastjar
8ec98d6c
NN
7077
7078.PHONY: all-fastjar maybe-all-fastjar
7079maybe-all-fastjar:
a7e609d6 7080@if fastjar
5e6b1f07 7081TARGET-fastjar=all
a7e609d6 7082maybe-all-fastjar: all-fastjar
8ec98d6c
NN
7083all-fastjar: configure-fastjar
7084 @r=`${PWD_COMMAND}`; export r; \
7085 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 7086 $(SET_LIB_PATH) \
a675b75a 7087 $(HOST_EXPORTS) \
7fc2ca22
PB
7088 (cd $(HOST_SUBDIR)/fastjar && \
7089 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-fastjar))
a7e609d6 7090@endif fastjar
657b58f4 7091
8ec98d6c
NN
7092.PHONY: check-fastjar maybe-check-fastjar
7093maybe-check-fastjar:
a7e609d6
PB
7094@if fastjar
7095maybe-check-fastjar: check-fastjar
657b58f4 7096
8ec98d6c
NN
7097# This module is only tested in a native toolchain.
7098check-fastjar:
7099 @if [ '$(host)' = '$(target)' ] ; then \
7100 r=`${PWD_COMMAND}`; export r; \
7101 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7102 $(SET_LIB_PATH) \
a675b75a 7103 $(HOST_EXPORTS) \
7fc2ca22 7104 (cd $(HOST_SUBDIR)/fastjar && \
80e4c577 7105 $(MAKE) $(FLAGS_TO_PASS) check); \
8ec98d6c 7106 fi
657b58f4 7107
a7e609d6 7108@endif fastjar
8ec98d6c
NN
7109
7110.PHONY: install-fastjar maybe-install-fastjar
7111maybe-install-fastjar:
a7e609d6
PB
7112@if fastjar
7113maybe-install-fastjar: install-fastjar
8ec98d6c
NN
7114
7115install-fastjar: installdirs
7116 @r=`${PWD_COMMAND}`; export r; \
5230d454 7117 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 7118 $(SET_LIB_PATH) \
a675b75a 7119 $(HOST_EXPORTS) \
7fc2ca22 7120 (cd $(HOST_SUBDIR)/fastjar && \
93c60b6d 7121 $(MAKE) $(FLAGS_TO_PASS) install)
657b58f4 7122
a7e609d6 7123@endif fastjar
657b58f4 7124
8ec98d6c 7125# Other targets (info, dvi, etc.)
657b58f4 7126
8ec98d6c
NN
7127.PHONY: maybe-info-fastjar info-fastjar
7128maybe-info-fastjar:
a7e609d6
PB
7129@if fastjar
7130maybe-info-fastjar: info-fastjar
8ec98d6c
NN
7131
7132info-fastjar: \
7133 configure-fastjar
7134 @[ -f ./fastjar/Makefile ] || exit 0; \
5230d454
L
7135 r=`${PWD_COMMAND}`; export r; \
7136 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 7137 $(SET_LIB_PATH) \
a675b75a 7138 $(HOST_EXPORTS) \
d5eec917 7139 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
7140 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7141 done; \
8ec98d6c 7142 echo "Doing info in fastjar" ; \
7fc2ca22 7143 (cd $(HOST_SUBDIR)/fastjar && \
657b58f4
NN
7144 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7145 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7146 "RANLIB=$${RANLIB}" \
7147 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 7148 info) \
657b58f4
NN
7149 || exit 1
7150
a7e609d6 7151@endif fastjar
657b58f4 7152
8ec98d6c
NN
7153.PHONY: maybe-dvi-fastjar dvi-fastjar
7154maybe-dvi-fastjar:
a7e609d6
PB
7155@if fastjar
7156maybe-dvi-fastjar: dvi-fastjar
657b58f4 7157
8ec98d6c
NN
7158dvi-fastjar: \
7159 configure-fastjar
657b58f4 7160 @[ -f ./fastjar/Makefile ] || exit 0; \
5230d454
L
7161 r=`${PWD_COMMAND}`; export r; \
7162 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 7163 $(SET_LIB_PATH) \
a675b75a 7164 $(HOST_EXPORTS) \
d5eec917 7165 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
7166 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7167 done; \
8ec98d6c 7168 echo "Doing dvi in fastjar" ; \
7fc2ca22 7169 (cd $(HOST_SUBDIR)/fastjar && \
657b58f4
NN
7170 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7171 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7172 "RANLIB=$${RANLIB}" \
7173 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 7174 dvi) \
657b58f4
NN
7175 || exit 1
7176
a7e609d6 7177@endif fastjar
657b58f4 7178
b6fb961f
MS
7179.PHONY: maybe-html-fastjar html-fastjar
7180maybe-html-fastjar:
7181@if fastjar
7182maybe-html-fastjar: html-fastjar
7183
7184html-fastjar: \
7185 configure-fastjar
7186 @[ -f ./fastjar/Makefile ] || exit 0; \
7187 r=`${PWD_COMMAND}`; export r; \
7188 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7189 $(SET_LIB_PATH) \
7190 $(HOST_EXPORTS) \
7191 for flag in $(EXTRA_HOST_FLAGS) ; do \
7192 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7193 done; \
7194 echo "Doing html in fastjar" ; \
7fc2ca22 7195 (cd $(HOST_SUBDIR)/fastjar && \
b6fb961f
MS
7196 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7197 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7198 "RANLIB=$${RANLIB}" \
7199 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7200 html) \
7201 || exit 1
7202
7203@endif fastjar
7204
8ec98d6c
NN
7205.PHONY: maybe-TAGS-fastjar TAGS-fastjar
7206maybe-TAGS-fastjar:
a7e609d6
PB
7207@if fastjar
7208maybe-TAGS-fastjar: TAGS-fastjar
657b58f4 7209
8ec98d6c
NN
7210TAGS-fastjar: \
7211 configure-fastjar
7212 @[ -f ./fastjar/Makefile ] || exit 0; \
5230d454
L
7213 r=`${PWD_COMMAND}`; export r; \
7214 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 7215 $(SET_LIB_PATH) \
a675b75a 7216 $(HOST_EXPORTS) \
d5eec917 7217 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
7218 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7219 done; \
8ec98d6c 7220 echo "Doing TAGS in fastjar" ; \
7fc2ca22 7221 (cd $(HOST_SUBDIR)/fastjar && \
657b58f4
NN
7222 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7223 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7224 "RANLIB=$${RANLIB}" \
7225 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 7226 TAGS) \
657b58f4
NN
7227 || exit 1
7228
a7e609d6 7229@endif fastjar
657b58f4 7230
8ec98d6c
NN
7231.PHONY: maybe-install-info-fastjar install-info-fastjar
7232maybe-install-info-fastjar:
a7e609d6
PB
7233@if fastjar
7234maybe-install-info-fastjar: install-info-fastjar
657b58f4 7235
8ec98d6c
NN
7236install-info-fastjar: \
7237 configure-fastjar \
7238 info-fastjar
7239 @[ -f ./fastjar/Makefile ] || exit 0; \
5230d454
L
7240 r=`${PWD_COMMAND}`; export r; \
7241 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 7242 $(SET_LIB_PATH) \
a675b75a 7243 $(HOST_EXPORTS) \
d5eec917 7244 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
7245 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7246 done; \
8ec98d6c 7247 echo "Doing install-info in fastjar" ; \
7fc2ca22 7248 (cd $(HOST_SUBDIR)/fastjar && \
657b58f4
NN
7249 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7250 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7251 "RANLIB=$${RANLIB}" \
7252 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 7253 install-info) \
657b58f4
NN
7254 || exit 1
7255
a7e609d6 7256@endif fastjar
657b58f4 7257
8ec98d6c
NN
7258.PHONY: maybe-installcheck-fastjar installcheck-fastjar
7259maybe-installcheck-fastjar:
a7e609d6
PB
7260@if fastjar
7261maybe-installcheck-fastjar: installcheck-fastjar
657b58f4 7262
8ec98d6c
NN
7263installcheck-fastjar: \
7264 configure-fastjar
7265 @[ -f ./fastjar/Makefile ] || exit 0; \
5230d454
L
7266 r=`${PWD_COMMAND}`; export r; \
7267 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 7268 $(SET_LIB_PATH) \
a675b75a 7269 $(HOST_EXPORTS) \
d5eec917 7270 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
7271 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7272 done; \
8ec98d6c 7273 echo "Doing installcheck in fastjar" ; \
7fc2ca22 7274 (cd $(HOST_SUBDIR)/fastjar && \
657b58f4
NN
7275 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7276 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7277 "RANLIB=$${RANLIB}" \
7278 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 7279 installcheck) \
657b58f4
NN
7280 || exit 1
7281
a7e609d6 7282@endif fastjar
657b58f4 7283
8ec98d6c
NN
7284.PHONY: maybe-mostlyclean-fastjar mostlyclean-fastjar
7285maybe-mostlyclean-fastjar:
a7e609d6
PB
7286@if fastjar
7287maybe-mostlyclean-fastjar: mostlyclean-fastjar
657b58f4 7288
8ec98d6c
NN
7289mostlyclean-fastjar:
7290 @[ -f ./fastjar/Makefile ] || exit 0; \
5230d454
L
7291 r=`${PWD_COMMAND}`; export r; \
7292 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 7293 $(SET_LIB_PATH) \
a675b75a 7294 $(HOST_EXPORTS) \
d5eec917 7295 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
7296 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7297 done; \
8ec98d6c 7298 echo "Doing mostlyclean in fastjar" ; \
7fc2ca22 7299 (cd $(HOST_SUBDIR)/fastjar && \
657b58f4
NN
7300 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7301 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7302 "RANLIB=$${RANLIB}" \
7303 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 7304 mostlyclean) \
657b58f4
NN
7305 || exit 1
7306
a7e609d6 7307@endif fastjar
657b58f4 7308
8ec98d6c
NN
7309.PHONY: maybe-clean-fastjar clean-fastjar
7310maybe-clean-fastjar:
a7e609d6
PB
7311@if fastjar
7312maybe-clean-fastjar: clean-fastjar
657b58f4 7313
8ec98d6c
NN
7314clean-fastjar:
7315 @[ -f ./fastjar/Makefile ] || exit 0; \
5230d454
L
7316 r=`${PWD_COMMAND}`; export r; \
7317 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 7318 $(SET_LIB_PATH) \
a675b75a 7319 $(HOST_EXPORTS) \
d5eec917 7320 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
7321 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7322 done; \
8ec98d6c 7323 echo "Doing clean in fastjar" ; \
7fc2ca22 7324 (cd $(HOST_SUBDIR)/fastjar && \
657b58f4
NN
7325 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7326 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7327 "RANLIB=$${RANLIB}" \
7328 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 7329 clean) \
657b58f4
NN
7330 || exit 1
7331
a7e609d6 7332@endif fastjar
657b58f4 7333
8ec98d6c
NN
7334.PHONY: maybe-distclean-fastjar distclean-fastjar
7335maybe-distclean-fastjar:
a7e609d6
PB
7336@if fastjar
7337maybe-distclean-fastjar: distclean-fastjar
657b58f4 7338
8ec98d6c
NN
7339distclean-fastjar:
7340 @[ -f ./fastjar/Makefile ] || exit 0; \
5230d454
L
7341 r=`${PWD_COMMAND}`; export r; \
7342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 7343 $(SET_LIB_PATH) \
a675b75a 7344 $(HOST_EXPORTS) \
d5eec917 7345 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
7346 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7347 done; \
8ec98d6c 7348 echo "Doing distclean in fastjar" ; \
7fc2ca22 7349 (cd $(HOST_SUBDIR)/fastjar && \
657b58f4
NN
7350 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7351 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7352 "RANLIB=$${RANLIB}" \
7353 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 7354 distclean) \
657b58f4
NN
7355 || exit 1
7356
a7e609d6 7357@endif fastjar
657b58f4 7358
8ec98d6c
NN
7359.PHONY: maybe-maintainer-clean-fastjar maintainer-clean-fastjar
7360maybe-maintainer-clean-fastjar:
a7e609d6
PB
7361@if fastjar
7362maybe-maintainer-clean-fastjar: maintainer-clean-fastjar
657b58f4 7363
8ec98d6c
NN
7364maintainer-clean-fastjar:
7365 @[ -f ./fastjar/Makefile ] || exit 0; \
5230d454
L
7366 r=`${PWD_COMMAND}`; export r; \
7367 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 7368 $(SET_LIB_PATH) \
a675b75a 7369 $(HOST_EXPORTS) \
d5eec917 7370 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
7371 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7372 done; \
8ec98d6c 7373 echo "Doing maintainer-clean in fastjar" ; \
7fc2ca22 7374 (cd $(HOST_SUBDIR)/fastjar && \
657b58f4
NN
7375 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7376 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7377 "RANLIB=$${RANLIB}" \
7378 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 7379 maintainer-clean) \
657b58f4
NN
7380 || exit 1
7381
a7e609d6 7382@endif fastjar
657b58f4 7383
657b58f4 7384
8ec98d6c
NN
7385.PHONY: configure-fileutils maybe-configure-fileutils
7386maybe-configure-fileutils:
a7e609d6
PB
7387@if fileutils
7388maybe-configure-fileutils: configure-fileutils
8ec98d6c 7389configure-fileutils:
7fc2ca22
PB
7390 @test ! -f $(HOST_SUBDIR)/fileutils/Makefile || exit 0; \
7391 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fileutils ; \
5230d454
L
7392 r=`${PWD_COMMAND}`; export r; \
7393 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 7394 $(HOST_EXPORTS) \
8ec98d6c 7395 echo Configuring in fileutils; \
7fc2ca22 7396 cd $(HOST_SUBDIR)/fileutils || exit 1; \
8ec98d6c 7397 case $(srcdir) in \
7fc2ca22
PB
7398 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7399 *) topdir=`echo $(HOST_SUBDIR)/fileutils/ | \
7400 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 7401 esac; \
7fc2ca22
PB
7402 srcdiroption="--srcdir=$${topdir}/fileutils"; \
7403 libsrcdir="$$s/fileutils"; \
8ec98d6c 7404 $(SHELL) $${libsrcdir}/configure \
63673a5b 7405 $(HOST_CONFIGARGS) $${srcdiroption} \
657b58f4 7406 || exit 1
a7e609d6 7407@endif fileutils
657b58f4 7408
8ec98d6c
NN
7409.PHONY: all-fileutils maybe-all-fileutils
7410maybe-all-fileutils:
a7e609d6 7411@if fileutils
5e6b1f07 7412TARGET-fileutils=all
a7e609d6 7413maybe-all-fileutils: all-fileutils
8ec98d6c
NN
7414all-fileutils: configure-fileutils
7415 @r=`${PWD_COMMAND}`; export r; \
5230d454 7416 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 7417 $(SET_LIB_PATH) \
a675b75a 7418 $(HOST_EXPORTS) \
7fc2ca22
PB
7419 (cd $(HOST_SUBDIR)/fileutils && \
7420 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-fileutils))
a7e609d6 7421@endif fileutils
8ec98d6c
NN
7422
7423.PHONY: check-fileutils maybe-check-fileutils
7424maybe-check-fileutils:
a7e609d6
PB
7425@if fileutils
7426maybe-check-fileutils: check-fileutils
8ec98d6c
NN
7427
7428check-fileutils:
7429 @r=`${PWD_COMMAND}`; export r; \
7430 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7431 $(SET_LIB_PATH) \
a675b75a 7432 $(HOST_EXPORTS) \
7fc2ca22
PB
7433 (cd $(HOST_SUBDIR)/fileutils && \
7434 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 7435
a7e609d6 7436@endif fileutils
657b58f4 7437
8ec98d6c
NN
7438.PHONY: install-fileutils maybe-install-fileutils
7439maybe-install-fileutils:
a7e609d6
PB
7440@if fileutils
7441maybe-install-fileutils: install-fileutils
657b58f4 7442
8ec98d6c
NN
7443install-fileutils: installdirs
7444 @r=`${PWD_COMMAND}`; export r; \
5230d454 7445 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 7446 $(SET_LIB_PATH) \
a675b75a 7447 $(HOST_EXPORTS) \
7fc2ca22 7448 (cd $(HOST_SUBDIR)/fileutils && \
93c60b6d 7449 $(MAKE) $(FLAGS_TO_PASS) install)
657b58f4 7450
a7e609d6 7451@endif fileutils
657b58f4 7452
8ec98d6c 7453# Other targets (info, dvi, etc.)
657b58f4 7454
8ec98d6c
NN
7455.PHONY: maybe-info-fileutils info-fileutils
7456maybe-info-fileutils:
a7e609d6
PB
7457@if fileutils
7458maybe-info-fileutils: info-fileutils
8ec98d6c
NN
7459
7460info-fileutils: \
7461 configure-fileutils
7462 @[ -f ./fileutils/Makefile ] || exit 0; \
5230d454
L
7463 r=`${PWD_COMMAND}`; export r; \
7464 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 7465 $(SET_LIB_PATH) \
a675b75a 7466 $(HOST_EXPORTS) \
d5eec917 7467 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
7468 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7469 done; \
8ec98d6c 7470 echo "Doing info in fileutils" ; \
7fc2ca22 7471 (cd $(HOST_SUBDIR)/fileutils && \
657b58f4
NN
7472 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7473 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7474 "RANLIB=$${RANLIB}" \
7475 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 7476 info) \
657b58f4
NN
7477 || exit 1
7478
a7e609d6 7479@endif fileutils
657b58f4 7480
8ec98d6c
NN
7481.PHONY: maybe-dvi-fileutils dvi-fileutils
7482maybe-dvi-fileutils:
a7e609d6
PB
7483@if fileutils
7484maybe-dvi-fileutils: dvi-fileutils
657b58f4 7485
8ec98d6c
NN
7486dvi-fileutils: \
7487 configure-fileutils
7488 @[ -f ./fileutils/Makefile ] || exit 0; \
5230d454
L
7489 r=`${PWD_COMMAND}`; export r; \
7490 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 7491 $(SET_LIB_PATH) \
a675b75a 7492 $(HOST_EXPORTS) \
d5eec917 7493 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
7494 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7495 done; \
8ec98d6c 7496 echo "Doing dvi in fileutils" ; \
7fc2ca22 7497 (cd $(HOST_SUBDIR)/fileutils && \
657b58f4
NN
7498 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7499 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7500 "RANLIB=$${RANLIB}" \
7501 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 7502 dvi) \
657b58f4
NN
7503 || exit 1
7504
a7e609d6 7505@endif fileutils
657b58f4 7506
b6fb961f
MS
7507.PHONY: maybe-html-fileutils html-fileutils
7508maybe-html-fileutils:
7509@if fileutils
7510maybe-html-fileutils: html-fileutils
7511
7512html-fileutils: \
7513 configure-fileutils
7514 @[ -f ./fileutils/Makefile ] || exit 0; \
7515 r=`${PWD_COMMAND}`; export r; \
7516 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7517 $(SET_LIB_PATH) \
7518 $(HOST_EXPORTS) \
7519 for flag in $(EXTRA_HOST_FLAGS) ; do \
7520 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7521 done; \
7522 echo "Doing html in fileutils" ; \
7fc2ca22 7523 (cd $(HOST_SUBDIR)/fileutils && \
b6fb961f
MS
7524 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7525 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7526 "RANLIB=$${RANLIB}" \
7527 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7528 html) \
7529 || exit 1
7530
7531@endif fileutils
7532
8ec98d6c
NN
7533.PHONY: maybe-TAGS-fileutils TAGS-fileutils
7534maybe-TAGS-fileutils:
a7e609d6
PB
7535@if fileutils
7536maybe-TAGS-fileutils: TAGS-fileutils
657b58f4 7537
8ec98d6c
NN
7538TAGS-fileutils: \
7539 configure-fileutils
7540 @[ -f ./fileutils/Makefile ] || exit 0; \
5230d454
L
7541 r=`${PWD_COMMAND}`; export r; \
7542 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 7543 $(SET_LIB_PATH) \
a675b75a 7544 $(HOST_EXPORTS) \
d5eec917 7545 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
7546 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7547 done; \
8ec98d6c 7548 echo "Doing TAGS in fileutils" ; \
7fc2ca22 7549 (cd $(HOST_SUBDIR)/fileutils && \
657b58f4
NN
7550 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7551 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7552 "RANLIB=$${RANLIB}" \
7553 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 7554 TAGS) \
657b58f4
NN
7555 || exit 1
7556
a7e609d6 7557@endif fileutils
657b58f4 7558
8ec98d6c
NN
7559.PHONY: maybe-install-info-fileutils install-info-fileutils
7560maybe-install-info-fileutils:
a7e609d6
PB
7561@if fileutils
7562maybe-install-info-fileutils: install-info-fileutils
657b58f4 7563
8ec98d6c
NN
7564install-info-fileutils: \
7565 configure-fileutils \
7566 info-fileutils
7567 @[ -f ./fileutils/Makefile ] || exit 0; \
5230d454
L
7568 r=`${PWD_COMMAND}`; export r; \
7569 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 7570 $(SET_LIB_PATH) \
a675b75a 7571 $(HOST_EXPORTS) \
d5eec917 7572 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
7573 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7574 done; \
8ec98d6c 7575 echo "Doing install-info in fileutils" ; \
7fc2ca22 7576 (cd $(HOST_SUBDIR)/fileutils && \
657b58f4
NN
7577 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7578 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7579 "RANLIB=$${RANLIB}" \
7580 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 7581 install-info) \
657b58f4
NN
7582 || exit 1
7583
a7e609d6 7584@endif fileutils
657b58f4 7585
8ec98d6c
NN
7586.PHONY: maybe-installcheck-fileutils installcheck-fileutils
7587maybe-installcheck-fileutils:
a7e609d6
PB
7588@if fileutils
7589maybe-installcheck-fileutils: installcheck-fileutils
657b58f4 7590
8ec98d6c
NN
7591installcheck-fileutils: \
7592 configure-fileutils
7593 @[ -f ./fileutils/Makefile ] || exit 0; \
5230d454
L
7594 r=`${PWD_COMMAND}`; export r; \
7595 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 7596 $(SET_LIB_PATH) \
a675b75a 7597 $(HOST_EXPORTS) \
d5eec917 7598 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
7599 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7600 done; \
8ec98d6c 7601 echo "Doing installcheck in fileutils" ; \
7fc2ca22 7602 (cd $(HOST_SUBDIR)/fileutils && \
657b58f4
NN
7603 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7604 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7605 "RANLIB=$${RANLIB}" \
7606 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 7607 installcheck) \
657b58f4
NN
7608 || exit 1
7609
a7e609d6 7610@endif fileutils
657b58f4 7611
8ec98d6c
NN
7612.PHONY: maybe-mostlyclean-fileutils mostlyclean-fileutils
7613maybe-mostlyclean-fileutils:
a7e609d6
PB
7614@if fileutils
7615maybe-mostlyclean-fileutils: mostlyclean-fileutils
657b58f4 7616
8ec98d6c
NN
7617mostlyclean-fileutils:
7618 @[ -f ./fileutils/Makefile ] || exit 0; \
5230d454
L
7619 r=`${PWD_COMMAND}`; export r; \
7620 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 7621 $(SET_LIB_PATH) \
a675b75a 7622 $(HOST_EXPORTS) \
d5eec917 7623 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
7624 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7625 done; \
8ec98d6c 7626 echo "Doing mostlyclean in fileutils" ; \
7fc2ca22 7627 (cd $(HOST_SUBDIR)/fileutils && \
657b58f4
NN
7628 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7629 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7630 "RANLIB=$${RANLIB}" \
7631 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 7632 mostlyclean) \
657b58f4
NN
7633 || exit 1
7634
a7e609d6 7635@endif fileutils
657b58f4 7636
8ec98d6c
NN
7637.PHONY: maybe-clean-fileutils clean-fileutils
7638maybe-clean-fileutils:
a7e609d6
PB
7639@if fileutils
7640maybe-clean-fileutils: clean-fileutils
657b58f4 7641
8ec98d6c
NN
7642clean-fileutils:
7643 @[ -f ./fileutils/Makefile ] || exit 0; \
5230d454
L
7644 r=`${PWD_COMMAND}`; export r; \
7645 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 7646 $(SET_LIB_PATH) \
a675b75a 7647 $(HOST_EXPORTS) \
d5eec917 7648 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
7649 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7650 done; \
8ec98d6c 7651 echo "Doing clean in fileutils" ; \
7fc2ca22 7652 (cd $(HOST_SUBDIR)/fileutils && \
657b58f4
NN
7653 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7654 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7655 "RANLIB=$${RANLIB}" \
7656 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 7657 clean) \
657b58f4
NN
7658 || exit 1
7659
a7e609d6 7660@endif fileutils
657b58f4 7661
8ec98d6c
NN
7662.PHONY: maybe-distclean-fileutils distclean-fileutils
7663maybe-distclean-fileutils:
a7e609d6
PB
7664@if fileutils
7665maybe-distclean-fileutils: distclean-fileutils
657b58f4 7666
8ec98d6c
NN
7667distclean-fileutils:
7668 @[ -f ./fileutils/Makefile ] || exit 0; \
5230d454
L
7669 r=`${PWD_COMMAND}`; export r; \
7670 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 7671 $(SET_LIB_PATH) \
a675b75a 7672 $(HOST_EXPORTS) \
d5eec917 7673 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
7674 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7675 done; \
8ec98d6c 7676 echo "Doing distclean in fileutils" ; \
7fc2ca22 7677 (cd $(HOST_SUBDIR)/fileutils && \
657b58f4
NN
7678 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7679 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7680 "RANLIB=$${RANLIB}" \
7681 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 7682 distclean) \
657b58f4
NN
7683 || exit 1
7684
a7e609d6 7685@endif fileutils
657b58f4 7686
8ec98d6c
NN
7687.PHONY: maybe-maintainer-clean-fileutils maintainer-clean-fileutils
7688maybe-maintainer-clean-fileutils:
a7e609d6
PB
7689@if fileutils
7690maybe-maintainer-clean-fileutils: maintainer-clean-fileutils
657b58f4 7691
8ec98d6c
NN
7692maintainer-clean-fileutils:
7693 @[ -f ./fileutils/Makefile ] || exit 0; \
5230d454
L
7694 r=`${PWD_COMMAND}`; export r; \
7695 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 7696 $(SET_LIB_PATH) \
a675b75a 7697 $(HOST_EXPORTS) \
d5eec917 7698 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
7699 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7700 done; \
8ec98d6c 7701 echo "Doing maintainer-clean in fileutils" ; \
7fc2ca22 7702 (cd $(HOST_SUBDIR)/fileutils && \
657b58f4
NN
7703 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7704 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7705 "RANLIB=$${RANLIB}" \
7706 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 7707 maintainer-clean) \
657b58f4
NN
7708 || exit 1
7709
a7e609d6 7710@endif fileutils
657b58f4 7711
657b58f4 7712
8ec98d6c
NN
7713.PHONY: configure-findutils maybe-configure-findutils
7714maybe-configure-findutils:
a7e609d6
PB
7715@if findutils
7716maybe-configure-findutils: configure-findutils
8ec98d6c 7717configure-findutils:
7fc2ca22
PB
7718 @test ! -f $(HOST_SUBDIR)/findutils/Makefile || exit 0; \
7719 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/findutils ; \
5230d454
L
7720 r=`${PWD_COMMAND}`; export r; \
7721 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 7722 $(HOST_EXPORTS) \
8ec98d6c 7723 echo Configuring in findutils; \
7fc2ca22 7724 cd $(HOST_SUBDIR)/findutils || exit 1; \
8ec98d6c 7725 case $(srcdir) in \
7fc2ca22
PB
7726 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7727 *) topdir=`echo $(HOST_SUBDIR)/findutils/ | \
7728 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 7729 esac; \
7fc2ca22
PB
7730 srcdiroption="--srcdir=$${topdir}/findutils"; \
7731 libsrcdir="$$s/findutils"; \
8ec98d6c 7732 $(SHELL) $${libsrcdir}/configure \
63673a5b 7733 $(HOST_CONFIGARGS) $${srcdiroption} \
657b58f4 7734 || exit 1
a7e609d6 7735@endif findutils
657b58f4 7736
8ec98d6c
NN
7737.PHONY: all-findutils maybe-all-findutils
7738maybe-all-findutils:
a7e609d6 7739@if findutils
5e6b1f07 7740TARGET-findutils=all
a7e609d6 7741maybe-all-findutils: all-findutils
8ec98d6c
NN
7742all-findutils: configure-findutils
7743 @r=`${PWD_COMMAND}`; export r; \
7744 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7745 $(SET_LIB_PATH) \
a675b75a 7746 $(HOST_EXPORTS) \
7fc2ca22
PB
7747 (cd $(HOST_SUBDIR)/findutils && \
7748 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-findutils))
a7e609d6 7749@endif findutils
657b58f4 7750
8ec98d6c
NN
7751.PHONY: check-findutils maybe-check-findutils
7752maybe-check-findutils:
a7e609d6
PB
7753@if findutils
7754maybe-check-findutils: check-findutils
657b58f4 7755
8ec98d6c
NN
7756check-findutils:
7757 @r=`${PWD_COMMAND}`; export r; \
5230d454 7758 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 7759 $(SET_LIB_PATH) \
a675b75a 7760 $(HOST_EXPORTS) \
7fc2ca22
PB
7761 (cd $(HOST_SUBDIR)/findutils && \
7762 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 7763
a7e609d6 7764@endif findutils
657b58f4 7765
8ec98d6c
NN
7766.PHONY: install-findutils maybe-install-findutils
7767maybe-install-findutils:
a7e609d6
PB
7768@if findutils
7769maybe-install-findutils: install-findutils
657b58f4 7770
8ec98d6c
NN
7771install-findutils: installdirs
7772 @r=`${PWD_COMMAND}`; export r; \
5230d454 7773 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 7774 $(SET_LIB_PATH) \
a675b75a 7775 $(HOST_EXPORTS) \
7fc2ca22 7776 (cd $(HOST_SUBDIR)/findutils && \
93c60b6d 7777 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 7778
a7e609d6 7779@endif findutils
657b58f4 7780
8ec98d6c 7781# Other targets (info, dvi, etc.)
657b58f4 7782
8ec98d6c
NN
7783.PHONY: maybe-info-findutils info-findutils
7784maybe-info-findutils:
a7e609d6
PB
7785@if findutils
7786maybe-info-findutils: info-findutils
657b58f4 7787
8ec98d6c
NN
7788info-findutils: \
7789 configure-findutils
7790 @[ -f ./findutils/Makefile ] || exit 0; \
5230d454
L
7791 r=`${PWD_COMMAND}`; export r; \
7792 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 7793 $(SET_LIB_PATH) \
a675b75a 7794 $(HOST_EXPORTS) \
d5eec917 7795 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
7796 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7797 done; \
8ec98d6c 7798 echo "Doing info in findutils" ; \
7fc2ca22 7799 (cd $(HOST_SUBDIR)/findutils && \
657b58f4
NN
7800 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7801 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7802 "RANLIB=$${RANLIB}" \
7803 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 7804 info) \
657b58f4
NN
7805 || exit 1
7806
a7e609d6 7807@endif findutils
657b58f4 7808
8ec98d6c
NN
7809.PHONY: maybe-dvi-findutils dvi-findutils
7810maybe-dvi-findutils:
a7e609d6
PB
7811@if findutils
7812maybe-dvi-findutils: dvi-findutils
657b58f4 7813
8ec98d6c
NN
7814dvi-findutils: \
7815 configure-findutils
7816 @[ -f ./findutils/Makefile ] || exit 0; \
5230d454
L
7817 r=`${PWD_COMMAND}`; export r; \
7818 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 7819 $(SET_LIB_PATH) \
a675b75a 7820 $(HOST_EXPORTS) \
d5eec917 7821 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
7822 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7823 done; \
8ec98d6c 7824 echo "Doing dvi in findutils" ; \
7fc2ca22 7825 (cd $(HOST_SUBDIR)/findutils && \
657b58f4
NN
7826 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7827 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7828 "RANLIB=$${RANLIB}" \
7829 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 7830 dvi) \
657b58f4
NN
7831 || exit 1
7832
a7e609d6 7833@endif findutils
657b58f4 7834
b6fb961f
MS
7835.PHONY: maybe-html-findutils html-findutils
7836maybe-html-findutils:
7837@if findutils
7838maybe-html-findutils: html-findutils
7839
7840html-findutils: \
7841 configure-findutils
7842 @[ -f ./findutils/Makefile ] || exit 0; \
7843 r=`${PWD_COMMAND}`; export r; \
7844 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7845 $(SET_LIB_PATH) \
7846 $(HOST_EXPORTS) \
7847 for flag in $(EXTRA_HOST_FLAGS) ; do \
7848 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7849 done; \
7850 echo "Doing html in findutils" ; \
7fc2ca22 7851 (cd $(HOST_SUBDIR)/findutils && \
b6fb961f
MS
7852 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7853 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7854 "RANLIB=$${RANLIB}" \
7855 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7856 html) \
7857 || exit 1
7858
7859@endif findutils
7860
8ec98d6c
NN
7861.PHONY: maybe-TAGS-findutils TAGS-findutils
7862maybe-TAGS-findutils:
a7e609d6
PB
7863@if findutils
7864maybe-TAGS-findutils: TAGS-findutils
657b58f4 7865
8ec98d6c
NN
7866TAGS-findutils: \
7867 configure-findutils
7868 @[ -f ./findutils/Makefile ] || exit 0; \
5230d454
L
7869 r=`${PWD_COMMAND}`; export r; \
7870 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 7871 $(SET_LIB_PATH) \
a675b75a 7872 $(HOST_EXPORTS) \
d5eec917 7873 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
7874 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7875 done; \
8ec98d6c 7876 echo "Doing TAGS in findutils" ; \
7fc2ca22 7877 (cd $(HOST_SUBDIR)/findutils && \
657b58f4
NN
7878 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7879 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7880 "RANLIB=$${RANLIB}" \
7881 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 7882 TAGS) \
657b58f4
NN
7883 || exit 1
7884
a7e609d6 7885@endif findutils
657b58f4 7886
8ec98d6c
NN
7887.PHONY: maybe-install-info-findutils install-info-findutils
7888maybe-install-info-findutils:
a7e609d6
PB
7889@if findutils
7890maybe-install-info-findutils: install-info-findutils
657b58f4 7891
8ec98d6c
NN
7892install-info-findutils: \
7893 configure-findutils \
7894 info-findutils
7895 @[ -f ./findutils/Makefile ] || exit 0; \
5230d454
L
7896 r=`${PWD_COMMAND}`; export r; \
7897 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 7898 $(SET_LIB_PATH) \
a675b75a 7899 $(HOST_EXPORTS) \
d5eec917 7900 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
7901 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7902 done; \
8ec98d6c 7903 echo "Doing install-info in findutils" ; \
7fc2ca22 7904 (cd $(HOST_SUBDIR)/findutils && \
657b58f4
NN
7905 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7906 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7907 "RANLIB=$${RANLIB}" \
7908 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 7909 install-info) \
657b58f4
NN
7910 || exit 1
7911
a7e609d6 7912@endif findutils
657b58f4 7913
8ec98d6c
NN
7914.PHONY: maybe-installcheck-findutils installcheck-findutils
7915maybe-installcheck-findutils:
a7e609d6
PB
7916@if findutils
7917maybe-installcheck-findutils: installcheck-findutils
657b58f4 7918
8ec98d6c
NN
7919installcheck-findutils: \
7920 configure-findutils
7921 @[ -f ./findutils/Makefile ] || exit 0; \
5230d454
L
7922 r=`${PWD_COMMAND}`; export r; \
7923 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 7924 $(SET_LIB_PATH) \
a675b75a 7925 $(HOST_EXPORTS) \
d5eec917 7926 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
7927 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7928 done; \
8ec98d6c 7929 echo "Doing installcheck in findutils" ; \
7fc2ca22 7930 (cd $(HOST_SUBDIR)/findutils && \
657b58f4
NN
7931 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7932 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7933 "RANLIB=$${RANLIB}" \
7934 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 7935 installcheck) \
657b58f4
NN
7936 || exit 1
7937
a7e609d6 7938@endif findutils
657b58f4 7939
8ec98d6c
NN
7940.PHONY: maybe-mostlyclean-findutils mostlyclean-findutils
7941maybe-mostlyclean-findutils:
a7e609d6
PB
7942@if findutils
7943maybe-mostlyclean-findutils: mostlyclean-findutils
657b58f4 7944
8ec98d6c
NN
7945mostlyclean-findutils:
7946 @[ -f ./findutils/Makefile ] || exit 0; \
5230d454
L
7947 r=`${PWD_COMMAND}`; export r; \
7948 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 7949 $(SET_LIB_PATH) \
a675b75a 7950 $(HOST_EXPORTS) \
d5eec917 7951 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
7952 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7953 done; \
8ec98d6c 7954 echo "Doing mostlyclean in findutils" ; \
7fc2ca22 7955 (cd $(HOST_SUBDIR)/findutils && \
657b58f4
NN
7956 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7957 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7958 "RANLIB=$${RANLIB}" \
7959 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 7960 mostlyclean) \
657b58f4
NN
7961 || exit 1
7962
a7e609d6 7963@endif findutils
657b58f4 7964
8ec98d6c
NN
7965.PHONY: maybe-clean-findutils clean-findutils
7966maybe-clean-findutils:
a7e609d6
PB
7967@if findutils
7968maybe-clean-findutils: clean-findutils
657b58f4 7969
8ec98d6c
NN
7970clean-findutils:
7971 @[ -f ./findutils/Makefile ] || exit 0; \
5230d454
L
7972 r=`${PWD_COMMAND}`; export r; \
7973 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 7974 $(SET_LIB_PATH) \
a675b75a 7975 $(HOST_EXPORTS) \
d5eec917 7976 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
7977 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7978 done; \
8ec98d6c 7979 echo "Doing clean in findutils" ; \
7fc2ca22 7980 (cd $(HOST_SUBDIR)/findutils && \
657b58f4
NN
7981 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7982 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7983 "RANLIB=$${RANLIB}" \
7984 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 7985 clean) \
657b58f4
NN
7986 || exit 1
7987
a7e609d6 7988@endif findutils
657b58f4 7989
8ec98d6c
NN
7990.PHONY: maybe-distclean-findutils distclean-findutils
7991maybe-distclean-findutils:
a7e609d6
PB
7992@if findutils
7993maybe-distclean-findutils: distclean-findutils
657b58f4 7994
8ec98d6c
NN
7995distclean-findutils:
7996 @[ -f ./findutils/Makefile ] || exit 0; \
5230d454
L
7997 r=`${PWD_COMMAND}`; export r; \
7998 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 7999 $(SET_LIB_PATH) \
a675b75a 8000 $(HOST_EXPORTS) \
d5eec917 8001 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8002 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8003 done; \
8ec98d6c 8004 echo "Doing distclean in findutils" ; \
7fc2ca22 8005 (cd $(HOST_SUBDIR)/findutils && \
657b58f4
NN
8006 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8007 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8008 "RANLIB=$${RANLIB}" \
8009 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 8010 distclean) \
657b58f4
NN
8011 || exit 1
8012
a7e609d6 8013@endif findutils
657b58f4 8014
8ec98d6c
NN
8015.PHONY: maybe-maintainer-clean-findutils maintainer-clean-findutils
8016maybe-maintainer-clean-findutils:
a7e609d6
PB
8017@if findutils
8018maybe-maintainer-clean-findutils: maintainer-clean-findutils
657b58f4 8019
8ec98d6c
NN
8020maintainer-clean-findutils:
8021 @[ -f ./findutils/Makefile ] || exit 0; \
5230d454
L
8022 r=`${PWD_COMMAND}`; export r; \
8023 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 8024 $(SET_LIB_PATH) \
a675b75a 8025 $(HOST_EXPORTS) \
d5eec917 8026 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8027 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8028 done; \
8ec98d6c 8029 echo "Doing maintainer-clean in findutils" ; \
7fc2ca22 8030 (cd $(HOST_SUBDIR)/findutils && \
657b58f4
NN
8031 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8032 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8033 "RANLIB=$${RANLIB}" \
8034 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 8035 maintainer-clean) \
657b58f4
NN
8036 || exit 1
8037
a7e609d6 8038@endif findutils
657b58f4 8039
657b58f4 8040
8ec98d6c
NN
8041.PHONY: configure-find maybe-configure-find
8042maybe-configure-find:
a7e609d6
PB
8043@if find
8044maybe-configure-find: configure-find
8ec98d6c 8045configure-find:
7fc2ca22
PB
8046 @test ! -f $(HOST_SUBDIR)/find/Makefile || exit 0; \
8047 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/find ; \
5230d454
L
8048 r=`${PWD_COMMAND}`; export r; \
8049 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 8050 $(HOST_EXPORTS) \
8ec98d6c 8051 echo Configuring in find; \
7fc2ca22 8052 cd $(HOST_SUBDIR)/find || exit 1; \
8ec98d6c 8053 case $(srcdir) in \
7fc2ca22
PB
8054 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8055 *) topdir=`echo $(HOST_SUBDIR)/find/ | \
8056 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 8057 esac; \
7fc2ca22
PB
8058 srcdiroption="--srcdir=$${topdir}/find"; \
8059 libsrcdir="$$s/find"; \
8ec98d6c 8060 $(SHELL) $${libsrcdir}/configure \
63673a5b 8061 $(HOST_CONFIGARGS) $${srcdiroption} \
657b58f4 8062 || exit 1
a7e609d6 8063@endif find
657b58f4 8064
8ec98d6c
NN
8065.PHONY: all-find maybe-all-find
8066maybe-all-find:
a7e609d6 8067@if find
5e6b1f07 8068TARGET-find=all
a7e609d6 8069maybe-all-find: all-find
8ec98d6c
NN
8070all-find: configure-find
8071 @r=`${PWD_COMMAND}`; export r; \
8072 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8073 $(SET_LIB_PATH) \
a675b75a 8074 $(HOST_EXPORTS) \
7fc2ca22
PB
8075 (cd $(HOST_SUBDIR)/find && \
8076 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-find))
a7e609d6 8077@endif find
657b58f4 8078
8ec98d6c
NN
8079.PHONY: check-find maybe-check-find
8080maybe-check-find:
a7e609d6
PB
8081@if find
8082maybe-check-find: check-find
657b58f4 8083
8ec98d6c
NN
8084check-find:
8085 @r=`${PWD_COMMAND}`; export r; \
5230d454 8086 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 8087 $(SET_LIB_PATH) \
a675b75a 8088 $(HOST_EXPORTS) \
7fc2ca22
PB
8089 (cd $(HOST_SUBDIR)/find && \
8090 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 8091
a7e609d6 8092@endif find
657b58f4 8093
8ec98d6c
NN
8094.PHONY: install-find maybe-install-find
8095maybe-install-find:
a7e609d6
PB
8096@if find
8097maybe-install-find: install-find
657b58f4 8098
8ec98d6c
NN
8099install-find: installdirs
8100 @r=`${PWD_COMMAND}`; export r; \
8101 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8102 $(SET_LIB_PATH) \
a675b75a 8103 $(HOST_EXPORTS) \
7fc2ca22 8104 (cd $(HOST_SUBDIR)/find && \
93c60b6d 8105 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 8106
a7e609d6 8107@endif find
8ec98d6c
NN
8108
8109# Other targets (info, dvi, etc.)
8110
8111.PHONY: maybe-info-find info-find
8112maybe-info-find:
a7e609d6
PB
8113@if find
8114maybe-info-find: info-find
8ec98d6c
NN
8115
8116info-find: \
8117 configure-find
8118 @[ -f ./find/Makefile ] || exit 0; \
5230d454
L
8119 r=`${PWD_COMMAND}`; export r; \
8120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 8121 $(SET_LIB_PATH) \
a675b75a 8122 $(HOST_EXPORTS) \
d5eec917 8123 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8124 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8125 done; \
8ec98d6c 8126 echo "Doing info in find" ; \
7fc2ca22 8127 (cd $(HOST_SUBDIR)/find && \
657b58f4
NN
8128 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8129 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8130 "RANLIB=$${RANLIB}" \
8131 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 8132 info) \
657b58f4
NN
8133 || exit 1
8134
a7e609d6 8135@endif find
657b58f4 8136
8ec98d6c
NN
8137.PHONY: maybe-dvi-find dvi-find
8138maybe-dvi-find:
a7e609d6
PB
8139@if find
8140maybe-dvi-find: dvi-find
657b58f4 8141
8ec98d6c
NN
8142dvi-find: \
8143 configure-find
8144 @[ -f ./find/Makefile ] || exit 0; \
5230d454
L
8145 r=`${PWD_COMMAND}`; export r; \
8146 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 8147 $(SET_LIB_PATH) \
a675b75a 8148 $(HOST_EXPORTS) \
d5eec917 8149 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8150 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8151 done; \
8ec98d6c 8152 echo "Doing dvi in find" ; \
7fc2ca22 8153 (cd $(HOST_SUBDIR)/find && \
657b58f4
NN
8154 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8155 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8156 "RANLIB=$${RANLIB}" \
8157 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 8158 dvi) \
657b58f4
NN
8159 || exit 1
8160
a7e609d6 8161@endif find
657b58f4 8162
b6fb961f
MS
8163.PHONY: maybe-html-find html-find
8164maybe-html-find:
8165@if find
8166maybe-html-find: html-find
8167
8168html-find: \
8169 configure-find
8170 @[ -f ./find/Makefile ] || exit 0; \
8171 r=`${PWD_COMMAND}`; export r; \
8172 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8173 $(SET_LIB_PATH) \
8174 $(HOST_EXPORTS) \
8175 for flag in $(EXTRA_HOST_FLAGS) ; do \
8176 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8177 done; \
8178 echo "Doing html in find" ; \
7fc2ca22 8179 (cd $(HOST_SUBDIR)/find && \
b6fb961f
MS
8180 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8181 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8182 "RANLIB=$${RANLIB}" \
8183 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8184 html) \
8185 || exit 1
8186
8187@endif find
8188
8ec98d6c
NN
8189.PHONY: maybe-TAGS-find TAGS-find
8190maybe-TAGS-find:
a7e609d6
PB
8191@if find
8192maybe-TAGS-find: TAGS-find
8ec98d6c
NN
8193
8194TAGS-find: \
8195 configure-find
8196 @[ -f ./find/Makefile ] || exit 0; \
5230d454
L
8197 r=`${PWD_COMMAND}`; export r; \
8198 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 8199 $(SET_LIB_PATH) \
a675b75a 8200 $(HOST_EXPORTS) \
d5eec917 8201 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8202 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8203 done; \
8ec98d6c 8204 echo "Doing TAGS in find" ; \
7fc2ca22 8205 (cd $(HOST_SUBDIR)/find && \
657b58f4
NN
8206 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8207 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8208 "RANLIB=$${RANLIB}" \
8209 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 8210 TAGS) \
657b58f4
NN
8211 || exit 1
8212
a7e609d6 8213@endif find
657b58f4 8214
8ec98d6c
NN
8215.PHONY: maybe-install-info-find install-info-find
8216maybe-install-info-find:
a7e609d6
PB
8217@if find
8218maybe-install-info-find: install-info-find
657b58f4 8219
8ec98d6c
NN
8220install-info-find: \
8221 configure-find \
8222 info-find
8223 @[ -f ./find/Makefile ] || exit 0; \
5230d454
L
8224 r=`${PWD_COMMAND}`; export r; \
8225 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 8226 $(SET_LIB_PATH) \
a675b75a 8227 $(HOST_EXPORTS) \
d5eec917 8228 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8229 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8230 done; \
8ec98d6c 8231 echo "Doing install-info in find" ; \
7fc2ca22 8232 (cd $(HOST_SUBDIR)/find && \
657b58f4
NN
8233 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8234 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8235 "RANLIB=$${RANLIB}" \
8236 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 8237 install-info) \
657b58f4
NN
8238 || exit 1
8239
a7e609d6 8240@endif find
657b58f4 8241
8ec98d6c
NN
8242.PHONY: maybe-installcheck-find installcheck-find
8243maybe-installcheck-find:
a7e609d6
PB
8244@if find
8245maybe-installcheck-find: installcheck-find
657b58f4 8246
8ec98d6c
NN
8247installcheck-find: \
8248 configure-find
8249 @[ -f ./find/Makefile ] || exit 0; \
5230d454
L
8250 r=`${PWD_COMMAND}`; export r; \
8251 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 8252 $(SET_LIB_PATH) \
a675b75a 8253 $(HOST_EXPORTS) \
d5eec917 8254 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8255 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8256 done; \
8ec98d6c 8257 echo "Doing installcheck in find" ; \
7fc2ca22 8258 (cd $(HOST_SUBDIR)/find && \
657b58f4
NN
8259 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8260 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8261 "RANLIB=$${RANLIB}" \
8262 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 8263 installcheck) \
657b58f4
NN
8264 || exit 1
8265
a7e609d6 8266@endif find
657b58f4 8267
8ec98d6c
NN
8268.PHONY: maybe-mostlyclean-find mostlyclean-find
8269maybe-mostlyclean-find:
a7e609d6
PB
8270@if find
8271maybe-mostlyclean-find: mostlyclean-find
657b58f4 8272
8ec98d6c
NN
8273mostlyclean-find:
8274 @[ -f ./find/Makefile ] || exit 0; \
5230d454
L
8275 r=`${PWD_COMMAND}`; export r; \
8276 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 8277 $(SET_LIB_PATH) \
a675b75a 8278 $(HOST_EXPORTS) \
d5eec917 8279 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8280 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8281 done; \
8ec98d6c 8282 echo "Doing mostlyclean in find" ; \
7fc2ca22 8283 (cd $(HOST_SUBDIR)/find && \
657b58f4
NN
8284 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8285 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8286 "RANLIB=$${RANLIB}" \
8287 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 8288 mostlyclean) \
657b58f4
NN
8289 || exit 1
8290
a7e609d6 8291@endif find
657b58f4 8292
8ec98d6c
NN
8293.PHONY: maybe-clean-find clean-find
8294maybe-clean-find:
a7e609d6
PB
8295@if find
8296maybe-clean-find: clean-find
657b58f4 8297
8ec98d6c
NN
8298clean-find:
8299 @[ -f ./find/Makefile ] || exit 0; \
5230d454
L
8300 r=`${PWD_COMMAND}`; export r; \
8301 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 8302 $(SET_LIB_PATH) \
a675b75a 8303 $(HOST_EXPORTS) \
d5eec917 8304 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8305 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8306 done; \
8ec98d6c 8307 echo "Doing clean in find" ; \
7fc2ca22 8308 (cd $(HOST_SUBDIR)/find && \
657b58f4
NN
8309 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8310 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8311 "RANLIB=$${RANLIB}" \
8312 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 8313 clean) \
657b58f4
NN
8314 || exit 1
8315
a7e609d6 8316@endif find
657b58f4 8317
8ec98d6c
NN
8318.PHONY: maybe-distclean-find distclean-find
8319maybe-distclean-find:
a7e609d6
PB
8320@if find
8321maybe-distclean-find: distclean-find
657b58f4 8322
8ec98d6c
NN
8323distclean-find:
8324 @[ -f ./find/Makefile ] || exit 0; \
5230d454
L
8325 r=`${PWD_COMMAND}`; export r; \
8326 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 8327 $(SET_LIB_PATH) \
a675b75a 8328 $(HOST_EXPORTS) \
d5eec917 8329 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8330 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8331 done; \
8ec98d6c 8332 echo "Doing distclean in find" ; \
7fc2ca22 8333 (cd $(HOST_SUBDIR)/find && \
657b58f4
NN
8334 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8335 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8336 "RANLIB=$${RANLIB}" \
8337 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 8338 distclean) \
657b58f4
NN
8339 || exit 1
8340
a7e609d6 8341@endif find
657b58f4 8342
8ec98d6c
NN
8343.PHONY: maybe-maintainer-clean-find maintainer-clean-find
8344maybe-maintainer-clean-find:
a7e609d6
PB
8345@if find
8346maybe-maintainer-clean-find: maintainer-clean-find
657b58f4 8347
8ec98d6c
NN
8348maintainer-clean-find:
8349 @[ -f ./find/Makefile ] || exit 0; \
5230d454
L
8350 r=`${PWD_COMMAND}`; export r; \
8351 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 8352 $(SET_LIB_PATH) \
a675b75a 8353 $(HOST_EXPORTS) \
d5eec917 8354 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8355 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8356 done; \
8ec98d6c 8357 echo "Doing maintainer-clean in find" ; \
7fc2ca22 8358 (cd $(HOST_SUBDIR)/find && \
657b58f4
NN
8359 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8360 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8361 "RANLIB=$${RANLIB}" \
8362 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 8363 maintainer-clean) \
657b58f4
NN
8364 || exit 1
8365
a7e609d6 8366@endif find
657b58f4 8367
657b58f4 8368
5350aa8b
GK
8369.PHONY: configure-fixincludes maybe-configure-fixincludes
8370maybe-configure-fixincludes:
8371@if fixincludes
8372maybe-configure-fixincludes: configure-fixincludes
8373configure-fixincludes:
7fc2ca22
PB
8374 @test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8375 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes ; \
5350aa8b
GK
8376 r=`${PWD_COMMAND}`; export r; \
8377 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8378 $(HOST_EXPORTS) \
8379 echo Configuring in fixincludes; \
7fc2ca22 8380 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
5350aa8b 8381 case $(srcdir) in \
7fc2ca22
PB
8382 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8383 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8384 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5350aa8b 8385 esac; \
7fc2ca22
PB
8386 srcdiroption="--srcdir=$${topdir}/fixincludes"; \
8387 libsrcdir="$$s/fixincludes"; \
5350aa8b
GK
8388 $(SHELL) $${libsrcdir}/configure \
8389 $(HOST_CONFIGARGS) $${srcdiroption} \
8390 || exit 1
8391@endif fixincludes
8392
8393.PHONY: all-fixincludes maybe-all-fixincludes
8394maybe-all-fixincludes:
8395@if fixincludes
8396TARGET-fixincludes=all
8397maybe-all-fixincludes: all-fixincludes
8398all-fixincludes: configure-fixincludes
8399 @r=`${PWD_COMMAND}`; export r; \
8400 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8401 $(SET_LIB_PATH) \
8402 $(HOST_EXPORTS) \
7fc2ca22
PB
8403 (cd $(HOST_SUBDIR)/fixincludes && \
8404 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-fixincludes))
5350aa8b
GK
8405@endif fixincludes
8406
8407.PHONY: check-fixincludes maybe-check-fixincludes
8408maybe-check-fixincludes:
8409@if fixincludes
8410maybe-check-fixincludes: check-fixincludes
8411
8412check-fixincludes:
8413 @r=`${PWD_COMMAND}`; export r; \
8414 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8415 $(SET_LIB_PATH) \
8416 $(HOST_EXPORTS) \
7fc2ca22
PB
8417 (cd $(HOST_SUBDIR)/fixincludes && \
8418 $(MAKE) $(FLAGS_TO_PASS) check)
5350aa8b
GK
8419
8420@endif fixincludes
8421
8422.PHONY: install-fixincludes maybe-install-fixincludes
8423maybe-install-fixincludes:
8424@if fixincludes
8425maybe-install-fixincludes: install-fixincludes
8426
8427install-fixincludes: installdirs
8428 @r=`${PWD_COMMAND}`; export r; \
8429 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8430 $(SET_LIB_PATH) \
8431 $(HOST_EXPORTS) \
7fc2ca22 8432 (cd $(HOST_SUBDIR)/fixincludes && \
93c60b6d 8433 $(MAKE) $(FLAGS_TO_PASS) install)
5350aa8b
GK
8434
8435@endif fixincludes
8436
8437# Other targets (info, dvi, etc.)
8438
8439.PHONY: maybe-info-fixincludes info-fixincludes
8440maybe-info-fixincludes:
8441@if fixincludes
8442maybe-info-fixincludes: info-fixincludes
8443
38b33663
PB
8444# fixincludes doesn't support info.
8445info-fixincludes:
5350aa8b
GK
8446
8447@endif fixincludes
8448
8449.PHONY: maybe-dvi-fixincludes dvi-fixincludes
8450maybe-dvi-fixincludes:
8451@if fixincludes
8452maybe-dvi-fixincludes: dvi-fixincludes
8453
38b33663
PB
8454# fixincludes doesn't support dvi.
8455dvi-fixincludes:
5350aa8b
GK
8456
8457@endif fixincludes
8458
b6fb961f
MS
8459.PHONY: maybe-html-fixincludes html-fixincludes
8460maybe-html-fixincludes:
8461@if fixincludes
8462maybe-html-fixincludes: html-fixincludes
8463
8464html-fixincludes: \
8465 configure-fixincludes
8466 @[ -f ./fixincludes/Makefile ] || exit 0; \
8467 r=`${PWD_COMMAND}`; export r; \
8468 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8469 $(SET_LIB_PATH) \
8470 $(HOST_EXPORTS) \
8471 for flag in $(EXTRA_HOST_FLAGS) ; do \
8472 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8473 done; \
8474 echo "Doing html in fixincludes" ; \
7fc2ca22 8475 (cd $(HOST_SUBDIR)/fixincludes && \
b6fb961f
MS
8476 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8477 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8478 "RANLIB=$${RANLIB}" \
8479 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8480 html) \
8481 || exit 1
8482
8483@endif fixincludes
8484
5350aa8b
GK
8485.PHONY: maybe-TAGS-fixincludes TAGS-fixincludes
8486maybe-TAGS-fixincludes:
8487@if fixincludes
8488maybe-TAGS-fixincludes: TAGS-fixincludes
8489
38b33663
PB
8490# fixincludes doesn't support TAGS.
8491TAGS-fixincludes:
5350aa8b
GK
8492
8493@endif fixincludes
8494
8495.PHONY: maybe-install-info-fixincludes install-info-fixincludes
8496maybe-install-info-fixincludes:
8497@if fixincludes
8498maybe-install-info-fixincludes: install-info-fixincludes
8499
38b33663
PB
8500# fixincludes doesn't support install-info.
8501install-info-fixincludes:
5350aa8b
GK
8502
8503@endif fixincludes
8504
8505.PHONY: maybe-installcheck-fixincludes installcheck-fixincludes
8506maybe-installcheck-fixincludes:
8507@if fixincludes
8508maybe-installcheck-fixincludes: installcheck-fixincludes
8509
38b33663
PB
8510# fixincludes doesn't support installcheck.
8511installcheck-fixincludes:
5350aa8b
GK
8512
8513@endif fixincludes
8514
8515.PHONY: maybe-mostlyclean-fixincludes mostlyclean-fixincludes
8516maybe-mostlyclean-fixincludes:
8517@if fixincludes
8518maybe-mostlyclean-fixincludes: mostlyclean-fixincludes
8519
8520mostlyclean-fixincludes:
8521 @[ -f ./fixincludes/Makefile ] || exit 0; \
8522 r=`${PWD_COMMAND}`; export r; \
8523 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8524 $(SET_LIB_PATH) \
8525 $(HOST_EXPORTS) \
8526 for flag in $(EXTRA_HOST_FLAGS) ; do \
8527 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8528 done; \
8529 echo "Doing mostlyclean in fixincludes" ; \
7fc2ca22 8530 (cd $(HOST_SUBDIR)/fixincludes && \
5350aa8b
GK
8531 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8532 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8533 "RANLIB=$${RANLIB}" \
8534 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8535 mostlyclean) \
8536 || exit 1
8537
8538@endif fixincludes
8539
8540.PHONY: maybe-clean-fixincludes clean-fixincludes
8541maybe-clean-fixincludes:
8542@if fixincludes
8543maybe-clean-fixincludes: clean-fixincludes
8544
8545clean-fixincludes:
8546 @[ -f ./fixincludes/Makefile ] || exit 0; \
8547 r=`${PWD_COMMAND}`; export r; \
8548 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8549 $(SET_LIB_PATH) \
8550 $(HOST_EXPORTS) \
8551 for flag in $(EXTRA_HOST_FLAGS) ; do \
8552 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8553 done; \
8554 echo "Doing clean in fixincludes" ; \
7fc2ca22 8555 (cd $(HOST_SUBDIR)/fixincludes && \
5350aa8b
GK
8556 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8557 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8558 "RANLIB=$${RANLIB}" \
8559 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8560 clean) \
8561 || exit 1
8562
8563@endif fixincludes
8564
8565.PHONY: maybe-distclean-fixincludes distclean-fixincludes
8566maybe-distclean-fixincludes:
8567@if fixincludes
8568maybe-distclean-fixincludes: distclean-fixincludes
8569
8570distclean-fixincludes:
8571 @[ -f ./fixincludes/Makefile ] || exit 0; \
8572 r=`${PWD_COMMAND}`; export r; \
8573 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8574 $(SET_LIB_PATH) \
8575 $(HOST_EXPORTS) \
8576 for flag in $(EXTRA_HOST_FLAGS) ; do \
8577 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8578 done; \
8579 echo "Doing distclean in fixincludes" ; \
7fc2ca22 8580 (cd $(HOST_SUBDIR)/fixincludes && \
5350aa8b
GK
8581 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8582 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8583 "RANLIB=$${RANLIB}" \
8584 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8585 distclean) \
8586 || exit 1
8587
8588@endif fixincludes
8589
8590.PHONY: maybe-maintainer-clean-fixincludes maintainer-clean-fixincludes
8591maybe-maintainer-clean-fixincludes:
8592@if fixincludes
8593maybe-maintainer-clean-fixincludes: maintainer-clean-fixincludes
8594
8595maintainer-clean-fixincludes:
8596 @[ -f ./fixincludes/Makefile ] || exit 0; \
8597 r=`${PWD_COMMAND}`; export r; \
8598 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8599 $(SET_LIB_PATH) \
8600 $(HOST_EXPORTS) \
8601 for flag in $(EXTRA_HOST_FLAGS) ; do \
8602 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8603 done; \
8604 echo "Doing maintainer-clean in fixincludes" ; \
7fc2ca22 8605 (cd $(HOST_SUBDIR)/fixincludes && \
5350aa8b
GK
8606 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8607 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8608 "RANLIB=$${RANLIB}" \
8609 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8610 maintainer-clean) \
8611 || exit 1
8612
8613@endif fixincludes
8614
8615
8ec98d6c
NN
8616.PHONY: configure-flex maybe-configure-flex
8617maybe-configure-flex:
a7e609d6
PB
8618@if flex
8619maybe-configure-flex: configure-flex
8ec98d6c 8620configure-flex:
7fc2ca22
PB
8621 @test ! -f $(HOST_SUBDIR)/flex/Makefile || exit 0; \
8622 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/flex ; \
8ec98d6c
NN
8623 r=`${PWD_COMMAND}`; export r; \
8624 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 8625 $(HOST_EXPORTS) \
8ec98d6c 8626 echo Configuring in flex; \
7fc2ca22 8627 cd $(HOST_SUBDIR)/flex || exit 1; \
8ec98d6c 8628 case $(srcdir) in \
7fc2ca22
PB
8629 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8630 *) topdir=`echo $(HOST_SUBDIR)/flex/ | \
8631 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 8632 esac; \
7fc2ca22
PB
8633 srcdiroption="--srcdir=$${topdir}/flex"; \
8634 libsrcdir="$$s/flex"; \
8ec98d6c 8635 $(SHELL) $${libsrcdir}/configure \
63673a5b 8636 $(HOST_CONFIGARGS) $${srcdiroption} \
8ec98d6c 8637 || exit 1
a7e609d6 8638@endif flex
8ec98d6c
NN
8639
8640.PHONY: all-flex maybe-all-flex
8641maybe-all-flex:
a7e609d6 8642@if flex
5e6b1f07 8643TARGET-flex=all
a7e609d6 8644maybe-all-flex: all-flex
8ec98d6c
NN
8645all-flex: configure-flex
8646 @r=`${PWD_COMMAND}`; export r; \
8647 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8648 $(SET_LIB_PATH) \
a675b75a 8649 $(HOST_EXPORTS) \
7fc2ca22
PB
8650 (cd $(HOST_SUBDIR)/flex && \
8651 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-flex))
a7e609d6 8652@endif flex
8ec98d6c
NN
8653
8654.PHONY: check-flex maybe-check-flex
8655maybe-check-flex:
a7e609d6
PB
8656@if flex
8657maybe-check-flex: check-flex
8ec98d6c
NN
8658
8659# This module is only tested in a native toolchain.
8660check-flex:
8661 @if [ '$(host)' = '$(target)' ] ; then \
8662 r=`${PWD_COMMAND}`; export r; \
8663 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8664 $(SET_LIB_PATH) \
a675b75a 8665 $(HOST_EXPORTS) \
7fc2ca22 8666 (cd $(HOST_SUBDIR)/flex && \
80e4c577 8667 $(MAKE) $(FLAGS_TO_PASS) check); \
8ec98d6c
NN
8668 fi
8669
a7e609d6 8670@endif flex
8ec98d6c
NN
8671
8672.PHONY: install-flex maybe-install-flex
8673maybe-install-flex:
a7e609d6
PB
8674@if flex
8675maybe-install-flex: install-flex
8ec98d6c
NN
8676
8677install-flex: installdirs
8678 @r=`${PWD_COMMAND}`; export r; \
8679 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8680 $(SET_LIB_PATH) \
a675b75a 8681 $(HOST_EXPORTS) \
7fc2ca22 8682 (cd $(HOST_SUBDIR)/flex && \
93c60b6d 8683 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 8684
a7e609d6 8685@endif flex
8ec98d6c
NN
8686
8687# Other targets (info, dvi, etc.)
8688
8689.PHONY: maybe-info-flex info-flex
8690maybe-info-flex:
a7e609d6
PB
8691@if flex
8692maybe-info-flex: info-flex
8ec98d6c
NN
8693
8694info-flex: \
8695 configure-flex
8696 @[ -f ./flex/Makefile ] || exit 0; \
5230d454
L
8697 r=`${PWD_COMMAND}`; export r; \
8698 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 8699 $(SET_LIB_PATH) \
a675b75a 8700 $(HOST_EXPORTS) \
d5eec917 8701 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8702 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8703 done; \
8ec98d6c 8704 echo "Doing info in flex" ; \
7fc2ca22 8705 (cd $(HOST_SUBDIR)/flex && \
657b58f4
NN
8706 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8707 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8708 "RANLIB=$${RANLIB}" \
8709 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 8710 info) \
657b58f4
NN
8711 || exit 1
8712
a7e609d6 8713@endif flex
657b58f4 8714
8ec98d6c
NN
8715.PHONY: maybe-dvi-flex dvi-flex
8716maybe-dvi-flex:
a7e609d6
PB
8717@if flex
8718maybe-dvi-flex: dvi-flex
657b58f4 8719
8ec98d6c
NN
8720dvi-flex: \
8721 configure-flex
8722 @[ -f ./flex/Makefile ] || exit 0; \
5230d454
L
8723 r=`${PWD_COMMAND}`; export r; \
8724 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 8725 $(SET_LIB_PATH) \
a675b75a 8726 $(HOST_EXPORTS) \
d5eec917 8727 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8728 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8729 done; \
8ec98d6c 8730 echo "Doing dvi in flex" ; \
7fc2ca22 8731 (cd $(HOST_SUBDIR)/flex && \
657b58f4
NN
8732 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8733 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8734 "RANLIB=$${RANLIB}" \
8735 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 8736 dvi) \
657b58f4
NN
8737 || exit 1
8738
a7e609d6 8739@endif flex
657b58f4 8740
b6fb961f
MS
8741.PHONY: maybe-html-flex html-flex
8742maybe-html-flex:
8743@if flex
8744maybe-html-flex: html-flex
8745
8746html-flex: \
8747 configure-flex
8748 @[ -f ./flex/Makefile ] || exit 0; \
8749 r=`${PWD_COMMAND}`; export r; \
8750 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8751 $(SET_LIB_PATH) \
8752 $(HOST_EXPORTS) \
8753 for flag in $(EXTRA_HOST_FLAGS) ; do \
8754 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8755 done; \
8756 echo "Doing html in flex" ; \
7fc2ca22 8757 (cd $(HOST_SUBDIR)/flex && \
b6fb961f
MS
8758 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8759 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8760 "RANLIB=$${RANLIB}" \
8761 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8762 html) \
8763 || exit 1
8764
8765@endif flex
8766
8ec98d6c
NN
8767.PHONY: maybe-TAGS-flex TAGS-flex
8768maybe-TAGS-flex:
a7e609d6
PB
8769@if flex
8770maybe-TAGS-flex: TAGS-flex
657b58f4 8771
8ec98d6c
NN
8772TAGS-flex: \
8773 configure-flex
8774 @[ -f ./flex/Makefile ] || exit 0; \
5230d454
L
8775 r=`${PWD_COMMAND}`; export r; \
8776 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 8777 $(SET_LIB_PATH) \
a675b75a 8778 $(HOST_EXPORTS) \
d5eec917 8779 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8780 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8781 done; \
8ec98d6c 8782 echo "Doing TAGS in flex" ; \
7fc2ca22 8783 (cd $(HOST_SUBDIR)/flex && \
657b58f4
NN
8784 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8785 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8786 "RANLIB=$${RANLIB}" \
8787 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 8788 TAGS) \
657b58f4
NN
8789 || exit 1
8790
a7e609d6 8791@endif flex
657b58f4 8792
8ec98d6c
NN
8793.PHONY: maybe-install-info-flex install-info-flex
8794maybe-install-info-flex:
a7e609d6
PB
8795@if flex
8796maybe-install-info-flex: install-info-flex
657b58f4 8797
8ec98d6c
NN
8798install-info-flex: \
8799 configure-flex \
8800 info-flex
8801 @[ -f ./flex/Makefile ] || exit 0; \
5230d454
L
8802 r=`${PWD_COMMAND}`; export r; \
8803 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 8804 $(SET_LIB_PATH) \
a675b75a 8805 $(HOST_EXPORTS) \
d5eec917 8806 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8807 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8808 done; \
8ec98d6c 8809 echo "Doing install-info in flex" ; \
7fc2ca22 8810 (cd $(HOST_SUBDIR)/flex && \
657b58f4
NN
8811 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8812 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8813 "RANLIB=$${RANLIB}" \
8814 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 8815 install-info) \
657b58f4
NN
8816 || exit 1
8817
a7e609d6 8818@endif flex
657b58f4 8819
8ec98d6c
NN
8820.PHONY: maybe-installcheck-flex installcheck-flex
8821maybe-installcheck-flex:
a7e609d6
PB
8822@if flex
8823maybe-installcheck-flex: installcheck-flex
657b58f4 8824
8ec98d6c
NN
8825installcheck-flex: \
8826 configure-flex
8827 @[ -f ./flex/Makefile ] || exit 0; \
5230d454
L
8828 r=`${PWD_COMMAND}`; export r; \
8829 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 8830 $(SET_LIB_PATH) \
a675b75a 8831 $(HOST_EXPORTS) \
d5eec917 8832 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8833 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8834 done; \
8ec98d6c 8835 echo "Doing installcheck in flex" ; \
7fc2ca22 8836 (cd $(HOST_SUBDIR)/flex && \
657b58f4
NN
8837 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8838 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8839 "RANLIB=$${RANLIB}" \
8840 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 8841 installcheck) \
657b58f4
NN
8842 || exit 1
8843
a7e609d6 8844@endif flex
657b58f4 8845
8ec98d6c
NN
8846.PHONY: maybe-mostlyclean-flex mostlyclean-flex
8847maybe-mostlyclean-flex:
a7e609d6
PB
8848@if flex
8849maybe-mostlyclean-flex: mostlyclean-flex
657b58f4 8850
8ec98d6c
NN
8851mostlyclean-flex:
8852 @[ -f ./flex/Makefile ] || exit 0; \
5230d454
L
8853 r=`${PWD_COMMAND}`; export r; \
8854 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 8855 $(SET_LIB_PATH) \
a675b75a 8856 $(HOST_EXPORTS) \
d5eec917 8857 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8858 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8859 done; \
8ec98d6c 8860 echo "Doing mostlyclean in flex" ; \
7fc2ca22 8861 (cd $(HOST_SUBDIR)/flex && \
657b58f4
NN
8862 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8863 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8864 "RANLIB=$${RANLIB}" \
8865 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 8866 mostlyclean) \
657b58f4
NN
8867 || exit 1
8868
a7e609d6 8869@endif flex
657b58f4 8870
8ec98d6c
NN
8871.PHONY: maybe-clean-flex clean-flex
8872maybe-clean-flex:
a7e609d6
PB
8873@if flex
8874maybe-clean-flex: clean-flex
657b58f4 8875
8ec98d6c
NN
8876clean-flex:
8877 @[ -f ./flex/Makefile ] || exit 0; \
5230d454
L
8878 r=`${PWD_COMMAND}`; export r; \
8879 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 8880 $(SET_LIB_PATH) \
a675b75a 8881 $(HOST_EXPORTS) \
d5eec917 8882 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8883 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8884 done; \
8ec98d6c 8885 echo "Doing clean in flex" ; \
7fc2ca22 8886 (cd $(HOST_SUBDIR)/flex && \
657b58f4
NN
8887 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8888 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8889 "RANLIB=$${RANLIB}" \
8890 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 8891 clean) \
657b58f4
NN
8892 || exit 1
8893
a7e609d6 8894@endif flex
657b58f4 8895
8ec98d6c
NN
8896.PHONY: maybe-distclean-flex distclean-flex
8897maybe-distclean-flex:
a7e609d6
PB
8898@if flex
8899maybe-distclean-flex: distclean-flex
657b58f4 8900
8ec98d6c
NN
8901distclean-flex:
8902 @[ -f ./flex/Makefile ] || exit 0; \
5230d454
L
8903 r=`${PWD_COMMAND}`; export r; \
8904 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 8905 $(SET_LIB_PATH) \
a675b75a 8906 $(HOST_EXPORTS) \
d5eec917 8907 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8908 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8909 done; \
8ec98d6c 8910 echo "Doing distclean in flex" ; \
7fc2ca22 8911 (cd $(HOST_SUBDIR)/flex && \
657b58f4
NN
8912 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8913 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8914 "RANLIB=$${RANLIB}" \
8915 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 8916 distclean) \
657b58f4
NN
8917 || exit 1
8918
a7e609d6 8919@endif flex
657b58f4 8920
8ec98d6c
NN
8921.PHONY: maybe-maintainer-clean-flex maintainer-clean-flex
8922maybe-maintainer-clean-flex:
a7e609d6
PB
8923@if flex
8924maybe-maintainer-clean-flex: maintainer-clean-flex
657b58f4 8925
8ec98d6c
NN
8926maintainer-clean-flex:
8927 @[ -f ./flex/Makefile ] || exit 0; \
5230d454
L
8928 r=`${PWD_COMMAND}`; export r; \
8929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 8930 $(SET_LIB_PATH) \
a675b75a 8931 $(HOST_EXPORTS) \
d5eec917 8932 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8933 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8934 done; \
8ec98d6c 8935 echo "Doing maintainer-clean in flex" ; \
7fc2ca22 8936 (cd $(HOST_SUBDIR)/flex && \
657b58f4
NN
8937 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8938 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8939 "RANLIB=$${RANLIB}" \
8940 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 8941 maintainer-clean) \
657b58f4
NN
8942 || exit 1
8943
a7e609d6 8944@endif flex
657b58f4 8945
657b58f4 8946
8ec98d6c
NN
8947.PHONY: configure-gas maybe-configure-gas
8948maybe-configure-gas:
a7e609d6
PB
8949@if gas
8950maybe-configure-gas: configure-gas
8ec98d6c 8951configure-gas:
6a19fd82 8952 @test -f stage_last && exit 0; \
7fc2ca22
PB
8953 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
8954 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
5230d454
L
8955 r=`${PWD_COMMAND}`; export r; \
8956 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 8957 $(HOST_EXPORTS) \
8ec98d6c 8958 echo Configuring in gas; \
7fc2ca22 8959 cd $(HOST_SUBDIR)/gas || exit 1; \
8ec98d6c 8960 case $(srcdir) in \
7fc2ca22
PB
8961 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8962 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
8963 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 8964 esac; \
7fc2ca22
PB
8965 srcdiroption="--srcdir=$${topdir}/gas"; \
8966 libsrcdir="$$s/gas"; \
8ec98d6c 8967 $(SHELL) $${libsrcdir}/configure \
63673a5b 8968 $(HOST_CONFIGARGS) $${srcdiroption} \
8ec98d6c 8969 || exit 1
a7e609d6 8970@endif gas
8ec98d6c
NN
8971
8972.PHONY: all-gas maybe-all-gas
8973maybe-all-gas:
a7e609d6 8974@if gas
5e6b1f07 8975TARGET-gas=all
a7e609d6 8976maybe-all-gas: all-gas
8ec98d6c 8977all-gas: configure-gas
6a19fd82
PB
8978 @test -f stage_last && exit 0; \
8979 r=`${PWD_COMMAND}`; export r; \
8ec98d6c 8980 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 8981 $(SET_LIB_PATH) \
a675b75a 8982 $(HOST_EXPORTS) \
7fc2ca22
PB
8983 (cd $(HOST_SUBDIR)/gas && \
8984 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-gas))
a7e609d6 8985@endif gas
8ec98d6c
NN
8986
8987.PHONY: check-gas maybe-check-gas
8988maybe-check-gas:
a7e609d6
PB
8989@if gas
8990maybe-check-gas: check-gas
8ec98d6c
NN
8991
8992check-gas:
8993 @r=`${PWD_COMMAND}`; export r; \
8994 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8995 $(SET_LIB_PATH) \
a675b75a 8996 $(HOST_EXPORTS) \
7fc2ca22
PB
8997 (cd $(HOST_SUBDIR)/gas && \
8998 $(MAKE) $(FLAGS_TO_PASS) check)
8ec98d6c 8999
a7e609d6 9000@endif gas
8ec98d6c
NN
9001
9002.PHONY: install-gas maybe-install-gas
9003maybe-install-gas:
a7e609d6
PB
9004@if gas
9005maybe-install-gas: install-gas
8ec98d6c
NN
9006
9007install-gas: installdirs
9008 @r=`${PWD_COMMAND}`; export r; \
9009 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9010 $(SET_LIB_PATH) \
a675b75a 9011 $(HOST_EXPORTS) \
7fc2ca22 9012 (cd $(HOST_SUBDIR)/gas && \
93c60b6d 9013 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 9014
a7e609d6 9015@endif gas
8ec98d6c
NN
9016
9017# Other targets (info, dvi, etc.)
9018
9019.PHONY: maybe-info-gas info-gas
9020maybe-info-gas:
a7e609d6
PB
9021@if gas
9022maybe-info-gas: info-gas
8ec98d6c
NN
9023
9024info-gas: \
9025 configure-gas
9026 @[ -f ./gas/Makefile ] || exit 0; \
9027 r=`${PWD_COMMAND}`; export r; \
9028 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9029 $(SET_LIB_PATH) \
a675b75a 9030 $(HOST_EXPORTS) \
d5eec917 9031 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
9032 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9033 done; \
8ec98d6c 9034 echo "Doing info in gas" ; \
7fc2ca22 9035 (cd $(HOST_SUBDIR)/gas && \
657b58f4
NN
9036 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9037 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9038 "RANLIB=$${RANLIB}" \
9039 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 9040 info) \
657b58f4
NN
9041 || exit 1
9042
a7e609d6 9043@endif gas
657b58f4 9044
8ec98d6c
NN
9045.PHONY: maybe-dvi-gas dvi-gas
9046maybe-dvi-gas:
a7e609d6
PB
9047@if gas
9048maybe-dvi-gas: dvi-gas
657b58f4 9049
8ec98d6c
NN
9050dvi-gas: \
9051 configure-gas
9052 @[ -f ./gas/Makefile ] || exit 0; \
5230d454
L
9053 r=`${PWD_COMMAND}`; export r; \
9054 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 9055 $(SET_LIB_PATH) \
a675b75a 9056 $(HOST_EXPORTS) \
d5eec917 9057 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
9058 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9059 done; \
8ec98d6c 9060 echo "Doing dvi in gas" ; \
7fc2ca22 9061 (cd $(HOST_SUBDIR)/gas && \
657b58f4
NN
9062 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9063 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9064 "RANLIB=$${RANLIB}" \
9065 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 9066 dvi) \
657b58f4
NN
9067 || exit 1
9068
a7e609d6 9069@endif gas
657b58f4 9070
b6fb961f
MS
9071.PHONY: maybe-html-gas html-gas
9072maybe-html-gas:
9073@if gas
9074maybe-html-gas: html-gas
9075
9076html-gas: \
9077 configure-gas
9078 @[ -f ./gas/Makefile ] || exit 0; \
9079 r=`${PWD_COMMAND}`; export r; \
9080 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9081 $(SET_LIB_PATH) \
9082 $(HOST_EXPORTS) \
9083 for flag in $(EXTRA_HOST_FLAGS) ; do \
9084 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9085 done; \
9086 echo "Doing html in gas" ; \
7fc2ca22 9087 (cd $(HOST_SUBDIR)/gas && \
b6fb961f
MS
9088 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9089 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9090 "RANLIB=$${RANLIB}" \
9091 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9092 html) \
9093 || exit 1
9094
9095@endif gas
9096
8ec98d6c
NN
9097.PHONY: maybe-TAGS-gas TAGS-gas
9098maybe-TAGS-gas:
a7e609d6
PB
9099@if gas
9100maybe-TAGS-gas: TAGS-gas
657b58f4 9101
8ec98d6c
NN
9102TAGS-gas: \
9103 configure-gas
9104 @[ -f ./gas/Makefile ] || exit 0; \
5230d454
L
9105 r=`${PWD_COMMAND}`; export r; \
9106 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 9107 $(SET_LIB_PATH) \
a675b75a 9108 $(HOST_EXPORTS) \
d5eec917 9109 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
9110 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9111 done; \
8ec98d6c 9112 echo "Doing TAGS in gas" ; \
7fc2ca22 9113 (cd $(HOST_SUBDIR)/gas && \
657b58f4
NN
9114 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9115 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9116 "RANLIB=$${RANLIB}" \
9117 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 9118 TAGS) \
657b58f4
NN
9119 || exit 1
9120
a7e609d6 9121@endif gas
657b58f4 9122
8ec98d6c
NN
9123.PHONY: maybe-install-info-gas install-info-gas
9124maybe-install-info-gas:
a7e609d6
PB
9125@if gas
9126maybe-install-info-gas: install-info-gas
657b58f4 9127
8ec98d6c
NN
9128install-info-gas: \
9129 configure-gas \
9130 info-gas
9131 @[ -f ./gas/Makefile ] || exit 0; \
5230d454
L
9132 r=`${PWD_COMMAND}`; export r; \
9133 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 9134 $(SET_LIB_PATH) \
a675b75a 9135 $(HOST_EXPORTS) \
d5eec917 9136 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
9137 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9138 done; \
8ec98d6c 9139 echo "Doing install-info in gas" ; \
7fc2ca22 9140 (cd $(HOST_SUBDIR)/gas && \
657b58f4
NN
9141 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9142 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9143 "RANLIB=$${RANLIB}" \
9144 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 9145 install-info) \
657b58f4
NN
9146 || exit 1
9147
a7e609d6 9148@endif gas
657b58f4 9149
8ec98d6c
NN
9150.PHONY: maybe-installcheck-gas installcheck-gas
9151maybe-installcheck-gas:
a7e609d6
PB
9152@if gas
9153maybe-installcheck-gas: installcheck-gas
657b58f4 9154
8ec98d6c
NN
9155installcheck-gas: \
9156 configure-gas
9157 @[ -f ./gas/Makefile ] || exit 0; \
5230d454
L
9158 r=`${PWD_COMMAND}`; export r; \
9159 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 9160 $(SET_LIB_PATH) \
a675b75a 9161 $(HOST_EXPORTS) \
d5eec917 9162 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
9163 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9164 done; \
8ec98d6c 9165 echo "Doing installcheck in gas" ; \
7fc2ca22 9166 (cd $(HOST_SUBDIR)/gas && \
657b58f4
NN
9167 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9168 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9169 "RANLIB=$${RANLIB}" \
9170 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 9171 installcheck) \
657b58f4
NN
9172 || exit 1
9173
a7e609d6 9174@endif gas
657b58f4 9175
8ec98d6c
NN
9176.PHONY: maybe-mostlyclean-gas mostlyclean-gas
9177maybe-mostlyclean-gas:
a7e609d6
PB
9178@if gas
9179maybe-mostlyclean-gas: mostlyclean-gas
657b58f4 9180
8ec98d6c
NN
9181mostlyclean-gas:
9182 @[ -f ./gas/Makefile ] || exit 0; \
5230d454
L
9183 r=`${PWD_COMMAND}`; export r; \
9184 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 9185 $(SET_LIB_PATH) \
a675b75a 9186 $(HOST_EXPORTS) \
d5eec917 9187 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
9188 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9189 done; \
8ec98d6c 9190 echo "Doing mostlyclean in gas" ; \
7fc2ca22 9191 (cd $(HOST_SUBDIR)/gas && \
657b58f4
NN
9192 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9193 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9194 "RANLIB=$${RANLIB}" \
9195 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 9196 mostlyclean) \
657b58f4
NN
9197 || exit 1
9198
a7e609d6 9199@endif gas
657b58f4 9200
8ec98d6c
NN
9201.PHONY: maybe-clean-gas clean-gas
9202maybe-clean-gas:
a7e609d6
PB
9203@if gas
9204maybe-clean-gas: clean-gas
657b58f4 9205
8ec98d6c
NN
9206clean-gas:
9207 @[ -f ./gas/Makefile ] || exit 0; \
5230d454
L
9208 r=`${PWD_COMMAND}`; export r; \
9209 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 9210 $(SET_LIB_PATH) \
a675b75a 9211 $(HOST_EXPORTS) \
d5eec917 9212 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
9213 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9214 done; \
8ec98d6c 9215 echo "Doing clean in gas" ; \
7fc2ca22 9216 (cd $(HOST_SUBDIR)/gas && \
657b58f4
NN
9217 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9218 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9219 "RANLIB=$${RANLIB}" \
9220 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 9221 clean) \
657b58f4
NN
9222 || exit 1
9223
a7e609d6 9224@endif gas
657b58f4 9225
8ec98d6c
NN
9226.PHONY: maybe-distclean-gas distclean-gas
9227maybe-distclean-gas:
a7e609d6
PB
9228@if gas
9229maybe-distclean-gas: distclean-gas
657b58f4 9230
8ec98d6c
NN
9231distclean-gas:
9232 @[ -f ./gas/Makefile ] || exit 0; \
5230d454
L
9233 r=`${PWD_COMMAND}`; export r; \
9234 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 9235 $(SET_LIB_PATH) \
a675b75a 9236 $(HOST_EXPORTS) \
d5eec917 9237 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
9238 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9239 done; \
8ec98d6c 9240 echo "Doing distclean in gas" ; \
7fc2ca22 9241 (cd $(HOST_SUBDIR)/gas && \
657b58f4
NN
9242 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9243 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9244 "RANLIB=$${RANLIB}" \
9245 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 9246 distclean) \
657b58f4
NN
9247 || exit 1
9248
a7e609d6 9249@endif gas
657b58f4 9250
8ec98d6c
NN
9251.PHONY: maybe-maintainer-clean-gas maintainer-clean-gas
9252maybe-maintainer-clean-gas:
a7e609d6
PB
9253@if gas
9254maybe-maintainer-clean-gas: maintainer-clean-gas
657b58f4 9255
8ec98d6c
NN
9256maintainer-clean-gas:
9257 @[ -f ./gas/Makefile ] || exit 0; \
5230d454
L
9258 r=`${PWD_COMMAND}`; export r; \
9259 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 9260 $(SET_LIB_PATH) \
a675b75a 9261 $(HOST_EXPORTS) \
d5eec917 9262 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
9263 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9264 done; \
8ec98d6c 9265 echo "Doing maintainer-clean in gas" ; \
7fc2ca22 9266 (cd $(HOST_SUBDIR)/gas && \
657b58f4
NN
9267 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9268 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9269 "RANLIB=$${RANLIB}" \
9270 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 9271 maintainer-clean) \
657b58f4
NN
9272 || exit 1
9273
a7e609d6 9274@endif gas
657b58f4 9275
657b58f4 9276
d5eec917
PB
9277.PHONY: configure-gcc maybe-configure-gcc
9278maybe-configure-gcc:
9279@if gcc
9280maybe-configure-gcc: configure-gcc
9281configure-gcc:
6a19fd82 9282 @test -f stage_last && exit 0; \
7fc2ca22
PB
9283 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
9284 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
8ec98d6c
NN
9285 r=`${PWD_COMMAND}`; export r; \
9286 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 9287 $(HOST_EXPORTS) \
d5eec917 9288 echo Configuring in gcc; \
7fc2ca22 9289 cd $(HOST_SUBDIR)/gcc || exit 1; \
8ec98d6c 9290 case $(srcdir) in \
7fc2ca22
PB
9291 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9292 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
9293 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 9294 esac; \
7fc2ca22
PB
9295 srcdiroption="--srcdir=$${topdir}/gcc"; \
9296 libsrcdir="$$s/gcc"; \
8ec98d6c 9297 $(SHELL) $${libsrcdir}/configure \
63673a5b 9298 $(HOST_CONFIGARGS) $${srcdiroption} \
8ec98d6c 9299 || exit 1
d5eec917 9300@endif gcc
8ec98d6c 9301
d5eec917
PB
9302.PHONY: all-gcc maybe-all-gcc
9303maybe-all-gcc:
9304@if gcc
5e6b1f07 9305TARGET-gcc=`if [ -f gcc/stage_last ]; then echo quickstrap ; else echo all; fi`
d5eec917
PB
9306maybe-all-gcc: all-gcc
9307all-gcc: configure-gcc
6a19fd82
PB
9308 @test -f stage_last && exit 0; \
9309 r=`${PWD_COMMAND}`; export r; \
8ec98d6c
NN
9310 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9311 $(SET_LIB_PATH) \
a675b75a 9312 $(HOST_EXPORTS) \
7fc2ca22
PB
9313 (cd $(HOST_SUBDIR)/gcc && \
9314 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) $(TARGET-gcc))
d5eec917 9315@endif gcc
8ec98d6c 9316
d5eec917
PB
9317.PHONY: check-gcc maybe-check-gcc
9318maybe-check-gcc:
9319@if gcc
9320maybe-check-gcc: check-gcc
8ec98d6c 9321
d5eec917 9322check-gcc:
8ec98d6c
NN
9323 @r=`${PWD_COMMAND}`; export r; \
9324 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9325 $(SET_LIB_PATH) \
a675b75a 9326 $(HOST_EXPORTS) \
7fc2ca22
PB
9327 (cd $(HOST_SUBDIR)/gcc && \
9328 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) check)
8ec98d6c 9329
d5eec917 9330@endif gcc
8ec98d6c 9331
d5eec917
PB
9332.PHONY: install-gcc maybe-install-gcc
9333maybe-install-gcc:
9334@if gcc
9335maybe-install-gcc: install-gcc
8ec98d6c 9336
d5eec917 9337install-gcc: installdirs
8ec98d6c
NN
9338 @r=`${PWD_COMMAND}`; export r; \
9339 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9340 $(SET_LIB_PATH) \
a675b75a 9341 $(HOST_EXPORTS) \
7fc2ca22 9342 (cd $(HOST_SUBDIR)/gcc && \
93c60b6d 9343 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) install)
8ec98d6c 9344
d5eec917 9345@endif gcc
8ec98d6c
NN
9346
9347# Other targets (info, dvi, etc.)
9348
d5eec917
PB
9349.PHONY: maybe-info-gcc info-gcc
9350maybe-info-gcc:
9351@if gcc
9352maybe-info-gcc: info-gcc
8ec98d6c 9353
d5eec917
PB
9354info-gcc: \
9355 configure-gcc
9356 @[ -f ./gcc/Makefile ] || exit 0; \
5230d454
L
9357 r=`${PWD_COMMAND}`; export r; \
9358 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 9359 $(SET_LIB_PATH) \
a675b75a 9360 $(HOST_EXPORTS) \
d5eec917 9361 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
657b58f4
NN
9362 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9363 done; \
d5eec917 9364 echo "Doing info in gcc" ; \
7fc2ca22 9365 (cd $(HOST_SUBDIR)/gcc && \
657b58f4
NN
9366 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9367 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9368 "RANLIB=$${RANLIB}" \
9369 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 9370 info) \
657b58f4
NN
9371 || exit 1
9372
d5eec917 9373@endif gcc
657b58f4 9374
d5eec917
PB
9375.PHONY: maybe-dvi-gcc dvi-gcc
9376maybe-dvi-gcc:
9377@if gcc
9378maybe-dvi-gcc: dvi-gcc
657b58f4 9379
d5eec917
PB
9380dvi-gcc: \
9381 configure-gcc
9382 @[ -f ./gcc/Makefile ] || exit 0; \
5230d454
L
9383 r=`${PWD_COMMAND}`; export r; \
9384 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 9385 $(SET_LIB_PATH) \
a675b75a 9386 $(HOST_EXPORTS) \
d5eec917 9387 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
657b58f4
NN
9388 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9389 done; \
d5eec917 9390 echo "Doing dvi in gcc" ; \
7fc2ca22 9391 (cd $(HOST_SUBDIR)/gcc && \
657b58f4
NN
9392 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9393 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9394 "RANLIB=$${RANLIB}" \
9395 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 9396 dvi) \
657b58f4
NN
9397 || exit 1
9398
d5eec917 9399@endif gcc
657b58f4 9400
b6fb961f
MS
9401.PHONY: maybe-html-gcc html-gcc
9402maybe-html-gcc:
9403@if gcc
9404maybe-html-gcc: html-gcc
9405
9406html-gcc: \
9407 configure-gcc
9408 @[ -f ./gcc/Makefile ] || exit 0; \
9409 r=`${PWD_COMMAND}`; export r; \
9410 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9411 $(SET_LIB_PATH) \
9412 $(HOST_EXPORTS) \
9413 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
9414 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9415 done; \
9416 echo "Doing html in gcc" ; \
7fc2ca22 9417 (cd $(HOST_SUBDIR)/gcc && \
b6fb961f
MS
9418 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9419 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9420 "RANLIB=$${RANLIB}" \
9421 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9422 html) \
9423 || exit 1
9424
9425@endif gcc
9426
d5eec917
PB
9427.PHONY: maybe-TAGS-gcc TAGS-gcc
9428maybe-TAGS-gcc:
9429@if gcc
9430maybe-TAGS-gcc: TAGS-gcc
657b58f4 9431
d5eec917
PB
9432TAGS-gcc: \
9433 configure-gcc
9434 @[ -f ./gcc/Makefile ] || exit 0; \
5230d454
L
9435 r=`${PWD_COMMAND}`; export r; \
9436 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 9437 $(SET_LIB_PATH) \
a675b75a 9438 $(HOST_EXPORTS) \
d5eec917 9439 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
657b58f4
NN
9440 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9441 done; \
d5eec917 9442 echo "Doing TAGS in gcc" ; \
7fc2ca22 9443 (cd $(HOST_SUBDIR)/gcc && \
657b58f4
NN
9444 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9445 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9446 "RANLIB=$${RANLIB}" \
9447 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 9448 TAGS) \
657b58f4
NN
9449 || exit 1
9450
d5eec917 9451@endif gcc
657b58f4 9452
d5eec917
PB
9453.PHONY: maybe-install-info-gcc install-info-gcc
9454maybe-install-info-gcc:
9455@if gcc
9456maybe-install-info-gcc: install-info-gcc
d832a288 9457
d5eec917
PB
9458install-info-gcc: \
9459 configure-gcc \
9460 info-gcc
9461 @[ -f ./gcc/Makefile ] || exit 0; \
d832a288
DD
9462 r=`${PWD_COMMAND}`; export r; \
9463 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9464 $(SET_LIB_PATH) \
a675b75a 9465 $(HOST_EXPORTS) \
d5eec917 9466 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
d832a288
DD
9467 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9468 done; \
d5eec917 9469 echo "Doing install-info in gcc" ; \
7fc2ca22 9470 (cd $(HOST_SUBDIR)/gcc && \
d832a288
DD
9471 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9472 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9473 "RANLIB=$${RANLIB}" \
9474 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 9475 install-info) \
d832a288
DD
9476 || exit 1
9477
d5eec917 9478@endif gcc
d832a288 9479
d5eec917
PB
9480.PHONY: maybe-installcheck-gcc installcheck-gcc
9481maybe-installcheck-gcc:
9482@if gcc
9483maybe-installcheck-gcc: installcheck-gcc
657b58f4 9484
d5eec917
PB
9485installcheck-gcc: \
9486 configure-gcc
9487 @[ -f ./gcc/Makefile ] || exit 0; \
8ec98d6c
NN
9488 r=`${PWD_COMMAND}`; export r; \
9489 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9490 $(SET_LIB_PATH) \
a675b75a 9491 $(HOST_EXPORTS) \
d5eec917 9492 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
8ec98d6c
NN
9493 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9494 done; \
d5eec917 9495 echo "Doing installcheck in gcc" ; \
7fc2ca22 9496 (cd $(HOST_SUBDIR)/gcc && \
8ec98d6c
NN
9497 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9498 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9499 "RANLIB=$${RANLIB}" \
9500 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 9501 installcheck) \
8ec98d6c 9502 || exit 1
657b58f4 9503
d5eec917 9504@endif gcc
8ec98d6c 9505
d5eec917
PB
9506.PHONY: maybe-mostlyclean-gcc mostlyclean-gcc
9507maybe-mostlyclean-gcc:
9508@if gcc
9509maybe-mostlyclean-gcc: mostlyclean-gcc
8ec98d6c 9510
d5eec917
PB
9511mostlyclean-gcc:
9512 @[ -f ./gcc/Makefile ] || exit 0; \
5230d454
L
9513 r=`${PWD_COMMAND}`; export r; \
9514 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 9515 $(SET_LIB_PATH) \
a675b75a 9516 $(HOST_EXPORTS) \
d5eec917 9517 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
657b58f4
NN
9518 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9519 done; \
d5eec917 9520 echo "Doing mostlyclean in gcc" ; \
7fc2ca22 9521 (cd $(HOST_SUBDIR)/gcc && \
657b58f4
NN
9522 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9523 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9524 "RANLIB=$${RANLIB}" \
9525 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 9526 mostlyclean) \
657b58f4
NN
9527 || exit 1
9528
d5eec917 9529@endif gcc
657b58f4 9530
d5eec917
PB
9531.PHONY: maybe-clean-gcc clean-gcc
9532maybe-clean-gcc:
9533@if gcc
9534maybe-clean-gcc: clean-gcc
657b58f4 9535
d5eec917
PB
9536clean-gcc:
9537 @[ -f ./gcc/Makefile ] || exit 0; \
5230d454
L
9538 r=`${PWD_COMMAND}`; export r; \
9539 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 9540 $(SET_LIB_PATH) \
a675b75a 9541 $(HOST_EXPORTS) \
d5eec917 9542 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
657b58f4
NN
9543 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9544 done; \
d5eec917 9545 echo "Doing clean in gcc" ; \
7fc2ca22 9546 (cd $(HOST_SUBDIR)/gcc && \
657b58f4
NN
9547 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9548 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9549 "RANLIB=$${RANLIB}" \
9550 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 9551 clean) \
657b58f4
NN
9552 || exit 1
9553
d5eec917 9554@endif gcc
657b58f4 9555
d5eec917
PB
9556.PHONY: maybe-distclean-gcc distclean-gcc
9557maybe-distclean-gcc:
9558@if gcc
9559maybe-distclean-gcc: distclean-gcc
657b58f4 9560
d5eec917
PB
9561distclean-gcc:
9562 @[ -f ./gcc/Makefile ] || exit 0; \
5230d454
L
9563 r=`${PWD_COMMAND}`; export r; \
9564 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 9565 $(SET_LIB_PATH) \
a675b75a 9566 $(HOST_EXPORTS) \
d5eec917 9567 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
657b58f4
NN
9568 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9569 done; \
d5eec917 9570 echo "Doing distclean in gcc" ; \
7fc2ca22 9571 (cd $(HOST_SUBDIR)/gcc && \
657b58f4
NN
9572 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9573 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9574 "RANLIB=$${RANLIB}" \
9575 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 9576 distclean) \
657b58f4
NN
9577 || exit 1
9578
d5eec917 9579@endif gcc
657b58f4 9580
d5eec917
PB
9581.PHONY: maybe-maintainer-clean-gcc maintainer-clean-gcc
9582maybe-maintainer-clean-gcc:
9583@if gcc
9584maybe-maintainer-clean-gcc: maintainer-clean-gcc
657b58f4 9585
d5eec917
PB
9586maintainer-clean-gcc:
9587 @[ -f ./gcc/Makefile ] || exit 0; \
5230d454
L
9588 r=`${PWD_COMMAND}`; export r; \
9589 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 9590 $(SET_LIB_PATH) \
a675b75a 9591 $(HOST_EXPORTS) \
d5eec917 9592 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
657b58f4
NN
9593 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9594 done; \
d5eec917 9595 echo "Doing maintainer-clean in gcc" ; \
7fc2ca22 9596 (cd $(HOST_SUBDIR)/gcc && \
657b58f4
NN
9597 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9598 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9599 "RANLIB=$${RANLIB}" \
9600 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 9601 maintainer-clean) \
657b58f4
NN
9602 || exit 1
9603
d5eec917 9604@endif gcc
657b58f4 9605
657b58f4 9606
d5eec917
PB
9607.PHONY: configure-gawk maybe-configure-gawk
9608maybe-configure-gawk:
9609@if gawk
9610maybe-configure-gawk: configure-gawk
9611configure-gawk:
7fc2ca22
PB
9612 @test ! -f $(HOST_SUBDIR)/gawk/Makefile || exit 0; \
9613 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gawk ; \
8ec98d6c
NN
9614 r=`${PWD_COMMAND}`; export r; \
9615 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 9616 $(HOST_EXPORTS) \
d5eec917 9617 echo Configuring in gawk; \
7fc2ca22 9618 cd $(HOST_SUBDIR)/gawk || exit 1; \
8ec98d6c 9619 case $(srcdir) in \
7fc2ca22
PB
9620 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9621 *) topdir=`echo $(HOST_SUBDIR)/gawk/ | \
9622 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 9623 esac; \
7fc2ca22
PB
9624 srcdiroption="--srcdir=$${topdir}/gawk"; \
9625 libsrcdir="$$s/gawk"; \
8ec98d6c 9626 $(SHELL) $${libsrcdir}/configure \
63673a5b 9627 $(HOST_CONFIGARGS) $${srcdiroption} \
8ec98d6c 9628 || exit 1
d5eec917 9629@endif gawk
8ec98d6c 9630
d5eec917
PB
9631.PHONY: all-gawk maybe-all-gawk
9632maybe-all-gawk:
9633@if gawk
5e6b1f07 9634TARGET-gawk=all
d5eec917
PB
9635maybe-all-gawk: all-gawk
9636all-gawk: configure-gawk
8ec98d6c
NN
9637 @r=`${PWD_COMMAND}`; export r; \
9638 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9639 $(SET_LIB_PATH) \
a675b75a 9640 $(HOST_EXPORTS) \
7fc2ca22
PB
9641 (cd $(HOST_SUBDIR)/gawk && \
9642 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-gawk))
d5eec917 9643@endif gawk
8ec98d6c 9644
d5eec917
PB
9645.PHONY: check-gawk maybe-check-gawk
9646maybe-check-gawk:
9647@if gawk
9648maybe-check-gawk: check-gawk
8ec98d6c 9649
d5eec917 9650check-gawk:
8ec98d6c
NN
9651 @r=`${PWD_COMMAND}`; export r; \
9652 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9653 $(SET_LIB_PATH) \
a675b75a 9654 $(HOST_EXPORTS) \
7fc2ca22
PB
9655 (cd $(HOST_SUBDIR)/gawk && \
9656 $(MAKE) $(FLAGS_TO_PASS) check)
8ec98d6c 9657
d5eec917 9658@endif gawk
8ec98d6c 9659
d5eec917
PB
9660.PHONY: install-gawk maybe-install-gawk
9661maybe-install-gawk:
9662@if gawk
9663maybe-install-gawk: install-gawk
8ec98d6c 9664
d5eec917 9665install-gawk: installdirs
8ec98d6c
NN
9666 @r=`${PWD_COMMAND}`; export r; \
9667 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9668 $(SET_LIB_PATH) \
a675b75a 9669 $(HOST_EXPORTS) \
7fc2ca22 9670 (cd $(HOST_SUBDIR)/gawk && \
93c60b6d 9671 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 9672
d5eec917 9673@endif gawk
8ec98d6c
NN
9674
9675# Other targets (info, dvi, etc.)
9676
d5eec917
PB
9677.PHONY: maybe-info-gawk info-gawk
9678maybe-info-gawk:
9679@if gawk
9680maybe-info-gawk: info-gawk
8ec98d6c 9681
d5eec917
PB
9682info-gawk: \
9683 configure-gawk
9684 @[ -f ./gawk/Makefile ] || exit 0; \
5230d454
L
9685 r=`${PWD_COMMAND}`; export r; \
9686 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 9687 $(SET_LIB_PATH) \
a675b75a 9688 $(HOST_EXPORTS) \
d5eec917 9689 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
9690 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9691 done; \
d5eec917 9692 echo "Doing info in gawk" ; \
7fc2ca22 9693 (cd $(HOST_SUBDIR)/gawk && \
657b58f4
NN
9694 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9695 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9696 "RANLIB=$${RANLIB}" \
9697 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 9698 info) \
657b58f4
NN
9699 || exit 1
9700
d5eec917 9701@endif gawk
657b58f4 9702
d5eec917
PB
9703.PHONY: maybe-dvi-gawk dvi-gawk
9704maybe-dvi-gawk:
9705@if gawk
9706maybe-dvi-gawk: dvi-gawk
657b58f4 9707
d5eec917
PB
9708dvi-gawk: \
9709 configure-gawk
9710 @[ -f ./gawk/Makefile ] || exit 0; \
5230d454
L
9711 r=`${PWD_COMMAND}`; export r; \
9712 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 9713 $(SET_LIB_PATH) \
a675b75a 9714 $(HOST_EXPORTS) \
d5eec917 9715 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
9716 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9717 done; \
d5eec917 9718 echo "Doing dvi in gawk" ; \
7fc2ca22 9719 (cd $(HOST_SUBDIR)/gawk && \
657b58f4
NN
9720 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9721 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9722 "RANLIB=$${RANLIB}" \
9723 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 9724 dvi) \
657b58f4
NN
9725 || exit 1
9726
d5eec917 9727@endif gawk
657b58f4 9728
b6fb961f
MS
9729.PHONY: maybe-html-gawk html-gawk
9730maybe-html-gawk:
9731@if gawk
9732maybe-html-gawk: html-gawk
9733
9734html-gawk: \
9735 configure-gawk
9736 @[ -f ./gawk/Makefile ] || exit 0; \
9737 r=`${PWD_COMMAND}`; export r; \
9738 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9739 $(SET_LIB_PATH) \
9740 $(HOST_EXPORTS) \
9741 for flag in $(EXTRA_HOST_FLAGS) ; do \
9742 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9743 done; \
9744 echo "Doing html in gawk" ; \
7fc2ca22 9745 (cd $(HOST_SUBDIR)/gawk && \
b6fb961f
MS
9746 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9747 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9748 "RANLIB=$${RANLIB}" \
9749 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9750 html) \
9751 || exit 1
9752
9753@endif gawk
9754
d5eec917
PB
9755.PHONY: maybe-TAGS-gawk TAGS-gawk
9756maybe-TAGS-gawk:
9757@if gawk
9758maybe-TAGS-gawk: TAGS-gawk
657b58f4 9759
d5eec917
PB
9760TAGS-gawk: \
9761 configure-gawk
9762 @[ -f ./gawk/Makefile ] || exit 0; \
5230d454
L
9763 r=`${PWD_COMMAND}`; export r; \
9764 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 9765 $(SET_LIB_PATH) \
a675b75a 9766 $(HOST_EXPORTS) \
d5eec917 9767 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
9768 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9769 done; \
d5eec917 9770 echo "Doing TAGS in gawk" ; \
7fc2ca22 9771 (cd $(HOST_SUBDIR)/gawk && \
657b58f4
NN
9772 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9773 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9774 "RANLIB=$${RANLIB}" \
9775 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 9776 TAGS) \
657b58f4
NN
9777 || exit 1
9778
d5eec917 9779@endif gawk
657b58f4 9780
d5eec917
PB
9781.PHONY: maybe-install-info-gawk install-info-gawk
9782maybe-install-info-gawk:
9783@if gawk
9784maybe-install-info-gawk: install-info-gawk
657b58f4 9785
d5eec917
PB
9786install-info-gawk: \
9787 configure-gawk \
9788 info-gawk
9789 @[ -f ./gawk/Makefile ] || exit 0; \
5230d454
L
9790 r=`${PWD_COMMAND}`; export r; \
9791 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 9792 $(SET_LIB_PATH) \
a675b75a 9793 $(HOST_EXPORTS) \
d5eec917 9794 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
9795 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9796 done; \
d5eec917 9797 echo "Doing install-info in gawk" ; \
7fc2ca22 9798 (cd $(HOST_SUBDIR)/gawk && \
657b58f4
NN
9799 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9800 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9801 "RANLIB=$${RANLIB}" \
9802 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 9803 install-info) \
657b58f4
NN
9804 || exit 1
9805
d5eec917 9806@endif gawk
657b58f4 9807
d5eec917
PB
9808.PHONY: maybe-installcheck-gawk installcheck-gawk
9809maybe-installcheck-gawk:
9810@if gawk
9811maybe-installcheck-gawk: installcheck-gawk
657b58f4 9812
d5eec917
PB
9813installcheck-gawk: \
9814 configure-gawk
9815 @[ -f ./gawk/Makefile ] || exit 0; \
5230d454
L
9816 r=`${PWD_COMMAND}`; export r; \
9817 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 9818 $(SET_LIB_PATH) \
a675b75a 9819 $(HOST_EXPORTS) \
d5eec917 9820 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
9821 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9822 done; \
d5eec917 9823 echo "Doing installcheck in gawk" ; \
7fc2ca22 9824 (cd $(HOST_SUBDIR)/gawk && \
657b58f4
NN
9825 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9826 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9827 "RANLIB=$${RANLIB}" \
9828 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 9829 installcheck) \
657b58f4
NN
9830 || exit 1
9831
d5eec917 9832@endif gawk
657b58f4 9833
d5eec917
PB
9834.PHONY: maybe-mostlyclean-gawk mostlyclean-gawk
9835maybe-mostlyclean-gawk:
9836@if gawk
9837maybe-mostlyclean-gawk: mostlyclean-gawk
657b58f4 9838
d5eec917
PB
9839mostlyclean-gawk:
9840 @[ -f ./gawk/Makefile ] || exit 0; \
5230d454
L
9841 r=`${PWD_COMMAND}`; export r; \
9842 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 9843 $(SET_LIB_PATH) \
a675b75a 9844 $(HOST_EXPORTS) \
d5eec917 9845 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
9846 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9847 done; \
d5eec917 9848 echo "Doing mostlyclean in gawk" ; \
7fc2ca22 9849 (cd $(HOST_SUBDIR)/gawk && \
657b58f4
NN
9850 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9851 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9852 "RANLIB=$${RANLIB}" \
9853 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 9854 mostlyclean) \
657b58f4
NN
9855 || exit 1
9856
d5eec917 9857@endif gawk
657b58f4 9858
d5eec917
PB
9859.PHONY: maybe-clean-gawk clean-gawk
9860maybe-clean-gawk:
9861@if gawk
9862maybe-clean-gawk: clean-gawk
657b58f4 9863
d5eec917
PB
9864clean-gawk:
9865 @[ -f ./gawk/Makefile ] || exit 0; \
5230d454
L
9866 r=`${PWD_COMMAND}`; export r; \
9867 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 9868 $(SET_LIB_PATH) \
a675b75a 9869 $(HOST_EXPORTS) \
d5eec917 9870 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
9871 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9872 done; \
d5eec917 9873 echo "Doing clean in gawk" ; \
7fc2ca22 9874 (cd $(HOST_SUBDIR)/gawk && \
657b58f4
NN
9875 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9876 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9877 "RANLIB=$${RANLIB}" \
9878 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 9879 clean) \
657b58f4
NN
9880 || exit 1
9881
d5eec917 9882@endif gawk
657b58f4 9883
d5eec917
PB
9884.PHONY: maybe-distclean-gawk distclean-gawk
9885maybe-distclean-gawk:
9886@if gawk
9887maybe-distclean-gawk: distclean-gawk
657b58f4 9888
d5eec917
PB
9889distclean-gawk:
9890 @[ -f ./gawk/Makefile ] || exit 0; \
5230d454
L
9891 r=`${PWD_COMMAND}`; export r; \
9892 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 9893 $(SET_LIB_PATH) \
a675b75a 9894 $(HOST_EXPORTS) \
d5eec917 9895 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
9896 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9897 done; \
d5eec917 9898 echo "Doing distclean in gawk" ; \
7fc2ca22 9899 (cd $(HOST_SUBDIR)/gawk && \
657b58f4
NN
9900 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9901 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9902 "RANLIB=$${RANLIB}" \
9903 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 9904 distclean) \
657b58f4
NN
9905 || exit 1
9906
d5eec917 9907@endif gawk
657b58f4 9908
d5eec917
PB
9909.PHONY: maybe-maintainer-clean-gawk maintainer-clean-gawk
9910maybe-maintainer-clean-gawk:
9911@if gawk
9912maybe-maintainer-clean-gawk: maintainer-clean-gawk
657b58f4 9913
d5eec917
PB
9914maintainer-clean-gawk:
9915 @[ -f ./gawk/Makefile ] || exit 0; \
5230d454
L
9916 r=`${PWD_COMMAND}`; export r; \
9917 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 9918 $(SET_LIB_PATH) \
a675b75a 9919 $(HOST_EXPORTS) \
d5eec917 9920 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
9921 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9922 done; \
d5eec917 9923 echo "Doing maintainer-clean in gawk" ; \
7fc2ca22 9924 (cd $(HOST_SUBDIR)/gawk && \
657b58f4
NN
9925 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9926 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9927 "RANLIB=$${RANLIB}" \
9928 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 9929 maintainer-clean) \
657b58f4
NN
9930 || exit 1
9931
d5eec917 9932@endif gawk
657b58f4 9933
657b58f4 9934
d5eec917
PB
9935.PHONY: configure-gettext maybe-configure-gettext
9936maybe-configure-gettext:
9937@if gettext
9938maybe-configure-gettext: configure-gettext
9939configure-gettext:
7fc2ca22
PB
9940 @test ! -f $(HOST_SUBDIR)/gettext/Makefile || exit 0; \
9941 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gettext ; \
8ec98d6c
NN
9942 r=`${PWD_COMMAND}`; export r; \
9943 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 9944 $(HOST_EXPORTS) \
d5eec917 9945 echo Configuring in gettext; \
7fc2ca22 9946 cd $(HOST_SUBDIR)/gettext || exit 1; \
8ec98d6c 9947 case $(srcdir) in \
7fc2ca22
PB
9948 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9949 *) topdir=`echo $(HOST_SUBDIR)/gettext/ | \
9950 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 9951 esac; \
7fc2ca22
PB
9952 srcdiroption="--srcdir=$${topdir}/gettext"; \
9953 libsrcdir="$$s/gettext"; \
8ec98d6c 9954 $(SHELL) $${libsrcdir}/configure \
63673a5b 9955 $(HOST_CONFIGARGS) $${srcdiroption} \
8ec98d6c 9956 || exit 1
d5eec917 9957@endif gettext
8ec98d6c 9958
d5eec917
PB
9959.PHONY: all-gettext maybe-all-gettext
9960maybe-all-gettext:
9961@if gettext
5e6b1f07 9962TARGET-gettext=all
d5eec917
PB
9963maybe-all-gettext: all-gettext
9964all-gettext: configure-gettext
8ec98d6c
NN
9965 @r=`${PWD_COMMAND}`; export r; \
9966 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9967 $(SET_LIB_PATH) \
a675b75a 9968 $(HOST_EXPORTS) \
7fc2ca22
PB
9969 (cd $(HOST_SUBDIR)/gettext && \
9970 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-gettext))
d5eec917 9971@endif gettext
8ec98d6c 9972
d5eec917
PB
9973.PHONY: check-gettext maybe-check-gettext
9974maybe-check-gettext:
9975@if gettext
9976maybe-check-gettext: check-gettext
8ec98d6c 9977
d5eec917 9978check-gettext:
8ec98d6c
NN
9979 @r=`${PWD_COMMAND}`; export r; \
9980 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9981 $(SET_LIB_PATH) \
a675b75a 9982 $(HOST_EXPORTS) \
7fc2ca22
PB
9983 (cd $(HOST_SUBDIR)/gettext && \
9984 $(MAKE) $(FLAGS_TO_PASS) check)
8ec98d6c 9985
d5eec917 9986@endif gettext
8ec98d6c 9987
d5eec917
PB
9988.PHONY: install-gettext maybe-install-gettext
9989maybe-install-gettext:
9990@if gettext
9991maybe-install-gettext: install-gettext
8ec98d6c 9992
d5eec917 9993install-gettext: installdirs
8ec98d6c
NN
9994 @r=`${PWD_COMMAND}`; export r; \
9995 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9996 $(SET_LIB_PATH) \
a675b75a 9997 $(HOST_EXPORTS) \
7fc2ca22 9998 (cd $(HOST_SUBDIR)/gettext && \
93c60b6d 9999 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 10000
d5eec917 10001@endif gettext
8ec98d6c
NN
10002
10003# Other targets (info, dvi, etc.)
10004
d5eec917
PB
10005.PHONY: maybe-info-gettext info-gettext
10006maybe-info-gettext:
10007@if gettext
10008maybe-info-gettext: info-gettext
8ec98d6c 10009
d5eec917
PB
10010info-gettext: \
10011 configure-gettext
10012 @[ -f ./gettext/Makefile ] || exit 0; \
5230d454
L
10013 r=`${PWD_COMMAND}`; export r; \
10014 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 10015 $(SET_LIB_PATH) \
a675b75a 10016 $(HOST_EXPORTS) \
d5eec917 10017 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10018 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10019 done; \
d5eec917 10020 echo "Doing info in gettext" ; \
7fc2ca22 10021 (cd $(HOST_SUBDIR)/gettext && \
657b58f4
NN
10022 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10023 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10024 "RANLIB=$${RANLIB}" \
10025 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 10026 info) \
657b58f4
NN
10027 || exit 1
10028
d5eec917 10029@endif gettext
657b58f4 10030
d5eec917
PB
10031.PHONY: maybe-dvi-gettext dvi-gettext
10032maybe-dvi-gettext:
10033@if gettext
10034maybe-dvi-gettext: dvi-gettext
657b58f4 10035
d5eec917
PB
10036dvi-gettext: \
10037 configure-gettext
10038 @[ -f ./gettext/Makefile ] || exit 0; \
5230d454
L
10039 r=`${PWD_COMMAND}`; export r; \
10040 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 10041 $(SET_LIB_PATH) \
a675b75a 10042 $(HOST_EXPORTS) \
d5eec917 10043 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10044 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10045 done; \
d5eec917 10046 echo "Doing dvi in gettext" ; \
7fc2ca22 10047 (cd $(HOST_SUBDIR)/gettext && \
657b58f4
NN
10048 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10049 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10050 "RANLIB=$${RANLIB}" \
10051 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 10052 dvi) \
657b58f4
NN
10053 || exit 1
10054
d5eec917 10055@endif gettext
657b58f4 10056
b6fb961f
MS
10057.PHONY: maybe-html-gettext html-gettext
10058maybe-html-gettext:
10059@if gettext
10060maybe-html-gettext: html-gettext
10061
10062html-gettext: \
10063 configure-gettext
10064 @[ -f ./gettext/Makefile ] || exit 0; \
10065 r=`${PWD_COMMAND}`; export r; \
10066 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10067 $(SET_LIB_PATH) \
10068 $(HOST_EXPORTS) \
10069 for flag in $(EXTRA_HOST_FLAGS) ; do \
10070 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10071 done; \
10072 echo "Doing html in gettext" ; \
7fc2ca22 10073 (cd $(HOST_SUBDIR)/gettext && \
b6fb961f
MS
10074 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10075 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10076 "RANLIB=$${RANLIB}" \
10077 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10078 html) \
10079 || exit 1
10080
10081@endif gettext
10082
d5eec917
PB
10083.PHONY: maybe-TAGS-gettext TAGS-gettext
10084maybe-TAGS-gettext:
10085@if gettext
10086maybe-TAGS-gettext: TAGS-gettext
657b58f4 10087
d5eec917
PB
10088TAGS-gettext: \
10089 configure-gettext
10090 @[ -f ./gettext/Makefile ] || exit 0; \
5230d454
L
10091 r=`${PWD_COMMAND}`; export r; \
10092 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 10093 $(SET_LIB_PATH) \
a675b75a 10094 $(HOST_EXPORTS) \
d5eec917 10095 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10096 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10097 done; \
d5eec917 10098 echo "Doing TAGS in gettext" ; \
7fc2ca22 10099 (cd $(HOST_SUBDIR)/gettext && \
657b58f4
NN
10100 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10101 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10102 "RANLIB=$${RANLIB}" \
10103 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 10104 TAGS) \
657b58f4
NN
10105 || exit 1
10106
d5eec917 10107@endif gettext
657b58f4 10108
d5eec917
PB
10109.PHONY: maybe-install-info-gettext install-info-gettext
10110maybe-install-info-gettext:
10111@if gettext
10112maybe-install-info-gettext: install-info-gettext
10113
10114install-info-gettext: \
10115 configure-gettext \
10116 info-gettext
10117 @[ -f ./gettext/Makefile ] || exit 0; \
5230d454
L
10118 r=`${PWD_COMMAND}`; export r; \
10119 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 10120 $(SET_LIB_PATH) \
a675b75a 10121 $(HOST_EXPORTS) \
d5eec917 10122 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10123 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10124 done; \
d5eec917 10125 echo "Doing install-info in gettext" ; \
7fc2ca22 10126 (cd $(HOST_SUBDIR)/gettext && \
657b58f4
NN
10127 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10128 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10129 "RANLIB=$${RANLIB}" \
10130 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 10131 install-info) \
657b58f4
NN
10132 || exit 1
10133
d5eec917 10134@endif gettext
657b58f4 10135
d5eec917
PB
10136.PHONY: maybe-installcheck-gettext installcheck-gettext
10137maybe-installcheck-gettext:
10138@if gettext
10139maybe-installcheck-gettext: installcheck-gettext
657b58f4 10140
d5eec917
PB
10141installcheck-gettext: \
10142 configure-gettext
10143 @[ -f ./gettext/Makefile ] || exit 0; \
5230d454
L
10144 r=`${PWD_COMMAND}`; export r; \
10145 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 10146 $(SET_LIB_PATH) \
a675b75a 10147 $(HOST_EXPORTS) \
d5eec917 10148 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10149 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10150 done; \
d5eec917 10151 echo "Doing installcheck in gettext" ; \
7fc2ca22 10152 (cd $(HOST_SUBDIR)/gettext && \
657b58f4
NN
10153 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10154 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10155 "RANLIB=$${RANLIB}" \
10156 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 10157 installcheck) \
657b58f4
NN
10158 || exit 1
10159
d5eec917 10160@endif gettext
657b58f4 10161
d5eec917
PB
10162.PHONY: maybe-mostlyclean-gettext mostlyclean-gettext
10163maybe-mostlyclean-gettext:
10164@if gettext
10165maybe-mostlyclean-gettext: mostlyclean-gettext
657b58f4 10166
d5eec917
PB
10167mostlyclean-gettext:
10168 @[ -f ./gettext/Makefile ] || exit 0; \
5230d454
L
10169 r=`${PWD_COMMAND}`; export r; \
10170 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 10171 $(SET_LIB_PATH) \
a675b75a 10172 $(HOST_EXPORTS) \
d5eec917 10173 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10174 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10175 done; \
d5eec917 10176 echo "Doing mostlyclean in gettext" ; \
7fc2ca22 10177 (cd $(HOST_SUBDIR)/gettext && \
657b58f4
NN
10178 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10179 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10180 "RANLIB=$${RANLIB}" \
10181 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 10182 mostlyclean) \
657b58f4
NN
10183 || exit 1
10184
d5eec917 10185@endif gettext
657b58f4 10186
d5eec917
PB
10187.PHONY: maybe-clean-gettext clean-gettext
10188maybe-clean-gettext:
10189@if gettext
10190maybe-clean-gettext: clean-gettext
657b58f4 10191
d5eec917
PB
10192clean-gettext:
10193 @[ -f ./gettext/Makefile ] || exit 0; \
5230d454
L
10194 r=`${PWD_COMMAND}`; export r; \
10195 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 10196 $(SET_LIB_PATH) \
a675b75a 10197 $(HOST_EXPORTS) \
d5eec917 10198 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10199 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10200 done; \
d5eec917 10201 echo "Doing clean in gettext" ; \
7fc2ca22 10202 (cd $(HOST_SUBDIR)/gettext && \
657b58f4
NN
10203 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10204 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10205 "RANLIB=$${RANLIB}" \
10206 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 10207 clean) \
657b58f4
NN
10208 || exit 1
10209
d5eec917 10210@endif gettext
657b58f4 10211
d5eec917
PB
10212.PHONY: maybe-distclean-gettext distclean-gettext
10213maybe-distclean-gettext:
10214@if gettext
10215maybe-distclean-gettext: distclean-gettext
657b58f4 10216
d5eec917
PB
10217distclean-gettext:
10218 @[ -f ./gettext/Makefile ] || exit 0; \
5230d454
L
10219 r=`${PWD_COMMAND}`; export r; \
10220 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 10221 $(SET_LIB_PATH) \
a675b75a 10222 $(HOST_EXPORTS) \
d5eec917 10223 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10224 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10225 done; \
d5eec917 10226 echo "Doing distclean in gettext" ; \
7fc2ca22 10227 (cd $(HOST_SUBDIR)/gettext && \
657b58f4
NN
10228 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10229 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10230 "RANLIB=$${RANLIB}" \
10231 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 10232 distclean) \
657b58f4
NN
10233 || exit 1
10234
d5eec917 10235@endif gettext
657b58f4 10236
d5eec917
PB
10237.PHONY: maybe-maintainer-clean-gettext maintainer-clean-gettext
10238maybe-maintainer-clean-gettext:
10239@if gettext
10240maybe-maintainer-clean-gettext: maintainer-clean-gettext
657b58f4 10241
d5eec917
PB
10242maintainer-clean-gettext:
10243 @[ -f ./gettext/Makefile ] || exit 0; \
5230d454
L
10244 r=`${PWD_COMMAND}`; export r; \
10245 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 10246 $(SET_LIB_PATH) \
a675b75a 10247 $(HOST_EXPORTS) \
d5eec917 10248 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10249 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10250 done; \
d5eec917 10251 echo "Doing maintainer-clean in gettext" ; \
7fc2ca22 10252 (cd $(HOST_SUBDIR)/gettext && \
657b58f4
NN
10253 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10254 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10255 "RANLIB=$${RANLIB}" \
10256 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 10257 maintainer-clean) \
8ec98d6c
NN
10258 || exit 1
10259
d5eec917 10260@endif gettext
8ec98d6c
NN
10261
10262
d5eec917
PB
10263.PHONY: configure-gnuserv maybe-configure-gnuserv
10264maybe-configure-gnuserv:
10265@if gnuserv
10266maybe-configure-gnuserv: configure-gnuserv
10267configure-gnuserv:
7fc2ca22
PB
10268 @test ! -f $(HOST_SUBDIR)/gnuserv/Makefile || exit 0; \
10269 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gnuserv ; \
8ec98d6c
NN
10270 r=`${PWD_COMMAND}`; export r; \
10271 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 10272 $(HOST_EXPORTS) \
d5eec917 10273 echo Configuring in gnuserv; \
7fc2ca22 10274 cd $(HOST_SUBDIR)/gnuserv || exit 1; \
8ec98d6c 10275 case $(srcdir) in \
7fc2ca22
PB
10276 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10277 *) topdir=`echo $(HOST_SUBDIR)/gnuserv/ | \
10278 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 10279 esac; \
7fc2ca22
PB
10280 srcdiroption="--srcdir=$${topdir}/gnuserv"; \
10281 libsrcdir="$$s/gnuserv"; \
8ec98d6c 10282 $(SHELL) $${libsrcdir}/configure \
63673a5b 10283 $(HOST_CONFIGARGS) $${srcdiroption} \
657b58f4 10284 || exit 1
d5eec917 10285@endif gnuserv
657b58f4 10286
d5eec917
PB
10287.PHONY: all-gnuserv maybe-all-gnuserv
10288maybe-all-gnuserv:
10289@if gnuserv
5e6b1f07 10290TARGET-gnuserv=all
d5eec917
PB
10291maybe-all-gnuserv: all-gnuserv
10292all-gnuserv: configure-gnuserv
8ec98d6c
NN
10293 @r=`${PWD_COMMAND}`; export r; \
10294 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10295 $(SET_LIB_PATH) \
a675b75a 10296 $(HOST_EXPORTS) \
7fc2ca22
PB
10297 (cd $(HOST_SUBDIR)/gnuserv && \
10298 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-gnuserv))
d5eec917 10299@endif gnuserv
657b58f4 10300
d5eec917
PB
10301.PHONY: check-gnuserv maybe-check-gnuserv
10302maybe-check-gnuserv:
10303@if gnuserv
10304maybe-check-gnuserv: check-gnuserv
657b58f4 10305
d5eec917 10306check-gnuserv:
8ec98d6c 10307 @r=`${PWD_COMMAND}`; export r; \
5230d454 10308 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 10309 $(SET_LIB_PATH) \
a675b75a 10310 $(HOST_EXPORTS) \
7fc2ca22
PB
10311 (cd $(HOST_SUBDIR)/gnuserv && \
10312 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 10313
d5eec917 10314@endif gnuserv
657b58f4 10315
d5eec917
PB
10316.PHONY: install-gnuserv maybe-install-gnuserv
10317maybe-install-gnuserv:
10318@if gnuserv
10319maybe-install-gnuserv: install-gnuserv
657b58f4 10320
d5eec917 10321install-gnuserv: installdirs
8ec98d6c 10322 @r=`${PWD_COMMAND}`; export r; \
5230d454 10323 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 10324 $(SET_LIB_PATH) \
a675b75a 10325 $(HOST_EXPORTS) \
7fc2ca22 10326 (cd $(HOST_SUBDIR)/gnuserv && \
93c60b6d 10327 $(MAKE) $(FLAGS_TO_PASS) install)
657b58f4 10328
d5eec917 10329@endif gnuserv
657b58f4 10330
8ec98d6c 10331# Other targets (info, dvi, etc.)
657b58f4 10332
d5eec917
PB
10333.PHONY: maybe-info-gnuserv info-gnuserv
10334maybe-info-gnuserv:
10335@if gnuserv
10336maybe-info-gnuserv: info-gnuserv
8ec98d6c 10337
d5eec917
PB
10338info-gnuserv: \
10339 configure-gnuserv
10340 @[ -f ./gnuserv/Makefile ] || exit 0; \
5230d454
L
10341 r=`${PWD_COMMAND}`; export r; \
10342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 10343 $(SET_LIB_PATH) \
a675b75a 10344 $(HOST_EXPORTS) \
d5eec917 10345 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10346 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10347 done; \
d5eec917 10348 echo "Doing info in gnuserv" ; \
7fc2ca22 10349 (cd $(HOST_SUBDIR)/gnuserv && \
657b58f4
NN
10350 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10351 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10352 "RANLIB=$${RANLIB}" \
10353 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 10354 info) \
657b58f4
NN
10355 || exit 1
10356
d5eec917 10357@endif gnuserv
657b58f4 10358
d5eec917
PB
10359.PHONY: maybe-dvi-gnuserv dvi-gnuserv
10360maybe-dvi-gnuserv:
10361@if gnuserv
10362maybe-dvi-gnuserv: dvi-gnuserv
657b58f4 10363
d5eec917
PB
10364dvi-gnuserv: \
10365 configure-gnuserv
10366 @[ -f ./gnuserv/Makefile ] || exit 0; \
5230d454
L
10367 r=`${PWD_COMMAND}`; export r; \
10368 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 10369 $(SET_LIB_PATH) \
a675b75a 10370 $(HOST_EXPORTS) \
d5eec917 10371 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10372 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10373 done; \
d5eec917 10374 echo "Doing dvi in gnuserv" ; \
7fc2ca22 10375 (cd $(HOST_SUBDIR)/gnuserv && \
657b58f4
NN
10376 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10377 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10378 "RANLIB=$${RANLIB}" \
10379 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 10380 dvi) \
657b58f4
NN
10381 || exit 1
10382
d5eec917 10383@endif gnuserv
657b58f4 10384
b6fb961f
MS
10385.PHONY: maybe-html-gnuserv html-gnuserv
10386maybe-html-gnuserv:
10387@if gnuserv
10388maybe-html-gnuserv: html-gnuserv
10389
10390html-gnuserv: \
10391 configure-gnuserv
10392 @[ -f ./gnuserv/Makefile ] || exit 0; \
10393 r=`${PWD_COMMAND}`; export r; \
10394 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10395 $(SET_LIB_PATH) \
10396 $(HOST_EXPORTS) \
10397 for flag in $(EXTRA_HOST_FLAGS) ; do \
10398 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10399 done; \
10400 echo "Doing html in gnuserv" ; \
7fc2ca22 10401 (cd $(HOST_SUBDIR)/gnuserv && \
b6fb961f
MS
10402 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10403 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10404 "RANLIB=$${RANLIB}" \
10405 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10406 html) \
10407 || exit 1
10408
10409@endif gnuserv
10410
d5eec917
PB
10411.PHONY: maybe-TAGS-gnuserv TAGS-gnuserv
10412maybe-TAGS-gnuserv:
10413@if gnuserv
10414maybe-TAGS-gnuserv: TAGS-gnuserv
657b58f4 10415
d5eec917
PB
10416TAGS-gnuserv: \
10417 configure-gnuserv
10418 @[ -f ./gnuserv/Makefile ] || exit 0; \
5230d454
L
10419 r=`${PWD_COMMAND}`; export r; \
10420 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 10421 $(SET_LIB_PATH) \
a675b75a 10422 $(HOST_EXPORTS) \
d5eec917 10423 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10424 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10425 done; \
d5eec917 10426 echo "Doing TAGS in gnuserv" ; \
7fc2ca22 10427 (cd $(HOST_SUBDIR)/gnuserv && \
657b58f4
NN
10428 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10429 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10430 "RANLIB=$${RANLIB}" \
10431 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 10432 TAGS) \
657b58f4
NN
10433 || exit 1
10434
d5eec917 10435@endif gnuserv
657b58f4 10436
d5eec917
PB
10437.PHONY: maybe-install-info-gnuserv install-info-gnuserv
10438maybe-install-info-gnuserv:
10439@if gnuserv
10440maybe-install-info-gnuserv: install-info-gnuserv
657b58f4 10441
d5eec917
PB
10442install-info-gnuserv: \
10443 configure-gnuserv \
10444 info-gnuserv
10445 @[ -f ./gnuserv/Makefile ] || exit 0; \
5230d454
L
10446 r=`${PWD_COMMAND}`; export r; \
10447 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 10448 $(SET_LIB_PATH) \
a675b75a 10449 $(HOST_EXPORTS) \
d5eec917 10450 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10451 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10452 done; \
d5eec917 10453 echo "Doing install-info in gnuserv" ; \
7fc2ca22 10454 (cd $(HOST_SUBDIR)/gnuserv && \
657b58f4
NN
10455 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10456 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10457 "RANLIB=$${RANLIB}" \
10458 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 10459 install-info) \
657b58f4
NN
10460 || exit 1
10461
d5eec917 10462@endif gnuserv
657b58f4 10463
d5eec917
PB
10464.PHONY: maybe-installcheck-gnuserv installcheck-gnuserv
10465maybe-installcheck-gnuserv:
10466@if gnuserv
10467maybe-installcheck-gnuserv: installcheck-gnuserv
657b58f4 10468
d5eec917
PB
10469installcheck-gnuserv: \
10470 configure-gnuserv
10471 @[ -f ./gnuserv/Makefile ] || exit 0; \
5230d454
L
10472 r=`${PWD_COMMAND}`; export r; \
10473 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 10474 $(SET_LIB_PATH) \
a675b75a 10475 $(HOST_EXPORTS) \
d5eec917 10476 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10477 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10478 done; \
d5eec917 10479 echo "Doing installcheck in gnuserv" ; \
7fc2ca22 10480 (cd $(HOST_SUBDIR)/gnuserv && \
657b58f4
NN
10481 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10482 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10483 "RANLIB=$${RANLIB}" \
10484 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 10485 installcheck) \
657b58f4
NN
10486 || exit 1
10487
d5eec917 10488@endif gnuserv
657b58f4 10489
d5eec917
PB
10490.PHONY: maybe-mostlyclean-gnuserv mostlyclean-gnuserv
10491maybe-mostlyclean-gnuserv:
10492@if gnuserv
10493maybe-mostlyclean-gnuserv: mostlyclean-gnuserv
657b58f4 10494
d5eec917
PB
10495mostlyclean-gnuserv:
10496 @[ -f ./gnuserv/Makefile ] || exit 0; \
5230d454
L
10497 r=`${PWD_COMMAND}`; export r; \
10498 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 10499 $(SET_LIB_PATH) \
a675b75a 10500 $(HOST_EXPORTS) \
d5eec917 10501 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10502 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10503 done; \
d5eec917 10504 echo "Doing mostlyclean in gnuserv" ; \
7fc2ca22 10505 (cd $(HOST_SUBDIR)/gnuserv && \
657b58f4
NN
10506 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10507 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10508 "RANLIB=$${RANLIB}" \
10509 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 10510 mostlyclean) \
657b58f4
NN
10511 || exit 1
10512
d5eec917 10513@endif gnuserv
657b58f4 10514
d5eec917
PB
10515.PHONY: maybe-clean-gnuserv clean-gnuserv
10516maybe-clean-gnuserv:
10517@if gnuserv
10518maybe-clean-gnuserv: clean-gnuserv
657b58f4 10519
d5eec917
PB
10520clean-gnuserv:
10521 @[ -f ./gnuserv/Makefile ] || exit 0; \
5230d454
L
10522 r=`${PWD_COMMAND}`; export r; \
10523 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 10524 $(SET_LIB_PATH) \
a675b75a 10525 $(HOST_EXPORTS) \
d5eec917 10526 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10527 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10528 done; \
d5eec917 10529 echo "Doing clean in gnuserv" ; \
7fc2ca22 10530 (cd $(HOST_SUBDIR)/gnuserv && \
657b58f4
NN
10531 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10532 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10533 "RANLIB=$${RANLIB}" \
10534 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 10535 clean) \
657b58f4
NN
10536 || exit 1
10537
d5eec917 10538@endif gnuserv
657b58f4 10539
d5eec917
PB
10540.PHONY: maybe-distclean-gnuserv distclean-gnuserv
10541maybe-distclean-gnuserv:
10542@if gnuserv
10543maybe-distclean-gnuserv: distclean-gnuserv
657b58f4 10544
d5eec917
PB
10545distclean-gnuserv:
10546 @[ -f ./gnuserv/Makefile ] || exit 0; \
5230d454
L
10547 r=`${PWD_COMMAND}`; export r; \
10548 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 10549 $(SET_LIB_PATH) \
a675b75a 10550 $(HOST_EXPORTS) \
d5eec917 10551 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10552 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10553 done; \
d5eec917 10554 echo "Doing distclean in gnuserv" ; \
7fc2ca22 10555 (cd $(HOST_SUBDIR)/gnuserv && \
657b58f4
NN
10556 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10557 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10558 "RANLIB=$${RANLIB}" \
10559 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 10560 distclean) \
657b58f4
NN
10561 || exit 1
10562
d5eec917 10563@endif gnuserv
657b58f4 10564
d5eec917
PB
10565.PHONY: maybe-maintainer-clean-gnuserv maintainer-clean-gnuserv
10566maybe-maintainer-clean-gnuserv:
10567@if gnuserv
10568maybe-maintainer-clean-gnuserv: maintainer-clean-gnuserv
657b58f4 10569
d5eec917
PB
10570maintainer-clean-gnuserv:
10571 @[ -f ./gnuserv/Makefile ] || exit 0; \
5230d454
L
10572 r=`${PWD_COMMAND}`; export r; \
10573 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 10574 $(SET_LIB_PATH) \
a675b75a 10575 $(HOST_EXPORTS) \
d5eec917 10576 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10577 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10578 done; \
d5eec917 10579 echo "Doing maintainer-clean in gnuserv" ; \
7fc2ca22 10580 (cd $(HOST_SUBDIR)/gnuserv && \
657b58f4
NN
10581 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10582 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10583 "RANLIB=$${RANLIB}" \
10584 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 10585 maintainer-clean) \
657b58f4
NN
10586 || exit 1
10587
d5eec917 10588@endif gnuserv
657b58f4 10589
657b58f4 10590
d5eec917
PB
10591.PHONY: configure-gprof maybe-configure-gprof
10592maybe-configure-gprof:
10593@if gprof
10594maybe-configure-gprof: configure-gprof
10595configure-gprof:
7fc2ca22
PB
10596 @test ! -f $(HOST_SUBDIR)/gprof/Makefile || exit 0; \
10597 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gprof ; \
5230d454
L
10598 r=`${PWD_COMMAND}`; export r; \
10599 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 10600 $(HOST_EXPORTS) \
d5eec917 10601 echo Configuring in gprof; \
7fc2ca22 10602 cd $(HOST_SUBDIR)/gprof || exit 1; \
8ec98d6c 10603 case $(srcdir) in \
7fc2ca22
PB
10604 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10605 *) topdir=`echo $(HOST_SUBDIR)/gprof/ | \
10606 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 10607 esac; \
7fc2ca22
PB
10608 srcdiroption="--srcdir=$${topdir}/gprof"; \
10609 libsrcdir="$$s/gprof"; \
8ec98d6c 10610 $(SHELL) $${libsrcdir}/configure \
63673a5b 10611 $(HOST_CONFIGARGS) $${srcdiroption} \
657b58f4 10612 || exit 1
d5eec917 10613@endif gprof
657b58f4 10614
d5eec917
PB
10615.PHONY: all-gprof maybe-all-gprof
10616maybe-all-gprof:
10617@if gprof
5e6b1f07 10618TARGET-gprof=all
d5eec917
PB
10619maybe-all-gprof: all-gprof
10620all-gprof: configure-gprof
8ec98d6c
NN
10621 @r=`${PWD_COMMAND}`; export r; \
10622 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10623 $(SET_LIB_PATH) \
a675b75a 10624 $(HOST_EXPORTS) \
7fc2ca22
PB
10625 (cd $(HOST_SUBDIR)/gprof && \
10626 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-gprof))
d5eec917 10627@endif gprof
657b58f4 10628
d5eec917
PB
10629.PHONY: check-gprof maybe-check-gprof
10630maybe-check-gprof:
10631@if gprof
10632maybe-check-gprof: check-gprof
657b58f4 10633
d5eec917 10634check-gprof:
8ec98d6c 10635 @r=`${PWD_COMMAND}`; export r; \
5230d454 10636 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 10637 $(SET_LIB_PATH) \
a675b75a 10638 $(HOST_EXPORTS) \
7fc2ca22
PB
10639 (cd $(HOST_SUBDIR)/gprof && \
10640 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 10641
d5eec917 10642@endif gprof
657b58f4 10643
d5eec917
PB
10644.PHONY: install-gprof maybe-install-gprof
10645maybe-install-gprof:
10646@if gprof
10647maybe-install-gprof: install-gprof
8ec98d6c 10648
d5eec917 10649install-gprof: installdirs
8ec98d6c 10650 @r=`${PWD_COMMAND}`; export r; \
5230d454 10651 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 10652 $(SET_LIB_PATH) \
a675b75a 10653 $(HOST_EXPORTS) \
7fc2ca22 10654 (cd $(HOST_SUBDIR)/gprof && \
93c60b6d 10655 $(MAKE) $(FLAGS_TO_PASS) install)
657b58f4 10656
d5eec917 10657@endif gprof
657b58f4 10658
8ec98d6c 10659# Other targets (info, dvi, etc.)
657b58f4 10660
d5eec917
PB
10661.PHONY: maybe-info-gprof info-gprof
10662maybe-info-gprof:
10663@if gprof
10664maybe-info-gprof: info-gprof
8ec98d6c 10665
d5eec917
PB
10666info-gprof: \
10667 configure-gprof
10668 @[ -f ./gprof/Makefile ] || exit 0; \
5230d454
L
10669 r=`${PWD_COMMAND}`; export r; \
10670 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 10671 $(SET_LIB_PATH) \
a675b75a 10672 $(HOST_EXPORTS) \
d5eec917 10673 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10674 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10675 done; \
d5eec917 10676 echo "Doing info in gprof" ; \
7fc2ca22 10677 (cd $(HOST_SUBDIR)/gprof && \
657b58f4
NN
10678 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10679 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10680 "RANLIB=$${RANLIB}" \
10681 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 10682 info) \
657b58f4
NN
10683 || exit 1
10684
d5eec917 10685@endif gprof
657b58f4 10686
d5eec917
PB
10687.PHONY: maybe-dvi-gprof dvi-gprof
10688maybe-dvi-gprof:
10689@if gprof
10690maybe-dvi-gprof: dvi-gprof
657b58f4 10691
d5eec917
PB
10692dvi-gprof: \
10693 configure-gprof
10694 @[ -f ./gprof/Makefile ] || exit 0; \
5230d454
L
10695 r=`${PWD_COMMAND}`; export r; \
10696 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 10697 $(SET_LIB_PATH) \
a675b75a 10698 $(HOST_EXPORTS) \
d5eec917 10699 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10700 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10701 done; \
d5eec917 10702 echo "Doing dvi in gprof" ; \
7fc2ca22 10703 (cd $(HOST_SUBDIR)/gprof && \
657b58f4
NN
10704 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10705 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10706 "RANLIB=$${RANLIB}" \
10707 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 10708 dvi) \
657b58f4
NN
10709 || exit 1
10710
d5eec917 10711@endif gprof
657b58f4 10712
b6fb961f
MS
10713.PHONY: maybe-html-gprof html-gprof
10714maybe-html-gprof:
10715@if gprof
10716maybe-html-gprof: html-gprof
10717
10718html-gprof: \
10719 configure-gprof
10720 @[ -f ./gprof/Makefile ] || exit 0; \
10721 r=`${PWD_COMMAND}`; export r; \
10722 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10723 $(SET_LIB_PATH) \
10724 $(HOST_EXPORTS) \
10725 for flag in $(EXTRA_HOST_FLAGS) ; do \
10726 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10727 done; \
10728 echo "Doing html in gprof" ; \
7fc2ca22 10729 (cd $(HOST_SUBDIR)/gprof && \
b6fb961f
MS
10730 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10731 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10732 "RANLIB=$${RANLIB}" \
10733 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10734 html) \
10735 || exit 1
10736
10737@endif gprof
10738
d5eec917
PB
10739.PHONY: maybe-TAGS-gprof TAGS-gprof
10740maybe-TAGS-gprof:
10741@if gprof
10742maybe-TAGS-gprof: TAGS-gprof
657b58f4 10743
d5eec917
PB
10744TAGS-gprof: \
10745 configure-gprof
10746 @[ -f ./gprof/Makefile ] || exit 0; \
5230d454
L
10747 r=`${PWD_COMMAND}`; export r; \
10748 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 10749 $(SET_LIB_PATH) \
a675b75a 10750 $(HOST_EXPORTS) \
d5eec917 10751 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10752 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10753 done; \
d5eec917 10754 echo "Doing TAGS in gprof" ; \
7fc2ca22 10755 (cd $(HOST_SUBDIR)/gprof && \
657b58f4
NN
10756 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10757 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10758 "RANLIB=$${RANLIB}" \
10759 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 10760 TAGS) \
657b58f4
NN
10761 || exit 1
10762
d5eec917 10763@endif gprof
657b58f4 10764
d5eec917
PB
10765.PHONY: maybe-install-info-gprof install-info-gprof
10766maybe-install-info-gprof:
10767@if gprof
10768maybe-install-info-gprof: install-info-gprof
657b58f4 10769
d5eec917
PB
10770install-info-gprof: \
10771 configure-gprof \
10772 info-gprof
10773 @[ -f ./gprof/Makefile ] || exit 0; \
5230d454
L
10774 r=`${PWD_COMMAND}`; export r; \
10775 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 10776 $(SET_LIB_PATH) \
a675b75a 10777 $(HOST_EXPORTS) \
d5eec917 10778 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10779 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10780 done; \
d5eec917 10781 echo "Doing install-info in gprof" ; \
7fc2ca22 10782 (cd $(HOST_SUBDIR)/gprof && \
657b58f4
NN
10783 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10784 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10785 "RANLIB=$${RANLIB}" \
10786 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 10787 install-info) \
657b58f4
NN
10788 || exit 1
10789
d5eec917 10790@endif gprof
657b58f4 10791
d5eec917
PB
10792.PHONY: maybe-installcheck-gprof installcheck-gprof
10793maybe-installcheck-gprof:
10794@if gprof
10795maybe-installcheck-gprof: installcheck-gprof
657b58f4 10796
d5eec917
PB
10797installcheck-gprof: \
10798 configure-gprof
10799 @[ -f ./gprof/Makefile ] || exit 0; \
5230d454
L
10800 r=`${PWD_COMMAND}`; export r; \
10801 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 10802 $(SET_LIB_PATH) \
a675b75a 10803 $(HOST_EXPORTS) \
d5eec917 10804 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10805 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10806 done; \
d5eec917 10807 echo "Doing installcheck in gprof" ; \
7fc2ca22 10808 (cd $(HOST_SUBDIR)/gprof && \
657b58f4
NN
10809 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10810 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10811 "RANLIB=$${RANLIB}" \
10812 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 10813 installcheck) \
657b58f4
NN
10814 || exit 1
10815
d5eec917 10816@endif gprof
657b58f4 10817
d5eec917
PB
10818.PHONY: maybe-mostlyclean-gprof mostlyclean-gprof
10819maybe-mostlyclean-gprof:
10820@if gprof
10821maybe-mostlyclean-gprof: mostlyclean-gprof
657b58f4 10822
d5eec917
PB
10823mostlyclean-gprof:
10824 @[ -f ./gprof/Makefile ] || exit 0; \
5230d454
L
10825 r=`${PWD_COMMAND}`; export r; \
10826 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 10827 $(SET_LIB_PATH) \
a675b75a 10828 $(HOST_EXPORTS) \
d5eec917 10829 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10830 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10831 done; \
d5eec917 10832 echo "Doing mostlyclean in gprof" ; \
7fc2ca22 10833 (cd $(HOST_SUBDIR)/gprof && \
657b58f4
NN
10834 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10835 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10836 "RANLIB=$${RANLIB}" \
10837 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 10838 mostlyclean) \
657b58f4
NN
10839 || exit 1
10840
d5eec917 10841@endif gprof
657b58f4 10842
d5eec917
PB
10843.PHONY: maybe-clean-gprof clean-gprof
10844maybe-clean-gprof:
10845@if gprof
10846maybe-clean-gprof: clean-gprof
657b58f4 10847
d5eec917
PB
10848clean-gprof:
10849 @[ -f ./gprof/Makefile ] || exit 0; \
5230d454
L
10850 r=`${PWD_COMMAND}`; export r; \
10851 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 10852 $(SET_LIB_PATH) \
a675b75a 10853 $(HOST_EXPORTS) \
d5eec917 10854 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10855 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10856 done; \
d5eec917 10857 echo "Doing clean in gprof" ; \
7fc2ca22 10858 (cd $(HOST_SUBDIR)/gprof && \
657b58f4
NN
10859 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10860 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10861 "RANLIB=$${RANLIB}" \
10862 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 10863 clean) \
657b58f4
NN
10864 || exit 1
10865
d5eec917 10866@endif gprof
657b58f4 10867
d5eec917
PB
10868.PHONY: maybe-distclean-gprof distclean-gprof
10869maybe-distclean-gprof:
10870@if gprof
10871maybe-distclean-gprof: distclean-gprof
657b58f4 10872
d5eec917
PB
10873distclean-gprof:
10874 @[ -f ./gprof/Makefile ] || exit 0; \
5230d454
L
10875 r=`${PWD_COMMAND}`; export r; \
10876 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 10877 $(SET_LIB_PATH) \
a675b75a 10878 $(HOST_EXPORTS) \
d5eec917 10879 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10880 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10881 done; \
d5eec917 10882 echo "Doing distclean in gprof" ; \
7fc2ca22 10883 (cd $(HOST_SUBDIR)/gprof && \
657b58f4
NN
10884 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10885 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10886 "RANLIB=$${RANLIB}" \
10887 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 10888 distclean) \
657b58f4
NN
10889 || exit 1
10890
d5eec917 10891@endif gprof
657b58f4 10892
d5eec917
PB
10893.PHONY: maybe-maintainer-clean-gprof maintainer-clean-gprof
10894maybe-maintainer-clean-gprof:
10895@if gprof
10896maybe-maintainer-clean-gprof: maintainer-clean-gprof
657b58f4 10897
d5eec917
PB
10898maintainer-clean-gprof:
10899 @[ -f ./gprof/Makefile ] || exit 0; \
5230d454
L
10900 r=`${PWD_COMMAND}`; export r; \
10901 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 10902 $(SET_LIB_PATH) \
a675b75a 10903 $(HOST_EXPORTS) \
d5eec917 10904 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10905 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10906 done; \
d5eec917 10907 echo "Doing maintainer-clean in gprof" ; \
7fc2ca22 10908 (cd $(HOST_SUBDIR)/gprof && \
657b58f4
NN
10909 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10910 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10911 "RANLIB=$${RANLIB}" \
10912 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 10913 maintainer-clean) \
657b58f4
NN
10914 || exit 1
10915
d5eec917 10916@endif gprof
657b58f4 10917
657b58f4 10918
d5eec917
PB
10919.PHONY: configure-gzip maybe-configure-gzip
10920maybe-configure-gzip:
10921@if gzip
10922maybe-configure-gzip: configure-gzip
10923configure-gzip:
7fc2ca22
PB
10924 @test ! -f $(HOST_SUBDIR)/gzip/Makefile || exit 0; \
10925 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gzip ; \
5230d454
L
10926 r=`${PWD_COMMAND}`; export r; \
10927 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 10928 $(HOST_EXPORTS) \
d5eec917 10929 echo Configuring in gzip; \
7fc2ca22 10930 cd $(HOST_SUBDIR)/gzip || exit 1; \
8ec98d6c 10931 case $(srcdir) in \
7fc2ca22
PB
10932 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10933 *) topdir=`echo $(HOST_SUBDIR)/gzip/ | \
10934 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 10935 esac; \
7fc2ca22
PB
10936 srcdiroption="--srcdir=$${topdir}/gzip"; \
10937 libsrcdir="$$s/gzip"; \
8ec98d6c 10938 $(SHELL) $${libsrcdir}/configure \
63673a5b 10939 $(HOST_CONFIGARGS) $${srcdiroption} \
657b58f4 10940 || exit 1
d5eec917 10941@endif gzip
657b58f4 10942
d5eec917
PB
10943.PHONY: all-gzip maybe-all-gzip
10944maybe-all-gzip:
10945@if gzip
5e6b1f07 10946TARGET-gzip=all
d5eec917
PB
10947maybe-all-gzip: all-gzip
10948all-gzip: configure-gzip
8ec98d6c
NN
10949 @r=`${PWD_COMMAND}`; export r; \
10950 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10951 $(SET_LIB_PATH) \
a675b75a 10952 $(HOST_EXPORTS) \
7fc2ca22
PB
10953 (cd $(HOST_SUBDIR)/gzip && \
10954 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-gzip))
d5eec917 10955@endif gzip
657b58f4 10956
d5eec917
PB
10957.PHONY: check-gzip maybe-check-gzip
10958maybe-check-gzip:
10959@if gzip
10960maybe-check-gzip: check-gzip
657b58f4 10961
d5eec917 10962check-gzip:
8ec98d6c 10963 @r=`${PWD_COMMAND}`; export r; \
5230d454 10964 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 10965 $(SET_LIB_PATH) \
a675b75a 10966 $(HOST_EXPORTS) \
7fc2ca22
PB
10967 (cd $(HOST_SUBDIR)/gzip && \
10968 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 10969
d5eec917 10970@endif gzip
657b58f4 10971
d5eec917
PB
10972.PHONY: install-gzip maybe-install-gzip
10973maybe-install-gzip:
10974@if gzip
10975maybe-install-gzip: install-gzip
657b58f4 10976
d5eec917 10977install-gzip: installdirs
8ec98d6c 10978 @r=`${PWD_COMMAND}`; export r; \
5230d454 10979 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 10980 $(SET_LIB_PATH) \
a675b75a 10981 $(HOST_EXPORTS) \
7fc2ca22 10982 (cd $(HOST_SUBDIR)/gzip && \
93c60b6d 10983 $(MAKE) $(FLAGS_TO_PASS) install)
657b58f4 10984
d5eec917 10985@endif gzip
657b58f4 10986
8ec98d6c 10987# Other targets (info, dvi, etc.)
657b58f4 10988
d5eec917
PB
10989.PHONY: maybe-info-gzip info-gzip
10990maybe-info-gzip:
10991@if gzip
10992maybe-info-gzip: info-gzip
8ec98d6c 10993
d5eec917
PB
10994info-gzip: \
10995 configure-gzip
10996 @[ -f ./gzip/Makefile ] || exit 0; \
5230d454
L
10997 r=`${PWD_COMMAND}`; export r; \
10998 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 10999 $(SET_LIB_PATH) \
a675b75a 11000 $(HOST_EXPORTS) \
d5eec917 11001 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11002 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11003 done; \
d5eec917 11004 echo "Doing info in gzip" ; \
7fc2ca22 11005 (cd $(HOST_SUBDIR)/gzip && \
657b58f4
NN
11006 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11007 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11008 "RANLIB=$${RANLIB}" \
11009 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 11010 info) \
657b58f4
NN
11011 || exit 1
11012
d5eec917 11013@endif gzip
657b58f4 11014
d5eec917
PB
11015.PHONY: maybe-dvi-gzip dvi-gzip
11016maybe-dvi-gzip:
11017@if gzip
11018maybe-dvi-gzip: dvi-gzip
657b58f4 11019
d5eec917
PB
11020dvi-gzip: \
11021 configure-gzip
11022 @[ -f ./gzip/Makefile ] || exit 0; \
5230d454
L
11023 r=`${PWD_COMMAND}`; export r; \
11024 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 11025 $(SET_LIB_PATH) \
a675b75a 11026 $(HOST_EXPORTS) \
d5eec917 11027 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11028 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11029 done; \
d5eec917 11030 echo "Doing dvi in gzip" ; \
7fc2ca22 11031 (cd $(HOST_SUBDIR)/gzip && \
657b58f4
NN
11032 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11033 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11034 "RANLIB=$${RANLIB}" \
11035 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 11036 dvi) \
657b58f4
NN
11037 || exit 1
11038
d5eec917 11039@endif gzip
657b58f4 11040
b6fb961f
MS
11041.PHONY: maybe-html-gzip html-gzip
11042maybe-html-gzip:
11043@if gzip
11044maybe-html-gzip: html-gzip
11045
11046html-gzip: \
11047 configure-gzip
11048 @[ -f ./gzip/Makefile ] || exit 0; \
11049 r=`${PWD_COMMAND}`; export r; \
11050 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11051 $(SET_LIB_PATH) \
11052 $(HOST_EXPORTS) \
11053 for flag in $(EXTRA_HOST_FLAGS) ; do \
11054 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11055 done; \
11056 echo "Doing html in gzip" ; \
7fc2ca22 11057 (cd $(HOST_SUBDIR)/gzip && \
b6fb961f
MS
11058 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11059 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11060 "RANLIB=$${RANLIB}" \
11061 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11062 html) \
11063 || exit 1
11064
11065@endif gzip
11066
d5eec917
PB
11067.PHONY: maybe-TAGS-gzip TAGS-gzip
11068maybe-TAGS-gzip:
11069@if gzip
11070maybe-TAGS-gzip: TAGS-gzip
657b58f4 11071
d5eec917
PB
11072TAGS-gzip: \
11073 configure-gzip
11074 @[ -f ./gzip/Makefile ] || exit 0; \
5230d454
L
11075 r=`${PWD_COMMAND}`; export r; \
11076 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 11077 $(SET_LIB_PATH) \
a675b75a 11078 $(HOST_EXPORTS) \
d5eec917 11079 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11080 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11081 done; \
d5eec917 11082 echo "Doing TAGS in gzip" ; \
7fc2ca22 11083 (cd $(HOST_SUBDIR)/gzip && \
657b58f4
NN
11084 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11085 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11086 "RANLIB=$${RANLIB}" \
11087 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 11088 TAGS) \
657b58f4
NN
11089 || exit 1
11090
d5eec917 11091@endif gzip
657b58f4 11092
d5eec917
PB
11093.PHONY: maybe-install-info-gzip install-info-gzip
11094maybe-install-info-gzip:
11095@if gzip
11096maybe-install-info-gzip: install-info-gzip
657b58f4 11097
d5eec917
PB
11098install-info-gzip: \
11099 configure-gzip \
11100 info-gzip
11101 @[ -f ./gzip/Makefile ] || exit 0; \
5230d454
L
11102 r=`${PWD_COMMAND}`; export r; \
11103 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 11104 $(SET_LIB_PATH) \
a675b75a 11105 $(HOST_EXPORTS) \
d5eec917 11106 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11107 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11108 done; \
d5eec917 11109 echo "Doing install-info in gzip" ; \
7fc2ca22 11110 (cd $(HOST_SUBDIR)/gzip && \
657b58f4
NN
11111 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11112 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11113 "RANLIB=$${RANLIB}" \
11114 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 11115 install-info) \
657b58f4
NN
11116 || exit 1
11117
d5eec917 11118@endif gzip
657b58f4 11119
d5eec917
PB
11120.PHONY: maybe-installcheck-gzip installcheck-gzip
11121maybe-installcheck-gzip:
11122@if gzip
11123maybe-installcheck-gzip: installcheck-gzip
657b58f4 11124
d5eec917
PB
11125installcheck-gzip: \
11126 configure-gzip
11127 @[ -f ./gzip/Makefile ] || exit 0; \
5230d454
L
11128 r=`${PWD_COMMAND}`; export r; \
11129 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 11130 $(SET_LIB_PATH) \
a675b75a 11131 $(HOST_EXPORTS) \
d5eec917 11132 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11133 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11134 done; \
d5eec917 11135 echo "Doing installcheck in gzip" ; \
7fc2ca22 11136 (cd $(HOST_SUBDIR)/gzip && \
657b58f4
NN
11137 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11138 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11139 "RANLIB=$${RANLIB}" \
11140 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 11141 installcheck) \
657b58f4
NN
11142 || exit 1
11143
d5eec917 11144@endif gzip
657b58f4 11145
d5eec917
PB
11146.PHONY: maybe-mostlyclean-gzip mostlyclean-gzip
11147maybe-mostlyclean-gzip:
11148@if gzip
11149maybe-mostlyclean-gzip: mostlyclean-gzip
657b58f4 11150
d5eec917
PB
11151mostlyclean-gzip:
11152 @[ -f ./gzip/Makefile ] || exit 0; \
5230d454
L
11153 r=`${PWD_COMMAND}`; export r; \
11154 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 11155 $(SET_LIB_PATH) \
a675b75a 11156 $(HOST_EXPORTS) \
d5eec917 11157 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11158 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11159 done; \
d5eec917 11160 echo "Doing mostlyclean in gzip" ; \
7fc2ca22 11161 (cd $(HOST_SUBDIR)/gzip && \
657b58f4
NN
11162 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11163 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11164 "RANLIB=$${RANLIB}" \
11165 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 11166 mostlyclean) \
657b58f4
NN
11167 || exit 1
11168
d5eec917 11169@endif gzip
657b58f4 11170
d5eec917
PB
11171.PHONY: maybe-clean-gzip clean-gzip
11172maybe-clean-gzip:
11173@if gzip
11174maybe-clean-gzip: clean-gzip
657b58f4 11175
d5eec917
PB
11176clean-gzip:
11177 @[ -f ./gzip/Makefile ] || exit 0; \
5230d454
L
11178 r=`${PWD_COMMAND}`; export r; \
11179 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 11180 $(SET_LIB_PATH) \
a675b75a 11181 $(HOST_EXPORTS) \
d5eec917 11182 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11183 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11184 done; \
d5eec917 11185 echo "Doing clean in gzip" ; \
7fc2ca22 11186 (cd $(HOST_SUBDIR)/gzip && \
657b58f4
NN
11187 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11188 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11189 "RANLIB=$${RANLIB}" \
11190 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 11191 clean) \
657b58f4
NN
11192 || exit 1
11193
d5eec917 11194@endif gzip
657b58f4 11195
d5eec917
PB
11196.PHONY: maybe-distclean-gzip distclean-gzip
11197maybe-distclean-gzip:
11198@if gzip
11199maybe-distclean-gzip: distclean-gzip
657b58f4 11200
d5eec917
PB
11201distclean-gzip:
11202 @[ -f ./gzip/Makefile ] || exit 0; \
5230d454
L
11203 r=`${PWD_COMMAND}`; export r; \
11204 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 11205 $(SET_LIB_PATH) \
a675b75a 11206 $(HOST_EXPORTS) \
d5eec917 11207 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11208 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11209 done; \
d5eec917 11210 echo "Doing distclean in gzip" ; \
7fc2ca22 11211 (cd $(HOST_SUBDIR)/gzip && \
657b58f4
NN
11212 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11213 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11214 "RANLIB=$${RANLIB}" \
11215 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 11216 distclean) \
657b58f4
NN
11217 || exit 1
11218
d5eec917 11219@endif gzip
657b58f4 11220
d5eec917
PB
11221.PHONY: maybe-maintainer-clean-gzip maintainer-clean-gzip
11222maybe-maintainer-clean-gzip:
11223@if gzip
11224maybe-maintainer-clean-gzip: maintainer-clean-gzip
657b58f4 11225
d5eec917
PB
11226maintainer-clean-gzip:
11227 @[ -f ./gzip/Makefile ] || exit 0; \
5230d454
L
11228 r=`${PWD_COMMAND}`; export r; \
11229 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 11230 $(SET_LIB_PATH) \
a675b75a 11231 $(HOST_EXPORTS) \
d5eec917 11232 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11233 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11234 done; \
d5eec917 11235 echo "Doing maintainer-clean in gzip" ; \
7fc2ca22 11236 (cd $(HOST_SUBDIR)/gzip && \
657b58f4
NN
11237 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11238 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11239 "RANLIB=$${RANLIB}" \
11240 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 11241 maintainer-clean) \
657b58f4
NN
11242 || exit 1
11243
d5eec917 11244@endif gzip
657b58f4 11245
657b58f4 11246
d5eec917
PB
11247.PHONY: configure-hello maybe-configure-hello
11248maybe-configure-hello:
11249@if hello
11250maybe-configure-hello: configure-hello
11251configure-hello:
7fc2ca22
PB
11252 @test ! -f $(HOST_SUBDIR)/hello/Makefile || exit 0; \
11253 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/hello ; \
5230d454
L
11254 r=`${PWD_COMMAND}`; export r; \
11255 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11256 $(HOST_EXPORTS) \
d5eec917 11257 echo Configuring in hello; \
7fc2ca22 11258 cd $(HOST_SUBDIR)/hello || exit 1; \
8ec98d6c 11259 case $(srcdir) in \
7fc2ca22
PB
11260 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11261 *) topdir=`echo $(HOST_SUBDIR)/hello/ | \
11262 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 11263 esac; \
7fc2ca22
PB
11264 srcdiroption="--srcdir=$${topdir}/hello"; \
11265 libsrcdir="$$s/hello"; \
8ec98d6c 11266 $(SHELL) $${libsrcdir}/configure \
63673a5b 11267 $(HOST_CONFIGARGS) $${srcdiroption} \
657b58f4 11268 || exit 1
d5eec917 11269@endif hello
657b58f4 11270
d5eec917
PB
11271.PHONY: all-hello maybe-all-hello
11272maybe-all-hello:
11273@if hello
5e6b1f07 11274TARGET-hello=all
d5eec917
PB
11275maybe-all-hello: all-hello
11276all-hello: configure-hello
8ec98d6c
NN
11277 @r=`${PWD_COMMAND}`; export r; \
11278 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11279 $(SET_LIB_PATH) \
a675b75a 11280 $(HOST_EXPORTS) \
7fc2ca22
PB
11281 (cd $(HOST_SUBDIR)/hello && \
11282 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-hello))
d5eec917 11283@endif hello
657b58f4 11284
d5eec917
PB
11285.PHONY: check-hello maybe-check-hello
11286maybe-check-hello:
11287@if hello
11288maybe-check-hello: check-hello
657b58f4 11289
d5eec917 11290check-hello:
8ec98d6c 11291 @r=`${PWD_COMMAND}`; export r; \
5230d454 11292 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 11293 $(SET_LIB_PATH) \
a675b75a 11294 $(HOST_EXPORTS) \
7fc2ca22
PB
11295 (cd $(HOST_SUBDIR)/hello && \
11296 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 11297
d5eec917 11298@endif hello
657b58f4 11299
d5eec917
PB
11300.PHONY: install-hello maybe-install-hello
11301maybe-install-hello:
11302@if hello
11303maybe-install-hello: install-hello
657b58f4 11304
d5eec917 11305install-hello: installdirs
8ec98d6c
NN
11306 @r=`${PWD_COMMAND}`; export r; \
11307 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11308 $(SET_LIB_PATH) \
a675b75a 11309 $(HOST_EXPORTS) \
7fc2ca22 11310 (cd $(HOST_SUBDIR)/hello && \
93c60b6d 11311 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 11312
d5eec917 11313@endif hello
8ec98d6c
NN
11314
11315# Other targets (info, dvi, etc.)
11316
d5eec917
PB
11317.PHONY: maybe-info-hello info-hello
11318maybe-info-hello:
11319@if hello
11320maybe-info-hello: info-hello
8ec98d6c 11321
d5eec917
PB
11322info-hello: \
11323 configure-hello
11324 @[ -f ./hello/Makefile ] || exit 0; \
5230d454
L
11325 r=`${PWD_COMMAND}`; export r; \
11326 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 11327 $(SET_LIB_PATH) \
a675b75a 11328 $(HOST_EXPORTS) \
d5eec917 11329 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11330 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11331 done; \
d5eec917 11332 echo "Doing info in hello" ; \
7fc2ca22 11333 (cd $(HOST_SUBDIR)/hello && \
657b58f4
NN
11334 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11335 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11336 "RANLIB=$${RANLIB}" \
11337 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 11338 info) \
657b58f4
NN
11339 || exit 1
11340
d5eec917 11341@endif hello
657b58f4 11342
d5eec917
PB
11343.PHONY: maybe-dvi-hello dvi-hello
11344maybe-dvi-hello:
11345@if hello
11346maybe-dvi-hello: dvi-hello
657b58f4 11347
d5eec917
PB
11348dvi-hello: \
11349 configure-hello
11350 @[ -f ./hello/Makefile ] || exit 0; \
5230d454
L
11351 r=`${PWD_COMMAND}`; export r; \
11352 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 11353 $(SET_LIB_PATH) \
a675b75a 11354 $(HOST_EXPORTS) \
d5eec917 11355 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11356 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11357 done; \
d5eec917 11358 echo "Doing dvi in hello" ; \
7fc2ca22 11359 (cd $(HOST_SUBDIR)/hello && \
657b58f4
NN
11360 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11361 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11362 "RANLIB=$${RANLIB}" \
11363 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 11364 dvi) \
657b58f4
NN
11365 || exit 1
11366
d5eec917 11367@endif hello
657b58f4 11368
b6fb961f
MS
11369.PHONY: maybe-html-hello html-hello
11370maybe-html-hello:
11371@if hello
11372maybe-html-hello: html-hello
11373
11374html-hello: \
11375 configure-hello
11376 @[ -f ./hello/Makefile ] || exit 0; \
11377 r=`${PWD_COMMAND}`; export r; \
11378 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11379 $(SET_LIB_PATH) \
11380 $(HOST_EXPORTS) \
11381 for flag in $(EXTRA_HOST_FLAGS) ; do \
11382 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11383 done; \
11384 echo "Doing html in hello" ; \
7fc2ca22 11385 (cd $(HOST_SUBDIR)/hello && \
b6fb961f
MS
11386 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11387 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11388 "RANLIB=$${RANLIB}" \
11389 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11390 html) \
11391 || exit 1
11392
11393@endif hello
11394
d5eec917
PB
11395.PHONY: maybe-TAGS-hello TAGS-hello
11396maybe-TAGS-hello:
11397@if hello
11398maybe-TAGS-hello: TAGS-hello
657b58f4 11399
d5eec917
PB
11400TAGS-hello: \
11401 configure-hello
11402 @[ -f ./hello/Makefile ] || exit 0; \
5230d454
L
11403 r=`${PWD_COMMAND}`; export r; \
11404 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 11405 $(SET_LIB_PATH) \
a675b75a 11406 $(HOST_EXPORTS) \
d5eec917 11407 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11408 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11409 done; \
d5eec917 11410 echo "Doing TAGS in hello" ; \
7fc2ca22 11411 (cd $(HOST_SUBDIR)/hello && \
657b58f4
NN
11412 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11413 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11414 "RANLIB=$${RANLIB}" \
11415 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 11416 TAGS) \
657b58f4
NN
11417 || exit 1
11418
d5eec917 11419@endif hello
657b58f4 11420
d5eec917
PB
11421.PHONY: maybe-install-info-hello install-info-hello
11422maybe-install-info-hello:
11423@if hello
11424maybe-install-info-hello: install-info-hello
657b58f4 11425
d5eec917
PB
11426install-info-hello: \
11427 configure-hello \
11428 info-hello
11429 @[ -f ./hello/Makefile ] || exit 0; \
5230d454
L
11430 r=`${PWD_COMMAND}`; export r; \
11431 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 11432 $(SET_LIB_PATH) \
a675b75a 11433 $(HOST_EXPORTS) \
d5eec917 11434 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11435 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11436 done; \
d5eec917 11437 echo "Doing install-info in hello" ; \
7fc2ca22 11438 (cd $(HOST_SUBDIR)/hello && \
657b58f4
NN
11439 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11440 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11441 "RANLIB=$${RANLIB}" \
11442 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 11443 install-info) \
657b58f4
NN
11444 || exit 1
11445
d5eec917 11446@endif hello
657b58f4 11447
d5eec917
PB
11448.PHONY: maybe-installcheck-hello installcheck-hello
11449maybe-installcheck-hello:
11450@if hello
11451maybe-installcheck-hello: installcheck-hello
657b58f4 11452
d5eec917
PB
11453installcheck-hello: \
11454 configure-hello
11455 @[ -f ./hello/Makefile ] || exit 0; \
5230d454
L
11456 r=`${PWD_COMMAND}`; export r; \
11457 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 11458 $(SET_LIB_PATH) \
a675b75a 11459 $(HOST_EXPORTS) \
d5eec917 11460 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11461 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11462 done; \
d5eec917 11463 echo "Doing installcheck in hello" ; \
7fc2ca22 11464 (cd $(HOST_SUBDIR)/hello && \
657b58f4
NN
11465 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11466 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11467 "RANLIB=$${RANLIB}" \
11468 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 11469 installcheck) \
657b58f4
NN
11470 || exit 1
11471
d5eec917 11472@endif hello
657b58f4 11473
d5eec917
PB
11474.PHONY: maybe-mostlyclean-hello mostlyclean-hello
11475maybe-mostlyclean-hello:
11476@if hello
11477maybe-mostlyclean-hello: mostlyclean-hello
657b58f4 11478
d5eec917
PB
11479mostlyclean-hello:
11480 @[ -f ./hello/Makefile ] || exit 0; \
5230d454
L
11481 r=`${PWD_COMMAND}`; export r; \
11482 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 11483 $(SET_LIB_PATH) \
a675b75a 11484 $(HOST_EXPORTS) \
d5eec917 11485 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11486 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11487 done; \
d5eec917 11488 echo "Doing mostlyclean in hello" ; \
7fc2ca22 11489 (cd $(HOST_SUBDIR)/hello && \
657b58f4
NN
11490 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11491 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11492 "RANLIB=$${RANLIB}" \
11493 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 11494 mostlyclean) \
657b58f4
NN
11495 || exit 1
11496
d5eec917 11497@endif hello
657b58f4 11498
d5eec917
PB
11499.PHONY: maybe-clean-hello clean-hello
11500maybe-clean-hello:
11501@if hello
11502maybe-clean-hello: clean-hello
657b58f4 11503
d5eec917
PB
11504clean-hello:
11505 @[ -f ./hello/Makefile ] || exit 0; \
5230d454
L
11506 r=`${PWD_COMMAND}`; export r; \
11507 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 11508 $(SET_LIB_PATH) \
a675b75a 11509 $(HOST_EXPORTS) \
d5eec917 11510 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11511 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11512 done; \
d5eec917 11513 echo "Doing clean in hello" ; \
7fc2ca22 11514 (cd $(HOST_SUBDIR)/hello && \
657b58f4
NN
11515 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11516 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11517 "RANLIB=$${RANLIB}" \
11518 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 11519 clean) \
657b58f4
NN
11520 || exit 1
11521
d5eec917 11522@endif hello
657b58f4 11523
d5eec917
PB
11524.PHONY: maybe-distclean-hello distclean-hello
11525maybe-distclean-hello:
11526@if hello
11527maybe-distclean-hello: distclean-hello
657b58f4 11528
d5eec917
PB
11529distclean-hello:
11530 @[ -f ./hello/Makefile ] || exit 0; \
5230d454
L
11531 r=`${PWD_COMMAND}`; export r; \
11532 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 11533 $(SET_LIB_PATH) \
a675b75a 11534 $(HOST_EXPORTS) \
d5eec917 11535 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11536 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11537 done; \
d5eec917 11538 echo "Doing distclean in hello" ; \
7fc2ca22 11539 (cd $(HOST_SUBDIR)/hello && \
657b58f4
NN
11540 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11541 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11542 "RANLIB=$${RANLIB}" \
11543 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 11544 distclean) \
657b58f4
NN
11545 || exit 1
11546
d5eec917 11547@endif hello
657b58f4 11548
d5eec917
PB
11549.PHONY: maybe-maintainer-clean-hello maintainer-clean-hello
11550maybe-maintainer-clean-hello:
11551@if hello
11552maybe-maintainer-clean-hello: maintainer-clean-hello
657b58f4 11553
d5eec917
PB
11554maintainer-clean-hello:
11555 @[ -f ./hello/Makefile ] || exit 0; \
5230d454
L
11556 r=`${PWD_COMMAND}`; export r; \
11557 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 11558 $(SET_LIB_PATH) \
a675b75a 11559 $(HOST_EXPORTS) \
d5eec917 11560 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11561 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11562 done; \
d5eec917 11563 echo "Doing maintainer-clean in hello" ; \
7fc2ca22 11564 (cd $(HOST_SUBDIR)/hello && \
657b58f4
NN
11565 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11566 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11567 "RANLIB=$${RANLIB}" \
11568 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 11569 maintainer-clean) \
657b58f4
NN
11570 || exit 1
11571
d5eec917 11572@endif hello
657b58f4 11573
657b58f4 11574
d5eec917
PB
11575.PHONY: configure-indent maybe-configure-indent
11576maybe-configure-indent:
11577@if indent
11578maybe-configure-indent: configure-indent
11579configure-indent:
7fc2ca22
PB
11580 @test ! -f $(HOST_SUBDIR)/indent/Makefile || exit 0; \
11581 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/indent ; \
8ec98d6c
NN
11582 r=`${PWD_COMMAND}`; export r; \
11583 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11584 $(HOST_EXPORTS) \
d5eec917 11585 echo Configuring in indent; \
7fc2ca22 11586 cd $(HOST_SUBDIR)/indent || exit 1; \
8ec98d6c 11587 case $(srcdir) in \
7fc2ca22
PB
11588 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11589 *) topdir=`echo $(HOST_SUBDIR)/indent/ | \
11590 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 11591 esac; \
7fc2ca22
PB
11592 srcdiroption="--srcdir=$${topdir}/indent"; \
11593 libsrcdir="$$s/indent"; \
8ec98d6c 11594 $(SHELL) $${libsrcdir}/configure \
63673a5b 11595 $(HOST_CONFIGARGS) $${srcdiroption} \
8ec98d6c 11596 || exit 1
d5eec917 11597@endif indent
657b58f4 11598
d5eec917
PB
11599.PHONY: all-indent maybe-all-indent
11600maybe-all-indent:
11601@if indent
5e6b1f07 11602TARGET-indent=all
d5eec917
PB
11603maybe-all-indent: all-indent
11604all-indent: configure-indent
8ec98d6c
NN
11605 @r=`${PWD_COMMAND}`; export r; \
11606 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11607 $(SET_LIB_PATH) \
a675b75a 11608 $(HOST_EXPORTS) \
7fc2ca22
PB
11609 (cd $(HOST_SUBDIR)/indent && \
11610 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-indent))
d5eec917 11611@endif indent
657b58f4 11612
d5eec917
PB
11613.PHONY: check-indent maybe-check-indent
11614maybe-check-indent:
11615@if indent
11616maybe-check-indent: check-indent
657b58f4 11617
d5eec917 11618check-indent:
8ec98d6c 11619 @r=`${PWD_COMMAND}`; export r; \
5230d454 11620 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 11621 $(SET_LIB_PATH) \
a675b75a 11622 $(HOST_EXPORTS) \
7fc2ca22
PB
11623 (cd $(HOST_SUBDIR)/indent && \
11624 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 11625
d5eec917 11626@endif indent
657b58f4 11627
d5eec917
PB
11628.PHONY: install-indent maybe-install-indent
11629maybe-install-indent:
11630@if indent
11631maybe-install-indent: install-indent
657b58f4 11632
d5eec917 11633install-indent: installdirs
8ec98d6c 11634 @r=`${PWD_COMMAND}`; export r; \
5230d454 11635 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 11636 $(SET_LIB_PATH) \
a675b75a 11637 $(HOST_EXPORTS) \
7fc2ca22 11638 (cd $(HOST_SUBDIR)/indent && \
93c60b6d 11639 $(MAKE) $(FLAGS_TO_PASS) install)
657b58f4 11640
d5eec917 11641@endif indent
657b58f4 11642
8ec98d6c 11643# Other targets (info, dvi, etc.)
657b58f4 11644
d5eec917
PB
11645.PHONY: maybe-info-indent info-indent
11646maybe-info-indent:
11647@if indent
11648maybe-info-indent: info-indent
8ec98d6c 11649
d5eec917
PB
11650info-indent: \
11651 configure-indent
11652 @[ -f ./indent/Makefile ] || exit 0; \
5230d454
L
11653 r=`${PWD_COMMAND}`; export r; \
11654 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 11655 $(SET_LIB_PATH) \
a675b75a 11656 $(HOST_EXPORTS) \
d5eec917 11657 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11658 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11659 done; \
d5eec917 11660 echo "Doing info in indent" ; \
7fc2ca22 11661 (cd $(HOST_SUBDIR)/indent && \
657b58f4
NN
11662 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11663 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11664 "RANLIB=$${RANLIB}" \
11665 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 11666 info) \
657b58f4
NN
11667 || exit 1
11668
d5eec917 11669@endif indent
657b58f4 11670
d5eec917
PB
11671.PHONY: maybe-dvi-indent dvi-indent
11672maybe-dvi-indent:
11673@if indent
11674maybe-dvi-indent: dvi-indent
657b58f4 11675
d5eec917
PB
11676dvi-indent: \
11677 configure-indent
11678 @[ -f ./indent/Makefile ] || exit 0; \
5230d454
L
11679 r=`${PWD_COMMAND}`; export r; \
11680 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 11681 $(SET_LIB_PATH) \
a675b75a 11682 $(HOST_EXPORTS) \
d5eec917 11683 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11684 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11685 done; \
d5eec917 11686 echo "Doing dvi in indent" ; \
7fc2ca22 11687 (cd $(HOST_SUBDIR)/indent && \
657b58f4
NN
11688 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11689 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11690 "RANLIB=$${RANLIB}" \
11691 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 11692 dvi) \
657b58f4
NN
11693 || exit 1
11694
d5eec917 11695@endif indent
657b58f4 11696
b6fb961f
MS
11697.PHONY: maybe-html-indent html-indent
11698maybe-html-indent:
11699@if indent
11700maybe-html-indent: html-indent
11701
11702html-indent: \
11703 configure-indent
11704 @[ -f ./indent/Makefile ] || exit 0; \
11705 r=`${PWD_COMMAND}`; export r; \
11706 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11707 $(SET_LIB_PATH) \
11708 $(HOST_EXPORTS) \
11709 for flag in $(EXTRA_HOST_FLAGS) ; do \
11710 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11711 done; \
11712 echo "Doing html in indent" ; \
7fc2ca22 11713 (cd $(HOST_SUBDIR)/indent && \
b6fb961f
MS
11714 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11715 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11716 "RANLIB=$${RANLIB}" \
11717 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11718 html) \
11719 || exit 1
11720
11721@endif indent
11722
d5eec917
PB
11723.PHONY: maybe-TAGS-indent TAGS-indent
11724maybe-TAGS-indent:
11725@if indent
11726maybe-TAGS-indent: TAGS-indent
657b58f4 11727
d5eec917
PB
11728TAGS-indent: \
11729 configure-indent
11730 @[ -f ./indent/Makefile ] || exit 0; \
5230d454
L
11731 r=`${PWD_COMMAND}`; export r; \
11732 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 11733 $(SET_LIB_PATH) \
a675b75a 11734 $(HOST_EXPORTS) \
d5eec917 11735 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11736 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11737 done; \
d5eec917 11738 echo "Doing TAGS in indent" ; \
7fc2ca22 11739 (cd $(HOST_SUBDIR)/indent && \
657b58f4
NN
11740 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11741 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11742 "RANLIB=$${RANLIB}" \
11743 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 11744 TAGS) \
657b58f4
NN
11745 || exit 1
11746
d5eec917 11747@endif indent
657b58f4 11748
d5eec917
PB
11749.PHONY: maybe-install-info-indent install-info-indent
11750maybe-install-info-indent:
11751@if indent
11752maybe-install-info-indent: install-info-indent
657b58f4 11753
d5eec917
PB
11754install-info-indent: \
11755 configure-indent \
11756 info-indent
11757 @[ -f ./indent/Makefile ] || exit 0; \
5230d454
L
11758 r=`${PWD_COMMAND}`; export r; \
11759 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 11760 $(SET_LIB_PATH) \
a675b75a 11761 $(HOST_EXPORTS) \
d5eec917 11762 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11763 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11764 done; \
d5eec917 11765 echo "Doing install-info in indent" ; \
7fc2ca22 11766 (cd $(HOST_SUBDIR)/indent && \
657b58f4
NN
11767 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11768 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11769 "RANLIB=$${RANLIB}" \
11770 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 11771 install-info) \
657b58f4
NN
11772 || exit 1
11773
d5eec917 11774@endif indent
657b58f4 11775
d5eec917
PB
11776.PHONY: maybe-installcheck-indent installcheck-indent
11777maybe-installcheck-indent:
11778@if indent
11779maybe-installcheck-indent: installcheck-indent
657b58f4 11780
d5eec917
PB
11781installcheck-indent: \
11782 configure-indent
11783 @[ -f ./indent/Makefile ] || exit 0; \
5230d454
L
11784 r=`${PWD_COMMAND}`; export r; \
11785 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 11786 $(SET_LIB_PATH) \
a675b75a 11787 $(HOST_EXPORTS) \
d5eec917 11788 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11789 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11790 done; \
d5eec917 11791 echo "Doing installcheck in indent" ; \
7fc2ca22 11792 (cd $(HOST_SUBDIR)/indent && \
657b58f4
NN
11793 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11794 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11795 "RANLIB=$${RANLIB}" \
11796 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 11797 installcheck) \
657b58f4
NN
11798 || exit 1
11799
d5eec917 11800@endif indent
657b58f4 11801
d5eec917
PB
11802.PHONY: maybe-mostlyclean-indent mostlyclean-indent
11803maybe-mostlyclean-indent:
11804@if indent
11805maybe-mostlyclean-indent: mostlyclean-indent
657b58f4 11806
d5eec917
PB
11807mostlyclean-indent:
11808 @[ -f ./indent/Makefile ] || exit 0; \
5230d454
L
11809 r=`${PWD_COMMAND}`; export r; \
11810 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 11811 $(SET_LIB_PATH) \
a675b75a 11812 $(HOST_EXPORTS) \
d5eec917 11813 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11814 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11815 done; \
d5eec917 11816 echo "Doing mostlyclean in indent" ; \
7fc2ca22 11817 (cd $(HOST_SUBDIR)/indent && \
657b58f4
NN
11818 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11819 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11820 "RANLIB=$${RANLIB}" \
11821 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 11822 mostlyclean) \
657b58f4
NN
11823 || exit 1
11824
d5eec917 11825@endif indent
657b58f4 11826
d5eec917
PB
11827.PHONY: maybe-clean-indent clean-indent
11828maybe-clean-indent:
11829@if indent
11830maybe-clean-indent: clean-indent
657b58f4 11831
d5eec917
PB
11832clean-indent:
11833 @[ -f ./indent/Makefile ] || exit 0; \
5230d454
L
11834 r=`${PWD_COMMAND}`; export r; \
11835 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 11836 $(SET_LIB_PATH) \
a675b75a 11837 $(HOST_EXPORTS) \
d5eec917 11838 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11839 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11840 done; \
d5eec917 11841 echo "Doing clean in indent" ; \
7fc2ca22 11842 (cd $(HOST_SUBDIR)/indent && \
657b58f4
NN
11843 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11844 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11845 "RANLIB=$${RANLIB}" \
11846 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 11847 clean) \
657b58f4
NN
11848 || exit 1
11849
d5eec917 11850@endif indent
657b58f4 11851
d5eec917
PB
11852.PHONY: maybe-distclean-indent distclean-indent
11853maybe-distclean-indent:
11854@if indent
11855maybe-distclean-indent: distclean-indent
657b58f4 11856
d5eec917
PB
11857distclean-indent:
11858 @[ -f ./indent/Makefile ] || exit 0; \
5230d454
L
11859 r=`${PWD_COMMAND}`; export r; \
11860 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 11861 $(SET_LIB_PATH) \
a675b75a 11862 $(HOST_EXPORTS) \
d5eec917 11863 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11864 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11865 done; \
d5eec917 11866 echo "Doing distclean in indent" ; \
7fc2ca22 11867 (cd $(HOST_SUBDIR)/indent && \
657b58f4
NN
11868 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11869 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11870 "RANLIB=$${RANLIB}" \
11871 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 11872 distclean) \
657b58f4
NN
11873 || exit 1
11874
d5eec917 11875@endif indent
657b58f4 11876
d5eec917
PB
11877.PHONY: maybe-maintainer-clean-indent maintainer-clean-indent
11878maybe-maintainer-clean-indent:
11879@if indent
11880maybe-maintainer-clean-indent: maintainer-clean-indent
657b58f4 11881
d5eec917
PB
11882maintainer-clean-indent:
11883 @[ -f ./indent/Makefile ] || exit 0; \
5230d454
L
11884 r=`${PWD_COMMAND}`; export r; \
11885 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 11886 $(SET_LIB_PATH) \
a675b75a 11887 $(HOST_EXPORTS) \
d5eec917 11888 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11889 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11890 done; \
d5eec917 11891 echo "Doing maintainer-clean in indent" ; \
7fc2ca22 11892 (cd $(HOST_SUBDIR)/indent && \
657b58f4
NN
11893 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11894 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11895 "RANLIB=$${RANLIB}" \
11896 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 11897 maintainer-clean) \
657b58f4
NN
11898 || exit 1
11899
d5eec917 11900@endif indent
657b58f4 11901
d832a288 11902
d5eec917
PB
11903.PHONY: configure-intl maybe-configure-intl
11904maybe-configure-intl:
11905@if intl
11906maybe-configure-intl: configure-intl
11907configure-intl:
6a19fd82 11908 @test -f stage_last && exit 0; \
7fc2ca22
PB
11909 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
11910 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
d832a288
DD
11911 r=`${PWD_COMMAND}`; export r; \
11912 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11913 $(HOST_EXPORTS) \
d5eec917 11914 echo Configuring in intl; \
7fc2ca22 11915 cd $(HOST_SUBDIR)/intl || exit 1; \
8ec98d6c 11916 case $(srcdir) in \
7fc2ca22
PB
11917 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11918 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
11919 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 11920 esac; \
7fc2ca22
PB
11921 srcdiroption="--srcdir=$${topdir}/intl"; \
11922 libsrcdir="$$s/intl"; \
8ec98d6c 11923 $(SHELL) $${libsrcdir}/configure \
63673a5b 11924 $(HOST_CONFIGARGS) $${srcdiroption} \
d832a288 11925 || exit 1
d5eec917 11926@endif intl
d832a288 11927
d5eec917
PB
11928.PHONY: all-intl maybe-all-intl
11929maybe-all-intl:
11930@if intl
5e6b1f07 11931TARGET-intl=all
d5eec917
PB
11932maybe-all-intl: all-intl
11933all-intl: configure-intl
6a19fd82
PB
11934 @test -f stage_last && exit 0; \
11935 r=`${PWD_COMMAND}`; export r; \
8ec98d6c
NN
11936 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11937 $(SET_LIB_PATH) \
a675b75a 11938 $(HOST_EXPORTS) \
7fc2ca22
PB
11939 (cd $(HOST_SUBDIR)/intl && \
11940 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-intl))
d5eec917 11941@endif intl
d832a288 11942
d5eec917
PB
11943.PHONY: check-intl maybe-check-intl
11944maybe-check-intl:
11945@if intl
11946maybe-check-intl: check-intl
657b58f4 11947
d5eec917 11948check-intl:
8ec98d6c
NN
11949 @r=`${PWD_COMMAND}`; export r; \
11950 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11951 $(SET_LIB_PATH) \
a675b75a 11952 $(HOST_EXPORTS) \
7fc2ca22
PB
11953 (cd $(HOST_SUBDIR)/intl && \
11954 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 11955
d5eec917 11956@endif intl
657b58f4 11957
d5eec917
PB
11958.PHONY: install-intl maybe-install-intl
11959maybe-install-intl:
11960@if intl
11961maybe-install-intl: install-intl
657b58f4 11962
d5eec917 11963install-intl: installdirs
8ec98d6c
NN
11964 @r=`${PWD_COMMAND}`; export r; \
11965 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11966 $(SET_LIB_PATH) \
a675b75a 11967 $(HOST_EXPORTS) \
7fc2ca22 11968 (cd $(HOST_SUBDIR)/intl && \
93c60b6d 11969 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 11970
d5eec917 11971@endif intl
8ec98d6c
NN
11972
11973# Other targets (info, dvi, etc.)
11974
d5eec917
PB
11975.PHONY: maybe-info-intl info-intl
11976maybe-info-intl:
11977@if intl
11978maybe-info-intl: info-intl
8ec98d6c 11979
d5eec917
PB
11980info-intl: \
11981 configure-intl
11982 @[ -f ./intl/Makefile ] || exit 0; \
5230d454
L
11983 r=`${PWD_COMMAND}`; export r; \
11984 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 11985 $(SET_LIB_PATH) \
a675b75a 11986 $(HOST_EXPORTS) \
d5eec917 11987 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11988 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11989 done; \
d5eec917 11990 echo "Doing info in intl" ; \
7fc2ca22 11991 (cd $(HOST_SUBDIR)/intl && \
657b58f4
NN
11992 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11993 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11994 "RANLIB=$${RANLIB}" \
11995 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 11996 info) \
657b58f4
NN
11997 || exit 1
11998
d5eec917 11999@endif intl
657b58f4 12000
d5eec917
PB
12001.PHONY: maybe-dvi-intl dvi-intl
12002maybe-dvi-intl:
12003@if intl
12004maybe-dvi-intl: dvi-intl
657b58f4 12005
d5eec917
PB
12006dvi-intl: \
12007 configure-intl
12008 @[ -f ./intl/Makefile ] || exit 0; \
12009 r=`${PWD_COMMAND}`; export r; \
5230d454 12010 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 12011 $(SET_LIB_PATH) \
a675b75a 12012 $(HOST_EXPORTS) \
d5eec917 12013 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
12014 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12015 done; \
d5eec917 12016 echo "Doing dvi in intl" ; \
7fc2ca22 12017 (cd $(HOST_SUBDIR)/intl && \
657b58f4
NN
12018 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12019 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12020 "RANLIB=$${RANLIB}" \
12021 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 12022 dvi) \
657b58f4
NN
12023 || exit 1
12024
d5eec917 12025@endif intl
657b58f4 12026
b6fb961f
MS
12027.PHONY: maybe-html-intl html-intl
12028maybe-html-intl:
12029@if intl
12030maybe-html-intl: html-intl
12031
12032html-intl: \
12033 configure-intl
12034 @[ -f ./intl/Makefile ] || exit 0; \
12035 r=`${PWD_COMMAND}`; export r; \
12036 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12037 $(SET_LIB_PATH) \
12038 $(HOST_EXPORTS) \
12039 for flag in $(EXTRA_HOST_FLAGS) ; do \
12040 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12041 done; \
12042 echo "Doing html in intl" ; \
7fc2ca22 12043 (cd $(HOST_SUBDIR)/intl && \
b6fb961f
MS
12044 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12045 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12046 "RANLIB=$${RANLIB}" \
12047 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12048 html) \
12049 || exit 1
12050
12051@endif intl
12052
d5eec917
PB
12053.PHONY: maybe-TAGS-intl TAGS-intl
12054maybe-TAGS-intl:
12055@if intl
12056maybe-TAGS-intl: TAGS-intl
657b58f4 12057
d5eec917
PB
12058TAGS-intl: \
12059 configure-intl
12060 @[ -f ./intl/Makefile ] || exit 0; \
5230d454
L
12061 r=`${PWD_COMMAND}`; export r; \
12062 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 12063 $(SET_LIB_PATH) \
a675b75a 12064 $(HOST_EXPORTS) \
d5eec917 12065 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
12066 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12067 done; \
d5eec917 12068 echo "Doing TAGS in intl" ; \
7fc2ca22 12069 (cd $(HOST_SUBDIR)/intl && \
657b58f4
NN
12070 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12071 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12072 "RANLIB=$${RANLIB}" \
12073 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 12074 TAGS) \
657b58f4
NN
12075 || exit 1
12076
d5eec917 12077@endif intl
657b58f4 12078
d5eec917
PB
12079.PHONY: maybe-install-info-intl install-info-intl
12080maybe-install-info-intl:
12081@if intl
12082maybe-install-info-intl: install-info-intl
657b58f4 12083
d5eec917
PB
12084install-info-intl: \
12085 configure-intl \
12086 info-intl
12087 @[ -f ./intl/Makefile ] || exit 0; \
5230d454
L
12088 r=`${PWD_COMMAND}`; export r; \
12089 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 12090 $(SET_LIB_PATH) \
a675b75a 12091 $(HOST_EXPORTS) \
d5eec917 12092 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
12093 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12094 done; \
d5eec917 12095 echo "Doing install-info in intl" ; \
7fc2ca22 12096 (cd $(HOST_SUBDIR)/intl && \
657b58f4
NN
12097 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12098 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12099 "RANLIB=$${RANLIB}" \
12100 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 12101 install-info) \
657b58f4
NN
12102 || exit 1
12103
d5eec917 12104@endif intl
657b58f4 12105
d5eec917
PB
12106.PHONY: maybe-installcheck-intl installcheck-intl
12107maybe-installcheck-intl:
12108@if intl
12109maybe-installcheck-intl: installcheck-intl
657b58f4 12110
d5eec917
PB
12111installcheck-intl: \
12112 configure-intl
12113 @[ -f ./intl/Makefile ] || exit 0; \
5230d454
L
12114 r=`${PWD_COMMAND}`; export r; \
12115 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 12116 $(SET_LIB_PATH) \
a675b75a 12117 $(HOST_EXPORTS) \
d5eec917 12118 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
12119 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12120 done; \
d5eec917 12121 echo "Doing installcheck in intl" ; \
7fc2ca22 12122 (cd $(HOST_SUBDIR)/intl && \
657b58f4
NN
12123 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12124 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12125 "RANLIB=$${RANLIB}" \
12126 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 12127 installcheck) \
657b58f4
NN
12128 || exit 1
12129
d5eec917 12130@endif intl
657b58f4 12131
d5eec917
PB
12132.PHONY: maybe-mostlyclean-intl mostlyclean-intl
12133maybe-mostlyclean-intl:
12134@if intl
12135maybe-mostlyclean-intl: mostlyclean-intl
657b58f4 12136
d5eec917
PB
12137mostlyclean-intl:
12138 @[ -f ./intl/Makefile ] || exit 0; \
12139 r=`${PWD_COMMAND}`; export r; \
12140 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12141 $(SET_LIB_PATH) \
12142 $(HOST_EXPORTS) \
12143 for flag in $(EXTRA_HOST_FLAGS) ; do \
12144 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12145 done; \
12146 echo "Doing mostlyclean in intl" ; \
7fc2ca22 12147 (cd $(HOST_SUBDIR)/intl && \
d5eec917
PB
12148 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12149 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12150 "RANLIB=$${RANLIB}" \
12151 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12152 mostlyclean) \
12153 || exit 1
8ec98d6c 12154
d5eec917 12155@endif intl
8ec98d6c 12156
d5eec917
PB
12157.PHONY: maybe-clean-intl clean-intl
12158maybe-clean-intl:
12159@if intl
12160maybe-clean-intl: clean-intl
8ec98d6c 12161
d5eec917
PB
12162clean-intl:
12163 @[ -f ./intl/Makefile ] || exit 0; \
5230d454
L
12164 r=`${PWD_COMMAND}`; export r; \
12165 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 12166 $(SET_LIB_PATH) \
a675b75a 12167 $(HOST_EXPORTS) \
d5eec917 12168 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
12169 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12170 done; \
d5eec917 12171 echo "Doing clean in intl" ; \
7fc2ca22 12172 (cd $(HOST_SUBDIR)/intl && \
657b58f4
NN
12173 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12174 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12175 "RANLIB=$${RANLIB}" \
12176 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 12177 clean) \
657b58f4
NN
12178 || exit 1
12179
d5eec917 12180@endif intl
657b58f4 12181
d5eec917
PB
12182.PHONY: maybe-distclean-intl distclean-intl
12183maybe-distclean-intl:
12184@if intl
12185maybe-distclean-intl: distclean-intl
657b58f4 12186
d5eec917
PB
12187distclean-intl:
12188 @[ -f ./intl/Makefile ] || exit 0; \
5230d454
L
12189 r=`${PWD_COMMAND}`; export r; \
12190 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 12191 $(SET_LIB_PATH) \
a675b75a 12192 $(HOST_EXPORTS) \
d5eec917 12193 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
12194 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12195 done; \
d5eec917 12196 echo "Doing distclean in intl" ; \
7fc2ca22 12197 (cd $(HOST_SUBDIR)/intl && \
657b58f4
NN
12198 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12199 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12200 "RANLIB=$${RANLIB}" \
12201 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 12202 distclean) \
657b58f4
NN
12203 || exit 1
12204
d5eec917 12205@endif intl
657b58f4 12206
d5eec917
PB
12207.PHONY: maybe-maintainer-clean-intl maintainer-clean-intl
12208maybe-maintainer-clean-intl:
12209@if intl
12210maybe-maintainer-clean-intl: maintainer-clean-intl
657b58f4 12211
d5eec917
PB
12212maintainer-clean-intl:
12213 @[ -f ./intl/Makefile ] || exit 0; \
5230d454
L
12214 r=`${PWD_COMMAND}`; export r; \
12215 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 12216 $(SET_LIB_PATH) \
a675b75a 12217 $(HOST_EXPORTS) \
d5eec917 12218 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
12219 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12220 done; \
d5eec917 12221 echo "Doing maintainer-clean in intl" ; \
7fc2ca22 12222 (cd $(HOST_SUBDIR)/intl && \
657b58f4
NN
12223 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12224 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12225 "RANLIB=$${RANLIB}" \
12226 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 12227 maintainer-clean) \
657b58f4
NN
12228 || exit 1
12229
d5eec917 12230@endif intl
657b58f4 12231
657b58f4 12232
d5eec917
PB
12233.PHONY: configure-tcl maybe-configure-tcl
12234maybe-configure-tcl:
12235@if tcl
12236maybe-configure-tcl: configure-tcl
12237configure-tcl:
7fc2ca22
PB
12238 @test ! -f $(HOST_SUBDIR)/tcl/Makefile || exit 0; \
12239 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tcl ; \
5230d454
L
12240 r=`${PWD_COMMAND}`; export r; \
12241 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 12242 $(HOST_EXPORTS) \
d5eec917 12243 echo Configuring in tcl; \
7fc2ca22 12244 cd $(HOST_SUBDIR)/tcl || exit 1; \
8ec98d6c 12245 case $(srcdir) in \
7fc2ca22
PB
12246 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12247 *) topdir=`echo $(HOST_SUBDIR)/tcl/ | \
12248 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 12249 esac; \
7fc2ca22
PB
12250 srcdiroption="--srcdir=$${topdir}/tcl"; \
12251 libsrcdir="$$s/tcl"; \
8ec98d6c 12252 $(SHELL) $${libsrcdir}/configure \
63673a5b 12253 $(HOST_CONFIGARGS) $${srcdiroption} \
657b58f4 12254 || exit 1
d5eec917 12255@endif tcl
657b58f4 12256
d5eec917
PB
12257.PHONY: all-tcl maybe-all-tcl
12258maybe-all-tcl:
12259@if tcl
5e6b1f07 12260TARGET-tcl=all
d5eec917
PB
12261maybe-all-tcl: all-tcl
12262all-tcl: configure-tcl
8ec98d6c
NN
12263 @r=`${PWD_COMMAND}`; export r; \
12264 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12265 $(SET_LIB_PATH) \
a675b75a 12266 $(HOST_EXPORTS) \
7fc2ca22
PB
12267 (cd $(HOST_SUBDIR)/tcl && \
12268 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-tcl))
d5eec917 12269@endif tcl
8ec98d6c 12270
d5eec917
PB
12271.PHONY: check-tcl maybe-check-tcl
12272maybe-check-tcl:
12273@if tcl
12274maybe-check-tcl: check-tcl
657b58f4 12275
d5eec917 12276check-tcl:
8ec98d6c
NN
12277 @r=`${PWD_COMMAND}`; export r; \
12278 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12279 $(SET_LIB_PATH) \
a675b75a 12280 $(HOST_EXPORTS) \
7fc2ca22
PB
12281 (cd $(HOST_SUBDIR)/tcl && \
12282 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 12283
d5eec917 12284@endif tcl
8ec98d6c 12285
d5eec917
PB
12286.PHONY: install-tcl maybe-install-tcl
12287maybe-install-tcl:
12288@if tcl
12289maybe-install-tcl: install-tcl
8ec98d6c 12290
d5eec917 12291install-tcl: installdirs
8ec98d6c
NN
12292 @r=`${PWD_COMMAND}`; export r; \
12293 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12294 $(SET_LIB_PATH) \
a675b75a 12295 $(HOST_EXPORTS) \
7fc2ca22 12296 (cd $(HOST_SUBDIR)/tcl && \
93c60b6d 12297 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 12298
d5eec917 12299@endif tcl
8ec98d6c
NN
12300
12301# Other targets (info, dvi, etc.)
12302
d5eec917
PB
12303.PHONY: maybe-info-tcl info-tcl
12304maybe-info-tcl:
12305@if tcl
12306maybe-info-tcl: info-tcl
8ec98d6c 12307
d5eec917
PB
12308info-tcl: \
12309 configure-tcl
12310 @[ -f ./tcl/Makefile ] || exit 0; \
5230d454
L
12311 r=`${PWD_COMMAND}`; export r; \
12312 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 12313 $(SET_LIB_PATH) \
a675b75a 12314 $(HOST_EXPORTS) \
d5eec917 12315 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
12316 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12317 done; \
d5eec917 12318 echo "Doing info in tcl" ; \
7fc2ca22 12319 (cd $(HOST_SUBDIR)/tcl && \
657b58f4
NN
12320 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12321 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12322 "RANLIB=$${RANLIB}" \
12323 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 12324 info) \
657b58f4
NN
12325 || exit 1
12326
d5eec917 12327@endif tcl
657b58f4 12328
d5eec917
PB
12329.PHONY: maybe-dvi-tcl dvi-tcl
12330maybe-dvi-tcl:
12331@if tcl
12332maybe-dvi-tcl: dvi-tcl
657b58f4 12333
d5eec917
PB
12334dvi-tcl: \
12335 configure-tcl
12336 @[ -f ./tcl/Makefile ] || exit 0; \
5230d454
L
12337 r=`${PWD_COMMAND}`; export r; \
12338 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 12339 $(SET_LIB_PATH) \
a675b75a 12340 $(HOST_EXPORTS) \
d5eec917 12341 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
12342 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12343 done; \
d5eec917 12344 echo "Doing dvi in tcl" ; \
7fc2ca22 12345 (cd $(HOST_SUBDIR)/tcl && \
657b58f4
NN
12346 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12347 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12348 "RANLIB=$${RANLIB}" \
12349 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 12350 dvi) \
657b58f4
NN
12351 || exit 1
12352
d5eec917 12353@endif tcl
657b58f4 12354
b6fb961f
MS
12355.PHONY: maybe-html-tcl html-tcl
12356maybe-html-tcl:
12357@if tcl
12358maybe-html-tcl: html-tcl
12359
12360html-tcl: \
12361 configure-tcl
12362 @[ -f ./tcl/Makefile ] || exit 0; \
12363 r=`${PWD_COMMAND}`; export r; \
12364 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12365 $(SET_LIB_PATH) \
12366 $(HOST_EXPORTS) \
12367 for flag in $(EXTRA_HOST_FLAGS) ; do \
12368 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12369 done; \
12370 echo "Doing html in tcl" ; \
7fc2ca22 12371 (cd $(HOST_SUBDIR)/tcl && \
b6fb961f
MS
12372 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12373 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12374 "RANLIB=$${RANLIB}" \
12375 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12376 html) \
12377 || exit 1
12378
12379@endif tcl
12380
d5eec917
PB
12381.PHONY: maybe-TAGS-tcl TAGS-tcl
12382maybe-TAGS-tcl:
12383@if tcl
12384maybe-TAGS-tcl: TAGS-tcl
657b58f4 12385
d5eec917
PB
12386TAGS-tcl: \
12387 configure-tcl
12388 @[ -f ./tcl/Makefile ] || exit 0; \
5230d454
L
12389 r=`${PWD_COMMAND}`; export r; \
12390 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 12391 $(SET_LIB_PATH) \
a675b75a 12392 $(HOST_EXPORTS) \
d5eec917 12393 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
12394 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12395 done; \
d5eec917 12396 echo "Doing TAGS in tcl" ; \
7fc2ca22 12397 (cd $(HOST_SUBDIR)/tcl && \
657b58f4
NN
12398 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12399 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12400 "RANLIB=$${RANLIB}" \
12401 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 12402 TAGS) \
657b58f4
NN
12403 || exit 1
12404
d5eec917 12405@endif tcl
657b58f4 12406
d5eec917
PB
12407.PHONY: maybe-install-info-tcl install-info-tcl
12408maybe-install-info-tcl:
12409@if tcl
12410maybe-install-info-tcl: install-info-tcl
657b58f4 12411
d5eec917
PB
12412install-info-tcl: \
12413 configure-tcl \
12414 info-tcl
12415 @[ -f ./tcl/Makefile ] || exit 0; \
5230d454
L
12416 r=`${PWD_COMMAND}`; export r; \
12417 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 12418 $(SET_LIB_PATH) \
a675b75a 12419 $(HOST_EXPORTS) \
d5eec917 12420 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
12421 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12422 done; \
d5eec917 12423 echo "Doing install-info in tcl" ; \
7fc2ca22 12424 (cd $(HOST_SUBDIR)/tcl && \
657b58f4
NN
12425 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12426 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12427 "RANLIB=$${RANLIB}" \
12428 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 12429 install-info) \
657b58f4
NN
12430 || exit 1
12431
d5eec917 12432@endif tcl
657b58f4 12433
d5eec917
PB
12434.PHONY: maybe-installcheck-tcl installcheck-tcl
12435maybe-installcheck-tcl:
12436@if tcl
12437maybe-installcheck-tcl: installcheck-tcl
657b58f4 12438
d5eec917
PB
12439installcheck-tcl: \
12440 configure-tcl
12441 @[ -f ./tcl/Makefile ] || exit 0; \
5230d454
L
12442 r=`${PWD_COMMAND}`; export r; \
12443 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 12444 $(SET_LIB_PATH) \
a675b75a 12445 $(HOST_EXPORTS) \
d5eec917 12446 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
12447 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12448 done; \
d5eec917 12449 echo "Doing installcheck in tcl" ; \
7fc2ca22 12450 (cd $(HOST_SUBDIR)/tcl && \
657b58f4
NN
12451 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12452 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12453 "RANLIB=$${RANLIB}" \
12454 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 12455 installcheck) \
657b58f4
NN
12456 || exit 1
12457
d5eec917 12458@endif tcl
657b58f4 12459
d5eec917
PB
12460.PHONY: maybe-mostlyclean-tcl mostlyclean-tcl
12461maybe-mostlyclean-tcl:
12462@if tcl
12463maybe-mostlyclean-tcl: mostlyclean-tcl
657b58f4 12464
d5eec917
PB
12465# tcl doesn't support mostlyclean.
12466mostlyclean-tcl:
657b58f4 12467
d5eec917 12468@endif tcl
657b58f4 12469
d5eec917
PB
12470.PHONY: maybe-clean-tcl clean-tcl
12471maybe-clean-tcl:
12472@if tcl
12473maybe-clean-tcl: clean-tcl
657b58f4 12474
d5eec917
PB
12475clean-tcl:
12476 @[ -f ./tcl/Makefile ] || exit 0; \
5230d454
L
12477 r=`${PWD_COMMAND}`; export r; \
12478 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 12479 $(SET_LIB_PATH) \
a675b75a 12480 $(HOST_EXPORTS) \
d5eec917 12481 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
12482 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12483 done; \
d5eec917 12484 echo "Doing clean in tcl" ; \
7fc2ca22 12485 (cd $(HOST_SUBDIR)/tcl && \
657b58f4
NN
12486 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12487 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12488 "RANLIB=$${RANLIB}" \
12489 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 12490 clean) \
657b58f4
NN
12491 || exit 1
12492
d5eec917 12493@endif tcl
657b58f4 12494
d5eec917
PB
12495.PHONY: maybe-distclean-tcl distclean-tcl
12496maybe-distclean-tcl:
12497@if tcl
12498maybe-distclean-tcl: distclean-tcl
657b58f4 12499
d5eec917
PB
12500distclean-tcl:
12501 @[ -f ./tcl/Makefile ] || exit 0; \
5230d454
L
12502 r=`${PWD_COMMAND}`; export r; \
12503 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 12504 $(SET_LIB_PATH) \
a675b75a 12505 $(HOST_EXPORTS) \
d5eec917 12506 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
12507 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12508 done; \
d5eec917 12509 echo "Doing distclean in tcl" ; \
7fc2ca22 12510 (cd $(HOST_SUBDIR)/tcl && \
657b58f4
NN
12511 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12512 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12513 "RANLIB=$${RANLIB}" \
12514 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 12515 distclean) \
657b58f4
NN
12516 || exit 1
12517
d5eec917 12518@endif tcl
657b58f4 12519
d5eec917
PB
12520.PHONY: maybe-maintainer-clean-tcl maintainer-clean-tcl
12521maybe-maintainer-clean-tcl:
12522@if tcl
12523maybe-maintainer-clean-tcl: maintainer-clean-tcl
657b58f4 12524
d5eec917
PB
12525maintainer-clean-tcl:
12526 @[ -f ./tcl/Makefile ] || exit 0; \
5230d454
L
12527 r=`${PWD_COMMAND}`; export r; \
12528 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 12529 $(SET_LIB_PATH) \
a675b75a 12530 $(HOST_EXPORTS) \
d5eec917 12531 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
12532 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12533 done; \
d5eec917 12534 echo "Doing maintainer-clean in tcl" ; \
7fc2ca22 12535 (cd $(HOST_SUBDIR)/tcl && \
657b58f4
NN
12536 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12537 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12538 "RANLIB=$${RANLIB}" \
12539 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 12540 maintainer-clean) \
657b58f4
NN
12541 || exit 1
12542
d5eec917 12543@endif tcl
657b58f4 12544
657b58f4 12545
d5eec917
PB
12546.PHONY: configure-itcl maybe-configure-itcl
12547maybe-configure-itcl:
12548@if itcl
12549maybe-configure-itcl: configure-itcl
12550configure-itcl:
7fc2ca22
PB
12551 @test ! -f $(HOST_SUBDIR)/itcl/Makefile || exit 0; \
12552 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/itcl ; \
8ec98d6c
NN
12553 r=`${PWD_COMMAND}`; export r; \
12554 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 12555 $(HOST_EXPORTS) \
d5eec917 12556 echo Configuring in itcl; \
7fc2ca22 12557 cd $(HOST_SUBDIR)/itcl || exit 1; \
8ec98d6c 12558 case $(srcdir) in \
7fc2ca22
PB
12559 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12560 *) topdir=`echo $(HOST_SUBDIR)/itcl/ | \
12561 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 12562 esac; \
7fc2ca22
PB
12563 srcdiroption="--srcdir=$${topdir}/itcl"; \
12564 libsrcdir="$$s/itcl"; \
8ec98d6c 12565 $(SHELL) $${libsrcdir}/configure \
63673a5b 12566 $(HOST_CONFIGARGS) $${srcdiroption} \
8ec98d6c 12567 || exit 1
d5eec917 12568@endif itcl
8ec98d6c 12569
d5eec917
PB
12570.PHONY: all-itcl maybe-all-itcl
12571maybe-all-itcl:
12572@if itcl
5e6b1f07 12573TARGET-itcl=all
d5eec917
PB
12574maybe-all-itcl: all-itcl
12575all-itcl: configure-itcl
8ec98d6c
NN
12576 @r=`${PWD_COMMAND}`; export r; \
12577 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12578 $(SET_LIB_PATH) \
a675b75a 12579 $(HOST_EXPORTS) \
7fc2ca22
PB
12580 (cd $(HOST_SUBDIR)/itcl && \
12581 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-itcl))
d5eec917 12582@endif itcl
8ec98d6c 12583
d5eec917
PB
12584.PHONY: check-itcl maybe-check-itcl
12585maybe-check-itcl:
12586@if itcl
12587maybe-check-itcl: check-itcl
8ec98d6c 12588
d5eec917 12589check-itcl:
8ec98d6c
NN
12590 @r=`${PWD_COMMAND}`; export r; \
12591 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12592 $(SET_LIB_PATH) \
a675b75a 12593 $(HOST_EXPORTS) \
7fc2ca22
PB
12594 (cd $(HOST_SUBDIR)/itcl && \
12595 $(MAKE) $(FLAGS_TO_PASS) check)
8ec98d6c 12596
d5eec917 12597@endif itcl
8ec98d6c 12598
d5eec917
PB
12599.PHONY: install-itcl maybe-install-itcl
12600maybe-install-itcl:
12601@if itcl
12602maybe-install-itcl: install-itcl
8ec98d6c 12603
d5eec917 12604install-itcl: installdirs
8ec98d6c
NN
12605 @r=`${PWD_COMMAND}`; export r; \
12606 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12607 $(SET_LIB_PATH) \
a675b75a 12608 $(HOST_EXPORTS) \
7fc2ca22 12609 (cd $(HOST_SUBDIR)/itcl && \
93c60b6d 12610 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 12611
d5eec917 12612@endif itcl
8ec98d6c
NN
12613
12614# Other targets (info, dvi, etc.)
12615
d5eec917
PB
12616.PHONY: maybe-info-itcl info-itcl
12617maybe-info-itcl:
12618@if itcl
12619maybe-info-itcl: info-itcl
8ec98d6c 12620
d5eec917
PB
12621info-itcl: \
12622 configure-itcl
12623 @[ -f ./itcl/Makefile ] || exit 0; \
5230d454
L
12624 r=`${PWD_COMMAND}`; export r; \
12625 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 12626 $(SET_LIB_PATH) \
a675b75a 12627 $(HOST_EXPORTS) \
d5eec917 12628 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
12629 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12630 done; \
d5eec917 12631 echo "Doing info in itcl" ; \
7fc2ca22 12632 (cd $(HOST_SUBDIR)/itcl && \
657b58f4
NN
12633 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12634 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12635 "RANLIB=$${RANLIB}" \
12636 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 12637 info) \
657b58f4
NN
12638 || exit 1
12639
d5eec917 12640@endif itcl
657b58f4 12641
d5eec917
PB
12642.PHONY: maybe-dvi-itcl dvi-itcl
12643maybe-dvi-itcl:
12644@if itcl
12645maybe-dvi-itcl: dvi-itcl
657b58f4 12646
d5eec917
PB
12647dvi-itcl: \
12648 configure-itcl
12649 @[ -f ./itcl/Makefile ] || exit 0; \
5230d454
L
12650 r=`${PWD_COMMAND}`; export r; \
12651 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 12652 $(SET_LIB_PATH) \
a675b75a 12653 $(HOST_EXPORTS) \
d5eec917 12654 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
12655 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12656 done; \
d5eec917 12657 echo "Doing dvi in itcl" ; \
7fc2ca22 12658 (cd $(HOST_SUBDIR)/itcl && \
657b58f4
NN
12659 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12660 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12661 "RANLIB=$${RANLIB}" \
12662 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 12663 dvi) \
657b58f4
NN
12664 || exit 1
12665
d5eec917 12666@endif itcl
657b58f4 12667
b6fb961f
MS
12668.PHONY: maybe-html-itcl html-itcl
12669maybe-html-itcl:
12670@if itcl
12671maybe-html-itcl: html-itcl
12672
12673html-itcl: \
12674 configure-itcl
12675 @[ -f ./itcl/Makefile ] || exit 0; \
12676 r=`${PWD_COMMAND}`; export r; \
12677 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12678 $(SET_LIB_PATH) \
12679 $(HOST_EXPORTS) \
12680 for flag in $(EXTRA_HOST_FLAGS) ; do \
12681 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12682 done; \
12683 echo "Doing html in itcl" ; \
7fc2ca22 12684 (cd $(HOST_SUBDIR)/itcl && \
b6fb961f
MS
12685 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12686 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12687 "RANLIB=$${RANLIB}" \
12688 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12689 html) \
12690 || exit 1
12691
12692@endif itcl
12693
d5eec917
PB
12694.PHONY: maybe-TAGS-itcl TAGS-itcl
12695maybe-TAGS-itcl:
12696@if itcl
12697maybe-TAGS-itcl: TAGS-itcl
657b58f4 12698
d5eec917
PB
12699TAGS-itcl: \
12700 configure-itcl
12701 @[ -f ./itcl/Makefile ] || exit 0; \
5230d454
L
12702 r=`${PWD_COMMAND}`; export r; \
12703 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 12704 $(SET_LIB_PATH) \
a675b75a 12705 $(HOST_EXPORTS) \
d5eec917 12706 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
12707 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12708 done; \
d5eec917 12709 echo "Doing TAGS in itcl" ; \
7fc2ca22 12710 (cd $(HOST_SUBDIR)/itcl && \
657b58f4
NN
12711 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12712 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12713 "RANLIB=$${RANLIB}" \
12714 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 12715 TAGS) \
657b58f4
NN
12716 || exit 1
12717
d5eec917 12718@endif itcl
657b58f4 12719
d5eec917
PB
12720.PHONY: maybe-install-info-itcl install-info-itcl
12721maybe-install-info-itcl:
12722@if itcl
12723maybe-install-info-itcl: install-info-itcl
657b58f4 12724
d5eec917
PB
12725install-info-itcl: \
12726 configure-itcl \
12727 info-itcl
12728 @[ -f ./itcl/Makefile ] || exit 0; \
5230d454
L
12729 r=`${PWD_COMMAND}`; export r; \
12730 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 12731 $(SET_LIB_PATH) \
a675b75a 12732 $(HOST_EXPORTS) \
d5eec917 12733 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
12734 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12735 done; \
d5eec917 12736 echo "Doing install-info in itcl" ; \
7fc2ca22 12737 (cd $(HOST_SUBDIR)/itcl && \
657b58f4
NN
12738 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12739 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12740 "RANLIB=$${RANLIB}" \
12741 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 12742 install-info) \
657b58f4
NN
12743 || exit 1
12744
d5eec917 12745@endif itcl
657b58f4 12746
d5eec917
PB
12747.PHONY: maybe-installcheck-itcl installcheck-itcl
12748maybe-installcheck-itcl:
12749@if itcl
12750maybe-installcheck-itcl: installcheck-itcl
657b58f4 12751
d5eec917
PB
12752installcheck-itcl: \
12753 configure-itcl
12754 @[ -f ./itcl/Makefile ] || exit 0; \
5230d454
L
12755 r=`${PWD_COMMAND}`; export r; \
12756 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 12757 $(SET_LIB_PATH) \
a675b75a 12758 $(HOST_EXPORTS) \
d5eec917 12759 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
12760 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12761 done; \
d5eec917 12762 echo "Doing installcheck in itcl" ; \
7fc2ca22 12763 (cd $(HOST_SUBDIR)/itcl && \
657b58f4
NN
12764 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12765 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12766 "RANLIB=$${RANLIB}" \
12767 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 12768 installcheck) \
657b58f4
NN
12769 || exit 1
12770
d5eec917 12771@endif itcl
657b58f4 12772
d5eec917
PB
12773.PHONY: maybe-mostlyclean-itcl mostlyclean-itcl
12774maybe-mostlyclean-itcl:
12775@if itcl
12776maybe-mostlyclean-itcl: mostlyclean-itcl
657b58f4 12777
d5eec917
PB
12778mostlyclean-itcl:
12779 @[ -f ./itcl/Makefile ] || exit 0; \
5230d454
L
12780 r=`${PWD_COMMAND}`; export r; \
12781 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 12782 $(SET_LIB_PATH) \
a675b75a 12783 $(HOST_EXPORTS) \
d5eec917 12784 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
12785 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12786 done; \
d5eec917 12787 echo "Doing mostlyclean in itcl" ; \
7fc2ca22 12788 (cd $(HOST_SUBDIR)/itcl && \
657b58f4
NN
12789 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12790 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12791 "RANLIB=$${RANLIB}" \
12792 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 12793 mostlyclean) \
657b58f4
NN
12794 || exit 1
12795
d5eec917 12796@endif itcl
657b58f4 12797
d5eec917
PB
12798.PHONY: maybe-clean-itcl clean-itcl
12799maybe-clean-itcl:
12800@if itcl
12801maybe-clean-itcl: clean-itcl
657b58f4 12802
d5eec917
PB
12803clean-itcl:
12804 @[ -f ./itcl/Makefile ] || exit 0; \
5230d454
L
12805 r=`${PWD_COMMAND}`; export r; \
12806 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 12807 $(SET_LIB_PATH) \
a675b75a 12808 $(HOST_EXPORTS) \
d5eec917 12809 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
12810 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12811 done; \
d5eec917 12812 echo "Doing clean in itcl" ; \
7fc2ca22 12813 (cd $(HOST_SUBDIR)/itcl && \
657b58f4
NN
12814 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12815 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12816 "RANLIB=$${RANLIB}" \
12817 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 12818 clean) \
657b58f4
NN
12819 || exit 1
12820
d5eec917 12821@endif itcl
657b58f4 12822
d5eec917
PB
12823.PHONY: maybe-distclean-itcl distclean-itcl
12824maybe-distclean-itcl:
12825@if itcl
12826maybe-distclean-itcl: distclean-itcl
657b58f4 12827
d5eec917
PB
12828distclean-itcl:
12829 @[ -f ./itcl/Makefile ] || exit 0; \
5230d454
L
12830 r=`${PWD_COMMAND}`; export r; \
12831 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 12832 $(SET_LIB_PATH) \
a675b75a 12833 $(HOST_EXPORTS) \
d5eec917 12834 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
12835 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12836 done; \
d5eec917 12837 echo "Doing distclean in itcl" ; \
7fc2ca22 12838 (cd $(HOST_SUBDIR)/itcl && \
657b58f4
NN
12839 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12840 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12841 "RANLIB=$${RANLIB}" \
12842 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 12843 distclean) \
657b58f4
NN
12844 || exit 1
12845
d5eec917 12846@endif itcl
657b58f4 12847
d5eec917
PB
12848.PHONY: maybe-maintainer-clean-itcl maintainer-clean-itcl
12849maybe-maintainer-clean-itcl:
12850@if itcl
12851maybe-maintainer-clean-itcl: maintainer-clean-itcl
657b58f4 12852
d5eec917
PB
12853maintainer-clean-itcl:
12854 @[ -f ./itcl/Makefile ] || exit 0; \
5230d454
L
12855 r=`${PWD_COMMAND}`; export r; \
12856 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 12857 $(SET_LIB_PATH) \
a675b75a 12858 $(HOST_EXPORTS) \
d5eec917 12859 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
12860 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12861 done; \
d5eec917 12862 echo "Doing maintainer-clean in itcl" ; \
7fc2ca22 12863 (cd $(HOST_SUBDIR)/itcl && \
657b58f4
NN
12864 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12865 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12866 "RANLIB=$${RANLIB}" \
12867 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 12868 maintainer-clean) \
657b58f4
NN
12869 || exit 1
12870
d5eec917 12871@endif itcl
657b58f4 12872
657b58f4 12873
d5eec917
PB
12874.PHONY: configure-ld maybe-configure-ld
12875maybe-configure-ld:
12876@if ld
12877maybe-configure-ld: configure-ld
12878configure-ld:
6a19fd82 12879 @test -f stage_last && exit 0; \
7fc2ca22
PB
12880 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
12881 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
c580d516
PB
12882 r=`${PWD_COMMAND}`; export r; \
12883 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 12884 $(HOST_EXPORTS) \
d5eec917 12885 echo Configuring in ld; \
7fc2ca22 12886 cd $(HOST_SUBDIR)/ld || exit 1; \
c580d516 12887 case $(srcdir) in \
7fc2ca22
PB
12888 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12889 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
12890 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
c580d516 12891 esac; \
7fc2ca22
PB
12892 srcdiroption="--srcdir=$${topdir}/ld"; \
12893 libsrcdir="$$s/ld"; \
c580d516 12894 $(SHELL) $${libsrcdir}/configure \
63673a5b 12895 $(HOST_CONFIGARGS) $${srcdiroption} \
c580d516 12896 || exit 1
d5eec917 12897@endif ld
c580d516 12898
d5eec917
PB
12899.PHONY: all-ld maybe-all-ld
12900maybe-all-ld:
12901@if ld
5e6b1f07 12902TARGET-ld=all
d5eec917
PB
12903maybe-all-ld: all-ld
12904all-ld: configure-ld
6a19fd82
PB
12905 @test -f stage_last && exit 0; \
12906 r=`${PWD_COMMAND}`; export r; \
c580d516
PB
12907 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12908 $(SET_LIB_PATH) \
a675b75a 12909 $(HOST_EXPORTS) \
7fc2ca22
PB
12910 (cd $(HOST_SUBDIR)/ld && \
12911 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-ld))
d5eec917 12912@endif ld
c580d516 12913
d5eec917
PB
12914.PHONY: check-ld maybe-check-ld
12915maybe-check-ld:
12916@if ld
12917maybe-check-ld: check-ld
c580d516 12918
d5eec917 12919check-ld:
c580d516
PB
12920 @r=`${PWD_COMMAND}`; export r; \
12921 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12922 $(SET_LIB_PATH) \
a675b75a 12923 $(HOST_EXPORTS) \
7fc2ca22
PB
12924 (cd $(HOST_SUBDIR)/ld && \
12925 $(MAKE) $(FLAGS_TO_PASS) check)
c580d516 12926
d5eec917 12927@endif ld
c580d516 12928
d5eec917
PB
12929.PHONY: install-ld maybe-install-ld
12930maybe-install-ld:
12931@if ld
12932maybe-install-ld: install-ld
c580d516 12933
d5eec917 12934install-ld: installdirs
c580d516
PB
12935 @r=`${PWD_COMMAND}`; export r; \
12936 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12937 $(SET_LIB_PATH) \
a675b75a 12938 $(HOST_EXPORTS) \
7fc2ca22 12939 (cd $(HOST_SUBDIR)/ld && \
93c60b6d 12940 $(MAKE) $(FLAGS_TO_PASS) install)
c580d516 12941
d5eec917 12942@endif ld
c580d516
PB
12943
12944# Other targets (info, dvi, etc.)
12945
d5eec917
PB
12946.PHONY: maybe-info-ld info-ld
12947maybe-info-ld:
12948@if ld
12949maybe-info-ld: info-ld
c580d516 12950
d5eec917
PB
12951info-ld: \
12952 configure-ld
12953 @[ -f ./ld/Makefile ] || exit 0; \
c580d516
PB
12954 r=`${PWD_COMMAND}`; export r; \
12955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12956 $(SET_LIB_PATH) \
a675b75a 12957 $(HOST_EXPORTS) \
d5eec917 12958 for flag in $(EXTRA_HOST_FLAGS) ; do \
c580d516
PB
12959 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12960 done; \
d5eec917 12961 echo "Doing info in ld" ; \
7fc2ca22 12962 (cd $(HOST_SUBDIR)/ld && \
c580d516
PB
12963 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12964 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12965 "RANLIB=$${RANLIB}" \
12966 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 12967 info) \
c580d516
PB
12968 || exit 1
12969
d5eec917 12970@endif ld
c580d516 12971
d5eec917
PB
12972.PHONY: maybe-dvi-ld dvi-ld
12973maybe-dvi-ld:
12974@if ld
12975maybe-dvi-ld: dvi-ld
c580d516 12976
d5eec917
PB
12977dvi-ld: \
12978 configure-ld
12979 @[ -f ./ld/Makefile ] || exit 0; \
c580d516
PB
12980 r=`${PWD_COMMAND}`; export r; \
12981 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12982 $(SET_LIB_PATH) \
a675b75a 12983 $(HOST_EXPORTS) \
d5eec917 12984 for flag in $(EXTRA_HOST_FLAGS) ; do \
c580d516
PB
12985 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12986 done; \
d5eec917 12987 echo "Doing dvi in ld" ; \
7fc2ca22 12988 (cd $(HOST_SUBDIR)/ld && \
c580d516
PB
12989 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12990 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12991 "RANLIB=$${RANLIB}" \
12992 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 12993 dvi) \
c580d516
PB
12994 || exit 1
12995
d5eec917 12996@endif ld
c580d516 12997
b6fb961f
MS
12998.PHONY: maybe-html-ld html-ld
12999maybe-html-ld:
13000@if ld
13001maybe-html-ld: html-ld
13002
13003html-ld: \
13004 configure-ld
13005 @[ -f ./ld/Makefile ] || exit 0; \
13006 r=`${PWD_COMMAND}`; export r; \
13007 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13008 $(SET_LIB_PATH) \
13009 $(HOST_EXPORTS) \
13010 for flag in $(EXTRA_HOST_FLAGS) ; do \
13011 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13012 done; \
13013 echo "Doing html in ld" ; \
7fc2ca22 13014 (cd $(HOST_SUBDIR)/ld && \
b6fb961f
MS
13015 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13016 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13017 "RANLIB=$${RANLIB}" \
13018 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13019 html) \
13020 || exit 1
13021
13022@endif ld
13023
d5eec917
PB
13024.PHONY: maybe-TAGS-ld TAGS-ld
13025maybe-TAGS-ld:
13026@if ld
13027maybe-TAGS-ld: TAGS-ld
c580d516 13028
d5eec917
PB
13029TAGS-ld: \
13030 configure-ld
13031 @[ -f ./ld/Makefile ] || exit 0; \
c580d516
PB
13032 r=`${PWD_COMMAND}`; export r; \
13033 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13034 $(SET_LIB_PATH) \
a675b75a 13035 $(HOST_EXPORTS) \
d5eec917 13036 for flag in $(EXTRA_HOST_FLAGS) ; do \
c580d516
PB
13037 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13038 done; \
d5eec917 13039 echo "Doing TAGS in ld" ; \
7fc2ca22 13040 (cd $(HOST_SUBDIR)/ld && \
c580d516
PB
13041 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13042 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13043 "RANLIB=$${RANLIB}" \
13044 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 13045 TAGS) \
c580d516
PB
13046 || exit 1
13047
d5eec917 13048@endif ld
c580d516 13049
d5eec917
PB
13050.PHONY: maybe-install-info-ld install-info-ld
13051maybe-install-info-ld:
13052@if ld
13053maybe-install-info-ld: install-info-ld
c580d516 13054
d5eec917
PB
13055install-info-ld: \
13056 configure-ld \
13057 info-ld
13058 @[ -f ./ld/Makefile ] || exit 0; \
c580d516
PB
13059 r=`${PWD_COMMAND}`; export r; \
13060 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13061 $(SET_LIB_PATH) \
a675b75a 13062 $(HOST_EXPORTS) \
d5eec917 13063 for flag in $(EXTRA_HOST_FLAGS) ; do \
c580d516
PB
13064 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13065 done; \
d5eec917 13066 echo "Doing install-info in ld" ; \
7fc2ca22 13067 (cd $(HOST_SUBDIR)/ld && \
c580d516
PB
13068 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13069 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13070 "RANLIB=$${RANLIB}" \
13071 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 13072 install-info) \
c580d516
PB
13073 || exit 1
13074
d5eec917 13075@endif ld
c580d516 13076
d5eec917
PB
13077.PHONY: maybe-installcheck-ld installcheck-ld
13078maybe-installcheck-ld:
13079@if ld
13080maybe-installcheck-ld: installcheck-ld
c580d516 13081
d5eec917
PB
13082installcheck-ld: \
13083 configure-ld
13084 @[ -f ./ld/Makefile ] || exit 0; \
c580d516
PB
13085 r=`${PWD_COMMAND}`; export r; \
13086 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13087 $(SET_LIB_PATH) \
a675b75a 13088 $(HOST_EXPORTS) \
d5eec917 13089 for flag in $(EXTRA_HOST_FLAGS) ; do \
c580d516
PB
13090 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13091 done; \
d5eec917 13092 echo "Doing installcheck in ld" ; \
7fc2ca22 13093 (cd $(HOST_SUBDIR)/ld && \
c580d516
PB
13094 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13095 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13096 "RANLIB=$${RANLIB}" \
13097 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 13098 installcheck) \
c580d516
PB
13099 || exit 1
13100
d5eec917 13101@endif ld
c580d516 13102
d5eec917
PB
13103.PHONY: maybe-mostlyclean-ld mostlyclean-ld
13104maybe-mostlyclean-ld:
13105@if ld
13106maybe-mostlyclean-ld: mostlyclean-ld
c580d516 13107
d5eec917
PB
13108mostlyclean-ld:
13109 @[ -f ./ld/Makefile ] || exit 0; \
c580d516
PB
13110 r=`${PWD_COMMAND}`; export r; \
13111 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13112 $(SET_LIB_PATH) \
a675b75a 13113 $(HOST_EXPORTS) \
d5eec917 13114 for flag in $(EXTRA_HOST_FLAGS) ; do \
c580d516
PB
13115 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13116 done; \
d5eec917 13117 echo "Doing mostlyclean in ld" ; \
7fc2ca22 13118 (cd $(HOST_SUBDIR)/ld && \
c580d516
PB
13119 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13120 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13121 "RANLIB=$${RANLIB}" \
13122 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 13123 mostlyclean) \
c580d516
PB
13124 || exit 1
13125
d5eec917 13126@endif ld
c580d516 13127
d5eec917
PB
13128.PHONY: maybe-clean-ld clean-ld
13129maybe-clean-ld:
13130@if ld
13131maybe-clean-ld: clean-ld
c580d516 13132
d5eec917
PB
13133clean-ld:
13134 @[ -f ./ld/Makefile ] || exit 0; \
c580d516
PB
13135 r=`${PWD_COMMAND}`; export r; \
13136 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13137 $(SET_LIB_PATH) \
a675b75a 13138 $(HOST_EXPORTS) \
d5eec917 13139 for flag in $(EXTRA_HOST_FLAGS) ; do \
c580d516
PB
13140 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13141 done; \
d5eec917 13142 echo "Doing clean in ld" ; \
7fc2ca22 13143 (cd $(HOST_SUBDIR)/ld && \
c580d516
PB
13144 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13145 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13146 "RANLIB=$${RANLIB}" \
13147 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 13148 clean) \
c580d516
PB
13149 || exit 1
13150
d5eec917 13151@endif ld
c580d516 13152
d5eec917
PB
13153.PHONY: maybe-distclean-ld distclean-ld
13154maybe-distclean-ld:
13155@if ld
13156maybe-distclean-ld: distclean-ld
c580d516 13157
d5eec917
PB
13158distclean-ld:
13159 @[ -f ./ld/Makefile ] || exit 0; \
c580d516
PB
13160 r=`${PWD_COMMAND}`; export r; \
13161 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13162 $(SET_LIB_PATH) \
a675b75a 13163 $(HOST_EXPORTS) \
d5eec917 13164 for flag in $(EXTRA_HOST_FLAGS) ; do \
c580d516
PB
13165 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13166 done; \
d5eec917 13167 echo "Doing distclean in ld" ; \
7fc2ca22 13168 (cd $(HOST_SUBDIR)/ld && \
c580d516
PB
13169 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13170 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13171 "RANLIB=$${RANLIB}" \
13172 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 13173 distclean) \
c580d516
PB
13174 || exit 1
13175
d5eec917 13176@endif ld
c580d516 13177
d5eec917
PB
13178.PHONY: maybe-maintainer-clean-ld maintainer-clean-ld
13179maybe-maintainer-clean-ld:
13180@if ld
13181maybe-maintainer-clean-ld: maintainer-clean-ld
c580d516 13182
d5eec917
PB
13183maintainer-clean-ld:
13184 @[ -f ./ld/Makefile ] || exit 0; \
c580d516
PB
13185 r=`${PWD_COMMAND}`; export r; \
13186 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13187 $(SET_LIB_PATH) \
a675b75a 13188 $(HOST_EXPORTS) \
d5eec917 13189 for flag in $(EXTRA_HOST_FLAGS) ; do \
c580d516
PB
13190 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13191 done; \
d5eec917 13192 echo "Doing maintainer-clean in ld" ; \
7fc2ca22 13193 (cd $(HOST_SUBDIR)/ld && \
c580d516
PB
13194 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13195 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13196 "RANLIB=$${RANLIB}" \
13197 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 13198 maintainer-clean) \
c580d516
PB
13199 || exit 1
13200
d5eec917 13201@endif ld
c580d516
PB
13202
13203
d5eec917
PB
13204.PHONY: configure-libcpp maybe-configure-libcpp
13205maybe-configure-libcpp:
13206@if libcpp
13207maybe-configure-libcpp: configure-libcpp
13208configure-libcpp:
6a19fd82 13209 @test -f stage_last && exit 0; \
7fc2ca22
PB
13210 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
13211 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
8ec98d6c
NN
13212 r=`${PWD_COMMAND}`; export r; \
13213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 13214 $(HOST_EXPORTS) \
d5eec917 13215 echo Configuring in libcpp; \
7fc2ca22 13216 cd $(HOST_SUBDIR)/libcpp || exit 1; \
8ec98d6c 13217 case $(srcdir) in \
7fc2ca22
PB
13218 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13219 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
13220 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 13221 esac; \
7fc2ca22
PB
13222 srcdiroption="--srcdir=$${topdir}/libcpp"; \
13223 libsrcdir="$$s/libcpp"; \
8ec98d6c 13224 $(SHELL) $${libsrcdir}/configure \
63673a5b 13225 $(HOST_CONFIGARGS) $${srcdiroption} \
8ec98d6c 13226 || exit 1
d5eec917 13227@endif libcpp
8ec98d6c 13228
d5eec917
PB
13229.PHONY: all-libcpp maybe-all-libcpp
13230maybe-all-libcpp:
13231@if libcpp
5e6b1f07 13232TARGET-libcpp=all
d5eec917
PB
13233maybe-all-libcpp: all-libcpp
13234all-libcpp: configure-libcpp
6a19fd82
PB
13235 @test -f stage_last && exit 0; \
13236 r=`${PWD_COMMAND}`; export r; \
8ec98d6c
NN
13237 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13238 $(SET_LIB_PATH) \
a675b75a 13239 $(HOST_EXPORTS) \
7fc2ca22
PB
13240 (cd $(HOST_SUBDIR)/libcpp && \
13241 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-libcpp))
d5eec917 13242@endif libcpp
8ec98d6c 13243
d5eec917
PB
13244.PHONY: check-libcpp maybe-check-libcpp
13245maybe-check-libcpp:
13246@if libcpp
13247maybe-check-libcpp: check-libcpp
8ec98d6c 13248
d5eec917 13249check-libcpp:
8ec98d6c
NN
13250 @r=`${PWD_COMMAND}`; export r; \
13251 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13252 $(SET_LIB_PATH) \
a675b75a 13253 $(HOST_EXPORTS) \
7fc2ca22
PB
13254 (cd $(HOST_SUBDIR)/libcpp && \
13255 $(MAKE) $(FLAGS_TO_PASS) check)
8ec98d6c 13256
d5eec917 13257@endif libcpp
8ec98d6c 13258
d5eec917
PB
13259.PHONY: install-libcpp maybe-install-libcpp
13260maybe-install-libcpp:
13261@if libcpp
13262maybe-install-libcpp: install-libcpp
13263
13264install-libcpp: installdirs
8ec98d6c
NN
13265 @r=`${PWD_COMMAND}`; export r; \
13266 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13267 $(SET_LIB_PATH) \
a675b75a 13268 $(HOST_EXPORTS) \
7fc2ca22 13269 (cd $(HOST_SUBDIR)/libcpp && \
93c60b6d 13270 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 13271
d5eec917 13272@endif libcpp
8ec98d6c
NN
13273
13274# Other targets (info, dvi, etc.)
13275
d5eec917
PB
13276.PHONY: maybe-info-libcpp info-libcpp
13277maybe-info-libcpp:
13278@if libcpp
13279maybe-info-libcpp: info-libcpp
8ec98d6c 13280
d5eec917
PB
13281info-libcpp: \
13282 configure-libcpp
13283 @[ -f ./libcpp/Makefile ] || exit 0; \
5230d454
L
13284 r=`${PWD_COMMAND}`; export r; \
13285 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 13286 $(SET_LIB_PATH) \
a675b75a 13287 $(HOST_EXPORTS) \
d5eec917 13288 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
13289 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13290 done; \
d5eec917 13291 echo "Doing info in libcpp" ; \
7fc2ca22 13292 (cd $(HOST_SUBDIR)/libcpp && \
657b58f4
NN
13293 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13294 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13295 "RANLIB=$${RANLIB}" \
13296 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 13297 info) \
657b58f4
NN
13298 || exit 1
13299
d5eec917 13300@endif libcpp
657b58f4 13301
d5eec917
PB
13302.PHONY: maybe-dvi-libcpp dvi-libcpp
13303maybe-dvi-libcpp:
13304@if libcpp
13305maybe-dvi-libcpp: dvi-libcpp
657b58f4 13306
d5eec917
PB
13307dvi-libcpp: \
13308 configure-libcpp
13309 @[ -f ./libcpp/Makefile ] || exit 0; \
5230d454
L
13310 r=`${PWD_COMMAND}`; export r; \
13311 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 13312 $(SET_LIB_PATH) \
a675b75a 13313 $(HOST_EXPORTS) \
d5eec917 13314 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
13315 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13316 done; \
d5eec917 13317 echo "Doing dvi in libcpp" ; \
7fc2ca22 13318 (cd $(HOST_SUBDIR)/libcpp && \
657b58f4
NN
13319 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13320 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13321 "RANLIB=$${RANLIB}" \
13322 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 13323 dvi) \
657b58f4
NN
13324 || exit 1
13325
d5eec917 13326@endif libcpp
657b58f4 13327
b6fb961f
MS
13328.PHONY: maybe-html-libcpp html-libcpp
13329maybe-html-libcpp:
13330@if libcpp
13331maybe-html-libcpp: html-libcpp
13332
13333html-libcpp: \
13334 configure-libcpp
13335 @[ -f ./libcpp/Makefile ] || exit 0; \
13336 r=`${PWD_COMMAND}`; export r; \
13337 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13338 $(SET_LIB_PATH) \
13339 $(HOST_EXPORTS) \
13340 for flag in $(EXTRA_HOST_FLAGS) ; do \
13341 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13342 done; \
13343 echo "Doing html in libcpp" ; \
7fc2ca22 13344 (cd $(HOST_SUBDIR)/libcpp && \
b6fb961f
MS
13345 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13346 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13347 "RANLIB=$${RANLIB}" \
13348 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13349 html) \
13350 || exit 1
13351
13352@endif libcpp
13353
d5eec917
PB
13354.PHONY: maybe-TAGS-libcpp TAGS-libcpp
13355maybe-TAGS-libcpp:
13356@if libcpp
13357maybe-TAGS-libcpp: TAGS-libcpp
657b58f4 13358
d5eec917
PB
13359TAGS-libcpp: \
13360 configure-libcpp
13361 @[ -f ./libcpp/Makefile ] || exit 0; \
5230d454
L
13362 r=`${PWD_COMMAND}`; export r; \
13363 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 13364 $(SET_LIB_PATH) \
a675b75a 13365 $(HOST_EXPORTS) \
d5eec917 13366 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
13367 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13368 done; \
d5eec917 13369 echo "Doing TAGS in libcpp" ; \
7fc2ca22 13370 (cd $(HOST_SUBDIR)/libcpp && \
657b58f4
NN
13371 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13372 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13373 "RANLIB=$${RANLIB}" \
13374 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 13375 TAGS) \
657b58f4
NN
13376 || exit 1
13377
d5eec917 13378@endif libcpp
657b58f4 13379
d5eec917
PB
13380.PHONY: maybe-install-info-libcpp install-info-libcpp
13381maybe-install-info-libcpp:
13382@if libcpp
13383maybe-install-info-libcpp: install-info-libcpp
657b58f4 13384
d5eec917
PB
13385install-info-libcpp: \
13386 configure-libcpp \
13387 info-libcpp
13388 @[ -f ./libcpp/Makefile ] || exit 0; \
5230d454
L
13389 r=`${PWD_COMMAND}`; export r; \
13390 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 13391 $(SET_LIB_PATH) \
a675b75a 13392 $(HOST_EXPORTS) \
d5eec917 13393 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
13394 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13395 done; \
d5eec917 13396 echo "Doing install-info in libcpp" ; \
7fc2ca22 13397 (cd $(HOST_SUBDIR)/libcpp && \
657b58f4
NN
13398 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13399 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13400 "RANLIB=$${RANLIB}" \
13401 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 13402 install-info) \
657b58f4
NN
13403 || exit 1
13404
d5eec917 13405@endif libcpp
657b58f4 13406
d5eec917
PB
13407.PHONY: maybe-installcheck-libcpp installcheck-libcpp
13408maybe-installcheck-libcpp:
13409@if libcpp
13410maybe-installcheck-libcpp: installcheck-libcpp
657b58f4 13411
d5eec917
PB
13412installcheck-libcpp: \
13413 configure-libcpp
13414 @[ -f ./libcpp/Makefile ] || exit 0; \
5230d454
L
13415 r=`${PWD_COMMAND}`; export r; \
13416 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 13417 $(SET_LIB_PATH) \
a675b75a 13418 $(HOST_EXPORTS) \
d5eec917 13419 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
13420 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13421 done; \
d5eec917 13422 echo "Doing installcheck in libcpp" ; \
7fc2ca22 13423 (cd $(HOST_SUBDIR)/libcpp && \
657b58f4
NN
13424 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13425 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13426 "RANLIB=$${RANLIB}" \
13427 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 13428 installcheck) \
657b58f4
NN
13429 || exit 1
13430
d5eec917 13431@endif libcpp
657b58f4 13432
d5eec917
PB
13433.PHONY: maybe-mostlyclean-libcpp mostlyclean-libcpp
13434maybe-mostlyclean-libcpp:
13435@if libcpp
13436maybe-mostlyclean-libcpp: mostlyclean-libcpp
657b58f4 13437
d5eec917
PB
13438mostlyclean-libcpp:
13439 @[ -f ./libcpp/Makefile ] || exit 0; \
5230d454
L
13440 r=`${PWD_COMMAND}`; export r; \
13441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 13442 $(SET_LIB_PATH) \
a675b75a 13443 $(HOST_EXPORTS) \
d5eec917 13444 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
13445 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13446 done; \
d5eec917 13447 echo "Doing mostlyclean in libcpp" ; \
7fc2ca22 13448 (cd $(HOST_SUBDIR)/libcpp && \
657b58f4
NN
13449 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13450 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13451 "RANLIB=$${RANLIB}" \
13452 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 13453 mostlyclean) \
657b58f4
NN
13454 || exit 1
13455
d5eec917 13456@endif libcpp
657b58f4 13457
d5eec917
PB
13458.PHONY: maybe-clean-libcpp clean-libcpp
13459maybe-clean-libcpp:
13460@if libcpp
13461maybe-clean-libcpp: clean-libcpp
657b58f4 13462
d5eec917
PB
13463clean-libcpp:
13464 @[ -f ./libcpp/Makefile ] || exit 0; \
5230d454
L
13465 r=`${PWD_COMMAND}`; export r; \
13466 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 13467 $(SET_LIB_PATH) \
a675b75a 13468 $(HOST_EXPORTS) \
d5eec917 13469 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
13470 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13471 done; \
d5eec917 13472 echo "Doing clean in libcpp" ; \
7fc2ca22 13473 (cd $(HOST_SUBDIR)/libcpp && \
657b58f4
NN
13474 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13475 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13476 "RANLIB=$${RANLIB}" \
13477 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 13478 clean) \
657b58f4
NN
13479 || exit 1
13480
d5eec917 13481@endif libcpp
657b58f4 13482
d5eec917
PB
13483.PHONY: maybe-distclean-libcpp distclean-libcpp
13484maybe-distclean-libcpp:
13485@if libcpp
13486maybe-distclean-libcpp: distclean-libcpp
657b58f4 13487
d5eec917
PB
13488distclean-libcpp:
13489 @[ -f ./libcpp/Makefile ] || exit 0; \
5230d454
L
13490 r=`${PWD_COMMAND}`; export r; \
13491 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 13492 $(SET_LIB_PATH) \
a675b75a 13493 $(HOST_EXPORTS) \
d5eec917 13494 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
13495 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13496 done; \
d5eec917 13497 echo "Doing distclean in libcpp" ; \
7fc2ca22 13498 (cd $(HOST_SUBDIR)/libcpp && \
657b58f4
NN
13499 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13500 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13501 "RANLIB=$${RANLIB}" \
13502 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 13503 distclean) \
657b58f4
NN
13504 || exit 1
13505
d5eec917 13506@endif libcpp
657b58f4 13507
d5eec917
PB
13508.PHONY: maybe-maintainer-clean-libcpp maintainer-clean-libcpp
13509maybe-maintainer-clean-libcpp:
13510@if libcpp
13511maybe-maintainer-clean-libcpp: maintainer-clean-libcpp
657b58f4 13512
d5eec917
PB
13513maintainer-clean-libcpp:
13514 @[ -f ./libcpp/Makefile ] || exit 0; \
5230d454
L
13515 r=`${PWD_COMMAND}`; export r; \
13516 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 13517 $(SET_LIB_PATH) \
a675b75a 13518 $(HOST_EXPORTS) \
d5eec917 13519 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
13520 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13521 done; \
d5eec917 13522 echo "Doing maintainer-clean in libcpp" ; \
7fc2ca22 13523 (cd $(HOST_SUBDIR)/libcpp && \
657b58f4
NN
13524 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13525 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13526 "RANLIB=$${RANLIB}" \
13527 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 13528 maintainer-clean) \
657b58f4
NN
13529 || exit 1
13530
d5eec917 13531@endif libcpp
657b58f4 13532
657b58f4 13533
d5eec917
PB
13534.PHONY: configure-libgui maybe-configure-libgui
13535maybe-configure-libgui:
13536@if libgui
13537maybe-configure-libgui: configure-libgui
13538configure-libgui:
7fc2ca22
PB
13539 @test ! -f $(HOST_SUBDIR)/libgui/Makefile || exit 0; \
13540 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libgui ; \
cb2333e8
DD
13541 r=`${PWD_COMMAND}`; export r; \
13542 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 13543 $(HOST_EXPORTS) \
d5eec917 13544 echo Configuring in libgui; \
7fc2ca22 13545 cd $(HOST_SUBDIR)/libgui || exit 1; \
cb2333e8 13546 case $(srcdir) in \
7fc2ca22
PB
13547 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13548 *) topdir=`echo $(HOST_SUBDIR)/libgui/ | \
13549 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
cb2333e8 13550 esac; \
7fc2ca22
PB
13551 srcdiroption="--srcdir=$${topdir}/libgui"; \
13552 libsrcdir="$$s/libgui"; \
cb2333e8 13553 $(SHELL) $${libsrcdir}/configure \
63673a5b 13554 $(HOST_CONFIGARGS) $${srcdiroption} \
cb2333e8 13555 || exit 1
d5eec917 13556@endif libgui
cb2333e8 13557
d5eec917
PB
13558.PHONY: all-libgui maybe-all-libgui
13559maybe-all-libgui:
13560@if libgui
5e6b1f07 13561TARGET-libgui=all
d5eec917
PB
13562maybe-all-libgui: all-libgui
13563all-libgui: configure-libgui
cb2333e8
DD
13564 @r=`${PWD_COMMAND}`; export r; \
13565 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13566 $(SET_LIB_PATH) \
a675b75a 13567 $(HOST_EXPORTS) \
7fc2ca22
PB
13568 (cd $(HOST_SUBDIR)/libgui && \
13569 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-libgui))
d5eec917 13570@endif libgui
cb2333e8 13571
d5eec917
PB
13572.PHONY: check-libgui maybe-check-libgui
13573maybe-check-libgui:
13574@if libgui
13575maybe-check-libgui: check-libgui
cb2333e8 13576
d5eec917 13577check-libgui:
cb2333e8
DD
13578 @r=`${PWD_COMMAND}`; export r; \
13579 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13580 $(SET_LIB_PATH) \
a675b75a 13581 $(HOST_EXPORTS) \
7fc2ca22
PB
13582 (cd $(HOST_SUBDIR)/libgui && \
13583 $(MAKE) $(FLAGS_TO_PASS) check)
cb2333e8 13584
d5eec917 13585@endif libgui
cb2333e8 13586
d5eec917
PB
13587.PHONY: install-libgui maybe-install-libgui
13588maybe-install-libgui:
13589@if libgui
13590maybe-install-libgui: install-libgui
cb2333e8 13591
d5eec917
PB
13592install-libgui: installdirs
13593 @r=`${PWD_COMMAND}`; export r; \
13594 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13595 $(SET_LIB_PATH) \
13596 $(HOST_EXPORTS) \
7fc2ca22 13597 (cd $(HOST_SUBDIR)/libgui && \
93c60b6d 13598 $(MAKE) $(FLAGS_TO_PASS) install)
cb2333e8 13599
d5eec917 13600@endif libgui
cb2333e8
DD
13601
13602# Other targets (info, dvi, etc.)
13603
d5eec917
PB
13604.PHONY: maybe-info-libgui info-libgui
13605maybe-info-libgui:
13606@if libgui
13607maybe-info-libgui: info-libgui
cb2333e8 13608
d5eec917
PB
13609info-libgui: \
13610 configure-libgui
13611 @[ -f ./libgui/Makefile ] || exit 0; \
cb2333e8
DD
13612 r=`${PWD_COMMAND}`; export r; \
13613 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13614 $(SET_LIB_PATH) \
a675b75a 13615 $(HOST_EXPORTS) \
d5eec917 13616 for flag in $(EXTRA_HOST_FLAGS) ; do \
cb2333e8
DD
13617 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13618 done; \
d5eec917 13619 echo "Doing info in libgui" ; \
7fc2ca22 13620 (cd $(HOST_SUBDIR)/libgui && \
cb2333e8
DD
13621 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13622 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13623 "RANLIB=$${RANLIB}" \
13624 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 13625 info) \
cb2333e8
DD
13626 || exit 1
13627
d5eec917 13628@endif libgui
cb2333e8 13629
d5eec917
PB
13630.PHONY: maybe-dvi-libgui dvi-libgui
13631maybe-dvi-libgui:
13632@if libgui
13633maybe-dvi-libgui: dvi-libgui
cb2333e8 13634
d5eec917
PB
13635dvi-libgui: \
13636 configure-libgui
13637 @[ -f ./libgui/Makefile ] || exit 0; \
cb2333e8
DD
13638 r=`${PWD_COMMAND}`; export r; \
13639 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13640 $(SET_LIB_PATH) \
a675b75a 13641 $(HOST_EXPORTS) \
d5eec917 13642 for flag in $(EXTRA_HOST_FLAGS) ; do \
cb2333e8
DD
13643 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13644 done; \
d5eec917 13645 echo "Doing dvi in libgui" ; \
7fc2ca22 13646 (cd $(HOST_SUBDIR)/libgui && \
cb2333e8
DD
13647 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13648 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13649 "RANLIB=$${RANLIB}" \
13650 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 13651 dvi) \
cb2333e8
DD
13652 || exit 1
13653
d5eec917 13654@endif libgui
cb2333e8 13655
b6fb961f
MS
13656.PHONY: maybe-html-libgui html-libgui
13657maybe-html-libgui:
13658@if libgui
13659maybe-html-libgui: html-libgui
13660
13661html-libgui: \
13662 configure-libgui
13663 @[ -f ./libgui/Makefile ] || exit 0; \
13664 r=`${PWD_COMMAND}`; export r; \
13665 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13666 $(SET_LIB_PATH) \
13667 $(HOST_EXPORTS) \
13668 for flag in $(EXTRA_HOST_FLAGS) ; do \
13669 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13670 done; \
13671 echo "Doing html in libgui" ; \
7fc2ca22 13672 (cd $(HOST_SUBDIR)/libgui && \
b6fb961f
MS
13673 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13674 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13675 "RANLIB=$${RANLIB}" \
13676 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13677 html) \
13678 || exit 1
13679
13680@endif libgui
13681
d5eec917
PB
13682.PHONY: maybe-TAGS-libgui TAGS-libgui
13683maybe-TAGS-libgui:
13684@if libgui
13685maybe-TAGS-libgui: TAGS-libgui
cb2333e8 13686
d5eec917
PB
13687TAGS-libgui: \
13688 configure-libgui
13689 @[ -f ./libgui/Makefile ] || exit 0; \
cb2333e8
DD
13690 r=`${PWD_COMMAND}`; export r; \
13691 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13692 $(SET_LIB_PATH) \
a675b75a 13693 $(HOST_EXPORTS) \
d5eec917 13694 for flag in $(EXTRA_HOST_FLAGS) ; do \
cb2333e8
DD
13695 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13696 done; \
d5eec917 13697 echo "Doing TAGS in libgui" ; \
7fc2ca22 13698 (cd $(HOST_SUBDIR)/libgui && \
cb2333e8
DD
13699 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13700 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13701 "RANLIB=$${RANLIB}" \
13702 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 13703 TAGS) \
cb2333e8
DD
13704 || exit 1
13705
d5eec917 13706@endif libgui
cb2333e8 13707
d5eec917
PB
13708.PHONY: maybe-install-info-libgui install-info-libgui
13709maybe-install-info-libgui:
13710@if libgui
13711maybe-install-info-libgui: install-info-libgui
cb2333e8 13712
d5eec917
PB
13713install-info-libgui: \
13714 configure-libgui \
13715 info-libgui
13716 @[ -f ./libgui/Makefile ] || exit 0; \
cb2333e8
DD
13717 r=`${PWD_COMMAND}`; export r; \
13718 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13719 $(SET_LIB_PATH) \
a675b75a 13720 $(HOST_EXPORTS) \
d5eec917 13721 for flag in $(EXTRA_HOST_FLAGS) ; do \
cb2333e8
DD
13722 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13723 done; \
d5eec917 13724 echo "Doing install-info in libgui" ; \
7fc2ca22 13725 (cd $(HOST_SUBDIR)/libgui && \
cb2333e8
DD
13726 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13727 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13728 "RANLIB=$${RANLIB}" \
13729 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 13730 install-info) \
cb2333e8
DD
13731 || exit 1
13732
d5eec917 13733@endif libgui
cb2333e8 13734
d5eec917
PB
13735.PHONY: maybe-installcheck-libgui installcheck-libgui
13736maybe-installcheck-libgui:
13737@if libgui
13738maybe-installcheck-libgui: installcheck-libgui
cb2333e8 13739
d5eec917
PB
13740installcheck-libgui: \
13741 configure-libgui
13742 @[ -f ./libgui/Makefile ] || exit 0; \
cb2333e8
DD
13743 r=`${PWD_COMMAND}`; export r; \
13744 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13745 $(SET_LIB_PATH) \
a675b75a 13746 $(HOST_EXPORTS) \
d5eec917 13747 for flag in $(EXTRA_HOST_FLAGS) ; do \
cb2333e8
DD
13748 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13749 done; \
d5eec917 13750 echo "Doing installcheck in libgui" ; \
7fc2ca22 13751 (cd $(HOST_SUBDIR)/libgui && \
cb2333e8
DD
13752 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13753 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13754 "RANLIB=$${RANLIB}" \
13755 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 13756 installcheck) \
cb2333e8
DD
13757 || exit 1
13758
d5eec917 13759@endif libgui
cb2333e8 13760
d5eec917
PB
13761.PHONY: maybe-mostlyclean-libgui mostlyclean-libgui
13762maybe-mostlyclean-libgui:
13763@if libgui
13764maybe-mostlyclean-libgui: mostlyclean-libgui
cb2333e8 13765
d5eec917
PB
13766mostlyclean-libgui:
13767 @[ -f ./libgui/Makefile ] || exit 0; \
cb2333e8
DD
13768 r=`${PWD_COMMAND}`; export r; \
13769 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13770 $(SET_LIB_PATH) \
a675b75a 13771 $(HOST_EXPORTS) \
d5eec917 13772 for flag in $(EXTRA_HOST_FLAGS) ; do \
cb2333e8
DD
13773 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13774 done; \
d5eec917 13775 echo "Doing mostlyclean in libgui" ; \
7fc2ca22 13776 (cd $(HOST_SUBDIR)/libgui && \
cb2333e8
DD
13777 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13778 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13779 "RANLIB=$${RANLIB}" \
13780 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 13781 mostlyclean) \
cb2333e8
DD
13782 || exit 1
13783
d5eec917 13784@endif libgui
cb2333e8 13785
d5eec917
PB
13786.PHONY: maybe-clean-libgui clean-libgui
13787maybe-clean-libgui:
13788@if libgui
13789maybe-clean-libgui: clean-libgui
cb2333e8 13790
d5eec917
PB
13791clean-libgui:
13792 @[ -f ./libgui/Makefile ] || exit 0; \
cb2333e8
DD
13793 r=`${PWD_COMMAND}`; export r; \
13794 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13795 $(SET_LIB_PATH) \
a675b75a 13796 $(HOST_EXPORTS) \
d5eec917 13797 for flag in $(EXTRA_HOST_FLAGS) ; do \
cb2333e8
DD
13798 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13799 done; \
d5eec917 13800 echo "Doing clean in libgui" ; \
7fc2ca22 13801 (cd $(HOST_SUBDIR)/libgui && \
cb2333e8
DD
13802 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13803 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13804 "RANLIB=$${RANLIB}" \
13805 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 13806 clean) \
cb2333e8
DD
13807 || exit 1
13808
d5eec917 13809@endif libgui
cb2333e8 13810
d5eec917
PB
13811.PHONY: maybe-distclean-libgui distclean-libgui
13812maybe-distclean-libgui:
13813@if libgui
13814maybe-distclean-libgui: distclean-libgui
cb2333e8 13815
d5eec917
PB
13816distclean-libgui:
13817 @[ -f ./libgui/Makefile ] || exit 0; \
cb2333e8
DD
13818 r=`${PWD_COMMAND}`; export r; \
13819 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13820 $(SET_LIB_PATH) \
a675b75a 13821 $(HOST_EXPORTS) \
d5eec917 13822 for flag in $(EXTRA_HOST_FLAGS) ; do \
cb2333e8
DD
13823 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13824 done; \
d5eec917 13825 echo "Doing distclean in libgui" ; \
7fc2ca22 13826 (cd $(HOST_SUBDIR)/libgui && \
cb2333e8
DD
13827 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13828 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13829 "RANLIB=$${RANLIB}" \
13830 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 13831 distclean) \
cb2333e8
DD
13832 || exit 1
13833
d5eec917 13834@endif libgui
cb2333e8 13835
d5eec917
PB
13836.PHONY: maybe-maintainer-clean-libgui maintainer-clean-libgui
13837maybe-maintainer-clean-libgui:
13838@if libgui
13839maybe-maintainer-clean-libgui: maintainer-clean-libgui
cb2333e8 13840
d5eec917
PB
13841maintainer-clean-libgui:
13842 @[ -f ./libgui/Makefile ] || exit 0; \
cb2333e8
DD
13843 r=`${PWD_COMMAND}`; export r; \
13844 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13845 $(SET_LIB_PATH) \
a675b75a 13846 $(HOST_EXPORTS) \
d5eec917 13847 for flag in $(EXTRA_HOST_FLAGS) ; do \
cb2333e8
DD
13848 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13849 done; \
d5eec917 13850 echo "Doing maintainer-clean in libgui" ; \
7fc2ca22 13851 (cd $(HOST_SUBDIR)/libgui && \
cb2333e8
DD
13852 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13853 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13854 "RANLIB=$${RANLIB}" \
13855 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 13856 maintainer-clean) \
cb2333e8
DD
13857 || exit 1
13858
d5eec917 13859@endif libgui
cb2333e8
DD
13860
13861
d5eec917
PB
13862.PHONY: configure-libiberty maybe-configure-libiberty
13863maybe-configure-libiberty:
13864@if libiberty
13865maybe-configure-libiberty: configure-libiberty
13866configure-libiberty:
6a19fd82 13867 @test -f stage_last && exit 0; \
7fc2ca22
PB
13868 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
13869 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
5230d454
L
13870 r=`${PWD_COMMAND}`; export r; \
13871 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 13872 $(HOST_EXPORTS) \
d5eec917 13873 echo Configuring in libiberty; \
7fc2ca22 13874 cd $(HOST_SUBDIR)/libiberty || exit 1; \
8ec98d6c 13875 case $(srcdir) in \
7fc2ca22
PB
13876 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13877 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
13878 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 13879 esac; \
7fc2ca22
PB
13880 srcdiroption="--srcdir=$${topdir}/libiberty"; \
13881 libsrcdir="$$s/libiberty"; \
8ec98d6c 13882 $(SHELL) $${libsrcdir}/configure \
63673a5b 13883 $(HOST_CONFIGARGS) $${srcdiroption} \
657b58f4 13884 || exit 1
d5eec917 13885@endif libiberty
657b58f4 13886
d5eec917
PB
13887.PHONY: all-libiberty maybe-all-libiberty
13888maybe-all-libiberty:
13889@if libiberty
5e6b1f07 13890TARGET-libiberty=all
d5eec917
PB
13891maybe-all-libiberty: all-libiberty
13892all-libiberty: configure-libiberty
6a19fd82
PB
13893 @test -f stage_last && exit 0; \
13894 r=`${PWD_COMMAND}`; export r; \
d5eec917
PB
13895 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13896 $(SET_LIB_PATH) \
a675b75a 13897 $(HOST_EXPORTS) \
7fc2ca22
PB
13898 (cd $(HOST_SUBDIR)/libiberty && \
13899 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-libiberty))
d5eec917 13900@endif libiberty
657b58f4 13901
d5eec917
PB
13902.PHONY: check-libiberty maybe-check-libiberty
13903maybe-check-libiberty:
13904@if libiberty
13905maybe-check-libiberty: check-libiberty
657b58f4 13906
d5eec917 13907check-libiberty:
8ec98d6c 13908 @r=`${PWD_COMMAND}`; export r; \
5230d454 13909 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 13910 $(SET_LIB_PATH) \
a675b75a 13911 $(HOST_EXPORTS) \
7fc2ca22
PB
13912 (cd $(HOST_SUBDIR)/libiberty && \
13913 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 13914
d5eec917 13915@endif libiberty
657b58f4 13916
d5eec917
PB
13917.PHONY: install-libiberty maybe-install-libiberty
13918maybe-install-libiberty:
13919@if libiberty
13920maybe-install-libiberty: install-libiberty
657b58f4 13921
d5eec917 13922install-libiberty: installdirs
8ec98d6c 13923 @r=`${PWD_COMMAND}`; export r; \
5230d454 13924 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 13925 $(SET_LIB_PATH) \
a675b75a 13926 $(HOST_EXPORTS) \
7fc2ca22 13927 (cd $(HOST_SUBDIR)/libiberty && \
93c60b6d 13928 $(MAKE) $(FLAGS_TO_PASS) install)
657b58f4 13929
d5eec917 13930@endif libiberty
657b58f4 13931
8ec98d6c 13932# Other targets (info, dvi, etc.)
657b58f4 13933
d5eec917
PB
13934.PHONY: maybe-info-libiberty info-libiberty
13935maybe-info-libiberty:
13936@if libiberty
13937maybe-info-libiberty: info-libiberty
8ec98d6c 13938
d5eec917
PB
13939info-libiberty: \
13940 configure-libiberty
13941 @[ -f ./libiberty/Makefile ] || exit 0; \
5230d454
L
13942 r=`${PWD_COMMAND}`; export r; \
13943 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 13944 $(SET_LIB_PATH) \
a675b75a 13945 $(HOST_EXPORTS) \
d5eec917 13946 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
13947 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13948 done; \
b6fb961f 13949 echo "Doing info in libiberty" ; \
7fc2ca22 13950 (cd $(HOST_SUBDIR)/libiberty && \
b6fb961f
MS
13951 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13952 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13953 "RANLIB=$${RANLIB}" \
13954 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13955 info) \
13956 || exit 1
13957
13958@endif libiberty
13959
13960.PHONY: maybe-dvi-libiberty dvi-libiberty
13961maybe-dvi-libiberty:
13962@if libiberty
13963maybe-dvi-libiberty: dvi-libiberty
13964
13965dvi-libiberty: \
13966 configure-libiberty
13967 @[ -f ./libiberty/Makefile ] || exit 0; \
13968 r=`${PWD_COMMAND}`; export r; \
13969 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13970 $(SET_LIB_PATH) \
13971 $(HOST_EXPORTS) \
13972 for flag in $(EXTRA_HOST_FLAGS) ; do \
13973 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13974 done; \
13975 echo "Doing dvi in libiberty" ; \
7fc2ca22 13976 (cd $(HOST_SUBDIR)/libiberty && \
657b58f4
NN
13977 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13978 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13979 "RANLIB=$${RANLIB}" \
13980 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b6fb961f 13981 dvi) \
657b58f4
NN
13982 || exit 1
13983
d5eec917 13984@endif libiberty
657b58f4 13985
b6fb961f
MS
13986.PHONY: maybe-html-libiberty html-libiberty
13987maybe-html-libiberty:
d5eec917 13988@if libiberty
b6fb961f 13989maybe-html-libiberty: html-libiberty
657b58f4 13990
b6fb961f 13991html-libiberty: \
d5eec917
PB
13992 configure-libiberty
13993 @[ -f ./libiberty/Makefile ] || exit 0; \
5230d454
L
13994 r=`${PWD_COMMAND}`; export r; \
13995 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 13996 $(SET_LIB_PATH) \
a675b75a 13997 $(HOST_EXPORTS) \
d5eec917 13998 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
13999 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14000 done; \
b6fb961f 14001 echo "Doing html in libiberty" ; \
7fc2ca22 14002 (cd $(HOST_SUBDIR)/libiberty && \
657b58f4
NN
14003 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14004 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14005 "RANLIB=$${RANLIB}" \
14006 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b6fb961f 14007 html) \
657b58f4
NN
14008 || exit 1
14009
d5eec917 14010@endif libiberty
657b58f4 14011
d5eec917
PB
14012.PHONY: maybe-TAGS-libiberty TAGS-libiberty
14013maybe-TAGS-libiberty:
14014@if libiberty
14015maybe-TAGS-libiberty: TAGS-libiberty
657b58f4 14016
d5eec917
PB
14017TAGS-libiberty: \
14018 configure-libiberty
14019 @[ -f ./libiberty/Makefile ] || exit 0; \
5230d454
L
14020 r=`${PWD_COMMAND}`; export r; \
14021 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 14022 $(SET_LIB_PATH) \
a675b75a 14023 $(HOST_EXPORTS) \
d5eec917 14024 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
14025 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14026 done; \
d5eec917 14027 echo "Doing TAGS in libiberty" ; \
7fc2ca22 14028 (cd $(HOST_SUBDIR)/libiberty && \
657b58f4
NN
14029 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14030 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14031 "RANLIB=$${RANLIB}" \
14032 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 14033 TAGS) \
657b58f4
NN
14034 || exit 1
14035
d5eec917 14036@endif libiberty
657b58f4 14037
d5eec917
PB
14038.PHONY: maybe-install-info-libiberty install-info-libiberty
14039maybe-install-info-libiberty:
14040@if libiberty
14041maybe-install-info-libiberty: install-info-libiberty
657b58f4 14042
d5eec917
PB
14043install-info-libiberty: \
14044 configure-libiberty \
14045 info-libiberty
14046 @[ -f ./libiberty/Makefile ] || exit 0; \
5230d454
L
14047 r=`${PWD_COMMAND}`; export r; \
14048 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 14049 $(SET_LIB_PATH) \
a675b75a 14050 $(HOST_EXPORTS) \
d5eec917 14051 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
14052 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14053 done; \
d5eec917 14054 echo "Doing install-info in libiberty" ; \
7fc2ca22 14055 (cd $(HOST_SUBDIR)/libiberty && \
657b58f4
NN
14056 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14057 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14058 "RANLIB=$${RANLIB}" \
14059 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 14060 install-info) \
657b58f4
NN
14061 || exit 1
14062
d5eec917 14063@endif libiberty
657b58f4 14064
d5eec917
PB
14065.PHONY: maybe-installcheck-libiberty installcheck-libiberty
14066maybe-installcheck-libiberty:
14067@if libiberty
14068maybe-installcheck-libiberty: installcheck-libiberty
657b58f4 14069
d5eec917
PB
14070installcheck-libiberty: \
14071 configure-libiberty
14072 @[ -f ./libiberty/Makefile ] || exit 0; \
5230d454
L
14073 r=`${PWD_COMMAND}`; export r; \
14074 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 14075 $(SET_LIB_PATH) \
a675b75a 14076 $(HOST_EXPORTS) \
d5eec917 14077 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
14078 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14079 done; \
d5eec917 14080 echo "Doing installcheck in libiberty" ; \
7fc2ca22 14081 (cd $(HOST_SUBDIR)/libiberty && \
657b58f4
NN
14082 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14083 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14084 "RANLIB=$${RANLIB}" \
14085 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 14086 installcheck) \
657b58f4
NN
14087 || exit 1
14088
d5eec917 14089@endif libiberty
657b58f4 14090
d5eec917
PB
14091.PHONY: maybe-mostlyclean-libiberty mostlyclean-libiberty
14092maybe-mostlyclean-libiberty:
14093@if libiberty
14094maybe-mostlyclean-libiberty: mostlyclean-libiberty
657b58f4 14095
d5eec917
PB
14096mostlyclean-libiberty:
14097 @[ -f ./libiberty/Makefile ] || exit 0; \
5230d454
L
14098 r=`${PWD_COMMAND}`; export r; \
14099 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 14100 $(SET_LIB_PATH) \
a675b75a 14101 $(HOST_EXPORTS) \
d5eec917 14102 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
14103 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14104 done; \
d5eec917 14105 echo "Doing mostlyclean in libiberty" ; \
7fc2ca22 14106 (cd $(HOST_SUBDIR)/libiberty && \
657b58f4
NN
14107 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14108 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14109 "RANLIB=$${RANLIB}" \
14110 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 14111 mostlyclean) \
657b58f4
NN
14112 || exit 1
14113
d5eec917 14114@endif libiberty
657b58f4 14115
d5eec917
PB
14116.PHONY: maybe-clean-libiberty clean-libiberty
14117maybe-clean-libiberty:
14118@if libiberty
14119maybe-clean-libiberty: clean-libiberty
657b58f4 14120
d5eec917
PB
14121clean-libiberty:
14122 @[ -f ./libiberty/Makefile ] || exit 0; \
5230d454
L
14123 r=`${PWD_COMMAND}`; export r; \
14124 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 14125 $(SET_LIB_PATH) \
a675b75a 14126 $(HOST_EXPORTS) \
d5eec917 14127 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
14128 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14129 done; \
d5eec917 14130 echo "Doing clean in libiberty" ; \
7fc2ca22 14131 (cd $(HOST_SUBDIR)/libiberty && \
657b58f4
NN
14132 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14133 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14134 "RANLIB=$${RANLIB}" \
14135 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 14136 clean) \
657b58f4
NN
14137 || exit 1
14138
d5eec917 14139@endif libiberty
657b58f4 14140
d5eec917
PB
14141.PHONY: maybe-distclean-libiberty distclean-libiberty
14142maybe-distclean-libiberty:
14143@if libiberty
14144maybe-distclean-libiberty: distclean-libiberty
657b58f4 14145
d5eec917
PB
14146distclean-libiberty:
14147 @[ -f ./libiberty/Makefile ] || exit 0; \
5230d454
L
14148 r=`${PWD_COMMAND}`; export r; \
14149 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 14150 $(SET_LIB_PATH) \
a675b75a 14151 $(HOST_EXPORTS) \
d5eec917 14152 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
14153 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14154 done; \
d5eec917 14155 echo "Doing distclean in libiberty" ; \
7fc2ca22 14156 (cd $(HOST_SUBDIR)/libiberty && \
657b58f4
NN
14157 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14158 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14159 "RANLIB=$${RANLIB}" \
14160 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 14161 distclean) \
657b58f4
NN
14162 || exit 1
14163
d5eec917 14164@endif libiberty
657b58f4 14165
d5eec917
PB
14166.PHONY: maybe-maintainer-clean-libiberty maintainer-clean-libiberty
14167maybe-maintainer-clean-libiberty:
14168@if libiberty
14169maybe-maintainer-clean-libiberty: maintainer-clean-libiberty
657b58f4 14170
d5eec917
PB
14171maintainer-clean-libiberty:
14172 @[ -f ./libiberty/Makefile ] || exit 0; \
5230d454
L
14173 r=`${PWD_COMMAND}`; export r; \
14174 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 14175 $(SET_LIB_PATH) \
a675b75a 14176 $(HOST_EXPORTS) \
d5eec917 14177 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
14178 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14179 done; \
d5eec917 14180 echo "Doing maintainer-clean in libiberty" ; \
7fc2ca22 14181 (cd $(HOST_SUBDIR)/libiberty && \
657b58f4
NN
14182 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14183 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14184 "RANLIB=$${RANLIB}" \
14185 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 14186 maintainer-clean) \
657b58f4
NN
14187 || exit 1
14188
d5eec917 14189@endif libiberty
657b58f4 14190
657b58f4 14191
d5eec917
PB
14192.PHONY: configure-libtool maybe-configure-libtool
14193maybe-configure-libtool:
14194@if libtool
14195maybe-configure-libtool: configure-libtool
14196configure-libtool:
7fc2ca22
PB
14197 @test ! -f $(HOST_SUBDIR)/libtool/Makefile || exit 0; \
14198 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libtool ; \
5230d454
L
14199 r=`${PWD_COMMAND}`; export r; \
14200 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 14201 $(HOST_EXPORTS) \
d5eec917 14202 echo Configuring in libtool; \
7fc2ca22 14203 cd $(HOST_SUBDIR)/libtool || exit 1; \
8ec98d6c 14204 case $(srcdir) in \
7fc2ca22
PB
14205 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
14206 *) topdir=`echo $(HOST_SUBDIR)/libtool/ | \
14207 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 14208 esac; \
7fc2ca22
PB
14209 srcdiroption="--srcdir=$${topdir}/libtool"; \
14210 libsrcdir="$$s/libtool"; \
8ec98d6c 14211 $(SHELL) $${libsrcdir}/configure \
63673a5b 14212 $(HOST_CONFIGARGS) $${srcdiroption} \
657b58f4 14213 || exit 1
d5eec917 14214@endif libtool
657b58f4 14215
d5eec917
PB
14216.PHONY: all-libtool maybe-all-libtool
14217maybe-all-libtool:
14218@if libtool
5e6b1f07 14219TARGET-libtool=all
d5eec917
PB
14220maybe-all-libtool: all-libtool
14221all-libtool: configure-libtool
8ec98d6c
NN
14222 @r=`${PWD_COMMAND}`; export r; \
14223 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14224 $(SET_LIB_PATH) \
a675b75a 14225 $(HOST_EXPORTS) \
7fc2ca22
PB
14226 (cd $(HOST_SUBDIR)/libtool && \
14227 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-libtool))
d5eec917 14228@endif libtool
657b58f4 14229
d5eec917
PB
14230.PHONY: check-libtool maybe-check-libtool
14231maybe-check-libtool:
14232@if libtool
14233maybe-check-libtool: check-libtool
657b58f4 14234
d5eec917 14235check-libtool:
8ec98d6c 14236 @r=`${PWD_COMMAND}`; export r; \
5230d454 14237 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 14238 $(SET_LIB_PATH) \
a675b75a 14239 $(HOST_EXPORTS) \
7fc2ca22
PB
14240 (cd $(HOST_SUBDIR)/libtool && \
14241 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 14242
d5eec917 14243@endif libtool
657b58f4 14244
d5eec917
PB
14245.PHONY: install-libtool maybe-install-libtool
14246maybe-install-libtool:
14247@if libtool
14248maybe-install-libtool: install-libtool
657b58f4 14249
d5eec917 14250install-libtool: installdirs
8ec98d6c 14251 @r=`${PWD_COMMAND}`; export r; \
5230d454 14252 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 14253 $(SET_LIB_PATH) \
a675b75a 14254 $(HOST_EXPORTS) \
7fc2ca22 14255 (cd $(HOST_SUBDIR)/libtool && \
93c60b6d 14256 $(MAKE) $(FLAGS_TO_PASS) install)
657b58f4 14257
d5eec917 14258@endif libtool
657b58f4 14259
8ec98d6c 14260# Other targets (info, dvi, etc.)
657b58f4 14261
d5eec917
PB
14262.PHONY: maybe-info-libtool info-libtool
14263maybe-info-libtool:
14264@if libtool
14265maybe-info-libtool: info-libtool
8ec98d6c 14266
d5eec917
PB
14267info-libtool: \
14268 configure-libtool
14269 @[ -f ./libtool/Makefile ] || exit 0; \
5230d454
L
14270 r=`${PWD_COMMAND}`; export r; \
14271 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 14272 $(SET_LIB_PATH) \
a675b75a 14273 $(HOST_EXPORTS) \
d5eec917 14274 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
14275 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14276 done; \
d5eec917 14277 echo "Doing info in libtool" ; \
7fc2ca22 14278 (cd $(HOST_SUBDIR)/libtool && \
657b58f4
NN
14279 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14280 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14281 "RANLIB=$${RANLIB}" \
14282 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 14283 info) \
657b58f4
NN
14284 || exit 1
14285
d5eec917 14286@endif libtool
657b58f4 14287
d5eec917
PB
14288.PHONY: maybe-dvi-libtool dvi-libtool
14289maybe-dvi-libtool:
14290@if libtool
14291maybe-dvi-libtool: dvi-libtool
657b58f4 14292
d5eec917
PB
14293dvi-libtool: \
14294 configure-libtool
14295 @[ -f ./libtool/Makefile ] || exit 0; \
5230d454
L
14296 r=`${PWD_COMMAND}`; export r; \
14297 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 14298 $(SET_LIB_PATH) \
a675b75a 14299 $(HOST_EXPORTS) \
d5eec917 14300 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
14301 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14302 done; \
d5eec917 14303 echo "Doing dvi in libtool" ; \
7fc2ca22 14304 (cd $(HOST_SUBDIR)/libtool && \
657b58f4
NN
14305 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14306 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14307 "RANLIB=$${RANLIB}" \
14308 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 14309 dvi) \
657b58f4
NN
14310 || exit 1
14311
d5eec917 14312@endif libtool
657b58f4 14313
b6fb961f
MS
14314.PHONY: maybe-html-libtool html-libtool
14315maybe-html-libtool:
14316@if libtool
14317maybe-html-libtool: html-libtool
14318
14319html-libtool: \
14320 configure-libtool
14321 @[ -f ./libtool/Makefile ] || exit 0; \
14322 r=`${PWD_COMMAND}`; export r; \
14323 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14324 $(SET_LIB_PATH) \
14325 $(HOST_EXPORTS) \
14326 for flag in $(EXTRA_HOST_FLAGS) ; do \
14327 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14328 done; \
14329 echo "Doing html in libtool" ; \
7fc2ca22 14330 (cd $(HOST_SUBDIR)/libtool && \
b6fb961f
MS
14331 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14332 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14333 "RANLIB=$${RANLIB}" \
14334 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14335 html) \
14336 || exit 1
14337
14338@endif libtool
14339
d5eec917
PB
14340.PHONY: maybe-TAGS-libtool TAGS-libtool
14341maybe-TAGS-libtool:
14342@if libtool
14343maybe-TAGS-libtool: TAGS-libtool
657b58f4 14344
d5eec917
PB
14345TAGS-libtool: \
14346 configure-libtool
14347 @[ -f ./libtool/Makefile ] || exit 0; \
5230d454
L
14348 r=`${PWD_COMMAND}`; export r; \
14349 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 14350 $(SET_LIB_PATH) \
a675b75a 14351 $(HOST_EXPORTS) \
d5eec917 14352 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
14353 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14354 done; \
d5eec917 14355 echo "Doing TAGS in libtool" ; \
7fc2ca22 14356 (cd $(HOST_SUBDIR)/libtool && \
657b58f4
NN
14357 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14358 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14359 "RANLIB=$${RANLIB}" \
14360 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 14361 TAGS) \
657b58f4
NN
14362 || exit 1
14363
d5eec917 14364@endif libtool
657b58f4 14365
d5eec917
PB
14366.PHONY: maybe-install-info-libtool install-info-libtool
14367maybe-install-info-libtool:
14368@if libtool
14369maybe-install-info-libtool: install-info-libtool
657b58f4 14370
d5eec917
PB
14371install-info-libtool: \
14372 configure-libtool \
14373 info-libtool
14374 @[ -f ./libtool/Makefile ] || exit 0; \
5230d454
L
14375 r=`${PWD_COMMAND}`; export r; \
14376 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 14377 $(SET_LIB_PATH) \
a675b75a 14378 $(HOST_EXPORTS) \
d5eec917 14379 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
14380 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14381 done; \
d5eec917 14382 echo "Doing install-info in libtool" ; \
7fc2ca22 14383 (cd $(HOST_SUBDIR)/libtool && \
657b58f4
NN
14384 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14385 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14386 "RANLIB=$${RANLIB}" \
14387 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 14388 install-info) \
657b58f4
NN
14389 || exit 1
14390
d5eec917 14391@endif libtool
657b58f4 14392
d5eec917
PB
14393.PHONY: maybe-installcheck-libtool installcheck-libtool
14394maybe-installcheck-libtool:
14395@if libtool
14396maybe-installcheck-libtool: installcheck-libtool
657b58f4 14397
d5eec917
PB
14398installcheck-libtool: \
14399 configure-libtool
14400 @[ -f ./libtool/Makefile ] || exit 0; \
5230d454
L
14401 r=`${PWD_COMMAND}`; export r; \
14402 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 14403 $(SET_LIB_PATH) \
a675b75a 14404 $(HOST_EXPORTS) \
d5eec917 14405 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
14406 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14407 done; \
d5eec917 14408 echo "Doing installcheck in libtool" ; \
7fc2ca22 14409 (cd $(HOST_SUBDIR)/libtool && \
657b58f4
NN
14410 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14411 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14412 "RANLIB=$${RANLIB}" \
14413 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 14414 installcheck) \
657b58f4
NN
14415 || exit 1
14416
d5eec917 14417@endif libtool
657b58f4 14418
d5eec917
PB
14419.PHONY: maybe-mostlyclean-libtool mostlyclean-libtool
14420maybe-mostlyclean-libtool:
14421@if libtool
14422maybe-mostlyclean-libtool: mostlyclean-libtool
657b58f4 14423
d5eec917
PB
14424mostlyclean-libtool:
14425 @[ -f ./libtool/Makefile ] || exit 0; \
5230d454
L
14426 r=`${PWD_COMMAND}`; export r; \
14427 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 14428 $(SET_LIB_PATH) \
a675b75a 14429 $(HOST_EXPORTS) \
d5eec917 14430 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
14431 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14432 done; \
d5eec917 14433 echo "Doing mostlyclean in libtool" ; \
7fc2ca22 14434 (cd $(HOST_SUBDIR)/libtool && \
657b58f4
NN
14435 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14436 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14437 "RANLIB=$${RANLIB}" \
14438 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 14439 mostlyclean) \
657b58f4
NN
14440 || exit 1
14441
d5eec917 14442@endif libtool
657b58f4 14443
d5eec917
PB
14444.PHONY: maybe-clean-libtool clean-libtool
14445maybe-clean-libtool:
14446@if libtool
14447maybe-clean-libtool: clean-libtool
657b58f4 14448
d5eec917
PB
14449clean-libtool:
14450 @[ -f ./libtool/Makefile ] || exit 0; \
5230d454
L
14451 r=`${PWD_COMMAND}`; export r; \
14452 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 14453 $(SET_LIB_PATH) \
a675b75a 14454 $(HOST_EXPORTS) \
d5eec917 14455 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
14456 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14457 done; \
d5eec917 14458 echo "Doing clean in libtool" ; \
7fc2ca22 14459 (cd $(HOST_SUBDIR)/libtool && \
657b58f4
NN
14460 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14461 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14462 "RANLIB=$${RANLIB}" \
14463 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 14464 clean) \
657b58f4
NN
14465 || exit 1
14466
d5eec917 14467@endif libtool
657b58f4 14468
d5eec917
PB
14469.PHONY: maybe-distclean-libtool distclean-libtool
14470maybe-distclean-libtool:
14471@if libtool
14472maybe-distclean-libtool: distclean-libtool
657b58f4 14473
d5eec917
PB
14474distclean-libtool:
14475 @[ -f ./libtool/Makefile ] || exit 0; \
5230d454
L
14476 r=`${PWD_COMMAND}`; export r; \
14477 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 14478 $(SET_LIB_PATH) \
a675b75a 14479 $(HOST_EXPORTS) \
d5eec917 14480 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
14481 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14482 done; \
d5eec917 14483 echo "Doing distclean in libtool" ; \
7fc2ca22 14484 (cd $(HOST_SUBDIR)/libtool && \
657b58f4
NN
14485 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14486 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14487 "RANLIB=$${RANLIB}" \
14488 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 14489 distclean) \
657b58f4
NN
14490 || exit 1
14491
d5eec917 14492@endif libtool
657b58f4 14493
d5eec917
PB
14494.PHONY: maybe-maintainer-clean-libtool maintainer-clean-libtool
14495maybe-maintainer-clean-libtool:
14496@if libtool
14497maybe-maintainer-clean-libtool: maintainer-clean-libtool
657b58f4 14498
d5eec917
PB
14499maintainer-clean-libtool:
14500 @[ -f ./libtool/Makefile ] || exit 0; \
5230d454
L
14501 r=`${PWD_COMMAND}`; export r; \
14502 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 14503 $(SET_LIB_PATH) \
a675b75a 14504 $(HOST_EXPORTS) \
d5eec917 14505 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
14506 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14507 done; \
d5eec917 14508 echo "Doing maintainer-clean in libtool" ; \
7fc2ca22 14509 (cd $(HOST_SUBDIR)/libtool && \
657b58f4
NN
14510 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14511 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14512 "RANLIB=$${RANLIB}" \
14513 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 14514 maintainer-clean) \
657b58f4
NN
14515 || exit 1
14516
d5eec917 14517@endif libtool
657b58f4 14518
657b58f4 14519
d5eec917
PB
14520.PHONY: configure-m4 maybe-configure-m4
14521maybe-configure-m4:
14522@if m4
14523maybe-configure-m4: configure-m4
14524configure-m4:
7fc2ca22
PB
14525 @test ! -f $(HOST_SUBDIR)/m4/Makefile || exit 0; \
14526 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/m4 ; \
5230d454
L
14527 r=`${PWD_COMMAND}`; export r; \
14528 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 14529 $(HOST_EXPORTS) \
d5eec917 14530 echo Configuring in m4; \
7fc2ca22 14531 cd $(HOST_SUBDIR)/m4 || exit 1; \
8ec98d6c 14532 case $(srcdir) in \
7fc2ca22
PB
14533 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
14534 *) topdir=`echo $(HOST_SUBDIR)/m4/ | \
14535 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 14536 esac; \
7fc2ca22
PB
14537 srcdiroption="--srcdir=$${topdir}/m4"; \
14538 libsrcdir="$$s/m4"; \
8ec98d6c 14539 $(SHELL) $${libsrcdir}/configure \
63673a5b 14540 $(HOST_CONFIGARGS) $${srcdiroption} \
657b58f4 14541 || exit 1
d5eec917 14542@endif m4
657b58f4 14543
d5eec917
PB
14544.PHONY: all-m4 maybe-all-m4
14545maybe-all-m4:
14546@if m4
5e6b1f07 14547TARGET-m4=all
d5eec917
PB
14548maybe-all-m4: all-m4
14549all-m4: configure-m4
8ec98d6c
NN
14550 @r=`${PWD_COMMAND}`; export r; \
14551 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14552 $(SET_LIB_PATH) \
a675b75a 14553 $(HOST_EXPORTS) \
7fc2ca22
PB
14554 (cd $(HOST_SUBDIR)/m4 && \
14555 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-m4))
d5eec917 14556@endif m4
8ec98d6c 14557
d5eec917
PB
14558.PHONY: check-m4 maybe-check-m4
14559maybe-check-m4:
14560@if m4
14561maybe-check-m4: check-m4
657b58f4 14562
d5eec917 14563check-m4:
8ec98d6c
NN
14564 @r=`${PWD_COMMAND}`; export r; \
14565 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14566 $(SET_LIB_PATH) \
a675b75a 14567 $(HOST_EXPORTS) \
7fc2ca22
PB
14568 (cd $(HOST_SUBDIR)/m4 && \
14569 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 14570
d5eec917 14571@endif m4
8ec98d6c 14572
d5eec917
PB
14573.PHONY: install-m4 maybe-install-m4
14574maybe-install-m4:
14575@if m4
14576maybe-install-m4: install-m4
8ec98d6c 14577
d5eec917 14578install-m4: installdirs
8ec98d6c
NN
14579 @r=`${PWD_COMMAND}`; export r; \
14580 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14581 $(SET_LIB_PATH) \
a675b75a 14582 $(HOST_EXPORTS) \
7fc2ca22 14583 (cd $(HOST_SUBDIR)/m4 && \
93c60b6d 14584 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 14585
d5eec917 14586@endif m4
8ec98d6c
NN
14587
14588# Other targets (info, dvi, etc.)
14589
d5eec917
PB
14590.PHONY: maybe-info-m4 info-m4
14591maybe-info-m4:
14592@if m4
14593maybe-info-m4: info-m4
8ec98d6c 14594
d5eec917
PB
14595info-m4: \
14596 configure-m4
14597 @[ -f ./m4/Makefile ] || exit 0; \
5230d454
L
14598 r=`${PWD_COMMAND}`; export r; \
14599 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 14600 $(SET_LIB_PATH) \
a675b75a 14601 $(HOST_EXPORTS) \
d5eec917 14602 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
14603 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14604 done; \
d5eec917 14605 echo "Doing info in m4" ; \
7fc2ca22 14606 (cd $(HOST_SUBDIR)/m4 && \
657b58f4
NN
14607 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14608 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14609 "RANLIB=$${RANLIB}" \
14610 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 14611 info) \
657b58f4
NN
14612 || exit 1
14613
d5eec917 14614@endif m4
657b58f4 14615
d5eec917
PB
14616.PHONY: maybe-dvi-m4 dvi-m4
14617maybe-dvi-m4:
14618@if m4
14619maybe-dvi-m4: dvi-m4
657b58f4 14620
d5eec917
PB
14621dvi-m4: \
14622 configure-m4
14623 @[ -f ./m4/Makefile ] || exit 0; \
5230d454
L
14624 r=`${PWD_COMMAND}`; export r; \
14625 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 14626 $(SET_LIB_PATH) \
a675b75a 14627 $(HOST_EXPORTS) \
d5eec917 14628 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
14629 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14630 done; \
d5eec917 14631 echo "Doing dvi in m4" ; \
7fc2ca22 14632 (cd $(HOST_SUBDIR)/m4 && \
657b58f4
NN
14633 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14634 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14635 "RANLIB=$${RANLIB}" \
14636 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 14637 dvi) \
657b58f4
NN
14638 || exit 1
14639
d5eec917 14640@endif m4
657b58f4 14641
b6fb961f
MS
14642.PHONY: maybe-html-m4 html-m4
14643maybe-html-m4:
14644@if m4
14645maybe-html-m4: html-m4
14646
14647html-m4: \
14648 configure-m4
14649 @[ -f ./m4/Makefile ] || exit 0; \
14650 r=`${PWD_COMMAND}`; export r; \
14651 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14652 $(SET_LIB_PATH) \
14653 $(HOST_EXPORTS) \
14654 for flag in $(EXTRA_HOST_FLAGS) ; do \
14655 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14656 done; \
14657 echo "Doing html in m4" ; \
7fc2ca22 14658 (cd $(HOST_SUBDIR)/m4 && \
b6fb961f
MS
14659 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14660 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14661 "RANLIB=$${RANLIB}" \
14662 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14663 html) \
14664 || exit 1
14665
14666@endif m4
14667
d5eec917
PB
14668.PHONY: maybe-TAGS-m4 TAGS-m4
14669maybe-TAGS-m4:
14670@if m4
14671maybe-TAGS-m4: TAGS-m4
657b58f4 14672
d5eec917
PB
14673TAGS-m4: \
14674 configure-m4
14675 @[ -f ./m4/Makefile ] || exit 0; \
5230d454
L
14676 r=`${PWD_COMMAND}`; export r; \
14677 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 14678 $(SET_LIB_PATH) \
a675b75a 14679 $(HOST_EXPORTS) \
d5eec917 14680 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
14681 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14682 done; \
d5eec917 14683 echo "Doing TAGS in m4" ; \
7fc2ca22 14684 (cd $(HOST_SUBDIR)/m4 && \
657b58f4
NN
14685 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14686 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14687 "RANLIB=$${RANLIB}" \
14688 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 14689 TAGS) \
657b58f4
NN
14690 || exit 1
14691
d5eec917 14692@endif m4
657b58f4 14693
d5eec917
PB
14694.PHONY: maybe-install-info-m4 install-info-m4
14695maybe-install-info-m4:
14696@if m4
14697maybe-install-info-m4: install-info-m4
657b58f4 14698
d5eec917
PB
14699install-info-m4: \
14700 configure-m4 \
14701 info-m4
14702 @[ -f ./m4/Makefile ] || exit 0; \
5230d454
L
14703 r=`${PWD_COMMAND}`; export r; \
14704 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 14705 $(SET_LIB_PATH) \
a675b75a 14706 $(HOST_EXPORTS) \
d5eec917 14707 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
14708 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14709 done; \
d5eec917 14710 echo "Doing install-info in m4" ; \
7fc2ca22 14711 (cd $(HOST_SUBDIR)/m4 && \
657b58f4
NN
14712 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14713 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14714 "RANLIB=$${RANLIB}" \
14715 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 14716 install-info) \
657b58f4
NN
14717 || exit 1
14718
d5eec917 14719@endif m4
657b58f4 14720
d5eec917
PB
14721.PHONY: maybe-installcheck-m4 installcheck-m4
14722maybe-installcheck-m4:
14723@if m4
14724maybe-installcheck-m4: installcheck-m4
657b58f4 14725
d5eec917
PB
14726installcheck-m4: \
14727 configure-m4
14728 @[ -f ./m4/Makefile ] || exit 0; \
5230d454
L
14729 r=`${PWD_COMMAND}`; export r; \
14730 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 14731 $(SET_LIB_PATH) \
a675b75a 14732 $(HOST_EXPORTS) \
d5eec917 14733 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
14734 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14735 done; \
d5eec917 14736 echo "Doing installcheck in m4" ; \
7fc2ca22 14737 (cd $(HOST_SUBDIR)/m4 && \
657b58f4
NN
14738 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14739 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14740 "RANLIB=$${RANLIB}" \
14741 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 14742 installcheck) \
657b58f4
NN
14743 || exit 1
14744
d5eec917 14745@endif m4
657b58f4 14746
d5eec917
PB
14747.PHONY: maybe-mostlyclean-m4 mostlyclean-m4
14748maybe-mostlyclean-m4:
14749@if m4
14750maybe-mostlyclean-m4: mostlyclean-m4
657b58f4 14751
d5eec917
PB
14752mostlyclean-m4:
14753 @[ -f ./m4/Makefile ] || exit 0; \
5230d454
L
14754 r=`${PWD_COMMAND}`; export r; \
14755 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 14756 $(SET_LIB_PATH) \
a675b75a 14757 $(HOST_EXPORTS) \
d5eec917 14758 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
14759 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14760 done; \
d5eec917 14761 echo "Doing mostlyclean in m4" ; \
7fc2ca22 14762 (cd $(HOST_SUBDIR)/m4 && \
657b58f4
NN
14763 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14764 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14765 "RANLIB=$${RANLIB}" \
14766 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 14767 mostlyclean) \
657b58f4
NN
14768 || exit 1
14769
d5eec917 14770@endif m4
657b58f4 14771
d5eec917
PB
14772.PHONY: maybe-clean-m4 clean-m4
14773maybe-clean-m4:
14774@if m4
14775maybe-clean-m4: clean-m4
657b58f4 14776
d5eec917
PB
14777clean-m4:
14778 @[ -f ./m4/Makefile ] || exit 0; \
5230d454
L
14779 r=`${PWD_COMMAND}`; export r; \
14780 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657b58f4 14781 $(SET_LIB_PATH) \
a675b75a 14782 $(HOST_EXPORTS) \
d5eec917 14783 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
14784 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14785 done; \
d5eec917 14786 echo "Doing clean in m4" ; \
7fc2ca22 14787 (cd $(HOST_SUBDIR)/m4 && \
657b58f4
NN
14788 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14789 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14790 "RANLIB=$${RANLIB}" \
14791 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 14792 clean) \
657b58f4
NN
14793 || exit 1
14794
d5eec917 14795@endif m4
657b58f4 14796
d5eec917
PB
14797.PHONY: maybe-distclean-m4 distclean-m4
14798maybe-distclean-m4:
14799@if m4
14800maybe-distclean-m4: distclean-m4
d832a288 14801
d5eec917
PB
14802distclean-m4:
14803 @[ -f ./m4/Makefile ] || exit 0; \
d832a288
DD
14804 r=`${PWD_COMMAND}`; export r; \
14805 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14806 $(SET_LIB_PATH) \
a675b75a 14807 $(HOST_EXPORTS) \
d5eec917 14808 for flag in $(EXTRA_HOST_FLAGS) ; do \
d832a288
DD
14809 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14810 done; \
d5eec917 14811 echo "Doing distclean in m4" ; \
7fc2ca22 14812 (cd $(HOST_SUBDIR)/m4 && \
d832a288
DD
14813 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14814 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14815 "RANLIB=$${RANLIB}" \
14816 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 14817 distclean) \
d832a288
DD
14818 || exit 1
14819
d5eec917 14820@endif m4
d832a288 14821
d5eec917
PB
14822.PHONY: maybe-maintainer-clean-m4 maintainer-clean-m4
14823maybe-maintainer-clean-m4:
14824@if m4
14825maybe-maintainer-clean-m4: maintainer-clean-m4
657b58f4 14826
d5eec917
PB
14827maintainer-clean-m4:
14828 @[ -f ./m4/Makefile ] || exit 0; \
8ec98d6c 14829 r=`${PWD_COMMAND}`; export r; \
5230d454 14830 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8ec98d6c 14831 $(SET_LIB_PATH) \
a675b75a 14832 $(HOST_EXPORTS) \
d5eec917 14833 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
14834 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14835 done; \
d5eec917 14836 echo "Doing maintainer-clean in m4" ; \
7fc2ca22 14837 (cd $(HOST_SUBDIR)/m4 && \
8ec98d6c
NN
14838 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14839 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14840 "RANLIB=$${RANLIB}" \
14841 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 14842 maintainer-clean) \
8ec98d6c 14843 || exit 1
a3acbf46 14844
d5eec917 14845@endif m4
a3acbf46 14846
a3acbf46 14847
d5eec917
PB
14848.PHONY: configure-make maybe-configure-make
14849maybe-configure-make:
14850@if make
14851maybe-configure-make: configure-make
14852configure-make:
7fc2ca22
PB
14853 @test ! -f $(HOST_SUBDIR)/make/Makefile || exit 0; \
14854 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/make ; \
d5eec917
PB
14855 r=`${PWD_COMMAND}`; export r; \
14856 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14857 $(HOST_EXPORTS) \
14858 echo Configuring in make; \
7fc2ca22 14859 cd $(HOST_SUBDIR)/make || exit 1; \
8ec98d6c 14860 case $(srcdir) in \
7fc2ca22
PB
14861 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
14862 *) topdir=`echo $(HOST_SUBDIR)/make/ | \
14863 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 14864 esac; \
7fc2ca22
PB
14865 srcdiroption="--srcdir=$${topdir}/make"; \
14866 libsrcdir="$$s/make"; \
8ec98d6c 14867 $(SHELL) $${libsrcdir}/configure \
63673a5b 14868 $(HOST_CONFIGARGS) $${srcdiroption} \
8ec98d6c 14869 || exit 1
d5eec917 14870@endif make
a3acbf46 14871
d5eec917
PB
14872.PHONY: all-make maybe-all-make
14873maybe-all-make:
14874@if make
5e6b1f07 14875TARGET-make=all
d5eec917
PB
14876maybe-all-make: all-make
14877all-make: configure-make
8ec98d6c
NN
14878 @r=`${PWD_COMMAND}`; export r; \
14879 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14880 $(SET_LIB_PATH) \
a675b75a 14881 $(HOST_EXPORTS) \
7fc2ca22
PB
14882 (cd $(HOST_SUBDIR)/make && \
14883 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-make))
d5eec917 14884@endif make
a3acbf46 14885
d5eec917
PB
14886.PHONY: check-make maybe-check-make
14887maybe-check-make:
14888@if make
14889maybe-check-make: check-make
a3acbf46 14890
d5eec917
PB
14891check-make:
14892 @r=`${PWD_COMMAND}`; export r; \
14893 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14894 $(SET_LIB_PATH) \
14895 $(HOST_EXPORTS) \
7fc2ca22
PB
14896 (cd $(HOST_SUBDIR)/make && \
14897 $(MAKE) $(FLAGS_TO_PASS) check)
9b520963 14898
d5eec917 14899@endif make
70ffc148 14900
d5eec917
PB
14901.PHONY: install-make maybe-install-make
14902maybe-install-make:
14903@if make
14904maybe-install-make: install-make
8ec98d6c 14905
d5eec917 14906install-make: installdirs
8ec98d6c
NN
14907 @r=`${PWD_COMMAND}`; export r; \
14908 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14909 $(SET_LIB_PATH) \
a675b75a 14910 $(HOST_EXPORTS) \
7fc2ca22 14911 (cd $(HOST_SUBDIR)/make && \
93c60b6d 14912 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 14913
d5eec917 14914@endif make
8ec98d6c
NN
14915
14916# Other targets (info, dvi, etc.)
14917
d5eec917
PB
14918.PHONY: maybe-info-make info-make
14919maybe-info-make:
14920@if make
14921maybe-info-make: info-make
8ec98d6c 14922
d5eec917
PB
14923info-make: \
14924 configure-make
14925 @[ -f ./make/Makefile ] || exit 0; \
8ec98d6c
NN
14926 r=`${PWD_COMMAND}`; export r; \
14927 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14928 $(SET_LIB_PATH) \
a675b75a 14929 $(HOST_EXPORTS) \
d5eec917 14930 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
14931 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14932 done; \
d5eec917 14933 echo "Doing info in make" ; \
7fc2ca22 14934 (cd $(HOST_SUBDIR)/make && \
8ec98d6c
NN
14935 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14936 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14937 "RANLIB=$${RANLIB}" \
14938 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 14939 info) \
8ec98d6c
NN
14940 || exit 1
14941
d5eec917 14942@endif make
8ec98d6c 14943
d5eec917
PB
14944.PHONY: maybe-dvi-make dvi-make
14945maybe-dvi-make:
14946@if make
14947maybe-dvi-make: dvi-make
8ec98d6c 14948
d5eec917
PB
14949dvi-make: \
14950 configure-make
14951 @[ -f ./make/Makefile ] || exit 0; \
8ec98d6c
NN
14952 r=`${PWD_COMMAND}`; export r; \
14953 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14954 $(SET_LIB_PATH) \
a675b75a 14955 $(HOST_EXPORTS) \
d5eec917 14956 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
14957 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14958 done; \
d5eec917 14959 echo "Doing dvi in make" ; \
7fc2ca22 14960 (cd $(HOST_SUBDIR)/make && \
8ec98d6c
NN
14961 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14962 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14963 "RANLIB=$${RANLIB}" \
14964 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 14965 dvi) \
8ec98d6c 14966 || exit 1
70ffc148 14967
d5eec917 14968@endif make
a3acbf46 14969
b6fb961f
MS
14970.PHONY: maybe-html-make html-make
14971maybe-html-make:
14972@if make
14973maybe-html-make: html-make
14974
14975html-make: \
14976 configure-make
14977 @[ -f ./make/Makefile ] || exit 0; \
14978 r=`${PWD_COMMAND}`; export r; \
14979 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14980 $(SET_LIB_PATH) \
14981 $(HOST_EXPORTS) \
14982 for flag in $(EXTRA_HOST_FLAGS) ; do \
14983 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14984 done; \
14985 echo "Doing html in make" ; \
7fc2ca22 14986 (cd $(HOST_SUBDIR)/make && \
b6fb961f
MS
14987 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14988 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14989 "RANLIB=$${RANLIB}" \
14990 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14991 html) \
14992 || exit 1
14993
14994@endif make
14995
d5eec917
PB
14996.PHONY: maybe-TAGS-make TAGS-make
14997maybe-TAGS-make:
14998@if make
14999maybe-TAGS-make: TAGS-make
a3acbf46 15000
d5eec917
PB
15001TAGS-make: \
15002 configure-make
15003 @[ -f ./make/Makefile ] || exit 0; \
8ec98d6c
NN
15004 r=`${PWD_COMMAND}`; export r; \
15005 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15006 $(SET_LIB_PATH) \
a675b75a 15007 $(HOST_EXPORTS) \
d5eec917 15008 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
15009 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15010 done; \
d5eec917 15011 echo "Doing TAGS in make" ; \
7fc2ca22 15012 (cd $(HOST_SUBDIR)/make && \
8ec98d6c
NN
15013 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15014 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15015 "RANLIB=$${RANLIB}" \
15016 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 15017 TAGS) \
8ec98d6c 15018 || exit 1
8ecc6504 15019
d5eec917 15020@endif make
8ecc6504 15021
d5eec917
PB
15022.PHONY: maybe-install-info-make install-info-make
15023maybe-install-info-make:
15024@if make
15025maybe-install-info-make: install-info-make
8ecc6504 15026
d5eec917
PB
15027install-info-make: \
15028 configure-make \
15029 info-make
15030 @[ -f ./make/Makefile ] || exit 0; \
8ec98d6c
NN
15031 r=`${PWD_COMMAND}`; export r; \
15032 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15033 $(SET_LIB_PATH) \
a675b75a 15034 $(HOST_EXPORTS) \
d5eec917 15035 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
15036 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15037 done; \
d5eec917 15038 echo "Doing install-info in make" ; \
7fc2ca22 15039 (cd $(HOST_SUBDIR)/make && \
8ec98d6c
NN
15040 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15041 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15042 "RANLIB=$${RANLIB}" \
15043 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 15044 install-info) \
8ec98d6c 15045 || exit 1
8ecc6504 15046
d5eec917 15047@endif make
8ecc6504 15048
d5eec917
PB
15049.PHONY: maybe-installcheck-make installcheck-make
15050maybe-installcheck-make:
15051@if make
15052maybe-installcheck-make: installcheck-make
43bdb69a 15053
d5eec917
PB
15054installcheck-make: \
15055 configure-make
15056 @[ -f ./make/Makefile ] || exit 0; \
8ec98d6c
NN
15057 r=`${PWD_COMMAND}`; export r; \
15058 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15059 $(SET_LIB_PATH) \
a675b75a 15060 $(HOST_EXPORTS) \
d5eec917 15061 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
15062 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15063 done; \
d5eec917 15064 echo "Doing installcheck in make" ; \
7fc2ca22 15065 (cd $(HOST_SUBDIR)/make && \
8ec98d6c
NN
15066 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15067 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15068 "RANLIB=$${RANLIB}" \
15069 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 15070 installcheck) \
8ec98d6c 15071 || exit 1
43bdb69a 15072
d5eec917 15073@endif make
43bdb69a 15074
d5eec917
PB
15075.PHONY: maybe-mostlyclean-make mostlyclean-make
15076maybe-mostlyclean-make:
15077@if make
15078maybe-mostlyclean-make: mostlyclean-make
43bdb69a 15079
d5eec917
PB
15080mostlyclean-make:
15081 @[ -f ./make/Makefile ] || exit 0; \
5230d454
L
15082 r=`${PWD_COMMAND}`; export r; \
15083 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8ec98d6c 15084 $(SET_LIB_PATH) \
a675b75a 15085 $(HOST_EXPORTS) \
d5eec917 15086 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
15087 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15088 done; \
d5eec917 15089 echo "Doing mostlyclean in make" ; \
7fc2ca22 15090 (cd $(HOST_SUBDIR)/make && \
8ec98d6c
NN
15091 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15092 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15093 "RANLIB=$${RANLIB}" \
15094 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 15095 mostlyclean) \
2245eb63 15096 || exit 1
43bdb69a 15097
d5eec917 15098@endif make
8ec98d6c 15099
d5eec917
PB
15100.PHONY: maybe-clean-make clean-make
15101maybe-clean-make:
15102@if make
15103maybe-clean-make: clean-make
8ec98d6c 15104
d5eec917
PB
15105clean-make:
15106 @[ -f ./make/Makefile ] || exit 0; \
8ec98d6c
NN
15107 r=`${PWD_COMMAND}`; export r; \
15108 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15109 $(SET_LIB_PATH) \
a675b75a 15110 $(HOST_EXPORTS) \
d5eec917 15111 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
15112 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15113 done; \
d5eec917 15114 echo "Doing clean in make" ; \
7fc2ca22 15115 (cd $(HOST_SUBDIR)/make && \
8ec98d6c
NN
15116 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15117 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15118 "RANLIB=$${RANLIB}" \
15119 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 15120 clean) \
8ec98d6c
NN
15121 || exit 1
15122
d5eec917 15123@endif make
8ec98d6c 15124
d5eec917
PB
15125.PHONY: maybe-distclean-make distclean-make
15126maybe-distclean-make:
15127@if make
15128maybe-distclean-make: distclean-make
8ec98d6c 15129
d5eec917
PB
15130distclean-make:
15131 @[ -f ./make/Makefile ] || exit 0; \
8ec98d6c
NN
15132 r=`${PWD_COMMAND}`; export r; \
15133 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15134 $(SET_LIB_PATH) \
a675b75a 15135 $(HOST_EXPORTS) \
d5eec917 15136 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
15137 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15138 done; \
d5eec917 15139 echo "Doing distclean in make" ; \
7fc2ca22 15140 (cd $(HOST_SUBDIR)/make && \
8ec98d6c
NN
15141 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15142 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15143 "RANLIB=$${RANLIB}" \
15144 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 15145 distclean) \
8ec98d6c
NN
15146 || exit 1
15147
d5eec917 15148@endif make
8ec98d6c 15149
d5eec917
PB
15150.PHONY: maybe-maintainer-clean-make maintainer-clean-make
15151maybe-maintainer-clean-make:
15152@if make
15153maybe-maintainer-clean-make: maintainer-clean-make
8ec98d6c 15154
d5eec917
PB
15155maintainer-clean-make:
15156 @[ -f ./make/Makefile ] || exit 0; \
8ec98d6c 15157 r=`${PWD_COMMAND}`; export r; \
5230d454 15158 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8ec98d6c 15159 $(SET_LIB_PATH) \
a675b75a 15160 $(HOST_EXPORTS) \
d5eec917 15161 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
15162 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15163 done; \
d5eec917 15164 echo "Doing maintainer-clean in make" ; \
7fc2ca22 15165 (cd $(HOST_SUBDIR)/make && \
8ec98d6c
NN
15166 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15167 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15168 "RANLIB=$${RANLIB}" \
15169 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 15170 maintainer-clean) \
8ec98d6c 15171 || exit 1
8ecc6504 15172
d5eec917 15173@endif make
8ecc6504 15174
8ecc6504 15175
d5eec917
PB
15176.PHONY: configure-mmalloc maybe-configure-mmalloc
15177maybe-configure-mmalloc:
15178@if mmalloc
15179maybe-configure-mmalloc: configure-mmalloc
15180configure-mmalloc:
7fc2ca22
PB
15181 @test ! -f $(HOST_SUBDIR)/mmalloc/Makefile || exit 0; \
15182 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mmalloc ; \
5230d454
L
15183 r=`${PWD_COMMAND}`; export r; \
15184 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15185 $(HOST_EXPORTS) \
d5eec917 15186 echo Configuring in mmalloc; \
7fc2ca22 15187 cd $(HOST_SUBDIR)/mmalloc || exit 1; \
94f860c0 15188 case $(srcdir) in \
7fc2ca22
PB
15189 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15190 *) topdir=`echo $(HOST_SUBDIR)/mmalloc/ | \
15191 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 15192 esac; \
7fc2ca22
PB
15193 srcdiroption="--srcdir=$${topdir}/mmalloc"; \
15194 libsrcdir="$$s/mmalloc"; \
94f860c0 15195 $(SHELL) $${libsrcdir}/configure \
63673a5b 15196 $(HOST_CONFIGARGS) $${srcdiroption} \
94f860c0 15197 || exit 1
d5eec917 15198@endif mmalloc
94f860c0 15199
d5eec917
PB
15200.PHONY: all-mmalloc maybe-all-mmalloc
15201maybe-all-mmalloc:
15202@if mmalloc
5e6b1f07 15203TARGET-mmalloc=all
d5eec917
PB
15204maybe-all-mmalloc: all-mmalloc
15205all-mmalloc: configure-mmalloc
5230d454
L
15206 @r=`${PWD_COMMAND}`; export r; \
15207 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 15208 $(SET_LIB_PATH) \
a675b75a 15209 $(HOST_EXPORTS) \
7fc2ca22
PB
15210 (cd $(HOST_SUBDIR)/mmalloc && \
15211 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-mmalloc))
d5eec917 15212@endif mmalloc
8ecc6504 15213
d5eec917
PB
15214.PHONY: check-mmalloc maybe-check-mmalloc
15215maybe-check-mmalloc:
15216@if mmalloc
15217maybe-check-mmalloc: check-mmalloc
8ecc6504 15218
d5eec917 15219check-mmalloc:
8ecc6504 15220
d5eec917 15221@endif mmalloc
8ecc6504 15222
d5eec917
PB
15223.PHONY: install-mmalloc maybe-install-mmalloc
15224maybe-install-mmalloc:
15225@if mmalloc
15226maybe-install-mmalloc: install-mmalloc
8ec98d6c 15227
d5eec917 15228install-mmalloc: installdirs
8ec98d6c
NN
15229 @r=`${PWD_COMMAND}`; export r; \
15230 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15231 $(SET_LIB_PATH) \
a675b75a 15232 $(HOST_EXPORTS) \
7fc2ca22 15233 (cd $(HOST_SUBDIR)/mmalloc && \
93c60b6d 15234 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 15235
d5eec917 15236@endif mmalloc
8ec98d6c
NN
15237
15238# Other targets (info, dvi, etc.)
15239
d5eec917
PB
15240.PHONY: maybe-info-mmalloc info-mmalloc
15241maybe-info-mmalloc:
15242@if mmalloc
15243maybe-info-mmalloc: info-mmalloc
8ec98d6c 15244
d5eec917
PB
15245info-mmalloc: \
15246 configure-mmalloc
15247 @[ -f ./mmalloc/Makefile ] || exit 0; \
8ec98d6c
NN
15248 r=`${PWD_COMMAND}`; export r; \
15249 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15250 $(SET_LIB_PATH) \
a675b75a 15251 $(HOST_EXPORTS) \
d5eec917 15252 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
15253 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15254 done; \
d5eec917 15255 echo "Doing info in mmalloc" ; \
7fc2ca22 15256 (cd $(HOST_SUBDIR)/mmalloc && \
8ec98d6c
NN
15257 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15258 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15259 "RANLIB=$${RANLIB}" \
15260 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 15261 info) \
8ec98d6c
NN
15262 || exit 1
15263
d5eec917 15264@endif mmalloc
8ec98d6c 15265
d5eec917
PB
15266.PHONY: maybe-dvi-mmalloc dvi-mmalloc
15267maybe-dvi-mmalloc:
15268@if mmalloc
15269maybe-dvi-mmalloc: dvi-mmalloc
8ec98d6c 15270
d5eec917
PB
15271dvi-mmalloc: \
15272 configure-mmalloc
15273 @[ -f ./mmalloc/Makefile ] || exit 0; \
8ec98d6c
NN
15274 r=`${PWD_COMMAND}`; export r; \
15275 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15276 $(SET_LIB_PATH) \
a675b75a 15277 $(HOST_EXPORTS) \
d5eec917 15278 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
15279 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15280 done; \
d5eec917 15281 echo "Doing dvi in mmalloc" ; \
7fc2ca22 15282 (cd $(HOST_SUBDIR)/mmalloc && \
8ec98d6c
NN
15283 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15284 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15285 "RANLIB=$${RANLIB}" \
15286 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 15287 dvi) \
8ec98d6c
NN
15288 || exit 1
15289
d5eec917 15290@endif mmalloc
8ec98d6c 15291
b6fb961f
MS
15292.PHONY: maybe-html-mmalloc html-mmalloc
15293maybe-html-mmalloc:
15294@if mmalloc
15295maybe-html-mmalloc: html-mmalloc
15296
15297html-mmalloc: \
15298 configure-mmalloc
15299 @[ -f ./mmalloc/Makefile ] || exit 0; \
15300 r=`${PWD_COMMAND}`; export r; \
15301 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15302 $(SET_LIB_PATH) \
15303 $(HOST_EXPORTS) \
15304 for flag in $(EXTRA_HOST_FLAGS) ; do \
15305 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15306 done; \
15307 echo "Doing html in mmalloc" ; \
7fc2ca22 15308 (cd $(HOST_SUBDIR)/mmalloc && \
b6fb961f
MS
15309 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15310 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15311 "RANLIB=$${RANLIB}" \
15312 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15313 html) \
15314 || exit 1
15315
15316@endif mmalloc
15317
d5eec917
PB
15318.PHONY: maybe-TAGS-mmalloc TAGS-mmalloc
15319maybe-TAGS-mmalloc:
15320@if mmalloc
15321maybe-TAGS-mmalloc: TAGS-mmalloc
8ec98d6c 15322
d5eec917
PB
15323TAGS-mmalloc: \
15324 configure-mmalloc
15325 @[ -f ./mmalloc/Makefile ] || exit 0; \
8ec98d6c
NN
15326 r=`${PWD_COMMAND}`; export r; \
15327 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15328 $(SET_LIB_PATH) \
a675b75a 15329 $(HOST_EXPORTS) \
d5eec917 15330 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
15331 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15332 done; \
d5eec917 15333 echo "Doing TAGS in mmalloc" ; \
7fc2ca22 15334 (cd $(HOST_SUBDIR)/mmalloc && \
8ec98d6c
NN
15335 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15336 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15337 "RANLIB=$${RANLIB}" \
15338 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 15339 TAGS) \
8ec98d6c
NN
15340 || exit 1
15341
d5eec917 15342@endif mmalloc
8ec98d6c 15343
d5eec917
PB
15344.PHONY: maybe-install-info-mmalloc install-info-mmalloc
15345maybe-install-info-mmalloc:
15346@if mmalloc
15347maybe-install-info-mmalloc: install-info-mmalloc
8ec98d6c 15348
d5eec917
PB
15349install-info-mmalloc: \
15350 configure-mmalloc \
15351 info-mmalloc
15352 @[ -f ./mmalloc/Makefile ] || exit 0; \
8ec98d6c
NN
15353 r=`${PWD_COMMAND}`; export r; \
15354 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15355 $(SET_LIB_PATH) \
a675b75a 15356 $(HOST_EXPORTS) \
d5eec917 15357 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
15358 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15359 done; \
d5eec917 15360 echo "Doing install-info in mmalloc" ; \
7fc2ca22 15361 (cd $(HOST_SUBDIR)/mmalloc && \
8ec98d6c
NN
15362 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15363 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15364 "RANLIB=$${RANLIB}" \
15365 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 15366 install-info) \
8ec98d6c
NN
15367 || exit 1
15368
d5eec917 15369@endif mmalloc
8ec98d6c 15370
d5eec917
PB
15371.PHONY: maybe-installcheck-mmalloc installcheck-mmalloc
15372maybe-installcheck-mmalloc:
15373@if mmalloc
15374maybe-installcheck-mmalloc: installcheck-mmalloc
8ec98d6c 15375
d5eec917
PB
15376installcheck-mmalloc: \
15377 configure-mmalloc
15378 @[ -f ./mmalloc/Makefile ] || exit 0; \
8ec98d6c
NN
15379 r=`${PWD_COMMAND}`; export r; \
15380 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15381 $(SET_LIB_PATH) \
a675b75a 15382 $(HOST_EXPORTS) \
d5eec917 15383 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
15384 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15385 done; \
d5eec917 15386 echo "Doing installcheck in mmalloc" ; \
7fc2ca22 15387 (cd $(HOST_SUBDIR)/mmalloc && \
8ec98d6c
NN
15388 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15389 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15390 "RANLIB=$${RANLIB}" \
15391 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 15392 installcheck) \
8ec98d6c
NN
15393 || exit 1
15394
d5eec917 15395@endif mmalloc
8ec98d6c 15396
d5eec917
PB
15397.PHONY: maybe-mostlyclean-mmalloc mostlyclean-mmalloc
15398maybe-mostlyclean-mmalloc:
15399@if mmalloc
15400maybe-mostlyclean-mmalloc: mostlyclean-mmalloc
8ec98d6c 15401
d5eec917
PB
15402mostlyclean-mmalloc:
15403 @[ -f ./mmalloc/Makefile ] || exit 0; \
8ec98d6c
NN
15404 r=`${PWD_COMMAND}`; export r; \
15405 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15406 $(SET_LIB_PATH) \
a675b75a 15407 $(HOST_EXPORTS) \
d5eec917 15408 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
15409 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15410 done; \
d5eec917 15411 echo "Doing mostlyclean in mmalloc" ; \
7fc2ca22 15412 (cd $(HOST_SUBDIR)/mmalloc && \
8ec98d6c
NN
15413 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15414 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15415 "RANLIB=$${RANLIB}" \
15416 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 15417 mostlyclean) \
8ec98d6c
NN
15418 || exit 1
15419
d5eec917 15420@endif mmalloc
8ec98d6c 15421
d5eec917
PB
15422.PHONY: maybe-clean-mmalloc clean-mmalloc
15423maybe-clean-mmalloc:
15424@if mmalloc
15425maybe-clean-mmalloc: clean-mmalloc
8ec98d6c 15426
d5eec917
PB
15427clean-mmalloc:
15428 @[ -f ./mmalloc/Makefile ] || exit 0; \
8ec98d6c
NN
15429 r=`${PWD_COMMAND}`; export r; \
15430 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15431 $(SET_LIB_PATH) \
a675b75a 15432 $(HOST_EXPORTS) \
d5eec917 15433 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
15434 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15435 done; \
d5eec917 15436 echo "Doing clean in mmalloc" ; \
7fc2ca22 15437 (cd $(HOST_SUBDIR)/mmalloc && \
8ec98d6c
NN
15438 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15439 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15440 "RANLIB=$${RANLIB}" \
15441 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 15442 clean) \
8ec98d6c
NN
15443 || exit 1
15444
d5eec917 15445@endif mmalloc
8ec98d6c 15446
d5eec917
PB
15447.PHONY: maybe-distclean-mmalloc distclean-mmalloc
15448maybe-distclean-mmalloc:
15449@if mmalloc
15450maybe-distclean-mmalloc: distclean-mmalloc
8ec98d6c 15451
d5eec917
PB
15452distclean-mmalloc:
15453 @[ -f ./mmalloc/Makefile ] || exit 0; \
8ec98d6c
NN
15454 r=`${PWD_COMMAND}`; export r; \
15455 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15456 $(SET_LIB_PATH) \
a675b75a 15457 $(HOST_EXPORTS) \
d5eec917 15458 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
15459 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15460 done; \
d5eec917 15461 echo "Doing distclean in mmalloc" ; \
7fc2ca22 15462 (cd $(HOST_SUBDIR)/mmalloc && \
8ec98d6c
NN
15463 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15464 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15465 "RANLIB=$${RANLIB}" \
15466 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 15467 distclean) \
8ec98d6c
NN
15468 || exit 1
15469
d5eec917 15470@endif mmalloc
8ec98d6c 15471
d5eec917
PB
15472.PHONY: maybe-maintainer-clean-mmalloc maintainer-clean-mmalloc
15473maybe-maintainer-clean-mmalloc:
15474@if mmalloc
15475maybe-maintainer-clean-mmalloc: maintainer-clean-mmalloc
8ec98d6c 15476
d5eec917
PB
15477maintainer-clean-mmalloc:
15478 @[ -f ./mmalloc/Makefile ] || exit 0; \
8ec98d6c
NN
15479 r=`${PWD_COMMAND}`; export r; \
15480 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15481 $(SET_LIB_PATH) \
a675b75a 15482 $(HOST_EXPORTS) \
d5eec917 15483 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
15484 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15485 done; \
d5eec917 15486 echo "Doing maintainer-clean in mmalloc" ; \
7fc2ca22 15487 (cd $(HOST_SUBDIR)/mmalloc && \
8ec98d6c
NN
15488 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15489 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15490 "RANLIB=$${RANLIB}" \
15491 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 15492 maintainer-clean) \
8ec98d6c 15493 || exit 1
70ffc148 15494
d5eec917 15495@endif mmalloc
8ecc6504
NN
15496
15497
d5eec917
PB
15498.PHONY: configure-patch maybe-configure-patch
15499maybe-configure-patch:
15500@if patch
15501maybe-configure-patch: configure-patch
15502configure-patch:
7fc2ca22
PB
15503 @test ! -f $(HOST_SUBDIR)/patch/Makefile || exit 0; \
15504 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/patch ; \
5230d454
L
15505 r=`${PWD_COMMAND}`; export r; \
15506 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15507 $(HOST_EXPORTS) \
d5eec917 15508 echo Configuring in patch; \
7fc2ca22 15509 cd $(HOST_SUBDIR)/patch || exit 1; \
94f860c0 15510 case $(srcdir) in \
7fc2ca22
PB
15511 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15512 *) topdir=`echo $(HOST_SUBDIR)/patch/ | \
15513 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 15514 esac; \
7fc2ca22
PB
15515 srcdiroption="--srcdir=$${topdir}/patch"; \
15516 libsrcdir="$$s/patch"; \
94f860c0 15517 $(SHELL) $${libsrcdir}/configure \
63673a5b 15518 $(HOST_CONFIGARGS) $${srcdiroption} \
94f860c0 15519 || exit 1
d5eec917 15520@endif patch
94f860c0 15521
d5eec917
PB
15522.PHONY: all-patch maybe-all-patch
15523maybe-all-patch:
15524@if patch
5e6b1f07 15525TARGET-patch=all
d5eec917
PB
15526maybe-all-patch: all-patch
15527all-patch: configure-patch
5230d454
L
15528 @r=`${PWD_COMMAND}`; export r; \
15529 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 15530 $(SET_LIB_PATH) \
a675b75a 15531 $(HOST_EXPORTS) \
7fc2ca22
PB
15532 (cd $(HOST_SUBDIR)/patch && \
15533 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-patch))
d5eec917 15534@endif patch
8ecc6504 15535
d5eec917
PB
15536.PHONY: check-patch maybe-check-patch
15537maybe-check-patch:
15538@if patch
15539maybe-check-patch: check-patch
8ecc6504 15540
d5eec917 15541check-patch:
5230d454
L
15542 @r=`${PWD_COMMAND}`; export r; \
15543 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 15544 $(SET_LIB_PATH) \
a675b75a 15545 $(HOST_EXPORTS) \
7fc2ca22
PB
15546 (cd $(HOST_SUBDIR)/patch && \
15547 $(MAKE) $(FLAGS_TO_PASS) check)
8ecc6504 15548
d5eec917 15549@endif patch
8ecc6504 15550
d5eec917
PB
15551.PHONY: install-patch maybe-install-patch
15552maybe-install-patch:
15553@if patch
15554maybe-install-patch: install-patch
70ffc148 15555
d5eec917 15556install-patch: installdirs
5230d454
L
15557 @r=`${PWD_COMMAND}`; export r; \
15558 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 15559 $(SET_LIB_PATH) \
a675b75a 15560 $(HOST_EXPORTS) \
7fc2ca22 15561 (cd $(HOST_SUBDIR)/patch && \
93c60b6d 15562 $(MAKE) $(FLAGS_TO_PASS) install)
8ecc6504 15563
d5eec917 15564@endif patch
8ecc6504 15565
8ec98d6c
NN
15566# Other targets (info, dvi, etc.)
15567
d5eec917
PB
15568.PHONY: maybe-info-patch info-patch
15569maybe-info-patch:
15570@if patch
15571maybe-info-patch: info-patch
8ec98d6c 15572
d5eec917
PB
15573info-patch: \
15574 configure-patch
15575 @[ -f ./patch/Makefile ] || exit 0; \
8ec98d6c
NN
15576 r=`${PWD_COMMAND}`; export r; \
15577 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15578 $(SET_LIB_PATH) \
a675b75a 15579 $(HOST_EXPORTS) \
d5eec917 15580 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
15581 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15582 done; \
d5eec917 15583 echo "Doing info in patch" ; \
7fc2ca22 15584 (cd $(HOST_SUBDIR)/patch && \
8ec98d6c
NN
15585 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15586 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15587 "RANLIB=$${RANLIB}" \
15588 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 15589 info) \
8ec98d6c
NN
15590 || exit 1
15591
d5eec917 15592@endif patch
8ec98d6c 15593
d5eec917
PB
15594.PHONY: maybe-dvi-patch dvi-patch
15595maybe-dvi-patch:
15596@if patch
15597maybe-dvi-patch: dvi-patch
8ec98d6c 15598
d5eec917
PB
15599dvi-patch: \
15600 configure-patch
15601 @[ -f ./patch/Makefile ] || exit 0; \
8ec98d6c
NN
15602 r=`${PWD_COMMAND}`; export r; \
15603 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15604 $(SET_LIB_PATH) \
a675b75a 15605 $(HOST_EXPORTS) \
d5eec917 15606 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
15607 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15608 done; \
d5eec917 15609 echo "Doing dvi in patch" ; \
7fc2ca22 15610 (cd $(HOST_SUBDIR)/patch && \
8ec98d6c
NN
15611 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15612 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15613 "RANLIB=$${RANLIB}" \
15614 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 15615 dvi) \
8ec98d6c
NN
15616 || exit 1
15617
d5eec917 15618@endif patch
8ec98d6c 15619
b6fb961f
MS
15620.PHONY: maybe-html-patch html-patch
15621maybe-html-patch:
15622@if patch
15623maybe-html-patch: html-patch
15624
15625html-patch: \
15626 configure-patch
15627 @[ -f ./patch/Makefile ] || exit 0; \
15628 r=`${PWD_COMMAND}`; export r; \
15629 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15630 $(SET_LIB_PATH) \
15631 $(HOST_EXPORTS) \
15632 for flag in $(EXTRA_HOST_FLAGS) ; do \
15633 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15634 done; \
15635 echo "Doing html in patch" ; \
7fc2ca22 15636 (cd $(HOST_SUBDIR)/patch && \
b6fb961f
MS
15637 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15638 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15639 "RANLIB=$${RANLIB}" \
15640 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15641 html) \
15642 || exit 1
15643
15644@endif patch
15645
d5eec917
PB
15646.PHONY: maybe-TAGS-patch TAGS-patch
15647maybe-TAGS-patch:
15648@if patch
15649maybe-TAGS-patch: TAGS-patch
8ec98d6c 15650
d5eec917
PB
15651TAGS-patch: \
15652 configure-patch
15653 @[ -f ./patch/Makefile ] || exit 0; \
8ec98d6c
NN
15654 r=`${PWD_COMMAND}`; export r; \
15655 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15656 $(SET_LIB_PATH) \
a675b75a 15657 $(HOST_EXPORTS) \
d5eec917 15658 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
15659 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15660 done; \
d5eec917 15661 echo "Doing TAGS in patch" ; \
7fc2ca22 15662 (cd $(HOST_SUBDIR)/patch && \
8ec98d6c
NN
15663 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15664 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15665 "RANLIB=$${RANLIB}" \
15666 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 15667 TAGS) \
8ec98d6c
NN
15668 || exit 1
15669
d5eec917 15670@endif patch
8ec98d6c 15671
d5eec917
PB
15672.PHONY: maybe-install-info-patch install-info-patch
15673maybe-install-info-patch:
15674@if patch
15675maybe-install-info-patch: install-info-patch
8ec98d6c 15676
d5eec917
PB
15677install-info-patch: \
15678 configure-patch \
15679 info-patch
15680 @[ -f ./patch/Makefile ] || exit 0; \
8ec98d6c
NN
15681 r=`${PWD_COMMAND}`; export r; \
15682 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15683 $(SET_LIB_PATH) \
a675b75a 15684 $(HOST_EXPORTS) \
d5eec917 15685 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
15686 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15687 done; \
d5eec917 15688 echo "Doing install-info in patch" ; \
7fc2ca22 15689 (cd $(HOST_SUBDIR)/patch && \
8ec98d6c
NN
15690 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15691 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15692 "RANLIB=$${RANLIB}" \
15693 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 15694 install-info) \
8ec98d6c
NN
15695 || exit 1
15696
d5eec917 15697@endif patch
8ec98d6c 15698
d5eec917
PB
15699.PHONY: maybe-installcheck-patch installcheck-patch
15700maybe-installcheck-patch:
15701@if patch
15702maybe-installcheck-patch: installcheck-patch
8ec98d6c 15703
d5eec917
PB
15704installcheck-patch: \
15705 configure-patch
15706 @[ -f ./patch/Makefile ] || exit 0; \
8ec98d6c
NN
15707 r=`${PWD_COMMAND}`; export r; \
15708 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15709 $(SET_LIB_PATH) \
a675b75a 15710 $(HOST_EXPORTS) \
d5eec917 15711 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
15712 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15713 done; \
d5eec917 15714 echo "Doing installcheck in patch" ; \
7fc2ca22 15715 (cd $(HOST_SUBDIR)/patch && \
8ec98d6c
NN
15716 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15717 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15718 "RANLIB=$${RANLIB}" \
15719 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 15720 installcheck) \
8ec98d6c
NN
15721 || exit 1
15722
d5eec917 15723@endif patch
8ec98d6c 15724
d5eec917
PB
15725.PHONY: maybe-mostlyclean-patch mostlyclean-patch
15726maybe-mostlyclean-patch:
15727@if patch
15728maybe-mostlyclean-patch: mostlyclean-patch
8ec98d6c 15729
d5eec917
PB
15730mostlyclean-patch:
15731 @[ -f ./patch/Makefile ] || exit 0; \
8ec98d6c
NN
15732 r=`${PWD_COMMAND}`; export r; \
15733 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15734 $(SET_LIB_PATH) \
a675b75a 15735 $(HOST_EXPORTS) \
d5eec917 15736 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
15737 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15738 done; \
d5eec917 15739 echo "Doing mostlyclean in patch" ; \
7fc2ca22 15740 (cd $(HOST_SUBDIR)/patch && \
8ec98d6c
NN
15741 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15742 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15743 "RANLIB=$${RANLIB}" \
15744 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 15745 mostlyclean) \
8ec98d6c
NN
15746 || exit 1
15747
d5eec917 15748@endif patch
8ec98d6c 15749
d5eec917
PB
15750.PHONY: maybe-clean-patch clean-patch
15751maybe-clean-patch:
15752@if patch
15753maybe-clean-patch: clean-patch
8ec98d6c 15754
d5eec917
PB
15755clean-patch:
15756 @[ -f ./patch/Makefile ] || exit 0; \
8ec98d6c
NN
15757 r=`${PWD_COMMAND}`; export r; \
15758 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15759 $(SET_LIB_PATH) \
a675b75a 15760 $(HOST_EXPORTS) \
d5eec917 15761 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
15762 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15763 done; \
d5eec917 15764 echo "Doing clean in patch" ; \
7fc2ca22 15765 (cd $(HOST_SUBDIR)/patch && \
8ec98d6c
NN
15766 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15767 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15768 "RANLIB=$${RANLIB}" \
15769 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 15770 clean) \
8ec98d6c
NN
15771 || exit 1
15772
d5eec917 15773@endif patch
8ec98d6c 15774
d5eec917
PB
15775.PHONY: maybe-distclean-patch distclean-patch
15776maybe-distclean-patch:
15777@if patch
15778maybe-distclean-patch: distclean-patch
8ec98d6c 15779
d5eec917
PB
15780distclean-patch:
15781 @[ -f ./patch/Makefile ] || exit 0; \
8ec98d6c
NN
15782 r=`${PWD_COMMAND}`; export r; \
15783 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15784 $(SET_LIB_PATH) \
a675b75a 15785 $(HOST_EXPORTS) \
d5eec917 15786 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
15787 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15788 done; \
d5eec917 15789 echo "Doing distclean in patch" ; \
7fc2ca22 15790 (cd $(HOST_SUBDIR)/patch && \
8ec98d6c
NN
15791 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15792 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15793 "RANLIB=$${RANLIB}" \
15794 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 15795 distclean) \
8ec98d6c
NN
15796 || exit 1
15797
d5eec917 15798@endif patch
8ec98d6c 15799
d5eec917
PB
15800.PHONY: maybe-maintainer-clean-patch maintainer-clean-patch
15801maybe-maintainer-clean-patch:
15802@if patch
15803maybe-maintainer-clean-patch: maintainer-clean-patch
8ec98d6c 15804
d5eec917
PB
15805maintainer-clean-patch:
15806 @[ -f ./patch/Makefile ] || exit 0; \
8ec98d6c
NN
15807 r=`${PWD_COMMAND}`; export r; \
15808 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15809 $(SET_LIB_PATH) \
a675b75a 15810 $(HOST_EXPORTS) \
d5eec917 15811 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
15812 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15813 done; \
d5eec917 15814 echo "Doing maintainer-clean in patch" ; \
7fc2ca22 15815 (cd $(HOST_SUBDIR)/patch && \
8ec98d6c
NN
15816 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15817 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15818 "RANLIB=$${RANLIB}" \
15819 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 15820 maintainer-clean) \
8ec98d6c
NN
15821 || exit 1
15822
d5eec917 15823@endif patch
8ec98d6c
NN
15824
15825
d5eec917
PB
15826.PHONY: configure-perl maybe-configure-perl
15827maybe-configure-perl:
15828@if perl
15829maybe-configure-perl: configure-perl
15830configure-perl:
7fc2ca22
PB
15831 @test ! -f $(HOST_SUBDIR)/perl/Makefile || exit 0; \
15832 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/perl ; \
5230d454
L
15833 r=`${PWD_COMMAND}`; export r; \
15834 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15835 $(HOST_EXPORTS) \
d5eec917 15836 echo Configuring in perl; \
7fc2ca22 15837 cd $(HOST_SUBDIR)/perl || exit 1; \
94f860c0 15838 case $(srcdir) in \
7fc2ca22
PB
15839 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15840 *) topdir=`echo $(HOST_SUBDIR)/perl/ | \
15841 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 15842 esac; \
7fc2ca22
PB
15843 srcdiroption="--srcdir=$${topdir}/perl"; \
15844 libsrcdir="$$s/perl"; \
94f860c0 15845 $(SHELL) $${libsrcdir}/configure \
63673a5b 15846 $(HOST_CONFIGARGS) $${srcdiroption} \
94f860c0 15847 || exit 1
d5eec917 15848@endif perl
94f860c0 15849
d5eec917
PB
15850.PHONY: all-perl maybe-all-perl
15851maybe-all-perl:
15852@if perl
5e6b1f07 15853TARGET-perl=all
d5eec917
PB
15854maybe-all-perl: all-perl
15855all-perl: configure-perl
5230d454
L
15856 @r=`${PWD_COMMAND}`; export r; \
15857 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 15858 $(SET_LIB_PATH) \
a675b75a 15859 $(HOST_EXPORTS) \
7fc2ca22
PB
15860 (cd $(HOST_SUBDIR)/perl && \
15861 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-perl))
d5eec917 15862@endif perl
8ecc6504 15863
d5eec917
PB
15864.PHONY: check-perl maybe-check-perl
15865maybe-check-perl:
15866@if perl
15867maybe-check-perl: check-perl
8ecc6504 15868
d5eec917 15869check-perl:
5230d454
L
15870 @r=`${PWD_COMMAND}`; export r; \
15871 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 15872 $(SET_LIB_PATH) \
a675b75a 15873 $(HOST_EXPORTS) \
7fc2ca22
PB
15874 (cd $(HOST_SUBDIR)/perl && \
15875 $(MAKE) $(FLAGS_TO_PASS) check)
8ecc6504 15876
d5eec917 15877@endif perl
8ecc6504 15878
d5eec917
PB
15879.PHONY: install-perl maybe-install-perl
15880maybe-install-perl:
15881@if perl
15882maybe-install-perl: install-perl
70ffc148 15883
d5eec917 15884install-perl: installdirs
5230d454
L
15885 @r=`${PWD_COMMAND}`; export r; \
15886 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 15887 $(SET_LIB_PATH) \
a675b75a 15888 $(HOST_EXPORTS) \
7fc2ca22 15889 (cd $(HOST_SUBDIR)/perl && \
93c60b6d 15890 $(MAKE) $(FLAGS_TO_PASS) install)
8ecc6504 15891
d5eec917 15892@endif perl
8ecc6504 15893
8ec98d6c
NN
15894# Other targets (info, dvi, etc.)
15895
d5eec917
PB
15896.PHONY: maybe-info-perl info-perl
15897maybe-info-perl:
15898@if perl
15899maybe-info-perl: info-perl
8ec98d6c 15900
d5eec917
PB
15901info-perl: \
15902 configure-perl
15903 @[ -f ./perl/Makefile ] || exit 0; \
5230d454
L
15904 r=`${PWD_COMMAND}`; export r; \
15905 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8ec98d6c 15906 $(SET_LIB_PATH) \
a675b75a 15907 $(HOST_EXPORTS) \
d5eec917 15908 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
15909 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15910 done; \
d5eec917 15911 echo "Doing info in perl" ; \
7fc2ca22 15912 (cd $(HOST_SUBDIR)/perl && \
8ec98d6c
NN
15913 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15914 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15915 "RANLIB=$${RANLIB}" \
15916 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 15917 info) \
94f860c0
NN
15918 || exit 1
15919
d5eec917 15920@endif perl
8ec98d6c 15921
d5eec917
PB
15922.PHONY: maybe-dvi-perl dvi-perl
15923maybe-dvi-perl:
15924@if perl
15925maybe-dvi-perl: dvi-perl
8ec98d6c 15926
d5eec917
PB
15927dvi-perl: \
15928 configure-perl
15929 @[ -f ./perl/Makefile ] || exit 0; \
8ec98d6c 15930 r=`${PWD_COMMAND}`; export r; \
5230d454 15931 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 15932 $(SET_LIB_PATH) \
a675b75a 15933 $(HOST_EXPORTS) \
d5eec917 15934 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
15935 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15936 done; \
d5eec917 15937 echo "Doing dvi in perl" ; \
7fc2ca22 15938 (cd $(HOST_SUBDIR)/perl && \
8ec98d6c
NN
15939 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15940 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15941 "RANLIB=$${RANLIB}" \
15942 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 15943 dvi) \
8ec98d6c 15944 || exit 1
8ecc6504 15945
d5eec917 15946@endif perl
8ecc6504 15947
b6fb961f
MS
15948.PHONY: maybe-html-perl html-perl
15949maybe-html-perl:
15950@if perl
15951maybe-html-perl: html-perl
15952
15953html-perl: \
15954 configure-perl
15955 @[ -f ./perl/Makefile ] || exit 0; \
15956 r=`${PWD_COMMAND}`; export r; \
15957 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15958 $(SET_LIB_PATH) \
15959 $(HOST_EXPORTS) \
15960 for flag in $(EXTRA_HOST_FLAGS) ; do \
15961 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15962 done; \
15963 echo "Doing html in perl" ; \
7fc2ca22 15964 (cd $(HOST_SUBDIR)/perl && \
b6fb961f
MS
15965 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15966 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15967 "RANLIB=$${RANLIB}" \
15968 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15969 html) \
15970 || exit 1
15971
15972@endif perl
15973
d5eec917
PB
15974.PHONY: maybe-TAGS-perl TAGS-perl
15975maybe-TAGS-perl:
15976@if perl
15977maybe-TAGS-perl: TAGS-perl
8ec98d6c 15978
d5eec917
PB
15979TAGS-perl: \
15980 configure-perl
15981 @[ -f ./perl/Makefile ] || exit 0; \
8ec98d6c 15982 r=`${PWD_COMMAND}`; export r; \
5230d454 15983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 15984 $(SET_LIB_PATH) \
a675b75a 15985 $(HOST_EXPORTS) \
d5eec917 15986 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
15987 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15988 done; \
d5eec917 15989 echo "Doing TAGS in perl" ; \
7fc2ca22 15990 (cd $(HOST_SUBDIR)/perl && \
8ec98d6c
NN
15991 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15992 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15993 "RANLIB=$${RANLIB}" \
15994 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 15995 TAGS) \
8ec98d6c 15996 || exit 1
8ecc6504 15997
d5eec917 15998@endif perl
8ecc6504 15999
d5eec917
PB
16000.PHONY: maybe-install-info-perl install-info-perl
16001maybe-install-info-perl:
16002@if perl
16003maybe-install-info-perl: install-info-perl
70ffc148 16004
d5eec917
PB
16005install-info-perl: \
16006 configure-perl \
16007 info-perl
16008 @[ -f ./perl/Makefile ] || exit 0; \
8ec98d6c
NN
16009 r=`${PWD_COMMAND}`; export r; \
16010 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16011 $(SET_LIB_PATH) \
a675b75a 16012 $(HOST_EXPORTS) \
d5eec917 16013 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
16014 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16015 done; \
d5eec917 16016 echo "Doing install-info in perl" ; \
7fc2ca22 16017 (cd $(HOST_SUBDIR)/perl && \
8ec98d6c
NN
16018 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16019 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16020 "RANLIB=$${RANLIB}" \
16021 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 16022 install-info) \
8ec98d6c
NN
16023 || exit 1
16024
d5eec917 16025@endif perl
8ec98d6c 16026
d5eec917
PB
16027.PHONY: maybe-installcheck-perl installcheck-perl
16028maybe-installcheck-perl:
16029@if perl
16030maybe-installcheck-perl: installcheck-perl
8ec98d6c 16031
d5eec917
PB
16032installcheck-perl: \
16033 configure-perl
16034 @[ -f ./perl/Makefile ] || exit 0; \
8ec98d6c
NN
16035 r=`${PWD_COMMAND}`; export r; \
16036 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16037 $(SET_LIB_PATH) \
a675b75a 16038 $(HOST_EXPORTS) \
d5eec917 16039 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
16040 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16041 done; \
d5eec917 16042 echo "Doing installcheck in perl" ; \
7fc2ca22 16043 (cd $(HOST_SUBDIR)/perl && \
8ec98d6c
NN
16044 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16045 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16046 "RANLIB=$${RANLIB}" \
16047 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 16048 installcheck) \
8ec98d6c
NN
16049 || exit 1
16050
d5eec917 16051@endif perl
8ec98d6c 16052
d5eec917
PB
16053.PHONY: maybe-mostlyclean-perl mostlyclean-perl
16054maybe-mostlyclean-perl:
16055@if perl
16056maybe-mostlyclean-perl: mostlyclean-perl
8ec98d6c 16057
d5eec917
PB
16058mostlyclean-perl:
16059 @[ -f ./perl/Makefile ] || exit 0; \
8ec98d6c
NN
16060 r=`${PWD_COMMAND}`; export r; \
16061 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16062 $(SET_LIB_PATH) \
a675b75a 16063 $(HOST_EXPORTS) \
d5eec917 16064 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
16065 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16066 done; \
d5eec917 16067 echo "Doing mostlyclean in perl" ; \
7fc2ca22 16068 (cd $(HOST_SUBDIR)/perl && \
8ec98d6c
NN
16069 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16070 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16071 "RANLIB=$${RANLIB}" \
16072 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 16073 mostlyclean) \
8ec98d6c
NN
16074 || exit 1
16075
d5eec917 16076@endif perl
8ec98d6c 16077
d5eec917
PB
16078.PHONY: maybe-clean-perl clean-perl
16079maybe-clean-perl:
16080@if perl
16081maybe-clean-perl: clean-perl
8ec98d6c 16082
d5eec917
PB
16083clean-perl:
16084 @[ -f ./perl/Makefile ] || exit 0; \
8ec98d6c
NN
16085 r=`${PWD_COMMAND}`; export r; \
16086 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16087 $(SET_LIB_PATH) \
a675b75a 16088 $(HOST_EXPORTS) \
d5eec917 16089 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
16090 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16091 done; \
d5eec917 16092 echo "Doing clean in perl" ; \
7fc2ca22 16093 (cd $(HOST_SUBDIR)/perl && \
8ec98d6c
NN
16094 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16095 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16096 "RANLIB=$${RANLIB}" \
16097 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 16098 clean) \
8ec98d6c
NN
16099 || exit 1
16100
d5eec917 16101@endif perl
8ec98d6c 16102
d5eec917
PB
16103.PHONY: maybe-distclean-perl distclean-perl
16104maybe-distclean-perl:
16105@if perl
16106maybe-distclean-perl: distclean-perl
8ec98d6c 16107
d5eec917
PB
16108distclean-perl:
16109 @[ -f ./perl/Makefile ] || exit 0; \
8ec98d6c
NN
16110 r=`${PWD_COMMAND}`; export r; \
16111 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16112 $(SET_LIB_PATH) \
a675b75a 16113 $(HOST_EXPORTS) \
d5eec917 16114 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
16115 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16116 done; \
d5eec917 16117 echo "Doing distclean in perl" ; \
7fc2ca22 16118 (cd $(HOST_SUBDIR)/perl && \
8ec98d6c
NN
16119 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16120 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16121 "RANLIB=$${RANLIB}" \
16122 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 16123 distclean) \
8ec98d6c
NN
16124 || exit 1
16125
d5eec917 16126@endif perl
8ec98d6c 16127
d5eec917
PB
16128.PHONY: maybe-maintainer-clean-perl maintainer-clean-perl
16129maybe-maintainer-clean-perl:
16130@if perl
16131maybe-maintainer-clean-perl: maintainer-clean-perl
8ec98d6c 16132
d5eec917
PB
16133maintainer-clean-perl:
16134 @[ -f ./perl/Makefile ] || exit 0; \
8ec98d6c 16135 r=`${PWD_COMMAND}`; export r; \
5230d454 16136 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 16137 $(SET_LIB_PATH) \
a675b75a 16138 $(HOST_EXPORTS) \
d5eec917 16139 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
16140 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16141 done; \
d5eec917 16142 echo "Doing maintainer-clean in perl" ; \
7fc2ca22 16143 (cd $(HOST_SUBDIR)/perl && \
8ec98d6c
NN
16144 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16145 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16146 "RANLIB=$${RANLIB}" \
16147 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 16148 maintainer-clean) \
8ec98d6c 16149 || exit 1
8ecc6504 16150
d5eec917 16151@endif perl
8ecc6504 16152
8ec98d6c 16153
d5eec917
PB
16154.PHONY: configure-prms maybe-configure-prms
16155maybe-configure-prms:
16156@if prms
16157maybe-configure-prms: configure-prms
16158configure-prms:
7fc2ca22
PB
16159 @test ! -f $(HOST_SUBDIR)/prms/Makefile || exit 0; \
16160 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/prms ; \
5230d454
L
16161 r=`${PWD_COMMAND}`; export r; \
16162 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 16163 $(HOST_EXPORTS) \
d5eec917 16164 echo Configuring in prms; \
7fc2ca22 16165 cd $(HOST_SUBDIR)/prms || exit 1; \
94f860c0 16166 case $(srcdir) in \
7fc2ca22
PB
16167 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
16168 *) topdir=`echo $(HOST_SUBDIR)/prms/ | \
16169 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 16170 esac; \
7fc2ca22
PB
16171 srcdiroption="--srcdir=$${topdir}/prms"; \
16172 libsrcdir="$$s/prms"; \
94f860c0 16173 $(SHELL) $${libsrcdir}/configure \
63673a5b 16174 $(HOST_CONFIGARGS) $${srcdiroption} \
94f860c0 16175 || exit 1
d5eec917 16176@endif prms
94f860c0 16177
d5eec917
PB
16178.PHONY: all-prms maybe-all-prms
16179maybe-all-prms:
16180@if prms
5e6b1f07 16181TARGET-prms=all
d5eec917
PB
16182maybe-all-prms: all-prms
16183all-prms: configure-prms
5230d454
L
16184 @r=`${PWD_COMMAND}`; export r; \
16185 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 16186 $(SET_LIB_PATH) \
a675b75a 16187 $(HOST_EXPORTS) \
7fc2ca22
PB
16188 (cd $(HOST_SUBDIR)/prms && \
16189 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-prms))
d5eec917 16190@endif prms
8ecc6504 16191
d5eec917
PB
16192.PHONY: check-prms maybe-check-prms
16193maybe-check-prms:
16194@if prms
16195maybe-check-prms: check-prms
8ecc6504 16196
d5eec917 16197check-prms:
5230d454
L
16198 @r=`${PWD_COMMAND}`; export r; \
16199 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 16200 $(SET_LIB_PATH) \
a675b75a 16201 $(HOST_EXPORTS) \
7fc2ca22
PB
16202 (cd $(HOST_SUBDIR)/prms && \
16203 $(MAKE) $(FLAGS_TO_PASS) check)
8ecc6504 16204
d5eec917 16205@endif prms
8ecc6504 16206
d5eec917
PB
16207.PHONY: install-prms maybe-install-prms
16208maybe-install-prms:
16209@if prms
16210maybe-install-prms: install-prms
8ec98d6c 16211
d5eec917 16212install-prms: installdirs
8ec98d6c
NN
16213 @r=`${PWD_COMMAND}`; export r; \
16214 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16215 $(SET_LIB_PATH) \
a675b75a 16216 $(HOST_EXPORTS) \
7fc2ca22 16217 (cd $(HOST_SUBDIR)/prms && \
93c60b6d 16218 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 16219
d5eec917 16220@endif prms
8ec98d6c
NN
16221
16222# Other targets (info, dvi, etc.)
16223
d5eec917
PB
16224.PHONY: maybe-info-prms info-prms
16225maybe-info-prms:
16226@if prms
16227maybe-info-prms: info-prms
8ec98d6c 16228
d5eec917
PB
16229info-prms: \
16230 configure-prms
16231 @[ -f ./prms/Makefile ] || exit 0; \
8ec98d6c
NN
16232 r=`${PWD_COMMAND}`; export r; \
16233 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16234 $(SET_LIB_PATH) \
a675b75a 16235 $(HOST_EXPORTS) \
d5eec917 16236 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
16237 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16238 done; \
d5eec917 16239 echo "Doing info in prms" ; \
7fc2ca22 16240 (cd $(HOST_SUBDIR)/prms && \
8ec98d6c
NN
16241 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16242 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16243 "RANLIB=$${RANLIB}" \
16244 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 16245 info) \
8ec98d6c
NN
16246 || exit 1
16247
d5eec917 16248@endif prms
8ec98d6c 16249
d5eec917
PB
16250.PHONY: maybe-dvi-prms dvi-prms
16251maybe-dvi-prms:
16252@if prms
16253maybe-dvi-prms: dvi-prms
8ec98d6c 16254
d5eec917
PB
16255dvi-prms: \
16256 configure-prms
16257 @[ -f ./prms/Makefile ] || exit 0; \
8ec98d6c
NN
16258 r=`${PWD_COMMAND}`; export r; \
16259 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16260 $(SET_LIB_PATH) \
a675b75a 16261 $(HOST_EXPORTS) \
d5eec917 16262 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
16263 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16264 done; \
d5eec917 16265 echo "Doing dvi in prms" ; \
7fc2ca22 16266 (cd $(HOST_SUBDIR)/prms && \
8ec98d6c
NN
16267 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16268 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16269 "RANLIB=$${RANLIB}" \
16270 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 16271 dvi) \
8ec98d6c
NN
16272 || exit 1
16273
d5eec917 16274@endif prms
8ec98d6c 16275
b6fb961f
MS
16276.PHONY: maybe-html-prms html-prms
16277maybe-html-prms:
16278@if prms
16279maybe-html-prms: html-prms
16280
16281html-prms: \
16282 configure-prms
16283 @[ -f ./prms/Makefile ] || exit 0; \
16284 r=`${PWD_COMMAND}`; export r; \
16285 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16286 $(SET_LIB_PATH) \
16287 $(HOST_EXPORTS) \
16288 for flag in $(EXTRA_HOST_FLAGS) ; do \
16289 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16290 done; \
16291 echo "Doing html in prms" ; \
7fc2ca22 16292 (cd $(HOST_SUBDIR)/prms && \
b6fb961f
MS
16293 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16294 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16295 "RANLIB=$${RANLIB}" \
16296 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16297 html) \
16298 || exit 1
16299
16300@endif prms
16301
d5eec917
PB
16302.PHONY: maybe-TAGS-prms TAGS-prms
16303maybe-TAGS-prms:
16304@if prms
16305maybe-TAGS-prms: TAGS-prms
8ec98d6c 16306
d5eec917
PB
16307TAGS-prms: \
16308 configure-prms
16309 @[ -f ./prms/Makefile ] || exit 0; \
8ec98d6c
NN
16310 r=`${PWD_COMMAND}`; export r; \
16311 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16312 $(SET_LIB_PATH) \
a675b75a 16313 $(HOST_EXPORTS) \
d5eec917 16314 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
16315 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16316 done; \
d5eec917 16317 echo "Doing TAGS in prms" ; \
7fc2ca22 16318 (cd $(HOST_SUBDIR)/prms && \
8ec98d6c
NN
16319 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16320 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16321 "RANLIB=$${RANLIB}" \
16322 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 16323 TAGS) \
8ec98d6c
NN
16324 || exit 1
16325
d5eec917 16326@endif prms
8ec98d6c 16327
d5eec917
PB
16328.PHONY: maybe-install-info-prms install-info-prms
16329maybe-install-info-prms:
16330@if prms
16331maybe-install-info-prms: install-info-prms
8ec98d6c 16332
d5eec917
PB
16333install-info-prms: \
16334 configure-prms \
16335 info-prms
16336 @[ -f ./prms/Makefile ] || exit 0; \
8ec98d6c
NN
16337 r=`${PWD_COMMAND}`; export r; \
16338 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16339 $(SET_LIB_PATH) \
a675b75a 16340 $(HOST_EXPORTS) \
d5eec917 16341 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
16342 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16343 done; \
d5eec917 16344 echo "Doing install-info in prms" ; \
7fc2ca22 16345 (cd $(HOST_SUBDIR)/prms && \
8ec98d6c
NN
16346 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16347 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16348 "RANLIB=$${RANLIB}" \
16349 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 16350 install-info) \
8ec98d6c
NN
16351 || exit 1
16352
d5eec917 16353@endif prms
8ec98d6c 16354
d5eec917
PB
16355.PHONY: maybe-installcheck-prms installcheck-prms
16356maybe-installcheck-prms:
16357@if prms
16358maybe-installcheck-prms: installcheck-prms
8ec98d6c 16359
d5eec917
PB
16360installcheck-prms: \
16361 configure-prms
16362 @[ -f ./prms/Makefile ] || exit 0; \
8ec98d6c
NN
16363 r=`${PWD_COMMAND}`; export r; \
16364 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16365 $(SET_LIB_PATH) \
a675b75a 16366 $(HOST_EXPORTS) \
d5eec917 16367 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
16368 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16369 done; \
d5eec917 16370 echo "Doing installcheck in prms" ; \
7fc2ca22 16371 (cd $(HOST_SUBDIR)/prms && \
8ec98d6c
NN
16372 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16373 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16374 "RANLIB=$${RANLIB}" \
16375 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 16376 installcheck) \
8ec98d6c
NN
16377 || exit 1
16378
d5eec917 16379@endif prms
8ec98d6c 16380
d5eec917
PB
16381.PHONY: maybe-mostlyclean-prms mostlyclean-prms
16382maybe-mostlyclean-prms:
16383@if prms
16384maybe-mostlyclean-prms: mostlyclean-prms
8ec98d6c 16385
d5eec917
PB
16386mostlyclean-prms:
16387 @[ -f ./prms/Makefile ] || exit 0; \
8ec98d6c
NN
16388 r=`${PWD_COMMAND}`; export r; \
16389 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16390 $(SET_LIB_PATH) \
a675b75a 16391 $(HOST_EXPORTS) \
d5eec917 16392 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
16393 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16394 done; \
d5eec917 16395 echo "Doing mostlyclean in prms" ; \
7fc2ca22 16396 (cd $(HOST_SUBDIR)/prms && \
8ec98d6c
NN
16397 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16398 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16399 "RANLIB=$${RANLIB}" \
16400 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 16401 mostlyclean) \
8ec98d6c
NN
16402 || exit 1
16403
d5eec917 16404@endif prms
8ec98d6c 16405
d5eec917
PB
16406.PHONY: maybe-clean-prms clean-prms
16407maybe-clean-prms:
16408@if prms
16409maybe-clean-prms: clean-prms
8ec98d6c 16410
d5eec917
PB
16411clean-prms:
16412 @[ -f ./prms/Makefile ] || exit 0; \
8ec98d6c
NN
16413 r=`${PWD_COMMAND}`; export r; \
16414 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16415 $(SET_LIB_PATH) \
a675b75a 16416 $(HOST_EXPORTS) \
d5eec917 16417 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
16418 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16419 done; \
d5eec917 16420 echo "Doing clean in prms" ; \
7fc2ca22 16421 (cd $(HOST_SUBDIR)/prms && \
8ec98d6c
NN
16422 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16423 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16424 "RANLIB=$${RANLIB}" \
16425 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 16426 clean) \
8ec98d6c
NN
16427 || exit 1
16428
d5eec917 16429@endif prms
8ec98d6c 16430
d5eec917
PB
16431.PHONY: maybe-distclean-prms distclean-prms
16432maybe-distclean-prms:
16433@if prms
16434maybe-distclean-prms: distclean-prms
8ec98d6c 16435
d5eec917
PB
16436distclean-prms:
16437 @[ -f ./prms/Makefile ] || exit 0; \
8ec98d6c
NN
16438 r=`${PWD_COMMAND}`; export r; \
16439 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16440 $(SET_LIB_PATH) \
a675b75a 16441 $(HOST_EXPORTS) \
d5eec917 16442 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
16443 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16444 done; \
d5eec917 16445 echo "Doing distclean in prms" ; \
7fc2ca22 16446 (cd $(HOST_SUBDIR)/prms && \
8ec98d6c
NN
16447 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16448 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16449 "RANLIB=$${RANLIB}" \
16450 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 16451 distclean) \
8ec98d6c
NN
16452 || exit 1
16453
d5eec917 16454@endif prms
8ec98d6c 16455
d5eec917
PB
16456.PHONY: maybe-maintainer-clean-prms maintainer-clean-prms
16457maybe-maintainer-clean-prms:
16458@if prms
16459maybe-maintainer-clean-prms: maintainer-clean-prms
8ec98d6c 16460
d5eec917
PB
16461maintainer-clean-prms:
16462 @[ -f ./prms/Makefile ] || exit 0; \
8ec98d6c
NN
16463 r=`${PWD_COMMAND}`; export r; \
16464 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16465 $(SET_LIB_PATH) \
a675b75a 16466 $(HOST_EXPORTS) \
d5eec917 16467 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
16468 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16469 done; \
d5eec917 16470 echo "Doing maintainer-clean in prms" ; \
7fc2ca22 16471 (cd $(HOST_SUBDIR)/prms && \
8ec98d6c
NN
16472 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16473 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16474 "RANLIB=$${RANLIB}" \
16475 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 16476 maintainer-clean) \
8ec98d6c 16477 || exit 1
70ffc148 16478
d5eec917 16479@endif prms
8ecc6504
NN
16480
16481
d5eec917
PB
16482.PHONY: configure-rcs maybe-configure-rcs
16483maybe-configure-rcs:
16484@if rcs
16485maybe-configure-rcs: configure-rcs
16486configure-rcs:
7fc2ca22
PB
16487 @test ! -f $(HOST_SUBDIR)/rcs/Makefile || exit 0; \
16488 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/rcs ; \
5230d454
L
16489 r=`${PWD_COMMAND}`; export r; \
16490 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 16491 $(HOST_EXPORTS) \
d5eec917 16492 echo Configuring in rcs; \
7fc2ca22 16493 cd $(HOST_SUBDIR)/rcs || exit 1; \
94f860c0 16494 case $(srcdir) in \
7fc2ca22
PB
16495 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
16496 *) topdir=`echo $(HOST_SUBDIR)/rcs/ | \
16497 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 16498 esac; \
7fc2ca22
PB
16499 srcdiroption="--srcdir=$${topdir}/rcs"; \
16500 libsrcdir="$$s/rcs"; \
94f860c0 16501 $(SHELL) $${libsrcdir}/configure \
63673a5b 16502 $(HOST_CONFIGARGS) $${srcdiroption} \
94f860c0 16503 || exit 1
d5eec917 16504@endif rcs
94f860c0 16505
d5eec917
PB
16506.PHONY: all-rcs maybe-all-rcs
16507maybe-all-rcs:
16508@if rcs
5e6b1f07 16509TARGET-rcs=all
d5eec917
PB
16510maybe-all-rcs: all-rcs
16511all-rcs: configure-rcs
5230d454
L
16512 @r=`${PWD_COMMAND}`; export r; \
16513 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 16514 $(SET_LIB_PATH) \
a675b75a 16515 $(HOST_EXPORTS) \
7fc2ca22
PB
16516 (cd $(HOST_SUBDIR)/rcs && \
16517 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-rcs))
d5eec917 16518@endif rcs
8ecc6504 16519
d5eec917
PB
16520.PHONY: check-rcs maybe-check-rcs
16521maybe-check-rcs:
16522@if rcs
16523maybe-check-rcs: check-rcs
8ecc6504 16524
d5eec917 16525check-rcs:
5230d454
L
16526 @r=`${PWD_COMMAND}`; export r; \
16527 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 16528 $(SET_LIB_PATH) \
a675b75a 16529 $(HOST_EXPORTS) \
7fc2ca22
PB
16530 (cd $(HOST_SUBDIR)/rcs && \
16531 $(MAKE) $(FLAGS_TO_PASS) check)
8ecc6504 16532
d5eec917 16533@endif rcs
8ecc6504 16534
d5eec917
PB
16535.PHONY: install-rcs maybe-install-rcs
16536maybe-install-rcs:
16537@if rcs
16538maybe-install-rcs: install-rcs
70ffc148 16539
d5eec917 16540install-rcs: installdirs
5230d454
L
16541 @r=`${PWD_COMMAND}`; export r; \
16542 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 16543 $(SET_LIB_PATH) \
a675b75a 16544 $(HOST_EXPORTS) \
7fc2ca22 16545 (cd $(HOST_SUBDIR)/rcs && \
93c60b6d 16546 $(MAKE) $(FLAGS_TO_PASS) install)
8ecc6504 16547
d5eec917 16548@endif rcs
8ecc6504 16549
8ec98d6c
NN
16550# Other targets (info, dvi, etc.)
16551
d5eec917
PB
16552.PHONY: maybe-info-rcs info-rcs
16553maybe-info-rcs:
16554@if rcs
16555maybe-info-rcs: info-rcs
8ec98d6c 16556
d5eec917
PB
16557info-rcs: \
16558 configure-rcs
16559 @[ -f ./rcs/Makefile ] || exit 0; \
8ec98d6c
NN
16560 r=`${PWD_COMMAND}`; export r; \
16561 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16562 $(SET_LIB_PATH) \
a675b75a 16563 $(HOST_EXPORTS) \
d5eec917 16564 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
16565 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16566 done; \
d5eec917 16567 echo "Doing info in rcs" ; \
7fc2ca22 16568 (cd $(HOST_SUBDIR)/rcs && \
8ec98d6c
NN
16569 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16570 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16571 "RANLIB=$${RANLIB}" \
16572 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 16573 info) \
8ec98d6c
NN
16574 || exit 1
16575
d5eec917 16576@endif rcs
8ec98d6c 16577
d5eec917
PB
16578.PHONY: maybe-dvi-rcs dvi-rcs
16579maybe-dvi-rcs:
16580@if rcs
16581maybe-dvi-rcs: dvi-rcs
8ec98d6c 16582
d5eec917
PB
16583dvi-rcs: \
16584 configure-rcs
16585 @[ -f ./rcs/Makefile ] || exit 0; \
8ec98d6c
NN
16586 r=`${PWD_COMMAND}`; export r; \
16587 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16588 $(SET_LIB_PATH) \
a675b75a 16589 $(HOST_EXPORTS) \
d5eec917 16590 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
16591 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16592 done; \
d5eec917 16593 echo "Doing dvi in rcs" ; \
7fc2ca22 16594 (cd $(HOST_SUBDIR)/rcs && \
8ec98d6c
NN
16595 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16596 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16597 "RANLIB=$${RANLIB}" \
16598 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 16599 dvi) \
8ec98d6c
NN
16600 || exit 1
16601
d5eec917 16602@endif rcs
8ec98d6c 16603
b6fb961f
MS
16604.PHONY: maybe-html-rcs html-rcs
16605maybe-html-rcs:
16606@if rcs
16607maybe-html-rcs: html-rcs
16608
16609html-rcs: \
16610 configure-rcs
16611 @[ -f ./rcs/Makefile ] || exit 0; \
16612 r=`${PWD_COMMAND}`; export r; \
16613 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16614 $(SET_LIB_PATH) \
16615 $(HOST_EXPORTS) \
16616 for flag in $(EXTRA_HOST_FLAGS) ; do \
16617 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16618 done; \
16619 echo "Doing html in rcs" ; \
7fc2ca22 16620 (cd $(HOST_SUBDIR)/rcs && \
b6fb961f
MS
16621 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16622 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16623 "RANLIB=$${RANLIB}" \
16624 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16625 html) \
16626 || exit 1
16627
16628@endif rcs
16629
d5eec917
PB
16630.PHONY: maybe-TAGS-rcs TAGS-rcs
16631maybe-TAGS-rcs:
16632@if rcs
16633maybe-TAGS-rcs: TAGS-rcs
8ec98d6c 16634
d5eec917
PB
16635TAGS-rcs: \
16636 configure-rcs
16637 @[ -f ./rcs/Makefile ] || exit 0; \
8ec98d6c
NN
16638 r=`${PWD_COMMAND}`; export r; \
16639 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16640 $(SET_LIB_PATH) \
a675b75a 16641 $(HOST_EXPORTS) \
d5eec917 16642 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
16643 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16644 done; \
d5eec917 16645 echo "Doing TAGS in rcs" ; \
7fc2ca22 16646 (cd $(HOST_SUBDIR)/rcs && \
8ec98d6c
NN
16647 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16648 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16649 "RANLIB=$${RANLIB}" \
16650 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 16651 TAGS) \
8ec98d6c
NN
16652 || exit 1
16653
d5eec917 16654@endif rcs
8ec98d6c 16655
d5eec917
PB
16656.PHONY: maybe-install-info-rcs install-info-rcs
16657maybe-install-info-rcs:
16658@if rcs
16659maybe-install-info-rcs: install-info-rcs
8ec98d6c 16660
d5eec917
PB
16661install-info-rcs: \
16662 configure-rcs \
16663 info-rcs
16664 @[ -f ./rcs/Makefile ] || exit 0; \
8ec98d6c
NN
16665 r=`${PWD_COMMAND}`; export r; \
16666 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16667 $(SET_LIB_PATH) \
a675b75a 16668 $(HOST_EXPORTS) \
d5eec917 16669 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
16670 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16671 done; \
d5eec917 16672 echo "Doing install-info in rcs" ; \
7fc2ca22 16673 (cd $(HOST_SUBDIR)/rcs && \
8ec98d6c
NN
16674 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16675 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16676 "RANLIB=$${RANLIB}" \
16677 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 16678 install-info) \
8ec98d6c
NN
16679 || exit 1
16680
d5eec917 16681@endif rcs
8ec98d6c 16682
d5eec917
PB
16683.PHONY: maybe-installcheck-rcs installcheck-rcs
16684maybe-installcheck-rcs:
16685@if rcs
16686maybe-installcheck-rcs: installcheck-rcs
8ec98d6c 16687
d5eec917
PB
16688installcheck-rcs: \
16689 configure-rcs
16690 @[ -f ./rcs/Makefile ] || exit 0; \
8ec98d6c
NN
16691 r=`${PWD_COMMAND}`; export r; \
16692 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16693 $(SET_LIB_PATH) \
a675b75a 16694 $(HOST_EXPORTS) \
d5eec917 16695 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
16696 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16697 done; \
d5eec917 16698 echo "Doing installcheck in rcs" ; \
7fc2ca22 16699 (cd $(HOST_SUBDIR)/rcs && \
8ec98d6c
NN
16700 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16701 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16702 "RANLIB=$${RANLIB}" \
16703 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 16704 installcheck) \
8ec98d6c
NN
16705 || exit 1
16706
d5eec917 16707@endif rcs
8ec98d6c 16708
d5eec917
PB
16709.PHONY: maybe-mostlyclean-rcs mostlyclean-rcs
16710maybe-mostlyclean-rcs:
16711@if rcs
16712maybe-mostlyclean-rcs: mostlyclean-rcs
8ec98d6c 16713
d5eec917
PB
16714mostlyclean-rcs:
16715 @[ -f ./rcs/Makefile ] || exit 0; \
8ec98d6c
NN
16716 r=`${PWD_COMMAND}`; export r; \
16717 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16718 $(SET_LIB_PATH) \
a675b75a 16719 $(HOST_EXPORTS) \
d5eec917 16720 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
16721 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16722 done; \
d5eec917 16723 echo "Doing mostlyclean in rcs" ; \
7fc2ca22 16724 (cd $(HOST_SUBDIR)/rcs && \
8ec98d6c
NN
16725 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16726 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16727 "RANLIB=$${RANLIB}" \
16728 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 16729 mostlyclean) \
8ec98d6c
NN
16730 || exit 1
16731
d5eec917 16732@endif rcs
8ec98d6c 16733
d5eec917
PB
16734.PHONY: maybe-clean-rcs clean-rcs
16735maybe-clean-rcs:
16736@if rcs
16737maybe-clean-rcs: clean-rcs
8ec98d6c 16738
d5eec917
PB
16739clean-rcs:
16740 @[ -f ./rcs/Makefile ] || exit 0; \
8ec98d6c
NN
16741 r=`${PWD_COMMAND}`; export r; \
16742 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16743 $(SET_LIB_PATH) \
a675b75a 16744 $(HOST_EXPORTS) \
d5eec917 16745 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
16746 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16747 done; \
d5eec917 16748 echo "Doing clean in rcs" ; \
7fc2ca22 16749 (cd $(HOST_SUBDIR)/rcs && \
8ec98d6c
NN
16750 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16751 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16752 "RANLIB=$${RANLIB}" \
16753 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 16754 clean) \
8ec98d6c
NN
16755 || exit 1
16756
d5eec917 16757@endif rcs
8ec98d6c 16758
d5eec917
PB
16759.PHONY: maybe-distclean-rcs distclean-rcs
16760maybe-distclean-rcs:
16761@if rcs
16762maybe-distclean-rcs: distclean-rcs
8ec98d6c 16763
d5eec917
PB
16764distclean-rcs:
16765 @[ -f ./rcs/Makefile ] || exit 0; \
8ec98d6c
NN
16766 r=`${PWD_COMMAND}`; export r; \
16767 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16768 $(SET_LIB_PATH) \
a675b75a 16769 $(HOST_EXPORTS) \
d5eec917 16770 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
16771 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16772 done; \
d5eec917 16773 echo "Doing distclean in rcs" ; \
7fc2ca22 16774 (cd $(HOST_SUBDIR)/rcs && \
8ec98d6c
NN
16775 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16776 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16777 "RANLIB=$${RANLIB}" \
16778 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 16779 distclean) \
8ec98d6c
NN
16780 || exit 1
16781
d5eec917 16782@endif rcs
8ec98d6c 16783
d5eec917
PB
16784.PHONY: maybe-maintainer-clean-rcs maintainer-clean-rcs
16785maybe-maintainer-clean-rcs:
16786@if rcs
16787maybe-maintainer-clean-rcs: maintainer-clean-rcs
8ec98d6c 16788
d5eec917
PB
16789maintainer-clean-rcs:
16790 @[ -f ./rcs/Makefile ] || exit 0; \
8ec98d6c
NN
16791 r=`${PWD_COMMAND}`; export r; \
16792 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16793 $(SET_LIB_PATH) \
a675b75a 16794 $(HOST_EXPORTS) \
d5eec917 16795 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
16796 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16797 done; \
d5eec917 16798 echo "Doing maintainer-clean in rcs" ; \
7fc2ca22 16799 (cd $(HOST_SUBDIR)/rcs && \
8ec98d6c
NN
16800 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16801 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16802 "RANLIB=$${RANLIB}" \
16803 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 16804 maintainer-clean) \
8ec98d6c
NN
16805 || exit 1
16806
d5eec917 16807@endif rcs
8ec98d6c
NN
16808
16809
d5eec917
PB
16810.PHONY: configure-readline maybe-configure-readline
16811maybe-configure-readline:
16812@if readline
16813maybe-configure-readline: configure-readline
16814configure-readline:
7fc2ca22
PB
16815 @test ! -f $(HOST_SUBDIR)/readline/Makefile || exit 0; \
16816 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/readline ; \
5230d454
L
16817 r=`${PWD_COMMAND}`; export r; \
16818 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 16819 $(HOST_EXPORTS) \
d5eec917 16820 echo Configuring in readline; \
7fc2ca22 16821 cd $(HOST_SUBDIR)/readline || exit 1; \
94f860c0 16822 case $(srcdir) in \
7fc2ca22
PB
16823 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
16824 *) topdir=`echo $(HOST_SUBDIR)/readline/ | \
16825 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 16826 esac; \
7fc2ca22
PB
16827 srcdiroption="--srcdir=$${topdir}/readline"; \
16828 libsrcdir="$$s/readline"; \
94f860c0 16829 $(SHELL) $${libsrcdir}/configure \
63673a5b 16830 $(HOST_CONFIGARGS) $${srcdiroption} \
94f860c0 16831 || exit 1
d5eec917 16832@endif readline
94f860c0 16833
d5eec917
PB
16834.PHONY: all-readline maybe-all-readline
16835maybe-all-readline:
16836@if readline
5e6b1f07 16837TARGET-readline=all
d5eec917
PB
16838maybe-all-readline: all-readline
16839all-readline: configure-readline
5230d454
L
16840 @r=`${PWD_COMMAND}`; export r; \
16841 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 16842 $(SET_LIB_PATH) \
a675b75a 16843 $(HOST_EXPORTS) \
7fc2ca22
PB
16844 (cd $(HOST_SUBDIR)/readline && \
16845 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-readline))
d5eec917 16846@endif readline
8ecc6504 16847
d5eec917
PB
16848.PHONY: check-readline maybe-check-readline
16849maybe-check-readline:
16850@if readline
16851maybe-check-readline: check-readline
8ecc6504 16852
d5eec917
PB
16853check-readline:
16854 @r=`${PWD_COMMAND}`; export r; \
16855 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16856 $(SET_LIB_PATH) \
16857 $(HOST_EXPORTS) \
7fc2ca22
PB
16858 (cd $(HOST_SUBDIR)/readline && \
16859 $(MAKE) $(FLAGS_TO_PASS) check)
8ec98d6c 16860
d5eec917 16861@endif readline
8ec98d6c 16862
d5eec917
PB
16863.PHONY: install-readline maybe-install-readline
16864maybe-install-readline:
16865@if readline
16866maybe-install-readline: install-readline
8ec98d6c 16867
d5eec917
PB
16868install-readline: installdirs
16869 @r=`${PWD_COMMAND}`; export r; \
16870 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16871 $(SET_LIB_PATH) \
16872 $(HOST_EXPORTS) \
7fc2ca22 16873 (cd $(HOST_SUBDIR)/readline && \
93c60b6d 16874 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 16875
d5eec917 16876@endif readline
8ec98d6c
NN
16877
16878# Other targets (info, dvi, etc.)
16879
d5eec917
PB
16880.PHONY: maybe-info-readline info-readline
16881maybe-info-readline:
16882@if readline
16883maybe-info-readline: info-readline
8ec98d6c 16884
d5eec917
PB
16885info-readline: \
16886 configure-readline
16887 @[ -f ./readline/Makefile ] || exit 0; \
8ec98d6c 16888 r=`${PWD_COMMAND}`; export r; \
5230d454 16889 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 16890 $(SET_LIB_PATH) \
a675b75a 16891 $(HOST_EXPORTS) \
d5eec917 16892 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
16893 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16894 done; \
d5eec917 16895 echo "Doing info in readline" ; \
7fc2ca22 16896 (cd $(HOST_SUBDIR)/readline && \
8ec98d6c
NN
16897 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16898 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16899 "RANLIB=$${RANLIB}" \
16900 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 16901 info) \
8ec98d6c 16902 || exit 1
8ecc6504 16903
d5eec917 16904@endif readline
8ecc6504 16905
d5eec917
PB
16906.PHONY: maybe-dvi-readline dvi-readline
16907maybe-dvi-readline:
16908@if readline
16909maybe-dvi-readline: dvi-readline
70ffc148 16910
d5eec917
PB
16911dvi-readline: \
16912 configure-readline
16913 @[ -f ./readline/Makefile ] || exit 0; \
8ec98d6c 16914 r=`${PWD_COMMAND}`; export r; \
5230d454 16915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 16916 $(SET_LIB_PATH) \
a675b75a 16917 $(HOST_EXPORTS) \
d5eec917 16918 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
16919 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16920 done; \
d5eec917 16921 echo "Doing dvi in readline" ; \
7fc2ca22 16922 (cd $(HOST_SUBDIR)/readline && \
8ec98d6c
NN
16923 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16924 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16925 "RANLIB=$${RANLIB}" \
16926 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 16927 dvi) \
8ec98d6c 16928 || exit 1
8ecc6504 16929
d5eec917 16930@endif readline
8ecc6504 16931
b6fb961f
MS
16932.PHONY: maybe-html-readline html-readline
16933maybe-html-readline:
16934@if readline
16935maybe-html-readline: html-readline
16936
16937html-readline: \
16938 configure-readline
16939 @[ -f ./readline/Makefile ] || exit 0; \
16940 r=`${PWD_COMMAND}`; export r; \
16941 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16942 $(SET_LIB_PATH) \
16943 $(HOST_EXPORTS) \
16944 for flag in $(EXTRA_HOST_FLAGS) ; do \
16945 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16946 done; \
16947 echo "Doing html in readline" ; \
7fc2ca22 16948 (cd $(HOST_SUBDIR)/readline && \
b6fb961f
MS
16949 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16950 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16951 "RANLIB=$${RANLIB}" \
16952 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16953 html) \
16954 || exit 1
16955
16956@endif readline
16957
d5eec917
PB
16958.PHONY: maybe-TAGS-readline TAGS-readline
16959maybe-TAGS-readline:
16960@if readline
16961maybe-TAGS-readline: TAGS-readline
8ec98d6c 16962
d5eec917
PB
16963TAGS-readline: \
16964 configure-readline
16965 @[ -f ./readline/Makefile ] || exit 0; \
5230d454
L
16966 r=`${PWD_COMMAND}`; export r; \
16967 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8ec98d6c 16968 $(SET_LIB_PATH) \
a675b75a 16969 $(HOST_EXPORTS) \
d5eec917 16970 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
16971 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16972 done; \
d5eec917 16973 echo "Doing TAGS in readline" ; \
7fc2ca22 16974 (cd $(HOST_SUBDIR)/readline && \
8ec98d6c
NN
16975 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16976 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16977 "RANLIB=$${RANLIB}" \
16978 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 16979 TAGS) \
94f860c0
NN
16980 || exit 1
16981
d5eec917 16982@endif readline
8ec98d6c 16983
d5eec917
PB
16984.PHONY: maybe-install-info-readline install-info-readline
16985maybe-install-info-readline:
16986@if readline
16987maybe-install-info-readline: install-info-readline
8ec98d6c 16988
d5eec917
PB
16989install-info-readline: \
16990 configure-readline \
16991 info-readline
16992 @[ -f ./readline/Makefile ] || exit 0; \
8ec98d6c 16993 r=`${PWD_COMMAND}`; export r; \
5230d454 16994 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 16995 $(SET_LIB_PATH) \
a675b75a 16996 $(HOST_EXPORTS) \
d5eec917 16997 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
16998 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16999 done; \
d5eec917 17000 echo "Doing install-info in readline" ; \
7fc2ca22 17001 (cd $(HOST_SUBDIR)/readline && \
8ec98d6c
NN
17002 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17003 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17004 "RANLIB=$${RANLIB}" \
17005 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 17006 install-info) \
8ec98d6c 17007 || exit 1
8ecc6504 17008
d5eec917 17009@endif readline
8ecc6504 17010
d5eec917
PB
17011.PHONY: maybe-installcheck-readline installcheck-readline
17012maybe-installcheck-readline:
17013@if readline
17014maybe-installcheck-readline: installcheck-readline
8ec98d6c 17015
d5eec917
PB
17016installcheck-readline: \
17017 configure-readline
17018 @[ -f ./readline/Makefile ] || exit 0; \
8ec98d6c
NN
17019 r=`${PWD_COMMAND}`; export r; \
17020 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17021 $(SET_LIB_PATH) \
a675b75a 17022 $(HOST_EXPORTS) \
d5eec917 17023 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
17024 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17025 done; \
d5eec917 17026 echo "Doing installcheck in readline" ; \
7fc2ca22 17027 (cd $(HOST_SUBDIR)/readline && \
8ec98d6c
NN
17028 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17029 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17030 "RANLIB=$${RANLIB}" \
17031 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 17032 installcheck) \
8ec98d6c 17033 || exit 1
8ecc6504 17034
d5eec917 17035@endif readline
8ecc6504 17036
d5eec917
PB
17037.PHONY: maybe-mostlyclean-readline mostlyclean-readline
17038maybe-mostlyclean-readline:
17039@if readline
17040maybe-mostlyclean-readline: mostlyclean-readline
8ec98d6c 17041
d5eec917
PB
17042mostlyclean-readline:
17043 @[ -f ./readline/Makefile ] || exit 0; \
8ec98d6c
NN
17044 r=`${PWD_COMMAND}`; export r; \
17045 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17046 $(SET_LIB_PATH) \
a675b75a 17047 $(HOST_EXPORTS) \
d5eec917 17048 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
17049 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17050 done; \
d5eec917 17051 echo "Doing mostlyclean in readline" ; \
7fc2ca22 17052 (cd $(HOST_SUBDIR)/readline && \
8ec98d6c
NN
17053 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17054 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17055 "RANLIB=$${RANLIB}" \
17056 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 17057 mostlyclean) \
8ec98d6c
NN
17058 || exit 1
17059
d5eec917 17060@endif readline
8ec98d6c 17061
d5eec917
PB
17062.PHONY: maybe-clean-readline clean-readline
17063maybe-clean-readline:
17064@if readline
17065maybe-clean-readline: clean-readline
8ec98d6c 17066
d5eec917
PB
17067clean-readline:
17068 @[ -f ./readline/Makefile ] || exit 0; \
8ec98d6c
NN
17069 r=`${PWD_COMMAND}`; export r; \
17070 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17071 $(SET_LIB_PATH) \
a675b75a 17072 $(HOST_EXPORTS) \
d5eec917 17073 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
17074 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17075 done; \
d5eec917 17076 echo "Doing clean in readline" ; \
7fc2ca22 17077 (cd $(HOST_SUBDIR)/readline && \
8ec98d6c
NN
17078 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17079 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17080 "RANLIB=$${RANLIB}" \
17081 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 17082 clean) \
8ec98d6c
NN
17083 || exit 1
17084
d5eec917 17085@endif readline
8ec98d6c 17086
d5eec917
PB
17087.PHONY: maybe-distclean-readline distclean-readline
17088maybe-distclean-readline:
17089@if readline
17090maybe-distclean-readline: distclean-readline
8ec98d6c 17091
d5eec917
PB
17092distclean-readline:
17093 @[ -f ./readline/Makefile ] || exit 0; \
8ec98d6c
NN
17094 r=`${PWD_COMMAND}`; export r; \
17095 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17096 $(SET_LIB_PATH) \
a675b75a 17097 $(HOST_EXPORTS) \
d5eec917 17098 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
17099 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17100 done; \
d5eec917 17101 echo "Doing distclean in readline" ; \
7fc2ca22 17102 (cd $(HOST_SUBDIR)/readline && \
8ec98d6c
NN
17103 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17104 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17105 "RANLIB=$${RANLIB}" \
17106 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 17107 distclean) \
8ec98d6c
NN
17108 || exit 1
17109
d5eec917 17110@endif readline
8ec98d6c 17111
d5eec917
PB
17112.PHONY: maybe-maintainer-clean-readline maintainer-clean-readline
17113maybe-maintainer-clean-readline:
17114@if readline
17115maybe-maintainer-clean-readline: maintainer-clean-readline
70ffc148 17116
d5eec917
PB
17117maintainer-clean-readline:
17118 @[ -f ./readline/Makefile ] || exit 0; \
8ec98d6c 17119 r=`${PWD_COMMAND}`; export r; \
5230d454 17120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 17121 $(SET_LIB_PATH) \
a675b75a 17122 $(HOST_EXPORTS) \
d5eec917 17123 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
17124 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17125 done; \
d5eec917 17126 echo "Doing maintainer-clean in readline" ; \
7fc2ca22 17127 (cd $(HOST_SUBDIR)/readline && \
8ec98d6c
NN
17128 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17129 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17130 "RANLIB=$${RANLIB}" \
17131 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 17132 maintainer-clean) \
8ec98d6c 17133 || exit 1
8ecc6504 17134
d5eec917 17135@endif readline
8ecc6504 17136
8ec98d6c 17137
d5eec917
PB
17138.PHONY: configure-release maybe-configure-release
17139maybe-configure-release:
17140@if release
17141maybe-configure-release: configure-release
17142configure-release:
7fc2ca22
PB
17143 @test ! -f $(HOST_SUBDIR)/release/Makefile || exit 0; \
17144 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/release ; \
5230d454
L
17145 r=`${PWD_COMMAND}`; export r; \
17146 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 17147 $(HOST_EXPORTS) \
d5eec917 17148 echo Configuring in release; \
7fc2ca22 17149 cd $(HOST_SUBDIR)/release || exit 1; \
94f860c0 17150 case $(srcdir) in \
7fc2ca22
PB
17151 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
17152 *) topdir=`echo $(HOST_SUBDIR)/release/ | \
17153 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 17154 esac; \
7fc2ca22
PB
17155 srcdiroption="--srcdir=$${topdir}/release"; \
17156 libsrcdir="$$s/release"; \
94f860c0 17157 $(SHELL) $${libsrcdir}/configure \
63673a5b 17158 $(HOST_CONFIGARGS) $${srcdiroption} \
94f860c0 17159 || exit 1
d5eec917 17160@endif release
94f860c0 17161
d5eec917
PB
17162.PHONY: all-release maybe-all-release
17163maybe-all-release:
17164@if release
5e6b1f07 17165TARGET-release=all
d5eec917
PB
17166maybe-all-release: all-release
17167all-release: configure-release
5230d454
L
17168 @r=`${PWD_COMMAND}`; export r; \
17169 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 17170 $(SET_LIB_PATH) \
a675b75a 17171 $(HOST_EXPORTS) \
7fc2ca22
PB
17172 (cd $(HOST_SUBDIR)/release && \
17173 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-release))
d5eec917 17174@endif release
8ecc6504 17175
d5eec917
PB
17176.PHONY: check-release maybe-check-release
17177maybe-check-release:
17178@if release
17179maybe-check-release: check-release
8ecc6504 17180
d5eec917 17181check-release:
8ecc6504 17182
d5eec917 17183@endif release
8ecc6504 17184
d5eec917
PB
17185.PHONY: install-release maybe-install-release
17186maybe-install-release:
17187@if release
17188maybe-install-release: install-release
70ffc148 17189
d5eec917 17190install-release:
8ec98d6c 17191
d5eec917 17192@endif release
8ec98d6c
NN
17193
17194# Other targets (info, dvi, etc.)
17195
d5eec917
PB
17196.PHONY: maybe-info-release info-release
17197maybe-info-release:
17198@if release
17199maybe-info-release: info-release
8ec98d6c 17200
d5eec917
PB
17201info-release: \
17202 configure-release
17203 @[ -f ./release/Makefile ] || exit 0; \
8ec98d6c
NN
17204 r=`${PWD_COMMAND}`; export r; \
17205 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17206 $(SET_LIB_PATH) \
a675b75a 17207 $(HOST_EXPORTS) \
d5eec917 17208 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
17209 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17210 done; \
d5eec917 17211 echo "Doing info in release" ; \
7fc2ca22 17212 (cd $(HOST_SUBDIR)/release && \
8ec98d6c
NN
17213 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17214 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17215 "RANLIB=$${RANLIB}" \
17216 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 17217 info) \
8ec98d6c
NN
17218 || exit 1
17219
d5eec917 17220@endif release
8ec98d6c 17221
d5eec917
PB
17222.PHONY: maybe-dvi-release dvi-release
17223maybe-dvi-release:
17224@if release
17225maybe-dvi-release: dvi-release
8ec98d6c 17226
d5eec917
PB
17227dvi-release: \
17228 configure-release
17229 @[ -f ./release/Makefile ] || exit 0; \
8ec98d6c
NN
17230 r=`${PWD_COMMAND}`; export r; \
17231 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17232 $(SET_LIB_PATH) \
a675b75a 17233 $(HOST_EXPORTS) \
d5eec917 17234 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
17235 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17236 done; \
d5eec917 17237 echo "Doing dvi in release" ; \
7fc2ca22 17238 (cd $(HOST_SUBDIR)/release && \
8ec98d6c
NN
17239 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17240 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17241 "RANLIB=$${RANLIB}" \
17242 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 17243 dvi) \
8ec98d6c
NN
17244 || exit 1
17245
d5eec917 17246@endif release
8ec98d6c 17247
b6fb961f
MS
17248.PHONY: maybe-html-release html-release
17249maybe-html-release:
17250@if release
17251maybe-html-release: html-release
17252
17253html-release: \
17254 configure-release
17255 @[ -f ./release/Makefile ] || exit 0; \
17256 r=`${PWD_COMMAND}`; export r; \
17257 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17258 $(SET_LIB_PATH) \
17259 $(HOST_EXPORTS) \
17260 for flag in $(EXTRA_HOST_FLAGS) ; do \
17261 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17262 done; \
17263 echo "Doing html in release" ; \
7fc2ca22 17264 (cd $(HOST_SUBDIR)/release && \
b6fb961f
MS
17265 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17266 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17267 "RANLIB=$${RANLIB}" \
17268 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17269 html) \
17270 || exit 1
17271
17272@endif release
17273
d5eec917
PB
17274.PHONY: maybe-TAGS-release TAGS-release
17275maybe-TAGS-release:
17276@if release
17277maybe-TAGS-release: TAGS-release
8ec98d6c 17278
d5eec917
PB
17279TAGS-release: \
17280 configure-release
17281 @[ -f ./release/Makefile ] || exit 0; \
8ec98d6c
NN
17282 r=`${PWD_COMMAND}`; export r; \
17283 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17284 $(SET_LIB_PATH) \
a675b75a 17285 $(HOST_EXPORTS) \
d5eec917 17286 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
17287 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17288 done; \
d5eec917 17289 echo "Doing TAGS in release" ; \
7fc2ca22 17290 (cd $(HOST_SUBDIR)/release && \
8ec98d6c
NN
17291 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17292 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17293 "RANLIB=$${RANLIB}" \
17294 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 17295 TAGS) \
8ec98d6c
NN
17296 || exit 1
17297
d5eec917 17298@endif release
8ec98d6c 17299
d5eec917
PB
17300.PHONY: maybe-install-info-release install-info-release
17301maybe-install-info-release:
17302@if release
17303maybe-install-info-release: install-info-release
8ec98d6c 17304
d5eec917
PB
17305install-info-release: \
17306 configure-release \
17307 info-release
17308 @[ -f ./release/Makefile ] || exit 0; \
8ec98d6c
NN
17309 r=`${PWD_COMMAND}`; export r; \
17310 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17311 $(SET_LIB_PATH) \
a675b75a 17312 $(HOST_EXPORTS) \
d5eec917 17313 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
17314 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17315 done; \
d5eec917 17316 echo "Doing install-info in release" ; \
7fc2ca22 17317 (cd $(HOST_SUBDIR)/release && \
8ec98d6c
NN
17318 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17319 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17320 "RANLIB=$${RANLIB}" \
17321 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 17322 install-info) \
8ec98d6c
NN
17323 || exit 1
17324
d5eec917 17325@endif release
8ec98d6c 17326
d5eec917
PB
17327.PHONY: maybe-installcheck-release installcheck-release
17328maybe-installcheck-release:
17329@if release
17330maybe-installcheck-release: installcheck-release
8ec98d6c 17331
d5eec917
PB
17332installcheck-release: \
17333 configure-release
17334 @[ -f ./release/Makefile ] || exit 0; \
8ec98d6c
NN
17335 r=`${PWD_COMMAND}`; export r; \
17336 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17337 $(SET_LIB_PATH) \
a675b75a 17338 $(HOST_EXPORTS) \
d5eec917 17339 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
17340 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17341 done; \
d5eec917 17342 echo "Doing installcheck in release" ; \
7fc2ca22 17343 (cd $(HOST_SUBDIR)/release && \
8ec98d6c
NN
17344 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17345 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17346 "RANLIB=$${RANLIB}" \
17347 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 17348 installcheck) \
8ec98d6c
NN
17349 || exit 1
17350
d5eec917 17351@endif release
8ec98d6c 17352
d5eec917
PB
17353.PHONY: maybe-mostlyclean-release mostlyclean-release
17354maybe-mostlyclean-release:
17355@if release
17356maybe-mostlyclean-release: mostlyclean-release
8ec98d6c 17357
d5eec917
PB
17358mostlyclean-release:
17359 @[ -f ./release/Makefile ] || exit 0; \
8ec98d6c
NN
17360 r=`${PWD_COMMAND}`; export r; \
17361 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17362 $(SET_LIB_PATH) \
a675b75a 17363 $(HOST_EXPORTS) \
d5eec917 17364 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
17365 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17366 done; \
d5eec917 17367 echo "Doing mostlyclean in release" ; \
7fc2ca22 17368 (cd $(HOST_SUBDIR)/release && \
8ec98d6c
NN
17369 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17370 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17371 "RANLIB=$${RANLIB}" \
17372 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 17373 mostlyclean) \
8ec98d6c
NN
17374 || exit 1
17375
d5eec917 17376@endif release
8ec98d6c 17377
d5eec917
PB
17378.PHONY: maybe-clean-release clean-release
17379maybe-clean-release:
17380@if release
17381maybe-clean-release: clean-release
8ec98d6c 17382
d5eec917
PB
17383clean-release:
17384 @[ -f ./release/Makefile ] || exit 0; \
8ec98d6c
NN
17385 r=`${PWD_COMMAND}`; export r; \
17386 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17387 $(SET_LIB_PATH) \
a675b75a 17388 $(HOST_EXPORTS) \
d5eec917 17389 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
17390 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17391 done; \
d5eec917 17392 echo "Doing clean in release" ; \
7fc2ca22 17393 (cd $(HOST_SUBDIR)/release && \
8ec98d6c
NN
17394 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17395 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17396 "RANLIB=$${RANLIB}" \
17397 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 17398 clean) \
8ec98d6c
NN
17399 || exit 1
17400
d5eec917 17401@endif release
8ec98d6c 17402
d5eec917
PB
17403.PHONY: maybe-distclean-release distclean-release
17404maybe-distclean-release:
17405@if release
17406maybe-distclean-release: distclean-release
8ec98d6c 17407
d5eec917
PB
17408distclean-release:
17409 @[ -f ./release/Makefile ] || exit 0; \
8ec98d6c
NN
17410 r=`${PWD_COMMAND}`; export r; \
17411 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17412 $(SET_LIB_PATH) \
a675b75a 17413 $(HOST_EXPORTS) \
d5eec917 17414 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
17415 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17416 done; \
d5eec917 17417 echo "Doing distclean in release" ; \
7fc2ca22 17418 (cd $(HOST_SUBDIR)/release && \
8ec98d6c
NN
17419 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17420 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17421 "RANLIB=$${RANLIB}" \
17422 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 17423 distclean) \
8ec98d6c
NN
17424 || exit 1
17425
d5eec917 17426@endif release
8ec98d6c 17427
d5eec917
PB
17428.PHONY: maybe-maintainer-clean-release maintainer-clean-release
17429maybe-maintainer-clean-release:
17430@if release
17431maybe-maintainer-clean-release: maintainer-clean-release
8ec98d6c 17432
d5eec917
PB
17433maintainer-clean-release:
17434 @[ -f ./release/Makefile ] || exit 0; \
8ec98d6c
NN
17435 r=`${PWD_COMMAND}`; export r; \
17436 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17437 $(SET_LIB_PATH) \
a675b75a 17438 $(HOST_EXPORTS) \
d5eec917 17439 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
17440 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17441 done; \
d5eec917 17442 echo "Doing maintainer-clean in release" ; \
7fc2ca22 17443 (cd $(HOST_SUBDIR)/release && \
8ec98d6c
NN
17444 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17445 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17446 "RANLIB=$${RANLIB}" \
17447 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 17448 maintainer-clean) \
8ec98d6c 17449 || exit 1
8ecc6504 17450
d5eec917 17451@endif release
8ecc6504 17452
8ec98d6c 17453
d5eec917
PB
17454.PHONY: configure-recode maybe-configure-recode
17455maybe-configure-recode:
17456@if recode
17457maybe-configure-recode: configure-recode
17458configure-recode:
7fc2ca22
PB
17459 @test ! -f $(HOST_SUBDIR)/recode/Makefile || exit 0; \
17460 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/recode ; \
5230d454
L
17461 r=`${PWD_COMMAND}`; export r; \
17462 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 17463 $(HOST_EXPORTS) \
d5eec917 17464 echo Configuring in recode; \
7fc2ca22 17465 cd $(HOST_SUBDIR)/recode || exit 1; \
94f860c0 17466 case $(srcdir) in \
7fc2ca22
PB
17467 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
17468 *) topdir=`echo $(HOST_SUBDIR)/recode/ | \
17469 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 17470 esac; \
7fc2ca22
PB
17471 srcdiroption="--srcdir=$${topdir}/recode"; \
17472 libsrcdir="$$s/recode"; \
94f860c0 17473 $(SHELL) $${libsrcdir}/configure \
63673a5b 17474 $(HOST_CONFIGARGS) $${srcdiroption} \
94f860c0 17475 || exit 1
d5eec917 17476@endif recode
94f860c0 17477
d5eec917
PB
17478.PHONY: all-recode maybe-all-recode
17479maybe-all-recode:
17480@if recode
5e6b1f07 17481TARGET-recode=all
d5eec917
PB
17482maybe-all-recode: all-recode
17483all-recode: configure-recode
5230d454
L
17484 @r=`${PWD_COMMAND}`; export r; \
17485 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 17486 $(SET_LIB_PATH) \
a675b75a 17487 $(HOST_EXPORTS) \
7fc2ca22
PB
17488 (cd $(HOST_SUBDIR)/recode && \
17489 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-recode))
d5eec917 17490@endif recode
8ecc6504 17491
d5eec917
PB
17492.PHONY: check-recode maybe-check-recode
17493maybe-check-recode:
17494@if recode
17495maybe-check-recode: check-recode
8ecc6504 17496
d5eec917 17497check-recode:
5230d454
L
17498 @r=`${PWD_COMMAND}`; export r; \
17499 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 17500 $(SET_LIB_PATH) \
a675b75a 17501 $(HOST_EXPORTS) \
7fc2ca22
PB
17502 (cd $(HOST_SUBDIR)/recode && \
17503 $(MAKE) $(FLAGS_TO_PASS) check)
8ecc6504 17504
d5eec917 17505@endif recode
8ecc6504 17506
d5eec917
PB
17507.PHONY: install-recode maybe-install-recode
17508maybe-install-recode:
17509@if recode
17510maybe-install-recode: install-recode
8ec98d6c 17511
d5eec917 17512install-recode: installdirs
8ec98d6c
NN
17513 @r=`${PWD_COMMAND}`; export r; \
17514 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17515 $(SET_LIB_PATH) \
a675b75a 17516 $(HOST_EXPORTS) \
7fc2ca22 17517 (cd $(HOST_SUBDIR)/recode && \
93c60b6d 17518 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 17519
d5eec917 17520@endif recode
8ec98d6c
NN
17521
17522# Other targets (info, dvi, etc.)
17523
d5eec917
PB
17524.PHONY: maybe-info-recode info-recode
17525maybe-info-recode:
17526@if recode
17527maybe-info-recode: info-recode
8ec98d6c 17528
d5eec917
PB
17529info-recode: \
17530 configure-recode
17531 @[ -f ./recode/Makefile ] || exit 0; \
8ec98d6c
NN
17532 r=`${PWD_COMMAND}`; export r; \
17533 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17534 $(SET_LIB_PATH) \
a675b75a 17535 $(HOST_EXPORTS) \
d5eec917 17536 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
17537 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17538 done; \
d5eec917 17539 echo "Doing info in recode" ; \
7fc2ca22 17540 (cd $(HOST_SUBDIR)/recode && \
8ec98d6c
NN
17541 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17542 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17543 "RANLIB=$${RANLIB}" \
17544 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 17545 info) \
8ec98d6c
NN
17546 || exit 1
17547
d5eec917 17548@endif recode
8ec98d6c 17549
d5eec917
PB
17550.PHONY: maybe-dvi-recode dvi-recode
17551maybe-dvi-recode:
17552@if recode
17553maybe-dvi-recode: dvi-recode
8ec98d6c 17554
d5eec917
PB
17555dvi-recode: \
17556 configure-recode
17557 @[ -f ./recode/Makefile ] || exit 0; \
8ec98d6c
NN
17558 r=`${PWD_COMMAND}`; export r; \
17559 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17560 $(SET_LIB_PATH) \
a675b75a 17561 $(HOST_EXPORTS) \
d5eec917 17562 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
17563 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17564 done; \
d5eec917 17565 echo "Doing dvi in recode" ; \
7fc2ca22 17566 (cd $(HOST_SUBDIR)/recode && \
8ec98d6c
NN
17567 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17568 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17569 "RANLIB=$${RANLIB}" \
17570 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 17571 dvi) \
8ec98d6c
NN
17572 || exit 1
17573
d5eec917 17574@endif recode
8ec98d6c 17575
b6fb961f
MS
17576.PHONY: maybe-html-recode html-recode
17577maybe-html-recode:
17578@if recode
17579maybe-html-recode: html-recode
17580
17581html-recode: \
17582 configure-recode
17583 @[ -f ./recode/Makefile ] || exit 0; \
17584 r=`${PWD_COMMAND}`; export r; \
17585 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17586 $(SET_LIB_PATH) \
17587 $(HOST_EXPORTS) \
17588 for flag in $(EXTRA_HOST_FLAGS) ; do \
17589 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17590 done; \
17591 echo "Doing html in recode" ; \
7fc2ca22 17592 (cd $(HOST_SUBDIR)/recode && \
b6fb961f
MS
17593 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17594 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17595 "RANLIB=$${RANLIB}" \
17596 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17597 html) \
17598 || exit 1
17599
17600@endif recode
17601
d5eec917
PB
17602.PHONY: maybe-TAGS-recode TAGS-recode
17603maybe-TAGS-recode:
17604@if recode
17605maybe-TAGS-recode: TAGS-recode
8ec98d6c 17606
d5eec917
PB
17607TAGS-recode: \
17608 configure-recode
17609 @[ -f ./recode/Makefile ] || exit 0; \
8ec98d6c
NN
17610 r=`${PWD_COMMAND}`; export r; \
17611 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17612 $(SET_LIB_PATH) \
a675b75a 17613 $(HOST_EXPORTS) \
d5eec917 17614 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
17615 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17616 done; \
d5eec917 17617 echo "Doing TAGS in recode" ; \
7fc2ca22 17618 (cd $(HOST_SUBDIR)/recode && \
8ec98d6c
NN
17619 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17620 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17621 "RANLIB=$${RANLIB}" \
17622 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 17623 TAGS) \
8ec98d6c
NN
17624 || exit 1
17625
d5eec917 17626@endif recode
8ec98d6c 17627
d5eec917
PB
17628.PHONY: maybe-install-info-recode install-info-recode
17629maybe-install-info-recode:
17630@if recode
17631maybe-install-info-recode: install-info-recode
8ec98d6c 17632
d5eec917
PB
17633install-info-recode: \
17634 configure-recode \
17635 info-recode
17636 @[ -f ./recode/Makefile ] || exit 0; \
8ec98d6c
NN
17637 r=`${PWD_COMMAND}`; export r; \
17638 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17639 $(SET_LIB_PATH) \
a675b75a 17640 $(HOST_EXPORTS) \
d5eec917 17641 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
17642 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17643 done; \
d5eec917 17644 echo "Doing install-info in recode" ; \
7fc2ca22 17645 (cd $(HOST_SUBDIR)/recode && \
8ec98d6c
NN
17646 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17647 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17648 "RANLIB=$${RANLIB}" \
17649 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 17650 install-info) \
8ec98d6c
NN
17651 || exit 1
17652
d5eec917 17653@endif recode
8ec98d6c 17654
d5eec917
PB
17655.PHONY: maybe-installcheck-recode installcheck-recode
17656maybe-installcheck-recode:
17657@if recode
17658maybe-installcheck-recode: installcheck-recode
8ec98d6c 17659
d5eec917
PB
17660installcheck-recode: \
17661 configure-recode
17662 @[ -f ./recode/Makefile ] || exit 0; \
8ec98d6c
NN
17663 r=`${PWD_COMMAND}`; export r; \
17664 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17665 $(SET_LIB_PATH) \
a675b75a 17666 $(HOST_EXPORTS) \
d5eec917 17667 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
17668 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17669 done; \
d5eec917 17670 echo "Doing installcheck in recode" ; \
7fc2ca22 17671 (cd $(HOST_SUBDIR)/recode && \
8ec98d6c
NN
17672 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17673 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17674 "RANLIB=$${RANLIB}" \
17675 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 17676 installcheck) \
8ec98d6c
NN
17677 || exit 1
17678
d5eec917 17679@endif recode
8ec98d6c 17680
d5eec917
PB
17681.PHONY: maybe-mostlyclean-recode mostlyclean-recode
17682maybe-mostlyclean-recode:
17683@if recode
17684maybe-mostlyclean-recode: mostlyclean-recode
8ec98d6c 17685
d5eec917
PB
17686mostlyclean-recode:
17687 @[ -f ./recode/Makefile ] || exit 0; \
8ec98d6c
NN
17688 r=`${PWD_COMMAND}`; export r; \
17689 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17690 $(SET_LIB_PATH) \
a675b75a 17691 $(HOST_EXPORTS) \
d5eec917 17692 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
17693 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17694 done; \
d5eec917 17695 echo "Doing mostlyclean in recode" ; \
7fc2ca22 17696 (cd $(HOST_SUBDIR)/recode && \
8ec98d6c
NN
17697 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17698 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17699 "RANLIB=$${RANLIB}" \
17700 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 17701 mostlyclean) \
8ec98d6c
NN
17702 || exit 1
17703
d5eec917 17704@endif recode
8ec98d6c 17705
d5eec917
PB
17706.PHONY: maybe-clean-recode clean-recode
17707maybe-clean-recode:
17708@if recode
17709maybe-clean-recode: clean-recode
8ec98d6c 17710
d5eec917
PB
17711clean-recode:
17712 @[ -f ./recode/Makefile ] || exit 0; \
8ec98d6c
NN
17713 r=`${PWD_COMMAND}`; export r; \
17714 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17715 $(SET_LIB_PATH) \
a675b75a 17716 $(HOST_EXPORTS) \
d5eec917 17717 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
17718 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17719 done; \
d5eec917 17720 echo "Doing clean in recode" ; \
7fc2ca22 17721 (cd $(HOST_SUBDIR)/recode && \
8ec98d6c
NN
17722 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17723 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17724 "RANLIB=$${RANLIB}" \
17725 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 17726 clean) \
8ec98d6c
NN
17727 || exit 1
17728
d5eec917 17729@endif recode
8ec98d6c 17730
d5eec917
PB
17731.PHONY: maybe-distclean-recode distclean-recode
17732maybe-distclean-recode:
17733@if recode
17734maybe-distclean-recode: distclean-recode
8ec98d6c 17735
d5eec917
PB
17736distclean-recode:
17737 @[ -f ./recode/Makefile ] || exit 0; \
8ec98d6c
NN
17738 r=`${PWD_COMMAND}`; export r; \
17739 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17740 $(SET_LIB_PATH) \
a675b75a 17741 $(HOST_EXPORTS) \
d5eec917 17742 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
17743 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17744 done; \
d5eec917 17745 echo "Doing distclean in recode" ; \
7fc2ca22 17746 (cd $(HOST_SUBDIR)/recode && \
8ec98d6c
NN
17747 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17748 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17749 "RANLIB=$${RANLIB}" \
17750 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 17751 distclean) \
8ec98d6c
NN
17752 || exit 1
17753
d5eec917 17754@endif recode
8ec98d6c 17755
d5eec917
PB
17756.PHONY: maybe-maintainer-clean-recode maintainer-clean-recode
17757maybe-maintainer-clean-recode:
17758@if recode
17759maybe-maintainer-clean-recode: maintainer-clean-recode
8ec98d6c 17760
d5eec917
PB
17761maintainer-clean-recode:
17762 @[ -f ./recode/Makefile ] || exit 0; \
8ec98d6c
NN
17763 r=`${PWD_COMMAND}`; export r; \
17764 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17765 $(SET_LIB_PATH) \
a675b75a 17766 $(HOST_EXPORTS) \
d5eec917 17767 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
17768 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17769 done; \
d5eec917 17770 echo "Doing maintainer-clean in recode" ; \
7fc2ca22 17771 (cd $(HOST_SUBDIR)/recode && \
8ec98d6c
NN
17772 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17773 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17774 "RANLIB=$${RANLIB}" \
17775 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 17776 maintainer-clean) \
8ec98d6c 17777 || exit 1
70ffc148 17778
d5eec917 17779@endif recode
8ecc6504
NN
17780
17781
d5eec917
PB
17782.PHONY: configure-sed maybe-configure-sed
17783maybe-configure-sed:
17784@if sed
17785maybe-configure-sed: configure-sed
17786configure-sed:
7fc2ca22
PB
17787 @test ! -f $(HOST_SUBDIR)/sed/Makefile || exit 0; \
17788 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/sed ; \
5230d454
L
17789 r=`${PWD_COMMAND}`; export r; \
17790 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 17791 $(HOST_EXPORTS) \
d5eec917 17792 echo Configuring in sed; \
7fc2ca22 17793 cd $(HOST_SUBDIR)/sed || exit 1; \
94f860c0 17794 case $(srcdir) in \
7fc2ca22
PB
17795 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
17796 *) topdir=`echo $(HOST_SUBDIR)/sed/ | \
17797 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 17798 esac; \
7fc2ca22
PB
17799 srcdiroption="--srcdir=$${topdir}/sed"; \
17800 libsrcdir="$$s/sed"; \
94f860c0 17801 $(SHELL) $${libsrcdir}/configure \
63673a5b 17802 $(HOST_CONFIGARGS) $${srcdiroption} \
94f860c0 17803 || exit 1
d5eec917 17804@endif sed
94f860c0 17805
d5eec917
PB
17806.PHONY: all-sed maybe-all-sed
17807maybe-all-sed:
17808@if sed
5e6b1f07 17809TARGET-sed=all
d5eec917
PB
17810maybe-all-sed: all-sed
17811all-sed: configure-sed
5230d454
L
17812 @r=`${PWD_COMMAND}`; export r; \
17813 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 17814 $(SET_LIB_PATH) \
a675b75a 17815 $(HOST_EXPORTS) \
7fc2ca22
PB
17816 (cd $(HOST_SUBDIR)/sed && \
17817 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-sed))
d5eec917 17818@endif sed
8ecc6504 17819
d5eec917
PB
17820.PHONY: check-sed maybe-check-sed
17821maybe-check-sed:
17822@if sed
17823maybe-check-sed: check-sed
8ecc6504 17824
d5eec917 17825check-sed:
5230d454
L
17826 @r=`${PWD_COMMAND}`; export r; \
17827 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 17828 $(SET_LIB_PATH) \
a675b75a 17829 $(HOST_EXPORTS) \
7fc2ca22
PB
17830 (cd $(HOST_SUBDIR)/sed && \
17831 $(MAKE) $(FLAGS_TO_PASS) check)
8ecc6504 17832
d5eec917 17833@endif sed
8ecc6504 17834
d5eec917
PB
17835.PHONY: install-sed maybe-install-sed
17836maybe-install-sed:
17837@if sed
17838maybe-install-sed: install-sed
70ffc148 17839
d5eec917 17840install-sed: installdirs
5230d454
L
17841 @r=`${PWD_COMMAND}`; export r; \
17842 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 17843 $(SET_LIB_PATH) \
a675b75a 17844 $(HOST_EXPORTS) \
7fc2ca22 17845 (cd $(HOST_SUBDIR)/sed && \
93c60b6d 17846 $(MAKE) $(FLAGS_TO_PASS) install)
8ecc6504 17847
d5eec917 17848@endif sed
8ecc6504 17849
8ec98d6c
NN
17850# Other targets (info, dvi, etc.)
17851
d5eec917
PB
17852.PHONY: maybe-info-sed info-sed
17853maybe-info-sed:
17854@if sed
17855maybe-info-sed: info-sed
8ec98d6c 17856
d5eec917
PB
17857info-sed: \
17858 configure-sed
17859 @[ -f ./sed/Makefile ] || exit 0; \
8ec98d6c
NN
17860 r=`${PWD_COMMAND}`; export r; \
17861 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17862 $(SET_LIB_PATH) \
a675b75a 17863 $(HOST_EXPORTS) \
d5eec917 17864 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
17865 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17866 done; \
b6fb961f 17867 echo "Doing info in sed" ; \
7fc2ca22 17868 (cd $(HOST_SUBDIR)/sed && \
b6fb961f
MS
17869 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17870 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17871 "RANLIB=$${RANLIB}" \
17872 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17873 info) \
17874 || exit 1
17875
17876@endif sed
17877
17878.PHONY: maybe-dvi-sed dvi-sed
17879maybe-dvi-sed:
17880@if sed
17881maybe-dvi-sed: dvi-sed
17882
17883dvi-sed: \
17884 configure-sed
17885 @[ -f ./sed/Makefile ] || exit 0; \
17886 r=`${PWD_COMMAND}`; export r; \
17887 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17888 $(SET_LIB_PATH) \
17889 $(HOST_EXPORTS) \
17890 for flag in $(EXTRA_HOST_FLAGS) ; do \
17891 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17892 done; \
17893 echo "Doing dvi in sed" ; \
7fc2ca22 17894 (cd $(HOST_SUBDIR)/sed && \
8ec98d6c
NN
17895 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17896 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17897 "RANLIB=$${RANLIB}" \
17898 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b6fb961f 17899 dvi) \
8ec98d6c
NN
17900 || exit 1
17901
d5eec917 17902@endif sed
8ec98d6c 17903
b6fb961f
MS
17904.PHONY: maybe-html-sed html-sed
17905maybe-html-sed:
d5eec917 17906@if sed
b6fb961f 17907maybe-html-sed: html-sed
8ec98d6c 17908
b6fb961f 17909html-sed: \
d5eec917
PB
17910 configure-sed
17911 @[ -f ./sed/Makefile ] || exit 0; \
8ec98d6c
NN
17912 r=`${PWD_COMMAND}`; export r; \
17913 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17914 $(SET_LIB_PATH) \
a675b75a 17915 $(HOST_EXPORTS) \
d5eec917 17916 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
17917 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17918 done; \
b6fb961f 17919 echo "Doing html in sed" ; \
7fc2ca22 17920 (cd $(HOST_SUBDIR)/sed && \
8ec98d6c
NN
17921 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17922 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17923 "RANLIB=$${RANLIB}" \
17924 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b6fb961f 17925 html) \
8ec98d6c
NN
17926 || exit 1
17927
d5eec917 17928@endif sed
8ec98d6c 17929
d5eec917
PB
17930.PHONY: maybe-TAGS-sed TAGS-sed
17931maybe-TAGS-sed:
17932@if sed
17933maybe-TAGS-sed: TAGS-sed
8ec98d6c 17934
d5eec917
PB
17935TAGS-sed: \
17936 configure-sed
17937 @[ -f ./sed/Makefile ] || exit 0; \
8ec98d6c
NN
17938 r=`${PWD_COMMAND}`; export r; \
17939 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17940 $(SET_LIB_PATH) \
a675b75a 17941 $(HOST_EXPORTS) \
d5eec917 17942 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
17943 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17944 done; \
d5eec917 17945 echo "Doing TAGS in sed" ; \
7fc2ca22 17946 (cd $(HOST_SUBDIR)/sed && \
8ec98d6c
NN
17947 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17948 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17949 "RANLIB=$${RANLIB}" \
17950 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 17951 TAGS) \
8ec98d6c
NN
17952 || exit 1
17953
d5eec917 17954@endif sed
8ec98d6c 17955
d5eec917
PB
17956.PHONY: maybe-install-info-sed install-info-sed
17957maybe-install-info-sed:
17958@if sed
17959maybe-install-info-sed: install-info-sed
8ec98d6c 17960
d5eec917
PB
17961install-info-sed: \
17962 configure-sed \
17963 info-sed
17964 @[ -f ./sed/Makefile ] || exit 0; \
8ec98d6c
NN
17965 r=`${PWD_COMMAND}`; export r; \
17966 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17967 $(SET_LIB_PATH) \
a675b75a 17968 $(HOST_EXPORTS) \
d5eec917 17969 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
17970 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17971 done; \
d5eec917 17972 echo "Doing install-info in sed" ; \
7fc2ca22 17973 (cd $(HOST_SUBDIR)/sed && \
8ec98d6c
NN
17974 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17975 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17976 "RANLIB=$${RANLIB}" \
17977 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 17978 install-info) \
8ec98d6c
NN
17979 || exit 1
17980
d5eec917 17981@endif sed
8ec98d6c 17982
d5eec917
PB
17983.PHONY: maybe-installcheck-sed installcheck-sed
17984maybe-installcheck-sed:
17985@if sed
17986maybe-installcheck-sed: installcheck-sed
8ec98d6c 17987
d5eec917
PB
17988installcheck-sed: \
17989 configure-sed
17990 @[ -f ./sed/Makefile ] || exit 0; \
8ec98d6c
NN
17991 r=`${PWD_COMMAND}`; export r; \
17992 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17993 $(SET_LIB_PATH) \
a675b75a 17994 $(HOST_EXPORTS) \
d5eec917 17995 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
17996 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17997 done; \
d5eec917 17998 echo "Doing installcheck in sed" ; \
7fc2ca22 17999 (cd $(HOST_SUBDIR)/sed && \
8ec98d6c
NN
18000 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18001 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18002 "RANLIB=$${RANLIB}" \
18003 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 18004 installcheck) \
8ec98d6c
NN
18005 || exit 1
18006
d5eec917 18007@endif sed
8ec98d6c 18008
d5eec917
PB
18009.PHONY: maybe-mostlyclean-sed mostlyclean-sed
18010maybe-mostlyclean-sed:
18011@if sed
18012maybe-mostlyclean-sed: mostlyclean-sed
8ec98d6c 18013
d5eec917
PB
18014mostlyclean-sed:
18015 @[ -f ./sed/Makefile ] || exit 0; \
8ec98d6c
NN
18016 r=`${PWD_COMMAND}`; export r; \
18017 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18018 $(SET_LIB_PATH) \
a675b75a 18019 $(HOST_EXPORTS) \
d5eec917 18020 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
18021 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18022 done; \
d5eec917 18023 echo "Doing mostlyclean in sed" ; \
7fc2ca22 18024 (cd $(HOST_SUBDIR)/sed && \
8ec98d6c
NN
18025 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18026 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18027 "RANLIB=$${RANLIB}" \
18028 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 18029 mostlyclean) \
8ec98d6c
NN
18030 || exit 1
18031
d5eec917 18032@endif sed
8ec98d6c 18033
d5eec917
PB
18034.PHONY: maybe-clean-sed clean-sed
18035maybe-clean-sed:
18036@if sed
18037maybe-clean-sed: clean-sed
8ec98d6c 18038
d5eec917
PB
18039clean-sed:
18040 @[ -f ./sed/Makefile ] || exit 0; \
8ec98d6c
NN
18041 r=`${PWD_COMMAND}`; export r; \
18042 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18043 $(SET_LIB_PATH) \
a675b75a 18044 $(HOST_EXPORTS) \
d5eec917 18045 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
18046 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18047 done; \
d5eec917 18048 echo "Doing clean in sed" ; \
7fc2ca22 18049 (cd $(HOST_SUBDIR)/sed && \
8ec98d6c
NN
18050 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18051 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18052 "RANLIB=$${RANLIB}" \
18053 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 18054 clean) \
8ec98d6c
NN
18055 || exit 1
18056
d5eec917 18057@endif sed
8ec98d6c 18058
d5eec917
PB
18059.PHONY: maybe-distclean-sed distclean-sed
18060maybe-distclean-sed:
18061@if sed
18062maybe-distclean-sed: distclean-sed
8ec98d6c 18063
d5eec917
PB
18064distclean-sed:
18065 @[ -f ./sed/Makefile ] || exit 0; \
8ec98d6c
NN
18066 r=`${PWD_COMMAND}`; export r; \
18067 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18068 $(SET_LIB_PATH) \
a675b75a 18069 $(HOST_EXPORTS) \
d5eec917 18070 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
18071 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18072 done; \
d5eec917 18073 echo "Doing distclean in sed" ; \
7fc2ca22 18074 (cd $(HOST_SUBDIR)/sed && \
8ec98d6c
NN
18075 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18076 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18077 "RANLIB=$${RANLIB}" \
18078 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 18079 distclean) \
8ec98d6c
NN
18080 || exit 1
18081
d5eec917 18082@endif sed
8ec98d6c 18083
d5eec917
PB
18084.PHONY: maybe-maintainer-clean-sed maintainer-clean-sed
18085maybe-maintainer-clean-sed:
18086@if sed
18087maybe-maintainer-clean-sed: maintainer-clean-sed
8ec98d6c 18088
d5eec917
PB
18089maintainer-clean-sed:
18090 @[ -f ./sed/Makefile ] || exit 0; \
8ec98d6c
NN
18091 r=`${PWD_COMMAND}`; export r; \
18092 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18093 $(SET_LIB_PATH) \
a675b75a 18094 $(HOST_EXPORTS) \
d5eec917 18095 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
18096 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18097 done; \
d5eec917 18098 echo "Doing maintainer-clean in sed" ; \
7fc2ca22 18099 (cd $(HOST_SUBDIR)/sed && \
8ec98d6c
NN
18100 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18101 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18102 "RANLIB=$${RANLIB}" \
18103 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 18104 maintainer-clean) \
8ec98d6c
NN
18105 || exit 1
18106
d5eec917 18107@endif sed
8ec98d6c
NN
18108
18109
d5eec917
PB
18110.PHONY: configure-send-pr maybe-configure-send-pr
18111maybe-configure-send-pr:
18112@if send-pr
18113maybe-configure-send-pr: configure-send-pr
18114configure-send-pr:
7fc2ca22
PB
18115 @test ! -f $(HOST_SUBDIR)/send-pr/Makefile || exit 0; \
18116 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/send-pr ; \
5230d454
L
18117 r=`${PWD_COMMAND}`; export r; \
18118 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 18119 $(HOST_EXPORTS) \
d5eec917 18120 echo Configuring in send-pr; \
7fc2ca22 18121 cd $(HOST_SUBDIR)/send-pr || exit 1; \
94f860c0 18122 case $(srcdir) in \
7fc2ca22
PB
18123 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18124 *) topdir=`echo $(HOST_SUBDIR)/send-pr/ | \
18125 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 18126 esac; \
7fc2ca22
PB
18127 srcdiroption="--srcdir=$${topdir}/send-pr"; \
18128 libsrcdir="$$s/send-pr"; \
94f860c0 18129 $(SHELL) $${libsrcdir}/configure \
63673a5b 18130 $(HOST_CONFIGARGS) $${srcdiroption} \
94f860c0 18131 || exit 1
d5eec917 18132@endif send-pr
94f860c0 18133
d5eec917
PB
18134.PHONY: all-send-pr maybe-all-send-pr
18135maybe-all-send-pr:
18136@if send-pr
5e6b1f07 18137TARGET-send-pr=all
d5eec917
PB
18138maybe-all-send-pr: all-send-pr
18139all-send-pr: configure-send-pr
5230d454
L
18140 @r=`${PWD_COMMAND}`; export r; \
18141 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 18142 $(SET_LIB_PATH) \
a675b75a 18143 $(HOST_EXPORTS) \
7fc2ca22
PB
18144 (cd $(HOST_SUBDIR)/send-pr && \
18145 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-send-pr))
d5eec917 18146@endif send-pr
8ecc6504 18147
d5eec917
PB
18148.PHONY: check-send-pr maybe-check-send-pr
18149maybe-check-send-pr:
18150@if send-pr
18151maybe-check-send-pr: check-send-pr
8ecc6504 18152
d5eec917 18153check-send-pr:
5230d454
L
18154 @r=`${PWD_COMMAND}`; export r; \
18155 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 18156 $(SET_LIB_PATH) \
a675b75a 18157 $(HOST_EXPORTS) \
7fc2ca22
PB
18158 (cd $(HOST_SUBDIR)/send-pr && \
18159 $(MAKE) $(FLAGS_TO_PASS) check)
8ecc6504 18160
d5eec917 18161@endif send-pr
8ecc6504 18162
d5eec917
PB
18163.PHONY: install-send-pr maybe-install-send-pr
18164maybe-install-send-pr:
18165@if send-pr
18166maybe-install-send-pr: install-send-pr
70ffc148 18167
d5eec917 18168install-send-pr: installdirs
5230d454
L
18169 @r=`${PWD_COMMAND}`; export r; \
18170 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 18171 $(SET_LIB_PATH) \
a675b75a 18172 $(HOST_EXPORTS) \
7fc2ca22 18173 (cd $(HOST_SUBDIR)/send-pr && \
93c60b6d 18174 $(MAKE) $(FLAGS_TO_PASS) install)
8ecc6504 18175
d5eec917 18176@endif send-pr
8ecc6504 18177
8ec98d6c
NN
18178# Other targets (info, dvi, etc.)
18179
d5eec917
PB
18180.PHONY: maybe-info-send-pr info-send-pr
18181maybe-info-send-pr:
18182@if send-pr
18183maybe-info-send-pr: info-send-pr
8ec98d6c 18184
d5eec917
PB
18185info-send-pr: \
18186 configure-send-pr
18187 @[ -f ./send-pr/Makefile ] || exit 0; \
5230d454
L
18188 r=`${PWD_COMMAND}`; export r; \
18189 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8ec98d6c 18190 $(SET_LIB_PATH) \
a675b75a 18191 $(HOST_EXPORTS) \
d5eec917 18192 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
18193 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18194 done; \
d5eec917 18195 echo "Doing info in send-pr" ; \
7fc2ca22 18196 (cd $(HOST_SUBDIR)/send-pr && \
8ec98d6c
NN
18197 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18198 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18199 "RANLIB=$${RANLIB}" \
18200 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 18201 info) \
94f860c0
NN
18202 || exit 1
18203
d5eec917 18204@endif send-pr
8ec98d6c 18205
d5eec917
PB
18206.PHONY: maybe-dvi-send-pr dvi-send-pr
18207maybe-dvi-send-pr:
18208@if send-pr
18209maybe-dvi-send-pr: dvi-send-pr
8ec98d6c 18210
d5eec917
PB
18211dvi-send-pr: \
18212 configure-send-pr
18213 @[ -f ./send-pr/Makefile ] || exit 0; \
8ec98d6c 18214 r=`${PWD_COMMAND}`; export r; \
5230d454 18215 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 18216 $(SET_LIB_PATH) \
a675b75a 18217 $(HOST_EXPORTS) \
d5eec917 18218 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
18219 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18220 done; \
d5eec917 18221 echo "Doing dvi in send-pr" ; \
7fc2ca22 18222 (cd $(HOST_SUBDIR)/send-pr && \
8ec98d6c
NN
18223 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18224 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18225 "RANLIB=$${RANLIB}" \
18226 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 18227 dvi) \
8ec98d6c 18228 || exit 1
8ecc6504 18229
d5eec917 18230@endif send-pr
8ecc6504 18231
b6fb961f
MS
18232.PHONY: maybe-html-send-pr html-send-pr
18233maybe-html-send-pr:
18234@if send-pr
18235maybe-html-send-pr: html-send-pr
18236
18237html-send-pr: \
18238 configure-send-pr
18239 @[ -f ./send-pr/Makefile ] || exit 0; \
18240 r=`${PWD_COMMAND}`; export r; \
18241 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18242 $(SET_LIB_PATH) \
18243 $(HOST_EXPORTS) \
18244 for flag in $(EXTRA_HOST_FLAGS) ; do \
18245 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18246 done; \
18247 echo "Doing html in send-pr" ; \
7fc2ca22 18248 (cd $(HOST_SUBDIR)/send-pr && \
b6fb961f
MS
18249 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18250 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18251 "RANLIB=$${RANLIB}" \
18252 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18253 html) \
18254 || exit 1
18255
18256@endif send-pr
18257
d5eec917
PB
18258.PHONY: maybe-TAGS-send-pr TAGS-send-pr
18259maybe-TAGS-send-pr:
18260@if send-pr
18261maybe-TAGS-send-pr: TAGS-send-pr
8ec98d6c 18262
d5eec917
PB
18263TAGS-send-pr: \
18264 configure-send-pr
18265 @[ -f ./send-pr/Makefile ] || exit 0; \
8ec98d6c
NN
18266 r=`${PWD_COMMAND}`; export r; \
18267 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18268 $(SET_LIB_PATH) \
a675b75a 18269 $(HOST_EXPORTS) \
d5eec917 18270 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
18271 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18272 done; \
d5eec917 18273 echo "Doing TAGS in send-pr" ; \
7fc2ca22 18274 (cd $(HOST_SUBDIR)/send-pr && \
8ec98d6c
NN
18275 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18276 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18277 "RANLIB=$${RANLIB}" \
18278 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 18279 TAGS) \
8ec98d6c 18280 || exit 1
8ecc6504 18281
d5eec917 18282@endif send-pr
8ecc6504 18283
d5eec917
PB
18284.PHONY: maybe-install-info-send-pr install-info-send-pr
18285maybe-install-info-send-pr:
18286@if send-pr
18287maybe-install-info-send-pr: install-info-send-pr
70ffc148 18288
d5eec917
PB
18289install-info-send-pr: \
18290 configure-send-pr \
18291 info-send-pr
18292 @[ -f ./send-pr/Makefile ] || exit 0; \
8ec98d6c
NN
18293 r=`${PWD_COMMAND}`; export r; \
18294 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18295 $(SET_LIB_PATH) \
a675b75a 18296 $(HOST_EXPORTS) \
d5eec917 18297 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
18298 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18299 done; \
d5eec917 18300 echo "Doing install-info in send-pr" ; \
7fc2ca22 18301 (cd $(HOST_SUBDIR)/send-pr && \
8ec98d6c
NN
18302 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18303 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18304 "RANLIB=$${RANLIB}" \
18305 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 18306 install-info) \
8ec98d6c
NN
18307 || exit 1
18308
d5eec917 18309@endif send-pr
8ec98d6c 18310
d5eec917
PB
18311.PHONY: maybe-installcheck-send-pr installcheck-send-pr
18312maybe-installcheck-send-pr:
18313@if send-pr
18314maybe-installcheck-send-pr: installcheck-send-pr
8ec98d6c 18315
d5eec917
PB
18316installcheck-send-pr: \
18317 configure-send-pr
18318 @[ -f ./send-pr/Makefile ] || exit 0; \
8ec98d6c
NN
18319 r=`${PWD_COMMAND}`; export r; \
18320 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18321 $(SET_LIB_PATH) \
a675b75a 18322 $(HOST_EXPORTS) \
d5eec917 18323 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
18324 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18325 done; \
d5eec917 18326 echo "Doing installcheck in send-pr" ; \
7fc2ca22 18327 (cd $(HOST_SUBDIR)/send-pr && \
8ec98d6c
NN
18328 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18329 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18330 "RANLIB=$${RANLIB}" \
18331 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 18332 installcheck) \
8ec98d6c
NN
18333 || exit 1
18334
d5eec917 18335@endif send-pr
8ec98d6c 18336
d5eec917
PB
18337.PHONY: maybe-mostlyclean-send-pr mostlyclean-send-pr
18338maybe-mostlyclean-send-pr:
18339@if send-pr
18340maybe-mostlyclean-send-pr: mostlyclean-send-pr
8ec98d6c 18341
d5eec917
PB
18342mostlyclean-send-pr:
18343 @[ -f ./send-pr/Makefile ] || exit 0; \
8ec98d6c
NN
18344 r=`${PWD_COMMAND}`; export r; \
18345 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18346 $(SET_LIB_PATH) \
a675b75a 18347 $(HOST_EXPORTS) \
d5eec917 18348 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
18349 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18350 done; \
d5eec917 18351 echo "Doing mostlyclean in send-pr" ; \
7fc2ca22 18352 (cd $(HOST_SUBDIR)/send-pr && \
8ec98d6c
NN
18353 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18354 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18355 "RANLIB=$${RANLIB}" \
18356 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 18357 mostlyclean) \
8ec98d6c
NN
18358 || exit 1
18359
d5eec917 18360@endif send-pr
8ec98d6c 18361
d5eec917
PB
18362.PHONY: maybe-clean-send-pr clean-send-pr
18363maybe-clean-send-pr:
18364@if send-pr
18365maybe-clean-send-pr: clean-send-pr
8ec98d6c 18366
d5eec917
PB
18367clean-send-pr:
18368 @[ -f ./send-pr/Makefile ] || exit 0; \
8ec98d6c
NN
18369 r=`${PWD_COMMAND}`; export r; \
18370 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18371 $(SET_LIB_PATH) \
a675b75a 18372 $(HOST_EXPORTS) \
d5eec917 18373 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
18374 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18375 done; \
d5eec917 18376 echo "Doing clean in send-pr" ; \
7fc2ca22 18377 (cd $(HOST_SUBDIR)/send-pr && \
8ec98d6c
NN
18378 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18379 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18380 "RANLIB=$${RANLIB}" \
18381 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 18382 clean) \
8ec98d6c
NN
18383 || exit 1
18384
d5eec917 18385@endif send-pr
8ec98d6c 18386
d5eec917
PB
18387.PHONY: maybe-distclean-send-pr distclean-send-pr
18388maybe-distclean-send-pr:
18389@if send-pr
18390maybe-distclean-send-pr: distclean-send-pr
8ec98d6c 18391
d5eec917
PB
18392distclean-send-pr:
18393 @[ -f ./send-pr/Makefile ] || exit 0; \
8ec98d6c
NN
18394 r=`${PWD_COMMAND}`; export r; \
18395 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18396 $(SET_LIB_PATH) \
a675b75a 18397 $(HOST_EXPORTS) \
d5eec917 18398 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
18399 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18400 done; \
d5eec917 18401 echo "Doing distclean in send-pr" ; \
7fc2ca22 18402 (cd $(HOST_SUBDIR)/send-pr && \
8ec98d6c
NN
18403 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18404 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18405 "RANLIB=$${RANLIB}" \
18406 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 18407 distclean) \
8ec98d6c
NN
18408 || exit 1
18409
d5eec917 18410@endif send-pr
8ec98d6c 18411
d5eec917
PB
18412.PHONY: maybe-maintainer-clean-send-pr maintainer-clean-send-pr
18413maybe-maintainer-clean-send-pr:
18414@if send-pr
18415maybe-maintainer-clean-send-pr: maintainer-clean-send-pr
8ec98d6c 18416
d5eec917
PB
18417maintainer-clean-send-pr:
18418 @[ -f ./send-pr/Makefile ] || exit 0; \
8ec98d6c 18419 r=`${PWD_COMMAND}`; export r; \
5230d454 18420 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 18421 $(SET_LIB_PATH) \
a675b75a 18422 $(HOST_EXPORTS) \
d5eec917 18423 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
18424 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18425 done; \
d5eec917 18426 echo "Doing maintainer-clean in send-pr" ; \
7fc2ca22 18427 (cd $(HOST_SUBDIR)/send-pr && \
8ec98d6c
NN
18428 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18429 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18430 "RANLIB=$${RANLIB}" \
18431 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 18432 maintainer-clean) \
8ec98d6c 18433 || exit 1
8ecc6504 18434
d5eec917 18435@endif send-pr
8ecc6504 18436
8ec98d6c 18437
d5eec917
PB
18438.PHONY: configure-shellutils maybe-configure-shellutils
18439maybe-configure-shellutils:
18440@if shellutils
18441maybe-configure-shellutils: configure-shellutils
18442configure-shellutils:
7fc2ca22
PB
18443 @test ! -f $(HOST_SUBDIR)/shellutils/Makefile || exit 0; \
18444 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/shellutils ; \
5230d454
L
18445 r=`${PWD_COMMAND}`; export r; \
18446 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 18447 $(HOST_EXPORTS) \
d5eec917 18448 echo Configuring in shellutils; \
7fc2ca22 18449 cd $(HOST_SUBDIR)/shellutils || exit 1; \
94f860c0 18450 case $(srcdir) in \
7fc2ca22
PB
18451 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18452 *) topdir=`echo $(HOST_SUBDIR)/shellutils/ | \
18453 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 18454 esac; \
7fc2ca22
PB
18455 srcdiroption="--srcdir=$${topdir}/shellutils"; \
18456 libsrcdir="$$s/shellutils"; \
94f860c0 18457 $(SHELL) $${libsrcdir}/configure \
63673a5b 18458 $(HOST_CONFIGARGS) $${srcdiroption} \
94f860c0 18459 || exit 1
d5eec917 18460@endif shellutils
94f860c0 18461
d5eec917
PB
18462.PHONY: all-shellutils maybe-all-shellutils
18463maybe-all-shellutils:
18464@if shellutils
5e6b1f07 18465TARGET-shellutils=all
d5eec917
PB
18466maybe-all-shellutils: all-shellutils
18467all-shellutils: configure-shellutils
5230d454
L
18468 @r=`${PWD_COMMAND}`; export r; \
18469 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 18470 $(SET_LIB_PATH) \
a675b75a 18471 $(HOST_EXPORTS) \
7fc2ca22
PB
18472 (cd $(HOST_SUBDIR)/shellutils && \
18473 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-shellutils))
d5eec917 18474@endif shellutils
8ecc6504 18475
d5eec917
PB
18476.PHONY: check-shellutils maybe-check-shellutils
18477maybe-check-shellutils:
18478@if shellutils
18479maybe-check-shellutils: check-shellutils
8ecc6504 18480
d5eec917 18481check-shellutils:
5230d454
L
18482 @r=`${PWD_COMMAND}`; export r; \
18483 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 18484 $(SET_LIB_PATH) \
a675b75a 18485 $(HOST_EXPORTS) \
7fc2ca22
PB
18486 (cd $(HOST_SUBDIR)/shellutils && \
18487 $(MAKE) $(FLAGS_TO_PASS) check)
8ecc6504 18488
d5eec917 18489@endif shellutils
8ecc6504 18490
d5eec917
PB
18491.PHONY: install-shellutils maybe-install-shellutils
18492maybe-install-shellutils:
18493@if shellutils
18494maybe-install-shellutils: install-shellutils
70ffc148 18495
d5eec917 18496install-shellutils: installdirs
5230d454
L
18497 @r=`${PWD_COMMAND}`; export r; \
18498 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 18499 $(SET_LIB_PATH) \
a675b75a 18500 $(HOST_EXPORTS) \
7fc2ca22 18501 (cd $(HOST_SUBDIR)/shellutils && \
93c60b6d 18502 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 18503
d5eec917 18504@endif shellutils
8ec98d6c
NN
18505
18506# Other targets (info, dvi, etc.)
18507
d5eec917
PB
18508.PHONY: maybe-info-shellutils info-shellutils
18509maybe-info-shellutils:
18510@if shellutils
18511maybe-info-shellutils: info-shellutils
8ec98d6c 18512
d5eec917
PB
18513info-shellutils: \
18514 configure-shellutils
18515 @[ -f ./shellutils/Makefile ] || exit 0; \
8ec98d6c
NN
18516 r=`${PWD_COMMAND}`; export r; \
18517 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18518 $(SET_LIB_PATH) \
a675b75a 18519 $(HOST_EXPORTS) \
d5eec917 18520 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
18521 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18522 done; \
d5eec917 18523 echo "Doing info in shellutils" ; \
7fc2ca22 18524 (cd $(HOST_SUBDIR)/shellutils && \
8ec98d6c
NN
18525 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18526 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18527 "RANLIB=$${RANLIB}" \
18528 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 18529 info) \
8ec98d6c
NN
18530 || exit 1
18531
d5eec917 18532@endif shellutils
8ec98d6c 18533
d5eec917
PB
18534.PHONY: maybe-dvi-shellutils dvi-shellutils
18535maybe-dvi-shellutils:
18536@if shellutils
18537maybe-dvi-shellutils: dvi-shellutils
8ec98d6c 18538
d5eec917
PB
18539dvi-shellutils: \
18540 configure-shellutils
18541 @[ -f ./shellutils/Makefile ] || exit 0; \
8ec98d6c
NN
18542 r=`${PWD_COMMAND}`; export r; \
18543 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18544 $(SET_LIB_PATH) \
a675b75a 18545 $(HOST_EXPORTS) \
d5eec917 18546 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
18547 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18548 done; \
d5eec917 18549 echo "Doing dvi in shellutils" ; \
7fc2ca22 18550 (cd $(HOST_SUBDIR)/shellutils && \
8ec98d6c
NN
18551 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18552 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18553 "RANLIB=$${RANLIB}" \
18554 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 18555 dvi) \
8ec98d6c
NN
18556 || exit 1
18557
d5eec917 18558@endif shellutils
8ec98d6c 18559
b6fb961f
MS
18560.PHONY: maybe-html-shellutils html-shellutils
18561maybe-html-shellutils:
18562@if shellutils
18563maybe-html-shellutils: html-shellutils
18564
18565html-shellutils: \
18566 configure-shellutils
18567 @[ -f ./shellutils/Makefile ] || exit 0; \
18568 r=`${PWD_COMMAND}`; export r; \
18569 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18570 $(SET_LIB_PATH) \
18571 $(HOST_EXPORTS) \
18572 for flag in $(EXTRA_HOST_FLAGS) ; do \
18573 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18574 done; \
18575 echo "Doing html in shellutils" ; \
7fc2ca22 18576 (cd $(HOST_SUBDIR)/shellutils && \
b6fb961f
MS
18577 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18578 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18579 "RANLIB=$${RANLIB}" \
18580 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18581 html) \
18582 || exit 1
18583
18584@endif shellutils
18585
d5eec917
PB
18586.PHONY: maybe-TAGS-shellutils TAGS-shellutils
18587maybe-TAGS-shellutils:
18588@if shellutils
18589maybe-TAGS-shellutils: TAGS-shellutils
8ec98d6c 18590
d5eec917
PB
18591TAGS-shellutils: \
18592 configure-shellutils
18593 @[ -f ./shellutils/Makefile ] || exit 0; \
8ec98d6c
NN
18594 r=`${PWD_COMMAND}`; export r; \
18595 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18596 $(SET_LIB_PATH) \
a675b75a 18597 $(HOST_EXPORTS) \
d5eec917 18598 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
18599 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18600 done; \
d5eec917 18601 echo "Doing TAGS in shellutils" ; \
7fc2ca22 18602 (cd $(HOST_SUBDIR)/shellutils && \
8ec98d6c
NN
18603 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18604 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18605 "RANLIB=$${RANLIB}" \
18606 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 18607 TAGS) \
8ec98d6c
NN
18608 || exit 1
18609
d5eec917 18610@endif shellutils
8ec98d6c 18611
d5eec917
PB
18612.PHONY: maybe-install-info-shellutils install-info-shellutils
18613maybe-install-info-shellutils:
18614@if shellutils
18615maybe-install-info-shellutils: install-info-shellutils
8ec98d6c 18616
d5eec917
PB
18617install-info-shellutils: \
18618 configure-shellutils \
18619 info-shellutils
18620 @[ -f ./shellutils/Makefile ] || exit 0; \
8ec98d6c
NN
18621 r=`${PWD_COMMAND}`; export r; \
18622 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18623 $(SET_LIB_PATH) \
a675b75a 18624 $(HOST_EXPORTS) \
d5eec917 18625 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
18626 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18627 done; \
d5eec917 18628 echo "Doing install-info in shellutils" ; \
7fc2ca22 18629 (cd $(HOST_SUBDIR)/shellutils && \
8ec98d6c
NN
18630 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18631 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18632 "RANLIB=$${RANLIB}" \
18633 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 18634 install-info) \
8ec98d6c
NN
18635 || exit 1
18636
d5eec917 18637@endif shellutils
8ec98d6c 18638
d5eec917
PB
18639.PHONY: maybe-installcheck-shellutils installcheck-shellutils
18640maybe-installcheck-shellutils:
18641@if shellutils
18642maybe-installcheck-shellutils: installcheck-shellutils
8ec98d6c 18643
d5eec917
PB
18644installcheck-shellutils: \
18645 configure-shellutils
18646 @[ -f ./shellutils/Makefile ] || exit 0; \
8ec98d6c
NN
18647 r=`${PWD_COMMAND}`; export r; \
18648 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18649 $(SET_LIB_PATH) \
a675b75a 18650 $(HOST_EXPORTS) \
d5eec917 18651 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
18652 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18653 done; \
d5eec917 18654 echo "Doing installcheck in shellutils" ; \
7fc2ca22 18655 (cd $(HOST_SUBDIR)/shellutils && \
8ec98d6c
NN
18656 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18657 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18658 "RANLIB=$${RANLIB}" \
18659 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 18660 installcheck) \
8ec98d6c
NN
18661 || exit 1
18662
d5eec917 18663@endif shellutils
8ec98d6c 18664
d5eec917
PB
18665.PHONY: maybe-mostlyclean-shellutils mostlyclean-shellutils
18666maybe-mostlyclean-shellutils:
18667@if shellutils
18668maybe-mostlyclean-shellutils: mostlyclean-shellutils
8ec98d6c 18669
d5eec917
PB
18670mostlyclean-shellutils:
18671 @[ -f ./shellutils/Makefile ] || exit 0; \
8ec98d6c
NN
18672 r=`${PWD_COMMAND}`; export r; \
18673 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18674 $(SET_LIB_PATH) \
a675b75a 18675 $(HOST_EXPORTS) \
d5eec917 18676 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
18677 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18678 done; \
d5eec917 18679 echo "Doing mostlyclean in shellutils" ; \
7fc2ca22 18680 (cd $(HOST_SUBDIR)/shellutils && \
8ec98d6c
NN
18681 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18682 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18683 "RANLIB=$${RANLIB}" \
18684 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 18685 mostlyclean) \
8ec98d6c
NN
18686 || exit 1
18687
d5eec917 18688@endif shellutils
8ec98d6c 18689
d5eec917
PB
18690.PHONY: maybe-clean-shellutils clean-shellutils
18691maybe-clean-shellutils:
18692@if shellutils
18693maybe-clean-shellutils: clean-shellutils
8ec98d6c 18694
d5eec917
PB
18695clean-shellutils:
18696 @[ -f ./shellutils/Makefile ] || exit 0; \
8ec98d6c
NN
18697 r=`${PWD_COMMAND}`; export r; \
18698 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18699 $(SET_LIB_PATH) \
a675b75a 18700 $(HOST_EXPORTS) \
d5eec917 18701 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
18702 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18703 done; \
d5eec917 18704 echo "Doing clean in shellutils" ; \
7fc2ca22 18705 (cd $(HOST_SUBDIR)/shellutils && \
8ec98d6c
NN
18706 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18707 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18708 "RANLIB=$${RANLIB}" \
18709 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 18710 clean) \
8ec98d6c
NN
18711 || exit 1
18712
d5eec917 18713@endif shellutils
8ec98d6c 18714
d5eec917
PB
18715.PHONY: maybe-distclean-shellutils distclean-shellutils
18716maybe-distclean-shellutils:
18717@if shellutils
18718maybe-distclean-shellutils: distclean-shellutils
8ec98d6c 18719
d5eec917
PB
18720distclean-shellutils:
18721 @[ -f ./shellutils/Makefile ] || exit 0; \
8ec98d6c
NN
18722 r=`${PWD_COMMAND}`; export r; \
18723 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18724 $(SET_LIB_PATH) \
a675b75a 18725 $(HOST_EXPORTS) \
d5eec917 18726 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
18727 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18728 done; \
d5eec917 18729 echo "Doing distclean in shellutils" ; \
7fc2ca22 18730 (cd $(HOST_SUBDIR)/shellutils && \
8ec98d6c
NN
18731 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18732 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18733 "RANLIB=$${RANLIB}" \
18734 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 18735 distclean) \
8ec98d6c
NN
18736 || exit 1
18737
d5eec917 18738@endif shellutils
8ec98d6c 18739
d5eec917
PB
18740.PHONY: maybe-maintainer-clean-shellutils maintainer-clean-shellutils
18741maybe-maintainer-clean-shellutils:
18742@if shellutils
18743maybe-maintainer-clean-shellutils: maintainer-clean-shellutils
8ec98d6c 18744
d5eec917
PB
18745maintainer-clean-shellutils:
18746 @[ -f ./shellutils/Makefile ] || exit 0; \
8ec98d6c
NN
18747 r=`${PWD_COMMAND}`; export r; \
18748 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18749 $(SET_LIB_PATH) \
a675b75a 18750 $(HOST_EXPORTS) \
d5eec917 18751 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
18752 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18753 done; \
d5eec917 18754 echo "Doing maintainer-clean in shellutils" ; \
7fc2ca22 18755 (cd $(HOST_SUBDIR)/shellutils && \
8ec98d6c
NN
18756 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18757 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18758 "RANLIB=$${RANLIB}" \
18759 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 18760 maintainer-clean) \
8ec98d6c 18761 || exit 1
8ecc6504 18762
d5eec917 18763@endif shellutils
8ecc6504 18764
8ec98d6c 18765
d5eec917
PB
18766.PHONY: configure-sid maybe-configure-sid
18767maybe-configure-sid:
18768@if sid
18769maybe-configure-sid: configure-sid
18770configure-sid:
7fc2ca22
PB
18771 @test ! -f $(HOST_SUBDIR)/sid/Makefile || exit 0; \
18772 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/sid ; \
5230d454
L
18773 r=`${PWD_COMMAND}`; export r; \
18774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 18775 $(HOST_EXPORTS) \
d5eec917 18776 echo Configuring in sid; \
7fc2ca22 18777 cd $(HOST_SUBDIR)/sid || exit 1; \
94f860c0 18778 case $(srcdir) in \
7fc2ca22
PB
18779 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18780 *) topdir=`echo $(HOST_SUBDIR)/sid/ | \
18781 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 18782 esac; \
7fc2ca22
PB
18783 srcdiroption="--srcdir=$${topdir}/sid"; \
18784 libsrcdir="$$s/sid"; \
94f860c0 18785 $(SHELL) $${libsrcdir}/configure \
63673a5b 18786 $(HOST_CONFIGARGS) $${srcdiroption} \
94f860c0 18787 || exit 1
d5eec917 18788@endif sid
94f860c0 18789
d5eec917
PB
18790.PHONY: all-sid maybe-all-sid
18791maybe-all-sid:
18792@if sid
5e6b1f07 18793TARGET-sid=all
d5eec917
PB
18794maybe-all-sid: all-sid
18795all-sid: configure-sid
5230d454
L
18796 @r=`${PWD_COMMAND}`; export r; \
18797 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 18798 $(SET_LIB_PATH) \
a675b75a 18799 $(HOST_EXPORTS) \
7fc2ca22
PB
18800 (cd $(HOST_SUBDIR)/sid && \
18801 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-sid))
d5eec917 18802@endif sid
8ecc6504 18803
d5eec917
PB
18804.PHONY: check-sid maybe-check-sid
18805maybe-check-sid:
18806@if sid
18807maybe-check-sid: check-sid
8ecc6504 18808
d5eec917 18809check-sid:
8ec98d6c
NN
18810 @r=`${PWD_COMMAND}`; export r; \
18811 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18812 $(SET_LIB_PATH) \
a675b75a 18813 $(HOST_EXPORTS) \
7fc2ca22
PB
18814 (cd $(HOST_SUBDIR)/sid && \
18815 $(MAKE) $(FLAGS_TO_PASS) check)
8ecc6504 18816
d5eec917 18817@endif sid
8ecc6504 18818
d5eec917
PB
18819.PHONY: install-sid maybe-install-sid
18820maybe-install-sid:
18821@if sid
18822maybe-install-sid: install-sid
70ffc148 18823
d5eec917 18824install-sid: installdirs
5230d454
L
18825 @r=`${PWD_COMMAND}`; export r; \
18826 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 18827 $(SET_LIB_PATH) \
a675b75a 18828 $(HOST_EXPORTS) \
7fc2ca22 18829 (cd $(HOST_SUBDIR)/sid && \
93c60b6d 18830 $(MAKE) $(FLAGS_TO_PASS) install)
8ecc6504 18831
d5eec917 18832@endif sid
8ecc6504 18833
8ec98d6c
NN
18834# Other targets (info, dvi, etc.)
18835
d5eec917
PB
18836.PHONY: maybe-info-sid info-sid
18837maybe-info-sid:
18838@if sid
18839maybe-info-sid: info-sid
8ec98d6c 18840
d5eec917
PB
18841info-sid: \
18842 configure-sid
18843 @[ -f ./sid/Makefile ] || exit 0; \
8ec98d6c
NN
18844 r=`${PWD_COMMAND}`; export r; \
18845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18846 $(SET_LIB_PATH) \
a675b75a 18847 $(HOST_EXPORTS) \
d5eec917 18848 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
18849 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18850 done; \
d5eec917 18851 echo "Doing info in sid" ; \
7fc2ca22 18852 (cd $(HOST_SUBDIR)/sid && \
8ec98d6c
NN
18853 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18854 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18855 "RANLIB=$${RANLIB}" \
18856 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 18857 info) \
8ec98d6c
NN
18858 || exit 1
18859
d5eec917 18860@endif sid
8ec98d6c 18861
d5eec917
PB
18862.PHONY: maybe-dvi-sid dvi-sid
18863maybe-dvi-sid:
18864@if sid
18865maybe-dvi-sid: dvi-sid
8ec98d6c 18866
d5eec917
PB
18867dvi-sid: \
18868 configure-sid
18869 @[ -f ./sid/Makefile ] || exit 0; \
8ec98d6c
NN
18870 r=`${PWD_COMMAND}`; export r; \
18871 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18872 $(SET_LIB_PATH) \
a675b75a 18873 $(HOST_EXPORTS) \
d5eec917 18874 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
18875 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18876 done; \
d5eec917 18877 echo "Doing dvi in sid" ; \
7fc2ca22 18878 (cd $(HOST_SUBDIR)/sid && \
8ec98d6c
NN
18879 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18880 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18881 "RANLIB=$${RANLIB}" \
18882 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 18883 dvi) \
8ec98d6c
NN
18884 || exit 1
18885
d5eec917 18886@endif sid
8ec98d6c 18887
b6fb961f
MS
18888.PHONY: maybe-html-sid html-sid
18889maybe-html-sid:
18890@if sid
18891maybe-html-sid: html-sid
18892
18893html-sid: \
18894 configure-sid
18895 @[ -f ./sid/Makefile ] || exit 0; \
18896 r=`${PWD_COMMAND}`; export r; \
18897 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18898 $(SET_LIB_PATH) \
18899 $(HOST_EXPORTS) \
18900 for flag in $(EXTRA_HOST_FLAGS) ; do \
18901 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18902 done; \
18903 echo "Doing html in sid" ; \
7fc2ca22 18904 (cd $(HOST_SUBDIR)/sid && \
b6fb961f
MS
18905 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18906 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18907 "RANLIB=$${RANLIB}" \
18908 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18909 html) \
18910 || exit 1
18911
18912@endif sid
18913
d5eec917
PB
18914.PHONY: maybe-TAGS-sid TAGS-sid
18915maybe-TAGS-sid:
18916@if sid
18917maybe-TAGS-sid: TAGS-sid
8ec98d6c 18918
d5eec917
PB
18919TAGS-sid: \
18920 configure-sid
18921 @[ -f ./sid/Makefile ] || exit 0; \
8ec98d6c
NN
18922 r=`${PWD_COMMAND}`; export r; \
18923 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18924 $(SET_LIB_PATH) \
a675b75a 18925 $(HOST_EXPORTS) \
d5eec917 18926 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
18927 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18928 done; \
d5eec917 18929 echo "Doing TAGS in sid" ; \
7fc2ca22 18930 (cd $(HOST_SUBDIR)/sid && \
8ec98d6c
NN
18931 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18932 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18933 "RANLIB=$${RANLIB}" \
18934 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 18935 TAGS) \
8ec98d6c
NN
18936 || exit 1
18937
d5eec917 18938@endif sid
8ec98d6c 18939
d5eec917
PB
18940.PHONY: maybe-install-info-sid install-info-sid
18941maybe-install-info-sid:
18942@if sid
18943maybe-install-info-sid: install-info-sid
8ec98d6c 18944
d5eec917
PB
18945install-info-sid: \
18946 configure-sid \
18947 info-sid
18948 @[ -f ./sid/Makefile ] || exit 0; \
8ec98d6c
NN
18949 r=`${PWD_COMMAND}`; export r; \
18950 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18951 $(SET_LIB_PATH) \
a675b75a 18952 $(HOST_EXPORTS) \
d5eec917 18953 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
18954 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18955 done; \
d5eec917 18956 echo "Doing install-info in sid" ; \
7fc2ca22 18957 (cd $(HOST_SUBDIR)/sid && \
8ec98d6c
NN
18958 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18959 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18960 "RANLIB=$${RANLIB}" \
18961 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 18962 install-info) \
8ec98d6c
NN
18963 || exit 1
18964
d5eec917 18965@endif sid
8ec98d6c 18966
d5eec917
PB
18967.PHONY: maybe-installcheck-sid installcheck-sid
18968maybe-installcheck-sid:
18969@if sid
18970maybe-installcheck-sid: installcheck-sid
8ec98d6c 18971
d5eec917
PB
18972installcheck-sid: \
18973 configure-sid
18974 @[ -f ./sid/Makefile ] || exit 0; \
18975 r=`${PWD_COMMAND}`; export r; \
8ec98d6c
NN
18976 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18977 $(SET_LIB_PATH) \
a675b75a 18978 $(HOST_EXPORTS) \
d5eec917 18979 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
18980 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18981 done; \
d5eec917 18982 echo "Doing installcheck in sid" ; \
7fc2ca22 18983 (cd $(HOST_SUBDIR)/sid && \
8ec98d6c
NN
18984 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18985 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18986 "RANLIB=$${RANLIB}" \
18987 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 18988 installcheck) \
8ec98d6c
NN
18989 || exit 1
18990
d5eec917 18991@endif sid
8ec98d6c 18992
d5eec917
PB
18993.PHONY: maybe-mostlyclean-sid mostlyclean-sid
18994maybe-mostlyclean-sid:
18995@if sid
18996maybe-mostlyclean-sid: mostlyclean-sid
8ec98d6c 18997
d5eec917
PB
18998mostlyclean-sid:
18999 @[ -f ./sid/Makefile ] || exit 0; \
8ec98d6c
NN
19000 r=`${PWD_COMMAND}`; export r; \
19001 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19002 $(SET_LIB_PATH) \
a675b75a 19003 $(HOST_EXPORTS) \
d5eec917 19004 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
19005 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19006 done; \
d5eec917 19007 echo "Doing mostlyclean in sid" ; \
7fc2ca22 19008 (cd $(HOST_SUBDIR)/sid && \
8ec98d6c
NN
19009 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19010 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19011 "RANLIB=$${RANLIB}" \
19012 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 19013 mostlyclean) \
8ec98d6c
NN
19014 || exit 1
19015
d5eec917 19016@endif sid
8ec98d6c 19017
d5eec917
PB
19018.PHONY: maybe-clean-sid clean-sid
19019maybe-clean-sid:
19020@if sid
19021maybe-clean-sid: clean-sid
8ec98d6c 19022
d5eec917
PB
19023clean-sid:
19024 @[ -f ./sid/Makefile ] || exit 0; \
8ec98d6c
NN
19025 r=`${PWD_COMMAND}`; export r; \
19026 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19027 $(SET_LIB_PATH) \
a675b75a 19028 $(HOST_EXPORTS) \
d5eec917 19029 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
19030 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19031 done; \
d5eec917 19032 echo "Doing clean in sid" ; \
7fc2ca22 19033 (cd $(HOST_SUBDIR)/sid && \
8ec98d6c
NN
19034 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19035 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19036 "RANLIB=$${RANLIB}" \
19037 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 19038 clean) \
8ec98d6c
NN
19039 || exit 1
19040
d5eec917 19041@endif sid
8ec98d6c 19042
d5eec917
PB
19043.PHONY: maybe-distclean-sid distclean-sid
19044maybe-distclean-sid:
19045@if sid
19046maybe-distclean-sid: distclean-sid
8ec98d6c 19047
d5eec917
PB
19048distclean-sid:
19049 @[ -f ./sid/Makefile ] || exit 0; \
8ec98d6c
NN
19050 r=`${PWD_COMMAND}`; export r; \
19051 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19052 $(SET_LIB_PATH) \
a675b75a 19053 $(HOST_EXPORTS) \
d5eec917 19054 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
19055 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19056 done; \
d5eec917 19057 echo "Doing distclean in sid" ; \
7fc2ca22 19058 (cd $(HOST_SUBDIR)/sid && \
8ec98d6c
NN
19059 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19060 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19061 "RANLIB=$${RANLIB}" \
19062 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 19063 distclean) \
8ec98d6c
NN
19064 || exit 1
19065
d5eec917 19066@endif sid
8ec98d6c 19067
d5eec917
PB
19068.PHONY: maybe-maintainer-clean-sid maintainer-clean-sid
19069maybe-maintainer-clean-sid:
19070@if sid
19071maybe-maintainer-clean-sid: maintainer-clean-sid
8ec98d6c 19072
d5eec917
PB
19073maintainer-clean-sid:
19074 @[ -f ./sid/Makefile ] || exit 0; \
8ec98d6c
NN
19075 r=`${PWD_COMMAND}`; export r; \
19076 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19077 $(SET_LIB_PATH) \
a675b75a 19078 $(HOST_EXPORTS) \
d5eec917 19079 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
19080 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19081 done; \
d5eec917 19082 echo "Doing maintainer-clean in sid" ; \
7fc2ca22 19083 (cd $(HOST_SUBDIR)/sid && \
8ec98d6c
NN
19084 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19085 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19086 "RANLIB=$${RANLIB}" \
19087 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 19088 maintainer-clean) \
8ec98d6c
NN
19089 || exit 1
19090
d5eec917 19091@endif sid
8ec98d6c
NN
19092
19093
d5eec917
PB
19094.PHONY: configure-sim maybe-configure-sim
19095maybe-configure-sim:
19096@if sim
19097maybe-configure-sim: configure-sim
19098configure-sim:
7fc2ca22
PB
19099 @test ! -f $(HOST_SUBDIR)/sim/Makefile || exit 0; \
19100 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/sim ; \
5230d454
L
19101 r=`${PWD_COMMAND}`; export r; \
19102 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 19103 $(HOST_EXPORTS) \
d5eec917 19104 echo Configuring in sim; \
7fc2ca22 19105 cd $(HOST_SUBDIR)/sim || exit 1; \
94f860c0 19106 case $(srcdir) in \
7fc2ca22
PB
19107 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19108 *) topdir=`echo $(HOST_SUBDIR)/sim/ | \
19109 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 19110 esac; \
7fc2ca22
PB
19111 srcdiroption="--srcdir=$${topdir}/sim"; \
19112 libsrcdir="$$s/sim"; \
94f860c0 19113 $(SHELL) $${libsrcdir}/configure \
63673a5b 19114 $(HOST_CONFIGARGS) $${srcdiroption} \
94f860c0 19115 || exit 1
d5eec917 19116@endif sim
94f860c0 19117
d5eec917
PB
19118.PHONY: all-sim maybe-all-sim
19119maybe-all-sim:
19120@if sim
5e6b1f07 19121TARGET-sim=all
d5eec917
PB
19122maybe-all-sim: all-sim
19123all-sim: configure-sim
5230d454
L
19124 @r=`${PWD_COMMAND}`; export r; \
19125 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 19126 $(SET_LIB_PATH) \
a675b75a 19127 $(HOST_EXPORTS) \
7fc2ca22
PB
19128 (cd $(HOST_SUBDIR)/sim && \
19129 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-sim))
d5eec917 19130@endif sim
8ecc6504 19131
d5eec917
PB
19132.PHONY: check-sim maybe-check-sim
19133maybe-check-sim:
19134@if sim
19135maybe-check-sim: check-sim
8ecc6504 19136
d5eec917 19137check-sim:
5230d454
L
19138 @r=`${PWD_COMMAND}`; export r; \
19139 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 19140 $(SET_LIB_PATH) \
a675b75a 19141 $(HOST_EXPORTS) \
7fc2ca22
PB
19142 (cd $(HOST_SUBDIR)/sim && \
19143 $(MAKE) $(FLAGS_TO_PASS) check)
8ecc6504 19144
d5eec917 19145@endif sim
8ecc6504 19146
d5eec917
PB
19147.PHONY: install-sim maybe-install-sim
19148maybe-install-sim:
19149@if sim
19150maybe-install-sim: install-sim
70ffc148 19151
d5eec917 19152install-sim: installdirs
5230d454
L
19153 @r=`${PWD_COMMAND}`; export r; \
19154 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 19155 $(SET_LIB_PATH) \
a675b75a 19156 $(HOST_EXPORTS) \
7fc2ca22 19157 (cd $(HOST_SUBDIR)/sim && \
93c60b6d 19158 $(MAKE) $(FLAGS_TO_PASS) install)
8ecc6504 19159
d5eec917 19160@endif sim
8ecc6504 19161
8ec98d6c
NN
19162# Other targets (info, dvi, etc.)
19163
d5eec917
PB
19164.PHONY: maybe-info-sim info-sim
19165maybe-info-sim:
19166@if sim
19167maybe-info-sim: info-sim
8ec98d6c 19168
d5eec917
PB
19169info-sim: \
19170 configure-sim
19171 @[ -f ./sim/Makefile ] || exit 0; \
5230d454
L
19172 r=`${PWD_COMMAND}`; export r; \
19173 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8ec98d6c 19174 $(SET_LIB_PATH) \
a675b75a 19175 $(HOST_EXPORTS) \
d5eec917 19176 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
19177 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19178 done; \
d5eec917 19179 echo "Doing info in sim" ; \
7fc2ca22 19180 (cd $(HOST_SUBDIR)/sim && \
8ec98d6c
NN
19181 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19182 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19183 "RANLIB=$${RANLIB}" \
19184 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 19185 info) \
94f860c0
NN
19186 || exit 1
19187
d5eec917 19188@endif sim
8ec98d6c 19189
d5eec917
PB
19190.PHONY: maybe-dvi-sim dvi-sim
19191maybe-dvi-sim:
19192@if sim
19193maybe-dvi-sim: dvi-sim
8ec98d6c 19194
d5eec917
PB
19195dvi-sim: \
19196 configure-sim
19197 @[ -f ./sim/Makefile ] || exit 0; \
8ec98d6c 19198 r=`${PWD_COMMAND}`; export r; \
5230d454 19199 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 19200 $(SET_LIB_PATH) \
a675b75a 19201 $(HOST_EXPORTS) \
d5eec917 19202 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
19203 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19204 done; \
d5eec917 19205 echo "Doing dvi in sim" ; \
7fc2ca22 19206 (cd $(HOST_SUBDIR)/sim && \
8ec98d6c
NN
19207 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19208 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19209 "RANLIB=$${RANLIB}" \
19210 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 19211 dvi) \
8ec98d6c 19212 || exit 1
8ecc6504 19213
d5eec917 19214@endif sim
8ecc6504 19215
b6fb961f
MS
19216.PHONY: maybe-html-sim html-sim
19217maybe-html-sim:
19218@if sim
19219maybe-html-sim: html-sim
19220
19221html-sim: \
19222 configure-sim
19223 @[ -f ./sim/Makefile ] || exit 0; \
19224 r=`${PWD_COMMAND}`; export r; \
19225 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19226 $(SET_LIB_PATH) \
19227 $(HOST_EXPORTS) \
19228 for flag in $(EXTRA_HOST_FLAGS) ; do \
19229 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19230 done; \
19231 echo "Doing html in sim" ; \
7fc2ca22 19232 (cd $(HOST_SUBDIR)/sim && \
b6fb961f
MS
19233 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19234 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19235 "RANLIB=$${RANLIB}" \
19236 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19237 html) \
19238 || exit 1
19239
19240@endif sim
19241
d5eec917
PB
19242.PHONY: maybe-TAGS-sim TAGS-sim
19243maybe-TAGS-sim:
19244@if sim
19245maybe-TAGS-sim: TAGS-sim
8ec98d6c 19246
d5eec917
PB
19247TAGS-sim: \
19248 configure-sim
19249 @[ -f ./sim/Makefile ] || exit 0; \
8ec98d6c 19250 r=`${PWD_COMMAND}`; export r; \
5230d454 19251 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 19252 $(SET_LIB_PATH) \
a675b75a 19253 $(HOST_EXPORTS) \
d5eec917 19254 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
19255 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19256 done; \
d5eec917 19257 echo "Doing TAGS in sim" ; \
7fc2ca22 19258 (cd $(HOST_SUBDIR)/sim && \
8ec98d6c
NN
19259 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19260 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19261 "RANLIB=$${RANLIB}" \
19262 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 19263 TAGS) \
8ec98d6c 19264 || exit 1
8ecc6504 19265
d5eec917 19266@endif sim
8ecc6504 19267
d5eec917
PB
19268.PHONY: maybe-install-info-sim install-info-sim
19269maybe-install-info-sim:
19270@if sim
19271maybe-install-info-sim: install-info-sim
8ec98d6c 19272
d5eec917
PB
19273install-info-sim: \
19274 configure-sim \
19275 info-sim
19276 @[ -f ./sim/Makefile ] || exit 0; \
8ec98d6c
NN
19277 r=`${PWD_COMMAND}`; export r; \
19278 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19279 $(SET_LIB_PATH) \
a675b75a 19280 $(HOST_EXPORTS) \
d5eec917 19281 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
19282 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19283 done; \
d5eec917 19284 echo "Doing install-info in sim" ; \
7fc2ca22 19285 (cd $(HOST_SUBDIR)/sim && \
8ec98d6c
NN
19286 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19287 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19288 "RANLIB=$${RANLIB}" \
19289 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 19290 install-info) \
8ec98d6c
NN
19291 || exit 1
19292
d5eec917 19293@endif sim
8ec98d6c 19294
d5eec917
PB
19295.PHONY: maybe-installcheck-sim installcheck-sim
19296maybe-installcheck-sim:
19297@if sim
19298maybe-installcheck-sim: installcheck-sim
8ec98d6c 19299
d5eec917
PB
19300installcheck-sim: \
19301 configure-sim
19302 @[ -f ./sim/Makefile ] || exit 0; \
8ec98d6c
NN
19303 r=`${PWD_COMMAND}`; export r; \
19304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19305 $(SET_LIB_PATH) \
a675b75a 19306 $(HOST_EXPORTS) \
d5eec917 19307 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
19308 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19309 done; \
d5eec917 19310 echo "Doing installcheck in sim" ; \
7fc2ca22 19311 (cd $(HOST_SUBDIR)/sim && \
8ec98d6c
NN
19312 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19313 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19314 "RANLIB=$${RANLIB}" \
19315 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 19316 installcheck) \
8ec98d6c
NN
19317 || exit 1
19318
d5eec917 19319@endif sim
8ec98d6c 19320
d5eec917
PB
19321.PHONY: maybe-mostlyclean-sim mostlyclean-sim
19322maybe-mostlyclean-sim:
19323@if sim
19324maybe-mostlyclean-sim: mostlyclean-sim
8ec98d6c 19325
d5eec917
PB
19326mostlyclean-sim:
19327 @[ -f ./sim/Makefile ] || exit 0; \
8ec98d6c
NN
19328 r=`${PWD_COMMAND}`; export r; \
19329 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19330 $(SET_LIB_PATH) \
a675b75a 19331 $(HOST_EXPORTS) \
d5eec917 19332 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
19333 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19334 done; \
d5eec917 19335 echo "Doing mostlyclean in sim" ; \
7fc2ca22 19336 (cd $(HOST_SUBDIR)/sim && \
8ec98d6c
NN
19337 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19338 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19339 "RANLIB=$${RANLIB}" \
19340 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 19341 mostlyclean) \
8ec98d6c
NN
19342 || exit 1
19343
d5eec917 19344@endif sim
8ec98d6c 19345
d5eec917
PB
19346.PHONY: maybe-clean-sim clean-sim
19347maybe-clean-sim:
19348@if sim
19349maybe-clean-sim: clean-sim
8ec98d6c 19350
d5eec917
PB
19351clean-sim:
19352 @[ -f ./sim/Makefile ] || exit 0; \
8ec98d6c
NN
19353 r=`${PWD_COMMAND}`; export r; \
19354 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19355 $(SET_LIB_PATH) \
a675b75a 19356 $(HOST_EXPORTS) \
d5eec917 19357 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
19358 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19359 done; \
d5eec917 19360 echo "Doing clean in sim" ; \
7fc2ca22 19361 (cd $(HOST_SUBDIR)/sim && \
8ec98d6c
NN
19362 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19363 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19364 "RANLIB=$${RANLIB}" \
19365 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 19366 clean) \
8ec98d6c
NN
19367 || exit 1
19368
d5eec917 19369@endif sim
8ec98d6c 19370
d5eec917
PB
19371.PHONY: maybe-distclean-sim distclean-sim
19372maybe-distclean-sim:
19373@if sim
19374maybe-distclean-sim: distclean-sim
8ec98d6c 19375
d5eec917
PB
19376distclean-sim:
19377 @[ -f ./sim/Makefile ] || exit 0; \
8ec98d6c
NN
19378 r=`${PWD_COMMAND}`; export r; \
19379 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19380 $(SET_LIB_PATH) \
a675b75a 19381 $(HOST_EXPORTS) \
d5eec917 19382 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
19383 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19384 done; \
d5eec917 19385 echo "Doing distclean in sim" ; \
7fc2ca22 19386 (cd $(HOST_SUBDIR)/sim && \
8ec98d6c
NN
19387 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19388 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19389 "RANLIB=$${RANLIB}" \
19390 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 19391 distclean) \
8ec98d6c
NN
19392 || exit 1
19393
d5eec917 19394@endif sim
8ec98d6c 19395
d5eec917
PB
19396.PHONY: maybe-maintainer-clean-sim maintainer-clean-sim
19397maybe-maintainer-clean-sim:
19398@if sim
19399maybe-maintainer-clean-sim: maintainer-clean-sim
70ffc148 19400
d5eec917
PB
19401maintainer-clean-sim:
19402 @[ -f ./sim/Makefile ] || exit 0; \
8ec98d6c 19403 r=`${PWD_COMMAND}`; export r; \
5230d454 19404 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 19405 $(SET_LIB_PATH) \
a675b75a 19406 $(HOST_EXPORTS) \
d5eec917 19407 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
19408 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19409 done; \
d5eec917 19410 echo "Doing maintainer-clean in sim" ; \
7fc2ca22 19411 (cd $(HOST_SUBDIR)/sim && \
8ec98d6c
NN
19412 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19413 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19414 "RANLIB=$${RANLIB}" \
19415 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 19416 maintainer-clean) \
8ec98d6c 19417 || exit 1
8ecc6504 19418
d5eec917 19419@endif sim
8ecc6504 19420
8ec98d6c 19421
d5eec917
PB
19422.PHONY: configure-tar maybe-configure-tar
19423maybe-configure-tar:
19424@if tar
19425maybe-configure-tar: configure-tar
19426configure-tar:
7fc2ca22
PB
19427 @test ! -f $(HOST_SUBDIR)/tar/Makefile || exit 0; \
19428 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tar ; \
5230d454
L
19429 r=`${PWD_COMMAND}`; export r; \
19430 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 19431 $(HOST_EXPORTS) \
d5eec917 19432 echo Configuring in tar; \
7fc2ca22 19433 cd $(HOST_SUBDIR)/tar || exit 1; \
94f860c0 19434 case $(srcdir) in \
7fc2ca22
PB
19435 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19436 *) topdir=`echo $(HOST_SUBDIR)/tar/ | \
19437 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 19438 esac; \
7fc2ca22
PB
19439 srcdiroption="--srcdir=$${topdir}/tar"; \
19440 libsrcdir="$$s/tar"; \
94f860c0 19441 $(SHELL) $${libsrcdir}/configure \
63673a5b 19442 $(HOST_CONFIGARGS) $${srcdiroption} \
94f860c0 19443 || exit 1
d5eec917 19444@endif tar
94f860c0 19445
d5eec917
PB
19446.PHONY: all-tar maybe-all-tar
19447maybe-all-tar:
19448@if tar
5e6b1f07 19449TARGET-tar=all
d5eec917
PB
19450maybe-all-tar: all-tar
19451all-tar: configure-tar
5230d454
L
19452 @r=`${PWD_COMMAND}`; export r; \
19453 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 19454 $(SET_LIB_PATH) \
a675b75a 19455 $(HOST_EXPORTS) \
7fc2ca22
PB
19456 (cd $(HOST_SUBDIR)/tar && \
19457 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-tar))
d5eec917 19458@endif tar
8ecc6504 19459
d5eec917
PB
19460.PHONY: check-tar maybe-check-tar
19461maybe-check-tar:
19462@if tar
19463maybe-check-tar: check-tar
8ecc6504 19464
d5eec917 19465check-tar:
5230d454
L
19466 @r=`${PWD_COMMAND}`; export r; \
19467 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 19468 $(SET_LIB_PATH) \
a675b75a 19469 $(HOST_EXPORTS) \
7fc2ca22
PB
19470 (cd $(HOST_SUBDIR)/tar && \
19471 $(MAKE) $(FLAGS_TO_PASS) check)
8ecc6504 19472
d5eec917 19473@endif tar
8ecc6504 19474
d5eec917
PB
19475.PHONY: install-tar maybe-install-tar
19476maybe-install-tar:
19477@if tar
19478maybe-install-tar: install-tar
70ffc148 19479
d5eec917
PB
19480install-tar: installdirs
19481 @r=`${PWD_COMMAND}`; export r; \
19482 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19483 $(SET_LIB_PATH) \
19484 $(HOST_EXPORTS) \
7fc2ca22 19485 (cd $(HOST_SUBDIR)/tar && \
93c60b6d 19486 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 19487
d5eec917 19488@endif tar
8ec98d6c
NN
19489
19490# Other targets (info, dvi, etc.)
19491
d5eec917
PB
19492.PHONY: maybe-info-tar info-tar
19493maybe-info-tar:
19494@if tar
19495maybe-info-tar: info-tar
8ec98d6c 19496
d5eec917
PB
19497info-tar: \
19498 configure-tar
19499 @[ -f ./tar/Makefile ] || exit 0; \
8ec98d6c 19500 r=`${PWD_COMMAND}`; export r; \
5230d454 19501 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 19502 $(SET_LIB_PATH) \
a675b75a 19503 $(HOST_EXPORTS) \
d5eec917 19504 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
19505 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19506 done; \
d5eec917 19507 echo "Doing info in tar" ; \
7fc2ca22 19508 (cd $(HOST_SUBDIR)/tar && \
8ec98d6c
NN
19509 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19510 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19511 "RANLIB=$${RANLIB}" \
19512 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 19513 info) \
8ec98d6c
NN
19514 || exit 1
19515
d5eec917 19516@endif tar
8ec98d6c 19517
d5eec917
PB
19518.PHONY: maybe-dvi-tar dvi-tar
19519maybe-dvi-tar:
19520@if tar
19521maybe-dvi-tar: dvi-tar
8ec98d6c 19522
d5eec917
PB
19523dvi-tar: \
19524 configure-tar
19525 @[ -f ./tar/Makefile ] || exit 0; \
8ec98d6c
NN
19526 r=`${PWD_COMMAND}`; export r; \
19527 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19528 $(SET_LIB_PATH) \
a675b75a 19529 $(HOST_EXPORTS) \
d5eec917 19530 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
19531 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19532 done; \
d5eec917 19533 echo "Doing dvi in tar" ; \
7fc2ca22 19534 (cd $(HOST_SUBDIR)/tar && \
8ec98d6c
NN
19535 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19536 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19537 "RANLIB=$${RANLIB}" \
19538 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 19539 dvi) \
8ec98d6c
NN
19540 || exit 1
19541
d5eec917 19542@endif tar
8ec98d6c 19543
b6fb961f
MS
19544.PHONY: maybe-html-tar html-tar
19545maybe-html-tar:
19546@if tar
19547maybe-html-tar: html-tar
19548
19549html-tar: \
19550 configure-tar
19551 @[ -f ./tar/Makefile ] || exit 0; \
19552 r=`${PWD_COMMAND}`; export r; \
19553 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19554 $(SET_LIB_PATH) \
19555 $(HOST_EXPORTS) \
19556 for flag in $(EXTRA_HOST_FLAGS) ; do \
19557 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19558 done; \
19559 echo "Doing html in tar" ; \
7fc2ca22 19560 (cd $(HOST_SUBDIR)/tar && \
b6fb961f
MS
19561 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19562 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19563 "RANLIB=$${RANLIB}" \
19564 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19565 html) \
19566 || exit 1
19567
19568@endif tar
19569
d5eec917
PB
19570.PHONY: maybe-TAGS-tar TAGS-tar
19571maybe-TAGS-tar:
19572@if tar
19573maybe-TAGS-tar: TAGS-tar
8ec98d6c 19574
d5eec917
PB
19575TAGS-tar: \
19576 configure-tar
19577 @[ -f ./tar/Makefile ] || exit 0; \
8ec98d6c
NN
19578 r=`${PWD_COMMAND}`; export r; \
19579 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19580 $(SET_LIB_PATH) \
a675b75a 19581 $(HOST_EXPORTS) \
d5eec917 19582 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
19583 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19584 done; \
d5eec917 19585 echo "Doing TAGS in tar" ; \
7fc2ca22 19586 (cd $(HOST_SUBDIR)/tar && \
8ec98d6c
NN
19587 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19588 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19589 "RANLIB=$${RANLIB}" \
19590 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 19591 TAGS) \
8ec98d6c
NN
19592 || exit 1
19593
d5eec917 19594@endif tar
8ec98d6c 19595
d5eec917
PB
19596.PHONY: maybe-install-info-tar install-info-tar
19597maybe-install-info-tar:
19598@if tar
19599maybe-install-info-tar: install-info-tar
8ec98d6c 19600
d5eec917
PB
19601install-info-tar: \
19602 configure-tar \
19603 info-tar
19604 @[ -f ./tar/Makefile ] || exit 0; \
8ec98d6c
NN
19605 r=`${PWD_COMMAND}`; export r; \
19606 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19607 $(SET_LIB_PATH) \
a675b75a 19608 $(HOST_EXPORTS) \
d5eec917 19609 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
19610 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19611 done; \
d5eec917 19612 echo "Doing install-info in tar" ; \
7fc2ca22 19613 (cd $(HOST_SUBDIR)/tar && \
d5eec917 19614 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8ec98d6c
NN
19615 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19616 "RANLIB=$${RANLIB}" \
19617 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 19618 install-info) \
8ec98d6c
NN
19619 || exit 1
19620
d5eec917 19621@endif tar
8ec98d6c 19622
d5eec917
PB
19623.PHONY: maybe-installcheck-tar installcheck-tar
19624maybe-installcheck-tar:
19625@if tar
19626maybe-installcheck-tar: installcheck-tar
8ec98d6c 19627
d5eec917
PB
19628installcheck-tar: \
19629 configure-tar
19630 @[ -f ./tar/Makefile ] || exit 0; \
8ec98d6c
NN
19631 r=`${PWD_COMMAND}`; export r; \
19632 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19633 $(SET_LIB_PATH) \
a675b75a 19634 $(HOST_EXPORTS) \
d5eec917 19635 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
19636 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19637 done; \
d5eec917 19638 echo "Doing installcheck in tar" ; \
7fc2ca22 19639 (cd $(HOST_SUBDIR)/tar && \
8ec98d6c
NN
19640 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19641 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19642 "RANLIB=$${RANLIB}" \
19643 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 19644 installcheck) \
8ec98d6c
NN
19645 || exit 1
19646
d5eec917 19647@endif tar
8ec98d6c 19648
d5eec917
PB
19649.PHONY: maybe-mostlyclean-tar mostlyclean-tar
19650maybe-mostlyclean-tar:
19651@if tar
19652maybe-mostlyclean-tar: mostlyclean-tar
8ec98d6c 19653
d5eec917
PB
19654mostlyclean-tar:
19655 @[ -f ./tar/Makefile ] || exit 0; \
8ec98d6c
NN
19656 r=`${PWD_COMMAND}`; export r; \
19657 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19658 $(SET_LIB_PATH) \
a675b75a 19659 $(HOST_EXPORTS) \
d5eec917 19660 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
19661 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19662 done; \
d5eec917 19663 echo "Doing mostlyclean in tar" ; \
7fc2ca22 19664 (cd $(HOST_SUBDIR)/tar && \
8ec98d6c
NN
19665 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19666 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19667 "RANLIB=$${RANLIB}" \
19668 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 19669 mostlyclean) \
8ec98d6c
NN
19670 || exit 1
19671
d5eec917 19672@endif tar
8ec98d6c 19673
d5eec917
PB
19674.PHONY: maybe-clean-tar clean-tar
19675maybe-clean-tar:
19676@if tar
19677maybe-clean-tar: clean-tar
8ec98d6c 19678
d5eec917
PB
19679clean-tar:
19680 @[ -f ./tar/Makefile ] || exit 0; \
8ec98d6c
NN
19681 r=`${PWD_COMMAND}`; export r; \
19682 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19683 $(SET_LIB_PATH) \
a675b75a 19684 $(HOST_EXPORTS) \
d5eec917 19685 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
19686 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19687 done; \
d5eec917 19688 echo "Doing clean in tar" ; \
7fc2ca22 19689 (cd $(HOST_SUBDIR)/tar && \
8ec98d6c
NN
19690 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19691 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19692 "RANLIB=$${RANLIB}" \
19693 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 19694 clean) \
8ec98d6c
NN
19695 || exit 1
19696
d5eec917 19697@endif tar
8ec98d6c 19698
d5eec917
PB
19699.PHONY: maybe-distclean-tar distclean-tar
19700maybe-distclean-tar:
19701@if tar
19702maybe-distclean-tar: distclean-tar
8ec98d6c 19703
d5eec917
PB
19704distclean-tar:
19705 @[ -f ./tar/Makefile ] || exit 0; \
8ec98d6c
NN
19706 r=`${PWD_COMMAND}`; export r; \
19707 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19708 $(SET_LIB_PATH) \
a675b75a 19709 $(HOST_EXPORTS) \
d5eec917 19710 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
19711 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19712 done; \
d5eec917 19713 echo "Doing distclean in tar" ; \
7fc2ca22 19714 (cd $(HOST_SUBDIR)/tar && \
8ec98d6c
NN
19715 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19716 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19717 "RANLIB=$${RANLIB}" \
19718 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 19719 distclean) \
8ec98d6c
NN
19720 || exit 1
19721
d5eec917 19722@endif tar
8ec98d6c 19723
d5eec917
PB
19724.PHONY: maybe-maintainer-clean-tar maintainer-clean-tar
19725maybe-maintainer-clean-tar:
19726@if tar
19727maybe-maintainer-clean-tar: maintainer-clean-tar
8ec98d6c 19728
d5eec917
PB
19729maintainer-clean-tar:
19730 @[ -f ./tar/Makefile ] || exit 0; \
8ec98d6c
NN
19731 r=`${PWD_COMMAND}`; export r; \
19732 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19733 $(SET_LIB_PATH) \
a675b75a 19734 $(HOST_EXPORTS) \
d5eec917 19735 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
19736 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19737 done; \
d5eec917 19738 echo "Doing maintainer-clean in tar" ; \
7fc2ca22 19739 (cd $(HOST_SUBDIR)/tar && \
8ec98d6c
NN
19740 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19741 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19742 "RANLIB=$${RANLIB}" \
19743 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 19744 maintainer-clean) \
8ec98d6c 19745 || exit 1
8ecc6504 19746
d5eec917 19747@endif tar
8ecc6504 19748
8ec98d6c 19749
d5eec917
PB
19750.PHONY: configure-texinfo maybe-configure-texinfo
19751maybe-configure-texinfo:
19752@if texinfo
19753maybe-configure-texinfo: configure-texinfo
19754configure-texinfo:
7fc2ca22
PB
19755 @test ! -f $(HOST_SUBDIR)/texinfo/Makefile || exit 0; \
19756 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/texinfo ; \
a675b75a
DD
19757 r=`${PWD_COMMAND}`; export r; \
19758 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19759 $(HOST_EXPORTS) \
d5eec917 19760 echo Configuring in texinfo; \
7fc2ca22 19761 cd $(HOST_SUBDIR)/texinfo || exit 1; \
94f860c0 19762 case $(srcdir) in \
7fc2ca22
PB
19763 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19764 *) topdir=`echo $(HOST_SUBDIR)/texinfo/ | \
19765 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 19766 esac; \
7fc2ca22
PB
19767 srcdiroption="--srcdir=$${topdir}/texinfo"; \
19768 libsrcdir="$$s/texinfo"; \
94f860c0 19769 $(SHELL) $${libsrcdir}/configure \
63673a5b 19770 $(HOST_CONFIGARGS) $${srcdiroption} \
94f860c0 19771 || exit 1
d5eec917 19772@endif texinfo
94f860c0 19773
d5eec917
PB
19774.PHONY: all-texinfo maybe-all-texinfo
19775maybe-all-texinfo:
19776@if texinfo
5e6b1f07 19777TARGET-texinfo=all
d5eec917
PB
19778maybe-all-texinfo: all-texinfo
19779all-texinfo: configure-texinfo
5230d454
L
19780 @r=`${PWD_COMMAND}`; export r; \
19781 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 19782 $(SET_LIB_PATH) \
a675b75a 19783 $(HOST_EXPORTS) \
7fc2ca22
PB
19784 (cd $(HOST_SUBDIR)/texinfo && \
19785 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-texinfo))
d5eec917 19786@endif texinfo
8ecc6504 19787
d5eec917
PB
19788.PHONY: check-texinfo maybe-check-texinfo
19789maybe-check-texinfo:
19790@if texinfo
19791maybe-check-texinfo: check-texinfo
8ecc6504 19792
d5eec917 19793check-texinfo:
8ec98d6c
NN
19794 @r=`${PWD_COMMAND}`; export r; \
19795 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19796 $(SET_LIB_PATH) \
a675b75a 19797 $(HOST_EXPORTS) \
7fc2ca22
PB
19798 (cd $(HOST_SUBDIR)/texinfo && \
19799 $(MAKE) $(FLAGS_TO_PASS) check)
8ecc6504 19800
d5eec917 19801@endif texinfo
8ecc6504 19802
d5eec917
PB
19803.PHONY: install-texinfo maybe-install-texinfo
19804maybe-install-texinfo:
19805@if texinfo
19806maybe-install-texinfo: install-texinfo
70ffc148 19807
d5eec917 19808install-texinfo:
8ecc6504 19809
d5eec917 19810@endif texinfo
8ecc6504 19811
8ec98d6c
NN
19812# Other targets (info, dvi, etc.)
19813
d5eec917
PB
19814.PHONY: maybe-info-texinfo info-texinfo
19815maybe-info-texinfo:
19816@if texinfo
19817maybe-info-texinfo: info-texinfo
8ec98d6c 19818
d5eec917
PB
19819info-texinfo: \
19820 configure-texinfo
19821 @[ -f ./texinfo/Makefile ] || exit 0; \
8ec98d6c
NN
19822 r=`${PWD_COMMAND}`; export r; \
19823 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19824 $(SET_LIB_PATH) \
a675b75a 19825 $(HOST_EXPORTS) \
d5eec917 19826 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
19827 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19828 done; \
d5eec917 19829 echo "Doing info in texinfo" ; \
7fc2ca22 19830 (cd $(HOST_SUBDIR)/texinfo && \
8ec98d6c
NN
19831 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19832 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19833 "RANLIB=$${RANLIB}" \
19834 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 19835 info) \
8ec98d6c
NN
19836 || exit 1
19837
d5eec917 19838@endif texinfo
8ec98d6c 19839
d5eec917
PB
19840.PHONY: maybe-dvi-texinfo dvi-texinfo
19841maybe-dvi-texinfo:
19842@if texinfo
19843maybe-dvi-texinfo: dvi-texinfo
8ec98d6c 19844
d5eec917
PB
19845dvi-texinfo: \
19846 configure-texinfo
19847 @[ -f ./texinfo/Makefile ] || exit 0; \
8ec98d6c
NN
19848 r=`${PWD_COMMAND}`; export r; \
19849 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19850 $(SET_LIB_PATH) \
a675b75a 19851 $(HOST_EXPORTS) \
d5eec917 19852 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
19853 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19854 done; \
d5eec917 19855 echo "Doing dvi in texinfo" ; \
7fc2ca22 19856 (cd $(HOST_SUBDIR)/texinfo && \
8ec98d6c
NN
19857 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19858 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19859 "RANLIB=$${RANLIB}" \
19860 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 19861 dvi) \
8ec98d6c
NN
19862 || exit 1
19863
d5eec917 19864@endif texinfo
8ec98d6c 19865
b6fb961f
MS
19866.PHONY: maybe-html-texinfo html-texinfo
19867maybe-html-texinfo:
19868@if texinfo
19869maybe-html-texinfo: html-texinfo
19870
19871html-texinfo: \
19872 configure-texinfo
19873 @[ -f ./texinfo/Makefile ] || exit 0; \
19874 r=`${PWD_COMMAND}`; export r; \
19875 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19876 $(SET_LIB_PATH) \
19877 $(HOST_EXPORTS) \
19878 for flag in $(EXTRA_HOST_FLAGS) ; do \
19879 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19880 done; \
19881 echo "Doing html in texinfo" ; \
7fc2ca22 19882 (cd $(HOST_SUBDIR)/texinfo && \
b6fb961f
MS
19883 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19884 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19885 "RANLIB=$${RANLIB}" \
19886 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19887 html) \
19888 || exit 1
19889
19890@endif texinfo
19891
d5eec917
PB
19892.PHONY: maybe-TAGS-texinfo TAGS-texinfo
19893maybe-TAGS-texinfo:
19894@if texinfo
19895maybe-TAGS-texinfo: TAGS-texinfo
8ec98d6c 19896
d5eec917
PB
19897TAGS-texinfo: \
19898 configure-texinfo
19899 @[ -f ./texinfo/Makefile ] || exit 0; \
8ec98d6c
NN
19900 r=`${PWD_COMMAND}`; export r; \
19901 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19902 $(SET_LIB_PATH) \
a675b75a 19903 $(HOST_EXPORTS) \
d5eec917 19904 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
19905 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19906 done; \
d5eec917 19907 echo "Doing TAGS in texinfo" ; \
7fc2ca22 19908 (cd $(HOST_SUBDIR)/texinfo && \
8ec98d6c
NN
19909 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19910 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19911 "RANLIB=$${RANLIB}" \
19912 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 19913 TAGS) \
8ec98d6c
NN
19914 || exit 1
19915
d5eec917 19916@endif texinfo
8ec98d6c 19917
d5eec917
PB
19918.PHONY: maybe-install-info-texinfo install-info-texinfo
19919maybe-install-info-texinfo:
19920@if texinfo
19921maybe-install-info-texinfo: install-info-texinfo
8ec98d6c 19922
d5eec917
PB
19923install-info-texinfo: \
19924 configure-texinfo \
19925 info-texinfo
19926 @[ -f ./texinfo/Makefile ] || exit 0; \
8ec98d6c
NN
19927 r=`${PWD_COMMAND}`; export r; \
19928 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19929 $(SET_LIB_PATH) \
a675b75a 19930 $(HOST_EXPORTS) \
d5eec917 19931 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
19932 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19933 done; \
d5eec917 19934 echo "Doing install-info in texinfo" ; \
7fc2ca22 19935 (cd $(HOST_SUBDIR)/texinfo && \
8ec98d6c
NN
19936 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19937 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19938 "RANLIB=$${RANLIB}" \
19939 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 19940 install-info) \
8ec98d6c
NN
19941 || exit 1
19942
d5eec917 19943@endif texinfo
8ec98d6c 19944
d5eec917
PB
19945.PHONY: maybe-installcheck-texinfo installcheck-texinfo
19946maybe-installcheck-texinfo:
19947@if texinfo
19948maybe-installcheck-texinfo: installcheck-texinfo
8ec98d6c 19949
d5eec917
PB
19950installcheck-texinfo: \
19951 configure-texinfo
19952 @[ -f ./texinfo/Makefile ] || exit 0; \
8ec98d6c
NN
19953 r=`${PWD_COMMAND}`; export r; \
19954 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19955 $(SET_LIB_PATH) \
a675b75a 19956 $(HOST_EXPORTS) \
d5eec917 19957 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
19958 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19959 done; \
d5eec917 19960 echo "Doing installcheck in texinfo" ; \
7fc2ca22 19961 (cd $(HOST_SUBDIR)/texinfo && \
8ec98d6c
NN
19962 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19963 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19964 "RANLIB=$${RANLIB}" \
19965 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 19966 installcheck) \
8ec98d6c
NN
19967 || exit 1
19968
d5eec917 19969@endif texinfo
8ec98d6c 19970
d5eec917
PB
19971.PHONY: maybe-mostlyclean-texinfo mostlyclean-texinfo
19972maybe-mostlyclean-texinfo:
19973@if texinfo
19974maybe-mostlyclean-texinfo: mostlyclean-texinfo
8ec98d6c 19975
d5eec917
PB
19976mostlyclean-texinfo:
19977 @[ -f ./texinfo/Makefile ] || exit 0; \
8ec98d6c
NN
19978 r=`${PWD_COMMAND}`; export r; \
19979 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19980 $(SET_LIB_PATH) \
a675b75a 19981 $(HOST_EXPORTS) \
d5eec917 19982 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
19983 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19984 done; \
d5eec917 19985 echo "Doing mostlyclean in texinfo" ; \
7fc2ca22 19986 (cd $(HOST_SUBDIR)/texinfo && \
8ec98d6c
NN
19987 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19988 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19989 "RANLIB=$${RANLIB}" \
19990 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 19991 mostlyclean) \
8ec98d6c
NN
19992 || exit 1
19993
d5eec917 19994@endif texinfo
8ec98d6c 19995
d5eec917
PB
19996.PHONY: maybe-clean-texinfo clean-texinfo
19997maybe-clean-texinfo:
19998@if texinfo
19999maybe-clean-texinfo: clean-texinfo
8ec98d6c 20000
d5eec917
PB
20001clean-texinfo:
20002 @[ -f ./texinfo/Makefile ] || exit 0; \
8ec98d6c
NN
20003 r=`${PWD_COMMAND}`; export r; \
20004 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20005 $(SET_LIB_PATH) \
a675b75a 20006 $(HOST_EXPORTS) \
d5eec917 20007 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
20008 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20009 done; \
d5eec917 20010 echo "Doing clean in texinfo" ; \
7fc2ca22 20011 (cd $(HOST_SUBDIR)/texinfo && \
8ec98d6c
NN
20012 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20013 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20014 "RANLIB=$${RANLIB}" \
20015 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 20016 clean) \
8ec98d6c
NN
20017 || exit 1
20018
d5eec917 20019@endif texinfo
8ec98d6c 20020
d5eec917
PB
20021.PHONY: maybe-distclean-texinfo distclean-texinfo
20022maybe-distclean-texinfo:
20023@if texinfo
20024maybe-distclean-texinfo: distclean-texinfo
8ec98d6c 20025
d5eec917
PB
20026distclean-texinfo:
20027 @[ -f ./texinfo/Makefile ] || exit 0; \
8ec98d6c
NN
20028 r=`${PWD_COMMAND}`; export r; \
20029 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20030 $(SET_LIB_PATH) \
a675b75a 20031 $(HOST_EXPORTS) \
d5eec917 20032 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
20033 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20034 done; \
d5eec917 20035 echo "Doing distclean in texinfo" ; \
7fc2ca22 20036 (cd $(HOST_SUBDIR)/texinfo && \
8ec98d6c
NN
20037 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20038 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20039 "RANLIB=$${RANLIB}" \
20040 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 20041 distclean) \
8ec98d6c
NN
20042 || exit 1
20043
d5eec917 20044@endif texinfo
8ec98d6c 20045
d5eec917
PB
20046.PHONY: maybe-maintainer-clean-texinfo maintainer-clean-texinfo
20047maybe-maintainer-clean-texinfo:
20048@if texinfo
20049maybe-maintainer-clean-texinfo: maintainer-clean-texinfo
8ec98d6c 20050
d5eec917
PB
20051maintainer-clean-texinfo:
20052 @[ -f ./texinfo/Makefile ] || exit 0; \
8ec98d6c
NN
20053 r=`${PWD_COMMAND}`; export r; \
20054 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20055 $(SET_LIB_PATH) \
a675b75a 20056 $(HOST_EXPORTS) \
d5eec917 20057 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
20058 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20059 done; \
d5eec917 20060 echo "Doing maintainer-clean in texinfo" ; \
7fc2ca22 20061 (cd $(HOST_SUBDIR)/texinfo && \
8ec98d6c
NN
20062 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20063 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20064 "RANLIB=$${RANLIB}" \
20065 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 20066 maintainer-clean) \
8ec98d6c
NN
20067 || exit 1
20068
d5eec917 20069@endif texinfo
8ec98d6c
NN
20070
20071
d5eec917
PB
20072.PHONY: configure-textutils maybe-configure-textutils
20073maybe-configure-textutils:
20074@if textutils
20075maybe-configure-textutils: configure-textutils
20076configure-textutils:
7fc2ca22
PB
20077 @test ! -f $(HOST_SUBDIR)/textutils/Makefile || exit 0; \
20078 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/textutils ; \
5230d454
L
20079 r=`${PWD_COMMAND}`; export r; \
20080 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 20081 $(HOST_EXPORTS) \
d5eec917 20082 echo Configuring in textutils; \
7fc2ca22 20083 cd $(HOST_SUBDIR)/textutils || exit 1; \
94f860c0 20084 case $(srcdir) in \
7fc2ca22
PB
20085 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
20086 *) topdir=`echo $(HOST_SUBDIR)/textutils/ | \
20087 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 20088 esac; \
7fc2ca22
PB
20089 srcdiroption="--srcdir=$${topdir}/textutils"; \
20090 libsrcdir="$$s/textutils"; \
94f860c0 20091 $(SHELL) $${libsrcdir}/configure \
63673a5b 20092 $(HOST_CONFIGARGS) $${srcdiroption} \
94f860c0 20093 || exit 1
d5eec917 20094@endif textutils
94f860c0 20095
d5eec917
PB
20096.PHONY: all-textutils maybe-all-textutils
20097maybe-all-textutils:
20098@if textutils
5e6b1f07 20099TARGET-textutils=all
d5eec917
PB
20100maybe-all-textutils: all-textutils
20101all-textutils: configure-textutils
5230d454
L
20102 @r=`${PWD_COMMAND}`; export r; \
20103 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 20104 $(SET_LIB_PATH) \
a675b75a 20105 $(HOST_EXPORTS) \
7fc2ca22
PB
20106 (cd $(HOST_SUBDIR)/textutils && \
20107 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-textutils))
d5eec917 20108@endif textutils
8ecc6504 20109
d5eec917
PB
20110.PHONY: check-textutils maybe-check-textutils
20111maybe-check-textutils:
20112@if textutils
20113maybe-check-textutils: check-textutils
8ecc6504 20114
d5eec917 20115check-textutils:
5230d454
L
20116 @r=`${PWD_COMMAND}`; export r; \
20117 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 20118 $(SET_LIB_PATH) \
a675b75a 20119 $(HOST_EXPORTS) \
7fc2ca22
PB
20120 (cd $(HOST_SUBDIR)/textutils && \
20121 $(MAKE) $(FLAGS_TO_PASS) check)
8ecc6504 20122
d5eec917 20123@endif textutils
8ecc6504 20124
d5eec917
PB
20125.PHONY: install-textutils maybe-install-textutils
20126maybe-install-textutils:
20127@if textutils
20128maybe-install-textutils: install-textutils
70ffc148 20129
d5eec917 20130install-textutils: installdirs
5230d454
L
20131 @r=`${PWD_COMMAND}`; export r; \
20132 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 20133 $(SET_LIB_PATH) \
a675b75a 20134 $(HOST_EXPORTS) \
7fc2ca22 20135 (cd $(HOST_SUBDIR)/textutils && \
93c60b6d 20136 $(MAKE) $(FLAGS_TO_PASS) install)
8ecc6504 20137
d5eec917 20138@endif textutils
8ecc6504 20139
8ec98d6c
NN
20140# Other targets (info, dvi, etc.)
20141
d5eec917
PB
20142.PHONY: maybe-info-textutils info-textutils
20143maybe-info-textutils:
20144@if textutils
20145maybe-info-textutils: info-textutils
8ec98d6c 20146
d5eec917
PB
20147info-textutils: \
20148 configure-textutils
20149 @[ -f ./textutils/Makefile ] || exit 0; \
5230d454
L
20150 r=`${PWD_COMMAND}`; export r; \
20151 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8ec98d6c 20152 $(SET_LIB_PATH) \
a675b75a 20153 $(HOST_EXPORTS) \
d5eec917 20154 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
20155 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20156 done; \
d5eec917 20157 echo "Doing info in textutils" ; \
7fc2ca22 20158 (cd $(HOST_SUBDIR)/textutils && \
8ec98d6c
NN
20159 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20160 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20161 "RANLIB=$${RANLIB}" \
20162 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 20163 info) \
94f860c0
NN
20164 || exit 1
20165
d5eec917 20166@endif textutils
8ec98d6c 20167
d5eec917
PB
20168.PHONY: maybe-dvi-textutils dvi-textutils
20169maybe-dvi-textutils:
20170@if textutils
20171maybe-dvi-textutils: dvi-textutils
8ec98d6c 20172
d5eec917
PB
20173dvi-textutils: \
20174 configure-textutils
20175 @[ -f ./textutils/Makefile ] || exit 0; \
8ec98d6c 20176 r=`${PWD_COMMAND}`; export r; \
5230d454 20177 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 20178 $(SET_LIB_PATH) \
a675b75a 20179 $(HOST_EXPORTS) \
d5eec917 20180 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
20181 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20182 done; \
d5eec917 20183 echo "Doing dvi in textutils" ; \
7fc2ca22 20184 (cd $(HOST_SUBDIR)/textutils && \
8ec98d6c
NN
20185 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20186 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20187 "RANLIB=$${RANLIB}" \
20188 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 20189 dvi) \
8ec98d6c 20190 || exit 1
8ecc6504 20191
d5eec917 20192@endif textutils
8ecc6504 20193
b6fb961f
MS
20194.PHONY: maybe-html-textutils html-textutils
20195maybe-html-textutils:
20196@if textutils
20197maybe-html-textutils: html-textutils
20198
20199html-textutils: \
20200 configure-textutils
20201 @[ -f ./textutils/Makefile ] || exit 0; \
20202 r=`${PWD_COMMAND}`; export r; \
20203 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20204 $(SET_LIB_PATH) \
20205 $(HOST_EXPORTS) \
20206 for flag in $(EXTRA_HOST_FLAGS) ; do \
20207 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20208 done; \
20209 echo "Doing html in textutils" ; \
7fc2ca22 20210 (cd $(HOST_SUBDIR)/textutils && \
b6fb961f
MS
20211 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20212 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20213 "RANLIB=$${RANLIB}" \
20214 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20215 html) \
20216 || exit 1
20217
20218@endif textutils
20219
d5eec917
PB
20220.PHONY: maybe-TAGS-textutils TAGS-textutils
20221maybe-TAGS-textutils:
20222@if textutils
20223maybe-TAGS-textutils: TAGS-textutils
8ec98d6c 20224
d5eec917
PB
20225TAGS-textutils: \
20226 configure-textutils
20227 @[ -f ./textutils/Makefile ] || exit 0; \
8ec98d6c 20228 r=`${PWD_COMMAND}`; export r; \
5230d454 20229 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 20230 $(SET_LIB_PATH) \
a675b75a 20231 $(HOST_EXPORTS) \
d5eec917 20232 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
20233 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20234 done; \
d5eec917 20235 echo "Doing TAGS in textutils" ; \
7fc2ca22 20236 (cd $(HOST_SUBDIR)/textutils && \
8ec98d6c
NN
20237 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20238 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20239 "RANLIB=$${RANLIB}" \
20240 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 20241 TAGS) \
8ec98d6c 20242 || exit 1
8ecc6504 20243
d5eec917 20244@endif textutils
8ecc6504 20245
d5eec917
PB
20246.PHONY: maybe-install-info-textutils install-info-textutils
20247maybe-install-info-textutils:
20248@if textutils
20249maybe-install-info-textutils: install-info-textutils
8ec98d6c 20250
d5eec917
PB
20251install-info-textutils: \
20252 configure-textutils \
20253 info-textutils
20254 @[ -f ./textutils/Makefile ] || exit 0; \
8ec98d6c
NN
20255 r=`${PWD_COMMAND}`; export r; \
20256 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20257 $(SET_LIB_PATH) \
a675b75a 20258 $(HOST_EXPORTS) \
d5eec917 20259 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
20260 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20261 done; \
d5eec917 20262 echo "Doing install-info in textutils" ; \
7fc2ca22 20263 (cd $(HOST_SUBDIR)/textutils && \
8ec98d6c
NN
20264 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20265 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20266 "RANLIB=$${RANLIB}" \
20267 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 20268 install-info) \
8ec98d6c
NN
20269 || exit 1
20270
d5eec917 20271@endif textutils
8ec98d6c 20272
d5eec917
PB
20273.PHONY: maybe-installcheck-textutils installcheck-textutils
20274maybe-installcheck-textutils:
20275@if textutils
20276maybe-installcheck-textutils: installcheck-textutils
8ec98d6c 20277
d5eec917
PB
20278installcheck-textutils: \
20279 configure-textutils
20280 @[ -f ./textutils/Makefile ] || exit 0; \
8ec98d6c
NN
20281 r=`${PWD_COMMAND}`; export r; \
20282 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20283 $(SET_LIB_PATH) \
a675b75a 20284 $(HOST_EXPORTS) \
d5eec917 20285 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
20286 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20287 done; \
d5eec917 20288 echo "Doing installcheck in textutils" ; \
7fc2ca22 20289 (cd $(HOST_SUBDIR)/textutils && \
8ec98d6c
NN
20290 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20291 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20292 "RANLIB=$${RANLIB}" \
20293 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 20294 installcheck) \
8ec98d6c
NN
20295 || exit 1
20296
d5eec917 20297@endif textutils
8ec98d6c 20298
d5eec917
PB
20299.PHONY: maybe-mostlyclean-textutils mostlyclean-textutils
20300maybe-mostlyclean-textutils:
20301@if textutils
20302maybe-mostlyclean-textutils: mostlyclean-textutils
8ec98d6c 20303
d5eec917
PB
20304mostlyclean-textutils:
20305 @[ -f ./textutils/Makefile ] || exit 0; \
8ec98d6c
NN
20306 r=`${PWD_COMMAND}`; export r; \
20307 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20308 $(SET_LIB_PATH) \
a675b75a 20309 $(HOST_EXPORTS) \
d5eec917 20310 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
20311 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20312 done; \
d5eec917 20313 echo "Doing mostlyclean in textutils" ; \
7fc2ca22 20314 (cd $(HOST_SUBDIR)/textutils && \
8ec98d6c
NN
20315 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20316 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20317 "RANLIB=$${RANLIB}" \
20318 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 20319 mostlyclean) \
8ec98d6c
NN
20320 || exit 1
20321
d5eec917 20322@endif textutils
8ec98d6c 20323
d5eec917
PB
20324.PHONY: maybe-clean-textutils clean-textutils
20325maybe-clean-textutils:
20326@if textutils
20327maybe-clean-textutils: clean-textutils
8ec98d6c 20328
d5eec917
PB
20329clean-textutils:
20330 @[ -f ./textutils/Makefile ] || exit 0; \
8ec98d6c
NN
20331 r=`${PWD_COMMAND}`; export r; \
20332 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20333 $(SET_LIB_PATH) \
a675b75a 20334 $(HOST_EXPORTS) \
d5eec917 20335 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
20336 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20337 done; \
d5eec917 20338 echo "Doing clean in textutils" ; \
7fc2ca22 20339 (cd $(HOST_SUBDIR)/textutils && \
8ec98d6c
NN
20340 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20341 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20342 "RANLIB=$${RANLIB}" \
20343 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 20344 clean) \
8ec98d6c
NN
20345 || exit 1
20346
d5eec917 20347@endif textutils
8ec98d6c 20348
d5eec917
PB
20349.PHONY: maybe-distclean-textutils distclean-textutils
20350maybe-distclean-textutils:
20351@if textutils
20352maybe-distclean-textutils: distclean-textutils
8ec98d6c 20353
d5eec917
PB
20354distclean-textutils:
20355 @[ -f ./textutils/Makefile ] || exit 0; \
8ec98d6c
NN
20356 r=`${PWD_COMMAND}`; export r; \
20357 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20358 $(SET_LIB_PATH) \
a675b75a 20359 $(HOST_EXPORTS) \
d5eec917 20360 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
20361 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20362 done; \
d5eec917 20363 echo "Doing distclean in textutils" ; \
7fc2ca22 20364 (cd $(HOST_SUBDIR)/textutils && \
8ec98d6c
NN
20365 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20366 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20367 "RANLIB=$${RANLIB}" \
20368 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 20369 distclean) \
8ec98d6c
NN
20370 || exit 1
20371
d5eec917 20372@endif textutils
8ec98d6c 20373
d5eec917
PB
20374.PHONY: maybe-maintainer-clean-textutils maintainer-clean-textutils
20375maybe-maintainer-clean-textutils:
20376@if textutils
20377maybe-maintainer-clean-textutils: maintainer-clean-textutils
70ffc148 20378
d5eec917
PB
20379maintainer-clean-textutils:
20380 @[ -f ./textutils/Makefile ] || exit 0; \
8ec98d6c 20381 r=`${PWD_COMMAND}`; export r; \
5230d454 20382 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 20383 $(SET_LIB_PATH) \
a675b75a 20384 $(HOST_EXPORTS) \
d5eec917 20385 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
20386 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20387 done; \
d5eec917 20388 echo "Doing maintainer-clean in textutils" ; \
7fc2ca22 20389 (cd $(HOST_SUBDIR)/textutils && \
8ec98d6c
NN
20390 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20391 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20392 "RANLIB=$${RANLIB}" \
20393 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 20394 maintainer-clean) \
8ec98d6c 20395 || exit 1
8ecc6504 20396
d5eec917 20397@endif textutils
8ecc6504 20398
8ec98d6c 20399
d5eec917
PB
20400.PHONY: configure-time maybe-configure-time
20401maybe-configure-time:
20402@if time
20403maybe-configure-time: configure-time
20404configure-time:
7fc2ca22
PB
20405 @test ! -f $(HOST_SUBDIR)/time/Makefile || exit 0; \
20406 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/time ; \
5230d454
L
20407 r=`${PWD_COMMAND}`; export r; \
20408 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 20409 $(HOST_EXPORTS) \
d5eec917 20410 echo Configuring in time; \
7fc2ca22 20411 cd $(HOST_SUBDIR)/time || exit 1; \
94f860c0 20412 case $(srcdir) in \
7fc2ca22
PB
20413 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
20414 *) topdir=`echo $(HOST_SUBDIR)/time/ | \
20415 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 20416 esac; \
7fc2ca22
PB
20417 srcdiroption="--srcdir=$${topdir}/time"; \
20418 libsrcdir="$$s/time"; \
94f860c0 20419 $(SHELL) $${libsrcdir}/configure \
63673a5b 20420 $(HOST_CONFIGARGS) $${srcdiroption} \
94f860c0 20421 || exit 1
d5eec917 20422@endif time
94f860c0 20423
d5eec917
PB
20424.PHONY: all-time maybe-all-time
20425maybe-all-time:
20426@if time
5e6b1f07 20427TARGET-time=all
d5eec917
PB
20428maybe-all-time: all-time
20429all-time: configure-time
5230d454
L
20430 @r=`${PWD_COMMAND}`; export r; \
20431 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 20432 $(SET_LIB_PATH) \
a675b75a 20433 $(HOST_EXPORTS) \
7fc2ca22
PB
20434 (cd $(HOST_SUBDIR)/time && \
20435 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-time))
d5eec917 20436@endif time
8ecc6504 20437
d5eec917
PB
20438.PHONY: check-time maybe-check-time
20439maybe-check-time:
20440@if time
20441maybe-check-time: check-time
8ecc6504 20442
d5eec917 20443check-time:
5230d454
L
20444 @r=`${PWD_COMMAND}`; export r; \
20445 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 20446 $(SET_LIB_PATH) \
a675b75a 20447 $(HOST_EXPORTS) \
7fc2ca22
PB
20448 (cd $(HOST_SUBDIR)/time && \
20449 $(MAKE) $(FLAGS_TO_PASS) check)
8ecc6504 20450
d5eec917 20451@endif time
8ecc6504 20452
d5eec917
PB
20453.PHONY: install-time maybe-install-time
20454maybe-install-time:
20455@if time
20456maybe-install-time: install-time
8ec98d6c 20457
d5eec917 20458install-time: installdirs
8ec98d6c
NN
20459 @r=`${PWD_COMMAND}`; export r; \
20460 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20461 $(SET_LIB_PATH) \
a675b75a 20462 $(HOST_EXPORTS) \
7fc2ca22 20463 (cd $(HOST_SUBDIR)/time && \
93c60b6d 20464 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 20465
d5eec917 20466@endif time
8ec98d6c
NN
20467
20468# Other targets (info, dvi, etc.)
20469
d5eec917
PB
20470.PHONY: maybe-info-time info-time
20471maybe-info-time:
20472@if time
20473maybe-info-time: info-time
8ec98d6c 20474
d5eec917
PB
20475info-time: \
20476 configure-time
20477 @[ -f ./time/Makefile ] || exit 0; \
8ec98d6c
NN
20478 r=`${PWD_COMMAND}`; export r; \
20479 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20480 $(SET_LIB_PATH) \
a675b75a 20481 $(HOST_EXPORTS) \
d5eec917 20482 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
20483 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20484 done; \
d5eec917 20485 echo "Doing info in time" ; \
7fc2ca22 20486 (cd $(HOST_SUBDIR)/time && \
8ec98d6c
NN
20487 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20488 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20489 "RANLIB=$${RANLIB}" \
20490 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 20491 info) \
8ec98d6c
NN
20492 || exit 1
20493
d5eec917 20494@endif time
8ec98d6c 20495
d5eec917
PB
20496.PHONY: maybe-dvi-time dvi-time
20497maybe-dvi-time:
20498@if time
20499maybe-dvi-time: dvi-time
8ec98d6c 20500
d5eec917
PB
20501dvi-time: \
20502 configure-time
20503 @[ -f ./time/Makefile ] || exit 0; \
8ec98d6c
NN
20504 r=`${PWD_COMMAND}`; export r; \
20505 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20506 $(SET_LIB_PATH) \
a675b75a 20507 $(HOST_EXPORTS) \
d5eec917 20508 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
20509 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20510 done; \
d5eec917 20511 echo "Doing dvi in time" ; \
7fc2ca22 20512 (cd $(HOST_SUBDIR)/time && \
8ec98d6c
NN
20513 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20514 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20515 "RANLIB=$${RANLIB}" \
20516 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 20517 dvi) \
8ec98d6c
NN
20518 || exit 1
20519
d5eec917 20520@endif time
8ec98d6c 20521
b6fb961f
MS
20522.PHONY: maybe-html-time html-time
20523maybe-html-time:
20524@if time
20525maybe-html-time: html-time
20526
20527html-time: \
20528 configure-time
20529 @[ -f ./time/Makefile ] || exit 0; \
20530 r=`${PWD_COMMAND}`; export r; \
20531 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20532 $(SET_LIB_PATH) \
20533 $(HOST_EXPORTS) \
20534 for flag in $(EXTRA_HOST_FLAGS) ; do \
20535 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20536 done; \
20537 echo "Doing html in time" ; \
7fc2ca22 20538 (cd $(HOST_SUBDIR)/time && \
b6fb961f
MS
20539 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20540 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20541 "RANLIB=$${RANLIB}" \
20542 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20543 html) \
20544 || exit 1
20545
20546@endif time
20547
d5eec917
PB
20548.PHONY: maybe-TAGS-time TAGS-time
20549maybe-TAGS-time:
20550@if time
20551maybe-TAGS-time: TAGS-time
8ec98d6c 20552
d5eec917
PB
20553TAGS-time: \
20554 configure-time
20555 @[ -f ./time/Makefile ] || exit 0; \
8ec98d6c
NN
20556 r=`${PWD_COMMAND}`; export r; \
20557 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20558 $(SET_LIB_PATH) \
a675b75a 20559 $(HOST_EXPORTS) \
d5eec917 20560 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
20561 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20562 done; \
d5eec917 20563 echo "Doing TAGS in time" ; \
7fc2ca22 20564 (cd $(HOST_SUBDIR)/time && \
8ec98d6c
NN
20565 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20566 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20567 "RANLIB=$${RANLIB}" \
20568 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 20569 TAGS) \
8ec98d6c
NN
20570 || exit 1
20571
d5eec917 20572@endif time
8ec98d6c 20573
d5eec917
PB
20574.PHONY: maybe-install-info-time install-info-time
20575maybe-install-info-time:
20576@if time
20577maybe-install-info-time: install-info-time
8ec98d6c 20578
d5eec917
PB
20579install-info-time: \
20580 configure-time \
20581 info-time
20582 @[ -f ./time/Makefile ] || exit 0; \
8ec98d6c
NN
20583 r=`${PWD_COMMAND}`; export r; \
20584 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20585 $(SET_LIB_PATH) \
a675b75a 20586 $(HOST_EXPORTS) \
d5eec917 20587 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
20588 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20589 done; \
d5eec917 20590 echo "Doing install-info in time" ; \
7fc2ca22 20591 (cd $(HOST_SUBDIR)/time && \
8ec98d6c
NN
20592 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20593 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20594 "RANLIB=$${RANLIB}" \
20595 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 20596 install-info) \
8ec98d6c
NN
20597 || exit 1
20598
d5eec917 20599@endif time
8ec98d6c 20600
d5eec917
PB
20601.PHONY: maybe-installcheck-time installcheck-time
20602maybe-installcheck-time:
20603@if time
20604maybe-installcheck-time: installcheck-time
8ec98d6c 20605
d5eec917
PB
20606installcheck-time: \
20607 configure-time
20608 @[ -f ./time/Makefile ] || exit 0; \
8ec98d6c
NN
20609 r=`${PWD_COMMAND}`; export r; \
20610 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20611 $(SET_LIB_PATH) \
a675b75a 20612 $(HOST_EXPORTS) \
d5eec917 20613 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
20614 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20615 done; \
d5eec917 20616 echo "Doing installcheck in time" ; \
7fc2ca22 20617 (cd $(HOST_SUBDIR)/time && \
8ec98d6c
NN
20618 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20619 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20620 "RANLIB=$${RANLIB}" \
20621 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 20622 installcheck) \
8ec98d6c
NN
20623 || exit 1
20624
d5eec917 20625@endif time
8ec98d6c 20626
d5eec917
PB
20627.PHONY: maybe-mostlyclean-time mostlyclean-time
20628maybe-mostlyclean-time:
20629@if time
20630maybe-mostlyclean-time: mostlyclean-time
8ec98d6c 20631
d5eec917
PB
20632mostlyclean-time:
20633 @[ -f ./time/Makefile ] || exit 0; \
8ec98d6c
NN
20634 r=`${PWD_COMMAND}`; export r; \
20635 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20636 $(SET_LIB_PATH) \
a675b75a 20637 $(HOST_EXPORTS) \
d5eec917 20638 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
20639 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20640 done; \
d5eec917 20641 echo "Doing mostlyclean in time" ; \
7fc2ca22 20642 (cd $(HOST_SUBDIR)/time && \
8ec98d6c
NN
20643 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20644 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20645 "RANLIB=$${RANLIB}" \
20646 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 20647 mostlyclean) \
8ec98d6c
NN
20648 || exit 1
20649
d5eec917 20650@endif time
8ec98d6c 20651
d5eec917
PB
20652.PHONY: maybe-clean-time clean-time
20653maybe-clean-time:
20654@if time
20655maybe-clean-time: clean-time
8ec98d6c 20656
d5eec917
PB
20657clean-time:
20658 @[ -f ./time/Makefile ] || exit 0; \
8ec98d6c
NN
20659 r=`${PWD_COMMAND}`; export r; \
20660 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20661 $(SET_LIB_PATH) \
a675b75a 20662 $(HOST_EXPORTS) \
d5eec917 20663 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
20664 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20665 done; \
d5eec917 20666 echo "Doing clean in time" ; \
7fc2ca22 20667 (cd $(HOST_SUBDIR)/time && \
8ec98d6c
NN
20668 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20669 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20670 "RANLIB=$${RANLIB}" \
20671 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 20672 clean) \
8ec98d6c
NN
20673 || exit 1
20674
d5eec917 20675@endif time
8ec98d6c 20676
d5eec917
PB
20677.PHONY: maybe-distclean-time distclean-time
20678maybe-distclean-time:
20679@if time
20680maybe-distclean-time: distclean-time
8ec98d6c 20681
d5eec917
PB
20682distclean-time:
20683 @[ -f ./time/Makefile ] || exit 0; \
8ec98d6c
NN
20684 r=`${PWD_COMMAND}`; export r; \
20685 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20686 $(SET_LIB_PATH) \
a675b75a 20687 $(HOST_EXPORTS) \
d5eec917 20688 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
20689 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20690 done; \
d5eec917 20691 echo "Doing distclean in time" ; \
7fc2ca22 20692 (cd $(HOST_SUBDIR)/time && \
8ec98d6c
NN
20693 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20694 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20695 "RANLIB=$${RANLIB}" \
20696 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 20697 distclean) \
8ec98d6c
NN
20698 || exit 1
20699
d5eec917 20700@endif time
8ec98d6c 20701
d5eec917
PB
20702.PHONY: maybe-maintainer-clean-time maintainer-clean-time
20703maybe-maintainer-clean-time:
20704@if time
20705maybe-maintainer-clean-time: maintainer-clean-time
8ec98d6c 20706
d5eec917
PB
20707maintainer-clean-time:
20708 @[ -f ./time/Makefile ] || exit 0; \
8ec98d6c
NN
20709 r=`${PWD_COMMAND}`; export r; \
20710 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20711 $(SET_LIB_PATH) \
a675b75a 20712 $(HOST_EXPORTS) \
d5eec917 20713 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
20714 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20715 done; \
d5eec917 20716 echo "Doing maintainer-clean in time" ; \
7fc2ca22 20717 (cd $(HOST_SUBDIR)/time && \
8ec98d6c
NN
20718 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20719 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20720 "RANLIB=$${RANLIB}" \
20721 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 20722 maintainer-clean) \
8ec98d6c 20723 || exit 1
70ffc148 20724
d5eec917 20725@endif time
8ecc6504
NN
20726
20727
d5eec917
PB
20728.PHONY: configure-uudecode maybe-configure-uudecode
20729maybe-configure-uudecode:
20730@if uudecode
20731maybe-configure-uudecode: configure-uudecode
20732configure-uudecode:
7fc2ca22
PB
20733 @test ! -f $(HOST_SUBDIR)/uudecode/Makefile || exit 0; \
20734 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/uudecode ; \
5230d454
L
20735 r=`${PWD_COMMAND}`; export r; \
20736 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 20737 $(HOST_EXPORTS) \
d5eec917 20738 echo Configuring in uudecode; \
7fc2ca22 20739 cd $(HOST_SUBDIR)/uudecode || exit 1; \
94f860c0 20740 case $(srcdir) in \
7fc2ca22
PB
20741 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
20742 *) topdir=`echo $(HOST_SUBDIR)/uudecode/ | \
20743 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 20744 esac; \
7fc2ca22
PB
20745 srcdiroption="--srcdir=$${topdir}/uudecode"; \
20746 libsrcdir="$$s/uudecode"; \
94f860c0 20747 $(SHELL) $${libsrcdir}/configure \
63673a5b 20748 $(HOST_CONFIGARGS) $${srcdiroption} \
94f860c0 20749 || exit 1
d5eec917 20750@endif uudecode
94f860c0 20751
d5eec917
PB
20752.PHONY: all-uudecode maybe-all-uudecode
20753maybe-all-uudecode:
20754@if uudecode
5e6b1f07 20755TARGET-uudecode=all
d5eec917
PB
20756maybe-all-uudecode: all-uudecode
20757all-uudecode: configure-uudecode
5230d454
L
20758 @r=`${PWD_COMMAND}`; export r; \
20759 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 20760 $(SET_LIB_PATH) \
a675b75a 20761 $(HOST_EXPORTS) \
7fc2ca22
PB
20762 (cd $(HOST_SUBDIR)/uudecode && \
20763 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-uudecode))
d5eec917 20764@endif uudecode
8ecc6504 20765
d5eec917
PB
20766.PHONY: check-uudecode maybe-check-uudecode
20767maybe-check-uudecode:
20768@if uudecode
20769maybe-check-uudecode: check-uudecode
8ecc6504 20770
d5eec917 20771check-uudecode:
5230d454
L
20772 @r=`${PWD_COMMAND}`; export r; \
20773 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 20774 $(SET_LIB_PATH) \
a675b75a 20775 $(HOST_EXPORTS) \
7fc2ca22
PB
20776 (cd $(HOST_SUBDIR)/uudecode && \
20777 $(MAKE) $(FLAGS_TO_PASS) check)
8ecc6504 20778
d5eec917 20779@endif uudecode
8ecc6504 20780
d5eec917
PB
20781.PHONY: install-uudecode maybe-install-uudecode
20782maybe-install-uudecode:
20783@if uudecode
20784maybe-install-uudecode: install-uudecode
8ec98d6c 20785
d5eec917 20786install-uudecode: installdirs
8ec98d6c
NN
20787 @r=`${PWD_COMMAND}`; export r; \
20788 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20789 $(SET_LIB_PATH) \
a675b75a 20790 $(HOST_EXPORTS) \
7fc2ca22 20791 (cd $(HOST_SUBDIR)/uudecode && \
93c60b6d 20792 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 20793
d5eec917 20794@endif uudecode
8ec98d6c
NN
20795
20796# Other targets (info, dvi, etc.)
20797
d5eec917
PB
20798.PHONY: maybe-info-uudecode info-uudecode
20799maybe-info-uudecode:
20800@if uudecode
20801maybe-info-uudecode: info-uudecode
8ec98d6c 20802
d5eec917
PB
20803info-uudecode: \
20804 configure-uudecode
20805 @[ -f ./uudecode/Makefile ] || exit 0; \
8ec98d6c
NN
20806 r=`${PWD_COMMAND}`; export r; \
20807 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20808 $(SET_LIB_PATH) \
a675b75a 20809 $(HOST_EXPORTS) \
d5eec917 20810 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
20811 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20812 done; \
d5eec917 20813 echo "Doing info in uudecode" ; \
7fc2ca22 20814 (cd $(HOST_SUBDIR)/uudecode && \
8ec98d6c
NN
20815 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20816 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20817 "RANLIB=$${RANLIB}" \
20818 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 20819 info) \
8ec98d6c
NN
20820 || exit 1
20821
d5eec917 20822@endif uudecode
8ec98d6c 20823
d5eec917
PB
20824.PHONY: maybe-dvi-uudecode dvi-uudecode
20825maybe-dvi-uudecode:
20826@if uudecode
20827maybe-dvi-uudecode: dvi-uudecode
8ec98d6c 20828
d5eec917
PB
20829dvi-uudecode: \
20830 configure-uudecode
20831 @[ -f ./uudecode/Makefile ] || exit 0; \
8ec98d6c
NN
20832 r=`${PWD_COMMAND}`; export r; \
20833 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20834 $(SET_LIB_PATH) \
a675b75a 20835 $(HOST_EXPORTS) \
d5eec917 20836 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
20837 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20838 done; \
d5eec917 20839 echo "Doing dvi in uudecode" ; \
7fc2ca22 20840 (cd $(HOST_SUBDIR)/uudecode && \
8ec98d6c
NN
20841 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20842 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20843 "RANLIB=$${RANLIB}" \
20844 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 20845 dvi) \
8ec98d6c
NN
20846 || exit 1
20847
d5eec917 20848@endif uudecode
8ec98d6c 20849
b6fb961f
MS
20850.PHONY: maybe-html-uudecode html-uudecode
20851maybe-html-uudecode:
20852@if uudecode
20853maybe-html-uudecode: html-uudecode
20854
20855html-uudecode: \
20856 configure-uudecode
20857 @[ -f ./uudecode/Makefile ] || exit 0; \
20858 r=`${PWD_COMMAND}`; export r; \
20859 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20860 $(SET_LIB_PATH) \
20861 $(HOST_EXPORTS) \
20862 for flag in $(EXTRA_HOST_FLAGS) ; do \
20863 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20864 done; \
20865 echo "Doing html in uudecode" ; \
7fc2ca22 20866 (cd $(HOST_SUBDIR)/uudecode && \
b6fb961f
MS
20867 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20868 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20869 "RANLIB=$${RANLIB}" \
20870 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20871 html) \
20872 || exit 1
20873
20874@endif uudecode
20875
d5eec917
PB
20876.PHONY: maybe-TAGS-uudecode TAGS-uudecode
20877maybe-TAGS-uudecode:
20878@if uudecode
20879maybe-TAGS-uudecode: TAGS-uudecode
8ec98d6c 20880
d5eec917
PB
20881TAGS-uudecode: \
20882 configure-uudecode
20883 @[ -f ./uudecode/Makefile ] || exit 0; \
20884 r=`${PWD_COMMAND}`; export r; \
8ec98d6c
NN
20885 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20886 $(SET_LIB_PATH) \
a675b75a 20887 $(HOST_EXPORTS) \
d5eec917 20888 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
20889 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20890 done; \
d5eec917 20891 echo "Doing TAGS in uudecode" ; \
7fc2ca22 20892 (cd $(HOST_SUBDIR)/uudecode && \
8ec98d6c
NN
20893 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20894 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20895 "RANLIB=$${RANLIB}" \
20896 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 20897 TAGS) \
8ec98d6c
NN
20898 || exit 1
20899
d5eec917 20900@endif uudecode
8ec98d6c 20901
d5eec917
PB
20902.PHONY: maybe-install-info-uudecode install-info-uudecode
20903maybe-install-info-uudecode:
20904@if uudecode
20905maybe-install-info-uudecode: install-info-uudecode
8ec98d6c 20906
d5eec917
PB
20907install-info-uudecode: \
20908 configure-uudecode \
20909 info-uudecode
20910 @[ -f ./uudecode/Makefile ] || exit 0; \
8ec98d6c
NN
20911 r=`${PWD_COMMAND}`; export r; \
20912 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20913 $(SET_LIB_PATH) \
a675b75a 20914 $(HOST_EXPORTS) \
d5eec917 20915 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
20916 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20917 done; \
d5eec917 20918 echo "Doing install-info in uudecode" ; \
7fc2ca22 20919 (cd $(HOST_SUBDIR)/uudecode && \
8ec98d6c
NN
20920 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20921 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20922 "RANLIB=$${RANLIB}" \
20923 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 20924 install-info) \
8ec98d6c
NN
20925 || exit 1
20926
d5eec917 20927@endif uudecode
8ec98d6c 20928
d5eec917
PB
20929.PHONY: maybe-installcheck-uudecode installcheck-uudecode
20930maybe-installcheck-uudecode:
20931@if uudecode
20932maybe-installcheck-uudecode: installcheck-uudecode
8ec98d6c 20933
d5eec917
PB
20934installcheck-uudecode: \
20935 configure-uudecode
20936 @[ -f ./uudecode/Makefile ] || exit 0; \
8ec98d6c
NN
20937 r=`${PWD_COMMAND}`; export r; \
20938 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20939 $(SET_LIB_PATH) \
a675b75a 20940 $(HOST_EXPORTS) \
d5eec917 20941 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
20942 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20943 done; \
d5eec917 20944 echo "Doing installcheck in uudecode" ; \
7fc2ca22 20945 (cd $(HOST_SUBDIR)/uudecode && \
8ec98d6c
NN
20946 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20947 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20948 "RANLIB=$${RANLIB}" \
20949 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 20950 installcheck) \
8ec98d6c
NN
20951 || exit 1
20952
d5eec917 20953@endif uudecode
8ec98d6c 20954
d5eec917
PB
20955.PHONY: maybe-mostlyclean-uudecode mostlyclean-uudecode
20956maybe-mostlyclean-uudecode:
20957@if uudecode
20958maybe-mostlyclean-uudecode: mostlyclean-uudecode
8ec98d6c 20959
d5eec917
PB
20960mostlyclean-uudecode:
20961 @[ -f ./uudecode/Makefile ] || exit 0; \
8ec98d6c
NN
20962 r=`${PWD_COMMAND}`; export r; \
20963 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20964 $(SET_LIB_PATH) \
a675b75a 20965 $(HOST_EXPORTS) \
d5eec917 20966 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
20967 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20968 done; \
d5eec917 20969 echo "Doing mostlyclean in uudecode" ; \
7fc2ca22 20970 (cd $(HOST_SUBDIR)/uudecode && \
8ec98d6c
NN
20971 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20972 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20973 "RANLIB=$${RANLIB}" \
20974 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 20975 mostlyclean) \
8ec98d6c
NN
20976 || exit 1
20977
d5eec917 20978@endif uudecode
8ec98d6c 20979
d5eec917
PB
20980.PHONY: maybe-clean-uudecode clean-uudecode
20981maybe-clean-uudecode:
20982@if uudecode
20983maybe-clean-uudecode: clean-uudecode
8ec98d6c 20984
d5eec917
PB
20985clean-uudecode:
20986 @[ -f ./uudecode/Makefile ] || exit 0; \
8ec98d6c
NN
20987 r=`${PWD_COMMAND}`; export r; \
20988 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20989 $(SET_LIB_PATH) \
a675b75a 20990 $(HOST_EXPORTS) \
d5eec917 20991 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
20992 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20993 done; \
d5eec917 20994 echo "Doing clean in uudecode" ; \
7fc2ca22 20995 (cd $(HOST_SUBDIR)/uudecode && \
8ec98d6c
NN
20996 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20997 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20998 "RANLIB=$${RANLIB}" \
20999 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 21000 clean) \
8ec98d6c
NN
21001 || exit 1
21002
d5eec917 21003@endif uudecode
8ec98d6c 21004
d5eec917
PB
21005.PHONY: maybe-distclean-uudecode distclean-uudecode
21006maybe-distclean-uudecode:
21007@if uudecode
21008maybe-distclean-uudecode: distclean-uudecode
8ec98d6c 21009
d5eec917
PB
21010distclean-uudecode:
21011 @[ -f ./uudecode/Makefile ] || exit 0; \
8ec98d6c
NN
21012 r=`${PWD_COMMAND}`; export r; \
21013 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21014 $(SET_LIB_PATH) \
a675b75a 21015 $(HOST_EXPORTS) \
d5eec917 21016 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
21017 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21018 done; \
d5eec917 21019 echo "Doing distclean in uudecode" ; \
7fc2ca22 21020 (cd $(HOST_SUBDIR)/uudecode && \
8ec98d6c
NN
21021 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21022 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21023 "RANLIB=$${RANLIB}" \
21024 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 21025 distclean) \
8ec98d6c
NN
21026 || exit 1
21027
d5eec917 21028@endif uudecode
8ec98d6c 21029
d5eec917
PB
21030.PHONY: maybe-maintainer-clean-uudecode maintainer-clean-uudecode
21031maybe-maintainer-clean-uudecode:
21032@if uudecode
21033maybe-maintainer-clean-uudecode: maintainer-clean-uudecode
8ec98d6c 21034
d5eec917
PB
21035maintainer-clean-uudecode:
21036 @[ -f ./uudecode/Makefile ] || exit 0; \
8ec98d6c
NN
21037 r=`${PWD_COMMAND}`; export r; \
21038 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21039 $(SET_LIB_PATH) \
a675b75a 21040 $(HOST_EXPORTS) \
d5eec917 21041 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
21042 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21043 done; \
d5eec917 21044 echo "Doing maintainer-clean in uudecode" ; \
7fc2ca22 21045 (cd $(HOST_SUBDIR)/uudecode && \
8ec98d6c
NN
21046 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21047 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21048 "RANLIB=$${RANLIB}" \
21049 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 21050 maintainer-clean) \
8ec98d6c 21051 || exit 1
70ffc148 21052
d5eec917 21053@endif uudecode
8ecc6504
NN
21054
21055
d5eec917
PB
21056.PHONY: configure-wdiff maybe-configure-wdiff
21057maybe-configure-wdiff:
21058@if wdiff
21059maybe-configure-wdiff: configure-wdiff
21060configure-wdiff:
7fc2ca22
PB
21061 @test ! -f $(HOST_SUBDIR)/wdiff/Makefile || exit 0; \
21062 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/wdiff ; \
5230d454
L
21063 r=`${PWD_COMMAND}`; export r; \
21064 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 21065 $(HOST_EXPORTS) \
d5eec917 21066 echo Configuring in wdiff; \
7fc2ca22 21067 cd $(HOST_SUBDIR)/wdiff || exit 1; \
94f860c0 21068 case $(srcdir) in \
7fc2ca22
PB
21069 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
21070 *) topdir=`echo $(HOST_SUBDIR)/wdiff/ | \
21071 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 21072 esac; \
7fc2ca22
PB
21073 srcdiroption="--srcdir=$${topdir}/wdiff"; \
21074 libsrcdir="$$s/wdiff"; \
94f860c0 21075 $(SHELL) $${libsrcdir}/configure \
63673a5b 21076 $(HOST_CONFIGARGS) $${srcdiroption} \
94f860c0 21077 || exit 1
d5eec917 21078@endif wdiff
94f860c0 21079
d5eec917
PB
21080.PHONY: all-wdiff maybe-all-wdiff
21081maybe-all-wdiff:
21082@if wdiff
5e6b1f07 21083TARGET-wdiff=all
d5eec917
PB
21084maybe-all-wdiff: all-wdiff
21085all-wdiff: configure-wdiff
5230d454
L
21086 @r=`${PWD_COMMAND}`; export r; \
21087 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 21088 $(SET_LIB_PATH) \
a675b75a 21089 $(HOST_EXPORTS) \
7fc2ca22
PB
21090 (cd $(HOST_SUBDIR)/wdiff && \
21091 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-wdiff))
d5eec917 21092@endif wdiff
8ecc6504 21093
d5eec917
PB
21094.PHONY: check-wdiff maybe-check-wdiff
21095maybe-check-wdiff:
21096@if wdiff
21097maybe-check-wdiff: check-wdiff
8ecc6504 21098
d5eec917
PB
21099check-wdiff:
21100 @r=`${PWD_COMMAND}`; export r; \
21101 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21102 $(SET_LIB_PATH) \
21103 $(HOST_EXPORTS) \
7fc2ca22
PB
21104 (cd $(HOST_SUBDIR)/wdiff && \
21105 $(MAKE) $(FLAGS_TO_PASS) check)
8ec98d6c 21106
d5eec917 21107@endif wdiff
8ec98d6c 21108
d5eec917
PB
21109.PHONY: install-wdiff maybe-install-wdiff
21110maybe-install-wdiff:
21111@if wdiff
21112maybe-install-wdiff: install-wdiff
8ec98d6c 21113
d5eec917 21114install-wdiff: installdirs
5230d454
L
21115 @r=`${PWD_COMMAND}`; export r; \
21116 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 21117 $(SET_LIB_PATH) \
a675b75a 21118 $(HOST_EXPORTS) \
7fc2ca22 21119 (cd $(HOST_SUBDIR)/wdiff && \
93c60b6d 21120 $(MAKE) $(FLAGS_TO_PASS) install)
8ecc6504 21121
d5eec917 21122@endif wdiff
8ecc6504 21123
8ec98d6c 21124# Other targets (info, dvi, etc.)
70ffc148 21125
d5eec917
PB
21126.PHONY: maybe-info-wdiff info-wdiff
21127maybe-info-wdiff:
21128@if wdiff
21129maybe-info-wdiff: info-wdiff
8ec98d6c 21130
d5eec917
PB
21131info-wdiff: \
21132 configure-wdiff
21133 @[ -f ./wdiff/Makefile ] || exit 0; \
8ec98d6c 21134 r=`${PWD_COMMAND}`; export r; \
5230d454 21135 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 21136 $(SET_LIB_PATH) \
a675b75a 21137 $(HOST_EXPORTS) \
d5eec917 21138 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
21139 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21140 done; \
d5eec917 21141 echo "Doing info in wdiff" ; \
7fc2ca22 21142 (cd $(HOST_SUBDIR)/wdiff && \
8ec98d6c
NN
21143 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21144 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21145 "RANLIB=$${RANLIB}" \
21146 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 21147 info) \
8ec98d6c 21148 || exit 1
8ecc6504 21149
d5eec917 21150@endif wdiff
8ecc6504 21151
d5eec917
PB
21152.PHONY: maybe-dvi-wdiff dvi-wdiff
21153maybe-dvi-wdiff:
21154@if wdiff
21155maybe-dvi-wdiff: dvi-wdiff
8ec98d6c 21156
d5eec917
PB
21157dvi-wdiff: \
21158 configure-wdiff
21159 @[ -f ./wdiff/Makefile ] || exit 0; \
8ec98d6c
NN
21160 r=`${PWD_COMMAND}`; export r; \
21161 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21162 $(SET_LIB_PATH) \
a675b75a 21163 $(HOST_EXPORTS) \
d5eec917 21164 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
21165 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21166 done; \
d5eec917 21167 echo "Doing dvi in wdiff" ; \
7fc2ca22 21168 (cd $(HOST_SUBDIR)/wdiff && \
8ec98d6c
NN
21169 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21170 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21171 "RANLIB=$${RANLIB}" \
21172 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 21173 dvi) \
8ec98d6c
NN
21174 || exit 1
21175
d5eec917 21176@endif wdiff
8ec98d6c 21177
b6fb961f
MS
21178.PHONY: maybe-html-wdiff html-wdiff
21179maybe-html-wdiff:
21180@if wdiff
21181maybe-html-wdiff: html-wdiff
21182
21183html-wdiff: \
21184 configure-wdiff
21185 @[ -f ./wdiff/Makefile ] || exit 0; \
21186 r=`${PWD_COMMAND}`; export r; \
21187 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21188 $(SET_LIB_PATH) \
21189 $(HOST_EXPORTS) \
21190 for flag in $(EXTRA_HOST_FLAGS) ; do \
21191 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21192 done; \
21193 echo "Doing html in wdiff" ; \
7fc2ca22 21194 (cd $(HOST_SUBDIR)/wdiff && \
b6fb961f
MS
21195 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21196 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21197 "RANLIB=$${RANLIB}" \
21198 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21199 html) \
21200 || exit 1
21201
21202@endif wdiff
21203
d5eec917
PB
21204.PHONY: maybe-TAGS-wdiff TAGS-wdiff
21205maybe-TAGS-wdiff:
21206@if wdiff
21207maybe-TAGS-wdiff: TAGS-wdiff
8ec98d6c 21208
d5eec917
PB
21209TAGS-wdiff: \
21210 configure-wdiff
21211 @[ -f ./wdiff/Makefile ] || exit 0; \
8ec98d6c
NN
21212 r=`${PWD_COMMAND}`; export r; \
21213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21214 $(SET_LIB_PATH) \
a675b75a 21215 $(HOST_EXPORTS) \
d5eec917 21216 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
21217 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21218 done; \
d5eec917 21219 echo "Doing TAGS in wdiff" ; \
7fc2ca22 21220 (cd $(HOST_SUBDIR)/wdiff && \
8ec98d6c
NN
21221 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21222 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21223 "RANLIB=$${RANLIB}" \
21224 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 21225 TAGS) \
8ec98d6c
NN
21226 || exit 1
21227
d5eec917 21228@endif wdiff
8ec98d6c 21229
d5eec917
PB
21230.PHONY: maybe-install-info-wdiff install-info-wdiff
21231maybe-install-info-wdiff:
21232@if wdiff
21233maybe-install-info-wdiff: install-info-wdiff
8ec98d6c 21234
d5eec917
PB
21235install-info-wdiff: \
21236 configure-wdiff \
21237 info-wdiff
21238 @[ -f ./wdiff/Makefile ] || exit 0; \
8ec98d6c
NN
21239 r=`${PWD_COMMAND}`; export r; \
21240 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21241 $(SET_LIB_PATH) \
a675b75a 21242 $(HOST_EXPORTS) \
d5eec917 21243 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
21244 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21245 done; \
d5eec917 21246 echo "Doing install-info in wdiff" ; \
7fc2ca22 21247 (cd $(HOST_SUBDIR)/wdiff && \
8ec98d6c
NN
21248 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21249 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21250 "RANLIB=$${RANLIB}" \
21251 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 21252 install-info) \
8ec98d6c
NN
21253 || exit 1
21254
d5eec917 21255@endif wdiff
8ec98d6c 21256
d5eec917
PB
21257.PHONY: maybe-installcheck-wdiff installcheck-wdiff
21258maybe-installcheck-wdiff:
21259@if wdiff
21260maybe-installcheck-wdiff: installcheck-wdiff
8ec98d6c 21261
d5eec917
PB
21262installcheck-wdiff: \
21263 configure-wdiff
21264 @[ -f ./wdiff/Makefile ] || exit 0; \
8ec98d6c
NN
21265 r=`${PWD_COMMAND}`; export r; \
21266 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21267 $(SET_LIB_PATH) \
a675b75a 21268 $(HOST_EXPORTS) \
d5eec917 21269 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
21270 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21271 done; \
d5eec917 21272 echo "Doing installcheck in wdiff" ; \
7fc2ca22 21273 (cd $(HOST_SUBDIR)/wdiff && \
8ec98d6c
NN
21274 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21275 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21276 "RANLIB=$${RANLIB}" \
21277 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 21278 installcheck) \
8ec98d6c
NN
21279 || exit 1
21280
d5eec917 21281@endif wdiff
8ec98d6c 21282
d5eec917
PB
21283.PHONY: maybe-mostlyclean-wdiff mostlyclean-wdiff
21284maybe-mostlyclean-wdiff:
21285@if wdiff
21286maybe-mostlyclean-wdiff: mostlyclean-wdiff
8ec98d6c 21287
d5eec917
PB
21288mostlyclean-wdiff:
21289 @[ -f ./wdiff/Makefile ] || exit 0; \
8ec98d6c
NN
21290 r=`${PWD_COMMAND}`; export r; \
21291 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21292 $(SET_LIB_PATH) \
a675b75a 21293 $(HOST_EXPORTS) \
d5eec917 21294 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
21295 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21296 done; \
d5eec917 21297 echo "Doing mostlyclean in wdiff" ; \
7fc2ca22 21298 (cd $(HOST_SUBDIR)/wdiff && \
8ec98d6c
NN
21299 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21300 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21301 "RANLIB=$${RANLIB}" \
21302 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 21303 mostlyclean) \
8ec98d6c
NN
21304 || exit 1
21305
d5eec917 21306@endif wdiff
8ec98d6c 21307
d5eec917
PB
21308.PHONY: maybe-clean-wdiff clean-wdiff
21309maybe-clean-wdiff:
21310@if wdiff
21311maybe-clean-wdiff: clean-wdiff
8ec98d6c 21312
d5eec917
PB
21313clean-wdiff:
21314 @[ -f ./wdiff/Makefile ] || exit 0; \
8ec98d6c
NN
21315 r=`${PWD_COMMAND}`; export r; \
21316 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21317 $(SET_LIB_PATH) \
a675b75a 21318 $(HOST_EXPORTS) \
d5eec917 21319 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
21320 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21321 done; \
d5eec917 21322 echo "Doing clean in wdiff" ; \
7fc2ca22 21323 (cd $(HOST_SUBDIR)/wdiff && \
8ec98d6c
NN
21324 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21325 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21326 "RANLIB=$${RANLIB}" \
21327 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 21328 clean) \
8ec98d6c
NN
21329 || exit 1
21330
d5eec917 21331@endif wdiff
8ec98d6c 21332
d5eec917
PB
21333.PHONY: maybe-distclean-wdiff distclean-wdiff
21334maybe-distclean-wdiff:
21335@if wdiff
21336maybe-distclean-wdiff: distclean-wdiff
8ec98d6c 21337
d5eec917
PB
21338distclean-wdiff:
21339 @[ -f ./wdiff/Makefile ] || exit 0; \
8ec98d6c
NN
21340 r=`${PWD_COMMAND}`; export r; \
21341 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21342 $(SET_LIB_PATH) \
a675b75a 21343 $(HOST_EXPORTS) \
d5eec917 21344 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
21345 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21346 done; \
d5eec917 21347 echo "Doing distclean in wdiff" ; \
7fc2ca22 21348 (cd $(HOST_SUBDIR)/wdiff && \
8ec98d6c
NN
21349 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21350 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21351 "RANLIB=$${RANLIB}" \
21352 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 21353 distclean) \
8ec98d6c
NN
21354 || exit 1
21355
d5eec917 21356@endif wdiff
8ec98d6c 21357
d5eec917
PB
21358.PHONY: maybe-maintainer-clean-wdiff maintainer-clean-wdiff
21359maybe-maintainer-clean-wdiff:
21360@if wdiff
21361maybe-maintainer-clean-wdiff: maintainer-clean-wdiff
8ec98d6c 21362
d5eec917
PB
21363maintainer-clean-wdiff:
21364 @[ -f ./wdiff/Makefile ] || exit 0; \
8ec98d6c
NN
21365 r=`${PWD_COMMAND}`; export r; \
21366 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21367 $(SET_LIB_PATH) \
a675b75a 21368 $(HOST_EXPORTS) \
d5eec917 21369 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
21370 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21371 done; \
d5eec917 21372 echo "Doing maintainer-clean in wdiff" ; \
7fc2ca22 21373 (cd $(HOST_SUBDIR)/wdiff && \
8ec98d6c
NN
21374 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21375 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21376 "RANLIB=$${RANLIB}" \
21377 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 21378 maintainer-clean) \
8ec98d6c
NN
21379 || exit 1
21380
d5eec917 21381@endif wdiff
8ec98d6c
NN
21382
21383
d5eec917
PB
21384.PHONY: configure-zip maybe-configure-zip
21385maybe-configure-zip:
21386@if zip
21387maybe-configure-zip: configure-zip
21388configure-zip:
7fc2ca22
PB
21389 @test ! -f $(HOST_SUBDIR)/zip/Makefile || exit 0; \
21390 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zip ; \
5230d454
L
21391 r=`${PWD_COMMAND}`; export r; \
21392 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 21393 $(HOST_EXPORTS) \
d5eec917 21394 echo Configuring in zip; \
7fc2ca22 21395 cd $(HOST_SUBDIR)/zip || exit 1; \
94f860c0 21396 case $(srcdir) in \
7fc2ca22
PB
21397 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
21398 *) topdir=`echo $(HOST_SUBDIR)/zip/ | \
21399 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 21400 esac; \
7fc2ca22
PB
21401 srcdiroption="--srcdir=$${topdir}/zip"; \
21402 libsrcdir="$$s/zip"; \
94f860c0 21403 $(SHELL) $${libsrcdir}/configure \
63673a5b 21404 $(HOST_CONFIGARGS) $${srcdiroption} \
94f860c0 21405 || exit 1
d5eec917 21406@endif zip
94f860c0 21407
d5eec917
PB
21408.PHONY: all-zip maybe-all-zip
21409maybe-all-zip:
21410@if zip
5e6b1f07 21411TARGET-zip=all
d5eec917
PB
21412maybe-all-zip: all-zip
21413all-zip: configure-zip
5230d454
L
21414 @r=`${PWD_COMMAND}`; export r; \
21415 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 21416 $(SET_LIB_PATH) \
a675b75a 21417 $(HOST_EXPORTS) \
7fc2ca22
PB
21418 (cd $(HOST_SUBDIR)/zip && \
21419 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-zip))
d5eec917 21420@endif zip
8ecc6504 21421
d5eec917
PB
21422.PHONY: check-zip maybe-check-zip
21423maybe-check-zip:
21424@if zip
21425maybe-check-zip: check-zip
8ecc6504 21426
d5eec917
PB
21427# This module is only tested in a native toolchain.
21428check-zip:
21429 @if [ '$(host)' = '$(target)' ] ; then \
21430 r=`${PWD_COMMAND}`; export r; \
21431 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21432 $(SET_LIB_PATH) \
21433 $(HOST_EXPORTS) \
7fc2ca22 21434 (cd $(HOST_SUBDIR)/zip && \
80e4c577 21435 $(MAKE) $(FLAGS_TO_PASS) check); \
d5eec917 21436 fi
8ec98d6c 21437
d5eec917 21438@endif zip
8ec98d6c 21439
d5eec917
PB
21440.PHONY: install-zip maybe-install-zip
21441maybe-install-zip:
21442@if zip
21443maybe-install-zip: install-zip
8ec98d6c 21444
d5eec917
PB
21445install-zip: installdirs
21446 @r=`${PWD_COMMAND}`; export r; \
21447 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21448 $(SET_LIB_PATH) \
21449 $(HOST_EXPORTS) \
7fc2ca22 21450 (cd $(HOST_SUBDIR)/zip && \
93c60b6d 21451 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 21452
d5eec917 21453@endif zip
8ec98d6c
NN
21454
21455# Other targets (info, dvi, etc.)
21456
d5eec917
PB
21457.PHONY: maybe-info-zip info-zip
21458maybe-info-zip:
21459@if zip
21460maybe-info-zip: info-zip
8ec98d6c 21461
d5eec917
PB
21462info-zip: \
21463 configure-zip
21464 @[ -f ./zip/Makefile ] || exit 0; \
8ec98d6c 21465 r=`${PWD_COMMAND}`; export r; \
5230d454 21466 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 21467 $(SET_LIB_PATH) \
a675b75a 21468 $(HOST_EXPORTS) \
d5eec917 21469 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
21470 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21471 done; \
d5eec917 21472 echo "Doing info in zip" ; \
7fc2ca22 21473 (cd $(HOST_SUBDIR)/zip && \
8ec98d6c
NN
21474 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21475 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21476 "RANLIB=$${RANLIB}" \
21477 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 21478 info) \
8ec98d6c 21479 || exit 1
8ecc6504 21480
d5eec917 21481@endif zip
8ecc6504 21482
d5eec917
PB
21483.PHONY: maybe-dvi-zip dvi-zip
21484maybe-dvi-zip:
21485@if zip
21486maybe-dvi-zip: dvi-zip
70ffc148 21487
d5eec917
PB
21488dvi-zip: \
21489 configure-zip
21490 @[ -f ./zip/Makefile ] || exit 0; \
8ec98d6c 21491 r=`${PWD_COMMAND}`; export r; \
5230d454 21492 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 21493 $(SET_LIB_PATH) \
a675b75a 21494 $(HOST_EXPORTS) \
d5eec917 21495 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
21496 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21497 done; \
d5eec917 21498 echo "Doing dvi in zip" ; \
7fc2ca22 21499 (cd $(HOST_SUBDIR)/zip && \
8ec98d6c
NN
21500 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21501 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21502 "RANLIB=$${RANLIB}" \
21503 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 21504 dvi) \
8ec98d6c 21505 || exit 1
8ecc6504 21506
d5eec917 21507@endif zip
8ecc6504 21508
b6fb961f
MS
21509.PHONY: maybe-html-zip html-zip
21510maybe-html-zip:
21511@if zip
21512maybe-html-zip: html-zip
21513
21514html-zip: \
21515 configure-zip
21516 @[ -f ./zip/Makefile ] || exit 0; \
21517 r=`${PWD_COMMAND}`; export r; \
21518 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21519 $(SET_LIB_PATH) \
21520 $(HOST_EXPORTS) \
21521 for flag in $(EXTRA_HOST_FLAGS) ; do \
21522 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21523 done; \
21524 echo "Doing html in zip" ; \
7fc2ca22 21525 (cd $(HOST_SUBDIR)/zip && \
b6fb961f
MS
21526 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21527 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21528 "RANLIB=$${RANLIB}" \
21529 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21530 html) \
21531 || exit 1
21532
21533@endif zip
21534
d5eec917
PB
21535.PHONY: maybe-TAGS-zip TAGS-zip
21536maybe-TAGS-zip:
21537@if zip
21538maybe-TAGS-zip: TAGS-zip
8ec98d6c 21539
d5eec917
PB
21540TAGS-zip: \
21541 configure-zip
21542 @[ -f ./zip/Makefile ] || exit 0; \
5230d454
L
21543 r=`${PWD_COMMAND}`; export r; \
21544 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8ec98d6c 21545 $(SET_LIB_PATH) \
a675b75a 21546 $(HOST_EXPORTS) \
d5eec917 21547 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
21548 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21549 done; \
d5eec917 21550 echo "Doing TAGS in zip" ; \
7fc2ca22 21551 (cd $(HOST_SUBDIR)/zip && \
8ec98d6c
NN
21552 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21553 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21554 "RANLIB=$${RANLIB}" \
21555 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 21556 TAGS) \
94f860c0
NN
21557 || exit 1
21558
d5eec917 21559@endif zip
8ec98d6c 21560
d5eec917
PB
21561.PHONY: maybe-install-info-zip install-info-zip
21562maybe-install-info-zip:
21563@if zip
21564maybe-install-info-zip: install-info-zip
8ec98d6c 21565
d5eec917
PB
21566install-info-zip: \
21567 configure-zip \
21568 info-zip
21569 @[ -f ./zip/Makefile ] || exit 0; \
8ec98d6c 21570 r=`${PWD_COMMAND}`; export r; \
5230d454 21571 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 21572 $(SET_LIB_PATH) \
a675b75a 21573 $(HOST_EXPORTS) \
d5eec917 21574 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
21575 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21576 done; \
d5eec917 21577 echo "Doing install-info in zip" ; \
7fc2ca22 21578 (cd $(HOST_SUBDIR)/zip && \
8ec98d6c
NN
21579 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21580 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21581 "RANLIB=$${RANLIB}" \
21582 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 21583 install-info) \
8ec98d6c 21584 || exit 1
8ecc6504 21585
d5eec917 21586@endif zip
8ecc6504 21587
d5eec917
PB
21588.PHONY: maybe-installcheck-zip installcheck-zip
21589maybe-installcheck-zip:
21590@if zip
21591maybe-installcheck-zip: installcheck-zip
8ec98d6c 21592
d5eec917
PB
21593installcheck-zip: \
21594 configure-zip
21595 @[ -f ./zip/Makefile ] || exit 0; \
8ec98d6c 21596 r=`${PWD_COMMAND}`; export r; \
5230d454 21597 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 21598 $(SET_LIB_PATH) \
a675b75a 21599 $(HOST_EXPORTS) \
d5eec917 21600 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
21601 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21602 done; \
d5eec917 21603 echo "Doing installcheck in zip" ; \
7fc2ca22 21604 (cd $(HOST_SUBDIR)/zip && \
8ec98d6c
NN
21605 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21606 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21607 "RANLIB=$${RANLIB}" \
21608 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 21609 installcheck) \
8ec98d6c 21610 || exit 1
8ecc6504 21611
d5eec917 21612@endif zip
8ecc6504 21613
d5eec917
PB
21614.PHONY: maybe-mostlyclean-zip mostlyclean-zip
21615maybe-mostlyclean-zip:
21616@if zip
21617maybe-mostlyclean-zip: mostlyclean-zip
70ffc148 21618
d5eec917
PB
21619mostlyclean-zip:
21620 @[ -f ./zip/Makefile ] || exit 0; \
8ec98d6c
NN
21621 r=`${PWD_COMMAND}`; export r; \
21622 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21623 $(SET_LIB_PATH) \
a675b75a 21624 $(HOST_EXPORTS) \
d5eec917 21625 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
21626 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21627 done; \
d5eec917 21628 echo "Doing mostlyclean in zip" ; \
7fc2ca22 21629 (cd $(HOST_SUBDIR)/zip && \
8ec98d6c
NN
21630 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21631 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21632 "RANLIB=$${RANLIB}" \
21633 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 21634 mostlyclean) \
8ec98d6c
NN
21635 || exit 1
21636
d5eec917 21637@endif zip
8ec98d6c 21638
d5eec917
PB
21639.PHONY: maybe-clean-zip clean-zip
21640maybe-clean-zip:
21641@if zip
21642maybe-clean-zip: clean-zip
8ec98d6c 21643
d5eec917
PB
21644clean-zip:
21645 @[ -f ./zip/Makefile ] || exit 0; \
8ec98d6c
NN
21646 r=`${PWD_COMMAND}`; export r; \
21647 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21648 $(SET_LIB_PATH) \
a675b75a 21649 $(HOST_EXPORTS) \
d5eec917 21650 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
21651 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21652 done; \
d5eec917 21653 echo "Doing clean in zip" ; \
7fc2ca22 21654 (cd $(HOST_SUBDIR)/zip && \
8ec98d6c
NN
21655 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21656 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21657 "RANLIB=$${RANLIB}" \
21658 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 21659 clean) \
8ec98d6c
NN
21660 || exit 1
21661
d5eec917 21662@endif zip
8ec98d6c 21663
d5eec917
PB
21664.PHONY: maybe-distclean-zip distclean-zip
21665maybe-distclean-zip:
21666@if zip
21667maybe-distclean-zip: distclean-zip
8ec98d6c 21668
d5eec917
PB
21669distclean-zip:
21670 @[ -f ./zip/Makefile ] || exit 0; \
8ec98d6c
NN
21671 r=`${PWD_COMMAND}`; export r; \
21672 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21673 $(SET_LIB_PATH) \
a675b75a 21674 $(HOST_EXPORTS) \
d5eec917 21675 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
21676 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21677 done; \
d5eec917 21678 echo "Doing distclean in zip" ; \
7fc2ca22 21679 (cd $(HOST_SUBDIR)/zip && \
8ec98d6c
NN
21680 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21681 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21682 "RANLIB=$${RANLIB}" \
21683 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 21684 distclean) \
8ec98d6c
NN
21685 || exit 1
21686
d5eec917 21687@endif zip
8ec98d6c 21688
d5eec917
PB
21689.PHONY: maybe-maintainer-clean-zip maintainer-clean-zip
21690maybe-maintainer-clean-zip:
21691@if zip
21692maybe-maintainer-clean-zip: maintainer-clean-zip
8ec98d6c 21693
d5eec917
PB
21694maintainer-clean-zip:
21695 @[ -f ./zip/Makefile ] || exit 0; \
8ec98d6c 21696 r=`${PWD_COMMAND}`; export r; \
5230d454 21697 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 21698 $(SET_LIB_PATH) \
a675b75a 21699 $(HOST_EXPORTS) \
d5eec917 21700 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
21701 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21702 done; \
d5eec917 21703 echo "Doing maintainer-clean in zip" ; \
7fc2ca22 21704 (cd $(HOST_SUBDIR)/zip && \
8ec98d6c
NN
21705 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21706 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21707 "RANLIB=$${RANLIB}" \
21708 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 21709 maintainer-clean) \
8ec98d6c 21710 || exit 1
8ecc6504 21711
d5eec917 21712@endif zip
8ecc6504 21713
8ec98d6c 21714
d5eec917
PB
21715.PHONY: configure-zlib maybe-configure-zlib
21716maybe-configure-zlib:
21717@if zlib
21718maybe-configure-zlib: configure-zlib
21719configure-zlib:
6a19fd82 21720 @test -f stage_last && exit 0; \
7fc2ca22
PB
21721 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
21722 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
5230d454
L
21723 r=`${PWD_COMMAND}`; export r; \
21724 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 21725 $(HOST_EXPORTS) \
d5eec917 21726 echo Configuring in zlib; \
7fc2ca22 21727 cd $(HOST_SUBDIR)/zlib || exit 1; \
94f860c0 21728 case $(srcdir) in \
7fc2ca22
PB
21729 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
21730 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
21731 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 21732 esac; \
7fc2ca22
PB
21733 srcdiroption="--srcdir=$${topdir}/zlib"; \
21734 libsrcdir="$$s/zlib"; \
94f860c0 21735 $(SHELL) $${libsrcdir}/configure \
63673a5b 21736 $(HOST_CONFIGARGS) $${srcdiroption} \
94f860c0 21737 || exit 1
d5eec917 21738@endif zlib
94f860c0 21739
d5eec917
PB
21740.PHONY: all-zlib maybe-all-zlib
21741maybe-all-zlib:
21742@if zlib
5e6b1f07 21743TARGET-zlib=all
d5eec917
PB
21744maybe-all-zlib: all-zlib
21745all-zlib: configure-zlib
6a19fd82
PB
21746 @test -f stage_last && exit 0; \
21747 r=`${PWD_COMMAND}`; export r; \
5230d454 21748 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 21749 $(SET_LIB_PATH) \
a675b75a 21750 $(HOST_EXPORTS) \
7fc2ca22
PB
21751 (cd $(HOST_SUBDIR)/zlib && \
21752 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-zlib))
d5eec917 21753@endif zlib
8ecc6504 21754
d5eec917
PB
21755.PHONY: check-zlib maybe-check-zlib
21756maybe-check-zlib:
21757@if zlib
21758maybe-check-zlib: check-zlib
8ecc6504 21759
d5eec917 21760check-zlib:
8ecc6504 21761
d5eec917 21762@endif zlib
8ecc6504 21763
d5eec917
PB
21764.PHONY: install-zlib maybe-install-zlib
21765maybe-install-zlib:
21766@if zlib
21767maybe-install-zlib: install-zlib
8ec98d6c 21768
d5eec917 21769install-zlib:
8ec98d6c 21770
d5eec917 21771@endif zlib
8ec98d6c
NN
21772
21773# Other targets (info, dvi, etc.)
21774
d5eec917
PB
21775.PHONY: maybe-info-zlib info-zlib
21776maybe-info-zlib:
21777@if zlib
21778maybe-info-zlib: info-zlib
8ec98d6c 21779
b6fb961f
MS
21780info-zlib: \
21781 configure-zlib
21782 @[ -f ./zlib/Makefile ] || exit 0; \
21783 r=`${PWD_COMMAND}`; export r; \
21784 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21785 $(SET_LIB_PATH) \
21786 $(HOST_EXPORTS) \
21787 for flag in $(EXTRA_HOST_FLAGS) ; do \
21788 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21789 done; \
21790 echo "Doing info in zlib" ; \
7fc2ca22 21791 (cd $(HOST_SUBDIR)/zlib && \
b6fb961f
MS
21792 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21793 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21794 "RANLIB=$${RANLIB}" \
21795 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21796 info) \
21797 || exit 1
21798
21799@endif zlib
21800
21801.PHONY: maybe-dvi-zlib dvi-zlib
21802maybe-dvi-zlib:
21803@if zlib
21804maybe-dvi-zlib: dvi-zlib
21805
21806dvi-zlib: \
d5eec917
PB
21807 configure-zlib
21808 @[ -f ./zlib/Makefile ] || exit 0; \
8ec98d6c
NN
21809 r=`${PWD_COMMAND}`; export r; \
21810 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21811 $(SET_LIB_PATH) \
a675b75a 21812 $(HOST_EXPORTS) \
d5eec917 21813 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
21814 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21815 done; \
b6fb961f 21816 echo "Doing dvi in zlib" ; \
7fc2ca22 21817 (cd $(HOST_SUBDIR)/zlib && \
8ec98d6c
NN
21818 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21819 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21820 "RANLIB=$${RANLIB}" \
21821 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b6fb961f 21822 dvi) \
8ec98d6c
NN
21823 || exit 1
21824
d5eec917 21825@endif zlib
8ec98d6c 21826
b6fb961f
MS
21827.PHONY: maybe-html-zlib html-zlib
21828maybe-html-zlib:
d5eec917 21829@if zlib
b6fb961f 21830maybe-html-zlib: html-zlib
8ec98d6c 21831
b6fb961f 21832html-zlib: \
d5eec917
PB
21833 configure-zlib
21834 @[ -f ./zlib/Makefile ] || exit 0; \
8ec98d6c
NN
21835 r=`${PWD_COMMAND}`; export r; \
21836 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21837 $(SET_LIB_PATH) \
a675b75a 21838 $(HOST_EXPORTS) \
d5eec917 21839 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
21840 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21841 done; \
b6fb961f 21842 echo "Doing html in zlib" ; \
7fc2ca22 21843 (cd $(HOST_SUBDIR)/zlib && \
8ec98d6c
NN
21844 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21845 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21846 "RANLIB=$${RANLIB}" \
21847 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b6fb961f 21848 html) \
8ec98d6c
NN
21849 || exit 1
21850
d5eec917 21851@endif zlib
8ec98d6c 21852
d5eec917
PB
21853.PHONY: maybe-TAGS-zlib TAGS-zlib
21854maybe-TAGS-zlib:
21855@if zlib
21856maybe-TAGS-zlib: TAGS-zlib
8ec98d6c 21857
d5eec917
PB
21858TAGS-zlib: \
21859 configure-zlib
21860 @[ -f ./zlib/Makefile ] || exit 0; \
8ec98d6c
NN
21861 r=`${PWD_COMMAND}`; export r; \
21862 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21863 $(SET_LIB_PATH) \
a675b75a 21864 $(HOST_EXPORTS) \
d5eec917 21865 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
21866 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21867 done; \
d5eec917 21868 echo "Doing TAGS in zlib" ; \
7fc2ca22 21869 (cd $(HOST_SUBDIR)/zlib && \
8ec98d6c
NN
21870 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21871 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21872 "RANLIB=$${RANLIB}" \
21873 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 21874 TAGS) \
8ec98d6c
NN
21875 || exit 1
21876
d5eec917 21877@endif zlib
8ec98d6c 21878
d5eec917
PB
21879.PHONY: maybe-install-info-zlib install-info-zlib
21880maybe-install-info-zlib:
21881@if zlib
21882maybe-install-info-zlib: install-info-zlib
8ec98d6c 21883
d5eec917
PB
21884install-info-zlib: \
21885 configure-zlib \
21886 info-zlib
21887 @[ -f ./zlib/Makefile ] || exit 0; \
8ec98d6c
NN
21888 r=`${PWD_COMMAND}`; export r; \
21889 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21890 $(SET_LIB_PATH) \
a675b75a 21891 $(HOST_EXPORTS) \
d5eec917 21892 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
21893 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21894 done; \
d5eec917 21895 echo "Doing install-info in zlib" ; \
7fc2ca22 21896 (cd $(HOST_SUBDIR)/zlib && \
8ec98d6c
NN
21897 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21898 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21899 "RANLIB=$${RANLIB}" \
21900 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 21901 install-info) \
8ec98d6c
NN
21902 || exit 1
21903
d5eec917 21904@endif zlib
8ec98d6c 21905
d5eec917
PB
21906.PHONY: maybe-installcheck-zlib installcheck-zlib
21907maybe-installcheck-zlib:
21908@if zlib
21909maybe-installcheck-zlib: installcheck-zlib
8ec98d6c 21910
d5eec917
PB
21911installcheck-zlib: \
21912 configure-zlib
21913 @[ -f ./zlib/Makefile ] || exit 0; \
8ec98d6c
NN
21914 r=`${PWD_COMMAND}`; export r; \
21915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21916 $(SET_LIB_PATH) \
a675b75a 21917 $(HOST_EXPORTS) \
d5eec917 21918 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
21919 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21920 done; \
d5eec917 21921 echo "Doing installcheck in zlib" ; \
7fc2ca22 21922 (cd $(HOST_SUBDIR)/zlib && \
8ec98d6c
NN
21923 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21924 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21925 "RANLIB=$${RANLIB}" \
21926 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 21927 installcheck) \
8ec98d6c
NN
21928 || exit 1
21929
d5eec917 21930@endif zlib
8ec98d6c 21931
d5eec917
PB
21932.PHONY: maybe-mostlyclean-zlib mostlyclean-zlib
21933maybe-mostlyclean-zlib:
21934@if zlib
21935maybe-mostlyclean-zlib: mostlyclean-zlib
8ec98d6c 21936
d5eec917
PB
21937mostlyclean-zlib:
21938 @[ -f ./zlib/Makefile ] || exit 0; \
8ec98d6c
NN
21939 r=`${PWD_COMMAND}`; export r; \
21940 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21941 $(SET_LIB_PATH) \
a675b75a 21942 $(HOST_EXPORTS) \
d5eec917 21943 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
21944 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21945 done; \
d5eec917 21946 echo "Doing mostlyclean in zlib" ; \
7fc2ca22 21947 (cd $(HOST_SUBDIR)/zlib && \
8ec98d6c
NN
21948 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21949 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21950 "RANLIB=$${RANLIB}" \
21951 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 21952 mostlyclean) \
8ec98d6c
NN
21953 || exit 1
21954
d5eec917 21955@endif zlib
8ec98d6c 21956
d5eec917
PB
21957.PHONY: maybe-clean-zlib clean-zlib
21958maybe-clean-zlib:
21959@if zlib
21960maybe-clean-zlib: clean-zlib
8ec98d6c 21961
d5eec917
PB
21962clean-zlib:
21963 @[ -f ./zlib/Makefile ] || exit 0; \
8ec98d6c
NN
21964 r=`${PWD_COMMAND}`; export r; \
21965 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21966 $(SET_LIB_PATH) \
a675b75a 21967 $(HOST_EXPORTS) \
d5eec917 21968 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
21969 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21970 done; \
d5eec917 21971 echo "Doing clean in zlib" ; \
7fc2ca22 21972 (cd $(HOST_SUBDIR)/zlib && \
8ec98d6c
NN
21973 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21974 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21975 "RANLIB=$${RANLIB}" \
21976 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 21977 clean) \
8ec98d6c
NN
21978 || exit 1
21979
d5eec917 21980@endif zlib
8ec98d6c 21981
d5eec917
PB
21982.PHONY: maybe-distclean-zlib distclean-zlib
21983maybe-distclean-zlib:
21984@if zlib
21985maybe-distclean-zlib: distclean-zlib
8ec98d6c 21986
d5eec917
PB
21987distclean-zlib:
21988 @[ -f ./zlib/Makefile ] || exit 0; \
8ec98d6c
NN
21989 r=`${PWD_COMMAND}`; export r; \
21990 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21991 $(SET_LIB_PATH) \
a675b75a 21992 $(HOST_EXPORTS) \
d5eec917 21993 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
21994 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21995 done; \
d5eec917 21996 echo "Doing distclean in zlib" ; \
7fc2ca22 21997 (cd $(HOST_SUBDIR)/zlib && \
8ec98d6c
NN
21998 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21999 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22000 "RANLIB=$${RANLIB}" \
22001 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 22002 distclean) \
8ec98d6c
NN
22003 || exit 1
22004
d5eec917 22005@endif zlib
8ec98d6c 22006
d5eec917
PB
22007.PHONY: maybe-maintainer-clean-zlib maintainer-clean-zlib
22008maybe-maintainer-clean-zlib:
22009@if zlib
22010maybe-maintainer-clean-zlib: maintainer-clean-zlib
8ec98d6c 22011
d5eec917
PB
22012maintainer-clean-zlib:
22013 @[ -f ./zlib/Makefile ] || exit 0; \
8ec98d6c
NN
22014 r=`${PWD_COMMAND}`; export r; \
22015 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22016 $(SET_LIB_PATH) \
a675b75a 22017 $(HOST_EXPORTS) \
d5eec917 22018 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
22019 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22020 done; \
d5eec917 22021 echo "Doing maintainer-clean in zlib" ; \
7fc2ca22 22022 (cd $(HOST_SUBDIR)/zlib && \
8ec98d6c
NN
22023 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22024 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22025 "RANLIB=$${RANLIB}" \
22026 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 22027 maintainer-clean) \
8ec98d6c 22028 || exit 1
70ffc148 22029
d5eec917 22030@endif zlib
8ecc6504
NN
22031
22032
d5eec917
PB
22033.PHONY: configure-gdb maybe-configure-gdb
22034maybe-configure-gdb:
22035@if gdb
22036maybe-configure-gdb: configure-gdb
22037configure-gdb:
7fc2ca22
PB
22038 @test ! -f $(HOST_SUBDIR)/gdb/Makefile || exit 0; \
22039 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gdb ; \
5230d454
L
22040 r=`${PWD_COMMAND}`; export r; \
22041 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 22042 $(HOST_EXPORTS) \
d5eec917 22043 echo Configuring in gdb; \
7fc2ca22 22044 cd $(HOST_SUBDIR)/gdb || exit 1; \
94f860c0 22045 case $(srcdir) in \
7fc2ca22
PB
22046 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
22047 *) topdir=`echo $(HOST_SUBDIR)/gdb/ | \
22048 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 22049 esac; \
7fc2ca22
PB
22050 srcdiroption="--srcdir=$${topdir}/gdb"; \
22051 libsrcdir="$$s/gdb"; \
94f860c0 22052 $(SHELL) $${libsrcdir}/configure \
63673a5b 22053 $(HOST_CONFIGARGS) $${srcdiroption} \
94f860c0 22054 || exit 1
d5eec917 22055@endif gdb
94f860c0 22056
d5eec917
PB
22057.PHONY: all-gdb maybe-all-gdb
22058maybe-all-gdb:
22059@if gdb
5e6b1f07 22060TARGET-gdb=all
d5eec917
PB
22061maybe-all-gdb: all-gdb
22062all-gdb: configure-gdb
5230d454
L
22063 @r=`${PWD_COMMAND}`; export r; \
22064 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 22065 $(SET_LIB_PATH) \
a675b75a 22066 $(HOST_EXPORTS) \
7fc2ca22
PB
22067 (cd $(HOST_SUBDIR)/gdb && \
22068 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) $(TARGET-gdb))
d5eec917 22069@endif gdb
8ecc6504 22070
d5eec917
PB
22071.PHONY: check-gdb maybe-check-gdb
22072maybe-check-gdb:
22073@if gdb
22074maybe-check-gdb: check-gdb
8ecc6504 22075
d5eec917 22076check-gdb:
5230d454
L
22077 @r=`${PWD_COMMAND}`; export r; \
22078 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 22079 $(SET_LIB_PATH) \
a675b75a 22080 $(HOST_EXPORTS) \
7fc2ca22
PB
22081 (cd $(HOST_SUBDIR)/gdb && \
22082 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
8ecc6504 22083
d5eec917 22084@endif gdb
8ecc6504 22085
d5eec917
PB
22086.PHONY: install-gdb maybe-install-gdb
22087maybe-install-gdb:
22088@if gdb
22089maybe-install-gdb: install-gdb
70ffc148 22090
d5eec917 22091install-gdb: installdirs
5230d454
L
22092 @r=`${PWD_COMMAND}`; export r; \
22093 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 22094 $(SET_LIB_PATH) \
a675b75a 22095 $(HOST_EXPORTS) \
7fc2ca22 22096 (cd $(HOST_SUBDIR)/gdb && \
93c60b6d 22097 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
8ecc6504 22098
d5eec917 22099@endif gdb
8ecc6504 22100
8ec98d6c
NN
22101# Other targets (info, dvi, etc.)
22102
d5eec917
PB
22103.PHONY: maybe-info-gdb info-gdb
22104maybe-info-gdb:
22105@if gdb
22106maybe-info-gdb: info-gdb
8ec98d6c 22107
d5eec917
PB
22108info-gdb: \
22109 configure-gdb
22110 @[ -f ./gdb/Makefile ] || exit 0; \
8ec98d6c
NN
22111 r=`${PWD_COMMAND}`; export r; \
22112 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22113 $(SET_LIB_PATH) \
a675b75a 22114 $(HOST_EXPORTS) \
6a19fd82 22115 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
22116 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22117 done; \
d5eec917 22118 echo "Doing info in gdb" ; \
7fc2ca22 22119 (cd $(HOST_SUBDIR)/gdb && \
8ec98d6c
NN
22120 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22121 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22122 "RANLIB=$${RANLIB}" \
22123 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 22124 info) \
8ec98d6c
NN
22125 || exit 1
22126
d5eec917 22127@endif gdb
8ec98d6c 22128
d5eec917
PB
22129.PHONY: maybe-dvi-gdb dvi-gdb
22130maybe-dvi-gdb:
22131@if gdb
22132maybe-dvi-gdb: dvi-gdb
8ec98d6c 22133
d5eec917
PB
22134dvi-gdb: \
22135 configure-gdb
22136 @[ -f ./gdb/Makefile ] || exit 0; \
8ec98d6c
NN
22137 r=`${PWD_COMMAND}`; export r; \
22138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22139 $(SET_LIB_PATH) \
a675b75a 22140 $(HOST_EXPORTS) \
6a19fd82 22141 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
22142 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22143 done; \
d5eec917 22144 echo "Doing dvi in gdb" ; \
7fc2ca22 22145 (cd $(HOST_SUBDIR)/gdb && \
8ec98d6c
NN
22146 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22147 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22148 "RANLIB=$${RANLIB}" \
22149 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 22150 dvi) \
8ec98d6c
NN
22151 || exit 1
22152
d5eec917 22153@endif gdb
8ec98d6c 22154
b6fb961f
MS
22155.PHONY: maybe-html-gdb html-gdb
22156maybe-html-gdb:
22157@if gdb
22158maybe-html-gdb: html-gdb
22159
22160html-gdb: \
22161 configure-gdb
22162 @[ -f ./gdb/Makefile ] || exit 0; \
22163 r=`${PWD_COMMAND}`; export r; \
22164 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22165 $(SET_LIB_PATH) \
22166 $(HOST_EXPORTS) \
22167 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
22168 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22169 done; \
22170 echo "Doing html in gdb" ; \
7fc2ca22 22171 (cd $(HOST_SUBDIR)/gdb && \
b6fb961f
MS
22172 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22173 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22174 "RANLIB=$${RANLIB}" \
22175 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22176 html) \
22177 || exit 1
22178
22179@endif gdb
22180
d5eec917
PB
22181.PHONY: maybe-TAGS-gdb TAGS-gdb
22182maybe-TAGS-gdb:
22183@if gdb
22184maybe-TAGS-gdb: TAGS-gdb
8ec98d6c 22185
d5eec917
PB
22186TAGS-gdb: \
22187 configure-gdb
22188 @[ -f ./gdb/Makefile ] || exit 0; \
8ec98d6c
NN
22189 r=`${PWD_COMMAND}`; export r; \
22190 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22191 $(SET_LIB_PATH) \
a675b75a 22192 $(HOST_EXPORTS) \
6a19fd82 22193 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
22194 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22195 done; \
d5eec917 22196 echo "Doing TAGS in gdb" ; \
7fc2ca22 22197 (cd $(HOST_SUBDIR)/gdb && \
8ec98d6c
NN
22198 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22199 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22200 "RANLIB=$${RANLIB}" \
22201 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 22202 TAGS) \
8ec98d6c
NN
22203 || exit 1
22204
d5eec917 22205@endif gdb
8ec98d6c 22206
d5eec917
PB
22207.PHONY: maybe-install-info-gdb install-info-gdb
22208maybe-install-info-gdb:
22209@if gdb
22210maybe-install-info-gdb: install-info-gdb
8ec98d6c 22211
d5eec917
PB
22212install-info-gdb: \
22213 configure-gdb \
22214 info-gdb
22215 @[ -f ./gdb/Makefile ] || exit 0; \
8ec98d6c
NN
22216 r=`${PWD_COMMAND}`; export r; \
22217 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22218 $(SET_LIB_PATH) \
a675b75a 22219 $(HOST_EXPORTS) \
6a19fd82 22220 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
22221 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22222 done; \
d5eec917 22223 echo "Doing install-info in gdb" ; \
7fc2ca22 22224 (cd $(HOST_SUBDIR)/gdb && \
8ec98d6c
NN
22225 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22226 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22227 "RANLIB=$${RANLIB}" \
22228 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 22229 install-info) \
8ec98d6c
NN
22230 || exit 1
22231
d5eec917 22232@endif gdb
8ec98d6c 22233
d5eec917
PB
22234.PHONY: maybe-installcheck-gdb installcheck-gdb
22235maybe-installcheck-gdb:
22236@if gdb
22237maybe-installcheck-gdb: installcheck-gdb
8ec98d6c 22238
d5eec917
PB
22239installcheck-gdb: \
22240 configure-gdb
22241 @[ -f ./gdb/Makefile ] || exit 0; \
8ec98d6c
NN
22242 r=`${PWD_COMMAND}`; export r; \
22243 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22244 $(SET_LIB_PATH) \
a675b75a 22245 $(HOST_EXPORTS) \
6a19fd82 22246 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
22247 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22248 done; \
d5eec917 22249 echo "Doing installcheck in gdb" ; \
7fc2ca22 22250 (cd $(HOST_SUBDIR)/gdb && \
8ec98d6c
NN
22251 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22252 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22253 "RANLIB=$${RANLIB}" \
22254 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 22255 installcheck) \
8ec98d6c
NN
22256 || exit 1
22257
d5eec917 22258@endif gdb
8ec98d6c 22259
d5eec917
PB
22260.PHONY: maybe-mostlyclean-gdb mostlyclean-gdb
22261maybe-mostlyclean-gdb:
22262@if gdb
22263maybe-mostlyclean-gdb: mostlyclean-gdb
8ec98d6c 22264
d5eec917
PB
22265mostlyclean-gdb:
22266 @[ -f ./gdb/Makefile ] || exit 0; \
8ec98d6c
NN
22267 r=`${PWD_COMMAND}`; export r; \
22268 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22269 $(SET_LIB_PATH) \
a675b75a 22270 $(HOST_EXPORTS) \
6a19fd82 22271 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
22272 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22273 done; \
d5eec917 22274 echo "Doing mostlyclean in gdb" ; \
7fc2ca22 22275 (cd $(HOST_SUBDIR)/gdb && \
8ec98d6c
NN
22276 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22277 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22278 "RANLIB=$${RANLIB}" \
22279 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 22280 mostlyclean) \
8ec98d6c
NN
22281 || exit 1
22282
d5eec917 22283@endif gdb
8ec98d6c 22284
d5eec917
PB
22285.PHONY: maybe-clean-gdb clean-gdb
22286maybe-clean-gdb:
22287@if gdb
22288maybe-clean-gdb: clean-gdb
8ec98d6c 22289
d5eec917
PB
22290clean-gdb:
22291 @[ -f ./gdb/Makefile ] || exit 0; \
8ec98d6c
NN
22292 r=`${PWD_COMMAND}`; export r; \
22293 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22294 $(SET_LIB_PATH) \
a675b75a 22295 $(HOST_EXPORTS) \
6a19fd82 22296 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
22297 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22298 done; \
d5eec917 22299 echo "Doing clean in gdb" ; \
7fc2ca22 22300 (cd $(HOST_SUBDIR)/gdb && \
8ec98d6c
NN
22301 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22302 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22303 "RANLIB=$${RANLIB}" \
22304 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 22305 clean) \
8ec98d6c
NN
22306 || exit 1
22307
d5eec917 22308@endif gdb
8ec98d6c 22309
d5eec917
PB
22310.PHONY: maybe-distclean-gdb distclean-gdb
22311maybe-distclean-gdb:
22312@if gdb
22313maybe-distclean-gdb: distclean-gdb
8ec98d6c 22314
d5eec917
PB
22315distclean-gdb:
22316 @[ -f ./gdb/Makefile ] || exit 0; \
8ec98d6c
NN
22317 r=`${PWD_COMMAND}`; export r; \
22318 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22319 $(SET_LIB_PATH) \
a675b75a 22320 $(HOST_EXPORTS) \
6a19fd82 22321 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
22322 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22323 done; \
d5eec917 22324 echo "Doing distclean in gdb" ; \
7fc2ca22 22325 (cd $(HOST_SUBDIR)/gdb && \
8ec98d6c
NN
22326 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22327 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22328 "RANLIB=$${RANLIB}" \
22329 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 22330 distclean) \
8ec98d6c
NN
22331 || exit 1
22332
d5eec917 22333@endif gdb
8ec98d6c 22334
d5eec917
PB
22335.PHONY: maybe-maintainer-clean-gdb maintainer-clean-gdb
22336maybe-maintainer-clean-gdb:
22337@if gdb
22338maybe-maintainer-clean-gdb: maintainer-clean-gdb
8ec98d6c 22339
d5eec917
PB
22340maintainer-clean-gdb:
22341 @[ -f ./gdb/Makefile ] || exit 0; \
8ec98d6c
NN
22342 r=`${PWD_COMMAND}`; export r; \
22343 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22344 $(SET_LIB_PATH) \
a675b75a 22345 $(HOST_EXPORTS) \
6a19fd82 22346 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
22347 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22348 done; \
d5eec917 22349 echo "Doing maintainer-clean in gdb" ; \
7fc2ca22 22350 (cd $(HOST_SUBDIR)/gdb && \
8ec98d6c
NN
22351 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22352 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22353 "RANLIB=$${RANLIB}" \
22354 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 22355 maintainer-clean) \
8ec98d6c
NN
22356 || exit 1
22357
d5eec917 22358@endif gdb
8ec98d6c
NN
22359
22360
d5eec917
PB
22361.PHONY: configure-expect maybe-configure-expect
22362maybe-configure-expect:
22363@if expect
22364maybe-configure-expect: configure-expect
22365configure-expect:
7fc2ca22
PB
22366 @test ! -f $(HOST_SUBDIR)/expect/Makefile || exit 0; \
22367 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/expect ; \
5230d454
L
22368 r=`${PWD_COMMAND}`; export r; \
22369 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 22370 $(HOST_EXPORTS) \
d5eec917 22371 echo Configuring in expect; \
7fc2ca22 22372 cd $(HOST_SUBDIR)/expect || exit 1; \
94f860c0 22373 case $(srcdir) in \
7fc2ca22
PB
22374 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
22375 *) topdir=`echo $(HOST_SUBDIR)/expect/ | \
22376 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 22377 esac; \
7fc2ca22
PB
22378 srcdiroption="--srcdir=$${topdir}/expect"; \
22379 libsrcdir="$$s/expect"; \
94f860c0 22380 $(SHELL) $${libsrcdir}/configure \
63673a5b 22381 $(HOST_CONFIGARGS) $${srcdiroption} \
94f860c0 22382 || exit 1
d5eec917 22383@endif expect
94f860c0 22384
d5eec917
PB
22385.PHONY: all-expect maybe-all-expect
22386maybe-all-expect:
22387@if expect
5e6b1f07 22388TARGET-expect=all
d5eec917
PB
22389maybe-all-expect: all-expect
22390all-expect: configure-expect
5230d454
L
22391 @r=`${PWD_COMMAND}`; export r; \
22392 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 22393 $(SET_LIB_PATH) \
a675b75a 22394 $(HOST_EXPORTS) \
7fc2ca22
PB
22395 (cd $(HOST_SUBDIR)/expect && \
22396 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) $(TARGET-expect))
d5eec917 22397@endif expect
8ecc6504 22398
d5eec917
PB
22399.PHONY: check-expect maybe-check-expect
22400maybe-check-expect:
22401@if expect
22402maybe-check-expect: check-expect
8ecc6504 22403
d5eec917 22404check-expect:
5230d454
L
22405 @r=`${PWD_COMMAND}`; export r; \
22406 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 22407 $(SET_LIB_PATH) \
a675b75a 22408 $(HOST_EXPORTS) \
7fc2ca22
PB
22409 (cd $(HOST_SUBDIR)/expect && \
22410 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
8ecc6504 22411
d5eec917 22412@endif expect
8ecc6504 22413
d5eec917
PB
22414.PHONY: install-expect maybe-install-expect
22415maybe-install-expect:
22416@if expect
22417maybe-install-expect: install-expect
70ffc148 22418
d5eec917 22419install-expect: installdirs
5230d454
L
22420 @r=`${PWD_COMMAND}`; export r; \
22421 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 22422 $(SET_LIB_PATH) \
a675b75a 22423 $(HOST_EXPORTS) \
7fc2ca22 22424 (cd $(HOST_SUBDIR)/expect && \
93c60b6d 22425 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
8ecc6504 22426
d5eec917 22427@endif expect
8ecc6504 22428
8ec98d6c
NN
22429# Other targets (info, dvi, etc.)
22430
d5eec917
PB
22431.PHONY: maybe-info-expect info-expect
22432maybe-info-expect:
22433@if expect
22434maybe-info-expect: info-expect
8ec98d6c 22435
d5eec917
PB
22436info-expect: \
22437 configure-expect
22438 @[ -f ./expect/Makefile ] || exit 0; \
5230d454
L
22439 r=`${PWD_COMMAND}`; export r; \
22440 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8ec98d6c 22441 $(SET_LIB_PATH) \
a675b75a 22442 $(HOST_EXPORTS) \
6a19fd82 22443 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
22444 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22445 done; \
d5eec917 22446 echo "Doing info in expect" ; \
7fc2ca22 22447 (cd $(HOST_SUBDIR)/expect && \
8ec98d6c
NN
22448 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22449 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22450 "RANLIB=$${RANLIB}" \
22451 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 22452 info) \
94f860c0
NN
22453 || exit 1
22454
d5eec917 22455@endif expect
8ec98d6c 22456
d5eec917
PB
22457.PHONY: maybe-dvi-expect dvi-expect
22458maybe-dvi-expect:
22459@if expect
22460maybe-dvi-expect: dvi-expect
8ec98d6c 22461
d5eec917
PB
22462dvi-expect: \
22463 configure-expect
22464 @[ -f ./expect/Makefile ] || exit 0; \
8ec98d6c 22465 r=`${PWD_COMMAND}`; export r; \
5230d454 22466 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 22467 $(SET_LIB_PATH) \
a675b75a 22468 $(HOST_EXPORTS) \
6a19fd82 22469 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
22470 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22471 done; \
d5eec917 22472 echo "Doing dvi in expect" ; \
7fc2ca22 22473 (cd $(HOST_SUBDIR)/expect && \
8ec98d6c
NN
22474 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22475 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22476 "RANLIB=$${RANLIB}" \
22477 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 22478 dvi) \
8ec98d6c 22479 || exit 1
8ecc6504 22480
d5eec917 22481@endif expect
8ecc6504 22482
b6fb961f
MS
22483.PHONY: maybe-html-expect html-expect
22484maybe-html-expect:
22485@if expect
22486maybe-html-expect: html-expect
22487
22488html-expect: \
22489 configure-expect
22490 @[ -f ./expect/Makefile ] || exit 0; \
22491 r=`${PWD_COMMAND}`; export r; \
22492 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22493 $(SET_LIB_PATH) \
22494 $(HOST_EXPORTS) \
22495 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
22496 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22497 done; \
22498 echo "Doing html in expect" ; \
7fc2ca22 22499 (cd $(HOST_SUBDIR)/expect && \
b6fb961f
MS
22500 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22501 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22502 "RANLIB=$${RANLIB}" \
22503 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22504 html) \
22505 || exit 1
22506
22507@endif expect
22508
d5eec917
PB
22509.PHONY: maybe-TAGS-expect TAGS-expect
22510maybe-TAGS-expect:
22511@if expect
22512maybe-TAGS-expect: TAGS-expect
8ec98d6c 22513
d5eec917
PB
22514TAGS-expect: \
22515 configure-expect
22516 @[ -f ./expect/Makefile ] || exit 0; \
8ec98d6c 22517 r=`${PWD_COMMAND}`; export r; \
5230d454 22518 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 22519 $(SET_LIB_PATH) \
a675b75a 22520 $(HOST_EXPORTS) \
6a19fd82 22521 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
22522 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22523 done; \
d5eec917 22524 echo "Doing TAGS in expect" ; \
7fc2ca22 22525 (cd $(HOST_SUBDIR)/expect && \
8ec98d6c
NN
22526 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22527 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22528 "RANLIB=$${RANLIB}" \
22529 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 22530 TAGS) \
8ec98d6c 22531 || exit 1
8ecc6504 22532
d5eec917 22533@endif expect
8ecc6504 22534
d5eec917
PB
22535.PHONY: maybe-install-info-expect install-info-expect
22536maybe-install-info-expect:
22537@if expect
22538maybe-install-info-expect: install-info-expect
70ffc148 22539
d5eec917
PB
22540install-info-expect: \
22541 configure-expect \
22542 info-expect
22543 @[ -f ./expect/Makefile ] || exit 0; \
8ec98d6c
NN
22544 r=`${PWD_COMMAND}`; export r; \
22545 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22546 $(SET_LIB_PATH) \
a675b75a 22547 $(HOST_EXPORTS) \
6a19fd82 22548 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
22549 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22550 done; \
d5eec917 22551 echo "Doing install-info in expect" ; \
7fc2ca22 22552 (cd $(HOST_SUBDIR)/expect && \
8ec98d6c
NN
22553 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22554 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22555 "RANLIB=$${RANLIB}" \
22556 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 22557 install-info) \
8ec98d6c
NN
22558 || exit 1
22559
d5eec917 22560@endif expect
8ec98d6c 22561
d5eec917
PB
22562.PHONY: maybe-installcheck-expect installcheck-expect
22563maybe-installcheck-expect:
22564@if expect
22565maybe-installcheck-expect: installcheck-expect
8ec98d6c 22566
d5eec917
PB
22567installcheck-expect: \
22568 configure-expect
22569 @[ -f ./expect/Makefile ] || exit 0; \
8ec98d6c
NN
22570 r=`${PWD_COMMAND}`; export r; \
22571 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22572 $(SET_LIB_PATH) \
a675b75a 22573 $(HOST_EXPORTS) \
6a19fd82 22574 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
22575 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22576 done; \
d5eec917 22577 echo "Doing installcheck in expect" ; \
7fc2ca22 22578 (cd $(HOST_SUBDIR)/expect && \
8ec98d6c
NN
22579 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22580 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22581 "RANLIB=$${RANLIB}" \
22582 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 22583 installcheck) \
8ec98d6c
NN
22584 || exit 1
22585
d5eec917 22586@endif expect
8ec98d6c 22587
d5eec917
PB
22588.PHONY: maybe-mostlyclean-expect mostlyclean-expect
22589maybe-mostlyclean-expect:
22590@if expect
22591maybe-mostlyclean-expect: mostlyclean-expect
8ec98d6c 22592
d5eec917
PB
22593mostlyclean-expect:
22594 @[ -f ./expect/Makefile ] || exit 0; \
8ec98d6c
NN
22595 r=`${PWD_COMMAND}`; export r; \
22596 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22597 $(SET_LIB_PATH) \
a675b75a 22598 $(HOST_EXPORTS) \
6a19fd82 22599 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
22600 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22601 done; \
d5eec917 22602 echo "Doing mostlyclean in expect" ; \
7fc2ca22 22603 (cd $(HOST_SUBDIR)/expect && \
8ec98d6c
NN
22604 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22605 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22606 "RANLIB=$${RANLIB}" \
22607 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 22608 mostlyclean) \
8ec98d6c
NN
22609 || exit 1
22610
d5eec917 22611@endif expect
8ec98d6c 22612
d5eec917
PB
22613.PHONY: maybe-clean-expect clean-expect
22614maybe-clean-expect:
22615@if expect
22616maybe-clean-expect: clean-expect
8ec98d6c 22617
d5eec917
PB
22618clean-expect:
22619 @[ -f ./expect/Makefile ] || exit 0; \
8ec98d6c
NN
22620 r=`${PWD_COMMAND}`; export r; \
22621 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22622 $(SET_LIB_PATH) \
a675b75a 22623 $(HOST_EXPORTS) \
6a19fd82 22624 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
22625 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22626 done; \
d5eec917 22627 echo "Doing clean in expect" ; \
7fc2ca22 22628 (cd $(HOST_SUBDIR)/expect && \
8ec98d6c
NN
22629 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22630 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22631 "RANLIB=$${RANLIB}" \
22632 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 22633 clean) \
8ec98d6c
NN
22634 || exit 1
22635
d5eec917 22636@endif expect
8ec98d6c 22637
d5eec917
PB
22638.PHONY: maybe-distclean-expect distclean-expect
22639maybe-distclean-expect:
22640@if expect
22641maybe-distclean-expect: distclean-expect
8ec98d6c 22642
d5eec917
PB
22643distclean-expect:
22644 @[ -f ./expect/Makefile ] || exit 0; \
8ec98d6c
NN
22645 r=`${PWD_COMMAND}`; export r; \
22646 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22647 $(SET_LIB_PATH) \
a675b75a 22648 $(HOST_EXPORTS) \
6a19fd82 22649 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
22650 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22651 done; \
d5eec917 22652 echo "Doing distclean in expect" ; \
7fc2ca22 22653 (cd $(HOST_SUBDIR)/expect && \
8ec98d6c
NN
22654 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22655 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22656 "RANLIB=$${RANLIB}" \
22657 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 22658 distclean) \
8ec98d6c
NN
22659 || exit 1
22660
d5eec917 22661@endif expect
8ec98d6c 22662
d5eec917
PB
22663.PHONY: maybe-maintainer-clean-expect maintainer-clean-expect
22664maybe-maintainer-clean-expect:
22665@if expect
22666maybe-maintainer-clean-expect: maintainer-clean-expect
8ec98d6c 22667
d5eec917
PB
22668maintainer-clean-expect:
22669 @[ -f ./expect/Makefile ] || exit 0; \
8ec98d6c 22670 r=`${PWD_COMMAND}`; export r; \
5230d454 22671 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 22672 $(SET_LIB_PATH) \
a675b75a 22673 $(HOST_EXPORTS) \
6a19fd82 22674 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
22675 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22676 done; \
d5eec917 22677 echo "Doing maintainer-clean in expect" ; \
7fc2ca22 22678 (cd $(HOST_SUBDIR)/expect && \
8ec98d6c
NN
22679 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22680 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22681 "RANLIB=$${RANLIB}" \
22682 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 22683 maintainer-clean) \
8ec98d6c 22684 || exit 1
8ecc6504 22685
d5eec917 22686@endif expect
8ecc6504 22687
8ec98d6c 22688
d5eec917
PB
22689.PHONY: configure-guile maybe-configure-guile
22690maybe-configure-guile:
22691@if guile
22692maybe-configure-guile: configure-guile
22693configure-guile:
7fc2ca22
PB
22694 @test ! -f $(HOST_SUBDIR)/guile/Makefile || exit 0; \
22695 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/guile ; \
5230d454
L
22696 r=`${PWD_COMMAND}`; export r; \
22697 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 22698 $(HOST_EXPORTS) \
d5eec917 22699 echo Configuring in guile; \
7fc2ca22 22700 cd $(HOST_SUBDIR)/guile || exit 1; \
94f860c0 22701 case $(srcdir) in \
7fc2ca22
PB
22702 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
22703 *) topdir=`echo $(HOST_SUBDIR)/guile/ | \
22704 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 22705 esac; \
7fc2ca22
PB
22706 srcdiroption="--srcdir=$${topdir}/guile"; \
22707 libsrcdir="$$s/guile"; \
94f860c0 22708 $(SHELL) $${libsrcdir}/configure \
63673a5b 22709 $(HOST_CONFIGARGS) $${srcdiroption} \
94f860c0 22710 || exit 1
d5eec917 22711@endif guile
94f860c0 22712
d5eec917
PB
22713.PHONY: all-guile maybe-all-guile
22714maybe-all-guile:
22715@if guile
5e6b1f07 22716TARGET-guile=all
d5eec917
PB
22717maybe-all-guile: all-guile
22718all-guile: configure-guile
5230d454
L
22719 @r=`${PWD_COMMAND}`; export r; \
22720 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 22721 $(SET_LIB_PATH) \
a675b75a 22722 $(HOST_EXPORTS) \
7fc2ca22
PB
22723 (cd $(HOST_SUBDIR)/guile && \
22724 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) $(TARGET-guile))
d5eec917 22725@endif guile
8ecc6504 22726
d5eec917
PB
22727.PHONY: check-guile maybe-check-guile
22728maybe-check-guile:
22729@if guile
22730maybe-check-guile: check-guile
8ecc6504 22731
d5eec917 22732check-guile:
5230d454
L
22733 @r=`${PWD_COMMAND}`; export r; \
22734 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 22735 $(SET_LIB_PATH) \
a675b75a 22736 $(HOST_EXPORTS) \
7fc2ca22
PB
22737 (cd $(HOST_SUBDIR)/guile && \
22738 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
8ecc6504 22739
d5eec917 22740@endif guile
70ffc148 22741
d5eec917
PB
22742.PHONY: install-guile maybe-install-guile
22743maybe-install-guile:
22744@if guile
22745maybe-install-guile: install-guile
22746
22747install-guile: installdirs
5230d454
L
22748 @r=`${PWD_COMMAND}`; export r; \
22749 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 22750 $(SET_LIB_PATH) \
a675b75a 22751 $(HOST_EXPORTS) \
7fc2ca22 22752 (cd $(HOST_SUBDIR)/guile && \
93c60b6d 22753 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
8ec98d6c 22754
d5eec917 22755@endif guile
8ec98d6c
NN
22756
22757# Other targets (info, dvi, etc.)
22758
d5eec917
PB
22759.PHONY: maybe-info-guile info-guile
22760maybe-info-guile:
22761@if guile
22762maybe-info-guile: info-guile
8ec98d6c 22763
d5eec917
PB
22764info-guile: \
22765 configure-guile
22766 @[ -f ./guile/Makefile ] || exit 0; \
8ec98d6c
NN
22767 r=`${PWD_COMMAND}`; export r; \
22768 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22769 $(SET_LIB_PATH) \
a675b75a 22770 $(HOST_EXPORTS) \
6a19fd82 22771 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
22772 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22773 done; \
d5eec917 22774 echo "Doing info in guile" ; \
7fc2ca22 22775 (cd $(HOST_SUBDIR)/guile && \
8ec98d6c
NN
22776 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22777 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22778 "RANLIB=$${RANLIB}" \
22779 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 22780 info) \
8ec98d6c
NN
22781 || exit 1
22782
d5eec917 22783@endif guile
8ec98d6c 22784
d5eec917
PB
22785.PHONY: maybe-dvi-guile dvi-guile
22786maybe-dvi-guile:
22787@if guile
22788maybe-dvi-guile: dvi-guile
8ec98d6c 22789
d5eec917
PB
22790dvi-guile: \
22791 configure-guile
22792 @[ -f ./guile/Makefile ] || exit 0; \
8ec98d6c
NN
22793 r=`${PWD_COMMAND}`; export r; \
22794 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22795 $(SET_LIB_PATH) \
a675b75a 22796 $(HOST_EXPORTS) \
6a19fd82 22797 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
22798 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22799 done; \
d5eec917 22800 echo "Doing dvi in guile" ; \
7fc2ca22 22801 (cd $(HOST_SUBDIR)/guile && \
8ec98d6c
NN
22802 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22803 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22804 "RANLIB=$${RANLIB}" \
22805 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 22806 dvi) \
8ec98d6c
NN
22807 || exit 1
22808
d5eec917 22809@endif guile
8ec98d6c 22810
b6fb961f
MS
22811.PHONY: maybe-html-guile html-guile
22812maybe-html-guile:
22813@if guile
22814maybe-html-guile: html-guile
22815
22816html-guile: \
22817 configure-guile
22818 @[ -f ./guile/Makefile ] || exit 0; \
22819 r=`${PWD_COMMAND}`; export r; \
22820 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22821 $(SET_LIB_PATH) \
22822 $(HOST_EXPORTS) \
22823 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
22824 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22825 done; \
22826 echo "Doing html in guile" ; \
7fc2ca22 22827 (cd $(HOST_SUBDIR)/guile && \
b6fb961f
MS
22828 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22829 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22830 "RANLIB=$${RANLIB}" \
22831 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22832 html) \
22833 || exit 1
22834
22835@endif guile
22836
d5eec917
PB
22837.PHONY: maybe-TAGS-guile TAGS-guile
22838maybe-TAGS-guile:
22839@if guile
22840maybe-TAGS-guile: TAGS-guile
8ec98d6c 22841
d5eec917
PB
22842TAGS-guile: \
22843 configure-guile
22844 @[ -f ./guile/Makefile ] || exit 0; \
8ec98d6c
NN
22845 r=`${PWD_COMMAND}`; export r; \
22846 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22847 $(SET_LIB_PATH) \
a675b75a 22848 $(HOST_EXPORTS) \
6a19fd82 22849 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
22850 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22851 done; \
d5eec917 22852 echo "Doing TAGS in guile" ; \
7fc2ca22 22853 (cd $(HOST_SUBDIR)/guile && \
8ec98d6c
NN
22854 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22855 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22856 "RANLIB=$${RANLIB}" \
22857 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 22858 TAGS) \
8ec98d6c
NN
22859 || exit 1
22860
d5eec917 22861@endif guile
8ec98d6c 22862
d5eec917
PB
22863.PHONY: maybe-install-info-guile install-info-guile
22864maybe-install-info-guile:
22865@if guile
22866maybe-install-info-guile: install-info-guile
8ec98d6c 22867
d5eec917
PB
22868install-info-guile: \
22869 configure-guile \
22870 info-guile
22871 @[ -f ./guile/Makefile ] || exit 0; \
8ec98d6c
NN
22872 r=`${PWD_COMMAND}`; export r; \
22873 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22874 $(SET_LIB_PATH) \
a675b75a 22875 $(HOST_EXPORTS) \
6a19fd82 22876 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
22877 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22878 done; \
d5eec917 22879 echo "Doing install-info in guile" ; \
7fc2ca22 22880 (cd $(HOST_SUBDIR)/guile && \
8ec98d6c
NN
22881 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22882 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22883 "RANLIB=$${RANLIB}" \
22884 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 22885 install-info) \
8ec98d6c
NN
22886 || exit 1
22887
d5eec917 22888@endif guile
8ec98d6c 22889
d5eec917
PB
22890.PHONY: maybe-installcheck-guile installcheck-guile
22891maybe-installcheck-guile:
22892@if guile
22893maybe-installcheck-guile: installcheck-guile
8ec98d6c 22894
d5eec917
PB
22895installcheck-guile: \
22896 configure-guile
22897 @[ -f ./guile/Makefile ] || exit 0; \
8ec98d6c
NN
22898 r=`${PWD_COMMAND}`; export r; \
22899 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22900 $(SET_LIB_PATH) \
a675b75a 22901 $(HOST_EXPORTS) \
6a19fd82 22902 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
22903 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22904 done; \
d5eec917 22905 echo "Doing installcheck in guile" ; \
7fc2ca22 22906 (cd $(HOST_SUBDIR)/guile && \
8ec98d6c
NN
22907 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22908 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22909 "RANLIB=$${RANLIB}" \
22910 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 22911 installcheck) \
8ec98d6c
NN
22912 || exit 1
22913
d5eec917 22914@endif guile
8ec98d6c 22915
d5eec917
PB
22916.PHONY: maybe-mostlyclean-guile mostlyclean-guile
22917maybe-mostlyclean-guile:
22918@if guile
22919maybe-mostlyclean-guile: mostlyclean-guile
8ec98d6c 22920
d5eec917
PB
22921mostlyclean-guile:
22922 @[ -f ./guile/Makefile ] || exit 0; \
8ec98d6c
NN
22923 r=`${PWD_COMMAND}`; export r; \
22924 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22925 $(SET_LIB_PATH) \
a675b75a 22926 $(HOST_EXPORTS) \
6a19fd82 22927 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
22928 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22929 done; \
d5eec917 22930 echo "Doing mostlyclean in guile" ; \
7fc2ca22 22931 (cd $(HOST_SUBDIR)/guile && \
8ec98d6c
NN
22932 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22933 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22934 "RANLIB=$${RANLIB}" \
22935 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 22936 mostlyclean) \
8ec98d6c
NN
22937 || exit 1
22938
d5eec917 22939@endif guile
8ec98d6c 22940
d5eec917
PB
22941.PHONY: maybe-clean-guile clean-guile
22942maybe-clean-guile:
22943@if guile
22944maybe-clean-guile: clean-guile
8ec98d6c 22945
d5eec917
PB
22946clean-guile:
22947 @[ -f ./guile/Makefile ] || exit 0; \
8ec98d6c
NN
22948 r=`${PWD_COMMAND}`; export r; \
22949 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22950 $(SET_LIB_PATH) \
a675b75a 22951 $(HOST_EXPORTS) \
6a19fd82 22952 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
22953 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22954 done; \
d5eec917 22955 echo "Doing clean in guile" ; \
7fc2ca22 22956 (cd $(HOST_SUBDIR)/guile && \
8ec98d6c
NN
22957 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22958 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22959 "RANLIB=$${RANLIB}" \
22960 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 22961 clean) \
8ec98d6c
NN
22962 || exit 1
22963
d5eec917 22964@endif guile
8ec98d6c 22965
d5eec917
PB
22966.PHONY: maybe-distclean-guile distclean-guile
22967maybe-distclean-guile:
22968@if guile
22969maybe-distclean-guile: distclean-guile
8ec98d6c 22970
d5eec917
PB
22971distclean-guile:
22972 @[ -f ./guile/Makefile ] || exit 0; \
8ec98d6c
NN
22973 r=`${PWD_COMMAND}`; export r; \
22974 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22975 $(SET_LIB_PATH) \
a675b75a 22976 $(HOST_EXPORTS) \
6a19fd82 22977 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
22978 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22979 done; \
d5eec917 22980 echo "Doing distclean in guile" ; \
7fc2ca22 22981 (cd $(HOST_SUBDIR)/guile && \
8ec98d6c
NN
22982 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22983 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22984 "RANLIB=$${RANLIB}" \
22985 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 22986 distclean) \
8ec98d6c
NN
22987 || exit 1
22988
d5eec917 22989@endif guile
8ec98d6c 22990
d5eec917
PB
22991.PHONY: maybe-maintainer-clean-guile maintainer-clean-guile
22992maybe-maintainer-clean-guile:
22993@if guile
22994maybe-maintainer-clean-guile: maintainer-clean-guile
8ec98d6c 22995
d5eec917
PB
22996maintainer-clean-guile:
22997 @[ -f ./guile/Makefile ] || exit 0; \
8ec98d6c
NN
22998 r=`${PWD_COMMAND}`; export r; \
22999 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23000 $(SET_LIB_PATH) \
a675b75a 23001 $(HOST_EXPORTS) \
6a19fd82 23002 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
23003 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23004 done; \
d5eec917 23005 echo "Doing maintainer-clean in guile" ; \
7fc2ca22 23006 (cd $(HOST_SUBDIR)/guile && \
8ec98d6c
NN
23007 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23008 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23009 "RANLIB=$${RANLIB}" \
23010 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 23011 maintainer-clean) \
8ec98d6c
NN
23012 || exit 1
23013
d5eec917 23014@endif guile
8ecc6504
NN
23015
23016
d5eec917
PB
23017.PHONY: configure-tk maybe-configure-tk
23018maybe-configure-tk:
23019@if tk
23020maybe-configure-tk: configure-tk
23021configure-tk:
7fc2ca22
PB
23022 @test ! -f $(HOST_SUBDIR)/tk/Makefile || exit 0; \
23023 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tk ; \
5230d454
L
23024 r=`${PWD_COMMAND}`; export r; \
23025 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 23026 $(HOST_EXPORTS) \
d5eec917 23027 echo Configuring in tk; \
7fc2ca22 23028 cd $(HOST_SUBDIR)/tk || exit 1; \
94f860c0 23029 case $(srcdir) in \
7fc2ca22
PB
23030 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23031 *) topdir=`echo $(HOST_SUBDIR)/tk/ | \
23032 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 23033 esac; \
7fc2ca22
PB
23034 srcdiroption="--srcdir=$${topdir}/tk"; \
23035 libsrcdir="$$s/tk"; \
94f860c0 23036 $(SHELL) $${libsrcdir}/configure \
63673a5b 23037 $(HOST_CONFIGARGS) $${srcdiroption} \
94f860c0 23038 || exit 1
d5eec917 23039@endif tk
94f860c0 23040
d5eec917
PB
23041.PHONY: all-tk maybe-all-tk
23042maybe-all-tk:
23043@if tk
5e6b1f07 23044TARGET-tk=all
d5eec917
PB
23045maybe-all-tk: all-tk
23046all-tk: configure-tk
5230d454
L
23047 @r=`${PWD_COMMAND}`; export r; \
23048 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 23049 $(SET_LIB_PATH) \
a675b75a 23050 $(HOST_EXPORTS) \
7fc2ca22
PB
23051 (cd $(HOST_SUBDIR)/tk && \
23052 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) $(TARGET-tk))
d5eec917 23053@endif tk
8ecc6504 23054
d5eec917
PB
23055.PHONY: check-tk maybe-check-tk
23056maybe-check-tk:
23057@if tk
23058maybe-check-tk: check-tk
8ecc6504 23059
d5eec917 23060check-tk:
5230d454
L
23061 @r=`${PWD_COMMAND}`; export r; \
23062 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 23063 $(SET_LIB_PATH) \
a675b75a 23064 $(HOST_EXPORTS) \
7fc2ca22
PB
23065 (cd $(HOST_SUBDIR)/tk && \
23066 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
8ecc6504 23067
d5eec917 23068@endif tk
8ecc6504 23069
d5eec917
PB
23070.PHONY: install-tk maybe-install-tk
23071maybe-install-tk:
23072@if tk
23073maybe-install-tk: install-tk
70ffc148 23074
d5eec917 23075install-tk: installdirs
5230d454
L
23076 @r=`${PWD_COMMAND}`; export r; \
23077 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 23078 $(SET_LIB_PATH) \
a675b75a 23079 $(HOST_EXPORTS) \
7fc2ca22 23080 (cd $(HOST_SUBDIR)/tk && \
93c60b6d 23081 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
8ecc6504 23082
d5eec917 23083@endif tk
8ecc6504 23084
8ec98d6c
NN
23085# Other targets (info, dvi, etc.)
23086
d5eec917
PB
23087.PHONY: maybe-info-tk info-tk
23088maybe-info-tk:
23089@if tk
23090maybe-info-tk: info-tk
8ec98d6c 23091
d5eec917
PB
23092info-tk: \
23093 configure-tk
23094 @[ -f ./tk/Makefile ] || exit 0; \
5230d454
L
23095 r=`${PWD_COMMAND}`; export r; \
23096 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8ec98d6c 23097 $(SET_LIB_PATH) \
a675b75a 23098 $(HOST_EXPORTS) \
6a19fd82 23099 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
23100 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23101 done; \
d5eec917 23102 echo "Doing info in tk" ; \
7fc2ca22 23103 (cd $(HOST_SUBDIR)/tk && \
8ec98d6c
NN
23104 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23105 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23106 "RANLIB=$${RANLIB}" \
23107 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 23108 info) \
94f860c0
NN
23109 || exit 1
23110
d5eec917 23111@endif tk
8ec98d6c 23112
d5eec917
PB
23113.PHONY: maybe-dvi-tk dvi-tk
23114maybe-dvi-tk:
23115@if tk
23116maybe-dvi-tk: dvi-tk
8ec98d6c 23117
d5eec917
PB
23118dvi-tk: \
23119 configure-tk
23120 @[ -f ./tk/Makefile ] || exit 0; \
8ec98d6c 23121 r=`${PWD_COMMAND}`; export r; \
5230d454 23122 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 23123 $(SET_LIB_PATH) \
a675b75a 23124 $(HOST_EXPORTS) \
6a19fd82 23125 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
23126 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23127 done; \
d5eec917 23128 echo "Doing dvi in tk" ; \
7fc2ca22 23129 (cd $(HOST_SUBDIR)/tk && \
8ec98d6c
NN
23130 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23131 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23132 "RANLIB=$${RANLIB}" \
23133 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 23134 dvi) \
8ec98d6c 23135 || exit 1
8ecc6504 23136
d5eec917 23137@endif tk
8ecc6504 23138
b6fb961f
MS
23139.PHONY: maybe-html-tk html-tk
23140maybe-html-tk:
23141@if tk
23142maybe-html-tk: html-tk
23143
23144html-tk: \
23145 configure-tk
23146 @[ -f ./tk/Makefile ] || exit 0; \
23147 r=`${PWD_COMMAND}`; export r; \
23148 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23149 $(SET_LIB_PATH) \
23150 $(HOST_EXPORTS) \
23151 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
23152 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23153 done; \
23154 echo "Doing html in tk" ; \
7fc2ca22 23155 (cd $(HOST_SUBDIR)/tk && \
b6fb961f
MS
23156 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23157 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23158 "RANLIB=$${RANLIB}" \
23159 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23160 html) \
23161 || exit 1
23162
23163@endif tk
23164
d5eec917
PB
23165.PHONY: maybe-TAGS-tk TAGS-tk
23166maybe-TAGS-tk:
23167@if tk
23168maybe-TAGS-tk: TAGS-tk
8ec98d6c 23169
d5eec917
PB
23170TAGS-tk: \
23171 configure-tk
23172 @[ -f ./tk/Makefile ] || exit 0; \
8ec98d6c 23173 r=`${PWD_COMMAND}`; export r; \
5230d454 23174 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 23175 $(SET_LIB_PATH) \
a675b75a 23176 $(HOST_EXPORTS) \
6a19fd82 23177 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
23178 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23179 done; \
d5eec917 23180 echo "Doing TAGS in tk" ; \
7fc2ca22 23181 (cd $(HOST_SUBDIR)/tk && \
8ec98d6c
NN
23182 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23183 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23184 "RANLIB=$${RANLIB}" \
23185 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 23186 TAGS) \
8ec98d6c 23187 || exit 1
8ecc6504 23188
d5eec917 23189@endif tk
8ecc6504 23190
d5eec917
PB
23191.PHONY: maybe-install-info-tk install-info-tk
23192maybe-install-info-tk:
23193@if tk
23194maybe-install-info-tk: install-info-tk
8ec98d6c 23195
d5eec917
PB
23196install-info-tk: \
23197 configure-tk \
23198 info-tk
23199 @[ -f ./tk/Makefile ] || exit 0; \
8ec98d6c
NN
23200 r=`${PWD_COMMAND}`; export r; \
23201 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23202 $(SET_LIB_PATH) \
a675b75a 23203 $(HOST_EXPORTS) \
6a19fd82 23204 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
23205 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23206 done; \
d5eec917 23207 echo "Doing install-info in tk" ; \
7fc2ca22 23208 (cd $(HOST_SUBDIR)/tk && \
8ec98d6c
NN
23209 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23210 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23211 "RANLIB=$${RANLIB}" \
23212 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 23213 install-info) \
8ec98d6c
NN
23214 || exit 1
23215
d5eec917 23216@endif tk
8ec98d6c 23217
d5eec917
PB
23218.PHONY: maybe-installcheck-tk installcheck-tk
23219maybe-installcheck-tk:
23220@if tk
23221maybe-installcheck-tk: installcheck-tk
8ec98d6c 23222
d5eec917
PB
23223installcheck-tk: \
23224 configure-tk
23225 @[ -f ./tk/Makefile ] || exit 0; \
8ec98d6c
NN
23226 r=`${PWD_COMMAND}`; export r; \
23227 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23228 $(SET_LIB_PATH) \
a675b75a 23229 $(HOST_EXPORTS) \
6a19fd82 23230 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
23231 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23232 done; \
d5eec917 23233 echo "Doing installcheck in tk" ; \
7fc2ca22 23234 (cd $(HOST_SUBDIR)/tk && \
8ec98d6c
NN
23235 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23236 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23237 "RANLIB=$${RANLIB}" \
23238 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 23239 installcheck) \
8ec98d6c
NN
23240 || exit 1
23241
d5eec917 23242@endif tk
8ec98d6c 23243
d5eec917
PB
23244.PHONY: maybe-mostlyclean-tk mostlyclean-tk
23245maybe-mostlyclean-tk:
23246@if tk
23247maybe-mostlyclean-tk: mostlyclean-tk
8ec98d6c 23248
d5eec917
PB
23249mostlyclean-tk:
23250 @[ -f ./tk/Makefile ] || exit 0; \
8ec98d6c
NN
23251 r=`${PWD_COMMAND}`; export r; \
23252 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23253 $(SET_LIB_PATH) \
a675b75a 23254 $(HOST_EXPORTS) \
6a19fd82 23255 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
23256 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23257 done; \
d5eec917 23258 echo "Doing mostlyclean in tk" ; \
7fc2ca22 23259 (cd $(HOST_SUBDIR)/tk && \
8ec98d6c
NN
23260 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23261 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23262 "RANLIB=$${RANLIB}" \
23263 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 23264 mostlyclean) \
8ec98d6c
NN
23265 || exit 1
23266
d5eec917 23267@endif tk
8ec98d6c 23268
d5eec917
PB
23269.PHONY: maybe-clean-tk clean-tk
23270maybe-clean-tk:
23271@if tk
23272maybe-clean-tk: clean-tk
8ec98d6c 23273
d5eec917
PB
23274clean-tk:
23275 @[ -f ./tk/Makefile ] || exit 0; \
8ec98d6c
NN
23276 r=`${PWD_COMMAND}`; export r; \
23277 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23278 $(SET_LIB_PATH) \
a675b75a 23279 $(HOST_EXPORTS) \
6a19fd82 23280 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
23281 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23282 done; \
d5eec917 23283 echo "Doing clean in tk" ; \
7fc2ca22 23284 (cd $(HOST_SUBDIR)/tk && \
8ec98d6c
NN
23285 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23286 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23287 "RANLIB=$${RANLIB}" \
23288 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 23289 clean) \
8ec98d6c
NN
23290 || exit 1
23291
d5eec917 23292@endif tk
8ec98d6c 23293
d5eec917
PB
23294.PHONY: maybe-distclean-tk distclean-tk
23295maybe-distclean-tk:
23296@if tk
23297maybe-distclean-tk: distclean-tk
8ec98d6c 23298
d5eec917
PB
23299distclean-tk:
23300 @[ -f ./tk/Makefile ] || exit 0; \
8ec98d6c
NN
23301 r=`${PWD_COMMAND}`; export r; \
23302 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23303 $(SET_LIB_PATH) \
a675b75a 23304 $(HOST_EXPORTS) \
6a19fd82 23305 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
23306 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23307 done; \
d5eec917 23308 echo "Doing distclean in tk" ; \
7fc2ca22 23309 (cd $(HOST_SUBDIR)/tk && \
8ec98d6c
NN
23310 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23311 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23312 "RANLIB=$${RANLIB}" \
23313 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 23314 distclean) \
8ec98d6c
NN
23315 || exit 1
23316
d5eec917 23317@endif tk
8ec98d6c 23318
d5eec917
PB
23319.PHONY: maybe-maintainer-clean-tk maintainer-clean-tk
23320maybe-maintainer-clean-tk:
23321@if tk
23322maybe-maintainer-clean-tk: maintainer-clean-tk
70ffc148 23323
d5eec917
PB
23324maintainer-clean-tk:
23325 @[ -f ./tk/Makefile ] || exit 0; \
8ec98d6c 23326 r=`${PWD_COMMAND}`; export r; \
5230d454 23327 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 23328 $(SET_LIB_PATH) \
a675b75a 23329 $(HOST_EXPORTS) \
6a19fd82 23330 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
23331 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23332 done; \
d5eec917 23333 echo "Doing maintainer-clean in tk" ; \
7fc2ca22 23334 (cd $(HOST_SUBDIR)/tk && \
8ec98d6c
NN
23335 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23336 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23337 "RANLIB=$${RANLIB}" \
23338 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 23339 maintainer-clean) \
8ec98d6c 23340 || exit 1
8ecc6504 23341
d5eec917 23342@endif tk
8ecc6504 23343
8ec98d6c 23344
d5eec917
PB
23345.PHONY: configure-libtermcap maybe-configure-libtermcap
23346maybe-configure-libtermcap:
23347@if libtermcap
23348maybe-configure-libtermcap: configure-libtermcap
23349configure-libtermcap:
7fc2ca22
PB
23350 @test ! -f $(HOST_SUBDIR)/libtermcap/Makefile || exit 0; \
23351 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libtermcap ; \
d5eec917
PB
23352 r=`${PWD_COMMAND}`; export r; \
23353 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23354 $(HOST_EXPORTS) \
23355 echo Configuring in libtermcap; \
7fc2ca22 23356 cd $(HOST_SUBDIR)/libtermcap || exit 1; \
d5eec917 23357 case $(srcdir) in \
7fc2ca22
PB
23358 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23359 *) topdir=`echo $(HOST_SUBDIR)/libtermcap/ | \
23360 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
d5eec917 23361 esac; \
7fc2ca22
PB
23362 srcdiroption="--srcdir=$${topdir}/libtermcap"; \
23363 libsrcdir="$$s/libtermcap"; \
d5eec917
PB
23364 $(SHELL) $${libsrcdir}/configure \
23365 $(HOST_CONFIGARGS) $${srcdiroption} \
23366 || exit 1
23367@endif libtermcap
23368
23369.PHONY: all-libtermcap maybe-all-libtermcap
23370maybe-all-libtermcap:
23371@if libtermcap
5e6b1f07 23372TARGET-libtermcap=all
d5eec917
PB
23373maybe-all-libtermcap: all-libtermcap
23374all-libtermcap: configure-libtermcap
23375 @r=`${PWD_COMMAND}`; export r; \
23376 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23377 $(SET_LIB_PATH) \
23378 $(HOST_EXPORTS) \
7fc2ca22
PB
23379 (cd $(HOST_SUBDIR)/libtermcap && \
23380 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-libtermcap))
d5eec917
PB
23381@endif libtermcap
23382
23383.PHONY: check-libtermcap maybe-check-libtermcap
23384maybe-check-libtermcap:
23385@if libtermcap
23386maybe-check-libtermcap: check-libtermcap
23387
23388check-libtermcap:
8ec98d6c 23389
a7e609d6 23390@endif libtermcap
8ec98d6c
NN
23391
23392.PHONY: install-libtermcap maybe-install-libtermcap
23393maybe-install-libtermcap:
a7e609d6
PB
23394@if libtermcap
23395maybe-install-libtermcap: install-libtermcap
8ec98d6c
NN
23396
23397install-libtermcap: installdirs
5230d454
L
23398 @r=`${PWD_COMMAND}`; export r; \
23399 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 23400 $(SET_LIB_PATH) \
a675b75a 23401 $(HOST_EXPORTS) \
7fc2ca22 23402 (cd $(HOST_SUBDIR)/libtermcap && \
93c60b6d 23403 $(MAKE) $(FLAGS_TO_PASS) install)
8ecc6504 23404
a7e609d6 23405@endif libtermcap
8ecc6504 23406
8ec98d6c 23407# Other targets (info, dvi, etc.)
70ffc148 23408
8ec98d6c
NN
23409.PHONY: maybe-info-libtermcap info-libtermcap
23410maybe-info-libtermcap:
a7e609d6
PB
23411@if libtermcap
23412maybe-info-libtermcap: info-libtermcap
8ec98d6c
NN
23413
23414info-libtermcap: \
23415 configure-libtermcap
23416 @[ -f ./libtermcap/Makefile ] || exit 0; \
23417 r=`${PWD_COMMAND}`; export r; \
5230d454 23418 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 23419 $(SET_LIB_PATH) \
a675b75a 23420 $(HOST_EXPORTS) \
d5eec917 23421 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
23422 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23423 done; \
23424 echo "Doing info in libtermcap" ; \
7fc2ca22 23425 (cd $(HOST_SUBDIR)/libtermcap && \
8ec98d6c
NN
23426 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23427 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23428 "RANLIB=$${RANLIB}" \
23429 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 23430 info) \
8ec98d6c 23431 || exit 1
8ecc6504 23432
a7e609d6 23433@endif libtermcap
8ecc6504 23434
8ec98d6c
NN
23435.PHONY: maybe-dvi-libtermcap dvi-libtermcap
23436maybe-dvi-libtermcap:
a7e609d6
PB
23437@if libtermcap
23438maybe-dvi-libtermcap: dvi-libtermcap
8ec98d6c
NN
23439
23440dvi-libtermcap: \
23441 configure-libtermcap
23442 @[ -f ./libtermcap/Makefile ] || exit 0; \
23443 r=`${PWD_COMMAND}`; export r; \
23444 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23445 $(SET_LIB_PATH) \
a675b75a 23446 $(HOST_EXPORTS) \
d5eec917 23447 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
23448 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23449 done; \
23450 echo "Doing dvi in libtermcap" ; \
7fc2ca22 23451 (cd $(HOST_SUBDIR)/libtermcap && \
8ec98d6c
NN
23452 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23453 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23454 "RANLIB=$${RANLIB}" \
23455 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 23456 dvi) \
8ec98d6c
NN
23457 || exit 1
23458
a7e609d6 23459@endif libtermcap
8ec98d6c 23460
b6fb961f
MS
23461.PHONY: maybe-html-libtermcap html-libtermcap
23462maybe-html-libtermcap:
23463@if libtermcap
23464maybe-html-libtermcap: html-libtermcap
23465
23466html-libtermcap: \
23467 configure-libtermcap
23468 @[ -f ./libtermcap/Makefile ] || exit 0; \
23469 r=`${PWD_COMMAND}`; export r; \
23470 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23471 $(SET_LIB_PATH) \
23472 $(HOST_EXPORTS) \
23473 for flag in $(EXTRA_HOST_FLAGS) ; do \
23474 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23475 done; \
23476 echo "Doing html in libtermcap" ; \
7fc2ca22 23477 (cd $(HOST_SUBDIR)/libtermcap && \
b6fb961f
MS
23478 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23479 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23480 "RANLIB=$${RANLIB}" \
23481 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23482 html) \
23483 || exit 1
23484
23485@endif libtermcap
23486
8ec98d6c
NN
23487.PHONY: maybe-TAGS-libtermcap TAGS-libtermcap
23488maybe-TAGS-libtermcap:
a7e609d6
PB
23489@if libtermcap
23490maybe-TAGS-libtermcap: TAGS-libtermcap
8ec98d6c
NN
23491
23492TAGS-libtermcap: \
23493 configure-libtermcap
23494 @[ -f ./libtermcap/Makefile ] || exit 0; \
23495 r=`${PWD_COMMAND}`; export r; \
23496 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23497 $(SET_LIB_PATH) \
a675b75a 23498 $(HOST_EXPORTS) \
d5eec917 23499 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
23500 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23501 done; \
23502 echo "Doing TAGS in libtermcap" ; \
7fc2ca22 23503 (cd $(HOST_SUBDIR)/libtermcap && \
8ec98d6c
NN
23504 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23505 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23506 "RANLIB=$${RANLIB}" \
23507 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 23508 TAGS) \
8ec98d6c
NN
23509 || exit 1
23510
a7e609d6 23511@endif libtermcap
8ec98d6c
NN
23512
23513.PHONY: maybe-install-info-libtermcap install-info-libtermcap
23514maybe-install-info-libtermcap:
a7e609d6
PB
23515@if libtermcap
23516maybe-install-info-libtermcap: install-info-libtermcap
8ec98d6c
NN
23517
23518install-info-libtermcap: \
23519 configure-libtermcap \
23520 info-libtermcap
23521 @[ -f ./libtermcap/Makefile ] || exit 0; \
23522 r=`${PWD_COMMAND}`; export r; \
23523 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23524 $(SET_LIB_PATH) \
a675b75a 23525 $(HOST_EXPORTS) \
d5eec917 23526 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
23527 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23528 done; \
23529 echo "Doing install-info in libtermcap" ; \
7fc2ca22 23530 (cd $(HOST_SUBDIR)/libtermcap && \
8ec98d6c
NN
23531 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23532 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23533 "RANLIB=$${RANLIB}" \
23534 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 23535 install-info) \
8ec98d6c
NN
23536 || exit 1
23537
a7e609d6 23538@endif libtermcap
8ec98d6c
NN
23539
23540.PHONY: maybe-installcheck-libtermcap installcheck-libtermcap
23541maybe-installcheck-libtermcap:
a7e609d6
PB
23542@if libtermcap
23543maybe-installcheck-libtermcap: installcheck-libtermcap
8ec98d6c
NN
23544
23545installcheck-libtermcap: \
23546 configure-libtermcap
23547 @[ -f ./libtermcap/Makefile ] || exit 0; \
23548 r=`${PWD_COMMAND}`; export r; \
23549 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23550 $(SET_LIB_PATH) \
a675b75a 23551 $(HOST_EXPORTS) \
d5eec917 23552 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
23553 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23554 done; \
23555 echo "Doing installcheck in libtermcap" ; \
7fc2ca22 23556 (cd $(HOST_SUBDIR)/libtermcap && \
8ec98d6c
NN
23557 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23558 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23559 "RANLIB=$${RANLIB}" \
23560 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 23561 installcheck) \
8ec98d6c
NN
23562 || exit 1
23563
a7e609d6 23564@endif libtermcap
8ec98d6c
NN
23565
23566.PHONY: maybe-mostlyclean-libtermcap mostlyclean-libtermcap
23567maybe-mostlyclean-libtermcap:
a7e609d6
PB
23568@if libtermcap
23569maybe-mostlyclean-libtermcap: mostlyclean-libtermcap
8ec98d6c
NN
23570
23571# libtermcap doesn't support mostlyclean.
23572mostlyclean-libtermcap:
23573
a7e609d6 23574@endif libtermcap
8ec98d6c
NN
23575
23576.PHONY: maybe-clean-libtermcap clean-libtermcap
23577maybe-clean-libtermcap:
a7e609d6
PB
23578@if libtermcap
23579maybe-clean-libtermcap: clean-libtermcap
8ec98d6c
NN
23580
23581# libtermcap doesn't support clean.
23582clean-libtermcap:
23583
a7e609d6 23584@endif libtermcap
8ec98d6c
NN
23585
23586.PHONY: maybe-distclean-libtermcap distclean-libtermcap
23587maybe-distclean-libtermcap:
a7e609d6
PB
23588@if libtermcap
23589maybe-distclean-libtermcap: distclean-libtermcap
8ec98d6c
NN
23590
23591# libtermcap doesn't support distclean.
23592distclean-libtermcap:
23593
a7e609d6 23594@endif libtermcap
8ec98d6c
NN
23595
23596.PHONY: maybe-maintainer-clean-libtermcap maintainer-clean-libtermcap
23597maybe-maintainer-clean-libtermcap:
a7e609d6
PB
23598@if libtermcap
23599maybe-maintainer-clean-libtermcap: maintainer-clean-libtermcap
8ec98d6c
NN
23600
23601# libtermcap doesn't support maintainer-clean.
23602maintainer-clean-libtermcap:
23603
a7e609d6 23604@endif libtermcap
8ec98d6c
NN
23605
23606
23607.PHONY: configure-utils maybe-configure-utils
23608maybe-configure-utils:
a7e609d6
PB
23609@if utils
23610maybe-configure-utils: configure-utils
8ec98d6c 23611configure-utils:
7fc2ca22
PB
23612 @test ! -f $(HOST_SUBDIR)/utils/Makefile || exit 0; \
23613 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/utils ; \
5230d454
L
23614 r=`${PWD_COMMAND}`; export r; \
23615 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 23616 $(HOST_EXPORTS) \
8ec98d6c 23617 echo Configuring in utils; \
7fc2ca22 23618 cd $(HOST_SUBDIR)/utils || exit 1; \
94f860c0 23619 case $(srcdir) in \
7fc2ca22
PB
23620 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23621 *) topdir=`echo $(HOST_SUBDIR)/utils/ | \
23622 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 23623 esac; \
7fc2ca22
PB
23624 srcdiroption="--srcdir=$${topdir}/utils"; \
23625 libsrcdir="$$s/utils"; \
94f860c0 23626 $(SHELL) $${libsrcdir}/configure \
63673a5b 23627 $(HOST_CONFIGARGS) $${srcdiroption} \
94f860c0 23628 || exit 1
a7e609d6 23629@endif utils
94f860c0 23630
8ec98d6c
NN
23631.PHONY: all-utils maybe-all-utils
23632maybe-all-utils:
a7e609d6 23633@if utils
5e6b1f07 23634TARGET-utils=all
a7e609d6 23635maybe-all-utils: all-utils
8ec98d6c
NN
23636all-utils: configure-utils
23637 @r=`${PWD_COMMAND}`; export r; \
23638 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23639 $(SET_LIB_PATH) \
a675b75a 23640 $(HOST_EXPORTS) \
7fc2ca22
PB
23641 (cd $(HOST_SUBDIR)/utils && \
23642 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-utils))
a7e609d6 23643@endif utils
8ec98d6c
NN
23644
23645.PHONY: check-utils maybe-check-utils
23646maybe-check-utils:
a7e609d6
PB
23647@if utils
23648maybe-check-utils: check-utils
8ec98d6c
NN
23649
23650check-utils:
23651
a7e609d6 23652@endif utils
8ec98d6c
NN
23653
23654.PHONY: install-utils maybe-install-utils
23655maybe-install-utils:
a7e609d6
PB
23656@if utils
23657maybe-install-utils: install-utils
8ec98d6c
NN
23658
23659install-utils: installdirs
23660 @r=`${PWD_COMMAND}`; export r; \
23661 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23662 $(SET_LIB_PATH) \
a675b75a 23663 $(HOST_EXPORTS) \
7fc2ca22 23664 (cd $(HOST_SUBDIR)/utils && \
93c60b6d 23665 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 23666
a7e609d6 23667@endif utils
8ec98d6c
NN
23668
23669# Other targets (info, dvi, etc.)
23670
23671.PHONY: maybe-info-utils info-utils
23672maybe-info-utils:
a7e609d6
PB
23673@if utils
23674maybe-info-utils: info-utils
8ec98d6c
NN
23675
23676info-utils: \
23677 configure-utils
23678 @[ -f ./utils/Makefile ] || exit 0; \
23679 r=`${PWD_COMMAND}`; export r; \
23680 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23681 $(SET_LIB_PATH) \
a675b75a 23682 $(HOST_EXPORTS) \
d5eec917 23683 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
23684 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23685 done; \
23686 echo "Doing info in utils" ; \
7fc2ca22 23687 (cd $(HOST_SUBDIR)/utils && \
8ec98d6c
NN
23688 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23689 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23690 "RANLIB=$${RANLIB}" \
23691 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 23692 info) \
8ec98d6c
NN
23693 || exit 1
23694
a7e609d6 23695@endif utils
8ec98d6c
NN
23696
23697.PHONY: maybe-dvi-utils dvi-utils
23698maybe-dvi-utils:
a7e609d6
PB
23699@if utils
23700maybe-dvi-utils: dvi-utils
8ec98d6c
NN
23701
23702dvi-utils: \
23703 configure-utils
23704 @[ -f ./utils/Makefile ] || exit 0; \
23705 r=`${PWD_COMMAND}`; export r; \
5230d454 23706 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 23707 $(SET_LIB_PATH) \
a675b75a 23708 $(HOST_EXPORTS) \
d5eec917 23709 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
23710 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23711 done; \
23712 echo "Doing dvi in utils" ; \
7fc2ca22 23713 (cd $(HOST_SUBDIR)/utils && \
8ec98d6c
NN
23714 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23715 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23716 "RANLIB=$${RANLIB}" \
23717 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 23718 dvi) \
8ec98d6c 23719 || exit 1
8ecc6504 23720
a7e609d6 23721@endif utils
8ecc6504 23722
b6fb961f
MS
23723.PHONY: maybe-html-utils html-utils
23724maybe-html-utils:
23725@if utils
23726maybe-html-utils: html-utils
23727
23728html-utils: \
23729 configure-utils
23730 @[ -f ./utils/Makefile ] || exit 0; \
23731 r=`${PWD_COMMAND}`; export r; \
23732 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23733 $(SET_LIB_PATH) \
23734 $(HOST_EXPORTS) \
23735 for flag in $(EXTRA_HOST_FLAGS) ; do \
23736 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23737 done; \
23738 echo "Doing html in utils" ; \
7fc2ca22 23739 (cd $(HOST_SUBDIR)/utils && \
b6fb961f
MS
23740 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23741 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23742 "RANLIB=$${RANLIB}" \
23743 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23744 html) \
23745 || exit 1
23746
23747@endif utils
23748
8ec98d6c
NN
23749.PHONY: maybe-TAGS-utils TAGS-utils
23750maybe-TAGS-utils:
a7e609d6
PB
23751@if utils
23752maybe-TAGS-utils: TAGS-utils
8ec98d6c
NN
23753
23754TAGS-utils: \
23755 configure-utils
23756 @[ -f ./utils/Makefile ] || exit 0; \
23757 r=`${PWD_COMMAND}`; export r; \
5230d454 23758 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 23759 $(SET_LIB_PATH) \
a675b75a 23760 $(HOST_EXPORTS) \
d5eec917 23761 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
23762 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23763 done; \
23764 echo "Doing TAGS in utils" ; \
7fc2ca22 23765 (cd $(HOST_SUBDIR)/utils && \
8ec98d6c
NN
23766 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23767 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23768 "RANLIB=$${RANLIB}" \
23769 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 23770 TAGS) \
8ec98d6c 23771 || exit 1
8ecc6504 23772
a7e609d6 23773@endif utils
8ecc6504 23774
8ec98d6c
NN
23775.PHONY: maybe-install-info-utils install-info-utils
23776maybe-install-info-utils:
a7e609d6
PB
23777@if utils
23778maybe-install-info-utils: install-info-utils
70ffc148 23779
8ec98d6c
NN
23780install-info-utils: \
23781 configure-utils \
23782 info-utils
23783 @[ -f ./utils/Makefile ] || exit 0; \
23784 r=`${PWD_COMMAND}`; export r; \
5230d454 23785 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 23786 $(SET_LIB_PATH) \
a675b75a 23787 $(HOST_EXPORTS) \
d5eec917 23788 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
23789 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23790 done; \
23791 echo "Doing install-info in utils" ; \
7fc2ca22 23792 (cd $(HOST_SUBDIR)/utils && \
8ec98d6c
NN
23793 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23794 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23795 "RANLIB=$${RANLIB}" \
23796 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 23797 install-info) \
8ec98d6c 23798 || exit 1
8ecc6504 23799
a7e609d6 23800@endif utils
8ecc6504 23801
8ec98d6c
NN
23802.PHONY: maybe-installcheck-utils installcheck-utils
23803maybe-installcheck-utils:
a7e609d6
PB
23804@if utils
23805maybe-installcheck-utils: installcheck-utils
8ec98d6c
NN
23806
23807installcheck-utils: \
23808 configure-utils
23809 @[ -f ./utils/Makefile ] || exit 0; \
5230d454
L
23810 r=`${PWD_COMMAND}`; export r; \
23811 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8ec98d6c 23812 $(SET_LIB_PATH) \
a675b75a 23813 $(HOST_EXPORTS) \
d5eec917 23814 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
23815 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23816 done; \
23817 echo "Doing installcheck in utils" ; \
7fc2ca22 23818 (cd $(HOST_SUBDIR)/utils && \
8ec98d6c
NN
23819 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23820 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23821 "RANLIB=$${RANLIB}" \
23822 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 23823 installcheck) \
94f860c0
NN
23824 || exit 1
23825
a7e609d6 23826@endif utils
8ec98d6c
NN
23827
23828.PHONY: maybe-mostlyclean-utils mostlyclean-utils
23829maybe-mostlyclean-utils:
a7e609d6
PB
23830@if utils
23831maybe-mostlyclean-utils: mostlyclean-utils
8ec98d6c
NN
23832
23833mostlyclean-utils:
23834 @[ -f ./utils/Makefile ] || exit 0; \
23835 r=`${PWD_COMMAND}`; export r; \
5230d454 23836 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 23837 $(SET_LIB_PATH) \
a675b75a 23838 $(HOST_EXPORTS) \
d5eec917 23839 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
23840 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23841 done; \
23842 echo "Doing mostlyclean in utils" ; \
7fc2ca22 23843 (cd $(HOST_SUBDIR)/utils && \
8ec98d6c
NN
23844 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23845 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23846 "RANLIB=$${RANLIB}" \
23847 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 23848 mostlyclean) \
8ec98d6c 23849 || exit 1
8ecc6504 23850
a7e609d6 23851@endif utils
8ecc6504 23852
8ec98d6c
NN
23853.PHONY: maybe-clean-utils clean-utils
23854maybe-clean-utils:
a7e609d6
PB
23855@if utils
23856maybe-clean-utils: clean-utils
8ec98d6c
NN
23857
23858clean-utils:
23859 @[ -f ./utils/Makefile ] || exit 0; \
23860 r=`${PWD_COMMAND}`; export r; \
5230d454 23861 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 23862 $(SET_LIB_PATH) \
a675b75a 23863 $(HOST_EXPORTS) \
d5eec917 23864 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
23865 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23866 done; \
23867 echo "Doing clean in utils" ; \
7fc2ca22 23868 (cd $(HOST_SUBDIR)/utils && \
8ec98d6c
NN
23869 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23870 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23871 "RANLIB=$${RANLIB}" \
23872 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 23873 clean) \
8ec98d6c 23874 || exit 1
8ecc6504 23875
a7e609d6 23876@endif utils
8ecc6504 23877
8ec98d6c
NN
23878.PHONY: maybe-distclean-utils distclean-utils
23879maybe-distclean-utils:
a7e609d6
PB
23880@if utils
23881maybe-distclean-utils: distclean-utils
70ffc148 23882
8ec98d6c
NN
23883distclean-utils:
23884 @[ -f ./utils/Makefile ] || exit 0; \
23885 r=`${PWD_COMMAND}`; export r; \
5230d454 23886 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 23887 $(SET_LIB_PATH) \
a675b75a 23888 $(HOST_EXPORTS) \
d5eec917 23889 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
23890 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23891 done; \
23892 echo "Doing distclean in utils" ; \
7fc2ca22 23893 (cd $(HOST_SUBDIR)/utils && \
8ec98d6c
NN
23894 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23895 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23896 "RANLIB=$${RANLIB}" \
23897 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 23898 distclean) \
8ec98d6c 23899 || exit 1
8ecc6504 23900
a7e609d6 23901@endif utils
8ecc6504 23902
8ec98d6c
NN
23903.PHONY: maybe-maintainer-clean-utils maintainer-clean-utils
23904maybe-maintainer-clean-utils:
a7e609d6
PB
23905@if utils
23906maybe-maintainer-clean-utils: maintainer-clean-utils
8ec98d6c
NN
23907
23908maintainer-clean-utils:
23909 @[ -f ./utils/Makefile ] || exit 0; \
5230d454
L
23910 r=`${PWD_COMMAND}`; export r; \
23911 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8ec98d6c 23912 $(SET_LIB_PATH) \
a675b75a 23913 $(HOST_EXPORTS) \
d5eec917 23914 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
23915 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23916 done; \
23917 echo "Doing maintainer-clean in utils" ; \
7fc2ca22 23918 (cd $(HOST_SUBDIR)/utils && \
8ec98d6c
NN
23919 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23920 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23921 "RANLIB=$${RANLIB}" \
23922 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d5eec917 23923 maintainer-clean) \
94f860c0
NN
23924 || exit 1
23925
a7e609d6 23926@endif utils
8ecc6504 23927
8ecc6504 23928
7fc2ca22
PB
23929.PHONY: configure-gnattools maybe-configure-gnattools
23930maybe-configure-gnattools:
23931@if gnattools
23932maybe-configure-gnattools: configure-gnattools
23933configure-gnattools:
23934 @test ! -f $(HOST_SUBDIR)/gnattools/Makefile || exit 0; \
23935 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gnattools ; \
23936 r=`${PWD_COMMAND}`; export r; \
23937 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23938 $(HOST_EXPORTS) \
23939 echo Configuring in gnattools; \
23940 cd $(HOST_SUBDIR)/gnattools || exit 1; \
23941 case $(srcdir) in \
23942 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23943 *) topdir=`echo $(HOST_SUBDIR)/gnattools/ | \
23944 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23945 esac; \
23946 srcdiroption="--srcdir=$${topdir}/gnattools"; \
23947 libsrcdir="$$s/gnattools"; \
23948 $(SHELL) $${libsrcdir}/configure \
23949 $(HOST_CONFIGARGS) $${srcdiroption} \
23950 || exit 1
23951@endif gnattools
23952
23953.PHONY: all-gnattools maybe-all-gnattools
23954maybe-all-gnattools:
23955@if gnattools
23956TARGET-gnattools=all
23957maybe-all-gnattools: all-gnattools
23958all-gnattools: configure-gnattools
23959 @r=`${PWD_COMMAND}`; export r; \
23960 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23961 $(SET_LIB_PATH) \
23962 $(HOST_EXPORTS) \
23963 (cd $(HOST_SUBDIR)/gnattools && \
23964 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-gnattools))
23965@endif gnattools
23966
23967.PHONY: check-gnattools maybe-check-gnattools
23968maybe-check-gnattools:
23969@if gnattools
23970maybe-check-gnattools: check-gnattools
23971
23972check-gnattools:
23973 @r=`${PWD_COMMAND}`; export r; \
23974 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23975 $(SET_LIB_PATH) \
23976 $(HOST_EXPORTS) \
23977 (cd $(HOST_SUBDIR)/gnattools && \
23978 $(MAKE) $(FLAGS_TO_PASS) check)
23979
23980@endif gnattools
23981
23982.PHONY: install-gnattools maybe-install-gnattools
23983maybe-install-gnattools:
23984@if gnattools
23985maybe-install-gnattools: install-gnattools
23986
23987install-gnattools: installdirs
23988 @r=`${PWD_COMMAND}`; export r; \
23989 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23990 $(SET_LIB_PATH) \
23991 $(HOST_EXPORTS) \
23992 (cd $(HOST_SUBDIR)/gnattools && \
93c60b6d 23993 $(MAKE) $(FLAGS_TO_PASS) install)
7fc2ca22
PB
23994
23995@endif gnattools
23996
23997# Other targets (info, dvi, etc.)
23998
23999.PHONY: maybe-info-gnattools info-gnattools
24000maybe-info-gnattools:
24001@if gnattools
24002maybe-info-gnattools: info-gnattools
24003
24004info-gnattools: \
24005 configure-gnattools
24006 @[ -f ./gnattools/Makefile ] || exit 0; \
24007 r=`${PWD_COMMAND}`; export r; \
24008 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24009 $(SET_LIB_PATH) \
24010 $(HOST_EXPORTS) \
24011 for flag in $(EXTRA_HOST_FLAGS) ; do \
24012 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24013 done; \
24014 echo "Doing info in gnattools" ; \
24015 (cd $(HOST_SUBDIR)/gnattools && \
24016 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24017 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24018 "RANLIB=$${RANLIB}" \
24019 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
24020 info) \
24021 || exit 1
24022
24023@endif gnattools
24024
24025.PHONY: maybe-dvi-gnattools dvi-gnattools
24026maybe-dvi-gnattools:
24027@if gnattools
24028maybe-dvi-gnattools: dvi-gnattools
24029
24030dvi-gnattools: \
24031 configure-gnattools
24032 @[ -f ./gnattools/Makefile ] || exit 0; \
24033 r=`${PWD_COMMAND}`; export r; \
24034 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24035 $(SET_LIB_PATH) \
24036 $(HOST_EXPORTS) \
24037 for flag in $(EXTRA_HOST_FLAGS) ; do \
24038 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24039 done; \
24040 echo "Doing dvi in gnattools" ; \
24041 (cd $(HOST_SUBDIR)/gnattools && \
24042 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24043 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24044 "RANLIB=$${RANLIB}" \
24045 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
24046 dvi) \
24047 || exit 1
24048
24049@endif gnattools
24050
24051.PHONY: maybe-html-gnattools html-gnattools
24052maybe-html-gnattools:
24053@if gnattools
24054maybe-html-gnattools: html-gnattools
24055
24056html-gnattools: \
24057 configure-gnattools
24058 @[ -f ./gnattools/Makefile ] || exit 0; \
24059 r=`${PWD_COMMAND}`; export r; \
24060 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24061 $(SET_LIB_PATH) \
24062 $(HOST_EXPORTS) \
24063 for flag in $(EXTRA_HOST_FLAGS) ; do \
24064 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24065 done; \
24066 echo "Doing html in gnattools" ; \
24067 (cd $(HOST_SUBDIR)/gnattools && \
24068 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24069 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24070 "RANLIB=$${RANLIB}" \
24071 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
24072 html) \
24073 || exit 1
24074
24075@endif gnattools
24076
24077.PHONY: maybe-TAGS-gnattools TAGS-gnattools
24078maybe-TAGS-gnattools:
24079@if gnattools
24080maybe-TAGS-gnattools: TAGS-gnattools
24081
24082TAGS-gnattools: \
24083 configure-gnattools
24084 @[ -f ./gnattools/Makefile ] || exit 0; \
24085 r=`${PWD_COMMAND}`; export r; \
24086 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24087 $(SET_LIB_PATH) \
24088 $(HOST_EXPORTS) \
24089 for flag in $(EXTRA_HOST_FLAGS) ; do \
24090 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24091 done; \
24092 echo "Doing TAGS in gnattools" ; \
24093 (cd $(HOST_SUBDIR)/gnattools && \
24094 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24095 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24096 "RANLIB=$${RANLIB}" \
24097 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
24098 TAGS) \
24099 || exit 1
24100
24101@endif gnattools
24102
24103.PHONY: maybe-install-info-gnattools install-info-gnattools
24104maybe-install-info-gnattools:
24105@if gnattools
24106maybe-install-info-gnattools: install-info-gnattools
24107
24108install-info-gnattools: \
24109 configure-gnattools \
24110 info-gnattools
24111 @[ -f ./gnattools/Makefile ] || exit 0; \
24112 r=`${PWD_COMMAND}`; export r; \
24113 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24114 $(SET_LIB_PATH) \
24115 $(HOST_EXPORTS) \
24116 for flag in $(EXTRA_HOST_FLAGS) ; do \
24117 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24118 done; \
24119 echo "Doing install-info in gnattools" ; \
24120 (cd $(HOST_SUBDIR)/gnattools && \
24121 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24122 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24123 "RANLIB=$${RANLIB}" \
24124 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
24125 install-info) \
24126 || exit 1
24127
24128@endif gnattools
24129
24130.PHONY: maybe-installcheck-gnattools installcheck-gnattools
24131maybe-installcheck-gnattools:
24132@if gnattools
24133maybe-installcheck-gnattools: installcheck-gnattools
24134
24135installcheck-gnattools: \
24136 configure-gnattools
24137 @[ -f ./gnattools/Makefile ] || exit 0; \
24138 r=`${PWD_COMMAND}`; export r; \
24139 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24140 $(SET_LIB_PATH) \
24141 $(HOST_EXPORTS) \
24142 for flag in $(EXTRA_HOST_FLAGS) ; do \
24143 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24144 done; \
24145 echo "Doing installcheck in gnattools" ; \
24146 (cd $(HOST_SUBDIR)/gnattools && \
24147 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24148 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24149 "RANLIB=$${RANLIB}" \
24150 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
24151 installcheck) \
24152 || exit 1
24153
24154@endif gnattools
24155
24156.PHONY: maybe-mostlyclean-gnattools mostlyclean-gnattools
24157maybe-mostlyclean-gnattools:
24158@if gnattools
24159maybe-mostlyclean-gnattools: mostlyclean-gnattools
24160
24161mostlyclean-gnattools:
24162 @[ -f ./gnattools/Makefile ] || exit 0; \
24163 r=`${PWD_COMMAND}`; export r; \
24164 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24165 $(SET_LIB_PATH) \
24166 $(HOST_EXPORTS) \
24167 for flag in $(EXTRA_HOST_FLAGS) ; do \
24168 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24169 done; \
24170 echo "Doing mostlyclean in gnattools" ; \
24171 (cd $(HOST_SUBDIR)/gnattools && \
24172 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24173 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24174 "RANLIB=$${RANLIB}" \
24175 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
24176 mostlyclean) \
24177 || exit 1
24178
24179@endif gnattools
24180
24181.PHONY: maybe-clean-gnattools clean-gnattools
24182maybe-clean-gnattools:
24183@if gnattools
24184maybe-clean-gnattools: clean-gnattools
24185
24186clean-gnattools:
24187 @[ -f ./gnattools/Makefile ] || exit 0; \
24188 r=`${PWD_COMMAND}`; export r; \
24189 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24190 $(SET_LIB_PATH) \
24191 $(HOST_EXPORTS) \
24192 for flag in $(EXTRA_HOST_FLAGS) ; do \
24193 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24194 done; \
24195 echo "Doing clean in gnattools" ; \
24196 (cd $(HOST_SUBDIR)/gnattools && \
24197 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24198 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24199 "RANLIB=$${RANLIB}" \
24200 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
24201 clean) \
24202 || exit 1
24203
24204@endif gnattools
24205
24206.PHONY: maybe-distclean-gnattools distclean-gnattools
24207maybe-distclean-gnattools:
24208@if gnattools
24209maybe-distclean-gnattools: distclean-gnattools
24210
24211distclean-gnattools:
24212 @[ -f ./gnattools/Makefile ] || exit 0; \
24213 r=`${PWD_COMMAND}`; export r; \
24214 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24215 $(SET_LIB_PATH) \
24216 $(HOST_EXPORTS) \
24217 for flag in $(EXTRA_HOST_FLAGS) ; do \
24218 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24219 done; \
24220 echo "Doing distclean in gnattools" ; \
24221 (cd $(HOST_SUBDIR)/gnattools && \
24222 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24223 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24224 "RANLIB=$${RANLIB}" \
24225 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
24226 distclean) \
24227 || exit 1
24228
24229@endif gnattools
24230
24231.PHONY: maybe-maintainer-clean-gnattools maintainer-clean-gnattools
24232maybe-maintainer-clean-gnattools:
24233@if gnattools
24234maybe-maintainer-clean-gnattools: maintainer-clean-gnattools
24235
24236maintainer-clean-gnattools:
24237 @[ -f ./gnattools/Makefile ] || exit 0; \
24238 r=`${PWD_COMMAND}`; export r; \
24239 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24240 $(SET_LIB_PATH) \
24241 $(HOST_EXPORTS) \
24242 for flag in $(EXTRA_HOST_FLAGS) ; do \
24243 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24244 done; \
24245 echo "Doing maintainer-clean in gnattools" ; \
24246 (cd $(HOST_SUBDIR)/gnattools && \
24247 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24248 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24249 "RANLIB=$${RANLIB}" \
24250 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
24251 maintainer-clean) \
24252 || exit 1
24253
24254@endif gnattools
24255
24256
8ecc6504 24257
8ec98d6c
NN
24258# ---------------------------------------
24259# Modules which run on the target machine
24260# ---------------------------------------
70ffc148 24261
8ec98d6c
NN
24262.PHONY: configure-target-libstdc++-v3 maybe-configure-target-libstdc++-v3
24263maybe-configure-target-libstdc++-v3:
a7e609d6
PB
24264@if target-libstdc++-v3
24265maybe-configure-target-libstdc++-v3: configure-target-libstdc++-v3
8ecc6504 24266
8ec98d6c
NN
24267# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
24268$(TARGET_SUBDIR)/libstdc++-v3/multilib.out: multilib.out
24269 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
24270 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || : ; \
24271 cp multilib.out $(TARGET_SUBDIR)/libstdc++-v3/multilib.out
8ecc6504 24272
8ec98d6c
NN
24273configure-target-libstdc++-v3: $(TARGET_SUBDIR)/libstdc++-v3/multilib.out
24274 @test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
24275 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
5230d454
L
24276 r=`${PWD_COMMAND}`; export r; \
24277 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8ec98d6c 24278 $(SET_LIB_PATH) \
a675b75a 24279 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
24280 echo Configuring in $(TARGET_SUBDIR)/libstdc++-v3; \
24281 cd "$(TARGET_SUBDIR)/libstdc++-v3" || exit 1; \
94f860c0 24282 case $(srcdir) in \
7fc2ca22
PB
24283 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24284 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
24285 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 24286 esac; \
7fc2ca22
PB
24287 srcdiroption="--srcdir=$${topdir}/libstdc++-v3"; \
24288 libsrcdir="$$s/libstdc++-v3"; \
8ec98d6c
NN
24289 rm -f no-such-file || : ; \
24290 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
24291 $(TARGET_CONFIGARGS) $${srcdiroption} \
63673a5b 24292 --with-target-subdir="$(TARGET_SUBDIR)" \
94f860c0 24293 || exit 1
a7e609d6 24294@endif target-libstdc++-v3
94f860c0 24295
8ec98d6c
NN
24296.PHONY: all-target-libstdc++-v3 maybe-all-target-libstdc++-v3
24297maybe-all-target-libstdc++-v3:
a7e609d6 24298@if target-libstdc++-v3
6a19fd82 24299TARGET-target-libstdc++-v3=all
a7e609d6 24300maybe-all-target-libstdc++-v3: all-target-libstdc++-v3
8ec98d6c 24301all-target-libstdc++-v3: configure-target-libstdc++-v3
5230d454
L
24302 @r=`${PWD_COMMAND}`; export r; \
24303 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 24304 $(SET_LIB_PATH) \
a675b75a 24305 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c 24306 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
6a19fd82 24307 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' $(TARGET-target-libstdc++-v3))
a7e609d6 24308@endif target-libstdc++-v3
8ecc6504 24309
8ec98d6c
NN
24310.PHONY: check-target-libstdc++-v3 maybe-check-target-libstdc++-v3
24311maybe-check-target-libstdc++-v3:
a7e609d6
PB
24312@if target-libstdc++-v3
24313maybe-check-target-libstdc++-v3: check-target-libstdc++-v3
8ecc6504 24314
8ec98d6c 24315check-target-libstdc++-v3:
5230d454
L
24316 @r=`${PWD_COMMAND}`; export r; \
24317 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 24318 $(SET_LIB_PATH) \
a675b75a 24319 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c 24320 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
63673a5b 24321 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
8ecc6504 24322
a7e609d6 24323@endif target-libstdc++-v3
8ecc6504 24324
8ec98d6c
NN
24325.PHONY: install-target-libstdc++-v3 maybe-install-target-libstdc++-v3
24326maybe-install-target-libstdc++-v3:
a7e609d6
PB
24327@if target-libstdc++-v3
24328maybe-install-target-libstdc++-v3: install-target-libstdc++-v3
70ffc148 24329
8ec98d6c 24330install-target-libstdc++-v3: installdirs
5230d454
L
24331 @r=`${PWD_COMMAND}`; export r; \
24332 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 24333 $(SET_LIB_PATH) \
a675b75a 24334 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c 24335 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
63673a5b 24336 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
8ecc6504 24337
a7e609d6 24338@endif target-libstdc++-v3
94f860c0 24339
8ec98d6c 24340# Other targets (info, dvi, etc.)
8ecc6504 24341
8ec98d6c
NN
24342.PHONY: maybe-info-target-libstdc++-v3 info-target-libstdc++-v3
24343maybe-info-target-libstdc++-v3:
a7e609d6
PB
24344@if target-libstdc++-v3
24345maybe-info-target-libstdc++-v3: info-target-libstdc++-v3
8ecc6504 24346
8ec98d6c
NN
24347info-target-libstdc++-v3: \
24348 configure-target-libstdc++-v3
24349 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
24350 r=`${PWD_COMMAND}`; export r; \
5230d454 24351 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 24352 $(SET_LIB_PATH) \
a675b75a 24353 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
24354 echo "Doing info in $(TARGET_SUBDIR)/libstdc++-v3" ; \
24355 for flag in $(EXTRA_TARGET_FLAGS); do \
24356 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24357 done; \
24358 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
24359 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24360 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24361 "RANLIB=$${RANLIB}" \
24362 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 24363 info) \
8ec98d6c 24364 || exit 1
8ecc6504 24365
a7e609d6 24366@endif target-libstdc++-v3
8ecc6504 24367
8ec98d6c
NN
24368.PHONY: maybe-dvi-target-libstdc++-v3 dvi-target-libstdc++-v3
24369maybe-dvi-target-libstdc++-v3:
a7e609d6
PB
24370@if target-libstdc++-v3
24371maybe-dvi-target-libstdc++-v3: dvi-target-libstdc++-v3
70ffc148 24372
8ec98d6c
NN
24373dvi-target-libstdc++-v3: \
24374 configure-target-libstdc++-v3
24375 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
24376 r=`${PWD_COMMAND}`; export r; \
5230d454 24377 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 24378 $(SET_LIB_PATH) \
a675b75a 24379 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
24380 echo "Doing dvi in $(TARGET_SUBDIR)/libstdc++-v3" ; \
24381 for flag in $(EXTRA_TARGET_FLAGS); do \
24382 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24383 done; \
24384 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
24385 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24386 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24387 "RANLIB=$${RANLIB}" \
24388 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 24389 dvi) \
8ec98d6c 24390 || exit 1
8ecc6504 24391
a7e609d6 24392@endif target-libstdc++-v3
8ecc6504 24393
b6fb961f
MS
24394.PHONY: maybe-html-target-libstdc++-v3 html-target-libstdc++-v3
24395maybe-html-target-libstdc++-v3:
24396@if target-libstdc++-v3
24397maybe-html-target-libstdc++-v3: html-target-libstdc++-v3
24398
24399html-target-libstdc++-v3: \
24400 configure-target-libstdc++-v3
24401 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
24402 r=`${PWD_COMMAND}`; export r; \
24403 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24404 $(SET_LIB_PATH) \
24405 $(RAW_CXX_TARGET_EXPORTS) \
24406 echo "Doing html in $(TARGET_SUBDIR)/libstdc++-v3" ; \
24407 for flag in $(EXTRA_TARGET_FLAGS); do \
24408 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24409 done; \
24410 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
24411 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24412 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24413 "RANLIB=$${RANLIB}" \
24414 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
24415 html) \
24416 || exit 1
24417
24418@endif target-libstdc++-v3
24419
8ec98d6c
NN
24420.PHONY: maybe-TAGS-target-libstdc++-v3 TAGS-target-libstdc++-v3
24421maybe-TAGS-target-libstdc++-v3:
a7e609d6
PB
24422@if target-libstdc++-v3
24423maybe-TAGS-target-libstdc++-v3: TAGS-target-libstdc++-v3
8ec98d6c
NN
24424
24425TAGS-target-libstdc++-v3: \
24426 configure-target-libstdc++-v3
24427 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
5230d454
L
24428 r=`${PWD_COMMAND}`; export r; \
24429 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8ec98d6c 24430 $(SET_LIB_PATH) \
a675b75a 24431 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
24432 echo "Doing TAGS in $(TARGET_SUBDIR)/libstdc++-v3" ; \
24433 for flag in $(EXTRA_TARGET_FLAGS); do \
24434 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24435 done; \
24436 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
24437 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24438 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24439 "RANLIB=$${RANLIB}" \
24440 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 24441 TAGS) \
94f860c0
NN
24442 || exit 1
24443
a7e609d6 24444@endif target-libstdc++-v3
8ecc6504 24445
8ec98d6c
NN
24446.PHONY: maybe-install-info-target-libstdc++-v3 install-info-target-libstdc++-v3
24447maybe-install-info-target-libstdc++-v3:
a7e609d6
PB
24448@if target-libstdc++-v3
24449maybe-install-info-target-libstdc++-v3: install-info-target-libstdc++-v3
8ecc6504 24450
8ec98d6c
NN
24451install-info-target-libstdc++-v3: \
24452 configure-target-libstdc++-v3 \
24453 info-target-libstdc++-v3
24454 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
24455 r=`${PWD_COMMAND}`; export r; \
5230d454 24456 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 24457 $(SET_LIB_PATH) \
a675b75a 24458 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
24459 echo "Doing install-info in $(TARGET_SUBDIR)/libstdc++-v3" ; \
24460 for flag in $(EXTRA_TARGET_FLAGS); do \
24461 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24462 done; \
24463 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
24464 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24465 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24466 "RANLIB=$${RANLIB}" \
24467 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 24468 install-info) \
8ec98d6c 24469 || exit 1
8ecc6504 24470
a7e609d6 24471@endif target-libstdc++-v3
8ecc6504 24472
8ec98d6c
NN
24473.PHONY: maybe-installcheck-target-libstdc++-v3 installcheck-target-libstdc++-v3
24474maybe-installcheck-target-libstdc++-v3:
a7e609d6
PB
24475@if target-libstdc++-v3
24476maybe-installcheck-target-libstdc++-v3: installcheck-target-libstdc++-v3
70ffc148 24477
8ec98d6c
NN
24478installcheck-target-libstdc++-v3: \
24479 configure-target-libstdc++-v3
24480 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
24481 r=`${PWD_COMMAND}`; export r; \
5230d454 24482 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 24483 $(SET_LIB_PATH) \
a675b75a 24484 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
24485 echo "Doing installcheck in $(TARGET_SUBDIR)/libstdc++-v3" ; \
24486 for flag in $(EXTRA_TARGET_FLAGS); do \
24487 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24488 done; \
24489 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
24490 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24491 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24492 "RANLIB=$${RANLIB}" \
24493 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 24494 installcheck) \
8ec98d6c 24495 || exit 1
8ecc6504 24496
a7e609d6 24497@endif target-libstdc++-v3
8ecc6504 24498
8ec98d6c
NN
24499.PHONY: maybe-mostlyclean-target-libstdc++-v3 mostlyclean-target-libstdc++-v3
24500maybe-mostlyclean-target-libstdc++-v3:
a7e609d6
PB
24501@if target-libstdc++-v3
24502maybe-mostlyclean-target-libstdc++-v3: mostlyclean-target-libstdc++-v3
8ec98d6c
NN
24503
24504mostlyclean-target-libstdc++-v3:
24505 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
5230d454
L
24506 r=`${PWD_COMMAND}`; export r; \
24507 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8ec98d6c 24508 $(SET_LIB_PATH) \
a675b75a 24509 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
24510 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
24511 for flag in $(EXTRA_TARGET_FLAGS); do \
24512 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24513 done; \
24514 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
24515 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24516 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24517 "RANLIB=$${RANLIB}" \
24518 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 24519 mostlyclean) \
94f860c0
NN
24520 || exit 1
24521
a7e609d6 24522@endif target-libstdc++-v3
8ec98d6c
NN
24523
24524.PHONY: maybe-clean-target-libstdc++-v3 clean-target-libstdc++-v3
24525maybe-clean-target-libstdc++-v3:
a7e609d6
PB
24526@if target-libstdc++-v3
24527maybe-clean-target-libstdc++-v3: clean-target-libstdc++-v3
8ec98d6c
NN
24528
24529clean-target-libstdc++-v3:
24530 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
24531 r=`${PWD_COMMAND}`; export r; \
5230d454 24532 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 24533 $(SET_LIB_PATH) \
a675b75a 24534 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
24535 echo "Doing clean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
24536 for flag in $(EXTRA_TARGET_FLAGS); do \
24537 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24538 done; \
24539 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
24540 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24541 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24542 "RANLIB=$${RANLIB}" \
24543 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 24544 clean) \
8ec98d6c 24545 || exit 1
8ecc6504 24546
a7e609d6 24547@endif target-libstdc++-v3
8ecc6504 24548
8ec98d6c
NN
24549.PHONY: maybe-distclean-target-libstdc++-v3 distclean-target-libstdc++-v3
24550maybe-distclean-target-libstdc++-v3:
a7e609d6
PB
24551@if target-libstdc++-v3
24552maybe-distclean-target-libstdc++-v3: distclean-target-libstdc++-v3
8ec98d6c
NN
24553
24554distclean-target-libstdc++-v3:
24555 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
24556 r=`${PWD_COMMAND}`; export r; \
5230d454 24557 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 24558 $(SET_LIB_PATH) \
a675b75a 24559 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
24560 echo "Doing distclean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
24561 for flag in $(EXTRA_TARGET_FLAGS); do \
24562 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24563 done; \
24564 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
24565 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24566 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24567 "RANLIB=$${RANLIB}" \
24568 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 24569 distclean) \
8ec98d6c 24570 || exit 1
8ecc6504 24571
a7e609d6 24572@endif target-libstdc++-v3
8ecc6504 24573
8ec98d6c
NN
24574.PHONY: maybe-maintainer-clean-target-libstdc++-v3 maintainer-clean-target-libstdc++-v3
24575maybe-maintainer-clean-target-libstdc++-v3:
a7e609d6
PB
24576@if target-libstdc++-v3
24577maybe-maintainer-clean-target-libstdc++-v3: maintainer-clean-target-libstdc++-v3
70ffc148 24578
8ec98d6c
NN
24579maintainer-clean-target-libstdc++-v3:
24580 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
24581 r=`${PWD_COMMAND}`; export r; \
5230d454 24582 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 24583 $(SET_LIB_PATH) \
a675b75a 24584 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
24585 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
24586 for flag in $(EXTRA_TARGET_FLAGS); do \
24587 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24588 done; \
24589 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
24590 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24591 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24592 "RANLIB=$${RANLIB}" \
24593 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 24594 maintainer-clean) \
8ec98d6c 24595 || exit 1
8ecc6504 24596
a7e609d6 24597@endif target-libstdc++-v3
8ecc6504 24598
8ec98d6c 24599
cb2333e8
DD
24600.PHONY: configure-target-libmudflap maybe-configure-target-libmudflap
24601maybe-configure-target-libmudflap:
a7e609d6
PB
24602@if target-libmudflap
24603maybe-configure-target-libmudflap: configure-target-libmudflap
8ec98d6c
NN
24604
24605# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
cb2333e8
DD
24606$(TARGET_SUBDIR)/libmudflap/multilib.out: multilib.out
24607 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmudflap ; \
24608 rm -f $(TARGET_SUBDIR)/libmudflap/Makefile || : ; \
24609 cp multilib.out $(TARGET_SUBDIR)/libmudflap/multilib.out
8ec98d6c 24610
cb2333e8
DD
24611configure-target-libmudflap: $(TARGET_SUBDIR)/libmudflap/multilib.out
24612 @test ! -f $(TARGET_SUBDIR)/libmudflap/Makefile || exit 0; \
24613 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmudflap ; \
5230d454
L
24614 r=`${PWD_COMMAND}`; export r; \
24615 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8ec98d6c 24616 $(SET_LIB_PATH) \
a675b75a 24617 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
24618 echo Configuring in $(TARGET_SUBDIR)/libmudflap; \
24619 cd "$(TARGET_SUBDIR)/libmudflap" || exit 1; \
94f860c0 24620 case $(srcdir) in \
7fc2ca22
PB
24621 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24622 *) topdir=`echo $(TARGET_SUBDIR)/libmudflap/ | \
24623 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 24624 esac; \
7fc2ca22
PB
24625 srcdiroption="--srcdir=$${topdir}/libmudflap"; \
24626 libsrcdir="$$s/libmudflap"; \
8ec98d6c
NN
24627 rm -f no-such-file || : ; \
24628 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
24629 $(TARGET_CONFIGARGS) $${srcdiroption} \
63673a5b 24630 --with-target-subdir="$(TARGET_SUBDIR)" \
94f860c0 24631 || exit 1
a7e609d6 24632@endif target-libmudflap
94f860c0 24633
cb2333e8
DD
24634.PHONY: all-target-libmudflap maybe-all-target-libmudflap
24635maybe-all-target-libmudflap:
a7e609d6 24636@if target-libmudflap
6a19fd82 24637TARGET-target-libmudflap=all
a7e609d6 24638maybe-all-target-libmudflap: all-target-libmudflap
cb2333e8 24639all-target-libmudflap: configure-target-libmudflap
5230d454
L
24640 @r=`${PWD_COMMAND}`; export r; \
24641 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 24642 $(SET_LIB_PATH) \
a675b75a 24643 $(NORMAL_TARGET_EXPORTS) \
cb2333e8 24644 (cd $(TARGET_SUBDIR)/libmudflap && \
6a19fd82 24645 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libmudflap))
a7e609d6 24646@endif target-libmudflap
8ecc6504 24647
cb2333e8
DD
24648.PHONY: check-target-libmudflap maybe-check-target-libmudflap
24649maybe-check-target-libmudflap:
a7e609d6
PB
24650@if target-libmudflap
24651maybe-check-target-libmudflap: check-target-libmudflap
70ffc148 24652
cb2333e8
DD
24653check-target-libmudflap:
24654 @r=`${PWD_COMMAND}`; export r; \
24655 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24656 $(SET_LIB_PATH) \
a675b75a 24657 $(NORMAL_TARGET_EXPORTS) \
cb2333e8 24658 (cd $(TARGET_SUBDIR)/libmudflap && \
63673a5b 24659 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
cb2333e8 24660
a7e609d6 24661@endif target-libmudflap
cb2333e8
DD
24662
24663.PHONY: install-target-libmudflap maybe-install-target-libmudflap
24664maybe-install-target-libmudflap:
a7e609d6
PB
24665@if target-libmudflap
24666maybe-install-target-libmudflap: install-target-libmudflap
cb2333e8
DD
24667
24668install-target-libmudflap: installdirs
24669 @r=`${PWD_COMMAND}`; export r; \
24670 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24671 $(SET_LIB_PATH) \
a675b75a 24672 $(NORMAL_TARGET_EXPORTS) \
cb2333e8 24673 (cd $(TARGET_SUBDIR)/libmudflap && \
63673a5b 24674 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
cb2333e8 24675
a7e609d6 24676@endif target-libmudflap
cb2333e8
DD
24677
24678# Other targets (info, dvi, etc.)
24679
24680.PHONY: maybe-info-target-libmudflap info-target-libmudflap
24681maybe-info-target-libmudflap:
a7e609d6
PB
24682@if target-libmudflap
24683maybe-info-target-libmudflap: info-target-libmudflap
cb2333e8
DD
24684
24685info-target-libmudflap: \
24686 configure-target-libmudflap
24687 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
24688 r=`${PWD_COMMAND}`; export r; \
24689 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24690 $(SET_LIB_PATH) \
a675b75a 24691 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
24692 echo "Doing info in $(TARGET_SUBDIR)/libmudflap" ; \
24693 for flag in $(EXTRA_TARGET_FLAGS); do \
24694 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24695 done; \
24696 (cd $(TARGET_SUBDIR)/libmudflap && \
24697 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24698 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24699 "RANLIB=$${RANLIB}" \
24700 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 24701 info) \
cb2333e8
DD
24702 || exit 1
24703
a7e609d6 24704@endif target-libmudflap
cb2333e8
DD
24705
24706.PHONY: maybe-dvi-target-libmudflap dvi-target-libmudflap
24707maybe-dvi-target-libmudflap:
a7e609d6
PB
24708@if target-libmudflap
24709maybe-dvi-target-libmudflap: dvi-target-libmudflap
cb2333e8
DD
24710
24711dvi-target-libmudflap: \
24712 configure-target-libmudflap
24713 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
24714 r=`${PWD_COMMAND}`; export r; \
24715 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24716 $(SET_LIB_PATH) \
a675b75a 24717 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
24718 echo "Doing dvi in $(TARGET_SUBDIR)/libmudflap" ; \
24719 for flag in $(EXTRA_TARGET_FLAGS); do \
24720 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24721 done; \
24722 (cd $(TARGET_SUBDIR)/libmudflap && \
24723 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24724 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24725 "RANLIB=$${RANLIB}" \
24726 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 24727 dvi) \
cb2333e8
DD
24728 || exit 1
24729
a7e609d6 24730@endif target-libmudflap
cb2333e8 24731
b6fb961f
MS
24732.PHONY: maybe-html-target-libmudflap html-target-libmudflap
24733maybe-html-target-libmudflap:
24734@if target-libmudflap
24735maybe-html-target-libmudflap: html-target-libmudflap
24736
24737html-target-libmudflap: \
24738 configure-target-libmudflap
24739 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
24740 r=`${PWD_COMMAND}`; export r; \
24741 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24742 $(SET_LIB_PATH) \
24743 $(NORMAL_TARGET_EXPORTS) \
24744 echo "Doing html in $(TARGET_SUBDIR)/libmudflap" ; \
24745 for flag in $(EXTRA_TARGET_FLAGS); do \
24746 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24747 done; \
24748 (cd $(TARGET_SUBDIR)/libmudflap && \
24749 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24750 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24751 "RANLIB=$${RANLIB}" \
24752 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
24753 html) \
24754 || exit 1
24755
24756@endif target-libmudflap
24757
cb2333e8
DD
24758.PHONY: maybe-TAGS-target-libmudflap TAGS-target-libmudflap
24759maybe-TAGS-target-libmudflap:
a7e609d6
PB
24760@if target-libmudflap
24761maybe-TAGS-target-libmudflap: TAGS-target-libmudflap
cb2333e8
DD
24762
24763TAGS-target-libmudflap: \
24764 configure-target-libmudflap
24765 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
24766 r=`${PWD_COMMAND}`; export r; \
24767 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24768 $(SET_LIB_PATH) \
a675b75a 24769 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
24770 echo "Doing TAGS in $(TARGET_SUBDIR)/libmudflap" ; \
24771 for flag in $(EXTRA_TARGET_FLAGS); do \
24772 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24773 done; \
24774 (cd $(TARGET_SUBDIR)/libmudflap && \
24775 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24776 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24777 "RANLIB=$${RANLIB}" \
24778 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 24779 TAGS) \
cb2333e8
DD
24780 || exit 1
24781
a7e609d6 24782@endif target-libmudflap
cb2333e8
DD
24783
24784.PHONY: maybe-install-info-target-libmudflap install-info-target-libmudflap
24785maybe-install-info-target-libmudflap:
a7e609d6
PB
24786@if target-libmudflap
24787maybe-install-info-target-libmudflap: install-info-target-libmudflap
cb2333e8
DD
24788
24789install-info-target-libmudflap: \
24790 configure-target-libmudflap \
24791 info-target-libmudflap
24792 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
24793 r=`${PWD_COMMAND}`; export r; \
24794 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24795 $(SET_LIB_PATH) \
a675b75a 24796 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
24797 echo "Doing install-info in $(TARGET_SUBDIR)/libmudflap" ; \
24798 for flag in $(EXTRA_TARGET_FLAGS); do \
24799 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24800 done; \
24801 (cd $(TARGET_SUBDIR)/libmudflap && \
24802 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24803 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24804 "RANLIB=$${RANLIB}" \
24805 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 24806 install-info) \
cb2333e8
DD
24807 || exit 1
24808
a7e609d6 24809@endif target-libmudflap
cb2333e8
DD
24810
24811.PHONY: maybe-installcheck-target-libmudflap installcheck-target-libmudflap
24812maybe-installcheck-target-libmudflap:
a7e609d6
PB
24813@if target-libmudflap
24814maybe-installcheck-target-libmudflap: installcheck-target-libmudflap
cb2333e8
DD
24815
24816installcheck-target-libmudflap: \
24817 configure-target-libmudflap
24818 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
24819 r=`${PWD_COMMAND}`; export r; \
24820 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24821 $(SET_LIB_PATH) \
a675b75a 24822 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
24823 echo "Doing installcheck in $(TARGET_SUBDIR)/libmudflap" ; \
24824 for flag in $(EXTRA_TARGET_FLAGS); do \
24825 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24826 done; \
24827 (cd $(TARGET_SUBDIR)/libmudflap && \
24828 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24829 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24830 "RANLIB=$${RANLIB}" \
24831 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 24832 installcheck) \
cb2333e8
DD
24833 || exit 1
24834
a7e609d6 24835@endif target-libmudflap
cb2333e8
DD
24836
24837.PHONY: maybe-mostlyclean-target-libmudflap mostlyclean-target-libmudflap
24838maybe-mostlyclean-target-libmudflap:
a7e609d6
PB
24839@if target-libmudflap
24840maybe-mostlyclean-target-libmudflap: mostlyclean-target-libmudflap
cb2333e8
DD
24841
24842mostlyclean-target-libmudflap:
24843 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
24844 r=`${PWD_COMMAND}`; export r; \
24845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24846 $(SET_LIB_PATH) \
a675b75a 24847 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
24848 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libmudflap" ; \
24849 for flag in $(EXTRA_TARGET_FLAGS); do \
24850 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24851 done; \
24852 (cd $(TARGET_SUBDIR)/libmudflap && \
24853 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24854 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24855 "RANLIB=$${RANLIB}" \
24856 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 24857 mostlyclean) \
cb2333e8
DD
24858 || exit 1
24859
a7e609d6 24860@endif target-libmudflap
cb2333e8
DD
24861
24862.PHONY: maybe-clean-target-libmudflap clean-target-libmudflap
24863maybe-clean-target-libmudflap:
a7e609d6
PB
24864@if target-libmudflap
24865maybe-clean-target-libmudflap: clean-target-libmudflap
cb2333e8
DD
24866
24867clean-target-libmudflap:
24868 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
24869 r=`${PWD_COMMAND}`; export r; \
24870 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24871 $(SET_LIB_PATH) \
a675b75a 24872 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
24873 echo "Doing clean in $(TARGET_SUBDIR)/libmudflap" ; \
24874 for flag in $(EXTRA_TARGET_FLAGS); do \
24875 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24876 done; \
24877 (cd $(TARGET_SUBDIR)/libmudflap && \
24878 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24879 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24880 "RANLIB=$${RANLIB}" \
24881 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 24882 clean) \
cb2333e8
DD
24883 || exit 1
24884
a7e609d6 24885@endif target-libmudflap
cb2333e8
DD
24886
24887.PHONY: maybe-distclean-target-libmudflap distclean-target-libmudflap
24888maybe-distclean-target-libmudflap:
a7e609d6
PB
24889@if target-libmudflap
24890maybe-distclean-target-libmudflap: distclean-target-libmudflap
cb2333e8
DD
24891
24892distclean-target-libmudflap:
24893 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
24894 r=`${PWD_COMMAND}`; export r; \
24895 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24896 $(SET_LIB_PATH) \
a675b75a 24897 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
24898 echo "Doing distclean in $(TARGET_SUBDIR)/libmudflap" ; \
24899 for flag in $(EXTRA_TARGET_FLAGS); do \
24900 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24901 done; \
24902 (cd $(TARGET_SUBDIR)/libmudflap && \
24903 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24904 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24905 "RANLIB=$${RANLIB}" \
24906 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 24907 distclean) \
cb2333e8
DD
24908 || exit 1
24909
a7e609d6 24910@endif target-libmudflap
cb2333e8
DD
24911
24912.PHONY: maybe-maintainer-clean-target-libmudflap maintainer-clean-target-libmudflap
24913maybe-maintainer-clean-target-libmudflap:
a7e609d6
PB
24914@if target-libmudflap
24915maybe-maintainer-clean-target-libmudflap: maintainer-clean-target-libmudflap
cb2333e8
DD
24916
24917maintainer-clean-target-libmudflap:
24918 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
24919 r=`${PWD_COMMAND}`; export r; \
24920 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24921 $(SET_LIB_PATH) \
a675b75a 24922 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
24923 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libmudflap" ; \
24924 for flag in $(EXTRA_TARGET_FLAGS); do \
24925 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24926 done; \
24927 (cd $(TARGET_SUBDIR)/libmudflap && \
24928 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24929 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24930 "RANLIB=$${RANLIB}" \
24931 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 24932 maintainer-clean) \
cb2333e8
DD
24933 || exit 1
24934
a7e609d6 24935@endif target-libmudflap
cb2333e8
DD
24936
24937
24938.PHONY: configure-target-newlib maybe-configure-target-newlib
24939maybe-configure-target-newlib:
a7e609d6
PB
24940@if target-newlib
24941maybe-configure-target-newlib: configure-target-newlib
cb2333e8
DD
24942
24943# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
24944$(TARGET_SUBDIR)/newlib/multilib.out: multilib.out
24945 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib ; \
24946 rm -f $(TARGET_SUBDIR)/newlib/Makefile || : ; \
24947 cp multilib.out $(TARGET_SUBDIR)/newlib/multilib.out
24948
24949configure-target-newlib: $(TARGET_SUBDIR)/newlib/multilib.out
24950 @test ! -f $(TARGET_SUBDIR)/newlib/Makefile || exit 0; \
24951 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib ; \
24952 r=`${PWD_COMMAND}`; export r; \
24953 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24954 $(SET_LIB_PATH) \
a675b75a 24955 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
24956 echo Configuring in $(TARGET_SUBDIR)/newlib; \
24957 cd "$(TARGET_SUBDIR)/newlib" || exit 1; \
24958 case $(srcdir) in \
7fc2ca22
PB
24959 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24960 *) topdir=`echo $(TARGET_SUBDIR)/newlib/ | \
24961 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
cb2333e8 24962 esac; \
7fc2ca22
PB
24963 srcdiroption="--srcdir=$${topdir}/newlib"; \
24964 libsrcdir="$$s/newlib"; \
cb2333e8
DD
24965 rm -f no-such-file || : ; \
24966 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
24967 $(TARGET_CONFIGARGS) $${srcdiroption} \
63673a5b 24968 --with-target-subdir="$(TARGET_SUBDIR)" \
cb2333e8 24969 || exit 1
a7e609d6 24970@endif target-newlib
cb2333e8
DD
24971
24972.PHONY: all-target-newlib maybe-all-target-newlib
24973maybe-all-target-newlib:
a7e609d6 24974@if target-newlib
6a19fd82 24975TARGET-target-newlib=all
a7e609d6 24976maybe-all-target-newlib: all-target-newlib
cb2333e8
DD
24977all-target-newlib: configure-target-newlib
24978 @r=`${PWD_COMMAND}`; export r; \
24979 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24980 $(SET_LIB_PATH) \
a675b75a 24981 $(NORMAL_TARGET_EXPORTS) \
cb2333e8 24982 (cd $(TARGET_SUBDIR)/newlib && \
6a19fd82 24983 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-newlib))
a7e609d6 24984@endif target-newlib
cb2333e8
DD
24985
24986.PHONY: check-target-newlib maybe-check-target-newlib
24987maybe-check-target-newlib:
a7e609d6
PB
24988@if target-newlib
24989maybe-check-target-newlib: check-target-newlib
cb2333e8
DD
24990
24991check-target-newlib:
5230d454
L
24992 @r=`${PWD_COMMAND}`; export r; \
24993 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 24994 $(SET_LIB_PATH) \
a675b75a 24995 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 24996 (cd $(TARGET_SUBDIR)/newlib && \
63673a5b 24997 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
8ecc6504 24998
a7e609d6 24999@endif target-newlib
8ecc6504 25000
8ec98d6c
NN
25001.PHONY: install-target-newlib maybe-install-target-newlib
25002maybe-install-target-newlib:
a7e609d6
PB
25003@if target-newlib
25004maybe-install-target-newlib: install-target-newlib
94f860c0 25005
8ec98d6c 25006install-target-newlib: installdirs
5230d454
L
25007 @r=`${PWD_COMMAND}`; export r; \
25008 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 25009 $(SET_LIB_PATH) \
a675b75a 25010 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 25011 (cd $(TARGET_SUBDIR)/newlib && \
63673a5b 25012 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
8ecc6504 25013
a7e609d6 25014@endif target-newlib
8ecc6504 25015
8ec98d6c 25016# Other targets (info, dvi, etc.)
8ecc6504 25017
8ec98d6c
NN
25018.PHONY: maybe-info-target-newlib info-target-newlib
25019maybe-info-target-newlib:
a7e609d6
PB
25020@if target-newlib
25021maybe-info-target-newlib: info-target-newlib
8ecc6504 25022
8ec98d6c
NN
25023info-target-newlib: \
25024 configure-target-newlib
25025 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
25026 r=`${PWD_COMMAND}`; export r; \
25027 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25028 $(SET_LIB_PATH) \
a675b75a 25029 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
25030 echo "Doing info in $(TARGET_SUBDIR)/newlib" ; \
25031 for flag in $(EXTRA_TARGET_FLAGS); do \
25032 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25033 done; \
25034 (cd $(TARGET_SUBDIR)/newlib && \
25035 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25036 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25037 "RANLIB=$${RANLIB}" \
25038 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 25039 info) \
8ec98d6c 25040 || exit 1
70ffc148 25041
a7e609d6 25042@endif target-newlib
8ecc6504 25043
8ec98d6c
NN
25044.PHONY: maybe-dvi-target-newlib dvi-target-newlib
25045maybe-dvi-target-newlib:
a7e609d6
PB
25046@if target-newlib
25047maybe-dvi-target-newlib: dvi-target-newlib
8ecc6504 25048
8ec98d6c
NN
25049dvi-target-newlib: \
25050 configure-target-newlib
25051 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
5230d454
L
25052 r=`${PWD_COMMAND}`; export r; \
25053 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8ec98d6c 25054 $(SET_LIB_PATH) \
a675b75a 25055 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
25056 echo "Doing dvi in $(TARGET_SUBDIR)/newlib" ; \
25057 for flag in $(EXTRA_TARGET_FLAGS); do \
25058 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25059 done; \
25060 (cd $(TARGET_SUBDIR)/newlib && \
25061 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25062 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25063 "RANLIB=$${RANLIB}" \
25064 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 25065 dvi) \
94f860c0
NN
25066 || exit 1
25067
a7e609d6 25068@endif target-newlib
8ecc6504 25069
b6fb961f
MS
25070.PHONY: maybe-html-target-newlib html-target-newlib
25071maybe-html-target-newlib:
25072@if target-newlib
25073maybe-html-target-newlib: html-target-newlib
25074
25075html-target-newlib: \
25076 configure-target-newlib
25077 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
25078 r=`${PWD_COMMAND}`; export r; \
25079 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25080 $(SET_LIB_PATH) \
25081 $(NORMAL_TARGET_EXPORTS) \
25082 echo "Doing html in $(TARGET_SUBDIR)/newlib" ; \
25083 for flag in $(EXTRA_TARGET_FLAGS); do \
25084 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25085 done; \
25086 (cd $(TARGET_SUBDIR)/newlib && \
25087 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25088 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25089 "RANLIB=$${RANLIB}" \
25090 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
25091 html) \
25092 || exit 1
25093
25094@endif target-newlib
25095
8ec98d6c
NN
25096.PHONY: maybe-TAGS-target-newlib TAGS-target-newlib
25097maybe-TAGS-target-newlib:
a7e609d6
PB
25098@if target-newlib
25099maybe-TAGS-target-newlib: TAGS-target-newlib
8ecc6504 25100
8ec98d6c
NN
25101TAGS-target-newlib: \
25102 configure-target-newlib
25103 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
25104 r=`${PWD_COMMAND}`; export r; \
5230d454 25105 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 25106 $(SET_LIB_PATH) \
a675b75a 25107 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
25108 echo "Doing TAGS in $(TARGET_SUBDIR)/newlib" ; \
25109 for flag in $(EXTRA_TARGET_FLAGS); do \
25110 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25111 done; \
25112 (cd $(TARGET_SUBDIR)/newlib && \
25113 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25114 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25115 "RANLIB=$${RANLIB}" \
25116 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 25117 TAGS) \
8ec98d6c 25118 || exit 1
8ecc6504 25119
a7e609d6 25120@endif target-newlib
8ecc6504 25121
8ec98d6c
NN
25122.PHONY: maybe-install-info-target-newlib install-info-target-newlib
25123maybe-install-info-target-newlib:
a7e609d6
PB
25124@if target-newlib
25125maybe-install-info-target-newlib: install-info-target-newlib
70ffc148 25126
8ec98d6c
NN
25127install-info-target-newlib: \
25128 configure-target-newlib \
25129 info-target-newlib
25130 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
25131 r=`${PWD_COMMAND}`; export r; \
5230d454 25132 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 25133 $(SET_LIB_PATH) \
a675b75a 25134 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
25135 echo "Doing install-info in $(TARGET_SUBDIR)/newlib" ; \
25136 for flag in $(EXTRA_TARGET_FLAGS); do \
25137 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25138 done; \
25139 (cd $(TARGET_SUBDIR)/newlib && \
25140 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25141 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25142 "RANLIB=$${RANLIB}" \
25143 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 25144 install-info) \
8ec98d6c 25145 || exit 1
8ecc6504 25146
a7e609d6 25147@endif target-newlib
8ecc6504 25148
8ec98d6c
NN
25149.PHONY: maybe-installcheck-target-newlib installcheck-target-newlib
25150maybe-installcheck-target-newlib:
a7e609d6
PB
25151@if target-newlib
25152maybe-installcheck-target-newlib: installcheck-target-newlib
8ec98d6c
NN
25153
25154installcheck-target-newlib: \
25155 configure-target-newlib
25156 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
5230d454
L
25157 r=`${PWD_COMMAND}`; export r; \
25158 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8ec98d6c 25159 $(SET_LIB_PATH) \
a675b75a 25160 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
25161 echo "Doing installcheck in $(TARGET_SUBDIR)/newlib" ; \
25162 for flag in $(EXTRA_TARGET_FLAGS); do \
25163 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25164 done; \
25165 (cd $(TARGET_SUBDIR)/newlib && \
25166 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25167 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25168 "RANLIB=$${RANLIB}" \
25169 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 25170 installcheck) \
94f860c0
NN
25171 || exit 1
25172
a7e609d6 25173@endif target-newlib
8ecc6504 25174
8ec98d6c
NN
25175.PHONY: maybe-mostlyclean-target-newlib mostlyclean-target-newlib
25176maybe-mostlyclean-target-newlib:
a7e609d6
PB
25177@if target-newlib
25178maybe-mostlyclean-target-newlib: mostlyclean-target-newlib
8ecc6504 25179
8ec98d6c
NN
25180mostlyclean-target-newlib:
25181 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
25182 r=`${PWD_COMMAND}`; export r; \
5230d454 25183 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 25184 $(SET_LIB_PATH) \
a675b75a 25185 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
25186 echo "Doing mostlyclean in $(TARGET_SUBDIR)/newlib" ; \
25187 for flag in $(EXTRA_TARGET_FLAGS); do \
25188 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25189 done; \
25190 (cd $(TARGET_SUBDIR)/newlib && \
25191 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25192 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25193 "RANLIB=$${RANLIB}" \
25194 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 25195 mostlyclean) \
8ec98d6c 25196 || exit 1
8ecc6504 25197
a7e609d6 25198@endif target-newlib
8ecc6504 25199
8ec98d6c
NN
25200.PHONY: maybe-clean-target-newlib clean-target-newlib
25201maybe-clean-target-newlib:
a7e609d6
PB
25202@if target-newlib
25203maybe-clean-target-newlib: clean-target-newlib
70ffc148 25204
8ec98d6c
NN
25205clean-target-newlib:
25206 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
25207 r=`${PWD_COMMAND}`; export r; \
5230d454 25208 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 25209 $(SET_LIB_PATH) \
a675b75a 25210 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
25211 echo "Doing clean in $(TARGET_SUBDIR)/newlib" ; \
25212 for flag in $(EXTRA_TARGET_FLAGS); do \
25213 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25214 done; \
25215 (cd $(TARGET_SUBDIR)/newlib && \
25216 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25217 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25218 "RANLIB=$${RANLIB}" \
25219 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 25220 clean) \
8ec98d6c 25221 || exit 1
8ecc6504 25222
a7e609d6 25223@endif target-newlib
8ecc6504 25224
8ec98d6c
NN
25225.PHONY: maybe-distclean-target-newlib distclean-target-newlib
25226maybe-distclean-target-newlib:
a7e609d6
PB
25227@if target-newlib
25228maybe-distclean-target-newlib: distclean-target-newlib
8ec98d6c
NN
25229
25230distclean-target-newlib:
25231 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
5230d454
L
25232 r=`${PWD_COMMAND}`; export r; \
25233 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8ec98d6c 25234 $(SET_LIB_PATH) \
a675b75a 25235 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
25236 echo "Doing distclean in $(TARGET_SUBDIR)/newlib" ; \
25237 for flag in $(EXTRA_TARGET_FLAGS); do \
25238 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25239 done; \
25240 (cd $(TARGET_SUBDIR)/newlib && \
25241 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25242 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25243 "RANLIB=$${RANLIB}" \
25244 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 25245 distclean) \
94f860c0
NN
25246 || exit 1
25247
a7e609d6 25248@endif target-newlib
8ecc6504 25249
8ec98d6c
NN
25250.PHONY: maybe-maintainer-clean-target-newlib maintainer-clean-target-newlib
25251maybe-maintainer-clean-target-newlib:
a7e609d6
PB
25252@if target-newlib
25253maybe-maintainer-clean-target-newlib: maintainer-clean-target-newlib
8ecc6504 25254
8ec98d6c
NN
25255maintainer-clean-target-newlib:
25256 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
25257 r=`${PWD_COMMAND}`; export r; \
5230d454 25258 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 25259 $(SET_LIB_PATH) \
a675b75a 25260 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
25261 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/newlib" ; \
25262 for flag in $(EXTRA_TARGET_FLAGS); do \
25263 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25264 done; \
25265 (cd $(TARGET_SUBDIR)/newlib && \
25266 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25267 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25268 "RANLIB=$${RANLIB}" \
25269 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 25270 maintainer-clean) \
8ec98d6c 25271 || exit 1
8ecc6504 25272
a7e609d6 25273@endif target-newlib
8ecc6504 25274
70ffc148 25275
cb2333e8
DD
25276.PHONY: configure-target-libgfortran maybe-configure-target-libgfortran
25277maybe-configure-target-libgfortran:
a7e609d6
PB
25278@if target-libgfortran
25279maybe-configure-target-libgfortran: configure-target-libgfortran
cb2333e8
DD
25280
25281# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
25282$(TARGET_SUBDIR)/libgfortran/multilib.out: multilib.out
25283 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran ; \
25284 rm -f $(TARGET_SUBDIR)/libgfortran/Makefile || : ; \
25285 cp multilib.out $(TARGET_SUBDIR)/libgfortran/multilib.out
25286
25287configure-target-libgfortran: $(TARGET_SUBDIR)/libgfortran/multilib.out
25288 @test ! -f $(TARGET_SUBDIR)/libgfortran/Makefile || exit 0; \
25289 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran ; \
25290 r=`${PWD_COMMAND}`; export r; \
25291 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25292 $(SET_LIB_PATH) \
a675b75a 25293 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
25294 echo Configuring in $(TARGET_SUBDIR)/libgfortran; \
25295 cd "$(TARGET_SUBDIR)/libgfortran" || exit 1; \
25296 case $(srcdir) in \
7fc2ca22
PB
25297 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
25298 *) topdir=`echo $(TARGET_SUBDIR)/libgfortran/ | \
25299 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
cb2333e8 25300 esac; \
7fc2ca22
PB
25301 srcdiroption="--srcdir=$${topdir}/libgfortran"; \
25302 libsrcdir="$$s/libgfortran"; \
cb2333e8
DD
25303 rm -f no-such-file || : ; \
25304 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25305 $(TARGET_CONFIGARGS) $${srcdiroption} \
63673a5b 25306 --with-target-subdir="$(TARGET_SUBDIR)" \
cb2333e8 25307 || exit 1
a7e609d6 25308@endif target-libgfortran
cb2333e8
DD
25309
25310.PHONY: all-target-libgfortran maybe-all-target-libgfortran
25311maybe-all-target-libgfortran:
a7e609d6 25312@if target-libgfortran
6a19fd82 25313TARGET-target-libgfortran=all
a7e609d6 25314maybe-all-target-libgfortran: all-target-libgfortran
cb2333e8
DD
25315all-target-libgfortran: configure-target-libgfortran
25316 @r=`${PWD_COMMAND}`; export r; \
25317 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25318 $(SET_LIB_PATH) \
a675b75a 25319 $(NORMAL_TARGET_EXPORTS) \
cb2333e8 25320 (cd $(TARGET_SUBDIR)/libgfortran && \
6a19fd82 25321 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libgfortran))
a7e609d6 25322@endif target-libgfortran
cb2333e8
DD
25323
25324.PHONY: check-target-libgfortran maybe-check-target-libgfortran
25325maybe-check-target-libgfortran:
a7e609d6
PB
25326@if target-libgfortran
25327maybe-check-target-libgfortran: check-target-libgfortran
cb2333e8
DD
25328
25329check-target-libgfortran:
25330 @r=`${PWD_COMMAND}`; export r; \
25331 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25332 $(SET_LIB_PATH) \
a675b75a 25333 $(NORMAL_TARGET_EXPORTS) \
cb2333e8 25334 (cd $(TARGET_SUBDIR)/libgfortran && \
63673a5b 25335 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
cb2333e8 25336
a7e609d6 25337@endif target-libgfortran
cb2333e8
DD
25338
25339.PHONY: install-target-libgfortran maybe-install-target-libgfortran
25340maybe-install-target-libgfortran:
a7e609d6
PB
25341@if target-libgfortran
25342maybe-install-target-libgfortran: install-target-libgfortran
cb2333e8
DD
25343
25344install-target-libgfortran: installdirs
25345 @r=`${PWD_COMMAND}`; export r; \
25346 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25347 $(SET_LIB_PATH) \
a675b75a 25348 $(NORMAL_TARGET_EXPORTS) \
cb2333e8 25349 (cd $(TARGET_SUBDIR)/libgfortran && \
63673a5b 25350 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
cb2333e8 25351
a7e609d6 25352@endif target-libgfortran
cb2333e8
DD
25353
25354# Other targets (info, dvi, etc.)
25355
25356.PHONY: maybe-info-target-libgfortran info-target-libgfortran
25357maybe-info-target-libgfortran:
a7e609d6
PB
25358@if target-libgfortran
25359maybe-info-target-libgfortran: info-target-libgfortran
cb2333e8
DD
25360
25361info-target-libgfortran: \
25362 configure-target-libgfortran
25363 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
25364 r=`${PWD_COMMAND}`; export r; \
25365 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25366 $(SET_LIB_PATH) \
a675b75a 25367 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
25368 echo "Doing info in $(TARGET_SUBDIR)/libgfortran" ; \
25369 for flag in $(EXTRA_TARGET_FLAGS); do \
25370 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25371 done; \
25372 (cd $(TARGET_SUBDIR)/libgfortran && \
25373 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25374 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25375 "RANLIB=$${RANLIB}" \
25376 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 25377 info) \
cb2333e8
DD
25378 || exit 1
25379
a7e609d6 25380@endif target-libgfortran
cb2333e8
DD
25381
25382.PHONY: maybe-dvi-target-libgfortran dvi-target-libgfortran
25383maybe-dvi-target-libgfortran:
a7e609d6
PB
25384@if target-libgfortran
25385maybe-dvi-target-libgfortran: dvi-target-libgfortran
cb2333e8
DD
25386
25387dvi-target-libgfortran: \
25388 configure-target-libgfortran
25389 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
25390 r=`${PWD_COMMAND}`; export r; \
25391 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25392 $(SET_LIB_PATH) \
a675b75a 25393 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
25394 echo "Doing dvi in $(TARGET_SUBDIR)/libgfortran" ; \
25395 for flag in $(EXTRA_TARGET_FLAGS); do \
25396 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25397 done; \
25398 (cd $(TARGET_SUBDIR)/libgfortran && \
25399 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25400 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25401 "RANLIB=$${RANLIB}" \
25402 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 25403 dvi) \
cb2333e8
DD
25404 || exit 1
25405
a7e609d6 25406@endif target-libgfortran
cb2333e8 25407
b6fb961f
MS
25408.PHONY: maybe-html-target-libgfortran html-target-libgfortran
25409maybe-html-target-libgfortran:
25410@if target-libgfortran
25411maybe-html-target-libgfortran: html-target-libgfortran
25412
25413html-target-libgfortran: \
25414 configure-target-libgfortran
25415 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
25416 r=`${PWD_COMMAND}`; export r; \
25417 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25418 $(SET_LIB_PATH) \
25419 $(NORMAL_TARGET_EXPORTS) \
25420 echo "Doing html in $(TARGET_SUBDIR)/libgfortran" ; \
25421 for flag in $(EXTRA_TARGET_FLAGS); do \
25422 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25423 done; \
25424 (cd $(TARGET_SUBDIR)/libgfortran && \
25425 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25426 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25427 "RANLIB=$${RANLIB}" \
25428 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
25429 html) \
25430 || exit 1
25431
25432@endif target-libgfortran
25433
cb2333e8
DD
25434.PHONY: maybe-TAGS-target-libgfortran TAGS-target-libgfortran
25435maybe-TAGS-target-libgfortran:
a7e609d6
PB
25436@if target-libgfortran
25437maybe-TAGS-target-libgfortran: TAGS-target-libgfortran
cb2333e8
DD
25438
25439TAGS-target-libgfortran: \
25440 configure-target-libgfortran
25441 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
25442 r=`${PWD_COMMAND}`; export r; \
25443 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25444 $(SET_LIB_PATH) \
a675b75a 25445 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
25446 echo "Doing TAGS in $(TARGET_SUBDIR)/libgfortran" ; \
25447 for flag in $(EXTRA_TARGET_FLAGS); do \
25448 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25449 done; \
25450 (cd $(TARGET_SUBDIR)/libgfortran && \
25451 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25452 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25453 "RANLIB=$${RANLIB}" \
25454 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 25455 TAGS) \
cb2333e8
DD
25456 || exit 1
25457
a7e609d6 25458@endif target-libgfortran
cb2333e8
DD
25459
25460.PHONY: maybe-install-info-target-libgfortran install-info-target-libgfortran
25461maybe-install-info-target-libgfortran:
a7e609d6
PB
25462@if target-libgfortran
25463maybe-install-info-target-libgfortran: install-info-target-libgfortran
cb2333e8
DD
25464
25465install-info-target-libgfortran: \
25466 configure-target-libgfortran \
25467 info-target-libgfortran
25468 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
25469 r=`${PWD_COMMAND}`; export r; \
25470 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25471 $(SET_LIB_PATH) \
a675b75a 25472 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
25473 echo "Doing install-info in $(TARGET_SUBDIR)/libgfortran" ; \
25474 for flag in $(EXTRA_TARGET_FLAGS); do \
25475 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25476 done; \
25477 (cd $(TARGET_SUBDIR)/libgfortran && \
25478 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25479 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25480 "RANLIB=$${RANLIB}" \
25481 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 25482 install-info) \
cb2333e8
DD
25483 || exit 1
25484
a7e609d6 25485@endif target-libgfortran
cb2333e8
DD
25486
25487.PHONY: maybe-installcheck-target-libgfortran installcheck-target-libgfortran
25488maybe-installcheck-target-libgfortran:
a7e609d6
PB
25489@if target-libgfortran
25490maybe-installcheck-target-libgfortran: installcheck-target-libgfortran
cb2333e8
DD
25491
25492installcheck-target-libgfortran: \
25493 configure-target-libgfortran
25494 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
25495 r=`${PWD_COMMAND}`; export r; \
25496 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25497 $(SET_LIB_PATH) \
a675b75a 25498 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
25499 echo "Doing installcheck in $(TARGET_SUBDIR)/libgfortran" ; \
25500 for flag in $(EXTRA_TARGET_FLAGS); do \
25501 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25502 done; \
25503 (cd $(TARGET_SUBDIR)/libgfortran && \
25504 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25505 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25506 "RANLIB=$${RANLIB}" \
25507 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 25508 installcheck) \
cb2333e8
DD
25509 || exit 1
25510
a7e609d6 25511@endif target-libgfortran
cb2333e8
DD
25512
25513.PHONY: maybe-mostlyclean-target-libgfortran mostlyclean-target-libgfortran
25514maybe-mostlyclean-target-libgfortran:
a7e609d6
PB
25515@if target-libgfortran
25516maybe-mostlyclean-target-libgfortran: mostlyclean-target-libgfortran
cb2333e8
DD
25517
25518mostlyclean-target-libgfortran:
25519 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
25520 r=`${PWD_COMMAND}`; export r; \
25521 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25522 $(SET_LIB_PATH) \
a675b75a 25523 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
25524 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgfortran" ; \
25525 for flag in $(EXTRA_TARGET_FLAGS); do \
25526 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25527 done; \
25528 (cd $(TARGET_SUBDIR)/libgfortran && \
25529 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25530 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25531 "RANLIB=$${RANLIB}" \
25532 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 25533 mostlyclean) \
cb2333e8
DD
25534 || exit 1
25535
a7e609d6 25536@endif target-libgfortran
cb2333e8
DD
25537
25538.PHONY: maybe-clean-target-libgfortran clean-target-libgfortran
25539maybe-clean-target-libgfortran:
a7e609d6
PB
25540@if target-libgfortran
25541maybe-clean-target-libgfortran: clean-target-libgfortran
cb2333e8
DD
25542
25543clean-target-libgfortran:
25544 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
25545 r=`${PWD_COMMAND}`; export r; \
25546 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25547 $(SET_LIB_PATH) \
a675b75a 25548 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
25549 echo "Doing clean in $(TARGET_SUBDIR)/libgfortran" ; \
25550 for flag in $(EXTRA_TARGET_FLAGS); do \
25551 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25552 done; \
25553 (cd $(TARGET_SUBDIR)/libgfortran && \
25554 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25555 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25556 "RANLIB=$${RANLIB}" \
25557 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 25558 clean) \
cb2333e8
DD
25559 || exit 1
25560
a7e609d6 25561@endif target-libgfortran
cb2333e8
DD
25562
25563.PHONY: maybe-distclean-target-libgfortran distclean-target-libgfortran
25564maybe-distclean-target-libgfortran:
a7e609d6
PB
25565@if target-libgfortran
25566maybe-distclean-target-libgfortran: distclean-target-libgfortran
cb2333e8
DD
25567
25568distclean-target-libgfortran:
25569 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
25570 r=`${PWD_COMMAND}`; export r; \
25571 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25572 $(SET_LIB_PATH) \
a675b75a 25573 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
25574 echo "Doing distclean in $(TARGET_SUBDIR)/libgfortran" ; \
25575 for flag in $(EXTRA_TARGET_FLAGS); do \
25576 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25577 done; \
25578 (cd $(TARGET_SUBDIR)/libgfortran && \
25579 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25580 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25581 "RANLIB=$${RANLIB}" \
25582 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 25583 distclean) \
cb2333e8
DD
25584 || exit 1
25585
a7e609d6 25586@endif target-libgfortran
cb2333e8
DD
25587
25588.PHONY: maybe-maintainer-clean-target-libgfortran maintainer-clean-target-libgfortran
25589maybe-maintainer-clean-target-libgfortran:
a7e609d6
PB
25590@if target-libgfortran
25591maybe-maintainer-clean-target-libgfortran: maintainer-clean-target-libgfortran
cb2333e8
DD
25592
25593maintainer-clean-target-libgfortran:
25594 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
25595 r=`${PWD_COMMAND}`; export r; \
25596 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25597 $(SET_LIB_PATH) \
a675b75a 25598 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
25599 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgfortran" ; \
25600 for flag in $(EXTRA_TARGET_FLAGS); do \
25601 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25602 done; \
25603 (cd $(TARGET_SUBDIR)/libgfortran && \
25604 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25605 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25606 "RANLIB=$${RANLIB}" \
25607 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 25608 maintainer-clean) \
cb2333e8
DD
25609 || exit 1
25610
a7e609d6 25611@endif target-libgfortran
cb2333e8
DD
25612
25613
8ec98d6c
NN
25614.PHONY: configure-target-libobjc maybe-configure-target-libobjc
25615maybe-configure-target-libobjc:
a7e609d6
PB
25616@if target-libobjc
25617maybe-configure-target-libobjc: configure-target-libobjc
8ecc6504 25618
8ec98d6c
NN
25619# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
25620$(TARGET_SUBDIR)/libobjc/multilib.out: multilib.out
25621 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc ; \
25622 rm -f $(TARGET_SUBDIR)/libobjc/Makefile || : ; \
25623 cp multilib.out $(TARGET_SUBDIR)/libobjc/multilib.out
8ecc6504 25624
8ec98d6c
NN
25625configure-target-libobjc: $(TARGET_SUBDIR)/libobjc/multilib.out
25626 @test ! -f $(TARGET_SUBDIR)/libobjc/Makefile || exit 0; \
25627 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc ; \
5230d454 25628 r=`${PWD_COMMAND}`; export r; \
a675b75a
DD
25629 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25630 $(SET_LIB_PATH) \
25631 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
25632 echo Configuring in $(TARGET_SUBDIR)/libobjc; \
25633 cd "$(TARGET_SUBDIR)/libobjc" || exit 1; \
94f860c0 25634 case $(srcdir) in \
7fc2ca22
PB
25635 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
25636 *) topdir=`echo $(TARGET_SUBDIR)/libobjc/ | \
25637 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 25638 esac; \
7fc2ca22
PB
25639 srcdiroption="--srcdir=$${topdir}/libobjc"; \
25640 libsrcdir="$$s/libobjc"; \
8ec98d6c
NN
25641 rm -f no-such-file || : ; \
25642 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25643 $(TARGET_CONFIGARGS) $${srcdiroption} \
63673a5b 25644 --with-target-subdir="$(TARGET_SUBDIR)" \
94f860c0 25645 || exit 1
a7e609d6 25646@endif target-libobjc
94f860c0 25647
8ec98d6c
NN
25648.PHONY: all-target-libobjc maybe-all-target-libobjc
25649maybe-all-target-libobjc:
a7e609d6 25650@if target-libobjc
6a19fd82 25651TARGET-target-libobjc=all
a7e609d6 25652maybe-all-target-libobjc: all-target-libobjc
8ec98d6c 25653all-target-libobjc: configure-target-libobjc
5230d454
L
25654 @r=`${PWD_COMMAND}`; export r; \
25655 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 25656 $(SET_LIB_PATH) \
a675b75a 25657 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 25658 (cd $(TARGET_SUBDIR)/libobjc && \
6a19fd82 25659 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libobjc))
a7e609d6 25660@endif target-libobjc
8ecc6504 25661
8ec98d6c
NN
25662.PHONY: check-target-libobjc maybe-check-target-libobjc
25663maybe-check-target-libobjc:
a7e609d6
PB
25664@if target-libobjc
25665maybe-check-target-libobjc: check-target-libobjc
8ecc6504 25666
8ec98d6c 25667check-target-libobjc:
5230d454
L
25668 @r=`${PWD_COMMAND}`; export r; \
25669 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 25670 $(SET_LIB_PATH) \
a675b75a 25671 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 25672 (cd $(TARGET_SUBDIR)/libobjc && \
63673a5b 25673 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
8ecc6504 25674
a7e609d6 25675@endif target-libobjc
8ecc6504 25676
8ec98d6c
NN
25677.PHONY: install-target-libobjc maybe-install-target-libobjc
25678maybe-install-target-libobjc:
a7e609d6
PB
25679@if target-libobjc
25680maybe-install-target-libobjc: install-target-libobjc
94f860c0 25681
8ec98d6c 25682install-target-libobjc: installdirs
5230d454
L
25683 @r=`${PWD_COMMAND}`; export r; \
25684 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 25685 $(SET_LIB_PATH) \
a675b75a 25686 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 25687 (cd $(TARGET_SUBDIR)/libobjc && \
63673a5b 25688 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
8ecc6504 25689
a7e609d6 25690@endif target-libobjc
8ecc6504 25691
8ec98d6c
NN
25692# Other targets (info, dvi, etc.)
25693
25694.PHONY: maybe-info-target-libobjc info-target-libobjc
25695maybe-info-target-libobjc:
a7e609d6
PB
25696@if target-libobjc
25697maybe-info-target-libobjc: info-target-libobjc
8ec98d6c
NN
25698
25699info-target-libobjc: \
25700 configure-target-libobjc
25701 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
25702 r=`${PWD_COMMAND}`; export r; \
5230d454 25703 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 25704 $(SET_LIB_PATH) \
a675b75a 25705 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
25706 echo "Doing info in $(TARGET_SUBDIR)/libobjc" ; \
25707 for flag in $(EXTRA_TARGET_FLAGS); do \
25708 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25709 done; \
25710 (cd $(TARGET_SUBDIR)/libobjc && \
25711 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25712 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25713 "RANLIB=$${RANLIB}" \
25714 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 25715 info) \
8ec98d6c 25716 || exit 1
8ecc6504 25717
a7e609d6 25718@endif target-libobjc
8ecc6504 25719
8ec98d6c
NN
25720.PHONY: maybe-dvi-target-libobjc dvi-target-libobjc
25721maybe-dvi-target-libobjc:
a7e609d6
PB
25722@if target-libobjc
25723maybe-dvi-target-libobjc: dvi-target-libobjc
70ffc148 25724
8ec98d6c
NN
25725dvi-target-libobjc: \
25726 configure-target-libobjc
25727 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
25728 r=`${PWD_COMMAND}`; export r; \
5230d454 25729 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 25730 $(SET_LIB_PATH) \
a675b75a 25731 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
25732 echo "Doing dvi in $(TARGET_SUBDIR)/libobjc" ; \
25733 for flag in $(EXTRA_TARGET_FLAGS); do \
25734 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25735 done; \
25736 (cd $(TARGET_SUBDIR)/libobjc && \
25737 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25738 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25739 "RANLIB=$${RANLIB}" \
25740 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 25741 dvi) \
8ec98d6c 25742 || exit 1
8ecc6504 25743
a7e609d6 25744@endif target-libobjc
8ecc6504 25745
b6fb961f
MS
25746.PHONY: maybe-html-target-libobjc html-target-libobjc
25747maybe-html-target-libobjc:
25748@if target-libobjc
25749maybe-html-target-libobjc: html-target-libobjc
25750
25751html-target-libobjc: \
25752 configure-target-libobjc
25753 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
25754 r=`${PWD_COMMAND}`; export r; \
25755 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25756 $(SET_LIB_PATH) \
25757 $(NORMAL_TARGET_EXPORTS) \
25758 echo "Doing html in $(TARGET_SUBDIR)/libobjc" ; \
25759 for flag in $(EXTRA_TARGET_FLAGS); do \
25760 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25761 done; \
25762 (cd $(TARGET_SUBDIR)/libobjc && \
25763 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25764 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25765 "RANLIB=$${RANLIB}" \
25766 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
25767 html) \
25768 || exit 1
25769
25770@endif target-libobjc
25771
8ec98d6c
NN
25772.PHONY: maybe-TAGS-target-libobjc TAGS-target-libobjc
25773maybe-TAGS-target-libobjc:
a7e609d6
PB
25774@if target-libobjc
25775maybe-TAGS-target-libobjc: TAGS-target-libobjc
8ec98d6c
NN
25776
25777TAGS-target-libobjc: \
25778 configure-target-libobjc
25779 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
5230d454
L
25780 r=`${PWD_COMMAND}`; export r; \
25781 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8ec98d6c 25782 $(SET_LIB_PATH) \
a675b75a 25783 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
25784 echo "Doing TAGS in $(TARGET_SUBDIR)/libobjc" ; \
25785 for flag in $(EXTRA_TARGET_FLAGS); do \
25786 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25787 done; \
25788 (cd $(TARGET_SUBDIR)/libobjc && \
25789 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25790 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25791 "RANLIB=$${RANLIB}" \
25792 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 25793 TAGS) \
94f860c0
NN
25794 || exit 1
25795
a7e609d6 25796@endif target-libobjc
8ec98d6c
NN
25797
25798.PHONY: maybe-install-info-target-libobjc install-info-target-libobjc
25799maybe-install-info-target-libobjc:
a7e609d6
PB
25800@if target-libobjc
25801maybe-install-info-target-libobjc: install-info-target-libobjc
8ec98d6c
NN
25802
25803install-info-target-libobjc: \
25804 configure-target-libobjc \
25805 info-target-libobjc
25806 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
25807 r=`${PWD_COMMAND}`; export r; \
5230d454 25808 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 25809 $(SET_LIB_PATH) \
a675b75a 25810 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
25811 echo "Doing install-info in $(TARGET_SUBDIR)/libobjc" ; \
25812 for flag in $(EXTRA_TARGET_FLAGS); do \
25813 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25814 done; \
25815 (cd $(TARGET_SUBDIR)/libobjc && \
25816 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25817 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25818 "RANLIB=$${RANLIB}" \
25819 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 25820 install-info) \
8ec98d6c 25821 || exit 1
8ecc6504 25822
a7e609d6 25823@endif target-libobjc
8ecc6504 25824
8ec98d6c
NN
25825.PHONY: maybe-installcheck-target-libobjc installcheck-target-libobjc
25826maybe-installcheck-target-libobjc:
a7e609d6
PB
25827@if target-libobjc
25828maybe-installcheck-target-libobjc: installcheck-target-libobjc
8ec98d6c
NN
25829
25830installcheck-target-libobjc: \
25831 configure-target-libobjc
25832 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
25833 r=`${PWD_COMMAND}`; export r; \
5230d454 25834 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 25835 $(SET_LIB_PATH) \
a675b75a 25836 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
25837 echo "Doing installcheck in $(TARGET_SUBDIR)/libobjc" ; \
25838 for flag in $(EXTRA_TARGET_FLAGS); do \
25839 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25840 done; \
25841 (cd $(TARGET_SUBDIR)/libobjc && \
25842 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25843 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25844 "RANLIB=$${RANLIB}" \
25845 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 25846 installcheck) \
8ec98d6c 25847 || exit 1
8ecc6504 25848
a7e609d6 25849@endif target-libobjc
8ecc6504 25850
8ec98d6c
NN
25851.PHONY: maybe-mostlyclean-target-libobjc mostlyclean-target-libobjc
25852maybe-mostlyclean-target-libobjc:
a7e609d6
PB
25853@if target-libobjc
25854maybe-mostlyclean-target-libobjc: mostlyclean-target-libobjc
70ffc148 25855
8ec98d6c
NN
25856mostlyclean-target-libobjc:
25857 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
25858 r=`${PWD_COMMAND}`; export r; \
5230d454 25859 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 25860 $(SET_LIB_PATH) \
a675b75a 25861 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
25862 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libobjc" ; \
25863 for flag in $(EXTRA_TARGET_FLAGS); do \
25864 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25865 done; \
25866 (cd $(TARGET_SUBDIR)/libobjc && \
25867 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25868 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25869 "RANLIB=$${RANLIB}" \
25870 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 25871 mostlyclean) \
8ec98d6c 25872 || exit 1
8ecc6504 25873
a7e609d6 25874@endif target-libobjc
8ecc6504 25875
8ec98d6c
NN
25876.PHONY: maybe-clean-target-libobjc clean-target-libobjc
25877maybe-clean-target-libobjc:
a7e609d6
PB
25878@if target-libobjc
25879maybe-clean-target-libobjc: clean-target-libobjc
8ec98d6c
NN
25880
25881clean-target-libobjc:
25882 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
5230d454
L
25883 r=`${PWD_COMMAND}`; export r; \
25884 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8ec98d6c 25885 $(SET_LIB_PATH) \
a675b75a 25886 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
25887 echo "Doing clean in $(TARGET_SUBDIR)/libobjc" ; \
25888 for flag in $(EXTRA_TARGET_FLAGS); do \
25889 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25890 done; \
25891 (cd $(TARGET_SUBDIR)/libobjc && \
25892 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25893 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25894 "RANLIB=$${RANLIB}" \
25895 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 25896 clean) \
94f860c0
NN
25897 || exit 1
25898
a7e609d6 25899@endif target-libobjc
8ecc6504 25900
8ec98d6c
NN
25901.PHONY: maybe-distclean-target-libobjc distclean-target-libobjc
25902maybe-distclean-target-libobjc:
a7e609d6
PB
25903@if target-libobjc
25904maybe-distclean-target-libobjc: distclean-target-libobjc
8ecc6504 25905
8ec98d6c
NN
25906distclean-target-libobjc:
25907 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
25908 r=`${PWD_COMMAND}`; export r; \
5230d454 25909 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 25910 $(SET_LIB_PATH) \
a675b75a 25911 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
25912 echo "Doing distclean in $(TARGET_SUBDIR)/libobjc" ; \
25913 for flag in $(EXTRA_TARGET_FLAGS); do \
25914 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25915 done; \
25916 (cd $(TARGET_SUBDIR)/libobjc && \
25917 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25918 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25919 "RANLIB=$${RANLIB}" \
25920 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 25921 distclean) \
8ec98d6c 25922 || exit 1
8ecc6504 25923
a7e609d6 25924@endif target-libobjc
8ecc6504 25925
8ec98d6c
NN
25926.PHONY: maybe-maintainer-clean-target-libobjc maintainer-clean-target-libobjc
25927maybe-maintainer-clean-target-libobjc:
a7e609d6
PB
25928@if target-libobjc
25929maybe-maintainer-clean-target-libobjc: maintainer-clean-target-libobjc
70ffc148 25930
8ec98d6c
NN
25931maintainer-clean-target-libobjc:
25932 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
25933 r=`${PWD_COMMAND}`; export r; \
5230d454 25934 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 25935 $(SET_LIB_PATH) \
a675b75a 25936 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
25937 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libobjc" ; \
25938 for flag in $(EXTRA_TARGET_FLAGS); do \
25939 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25940 done; \
25941 (cd $(TARGET_SUBDIR)/libobjc && \
25942 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25943 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25944 "RANLIB=$${RANLIB}" \
25945 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 25946 maintainer-clean) \
8ec98d6c 25947 || exit 1
8ecc6504 25948
a7e609d6 25949@endif target-libobjc
8ecc6504 25950
8ec98d6c
NN
25951
25952.PHONY: configure-target-libtermcap maybe-configure-target-libtermcap
25953maybe-configure-target-libtermcap:
a7e609d6
PB
25954@if target-libtermcap
25955maybe-configure-target-libtermcap: configure-target-libtermcap
8ec98d6c
NN
25956
25957# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
25958$(TARGET_SUBDIR)/libtermcap/multilib.out: multilib.out
25959 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap ; \
25960 rm -f $(TARGET_SUBDIR)/libtermcap/Makefile || : ; \
25961 cp multilib.out $(TARGET_SUBDIR)/libtermcap/multilib.out
25962
25963configure-target-libtermcap: $(TARGET_SUBDIR)/libtermcap/multilib.out
25964 @test ! -f $(TARGET_SUBDIR)/libtermcap/Makefile || exit 0; \
25965 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap ; \
5230d454
L
25966 r=`${PWD_COMMAND}`; export r; \
25967 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8ec98d6c 25968 $(SET_LIB_PATH) \
a675b75a 25969 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
25970 echo Configuring in $(TARGET_SUBDIR)/libtermcap; \
25971 cd "$(TARGET_SUBDIR)/libtermcap" || exit 1; \
94f860c0 25972 case $(srcdir) in \
7fc2ca22
PB
25973 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
25974 *) topdir=`echo $(TARGET_SUBDIR)/libtermcap/ | \
25975 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 25976 esac; \
7fc2ca22
PB
25977 srcdiroption="--srcdir=$${topdir}/libtermcap"; \
25978 libsrcdir="$$s/libtermcap"; \
8ec98d6c
NN
25979 rm -f no-such-file || : ; \
25980 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25981 $(TARGET_CONFIGARGS) $${srcdiroption} \
63673a5b 25982 --with-target-subdir="$(TARGET_SUBDIR)" \
94f860c0 25983 || exit 1
a7e609d6 25984@endif target-libtermcap
94f860c0 25985
8ec98d6c
NN
25986.PHONY: all-target-libtermcap maybe-all-target-libtermcap
25987maybe-all-target-libtermcap:
a7e609d6 25988@if target-libtermcap
6a19fd82 25989TARGET-target-libtermcap=all
a7e609d6 25990maybe-all-target-libtermcap: all-target-libtermcap
8ec98d6c 25991all-target-libtermcap: configure-target-libtermcap
5230d454
L
25992 @r=`${PWD_COMMAND}`; export r; \
25993 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 25994 $(SET_LIB_PATH) \
a675b75a 25995 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 25996 (cd $(TARGET_SUBDIR)/libtermcap && \
6a19fd82 25997 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libtermcap))
a7e609d6 25998@endif target-libtermcap
8ecc6504 25999
8ec98d6c
NN
26000.PHONY: check-target-libtermcap maybe-check-target-libtermcap
26001maybe-check-target-libtermcap:
a7e609d6
PB
26002@if target-libtermcap
26003maybe-check-target-libtermcap: check-target-libtermcap
8ecc6504 26004
8ec98d6c
NN
26005# Dummy target for uncheckable module.
26006check-target-libtermcap:
26007
a7e609d6 26008@endif target-libtermcap
8ec98d6c
NN
26009
26010.PHONY: install-target-libtermcap maybe-install-target-libtermcap
26011maybe-install-target-libtermcap:
a7e609d6
PB
26012@if target-libtermcap
26013maybe-install-target-libtermcap: install-target-libtermcap
8ec98d6c
NN
26014
26015install-target-libtermcap: installdirs
5230d454
L
26016 @r=`${PWD_COMMAND}`; export r; \
26017 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 26018 $(SET_LIB_PATH) \
a675b75a 26019 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 26020 (cd $(TARGET_SUBDIR)/libtermcap && \
63673a5b 26021 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
8ecc6504 26022
a7e609d6 26023@endif target-libtermcap
8ecc6504 26024
8ec98d6c 26025# Other targets (info, dvi, etc.)
70ffc148 26026
8ec98d6c
NN
26027.PHONY: maybe-info-target-libtermcap info-target-libtermcap
26028maybe-info-target-libtermcap:
a7e609d6 26029@if target-libtermcap
b6fb961f
MS
26030maybe-info-target-libtermcap: info-target-libtermcap
26031
26032info-target-libtermcap: \
26033 configure-target-libtermcap
26034 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
26035 r=`${PWD_COMMAND}`; export r; \
26036 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26037 $(SET_LIB_PATH) \
26038 $(NORMAL_TARGET_EXPORTS) \
26039 echo "Doing info in $(TARGET_SUBDIR)/libtermcap" ; \
26040 for flag in $(EXTRA_TARGET_FLAGS); do \
26041 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26042 done; \
26043 (cd $(TARGET_SUBDIR)/libtermcap && \
26044 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26045 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26046 "RANLIB=$${RANLIB}" \
26047 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
26048 info) \
26049 || exit 1
26050
26051@endif target-libtermcap
26052
26053.PHONY: maybe-dvi-target-libtermcap dvi-target-libtermcap
26054maybe-dvi-target-libtermcap:
26055@if target-libtermcap
26056maybe-dvi-target-libtermcap: dvi-target-libtermcap
8ec98d6c 26057
b6fb961f 26058dvi-target-libtermcap: \
8ec98d6c
NN
26059 configure-target-libtermcap
26060 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
26061 r=`${PWD_COMMAND}`; export r; \
5230d454 26062 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 26063 $(SET_LIB_PATH) \
a675b75a 26064 $(NORMAL_TARGET_EXPORTS) \
b6fb961f 26065 echo "Doing dvi in $(TARGET_SUBDIR)/libtermcap" ; \
8ec98d6c
NN
26066 for flag in $(EXTRA_TARGET_FLAGS); do \
26067 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26068 done; \
26069 (cd $(TARGET_SUBDIR)/libtermcap && \
26070 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26071 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26072 "RANLIB=$${RANLIB}" \
26073 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b6fb961f 26074 dvi) \
8ec98d6c 26075 || exit 1
8ecc6504 26076
a7e609d6 26077@endif target-libtermcap
8ecc6504 26078
b6fb961f
MS
26079.PHONY: maybe-html-target-libtermcap html-target-libtermcap
26080maybe-html-target-libtermcap:
a7e609d6 26081@if target-libtermcap
b6fb961f 26082maybe-html-target-libtermcap: html-target-libtermcap
8ec98d6c 26083
b6fb961f 26084html-target-libtermcap: \
8ec98d6c
NN
26085 configure-target-libtermcap
26086 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
5230d454
L
26087 r=`${PWD_COMMAND}`; export r; \
26088 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8ec98d6c 26089 $(SET_LIB_PATH) \
a675b75a 26090 $(NORMAL_TARGET_EXPORTS) \
b6fb961f 26091 echo "Doing html in $(TARGET_SUBDIR)/libtermcap" ; \
8ec98d6c
NN
26092 for flag in $(EXTRA_TARGET_FLAGS); do \
26093 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26094 done; \
26095 (cd $(TARGET_SUBDIR)/libtermcap && \
26096 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26097 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26098 "RANLIB=$${RANLIB}" \
26099 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b6fb961f 26100 html) \
94f860c0
NN
26101 || exit 1
26102
a7e609d6 26103@endif target-libtermcap
8ec98d6c
NN
26104
26105.PHONY: maybe-TAGS-target-libtermcap TAGS-target-libtermcap
26106maybe-TAGS-target-libtermcap:
a7e609d6
PB
26107@if target-libtermcap
26108maybe-TAGS-target-libtermcap: TAGS-target-libtermcap
8ec98d6c
NN
26109
26110TAGS-target-libtermcap: \
26111 configure-target-libtermcap
26112 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
26113 r=`${PWD_COMMAND}`; export r; \
5230d454 26114 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 26115 $(SET_LIB_PATH) \
a675b75a 26116 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
26117 echo "Doing TAGS in $(TARGET_SUBDIR)/libtermcap" ; \
26118 for flag in $(EXTRA_TARGET_FLAGS); do \
26119 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26120 done; \
26121 (cd $(TARGET_SUBDIR)/libtermcap && \
26122 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26123 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26124 "RANLIB=$${RANLIB}" \
26125 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 26126 TAGS) \
8ec98d6c 26127 || exit 1
8ecc6504 26128
a7e609d6 26129@endif target-libtermcap
8ecc6504 26130
8ec98d6c
NN
26131.PHONY: maybe-install-info-target-libtermcap install-info-target-libtermcap
26132maybe-install-info-target-libtermcap:
a7e609d6
PB
26133@if target-libtermcap
26134maybe-install-info-target-libtermcap: install-info-target-libtermcap
8ecc6504 26135
8ec98d6c
NN
26136install-info-target-libtermcap: \
26137 configure-target-libtermcap \
26138 info-target-libtermcap
26139 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
26140 r=`${PWD_COMMAND}`; export r; \
26141 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26142 $(SET_LIB_PATH) \
a675b75a 26143 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
26144 echo "Doing install-info in $(TARGET_SUBDIR)/libtermcap" ; \
26145 for flag in $(EXTRA_TARGET_FLAGS); do \
26146 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26147 done; \
26148 (cd $(TARGET_SUBDIR)/libtermcap && \
26149 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26150 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26151 "RANLIB=$${RANLIB}" \
26152 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 26153 install-info) \
8ec98d6c 26154 || exit 1
8ecc6504 26155
a7e609d6 26156@endif target-libtermcap
70ffc148 26157
8ec98d6c
NN
26158.PHONY: maybe-installcheck-target-libtermcap installcheck-target-libtermcap
26159maybe-installcheck-target-libtermcap:
a7e609d6
PB
26160@if target-libtermcap
26161maybe-installcheck-target-libtermcap: installcheck-target-libtermcap
8ec98d6c
NN
26162
26163installcheck-target-libtermcap: \
26164 configure-target-libtermcap
26165 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
26166 r=`${PWD_COMMAND}`; export r; \
5230d454 26167 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 26168 $(SET_LIB_PATH) \
a675b75a 26169 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
26170 echo "Doing installcheck in $(TARGET_SUBDIR)/libtermcap" ; \
26171 for flag in $(EXTRA_TARGET_FLAGS); do \
26172 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26173 done; \
26174 (cd $(TARGET_SUBDIR)/libtermcap && \
26175 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26176 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26177 "RANLIB=$${RANLIB}" \
26178 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 26179 installcheck) \
8ec98d6c 26180 || exit 1
8ecc6504 26181
a7e609d6 26182@endif target-libtermcap
8ecc6504 26183
8ec98d6c
NN
26184.PHONY: maybe-mostlyclean-target-libtermcap mostlyclean-target-libtermcap
26185maybe-mostlyclean-target-libtermcap:
a7e609d6
PB
26186@if target-libtermcap
26187maybe-mostlyclean-target-libtermcap: mostlyclean-target-libtermcap
8ec98d6c
NN
26188
26189# libtermcap doesn't support mostlyclean.
26190mostlyclean-target-libtermcap:
26191
a7e609d6 26192@endif target-libtermcap
8ec98d6c
NN
26193
26194.PHONY: maybe-clean-target-libtermcap clean-target-libtermcap
26195maybe-clean-target-libtermcap:
a7e609d6
PB
26196@if target-libtermcap
26197maybe-clean-target-libtermcap: clean-target-libtermcap
8ec98d6c
NN
26198
26199# libtermcap doesn't support clean.
26200clean-target-libtermcap:
26201
a7e609d6 26202@endif target-libtermcap
8ec98d6c
NN
26203
26204.PHONY: maybe-distclean-target-libtermcap distclean-target-libtermcap
26205maybe-distclean-target-libtermcap:
a7e609d6
PB
26206@if target-libtermcap
26207maybe-distclean-target-libtermcap: distclean-target-libtermcap
8ec98d6c
NN
26208
26209# libtermcap doesn't support distclean.
26210distclean-target-libtermcap:
26211
a7e609d6 26212@endif target-libtermcap
8ec98d6c
NN
26213
26214.PHONY: maybe-maintainer-clean-target-libtermcap maintainer-clean-target-libtermcap
26215maybe-maintainer-clean-target-libtermcap:
a7e609d6
PB
26216@if target-libtermcap
26217maybe-maintainer-clean-target-libtermcap: maintainer-clean-target-libtermcap
8ec98d6c
NN
26218
26219# libtermcap doesn't support maintainer-clean.
26220maintainer-clean-target-libtermcap:
26221
a7e609d6 26222@endif target-libtermcap
8ec98d6c
NN
26223
26224
26225.PHONY: configure-target-winsup maybe-configure-target-winsup
26226maybe-configure-target-winsup:
a7e609d6
PB
26227@if target-winsup
26228maybe-configure-target-winsup: configure-target-winsup
8ec98d6c
NN
26229
26230# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
26231$(TARGET_SUBDIR)/winsup/multilib.out: multilib.out
26232 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup ; \
26233 rm -f $(TARGET_SUBDIR)/winsup/Makefile || : ; \
26234 cp multilib.out $(TARGET_SUBDIR)/winsup/multilib.out
26235
26236configure-target-winsup: $(TARGET_SUBDIR)/winsup/multilib.out
26237 @test ! -f $(TARGET_SUBDIR)/winsup/Makefile || exit 0; \
26238 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup ; \
5230d454
L
26239 r=`${PWD_COMMAND}`; export r; \
26240 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8ec98d6c 26241 $(SET_LIB_PATH) \
a675b75a 26242 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
26243 echo Configuring in $(TARGET_SUBDIR)/winsup; \
26244 cd "$(TARGET_SUBDIR)/winsup" || exit 1; \
94f860c0 26245 case $(srcdir) in \
7fc2ca22
PB
26246 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
26247 *) topdir=`echo $(TARGET_SUBDIR)/winsup/ | \
26248 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 26249 esac; \
7fc2ca22
PB
26250 srcdiroption="--srcdir=$${topdir}/winsup"; \
26251 libsrcdir="$$s/winsup"; \
8ec98d6c
NN
26252 rm -f no-such-file || : ; \
26253 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
26254 $(TARGET_CONFIGARGS) $${srcdiroption} \
63673a5b 26255 --with-target-subdir="$(TARGET_SUBDIR)" \
94f860c0 26256 || exit 1
a7e609d6 26257@endif target-winsup
94f860c0 26258
8ec98d6c
NN
26259.PHONY: all-target-winsup maybe-all-target-winsup
26260maybe-all-target-winsup:
a7e609d6 26261@if target-winsup
6a19fd82 26262TARGET-target-winsup=all
a7e609d6 26263maybe-all-target-winsup: all-target-winsup
8ec98d6c 26264all-target-winsup: configure-target-winsup
5230d454
L
26265 @r=`${PWD_COMMAND}`; export r; \
26266 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 26267 $(SET_LIB_PATH) \
a675b75a 26268 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 26269 (cd $(TARGET_SUBDIR)/winsup && \
6a19fd82 26270 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-winsup))
a7e609d6 26271@endif target-winsup
8ecc6504 26272
8ec98d6c
NN
26273.PHONY: check-target-winsup maybe-check-target-winsup
26274maybe-check-target-winsup:
a7e609d6
PB
26275@if target-winsup
26276maybe-check-target-winsup: check-target-winsup
8ecc6504 26277
8ec98d6c
NN
26278check-target-winsup:
26279 @r=`${PWD_COMMAND}`; export r; \
26280 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26281 $(SET_LIB_PATH) \
a675b75a 26282 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 26283 (cd $(TARGET_SUBDIR)/winsup && \
63673a5b 26284 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
8ecc6504 26285
a7e609d6 26286@endif target-winsup
8ecc6504 26287
8ec98d6c
NN
26288.PHONY: install-target-winsup maybe-install-target-winsup
26289maybe-install-target-winsup:
a7e609d6
PB
26290@if target-winsup
26291maybe-install-target-winsup: install-target-winsup
70ffc148 26292
8ec98d6c
NN
26293install-target-winsup: installdirs
26294 @r=`${PWD_COMMAND}`; export r; \
26295 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26296 $(SET_LIB_PATH) \
a675b75a 26297 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 26298 (cd $(TARGET_SUBDIR)/winsup && \
63673a5b 26299 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
8ecc6504 26300
a7e609d6 26301@endif target-winsup
8ecc6504 26302
8ec98d6c
NN
26303# Other targets (info, dvi, etc.)
26304
26305.PHONY: maybe-info-target-winsup info-target-winsup
26306maybe-info-target-winsup:
a7e609d6
PB
26307@if target-winsup
26308maybe-info-target-winsup: info-target-winsup
8ec98d6c
NN
26309
26310info-target-winsup: \
26311 configure-target-winsup
26312 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
5230d454
L
26313 r=`${PWD_COMMAND}`; export r; \
26314 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8ec98d6c 26315 $(SET_LIB_PATH) \
a675b75a 26316 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
26317 echo "Doing info in $(TARGET_SUBDIR)/winsup" ; \
26318 for flag in $(EXTRA_TARGET_FLAGS); do \
26319 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26320 done; \
26321 (cd $(TARGET_SUBDIR)/winsup && \
26322 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26323 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26324 "RANLIB=$${RANLIB}" \
26325 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 26326 info) \
94f860c0
NN
26327 || exit 1
26328
a7e609d6 26329@endif target-winsup
8ecc6504 26330
8ec98d6c
NN
26331.PHONY: maybe-dvi-target-winsup dvi-target-winsup
26332maybe-dvi-target-winsup:
a7e609d6
PB
26333@if target-winsup
26334maybe-dvi-target-winsup: dvi-target-winsup
8ecc6504 26335
8ec98d6c
NN
26336dvi-target-winsup: \
26337 configure-target-winsup
26338 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
26339 r=`${PWD_COMMAND}`; export r; \
5230d454 26340 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 26341 $(SET_LIB_PATH) \
a675b75a 26342 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
26343 echo "Doing dvi in $(TARGET_SUBDIR)/winsup" ; \
26344 for flag in $(EXTRA_TARGET_FLAGS); do \
26345 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26346 done; \
26347 (cd $(TARGET_SUBDIR)/winsup && \
26348 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26349 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26350 "RANLIB=$${RANLIB}" \
26351 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 26352 dvi) \
8ec98d6c 26353 || exit 1
8ecc6504 26354
a7e609d6 26355@endif target-winsup
8ecc6504 26356
b6fb961f
MS
26357.PHONY: maybe-html-target-winsup html-target-winsup
26358maybe-html-target-winsup:
26359@if target-winsup
26360maybe-html-target-winsup: html-target-winsup
26361
26362html-target-winsup: \
26363 configure-target-winsup
26364 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
26365 r=`${PWD_COMMAND}`; export r; \
26366 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26367 $(SET_LIB_PATH) \
26368 $(NORMAL_TARGET_EXPORTS) \
26369 echo "Doing html in $(TARGET_SUBDIR)/winsup" ; \
26370 for flag in $(EXTRA_TARGET_FLAGS); do \
26371 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26372 done; \
26373 (cd $(TARGET_SUBDIR)/winsup && \
26374 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26375 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26376 "RANLIB=$${RANLIB}" \
26377 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
26378 html) \
26379 || exit 1
26380
26381@endif target-winsup
26382
8ec98d6c
NN
26383.PHONY: maybe-TAGS-target-winsup TAGS-target-winsup
26384maybe-TAGS-target-winsup:
a7e609d6
PB
26385@if target-winsup
26386maybe-TAGS-target-winsup: TAGS-target-winsup
70ffc148 26387
8ec98d6c
NN
26388TAGS-target-winsup: \
26389 configure-target-winsup
26390 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
26391 r=`${PWD_COMMAND}`; export r; \
5230d454 26392 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 26393 $(SET_LIB_PATH) \
a675b75a 26394 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
26395 echo "Doing TAGS in $(TARGET_SUBDIR)/winsup" ; \
26396 for flag in $(EXTRA_TARGET_FLAGS); do \
26397 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26398 done; \
26399 (cd $(TARGET_SUBDIR)/winsup && \
26400 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26401 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26402 "RANLIB=$${RANLIB}" \
26403 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 26404 TAGS) \
8ec98d6c 26405 || exit 1
8ecc6504 26406
a7e609d6 26407@endif target-winsup
8ecc6504 26408
8ec98d6c
NN
26409.PHONY: maybe-install-info-target-winsup install-info-target-winsup
26410maybe-install-info-target-winsup:
a7e609d6
PB
26411@if target-winsup
26412maybe-install-info-target-winsup: install-info-target-winsup
8ec98d6c
NN
26413
26414install-info-target-winsup: \
26415 configure-target-winsup \
26416 info-target-winsup
26417 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
5230d454
L
26418 r=`${PWD_COMMAND}`; export r; \
26419 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8ec98d6c 26420 $(SET_LIB_PATH) \
a675b75a 26421 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
26422 echo "Doing install-info in $(TARGET_SUBDIR)/winsup" ; \
26423 for flag in $(EXTRA_TARGET_FLAGS); do \
26424 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26425 done; \
26426 (cd $(TARGET_SUBDIR)/winsup && \
26427 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26428 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26429 "RANLIB=$${RANLIB}" \
26430 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 26431 install-info) \
94f860c0
NN
26432 || exit 1
26433
a7e609d6 26434@endif target-winsup
8ec98d6c
NN
26435
26436.PHONY: maybe-installcheck-target-winsup installcheck-target-winsup
26437maybe-installcheck-target-winsup:
a7e609d6
PB
26438@if target-winsup
26439maybe-installcheck-target-winsup: installcheck-target-winsup
8ec98d6c
NN
26440
26441installcheck-target-winsup: \
26442 configure-target-winsup
26443 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
26444 r=`${PWD_COMMAND}`; export r; \
5230d454 26445 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 26446 $(SET_LIB_PATH) \
a675b75a 26447 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
26448 echo "Doing installcheck in $(TARGET_SUBDIR)/winsup" ; \
26449 for flag in $(EXTRA_TARGET_FLAGS); do \
26450 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26451 done; \
26452 (cd $(TARGET_SUBDIR)/winsup && \
26453 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26454 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26455 "RANLIB=$${RANLIB}" \
26456 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 26457 installcheck) \
8ec98d6c 26458 || exit 1
8ecc6504 26459
a7e609d6 26460@endif target-winsup
8ecc6504 26461
8ec98d6c
NN
26462.PHONY: maybe-mostlyclean-target-winsup mostlyclean-target-winsup
26463maybe-mostlyclean-target-winsup:
a7e609d6
PB
26464@if target-winsup
26465maybe-mostlyclean-target-winsup: mostlyclean-target-winsup
8ec98d6c
NN
26466
26467mostlyclean-target-winsup:
26468 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
26469 r=`${PWD_COMMAND}`; export r; \
5230d454 26470 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 26471 $(SET_LIB_PATH) \
a675b75a 26472 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
26473 echo "Doing mostlyclean in $(TARGET_SUBDIR)/winsup" ; \
26474 for flag in $(EXTRA_TARGET_FLAGS); do \
26475 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26476 done; \
26477 (cd $(TARGET_SUBDIR)/winsup && \
26478 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26479 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26480 "RANLIB=$${RANLIB}" \
26481 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 26482 mostlyclean) \
8ec98d6c 26483 || exit 1
8ecc6504 26484
a7e609d6 26485@endif target-winsup
8ecc6504 26486
8ec98d6c
NN
26487.PHONY: maybe-clean-target-winsup clean-target-winsup
26488maybe-clean-target-winsup:
a7e609d6
PB
26489@if target-winsup
26490maybe-clean-target-winsup: clean-target-winsup
70ffc148 26491
8ec98d6c
NN
26492clean-target-winsup:
26493 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
26494 r=`${PWD_COMMAND}`; export r; \
5230d454 26495 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 26496 $(SET_LIB_PATH) \
a675b75a 26497 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
26498 echo "Doing clean in $(TARGET_SUBDIR)/winsup" ; \
26499 for flag in $(EXTRA_TARGET_FLAGS); do \
26500 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26501 done; \
26502 (cd $(TARGET_SUBDIR)/winsup && \
26503 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26504 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26505 "RANLIB=$${RANLIB}" \
26506 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 26507 clean) \
8ec98d6c 26508 || exit 1
8ecc6504 26509
a7e609d6 26510@endif target-winsup
8ecc6504 26511
8ec98d6c
NN
26512.PHONY: maybe-distclean-target-winsup distclean-target-winsup
26513maybe-distclean-target-winsup:
a7e609d6
PB
26514@if target-winsup
26515maybe-distclean-target-winsup: distclean-target-winsup
8ec98d6c
NN
26516
26517distclean-target-winsup:
26518 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
5230d454
L
26519 r=`${PWD_COMMAND}`; export r; \
26520 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8ec98d6c 26521 $(SET_LIB_PATH) \
a675b75a 26522 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
26523 echo "Doing distclean in $(TARGET_SUBDIR)/winsup" ; \
26524 for flag in $(EXTRA_TARGET_FLAGS); do \
26525 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26526 done; \
26527 (cd $(TARGET_SUBDIR)/winsup && \
26528 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26529 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26530 "RANLIB=$${RANLIB}" \
26531 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 26532 distclean) \
94f860c0
NN
26533 || exit 1
26534
a7e609d6 26535@endif target-winsup
8ecc6504 26536
8ec98d6c
NN
26537.PHONY: maybe-maintainer-clean-target-winsup maintainer-clean-target-winsup
26538maybe-maintainer-clean-target-winsup:
a7e609d6
PB
26539@if target-winsup
26540maybe-maintainer-clean-target-winsup: maintainer-clean-target-winsup
8ecc6504 26541
8ec98d6c
NN
26542maintainer-clean-target-winsup:
26543 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
26544 r=`${PWD_COMMAND}`; export r; \
5230d454 26545 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 26546 $(SET_LIB_PATH) \
a675b75a 26547 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
26548 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/winsup" ; \
26549 for flag in $(EXTRA_TARGET_FLAGS); do \
26550 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26551 done; \
26552 (cd $(TARGET_SUBDIR)/winsup && \
26553 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26554 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26555 "RANLIB=$${RANLIB}" \
26556 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 26557 maintainer-clean) \
8ec98d6c 26558 || exit 1
8ecc6504 26559
a7e609d6 26560@endif target-winsup
8ecc6504 26561
70ffc148 26562
8ec98d6c
NN
26563.PHONY: configure-target-libgloss maybe-configure-target-libgloss
26564maybe-configure-target-libgloss:
a7e609d6
PB
26565@if target-libgloss
26566maybe-configure-target-libgloss: configure-target-libgloss
8ecc6504 26567
8ec98d6c
NN
26568# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
26569$(TARGET_SUBDIR)/libgloss/multilib.out: multilib.out
26570 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss ; \
26571 rm -f $(TARGET_SUBDIR)/libgloss/Makefile || : ; \
26572 cp multilib.out $(TARGET_SUBDIR)/libgloss/multilib.out
8ecc6504 26573
8ec98d6c
NN
26574configure-target-libgloss: $(TARGET_SUBDIR)/libgloss/multilib.out
26575 @test ! -f $(TARGET_SUBDIR)/libgloss/Makefile || exit 0; \
26576 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss ; \
5230d454
L
26577 r=`${PWD_COMMAND}`; export r; \
26578 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8ec98d6c 26579 $(SET_LIB_PATH) \
a675b75a 26580 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
26581 echo Configuring in $(TARGET_SUBDIR)/libgloss; \
26582 cd "$(TARGET_SUBDIR)/libgloss" || exit 1; \
94f860c0 26583 case $(srcdir) in \
7fc2ca22
PB
26584 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
26585 *) topdir=`echo $(TARGET_SUBDIR)/libgloss/ | \
26586 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 26587 esac; \
7fc2ca22
PB
26588 srcdiroption="--srcdir=$${topdir}/libgloss"; \
26589 libsrcdir="$$s/libgloss"; \
8ec98d6c
NN
26590 rm -f no-such-file || : ; \
26591 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
26592 $(TARGET_CONFIGARGS) $${srcdiroption} \
63673a5b 26593 --with-target-subdir="$(TARGET_SUBDIR)" \
94f860c0 26594 || exit 1
a7e609d6 26595@endif target-libgloss
94f860c0 26596
8ec98d6c
NN
26597.PHONY: all-target-libgloss maybe-all-target-libgloss
26598maybe-all-target-libgloss:
a7e609d6 26599@if target-libgloss
6a19fd82 26600TARGET-target-libgloss=all
a7e609d6 26601maybe-all-target-libgloss: all-target-libgloss
8ec98d6c 26602all-target-libgloss: configure-target-libgloss
5230d454
L
26603 @r=`${PWD_COMMAND}`; export r; \
26604 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 26605 $(SET_LIB_PATH) \
a675b75a 26606 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 26607 (cd $(TARGET_SUBDIR)/libgloss && \
6a19fd82 26608 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libgloss))
a7e609d6 26609@endif target-libgloss
d6ebd419 26610
8ec98d6c
NN
26611.PHONY: check-target-libgloss maybe-check-target-libgloss
26612maybe-check-target-libgloss:
a7e609d6
PB
26613@if target-libgloss
26614maybe-check-target-libgloss: check-target-libgloss
d6ebd419 26615
8ec98d6c
NN
26616# Dummy target for uncheckable module.
26617check-target-libgloss:
d6ebd419 26618
a7e609d6 26619@endif target-libgloss
d6ebd419 26620
8ec98d6c
NN
26621.PHONY: install-target-libgloss maybe-install-target-libgloss
26622maybe-install-target-libgloss:
a7e609d6
PB
26623@if target-libgloss
26624maybe-install-target-libgloss: install-target-libgloss
70ffc148 26625
8ec98d6c 26626install-target-libgloss: installdirs
5230d454
L
26627 @r=`${PWD_COMMAND}`; export r; \
26628 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 26629 $(SET_LIB_PATH) \
a675b75a 26630 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 26631 (cd $(TARGET_SUBDIR)/libgloss && \
63673a5b 26632 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
d6ebd419 26633
a7e609d6 26634@endif target-libgloss
8ecc6504 26635
8ec98d6c
NN
26636# Other targets (info, dvi, etc.)
26637
26638.PHONY: maybe-info-target-libgloss info-target-libgloss
26639maybe-info-target-libgloss:
a7e609d6
PB
26640@if target-libgloss
26641maybe-info-target-libgloss: info-target-libgloss
8ec98d6c
NN
26642
26643info-target-libgloss: \
26644 configure-target-libgloss
26645 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
5230d454
L
26646 r=`${PWD_COMMAND}`; export r; \
26647 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8ec98d6c 26648 $(SET_LIB_PATH) \
a675b75a 26649 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
26650 echo "Doing info in $(TARGET_SUBDIR)/libgloss" ; \
26651 for flag in $(EXTRA_TARGET_FLAGS); do \
26652 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26653 done; \
26654 (cd $(TARGET_SUBDIR)/libgloss && \
26655 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26656 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26657 "RANLIB=$${RANLIB}" \
26658 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 26659 info) \
b93e1111
MC
26660 || exit 1
26661
a7e609d6 26662@endif target-libgloss
b93e1111 26663
8ec98d6c
NN
26664.PHONY: maybe-dvi-target-libgloss dvi-target-libgloss
26665maybe-dvi-target-libgloss:
a7e609d6
PB
26666@if target-libgloss
26667maybe-dvi-target-libgloss: dvi-target-libgloss
b93e1111 26668
8ec98d6c
NN
26669dvi-target-libgloss: \
26670 configure-target-libgloss
26671 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
26672 r=`${PWD_COMMAND}`; export r; \
5230d454 26673 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b93e1111 26674 $(SET_LIB_PATH) \
a675b75a 26675 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
26676 echo "Doing dvi in $(TARGET_SUBDIR)/libgloss" ; \
26677 for flag in $(EXTRA_TARGET_FLAGS); do \
26678 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26679 done; \
26680 (cd $(TARGET_SUBDIR)/libgloss && \
26681 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26682 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26683 "RANLIB=$${RANLIB}" \
26684 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 26685 dvi) \
8ec98d6c 26686 || exit 1
b93e1111 26687
a7e609d6 26688@endif target-libgloss
b93e1111 26689
b6fb961f
MS
26690.PHONY: maybe-html-target-libgloss html-target-libgloss
26691maybe-html-target-libgloss:
26692@if target-libgloss
26693maybe-html-target-libgloss: html-target-libgloss
26694
26695html-target-libgloss: \
26696 configure-target-libgloss
26697 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
26698 r=`${PWD_COMMAND}`; export r; \
26699 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26700 $(SET_LIB_PATH) \
26701 $(NORMAL_TARGET_EXPORTS) \
26702 echo "Doing html in $(TARGET_SUBDIR)/libgloss" ; \
26703 for flag in $(EXTRA_TARGET_FLAGS); do \
26704 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26705 done; \
26706 (cd $(TARGET_SUBDIR)/libgloss && \
26707 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26708 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26709 "RANLIB=$${RANLIB}" \
26710 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
26711 html) \
26712 || exit 1
26713
26714@endif target-libgloss
26715
8ec98d6c
NN
26716.PHONY: maybe-TAGS-target-libgloss TAGS-target-libgloss
26717maybe-TAGS-target-libgloss:
a7e609d6
PB
26718@if target-libgloss
26719maybe-TAGS-target-libgloss: TAGS-target-libgloss
70ffc148 26720
8ec98d6c
NN
26721TAGS-target-libgloss: \
26722 configure-target-libgloss
26723 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
26724 r=`${PWD_COMMAND}`; export r; \
5230d454 26725 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b93e1111 26726 $(SET_LIB_PATH) \
a675b75a 26727 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
26728 echo "Doing TAGS in $(TARGET_SUBDIR)/libgloss" ; \
26729 for flag in $(EXTRA_TARGET_FLAGS); do \
26730 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26731 done; \
26732 (cd $(TARGET_SUBDIR)/libgloss && \
26733 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26734 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26735 "RANLIB=$${RANLIB}" \
26736 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 26737 TAGS) \
8ec98d6c 26738 || exit 1
b93e1111 26739
a7e609d6 26740@endif target-libgloss
b93e1111 26741
8ec98d6c
NN
26742.PHONY: maybe-install-info-target-libgloss install-info-target-libgloss
26743maybe-install-info-target-libgloss:
a7e609d6
PB
26744@if target-libgloss
26745maybe-install-info-target-libgloss: install-info-target-libgloss
8ec98d6c
NN
26746
26747install-info-target-libgloss: \
26748 configure-target-libgloss \
26749 info-target-libgloss
26750 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
5230d454
L
26751 r=`${PWD_COMMAND}`; export r; \
26752 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8ec98d6c 26753 $(SET_LIB_PATH) \
a675b75a 26754 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
26755 echo "Doing install-info in $(TARGET_SUBDIR)/libgloss" ; \
26756 for flag in $(EXTRA_TARGET_FLAGS); do \
26757 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26758 done; \
26759 (cd $(TARGET_SUBDIR)/libgloss && \
26760 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26761 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26762 "RANLIB=$${RANLIB}" \
26763 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 26764 install-info) \
94f860c0
NN
26765 || exit 1
26766
a7e609d6 26767@endif target-libgloss
d6ebd419 26768
8ec98d6c
NN
26769.PHONY: maybe-installcheck-target-libgloss installcheck-target-libgloss
26770maybe-installcheck-target-libgloss:
a7e609d6
PB
26771@if target-libgloss
26772maybe-installcheck-target-libgloss: installcheck-target-libgloss
d6ebd419 26773
8ec98d6c
NN
26774installcheck-target-libgloss: \
26775 configure-target-libgloss
26776 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
26777 r=`${PWD_COMMAND}`; export r; \
26778 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26779 $(SET_LIB_PATH) \
a675b75a 26780 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
26781 echo "Doing installcheck in $(TARGET_SUBDIR)/libgloss" ; \
26782 for flag in $(EXTRA_TARGET_FLAGS); do \
26783 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26784 done; \
26785 (cd $(TARGET_SUBDIR)/libgloss && \
26786 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26787 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26788 "RANLIB=$${RANLIB}" \
26789 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 26790 installcheck) \
8ec98d6c 26791 || exit 1
8ecc6504 26792
a7e609d6 26793@endif target-libgloss
8ecc6504 26794
8ec98d6c
NN
26795.PHONY: maybe-mostlyclean-target-libgloss mostlyclean-target-libgloss
26796maybe-mostlyclean-target-libgloss:
a7e609d6
PB
26797@if target-libgloss
26798maybe-mostlyclean-target-libgloss: mostlyclean-target-libgloss
70ffc148 26799
8ec98d6c
NN
26800mostlyclean-target-libgloss:
26801 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
26802 r=`${PWD_COMMAND}`; export r; \
5230d454 26803 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 26804 $(SET_LIB_PATH) \
a675b75a 26805 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
26806 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgloss" ; \
26807 for flag in $(EXTRA_TARGET_FLAGS); do \
26808 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26809 done; \
26810 (cd $(TARGET_SUBDIR)/libgloss && \
26811 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26812 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26813 "RANLIB=$${RANLIB}" \
26814 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 26815 mostlyclean) \
8ec98d6c 26816 || exit 1
d6ebd419 26817
a7e609d6 26818@endif target-libgloss
8ecc6504 26819
8ec98d6c
NN
26820.PHONY: maybe-clean-target-libgloss clean-target-libgloss
26821maybe-clean-target-libgloss:
a7e609d6
PB
26822@if target-libgloss
26823maybe-clean-target-libgloss: clean-target-libgloss
8ec98d6c
NN
26824
26825clean-target-libgloss:
26826 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
5230d454
L
26827 r=`${PWD_COMMAND}`; export r; \
26828 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8ec98d6c 26829 $(SET_LIB_PATH) \
a675b75a 26830 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
26831 echo "Doing clean in $(TARGET_SUBDIR)/libgloss" ; \
26832 for flag in $(EXTRA_TARGET_FLAGS); do \
26833 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26834 done; \
26835 (cd $(TARGET_SUBDIR)/libgloss && \
26836 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26837 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26838 "RANLIB=$${RANLIB}" \
26839 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 26840 clean) \
94f860c0
NN
26841 || exit 1
26842
a7e609d6 26843@endif target-libgloss
d6ebd419 26844
8ec98d6c
NN
26845.PHONY: maybe-distclean-target-libgloss distclean-target-libgloss
26846maybe-distclean-target-libgloss:
a7e609d6
PB
26847@if target-libgloss
26848maybe-distclean-target-libgloss: distclean-target-libgloss
8ecc6504 26849
8ec98d6c
NN
26850distclean-target-libgloss:
26851 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
26852 r=`${PWD_COMMAND}`; export r; \
26853 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26854 $(SET_LIB_PATH) \
a675b75a 26855 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
26856 echo "Doing distclean in $(TARGET_SUBDIR)/libgloss" ; \
26857 for flag in $(EXTRA_TARGET_FLAGS); do \
26858 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26859 done; \
26860 (cd $(TARGET_SUBDIR)/libgloss && \
26861 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26862 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26863 "RANLIB=$${RANLIB}" \
26864 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 26865 distclean) \
8ec98d6c 26866 || exit 1
8ecc6504 26867
a7e609d6 26868@endif target-libgloss
8ecc6504 26869
8ec98d6c
NN
26870.PHONY: maybe-maintainer-clean-target-libgloss maintainer-clean-target-libgloss
26871maybe-maintainer-clean-target-libgloss:
a7e609d6
PB
26872@if target-libgloss
26873maybe-maintainer-clean-target-libgloss: maintainer-clean-target-libgloss
70ffc148 26874
8ec98d6c
NN
26875maintainer-clean-target-libgloss:
26876 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
26877 r=`${PWD_COMMAND}`; export r; \
5230d454 26878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 26879 $(SET_LIB_PATH) \
a675b75a 26880 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
26881 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgloss" ; \
26882 for flag in $(EXTRA_TARGET_FLAGS); do \
26883 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26884 done; \
26885 (cd $(TARGET_SUBDIR)/libgloss && \
26886 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26887 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26888 "RANLIB=$${RANLIB}" \
26889 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 26890 maintainer-clean) \
8ec98d6c 26891 || exit 1
8ecc6504 26892
a7e609d6 26893@endif target-libgloss
8ecc6504 26894
d6ebd419 26895
8ec98d6c
NN
26896.PHONY: configure-target-libiberty maybe-configure-target-libiberty
26897maybe-configure-target-libiberty:
a7e609d6
PB
26898@if target-libiberty
26899maybe-configure-target-libiberty: configure-target-libiberty
43bdb69a 26900
6dbec167 26901# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
8ec98d6c
NN
26902$(TARGET_SUBDIR)/libiberty/multilib.out: multilib.out
26903 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libiberty ; \
26904 rm -f $(TARGET_SUBDIR)/libiberty/Makefile || : ; \
26905 cp multilib.out $(TARGET_SUBDIR)/libiberty/multilib.out
43bdb69a 26906
8ec98d6c
NN
26907configure-target-libiberty: $(TARGET_SUBDIR)/libiberty/multilib.out
26908 @test ! -f $(TARGET_SUBDIR)/libiberty/Makefile || exit 0; \
26909 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libiberty ; \
5230d454
L
26910 r=`${PWD_COMMAND}`; export r; \
26911 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 26912 $(SET_LIB_PATH) \
a675b75a 26913 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
26914 echo Configuring in $(TARGET_SUBDIR)/libiberty; \
26915 cd "$(TARGET_SUBDIR)/libiberty" || exit 1; \
2245eb63 26916 case $(srcdir) in \
7fc2ca22
PB
26917 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
26918 *) topdir=`echo $(TARGET_SUBDIR)/libiberty/ | \
26919 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2245eb63 26920 esac; \
7fc2ca22
PB
26921 srcdiroption="--srcdir=$${topdir}/libiberty"; \
26922 libsrcdir="$$s/libiberty"; \
2245eb63
NN
26923 rm -f no-such-file || : ; \
26924 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
26925 $(TARGET_CONFIGARGS) $${srcdiroption} \
63673a5b 26926 --with-target-subdir="$(TARGET_SUBDIR)" \
2245eb63 26927 || exit 1
a7e609d6 26928@endif target-libiberty
d6ebd419 26929
8ec98d6c
NN
26930.PHONY: all-target-libiberty maybe-all-target-libiberty
26931maybe-all-target-libiberty:
a7e609d6 26932@if target-libiberty
6a19fd82 26933TARGET-target-libiberty=all
a7e609d6 26934maybe-all-target-libiberty: all-target-libiberty
8ec98d6c 26935all-target-libiberty: configure-target-libiberty
5230d454
L
26936 @r=`${PWD_COMMAND}`; export r; \
26937 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 26938 $(SET_LIB_PATH) \
a675b75a 26939 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 26940 (cd $(TARGET_SUBDIR)/libiberty && \
6a19fd82 26941 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libiberty))
a7e609d6 26942@endif target-libiberty
d6ebd419 26943
8ec98d6c
NN
26944.PHONY: check-target-libiberty maybe-check-target-libiberty
26945maybe-check-target-libiberty:
a7e609d6
PB
26946@if target-libiberty
26947maybe-check-target-libiberty: check-target-libiberty
70ffc148 26948
8ec98d6c 26949check-target-libiberty:
5230d454
L
26950 @r=`${PWD_COMMAND}`; export r; \
26951 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 26952 $(SET_LIB_PATH) \
a675b75a 26953 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 26954 (cd $(TARGET_SUBDIR)/libiberty && \
63673a5b 26955 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
c5e4bb70 26956
a7e609d6 26957@endif target-libiberty
d6ebd419 26958
8ec98d6c
NN
26959.PHONY: install-target-libiberty maybe-install-target-libiberty
26960maybe-install-target-libiberty:
a7e609d6
PB
26961@if target-libiberty
26962maybe-install-target-libiberty: install-target-libiberty
8ec98d6c
NN
26963
26964install-target-libiberty: installdirs
26965 @r=`${PWD_COMMAND}`; export r; \
26966 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26967 $(SET_LIB_PATH) \
a675b75a 26968 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 26969 (cd $(TARGET_SUBDIR)/libiberty && \
63673a5b 26970 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
8ec98d6c 26971
a7e609d6 26972@endif target-libiberty
8ec98d6c
NN
26973
26974# Other targets (info, dvi, etc.)
26975
26976.PHONY: maybe-info-target-libiberty info-target-libiberty
26977maybe-info-target-libiberty:
a7e609d6
PB
26978@if target-libiberty
26979maybe-info-target-libiberty: info-target-libiberty
8ec98d6c
NN
26980
26981info-target-libiberty: \
26982 configure-target-libiberty
26983 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
26984 r=`${PWD_COMMAND}`; export r; \
26985 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26986 $(SET_LIB_PATH) \
a675b75a 26987 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
26988 echo "Doing info in $(TARGET_SUBDIR)/libiberty" ; \
26989 for flag in $(EXTRA_TARGET_FLAGS); do \
26990 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26991 done; \
26992 (cd $(TARGET_SUBDIR)/libiberty && \
26993 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26994 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26995 "RANLIB=$${RANLIB}" \
26996 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 26997 info) \
8ec98d6c
NN
26998 || exit 1
26999
a7e609d6 27000@endif target-libiberty
8ec98d6c
NN
27001
27002.PHONY: maybe-dvi-target-libiberty dvi-target-libiberty
27003maybe-dvi-target-libiberty:
a7e609d6
PB
27004@if target-libiberty
27005maybe-dvi-target-libiberty: dvi-target-libiberty
8ec98d6c
NN
27006
27007dvi-target-libiberty: \
27008 configure-target-libiberty
27009 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
27010 r=`${PWD_COMMAND}`; export r; \
27011 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27012 $(SET_LIB_PATH) \
a675b75a 27013 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
27014 echo "Doing dvi in $(TARGET_SUBDIR)/libiberty" ; \
27015 for flag in $(EXTRA_TARGET_FLAGS); do \
27016 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27017 done; \
27018 (cd $(TARGET_SUBDIR)/libiberty && \
27019 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27020 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27021 "RANLIB=$${RANLIB}" \
27022 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 27023 dvi) \
8ec98d6c
NN
27024 || exit 1
27025
a7e609d6 27026@endif target-libiberty
8ec98d6c 27027
b6fb961f
MS
27028.PHONY: maybe-html-target-libiberty html-target-libiberty
27029maybe-html-target-libiberty:
27030@if target-libiberty
27031maybe-html-target-libiberty: html-target-libiberty
27032
27033html-target-libiberty: \
27034 configure-target-libiberty
27035 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
27036 r=`${PWD_COMMAND}`; export r; \
27037 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27038 $(SET_LIB_PATH) \
27039 $(NORMAL_TARGET_EXPORTS) \
27040 echo "Doing html in $(TARGET_SUBDIR)/libiberty" ; \
27041 for flag in $(EXTRA_TARGET_FLAGS); do \
27042 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27043 done; \
27044 (cd $(TARGET_SUBDIR)/libiberty && \
27045 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27046 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27047 "RANLIB=$${RANLIB}" \
27048 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
27049 html) \
27050 || exit 1
27051
27052@endif target-libiberty
27053
8ec98d6c
NN
27054.PHONY: maybe-TAGS-target-libiberty TAGS-target-libiberty
27055maybe-TAGS-target-libiberty:
a7e609d6
PB
27056@if target-libiberty
27057maybe-TAGS-target-libiberty: TAGS-target-libiberty
8ec98d6c
NN
27058
27059TAGS-target-libiberty: \
27060 configure-target-libiberty
27061 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
27062 r=`${PWD_COMMAND}`; export r; \
27063 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27064 $(SET_LIB_PATH) \
a675b75a 27065 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
27066 echo "Doing TAGS in $(TARGET_SUBDIR)/libiberty" ; \
27067 for flag in $(EXTRA_TARGET_FLAGS); do \
27068 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27069 done; \
27070 (cd $(TARGET_SUBDIR)/libiberty && \
27071 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27072 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27073 "RANLIB=$${RANLIB}" \
27074 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 27075 TAGS) \
8ec98d6c
NN
27076 || exit 1
27077
a7e609d6 27078@endif target-libiberty
8ec98d6c
NN
27079
27080.PHONY: maybe-install-info-target-libiberty install-info-target-libiberty
27081maybe-install-info-target-libiberty:
a7e609d6
PB
27082@if target-libiberty
27083maybe-install-info-target-libiberty: install-info-target-libiberty
8ec98d6c
NN
27084
27085install-info-target-libiberty: \
27086 configure-target-libiberty \
27087 info-target-libiberty
27088 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
27089 r=`${PWD_COMMAND}`; export r; \
27090 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27091 $(SET_LIB_PATH) \
a675b75a 27092 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
27093 echo "Doing install-info in $(TARGET_SUBDIR)/libiberty" ; \
27094 for flag in $(EXTRA_TARGET_FLAGS); do \
27095 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27096 done; \
27097 (cd $(TARGET_SUBDIR)/libiberty && \
27098 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27099 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27100 "RANLIB=$${RANLIB}" \
27101 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 27102 install-info) \
8ec98d6c
NN
27103 || exit 1
27104
a7e609d6 27105@endif target-libiberty
8ec98d6c
NN
27106
27107.PHONY: maybe-installcheck-target-libiberty installcheck-target-libiberty
27108maybe-installcheck-target-libiberty:
a7e609d6
PB
27109@if target-libiberty
27110maybe-installcheck-target-libiberty: installcheck-target-libiberty
8ec98d6c
NN
27111
27112installcheck-target-libiberty: \
27113 configure-target-libiberty
27114 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
27115 r=`${PWD_COMMAND}`; export r; \
27116 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27117 $(SET_LIB_PATH) \
a675b75a 27118 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
27119 echo "Doing installcheck in $(TARGET_SUBDIR)/libiberty" ; \
27120 for flag in $(EXTRA_TARGET_FLAGS); do \
27121 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27122 done; \
27123 (cd $(TARGET_SUBDIR)/libiberty && \
27124 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27125 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27126 "RANLIB=$${RANLIB}" \
27127 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 27128 installcheck) \
8ec98d6c
NN
27129 || exit 1
27130
a7e609d6 27131@endif target-libiberty
8ec98d6c
NN
27132
27133.PHONY: maybe-mostlyclean-target-libiberty mostlyclean-target-libiberty
27134maybe-mostlyclean-target-libiberty:
a7e609d6
PB
27135@if target-libiberty
27136maybe-mostlyclean-target-libiberty: mostlyclean-target-libiberty
8ec98d6c
NN
27137
27138mostlyclean-target-libiberty:
27139 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
27140 r=`${PWD_COMMAND}`; export r; \
27141 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27142 $(SET_LIB_PATH) \
a675b75a 27143 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
27144 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libiberty" ; \
27145 for flag in $(EXTRA_TARGET_FLAGS); do \
27146 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27147 done; \
27148 (cd $(TARGET_SUBDIR)/libiberty && \
27149 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27150 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27151 "RANLIB=$${RANLIB}" \
27152 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 27153 mostlyclean) \
8ec98d6c
NN
27154 || exit 1
27155
a7e609d6 27156@endif target-libiberty
8ec98d6c
NN
27157
27158.PHONY: maybe-clean-target-libiberty clean-target-libiberty
27159maybe-clean-target-libiberty:
a7e609d6
PB
27160@if target-libiberty
27161maybe-clean-target-libiberty: clean-target-libiberty
8ec98d6c
NN
27162
27163clean-target-libiberty:
27164 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
27165 r=`${PWD_COMMAND}`; export r; \
27166 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27167 $(SET_LIB_PATH) \
a675b75a 27168 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
27169 echo "Doing clean in $(TARGET_SUBDIR)/libiberty" ; \
27170 for flag in $(EXTRA_TARGET_FLAGS); do \
27171 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27172 done; \
27173 (cd $(TARGET_SUBDIR)/libiberty && \
27174 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27175 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27176 "RANLIB=$${RANLIB}" \
27177 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 27178 clean) \
8ec98d6c
NN
27179 || exit 1
27180
a7e609d6 27181@endif target-libiberty
8ec98d6c
NN
27182
27183.PHONY: maybe-distclean-target-libiberty distclean-target-libiberty
27184maybe-distclean-target-libiberty:
a7e609d6
PB
27185@if target-libiberty
27186maybe-distclean-target-libiberty: distclean-target-libiberty
8ec98d6c
NN
27187
27188distclean-target-libiberty:
27189 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
27190 r=`${PWD_COMMAND}`; export r; \
27191 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27192 $(SET_LIB_PATH) \
a675b75a 27193 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
27194 echo "Doing distclean in $(TARGET_SUBDIR)/libiberty" ; \
27195 for flag in $(EXTRA_TARGET_FLAGS); do \
27196 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27197 done; \
27198 (cd $(TARGET_SUBDIR)/libiberty && \
27199 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27200 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27201 "RANLIB=$${RANLIB}" \
27202 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 27203 distclean) \
8ec98d6c
NN
27204 || exit 1
27205
a7e609d6 27206@endif target-libiberty
8ec98d6c
NN
27207
27208.PHONY: maybe-maintainer-clean-target-libiberty maintainer-clean-target-libiberty
27209maybe-maintainer-clean-target-libiberty:
a7e609d6
PB
27210@if target-libiberty
27211maybe-maintainer-clean-target-libiberty: maintainer-clean-target-libiberty
8ec98d6c
NN
27212
27213maintainer-clean-target-libiberty:
27214 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
27215 r=`${PWD_COMMAND}`; export r; \
27216 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27217 $(SET_LIB_PATH) \
a675b75a 27218 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
27219 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libiberty" ; \
27220 for flag in $(EXTRA_TARGET_FLAGS); do \
27221 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27222 done; \
27223 (cd $(TARGET_SUBDIR)/libiberty && \
27224 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27225 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27226 "RANLIB=$${RANLIB}" \
27227 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 27228 maintainer-clean) \
8ec98d6c 27229 || exit 1
70ffc148 27230
a7e609d6 27231@endif target-libiberty
d6ebd419
NN
27232
27233
8ec98d6c
NN
27234.PHONY: configure-target-gperf maybe-configure-target-gperf
27235maybe-configure-target-gperf:
a7e609d6
PB
27236@if target-gperf
27237maybe-configure-target-gperf: configure-target-gperf
43bdb69a 27238
6dbec167 27239# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
8ec98d6c
NN
27240$(TARGET_SUBDIR)/gperf/multilib.out: multilib.out
27241 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/gperf ; \
27242 rm -f $(TARGET_SUBDIR)/gperf/Makefile || : ; \
27243 cp multilib.out $(TARGET_SUBDIR)/gperf/multilib.out
43bdb69a 27244
8ec98d6c
NN
27245configure-target-gperf: $(TARGET_SUBDIR)/gperf/multilib.out
27246 @test ! -f $(TARGET_SUBDIR)/gperf/Makefile || exit 0; \
27247 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/gperf ; \
5230d454
L
27248 r=`${PWD_COMMAND}`; export r; \
27249 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 27250 $(SET_LIB_PATH) \
a675b75a 27251 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
27252 echo Configuring in $(TARGET_SUBDIR)/gperf; \
27253 cd "$(TARGET_SUBDIR)/gperf" || exit 1; \
2245eb63 27254 case $(srcdir) in \
7fc2ca22
PB
27255 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
27256 *) topdir=`echo $(TARGET_SUBDIR)/gperf/ | \
27257 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2245eb63 27258 esac; \
7fc2ca22
PB
27259 srcdiroption="--srcdir=$${topdir}/gperf"; \
27260 libsrcdir="$$s/gperf"; \
2245eb63
NN
27261 rm -f no-such-file || : ; \
27262 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
27263 $(TARGET_CONFIGARGS) $${srcdiroption} \
63673a5b 27264 --with-target-subdir="$(TARGET_SUBDIR)" \
2245eb63 27265 || exit 1
a7e609d6 27266@endif target-gperf
d6ebd419 27267
8ec98d6c
NN
27268.PHONY: all-target-gperf maybe-all-target-gperf
27269maybe-all-target-gperf:
a7e609d6 27270@if target-gperf
6a19fd82 27271TARGET-target-gperf=all
a7e609d6 27272maybe-all-target-gperf: all-target-gperf
8ec98d6c 27273all-target-gperf: configure-target-gperf
5230d454
L
27274 @r=`${PWD_COMMAND}`; export r; \
27275 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 27276 $(SET_LIB_PATH) \
a675b75a 27277 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 27278 (cd $(TARGET_SUBDIR)/gperf && \
6a19fd82 27279 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-gperf))
a7e609d6 27280@endif target-gperf
d6ebd419 27281
8ec98d6c
NN
27282.PHONY: check-target-gperf maybe-check-target-gperf
27283maybe-check-target-gperf:
a7e609d6
PB
27284@if target-gperf
27285maybe-check-target-gperf: check-target-gperf
70ffc148 27286
8ec98d6c 27287check-target-gperf:
5230d454
L
27288 @r=`${PWD_COMMAND}`; export r; \
27289 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 27290 $(SET_LIB_PATH) \
a675b75a 27291 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 27292 (cd $(TARGET_SUBDIR)/gperf && \
63673a5b 27293 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
c5e4bb70 27294
a7e609d6 27295@endif target-gperf
d6ebd419 27296
8ec98d6c
NN
27297.PHONY: install-target-gperf maybe-install-target-gperf
27298maybe-install-target-gperf:
a7e609d6
PB
27299@if target-gperf
27300maybe-install-target-gperf: install-target-gperf
8ec98d6c
NN
27301
27302install-target-gperf: installdirs
27303 @r=`${PWD_COMMAND}`; export r; \
27304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27305 $(SET_LIB_PATH) \
a675b75a 27306 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 27307 (cd $(TARGET_SUBDIR)/gperf && \
63673a5b 27308 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
8ec98d6c 27309
a7e609d6 27310@endif target-gperf
8ec98d6c
NN
27311
27312# Other targets (info, dvi, etc.)
27313
27314.PHONY: maybe-info-target-gperf info-target-gperf
27315maybe-info-target-gperf:
a7e609d6
PB
27316@if target-gperf
27317maybe-info-target-gperf: info-target-gperf
8ec98d6c
NN
27318
27319info-target-gperf: \
27320 configure-target-gperf
27321 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
27322 r=`${PWD_COMMAND}`; export r; \
27323 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27324 $(SET_LIB_PATH) \
a675b75a 27325 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
27326 echo "Doing info in $(TARGET_SUBDIR)/gperf" ; \
27327 for flag in $(EXTRA_TARGET_FLAGS); do \
27328 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27329 done; \
27330 (cd $(TARGET_SUBDIR)/gperf && \
27331 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27332 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27333 "RANLIB=$${RANLIB}" \
27334 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 27335 info) \
8ec98d6c
NN
27336 || exit 1
27337
a7e609d6 27338@endif target-gperf
8ec98d6c
NN
27339
27340.PHONY: maybe-dvi-target-gperf dvi-target-gperf
27341maybe-dvi-target-gperf:
a7e609d6
PB
27342@if target-gperf
27343maybe-dvi-target-gperf: dvi-target-gperf
8ec98d6c
NN
27344
27345dvi-target-gperf: \
27346 configure-target-gperf
27347 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
27348 r=`${PWD_COMMAND}`; export r; \
27349 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27350 $(SET_LIB_PATH) \
a675b75a 27351 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
27352 echo "Doing dvi in $(TARGET_SUBDIR)/gperf" ; \
27353 for flag in $(EXTRA_TARGET_FLAGS); do \
27354 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27355 done; \
27356 (cd $(TARGET_SUBDIR)/gperf && \
27357 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27358 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27359 "RANLIB=$${RANLIB}" \
27360 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 27361 dvi) \
8ec98d6c
NN
27362 || exit 1
27363
a7e609d6 27364@endif target-gperf
8ec98d6c 27365
b6fb961f
MS
27366.PHONY: maybe-html-target-gperf html-target-gperf
27367maybe-html-target-gperf:
27368@if target-gperf
27369maybe-html-target-gperf: html-target-gperf
27370
27371html-target-gperf: \
27372 configure-target-gperf
27373 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
27374 r=`${PWD_COMMAND}`; export r; \
27375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27376 $(SET_LIB_PATH) \
27377 $(NORMAL_TARGET_EXPORTS) \
27378 echo "Doing html in $(TARGET_SUBDIR)/gperf" ; \
27379 for flag in $(EXTRA_TARGET_FLAGS); do \
27380 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27381 done; \
27382 (cd $(TARGET_SUBDIR)/gperf && \
27383 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27384 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27385 "RANLIB=$${RANLIB}" \
27386 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
27387 html) \
27388 || exit 1
27389
27390@endif target-gperf
27391
8ec98d6c
NN
27392.PHONY: maybe-TAGS-target-gperf TAGS-target-gperf
27393maybe-TAGS-target-gperf:
a7e609d6
PB
27394@if target-gperf
27395maybe-TAGS-target-gperf: TAGS-target-gperf
8ec98d6c
NN
27396
27397TAGS-target-gperf: \
27398 configure-target-gperf
27399 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
27400 r=`${PWD_COMMAND}`; export r; \
27401 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27402 $(SET_LIB_PATH) \
a675b75a 27403 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
27404 echo "Doing TAGS in $(TARGET_SUBDIR)/gperf" ; \
27405 for flag in $(EXTRA_TARGET_FLAGS); do \
27406 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27407 done; \
27408 (cd $(TARGET_SUBDIR)/gperf && \
27409 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27410 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27411 "RANLIB=$${RANLIB}" \
27412 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 27413 TAGS) \
8ec98d6c
NN
27414 || exit 1
27415
a7e609d6 27416@endif target-gperf
8ec98d6c
NN
27417
27418.PHONY: maybe-install-info-target-gperf install-info-target-gperf
27419maybe-install-info-target-gperf:
a7e609d6
PB
27420@if target-gperf
27421maybe-install-info-target-gperf: install-info-target-gperf
8ec98d6c
NN
27422
27423install-info-target-gperf: \
27424 configure-target-gperf \
27425 info-target-gperf
27426 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
27427 r=`${PWD_COMMAND}`; export r; \
27428 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27429 $(SET_LIB_PATH) \
a675b75a 27430 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
27431 echo "Doing install-info in $(TARGET_SUBDIR)/gperf" ; \
27432 for flag in $(EXTRA_TARGET_FLAGS); do \
27433 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27434 done; \
27435 (cd $(TARGET_SUBDIR)/gperf && \
27436 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27437 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27438 "RANLIB=$${RANLIB}" \
27439 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 27440 install-info) \
8ec98d6c
NN
27441 || exit 1
27442
a7e609d6 27443@endif target-gperf
8ec98d6c
NN
27444
27445.PHONY: maybe-installcheck-target-gperf installcheck-target-gperf
27446maybe-installcheck-target-gperf:
a7e609d6
PB
27447@if target-gperf
27448maybe-installcheck-target-gperf: installcheck-target-gperf
8ec98d6c
NN
27449
27450installcheck-target-gperf: \
27451 configure-target-gperf
27452 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
27453 r=`${PWD_COMMAND}`; export r; \
27454 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27455 $(SET_LIB_PATH) \
a675b75a 27456 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
27457 echo "Doing installcheck in $(TARGET_SUBDIR)/gperf" ; \
27458 for flag in $(EXTRA_TARGET_FLAGS); do \
27459 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27460 done; \
27461 (cd $(TARGET_SUBDIR)/gperf && \
27462 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27463 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27464 "RANLIB=$${RANLIB}" \
27465 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 27466 installcheck) \
8ec98d6c
NN
27467 || exit 1
27468
a7e609d6 27469@endif target-gperf
8ec98d6c
NN
27470
27471.PHONY: maybe-mostlyclean-target-gperf mostlyclean-target-gperf
27472maybe-mostlyclean-target-gperf:
a7e609d6
PB
27473@if target-gperf
27474maybe-mostlyclean-target-gperf: mostlyclean-target-gperf
8ec98d6c
NN
27475
27476mostlyclean-target-gperf:
27477 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
27478 r=`${PWD_COMMAND}`; export r; \
27479 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27480 $(SET_LIB_PATH) \
a675b75a 27481 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
27482 echo "Doing mostlyclean in $(TARGET_SUBDIR)/gperf" ; \
27483 for flag in $(EXTRA_TARGET_FLAGS); do \
27484 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27485 done; \
27486 (cd $(TARGET_SUBDIR)/gperf && \
27487 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27488 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27489 "RANLIB=$${RANLIB}" \
27490 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 27491 mostlyclean) \
8ec98d6c
NN
27492 || exit 1
27493
a7e609d6 27494@endif target-gperf
8ec98d6c
NN
27495
27496.PHONY: maybe-clean-target-gperf clean-target-gperf
27497maybe-clean-target-gperf:
a7e609d6
PB
27498@if target-gperf
27499maybe-clean-target-gperf: clean-target-gperf
8ec98d6c
NN
27500
27501clean-target-gperf:
27502 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
27503 r=`${PWD_COMMAND}`; export r; \
27504 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27505 $(SET_LIB_PATH) \
a675b75a 27506 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
27507 echo "Doing clean in $(TARGET_SUBDIR)/gperf" ; \
27508 for flag in $(EXTRA_TARGET_FLAGS); do \
27509 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27510 done; \
27511 (cd $(TARGET_SUBDIR)/gperf && \
27512 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27513 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27514 "RANLIB=$${RANLIB}" \
27515 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 27516 clean) \
8ec98d6c
NN
27517 || exit 1
27518
a7e609d6 27519@endif target-gperf
8ec98d6c
NN
27520
27521.PHONY: maybe-distclean-target-gperf distclean-target-gperf
27522maybe-distclean-target-gperf:
a7e609d6
PB
27523@if target-gperf
27524maybe-distclean-target-gperf: distclean-target-gperf
8ec98d6c
NN
27525
27526distclean-target-gperf:
27527 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
27528 r=`${PWD_COMMAND}`; export r; \
27529 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27530 $(SET_LIB_PATH) \
a675b75a 27531 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
27532 echo "Doing distclean in $(TARGET_SUBDIR)/gperf" ; \
27533 for flag in $(EXTRA_TARGET_FLAGS); do \
27534 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27535 done; \
27536 (cd $(TARGET_SUBDIR)/gperf && \
27537 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27538 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27539 "RANLIB=$${RANLIB}" \
27540 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 27541 distclean) \
8ec98d6c
NN
27542 || exit 1
27543
a7e609d6 27544@endif target-gperf
8ec98d6c
NN
27545
27546.PHONY: maybe-maintainer-clean-target-gperf maintainer-clean-target-gperf
27547maybe-maintainer-clean-target-gperf:
a7e609d6
PB
27548@if target-gperf
27549maybe-maintainer-clean-target-gperf: maintainer-clean-target-gperf
8ec98d6c
NN
27550
27551maintainer-clean-target-gperf:
27552 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
27553 r=`${PWD_COMMAND}`; export r; \
27554 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27555 $(SET_LIB_PATH) \
a675b75a 27556 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
27557 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/gperf" ; \
27558 for flag in $(EXTRA_TARGET_FLAGS); do \
27559 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27560 done; \
27561 (cd $(TARGET_SUBDIR)/gperf && \
27562 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27563 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27564 "RANLIB=$${RANLIB}" \
27565 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 27566 maintainer-clean) \
8ec98d6c 27567 || exit 1
70ffc148 27568
a7e609d6 27569@endif target-gperf
d6ebd419
NN
27570
27571
8ec98d6c
NN
27572.PHONY: configure-target-examples maybe-configure-target-examples
27573maybe-configure-target-examples:
a7e609d6
PB
27574@if target-examples
27575maybe-configure-target-examples: configure-target-examples
43bdb69a 27576
6dbec167 27577# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
8ec98d6c
NN
27578$(TARGET_SUBDIR)/examples/multilib.out: multilib.out
27579 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/examples ; \
27580 rm -f $(TARGET_SUBDIR)/examples/Makefile || : ; \
27581 cp multilib.out $(TARGET_SUBDIR)/examples/multilib.out
43bdb69a 27582
8ec98d6c
NN
27583configure-target-examples: $(TARGET_SUBDIR)/examples/multilib.out
27584 @test ! -f $(TARGET_SUBDIR)/examples/Makefile || exit 0; \
27585 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/examples ; \
5230d454
L
27586 r=`${PWD_COMMAND}`; export r; \
27587 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 27588 $(SET_LIB_PATH) \
a675b75a 27589 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
27590 echo Configuring in $(TARGET_SUBDIR)/examples; \
27591 cd "$(TARGET_SUBDIR)/examples" || exit 1; \
2245eb63 27592 case $(srcdir) in \
7fc2ca22
PB
27593 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
27594 *) topdir=`echo $(TARGET_SUBDIR)/examples/ | \
27595 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2245eb63 27596 esac; \
7fc2ca22
PB
27597 srcdiroption="--srcdir=$${topdir}/examples"; \
27598 libsrcdir="$$s/examples"; \
2245eb63
NN
27599 rm -f no-such-file || : ; \
27600 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
27601 $(TARGET_CONFIGARGS) $${srcdiroption} \
63673a5b 27602 --with-target-subdir="$(TARGET_SUBDIR)" \
2245eb63 27603 || exit 1
a7e609d6 27604@endif target-examples
d6ebd419 27605
8ec98d6c
NN
27606.PHONY: all-target-examples maybe-all-target-examples
27607maybe-all-target-examples:
a7e609d6 27608@if target-examples
6a19fd82 27609TARGET-target-examples=all
a7e609d6 27610maybe-all-target-examples: all-target-examples
8ec98d6c 27611all-target-examples: configure-target-examples
5230d454
L
27612 @r=`${PWD_COMMAND}`; export r; \
27613 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 27614 $(SET_LIB_PATH) \
a675b75a 27615 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 27616 (cd $(TARGET_SUBDIR)/examples && \
6a19fd82 27617 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-examples))
a7e609d6 27618@endif target-examples
d6ebd419 27619
8ec98d6c
NN
27620.PHONY: check-target-examples maybe-check-target-examples
27621maybe-check-target-examples:
a7e609d6
PB
27622@if target-examples
27623maybe-check-target-examples: check-target-examples
70ffc148 27624
8ec98d6c
NN
27625# Dummy target for uncheckable module.
27626check-target-examples:
27627
a7e609d6 27628@endif target-examples
8ec98d6c
NN
27629
27630.PHONY: install-target-examples maybe-install-target-examples
27631maybe-install-target-examples:
a7e609d6
PB
27632@if target-examples
27633maybe-install-target-examples: install-target-examples
8ec98d6c
NN
27634
27635# Dummy target for uninstallable.
27636install-target-examples:
27637
a7e609d6 27638@endif target-examples
8ec98d6c
NN
27639
27640# Other targets (info, dvi, etc.)
27641
27642.PHONY: maybe-info-target-examples info-target-examples
27643maybe-info-target-examples:
a7e609d6
PB
27644@if target-examples
27645maybe-info-target-examples: info-target-examples
8ec98d6c
NN
27646
27647info-target-examples: \
27648 configure-target-examples
27649 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
27650 r=`${PWD_COMMAND}`; export r; \
5230d454 27651 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 27652 $(SET_LIB_PATH) \
a675b75a 27653 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
27654 echo "Doing info in $(TARGET_SUBDIR)/examples" ; \
27655 for flag in $(EXTRA_TARGET_FLAGS); do \
27656 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27657 done; \
27658 (cd $(TARGET_SUBDIR)/examples && \
27659 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27660 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27661 "RANLIB=$${RANLIB}" \
27662 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 27663 info) \
8ec98d6c 27664 || exit 1
c5e4bb70 27665
a7e609d6 27666@endif target-examples
d6ebd419 27667
8ec98d6c
NN
27668.PHONY: maybe-dvi-target-examples dvi-target-examples
27669maybe-dvi-target-examples:
a7e609d6
PB
27670@if target-examples
27671maybe-dvi-target-examples: dvi-target-examples
70ffc148 27672
8ec98d6c
NN
27673dvi-target-examples: \
27674 configure-target-examples
27675 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
27676 r=`${PWD_COMMAND}`; export r; \
5230d454 27677 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 27678 $(SET_LIB_PATH) \
a675b75a 27679 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
27680 echo "Doing dvi in $(TARGET_SUBDIR)/examples" ; \
27681 for flag in $(EXTRA_TARGET_FLAGS); do \
27682 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27683 done; \
27684 (cd $(TARGET_SUBDIR)/examples && \
27685 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27686 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27687 "RANLIB=$${RANLIB}" \
27688 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 27689 dvi) \
8ec98d6c
NN
27690 || exit 1
27691
a7e609d6 27692@endif target-examples
8ec98d6c 27693
b6fb961f
MS
27694.PHONY: maybe-html-target-examples html-target-examples
27695maybe-html-target-examples:
27696@if target-examples
27697maybe-html-target-examples: html-target-examples
27698
27699html-target-examples: \
27700 configure-target-examples
27701 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
27702 r=`${PWD_COMMAND}`; export r; \
27703 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27704 $(SET_LIB_PATH) \
27705 $(NORMAL_TARGET_EXPORTS) \
27706 echo "Doing html in $(TARGET_SUBDIR)/examples" ; \
27707 for flag in $(EXTRA_TARGET_FLAGS); do \
27708 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27709 done; \
27710 (cd $(TARGET_SUBDIR)/examples && \
27711 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27712 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27713 "RANLIB=$${RANLIB}" \
27714 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
27715 html) \
27716 || exit 1
27717
27718@endif target-examples
27719
8ec98d6c
NN
27720.PHONY: maybe-TAGS-target-examples TAGS-target-examples
27721maybe-TAGS-target-examples:
a7e609d6
PB
27722@if target-examples
27723maybe-TAGS-target-examples: TAGS-target-examples
8ec98d6c
NN
27724
27725TAGS-target-examples: \
27726 configure-target-examples
27727 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
27728 r=`${PWD_COMMAND}`; export r; \
27729 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27730 $(SET_LIB_PATH) \
a675b75a 27731 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
27732 echo "Doing TAGS in $(TARGET_SUBDIR)/examples" ; \
27733 for flag in $(EXTRA_TARGET_FLAGS); do \
27734 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27735 done; \
27736 (cd $(TARGET_SUBDIR)/examples && \
27737 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27738 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27739 "RANLIB=$${RANLIB}" \
27740 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 27741 TAGS) \
8ec98d6c
NN
27742 || exit 1
27743
a7e609d6 27744@endif target-examples
8ec98d6c
NN
27745
27746.PHONY: maybe-install-info-target-examples install-info-target-examples
27747maybe-install-info-target-examples:
a7e609d6
PB
27748@if target-examples
27749maybe-install-info-target-examples: install-info-target-examples
8ec98d6c
NN
27750
27751install-info-target-examples: \
27752 configure-target-examples \
27753 info-target-examples
27754 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
27755 r=`${PWD_COMMAND}`; export r; \
27756 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27757 $(SET_LIB_PATH) \
a675b75a 27758 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
27759 echo "Doing install-info in $(TARGET_SUBDIR)/examples" ; \
27760 for flag in $(EXTRA_TARGET_FLAGS); do \
27761 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27762 done; \
27763 (cd $(TARGET_SUBDIR)/examples && \
27764 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27765 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27766 "RANLIB=$${RANLIB}" \
27767 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 27768 install-info) \
8ec98d6c
NN
27769 || exit 1
27770
a7e609d6 27771@endif target-examples
8ec98d6c
NN
27772
27773.PHONY: maybe-installcheck-target-examples installcheck-target-examples
27774maybe-installcheck-target-examples:
a7e609d6
PB
27775@if target-examples
27776maybe-installcheck-target-examples: installcheck-target-examples
8ec98d6c
NN
27777
27778installcheck-target-examples: \
27779 configure-target-examples
27780 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
27781 r=`${PWD_COMMAND}`; export r; \
27782 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27783 $(SET_LIB_PATH) \
a675b75a 27784 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
27785 echo "Doing installcheck in $(TARGET_SUBDIR)/examples" ; \
27786 for flag in $(EXTRA_TARGET_FLAGS); do \
27787 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27788 done; \
27789 (cd $(TARGET_SUBDIR)/examples && \
27790 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27791 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27792 "RANLIB=$${RANLIB}" \
27793 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 27794 installcheck) \
8ec98d6c
NN
27795 || exit 1
27796
a7e609d6 27797@endif target-examples
8ec98d6c
NN
27798
27799.PHONY: maybe-mostlyclean-target-examples mostlyclean-target-examples
27800maybe-mostlyclean-target-examples:
a7e609d6
PB
27801@if target-examples
27802maybe-mostlyclean-target-examples: mostlyclean-target-examples
8ec98d6c
NN
27803
27804mostlyclean-target-examples:
27805 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
27806 r=`${PWD_COMMAND}`; export r; \
27807 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27808 $(SET_LIB_PATH) \
a675b75a 27809 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
27810 echo "Doing mostlyclean in $(TARGET_SUBDIR)/examples" ; \
27811 for flag in $(EXTRA_TARGET_FLAGS); do \
27812 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27813 done; \
27814 (cd $(TARGET_SUBDIR)/examples && \
27815 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27816 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27817 "RANLIB=$${RANLIB}" \
27818 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 27819 mostlyclean) \
8ec98d6c
NN
27820 || exit 1
27821
a7e609d6 27822@endif target-examples
8ec98d6c
NN
27823
27824.PHONY: maybe-clean-target-examples clean-target-examples
27825maybe-clean-target-examples:
a7e609d6
PB
27826@if target-examples
27827maybe-clean-target-examples: clean-target-examples
8ec98d6c
NN
27828
27829clean-target-examples:
27830 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
27831 r=`${PWD_COMMAND}`; export r; \
27832 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27833 $(SET_LIB_PATH) \
a675b75a 27834 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
27835 echo "Doing clean in $(TARGET_SUBDIR)/examples" ; \
27836 for flag in $(EXTRA_TARGET_FLAGS); do \
27837 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27838 done; \
27839 (cd $(TARGET_SUBDIR)/examples && \
27840 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27841 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27842 "RANLIB=$${RANLIB}" \
27843 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 27844 clean) \
8ec98d6c
NN
27845 || exit 1
27846
a7e609d6 27847@endif target-examples
8ec98d6c
NN
27848
27849.PHONY: maybe-distclean-target-examples distclean-target-examples
27850maybe-distclean-target-examples:
a7e609d6
PB
27851@if target-examples
27852maybe-distclean-target-examples: distclean-target-examples
8ec98d6c
NN
27853
27854distclean-target-examples:
27855 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
27856 r=`${PWD_COMMAND}`; export r; \
27857 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27858 $(SET_LIB_PATH) \
a675b75a 27859 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
27860 echo "Doing distclean in $(TARGET_SUBDIR)/examples" ; \
27861 for flag in $(EXTRA_TARGET_FLAGS); do \
27862 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27863 done; \
27864 (cd $(TARGET_SUBDIR)/examples && \
27865 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27866 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27867 "RANLIB=$${RANLIB}" \
27868 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 27869 distclean) \
8ec98d6c
NN
27870 || exit 1
27871
a7e609d6 27872@endif target-examples
8ec98d6c
NN
27873
27874.PHONY: maybe-maintainer-clean-target-examples maintainer-clean-target-examples
27875maybe-maintainer-clean-target-examples:
a7e609d6
PB
27876@if target-examples
27877maybe-maintainer-clean-target-examples: maintainer-clean-target-examples
8ec98d6c
NN
27878
27879maintainer-clean-target-examples:
27880 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
27881 r=`${PWD_COMMAND}`; export r; \
27882 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27883 $(SET_LIB_PATH) \
a675b75a 27884 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
27885 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/examples" ; \
27886 for flag in $(EXTRA_TARGET_FLAGS); do \
27887 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27888 done; \
27889 (cd $(TARGET_SUBDIR)/examples && \
27890 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27891 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27892 "RANLIB=$${RANLIB}" \
27893 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 27894 maintainer-clean) \
8ec98d6c
NN
27895 || exit 1
27896
a7e609d6 27897@endif target-examples
d6ebd419
NN
27898
27899
8ec98d6c
NN
27900.PHONY: configure-target-libffi maybe-configure-target-libffi
27901maybe-configure-target-libffi:
a7e609d6
PB
27902@if target-libffi
27903maybe-configure-target-libffi: configure-target-libffi
43bdb69a 27904
6dbec167 27905# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
8ec98d6c
NN
27906$(TARGET_SUBDIR)/libffi/multilib.out: multilib.out
27907 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi ; \
27908 rm -f $(TARGET_SUBDIR)/libffi/Makefile || : ; \
27909 cp multilib.out $(TARGET_SUBDIR)/libffi/multilib.out
43bdb69a 27910
8ec98d6c
NN
27911configure-target-libffi: $(TARGET_SUBDIR)/libffi/multilib.out
27912 @test ! -f $(TARGET_SUBDIR)/libffi/Makefile || exit 0; \
27913 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi ; \
5230d454
L
27914 r=`${PWD_COMMAND}`; export r; \
27915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 27916 $(SET_LIB_PATH) \
a675b75a 27917 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
27918 echo Configuring in $(TARGET_SUBDIR)/libffi; \
27919 cd "$(TARGET_SUBDIR)/libffi" || exit 1; \
2245eb63 27920 case $(srcdir) in \
7fc2ca22
PB
27921 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
27922 *) topdir=`echo $(TARGET_SUBDIR)/libffi/ | \
27923 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2245eb63 27924 esac; \
7fc2ca22
PB
27925 srcdiroption="--srcdir=$${topdir}/libffi"; \
27926 libsrcdir="$$s/libffi"; \
2245eb63
NN
27927 rm -f no-such-file || : ; \
27928 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
27929 $(TARGET_CONFIGARGS) $${srcdiroption} \
63673a5b 27930 --with-target-subdir="$(TARGET_SUBDIR)" \
2245eb63 27931 || exit 1
a7e609d6 27932@endif target-libffi
d6ebd419 27933
8ec98d6c
NN
27934.PHONY: all-target-libffi maybe-all-target-libffi
27935maybe-all-target-libffi:
a7e609d6 27936@if target-libffi
6a19fd82 27937TARGET-target-libffi=all
a7e609d6 27938maybe-all-target-libffi: all-target-libffi
8ec98d6c 27939all-target-libffi: configure-target-libffi
5230d454
L
27940 @r=`${PWD_COMMAND}`; export r; \
27941 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 27942 $(SET_LIB_PATH) \
a675b75a 27943 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 27944 (cd $(TARGET_SUBDIR)/libffi && \
6a19fd82 27945 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libffi))
a7e609d6 27946@endif target-libffi
d6ebd419 27947
8ec98d6c
NN
27948.PHONY: check-target-libffi maybe-check-target-libffi
27949maybe-check-target-libffi:
a7e609d6
PB
27950@if target-libffi
27951maybe-check-target-libffi: check-target-libffi
70ffc148 27952
8ec98d6c 27953check-target-libffi:
5230d454
L
27954 @r=`${PWD_COMMAND}`; export r; \
27955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 27956 $(SET_LIB_PATH) \
a675b75a 27957 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 27958 (cd $(TARGET_SUBDIR)/libffi && \
63673a5b 27959 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
c5e4bb70 27960
a7e609d6 27961@endif target-libffi
d6ebd419 27962
8ec98d6c
NN
27963.PHONY: install-target-libffi maybe-install-target-libffi
27964maybe-install-target-libffi:
a7e609d6
PB
27965@if target-libffi
27966maybe-install-target-libffi: install-target-libffi
70ffc148 27967
8ec98d6c 27968install-target-libffi: installdirs
5230d454
L
27969 @r=`${PWD_COMMAND}`; export r; \
27970 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 27971 $(SET_LIB_PATH) \
a675b75a 27972 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 27973 (cd $(TARGET_SUBDIR)/libffi && \
63673a5b 27974 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
d6ebd419 27975
a7e609d6 27976@endif target-libffi
d6ebd419 27977
8ec98d6c
NN
27978# Other targets (info, dvi, etc.)
27979
27980.PHONY: maybe-info-target-libffi info-target-libffi
27981maybe-info-target-libffi:
a7e609d6
PB
27982@if target-libffi
27983maybe-info-target-libffi: info-target-libffi
8ec98d6c
NN
27984
27985info-target-libffi: \
27986 configure-target-libffi
27987 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
27988 r=`${PWD_COMMAND}`; export r; \
27989 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27990 $(SET_LIB_PATH) \
a675b75a 27991 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
27992 echo "Doing info in $(TARGET_SUBDIR)/libffi" ; \
27993 for flag in $(EXTRA_TARGET_FLAGS); do \
27994 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27995 done; \
27996 (cd $(TARGET_SUBDIR)/libffi && \
27997 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27998 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27999 "RANLIB=$${RANLIB}" \
28000 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 28001 info) \
8ec98d6c
NN
28002 || exit 1
28003
a7e609d6 28004@endif target-libffi
8ec98d6c
NN
28005
28006.PHONY: maybe-dvi-target-libffi dvi-target-libffi
28007maybe-dvi-target-libffi:
a7e609d6
PB
28008@if target-libffi
28009maybe-dvi-target-libffi: dvi-target-libffi
8ec98d6c
NN
28010
28011dvi-target-libffi: \
28012 configure-target-libffi
28013 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
28014 r=`${PWD_COMMAND}`; export r; \
28015 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28016 $(SET_LIB_PATH) \
a675b75a 28017 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
28018 echo "Doing dvi in $(TARGET_SUBDIR)/libffi" ; \
28019 for flag in $(EXTRA_TARGET_FLAGS); do \
28020 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28021 done; \
28022 (cd $(TARGET_SUBDIR)/libffi && \
28023 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28024 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28025 "RANLIB=$${RANLIB}" \
28026 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 28027 dvi) \
8ec98d6c
NN
28028 || exit 1
28029
a7e609d6 28030@endif target-libffi
8ec98d6c 28031
b6fb961f
MS
28032.PHONY: maybe-html-target-libffi html-target-libffi
28033maybe-html-target-libffi:
28034@if target-libffi
28035maybe-html-target-libffi: html-target-libffi
28036
28037html-target-libffi: \
28038 configure-target-libffi
28039 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
28040 r=`${PWD_COMMAND}`; export r; \
28041 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28042 $(SET_LIB_PATH) \
28043 $(NORMAL_TARGET_EXPORTS) \
28044 echo "Doing html in $(TARGET_SUBDIR)/libffi" ; \
28045 for flag in $(EXTRA_TARGET_FLAGS); do \
28046 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28047 done; \
28048 (cd $(TARGET_SUBDIR)/libffi && \
28049 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28050 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28051 "RANLIB=$${RANLIB}" \
28052 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
28053 html) \
28054 || exit 1
28055
28056@endif target-libffi
28057
8ec98d6c
NN
28058.PHONY: maybe-TAGS-target-libffi TAGS-target-libffi
28059maybe-TAGS-target-libffi:
a7e609d6
PB
28060@if target-libffi
28061maybe-TAGS-target-libffi: TAGS-target-libffi
8ec98d6c
NN
28062
28063TAGS-target-libffi: \
28064 configure-target-libffi
28065 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
28066 r=`${PWD_COMMAND}`; export r; \
28067 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28068 $(SET_LIB_PATH) \
a675b75a 28069 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
28070 echo "Doing TAGS in $(TARGET_SUBDIR)/libffi" ; \
28071 for flag in $(EXTRA_TARGET_FLAGS); do \
28072 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28073 done; \
28074 (cd $(TARGET_SUBDIR)/libffi && \
28075 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28076 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28077 "RANLIB=$${RANLIB}" \
28078 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 28079 TAGS) \
8ec98d6c
NN
28080 || exit 1
28081
a7e609d6 28082@endif target-libffi
8ec98d6c
NN
28083
28084.PHONY: maybe-install-info-target-libffi install-info-target-libffi
28085maybe-install-info-target-libffi:
a7e609d6
PB
28086@if target-libffi
28087maybe-install-info-target-libffi: install-info-target-libffi
8ec98d6c
NN
28088
28089install-info-target-libffi: \
28090 configure-target-libffi \
28091 info-target-libffi
28092 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
28093 r=`${PWD_COMMAND}`; export r; \
28094 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28095 $(SET_LIB_PATH) \
a675b75a 28096 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
28097 echo "Doing install-info in $(TARGET_SUBDIR)/libffi" ; \
28098 for flag in $(EXTRA_TARGET_FLAGS); do \
28099 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28100 done; \
28101 (cd $(TARGET_SUBDIR)/libffi && \
28102 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28103 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28104 "RANLIB=$${RANLIB}" \
28105 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 28106 install-info) \
8ec98d6c
NN
28107 || exit 1
28108
a7e609d6 28109@endif target-libffi
8ec98d6c
NN
28110
28111.PHONY: maybe-installcheck-target-libffi installcheck-target-libffi
28112maybe-installcheck-target-libffi:
a7e609d6
PB
28113@if target-libffi
28114maybe-installcheck-target-libffi: installcheck-target-libffi
8ec98d6c
NN
28115
28116installcheck-target-libffi: \
28117 configure-target-libffi
28118 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
28119 r=`${PWD_COMMAND}`; export r; \
28120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28121 $(SET_LIB_PATH) \
a675b75a 28122 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
28123 echo "Doing installcheck in $(TARGET_SUBDIR)/libffi" ; \
28124 for flag in $(EXTRA_TARGET_FLAGS); do \
28125 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28126 done; \
28127 (cd $(TARGET_SUBDIR)/libffi && \
28128 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28129 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28130 "RANLIB=$${RANLIB}" \
28131 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 28132 installcheck) \
8ec98d6c
NN
28133 || exit 1
28134
a7e609d6 28135@endif target-libffi
8ec98d6c
NN
28136
28137.PHONY: maybe-mostlyclean-target-libffi mostlyclean-target-libffi
28138maybe-mostlyclean-target-libffi:
a7e609d6
PB
28139@if target-libffi
28140maybe-mostlyclean-target-libffi: mostlyclean-target-libffi
8ec98d6c
NN
28141
28142mostlyclean-target-libffi:
28143 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
28144 r=`${PWD_COMMAND}`; export r; \
28145 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28146 $(SET_LIB_PATH) \
a675b75a 28147 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
28148 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libffi" ; \
28149 for flag in $(EXTRA_TARGET_FLAGS); do \
28150 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28151 done; \
28152 (cd $(TARGET_SUBDIR)/libffi && \
28153 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28154 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28155 "RANLIB=$${RANLIB}" \
28156 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 28157 mostlyclean) \
8ec98d6c
NN
28158 || exit 1
28159
a7e609d6 28160@endif target-libffi
8ec98d6c
NN
28161
28162.PHONY: maybe-clean-target-libffi clean-target-libffi
28163maybe-clean-target-libffi:
a7e609d6
PB
28164@if target-libffi
28165maybe-clean-target-libffi: clean-target-libffi
8ec98d6c
NN
28166
28167clean-target-libffi:
28168 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
28169 r=`${PWD_COMMAND}`; export r; \
28170 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28171 $(SET_LIB_PATH) \
a675b75a 28172 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
28173 echo "Doing clean in $(TARGET_SUBDIR)/libffi" ; \
28174 for flag in $(EXTRA_TARGET_FLAGS); do \
28175 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28176 done; \
28177 (cd $(TARGET_SUBDIR)/libffi && \
28178 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28179 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28180 "RANLIB=$${RANLIB}" \
28181 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 28182 clean) \
8ec98d6c
NN
28183 || exit 1
28184
a7e609d6 28185@endif target-libffi
8ec98d6c
NN
28186
28187.PHONY: maybe-distclean-target-libffi distclean-target-libffi
28188maybe-distclean-target-libffi:
a7e609d6
PB
28189@if target-libffi
28190maybe-distclean-target-libffi: distclean-target-libffi
8ec98d6c
NN
28191
28192distclean-target-libffi:
28193 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
28194 r=`${PWD_COMMAND}`; export r; \
28195 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28196 $(SET_LIB_PATH) \
a675b75a 28197 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
28198 echo "Doing distclean in $(TARGET_SUBDIR)/libffi" ; \
28199 for flag in $(EXTRA_TARGET_FLAGS); do \
28200 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28201 done; \
28202 (cd $(TARGET_SUBDIR)/libffi && \
28203 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28204 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28205 "RANLIB=$${RANLIB}" \
28206 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 28207 distclean) \
8ec98d6c
NN
28208 || exit 1
28209
a7e609d6 28210@endif target-libffi
8ec98d6c
NN
28211
28212.PHONY: maybe-maintainer-clean-target-libffi maintainer-clean-target-libffi
28213maybe-maintainer-clean-target-libffi:
a7e609d6
PB
28214@if target-libffi
28215maybe-maintainer-clean-target-libffi: maintainer-clean-target-libffi
8ec98d6c
NN
28216
28217maintainer-clean-target-libffi:
28218 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
28219 r=`${PWD_COMMAND}`; export r; \
28220 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28221 $(SET_LIB_PATH) \
a675b75a 28222 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
28223 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libffi" ; \
28224 for flag in $(EXTRA_TARGET_FLAGS); do \
28225 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28226 done; \
28227 (cd $(TARGET_SUBDIR)/libffi && \
28228 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28229 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28230 "RANLIB=$${RANLIB}" \
28231 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 28232 maintainer-clean) \
8ec98d6c
NN
28233 || exit 1
28234
a7e609d6 28235@endif target-libffi
8ec98d6c
NN
28236
28237
28238.PHONY: configure-target-libjava maybe-configure-target-libjava
28239maybe-configure-target-libjava:
a7e609d6
PB
28240@if target-libjava
28241maybe-configure-target-libjava: configure-target-libjava
43bdb69a 28242
6dbec167 28243# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
8ec98d6c
NN
28244$(TARGET_SUBDIR)/libjava/multilib.out: multilib.out
28245 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libjava ; \
28246 rm -f $(TARGET_SUBDIR)/libjava/Makefile || : ; \
28247 cp multilib.out $(TARGET_SUBDIR)/libjava/multilib.out
43bdb69a 28248
8ec98d6c
NN
28249configure-target-libjava: $(TARGET_SUBDIR)/libjava/multilib.out
28250 @test ! -f $(TARGET_SUBDIR)/libjava/Makefile || exit 0; \
28251 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libjava ; \
5230d454
L
28252 r=`${PWD_COMMAND}`; export r; \
28253 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 28254 $(SET_LIB_PATH) \
a675b75a 28255 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
28256 echo Configuring in $(TARGET_SUBDIR)/libjava; \
28257 cd "$(TARGET_SUBDIR)/libjava" || exit 1; \
2245eb63 28258 case $(srcdir) in \
7fc2ca22
PB
28259 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
28260 *) topdir=`echo $(TARGET_SUBDIR)/libjava/ | \
28261 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2245eb63 28262 esac; \
7fc2ca22
PB
28263 srcdiroption="--srcdir=$${topdir}/libjava"; \
28264 libsrcdir="$$s/libjava"; \
2245eb63
NN
28265 rm -f no-such-file || : ; \
28266 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
28267 $(TARGET_CONFIGARGS) $${srcdiroption} \
63673a5b 28268 --with-target-subdir="$(TARGET_SUBDIR)" \
2245eb63 28269 || exit 1
a7e609d6 28270@endif target-libjava
d6ebd419 28271
8ec98d6c
NN
28272.PHONY: all-target-libjava maybe-all-target-libjava
28273maybe-all-target-libjava:
a7e609d6 28274@if target-libjava
6a19fd82 28275TARGET-target-libjava=all
a7e609d6 28276maybe-all-target-libjava: all-target-libjava
8ec98d6c 28277all-target-libjava: configure-target-libjava
5230d454
L
28278 @r=`${PWD_COMMAND}`; export r; \
28279 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 28280 $(SET_LIB_PATH) \
a675b75a 28281 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c 28282 (cd $(TARGET_SUBDIR)/libjava && \
6a19fd82 28283 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' $(TARGET-target-libjava))
a7e609d6 28284@endif target-libjava
d6ebd419 28285
8ec98d6c
NN
28286.PHONY: check-target-libjava maybe-check-target-libjava
28287maybe-check-target-libjava:
a7e609d6
PB
28288@if target-libjava
28289maybe-check-target-libjava: check-target-libjava
70ffc148 28290
8ec98d6c
NN
28291check-target-libjava:
28292 @r=`${PWD_COMMAND}`; export r; \
28293 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28294 $(SET_LIB_PATH) \
a675b75a 28295 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c 28296 (cd $(TARGET_SUBDIR)/libjava && \
63673a5b 28297 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
8ecc6504 28298
a7e609d6 28299@endif target-libjava
c5e4bb70 28300
8ec98d6c
NN
28301.PHONY: install-target-libjava maybe-install-target-libjava
28302maybe-install-target-libjava:
a7e609d6
PB
28303@if target-libjava
28304maybe-install-target-libjava: install-target-libjava
70ffc148 28305
8ec98d6c 28306install-target-libjava: installdirs
5230d454
L
28307 @r=`${PWD_COMMAND}`; export r; \
28308 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 28309 $(SET_LIB_PATH) \
a675b75a 28310 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c 28311 (cd $(TARGET_SUBDIR)/libjava && \
63673a5b 28312 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
d6ebd419 28313
a7e609d6 28314@endif target-libjava
d6ebd419 28315
8ec98d6c 28316# Other targets (info, dvi, etc.)
43bdb69a 28317
8ec98d6c
NN
28318.PHONY: maybe-info-target-libjava info-target-libjava
28319maybe-info-target-libjava:
a7e609d6
PB
28320@if target-libjava
28321maybe-info-target-libjava: info-target-libjava
43bdb69a 28322
8ec98d6c
NN
28323info-target-libjava: \
28324 configure-target-libjava
28325 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
5230d454
L
28326 r=`${PWD_COMMAND}`; export r; \
28327 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 28328 $(SET_LIB_PATH) \
a675b75a 28329 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
28330 echo "Doing info in $(TARGET_SUBDIR)/libjava" ; \
28331 for flag in $(EXTRA_TARGET_FLAGS); do \
28332 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28333 done; \
28334 (cd $(TARGET_SUBDIR)/libjava && \
28335 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28336 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28337 "RANLIB=$${RANLIB}" \
28338 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 28339 info) \
2245eb63 28340 || exit 1
d6ebd419 28341
a7e609d6 28342@endif target-libjava
8ec98d6c
NN
28343
28344.PHONY: maybe-dvi-target-libjava dvi-target-libjava
28345maybe-dvi-target-libjava:
a7e609d6
PB
28346@if target-libjava
28347maybe-dvi-target-libjava: dvi-target-libjava
8ec98d6c
NN
28348
28349dvi-target-libjava: \
28350 configure-target-libjava
28351 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
28352 r=`${PWD_COMMAND}`; export r; \
5230d454 28353 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 28354 $(SET_LIB_PATH) \
a675b75a 28355 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
28356 echo "Doing dvi in $(TARGET_SUBDIR)/libjava" ; \
28357 for flag in $(EXTRA_TARGET_FLAGS); do \
28358 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28359 done; \
28360 (cd $(TARGET_SUBDIR)/libjava && \
28361 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28362 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28363 "RANLIB=$${RANLIB}" \
28364 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 28365 dvi) \
8ec98d6c 28366 || exit 1
d6ebd419 28367
a7e609d6 28368@endif target-libjava
70ffc148 28369
b6fb961f
MS
28370.PHONY: maybe-html-target-libjava html-target-libjava
28371maybe-html-target-libjava:
28372@if target-libjava
28373maybe-html-target-libjava: html-target-libjava
28374
28375html-target-libjava: \
28376 configure-target-libjava
28377 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
28378 r=`${PWD_COMMAND}`; export r; \
28379 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28380 $(SET_LIB_PATH) \
28381 $(RAW_CXX_TARGET_EXPORTS) \
28382 echo "Doing html in $(TARGET_SUBDIR)/libjava" ; \
28383 for flag in $(EXTRA_TARGET_FLAGS); do \
28384 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28385 done; \
28386 (cd $(TARGET_SUBDIR)/libjava && \
28387 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28388 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28389 "RANLIB=$${RANLIB}" \
28390 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
28391 html) \
28392 || exit 1
28393
28394@endif target-libjava
28395
8ec98d6c
NN
28396.PHONY: maybe-TAGS-target-libjava TAGS-target-libjava
28397maybe-TAGS-target-libjava:
a7e609d6
PB
28398@if target-libjava
28399maybe-TAGS-target-libjava: TAGS-target-libjava
8ec98d6c
NN
28400
28401TAGS-target-libjava: \
28402 configure-target-libjava
28403 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
28404 r=`${PWD_COMMAND}`; export r; \
5230d454 28405 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 28406 $(SET_LIB_PATH) \
a675b75a 28407 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
28408 echo "Doing TAGS in $(TARGET_SUBDIR)/libjava" ; \
28409 for flag in $(EXTRA_TARGET_FLAGS); do \
28410 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28411 done; \
28412 (cd $(TARGET_SUBDIR)/libjava && \
28413 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28414 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28415 "RANLIB=$${RANLIB}" \
28416 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 28417 TAGS) \
8ec98d6c 28418 || exit 1
d6ebd419 28419
a7e609d6 28420@endif target-libjava
c5e4bb70 28421
8ec98d6c
NN
28422.PHONY: maybe-install-info-target-libjava install-info-target-libjava
28423maybe-install-info-target-libjava:
a7e609d6
PB
28424@if target-libjava
28425maybe-install-info-target-libjava: install-info-target-libjava
70ffc148 28426
8ec98d6c
NN
28427install-info-target-libjava: \
28428 configure-target-libjava \
28429 info-target-libjava
28430 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
28431 r=`${PWD_COMMAND}`; export r; \
5230d454 28432 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 28433 $(SET_LIB_PATH) \
a675b75a 28434 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
28435 echo "Doing install-info in $(TARGET_SUBDIR)/libjava" ; \
28436 for flag in $(EXTRA_TARGET_FLAGS); do \
28437 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28438 done; \
28439 (cd $(TARGET_SUBDIR)/libjava && \
28440 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28441 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28442 "RANLIB=$${RANLIB}" \
28443 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 28444 install-info) \
8ec98d6c 28445 || exit 1
d6ebd419 28446
a7e609d6 28447@endif target-libjava
d6ebd419 28448
8ec98d6c
NN
28449.PHONY: maybe-installcheck-target-libjava installcheck-target-libjava
28450maybe-installcheck-target-libjava:
a7e609d6
PB
28451@if target-libjava
28452maybe-installcheck-target-libjava: installcheck-target-libjava
43bdb69a 28453
8ec98d6c
NN
28454installcheck-target-libjava: \
28455 configure-target-libjava
28456 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
28457 r=`${PWD_COMMAND}`; export r; \
28458 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28459 $(SET_LIB_PATH) \
a675b75a 28460 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
28461 echo "Doing installcheck in $(TARGET_SUBDIR)/libjava" ; \
28462 for flag in $(EXTRA_TARGET_FLAGS); do \
28463 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28464 done; \
28465 (cd $(TARGET_SUBDIR)/libjava && \
28466 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28467 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28468 "RANLIB=$${RANLIB}" \
28469 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 28470 installcheck) \
8ec98d6c 28471 || exit 1
43bdb69a 28472
a7e609d6 28473@endif target-libjava
8ec98d6c
NN
28474
28475.PHONY: maybe-mostlyclean-target-libjava mostlyclean-target-libjava
28476maybe-mostlyclean-target-libjava:
a7e609d6
PB
28477@if target-libjava
28478maybe-mostlyclean-target-libjava: mostlyclean-target-libjava
8ec98d6c
NN
28479
28480mostlyclean-target-libjava:
28481 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
28482 r=`${PWD_COMMAND}`; export r; \
28483 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28484 $(SET_LIB_PATH) \
a675b75a 28485 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
28486 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libjava" ; \
28487 for flag in $(EXTRA_TARGET_FLAGS); do \
28488 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28489 done; \
28490 (cd $(TARGET_SUBDIR)/libjava && \
28491 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28492 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28493 "RANLIB=$${RANLIB}" \
28494 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 28495 mostlyclean) \
8ec98d6c
NN
28496 || exit 1
28497
a7e609d6 28498@endif target-libjava
8ec98d6c
NN
28499
28500.PHONY: maybe-clean-target-libjava clean-target-libjava
28501maybe-clean-target-libjava:
a7e609d6
PB
28502@if target-libjava
28503maybe-clean-target-libjava: clean-target-libjava
8ec98d6c
NN
28504
28505clean-target-libjava:
28506 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
5230d454
L
28507 r=`${PWD_COMMAND}`; export r; \
28508 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 28509 $(SET_LIB_PATH) \
a675b75a 28510 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
28511 echo "Doing clean in $(TARGET_SUBDIR)/libjava" ; \
28512 for flag in $(EXTRA_TARGET_FLAGS); do \
28513 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28514 done; \
28515 (cd $(TARGET_SUBDIR)/libjava && \
28516 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28517 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28518 "RANLIB=$${RANLIB}" \
28519 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 28520 clean) \
2245eb63 28521 || exit 1
d6ebd419 28522
a7e609d6 28523@endif target-libjava
d6ebd419 28524
8ec98d6c
NN
28525.PHONY: maybe-distclean-target-libjava distclean-target-libjava
28526maybe-distclean-target-libjava:
a7e609d6
PB
28527@if target-libjava
28528maybe-distclean-target-libjava: distclean-target-libjava
70ffc148 28529
8ec98d6c
NN
28530distclean-target-libjava:
28531 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
28532 r=`${PWD_COMMAND}`; export r; \
28533 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28534 $(SET_LIB_PATH) \
a675b75a 28535 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
28536 echo "Doing distclean in $(TARGET_SUBDIR)/libjava" ; \
28537 for flag in $(EXTRA_TARGET_FLAGS); do \
28538 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28539 done; \
28540 (cd $(TARGET_SUBDIR)/libjava && \
28541 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28542 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28543 "RANLIB=$${RANLIB}" \
28544 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 28545 distclean) \
8ec98d6c 28546 || exit 1
8ecc6504 28547
a7e609d6 28548@endif target-libjava
c5e4bb70 28549
8ec98d6c
NN
28550.PHONY: maybe-maintainer-clean-target-libjava maintainer-clean-target-libjava
28551maybe-maintainer-clean-target-libjava:
a7e609d6
PB
28552@if target-libjava
28553maybe-maintainer-clean-target-libjava: maintainer-clean-target-libjava
70ffc148 28554
8ec98d6c
NN
28555maintainer-clean-target-libjava:
28556 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
28557 r=`${PWD_COMMAND}`; export r; \
5230d454 28558 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 28559 $(SET_LIB_PATH) \
a675b75a 28560 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
28561 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libjava" ; \
28562 for flag in $(EXTRA_TARGET_FLAGS); do \
28563 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28564 done; \
28565 (cd $(TARGET_SUBDIR)/libjava && \
28566 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28567 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28568 "RANLIB=$${RANLIB}" \
28569 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 28570 maintainer-clean) \
8ec98d6c 28571 || exit 1
d6ebd419 28572
a7e609d6 28573@endif target-libjava
d6ebd419 28574
8ec98d6c
NN
28575
28576.PHONY: configure-target-zlib maybe-configure-target-zlib
28577maybe-configure-target-zlib:
a7e609d6
PB
28578@if target-zlib
28579maybe-configure-target-zlib: configure-target-zlib
43bdb69a 28580
6dbec167 28581# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
8ec98d6c
NN
28582$(TARGET_SUBDIR)/zlib/multilib.out: multilib.out
28583 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib ; \
28584 rm -f $(TARGET_SUBDIR)/zlib/Makefile || : ; \
28585 cp multilib.out $(TARGET_SUBDIR)/zlib/multilib.out
43bdb69a 28586
8ec98d6c
NN
28587configure-target-zlib: $(TARGET_SUBDIR)/zlib/multilib.out
28588 @test ! -f $(TARGET_SUBDIR)/zlib/Makefile || exit 0; \
28589 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib ; \
5230d454
L
28590 r=`${PWD_COMMAND}`; export r; \
28591 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 28592 $(SET_LIB_PATH) \
a675b75a 28593 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
28594 echo Configuring in $(TARGET_SUBDIR)/zlib; \
28595 cd "$(TARGET_SUBDIR)/zlib" || exit 1; \
2245eb63 28596 case $(srcdir) in \
7fc2ca22
PB
28597 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
28598 *) topdir=`echo $(TARGET_SUBDIR)/zlib/ | \
28599 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2245eb63 28600 esac; \
7fc2ca22
PB
28601 srcdiroption="--srcdir=$${topdir}/zlib"; \
28602 libsrcdir="$$s/zlib"; \
2245eb63
NN
28603 rm -f no-such-file || : ; \
28604 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
28605 $(TARGET_CONFIGARGS) $${srcdiroption} \
63673a5b 28606 --with-target-subdir="$(TARGET_SUBDIR)" \
2245eb63 28607 || exit 1
a7e609d6 28608@endif target-zlib
d6ebd419 28609
8ec98d6c
NN
28610.PHONY: all-target-zlib maybe-all-target-zlib
28611maybe-all-target-zlib:
a7e609d6 28612@if target-zlib
6a19fd82 28613TARGET-target-zlib=all
a7e609d6 28614maybe-all-target-zlib: all-target-zlib
8ec98d6c 28615all-target-zlib: configure-target-zlib
5230d454
L
28616 @r=`${PWD_COMMAND}`; export r; \
28617 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 28618 $(SET_LIB_PATH) \
a675b75a 28619 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 28620 (cd $(TARGET_SUBDIR)/zlib && \
6a19fd82 28621 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-zlib))
a7e609d6 28622@endif target-zlib
d6ebd419 28623
8ec98d6c
NN
28624.PHONY: check-target-zlib maybe-check-target-zlib
28625maybe-check-target-zlib:
a7e609d6
PB
28626@if target-zlib
28627maybe-check-target-zlib: check-target-zlib
70ffc148 28628
8ec98d6c 28629check-target-zlib:
5230d454
L
28630 @r=`${PWD_COMMAND}`; export r; \
28631 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 28632 $(SET_LIB_PATH) \
a675b75a 28633 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 28634 (cd $(TARGET_SUBDIR)/zlib && \
63673a5b 28635 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
d6ebd419 28636
a7e609d6 28637@endif target-zlib
c5e4bb70 28638
8ec98d6c
NN
28639.PHONY: install-target-zlib maybe-install-target-zlib
28640maybe-install-target-zlib:
a7e609d6
PB
28641@if target-zlib
28642maybe-install-target-zlib: install-target-zlib
70ffc148 28643
8ec98d6c 28644install-target-zlib: installdirs
5230d454
L
28645 @r=`${PWD_COMMAND}`; export r; \
28646 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 28647 $(SET_LIB_PATH) \
a675b75a 28648 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 28649 (cd $(TARGET_SUBDIR)/zlib && \
63673a5b 28650 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
d6ebd419 28651
a7e609d6 28652@endif target-zlib
d6ebd419 28653
8ec98d6c 28654# Other targets (info, dvi, etc.)
43bdb69a 28655
8ec98d6c
NN
28656.PHONY: maybe-info-target-zlib info-target-zlib
28657maybe-info-target-zlib:
a7e609d6
PB
28658@if target-zlib
28659maybe-info-target-zlib: info-target-zlib
43bdb69a 28660
8ec98d6c
NN
28661info-target-zlib: \
28662 configure-target-zlib
28663 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
5230d454
L
28664 r=`${PWD_COMMAND}`; export r; \
28665 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 28666 $(SET_LIB_PATH) \
a675b75a 28667 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
28668 echo "Doing info in $(TARGET_SUBDIR)/zlib" ; \
28669 for flag in $(EXTRA_TARGET_FLAGS); do \
28670 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28671 done; \
28672 (cd $(TARGET_SUBDIR)/zlib && \
28673 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28674 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28675 "RANLIB=$${RANLIB}" \
28676 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 28677 info) \
2245eb63 28678 || exit 1
d6ebd419 28679
a7e609d6 28680@endif target-zlib
d6ebd419 28681
8ec98d6c
NN
28682.PHONY: maybe-dvi-target-zlib dvi-target-zlib
28683maybe-dvi-target-zlib:
a7e609d6
PB
28684@if target-zlib
28685maybe-dvi-target-zlib: dvi-target-zlib
70ffc148 28686
8ec98d6c
NN
28687dvi-target-zlib: \
28688 configure-target-zlib
28689 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
28690 r=`${PWD_COMMAND}`; export r; \
5230d454 28691 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 28692 $(SET_LIB_PATH) \
a675b75a 28693 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
28694 echo "Doing dvi in $(TARGET_SUBDIR)/zlib" ; \
28695 for flag in $(EXTRA_TARGET_FLAGS); do \
28696 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28697 done; \
28698 (cd $(TARGET_SUBDIR)/zlib && \
28699 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28700 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28701 "RANLIB=$${RANLIB}" \
28702 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 28703 dvi) \
8ec98d6c 28704 || exit 1
d6ebd419 28705
a7e609d6 28706@endif target-zlib
c5e4bb70 28707
b6fb961f
MS
28708.PHONY: maybe-html-target-zlib html-target-zlib
28709maybe-html-target-zlib:
28710@if target-zlib
28711maybe-html-target-zlib: html-target-zlib
28712
28713html-target-zlib: \
28714 configure-target-zlib
28715 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
28716 r=`${PWD_COMMAND}`; export r; \
28717 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28718 $(SET_LIB_PATH) \
28719 $(NORMAL_TARGET_EXPORTS) \
28720 echo "Doing html in $(TARGET_SUBDIR)/zlib" ; \
28721 for flag in $(EXTRA_TARGET_FLAGS); do \
28722 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28723 done; \
28724 (cd $(TARGET_SUBDIR)/zlib && \
28725 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28726 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28727 "RANLIB=$${RANLIB}" \
28728 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
28729 html) \
28730 || exit 1
28731
28732@endif target-zlib
28733
8ec98d6c
NN
28734.PHONY: maybe-TAGS-target-zlib TAGS-target-zlib
28735maybe-TAGS-target-zlib:
a7e609d6
PB
28736@if target-zlib
28737maybe-TAGS-target-zlib: TAGS-target-zlib
70ffc148 28738
8ec98d6c
NN
28739TAGS-target-zlib: \
28740 configure-target-zlib
28741 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
28742 r=`${PWD_COMMAND}`; export r; \
5230d454 28743 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 28744 $(SET_LIB_PATH) \
a675b75a 28745 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
28746 echo "Doing TAGS in $(TARGET_SUBDIR)/zlib" ; \
28747 for flag in $(EXTRA_TARGET_FLAGS); do \
28748 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28749 done; \
28750 (cd $(TARGET_SUBDIR)/zlib && \
28751 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28752 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28753 "RANLIB=$${RANLIB}" \
28754 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 28755 TAGS) \
8ec98d6c 28756 || exit 1
d6ebd419 28757
a7e609d6 28758@endif target-zlib
43bdb69a 28759
8ec98d6c
NN
28760.PHONY: maybe-install-info-target-zlib install-info-target-zlib
28761maybe-install-info-target-zlib:
a7e609d6
PB
28762@if target-zlib
28763maybe-install-info-target-zlib: install-info-target-zlib
43bdb69a 28764
8ec98d6c
NN
28765install-info-target-zlib: \
28766 configure-target-zlib \
28767 info-target-zlib
28768 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
5230d454
L
28769 r=`${PWD_COMMAND}`; export r; \
28770 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 28771 $(SET_LIB_PATH) \
a675b75a 28772 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
28773 echo "Doing install-info in $(TARGET_SUBDIR)/zlib" ; \
28774 for flag in $(EXTRA_TARGET_FLAGS); do \
28775 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28776 done; \
28777 (cd $(TARGET_SUBDIR)/zlib && \
28778 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28779 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28780 "RANLIB=$${RANLIB}" \
28781 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 28782 install-info) \
2245eb63 28783 || exit 1
d6ebd419 28784
a7e609d6 28785@endif target-zlib
70ffc148 28786
8ec98d6c
NN
28787.PHONY: maybe-installcheck-target-zlib installcheck-target-zlib
28788maybe-installcheck-target-zlib:
a7e609d6
PB
28789@if target-zlib
28790maybe-installcheck-target-zlib: installcheck-target-zlib
8ecc6504 28791
8ec98d6c
NN
28792installcheck-target-zlib: \
28793 configure-target-zlib
28794 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
28795 r=`${PWD_COMMAND}`; export r; \
28796 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28797 $(SET_LIB_PATH) \
a675b75a 28798 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
28799 echo "Doing installcheck in $(TARGET_SUBDIR)/zlib" ; \
28800 for flag in $(EXTRA_TARGET_FLAGS); do \
28801 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28802 done; \
28803 (cd $(TARGET_SUBDIR)/zlib && \
28804 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28805 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28806 "RANLIB=$${RANLIB}" \
28807 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 28808 installcheck) \
8ec98d6c 28809 || exit 1
d6ebd419 28810
a7e609d6 28811@endif target-zlib
70ffc148 28812
8ec98d6c
NN
28813.PHONY: maybe-mostlyclean-target-zlib mostlyclean-target-zlib
28814maybe-mostlyclean-target-zlib:
a7e609d6
PB
28815@if target-zlib
28816maybe-mostlyclean-target-zlib: mostlyclean-target-zlib
c5e4bb70 28817
8ec98d6c
NN
28818mostlyclean-target-zlib:
28819 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
28820 r=`${PWD_COMMAND}`; export r; \
28821 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28822 $(SET_LIB_PATH) \
a675b75a 28823 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
28824 echo "Doing mostlyclean in $(TARGET_SUBDIR)/zlib" ; \
28825 for flag in $(EXTRA_TARGET_FLAGS); do \
28826 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28827 done; \
28828 (cd $(TARGET_SUBDIR)/zlib && \
28829 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28830 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28831 "RANLIB=$${RANLIB}" \
28832 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 28833 mostlyclean) \
8ec98d6c 28834 || exit 1
d6ebd419 28835
a7e609d6 28836@endif target-zlib
43bdb69a 28837
8ec98d6c
NN
28838.PHONY: maybe-clean-target-zlib clean-target-zlib
28839maybe-clean-target-zlib:
a7e609d6
PB
28840@if target-zlib
28841maybe-clean-target-zlib: clean-target-zlib
43bdb69a 28842
8ec98d6c
NN
28843clean-target-zlib:
28844 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
5230d454
L
28845 r=`${PWD_COMMAND}`; export r; \
28846 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 28847 $(SET_LIB_PATH) \
a675b75a 28848 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
28849 echo "Doing clean in $(TARGET_SUBDIR)/zlib" ; \
28850 for flag in $(EXTRA_TARGET_FLAGS); do \
28851 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28852 done; \
28853 (cd $(TARGET_SUBDIR)/zlib && \
28854 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28855 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28856 "RANLIB=$${RANLIB}" \
28857 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 28858 clean) \
2245eb63 28859 || exit 1
d6ebd419 28860
a7e609d6 28861@endif target-zlib
d6ebd419 28862
8ec98d6c
NN
28863.PHONY: maybe-distclean-target-zlib distclean-target-zlib
28864maybe-distclean-target-zlib:
a7e609d6
PB
28865@if target-zlib
28866maybe-distclean-target-zlib: distclean-target-zlib
70ffc148 28867
8ec98d6c
NN
28868distclean-target-zlib:
28869 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
28870 r=`${PWD_COMMAND}`; export r; \
5230d454 28871 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 28872 $(SET_LIB_PATH) \
a675b75a 28873 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
28874 echo "Doing distclean in $(TARGET_SUBDIR)/zlib" ; \
28875 for flag in $(EXTRA_TARGET_FLAGS); do \
28876 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28877 done; \
28878 (cd $(TARGET_SUBDIR)/zlib && \
28879 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28880 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28881 "RANLIB=$${RANLIB}" \
28882 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 28883 distclean) \
8ec98d6c 28884 || exit 1
d6ebd419 28885
a7e609d6 28886@endif target-zlib
d6ebd419 28887
8ec98d6c
NN
28888.PHONY: maybe-maintainer-clean-target-zlib maintainer-clean-target-zlib
28889maybe-maintainer-clean-target-zlib:
a7e609d6
PB
28890@if target-zlib
28891maybe-maintainer-clean-target-zlib: maintainer-clean-target-zlib
70ffc148 28892
8ec98d6c
NN
28893maintainer-clean-target-zlib:
28894 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
28895 r=`${PWD_COMMAND}`; export r; \
5230d454 28896 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 28897 $(SET_LIB_PATH) \
a675b75a 28898 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
28899 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/zlib" ; \
28900 for flag in $(EXTRA_TARGET_FLAGS); do \
28901 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28902 done; \
28903 (cd $(TARGET_SUBDIR)/zlib && \
28904 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28905 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28906 "RANLIB=$${RANLIB}" \
28907 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 28908 maintainer-clean) \
8ec98d6c 28909 || exit 1
d6ebd419 28910
a7e609d6 28911@endif target-zlib
c5e4bb70 28912
8ec98d6c
NN
28913
28914.PHONY: configure-target-boehm-gc maybe-configure-target-boehm-gc
28915maybe-configure-target-boehm-gc:
a7e609d6
PB
28916@if target-boehm-gc
28917maybe-configure-target-boehm-gc: configure-target-boehm-gc
43bdb69a 28918
6dbec167 28919# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
8ec98d6c
NN
28920$(TARGET_SUBDIR)/boehm-gc/multilib.out: multilib.out
28921 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/boehm-gc ; \
28922 rm -f $(TARGET_SUBDIR)/boehm-gc/Makefile || : ; \
28923 cp multilib.out $(TARGET_SUBDIR)/boehm-gc/multilib.out
43bdb69a 28924
8ec98d6c
NN
28925configure-target-boehm-gc: $(TARGET_SUBDIR)/boehm-gc/multilib.out
28926 @test ! -f $(TARGET_SUBDIR)/boehm-gc/Makefile || exit 0; \
28927 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/boehm-gc ; \
5230d454
L
28928 r=`${PWD_COMMAND}`; export r; \
28929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 28930 $(SET_LIB_PATH) \
a675b75a 28931 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
28932 echo Configuring in $(TARGET_SUBDIR)/boehm-gc; \
28933 cd "$(TARGET_SUBDIR)/boehm-gc" || exit 1; \
2245eb63 28934 case $(srcdir) in \
7fc2ca22
PB
28935 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
28936 *) topdir=`echo $(TARGET_SUBDIR)/boehm-gc/ | \
28937 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2245eb63 28938 esac; \
7fc2ca22
PB
28939 srcdiroption="--srcdir=$${topdir}/boehm-gc"; \
28940 libsrcdir="$$s/boehm-gc"; \
2245eb63
NN
28941 rm -f no-such-file || : ; \
28942 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
28943 $(TARGET_CONFIGARGS) $${srcdiroption} \
63673a5b 28944 --with-target-subdir="$(TARGET_SUBDIR)" \
2245eb63 28945 || exit 1
a7e609d6 28946@endif target-boehm-gc
d6ebd419 28947
8ec98d6c
NN
28948.PHONY: all-target-boehm-gc maybe-all-target-boehm-gc
28949maybe-all-target-boehm-gc:
a7e609d6 28950@if target-boehm-gc
6a19fd82 28951TARGET-target-boehm-gc=all
a7e609d6 28952maybe-all-target-boehm-gc: all-target-boehm-gc
8ec98d6c 28953all-target-boehm-gc: configure-target-boehm-gc
5230d454
L
28954 @r=`${PWD_COMMAND}`; export r; \
28955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 28956 $(SET_LIB_PATH) \
a675b75a 28957 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 28958 (cd $(TARGET_SUBDIR)/boehm-gc && \
6a19fd82 28959 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-boehm-gc))
a7e609d6 28960@endif target-boehm-gc
d6ebd419 28961
8ec98d6c
NN
28962.PHONY: check-target-boehm-gc maybe-check-target-boehm-gc
28963maybe-check-target-boehm-gc:
a7e609d6
PB
28964@if target-boehm-gc
28965maybe-check-target-boehm-gc: check-target-boehm-gc
70ffc148 28966
8ec98d6c 28967check-target-boehm-gc:
5230d454
L
28968 @r=`${PWD_COMMAND}`; export r; \
28969 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 28970 $(SET_LIB_PATH) \
a675b75a 28971 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 28972 (cd $(TARGET_SUBDIR)/boehm-gc && \
63673a5b 28973 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
d6ebd419 28974
a7e609d6 28975@endif target-boehm-gc
c5e4bb70 28976
8ec98d6c
NN
28977.PHONY: install-target-boehm-gc maybe-install-target-boehm-gc
28978maybe-install-target-boehm-gc:
a7e609d6
PB
28979@if target-boehm-gc
28980maybe-install-target-boehm-gc: install-target-boehm-gc
70ffc148 28981
8ec98d6c 28982install-target-boehm-gc: installdirs
5230d454
L
28983 @r=`${PWD_COMMAND}`; export r; \
28984 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 28985 $(SET_LIB_PATH) \
a675b75a 28986 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 28987 (cd $(TARGET_SUBDIR)/boehm-gc && \
63673a5b 28988 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
d6ebd419 28989
a7e609d6 28990@endif target-boehm-gc
d6ebd419 28991
8ec98d6c
NN
28992# Other targets (info, dvi, etc.)
28993
28994.PHONY: maybe-info-target-boehm-gc info-target-boehm-gc
28995maybe-info-target-boehm-gc:
a7e609d6
PB
28996@if target-boehm-gc
28997maybe-info-target-boehm-gc: info-target-boehm-gc
8ec98d6c
NN
28998
28999info-target-boehm-gc: \
29000 configure-target-boehm-gc
29001 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
29002 r=`${PWD_COMMAND}`; export r; \
29003 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29004 $(SET_LIB_PATH) \
a675b75a 29005 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
29006 echo "Doing info in $(TARGET_SUBDIR)/boehm-gc" ; \
29007 for flag in $(EXTRA_TARGET_FLAGS); do \
29008 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29009 done; \
29010 (cd $(TARGET_SUBDIR)/boehm-gc && \
29011 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29012 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29013 "RANLIB=$${RANLIB}" \
29014 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 29015 info) \
8ec98d6c
NN
29016 || exit 1
29017
a7e609d6 29018@endif target-boehm-gc
8ec98d6c
NN
29019
29020.PHONY: maybe-dvi-target-boehm-gc dvi-target-boehm-gc
29021maybe-dvi-target-boehm-gc:
a7e609d6
PB
29022@if target-boehm-gc
29023maybe-dvi-target-boehm-gc: dvi-target-boehm-gc
8ec98d6c
NN
29024
29025dvi-target-boehm-gc: \
29026 configure-target-boehm-gc
29027 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
29028 r=`${PWD_COMMAND}`; export r; \
29029 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29030 $(SET_LIB_PATH) \
a675b75a 29031 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
29032 echo "Doing dvi in $(TARGET_SUBDIR)/boehm-gc" ; \
29033 for flag in $(EXTRA_TARGET_FLAGS); do \
29034 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29035 done; \
29036 (cd $(TARGET_SUBDIR)/boehm-gc && \
29037 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29038 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29039 "RANLIB=$${RANLIB}" \
29040 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 29041 dvi) \
8ec98d6c
NN
29042 || exit 1
29043
a7e609d6 29044@endif target-boehm-gc
8ec98d6c 29045
b6fb961f
MS
29046.PHONY: maybe-html-target-boehm-gc html-target-boehm-gc
29047maybe-html-target-boehm-gc:
29048@if target-boehm-gc
29049maybe-html-target-boehm-gc: html-target-boehm-gc
29050
29051html-target-boehm-gc: \
29052 configure-target-boehm-gc
29053 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
29054 r=`${PWD_COMMAND}`; export r; \
29055 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29056 $(SET_LIB_PATH) \
29057 $(NORMAL_TARGET_EXPORTS) \
29058 echo "Doing html in $(TARGET_SUBDIR)/boehm-gc" ; \
29059 for flag in $(EXTRA_TARGET_FLAGS); do \
29060 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29061 done; \
29062 (cd $(TARGET_SUBDIR)/boehm-gc && \
29063 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29064 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29065 "RANLIB=$${RANLIB}" \
29066 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
29067 html) \
29068 || exit 1
29069
29070@endif target-boehm-gc
29071
8ec98d6c
NN
29072.PHONY: maybe-TAGS-target-boehm-gc TAGS-target-boehm-gc
29073maybe-TAGS-target-boehm-gc:
a7e609d6
PB
29074@if target-boehm-gc
29075maybe-TAGS-target-boehm-gc: TAGS-target-boehm-gc
8ec98d6c
NN
29076
29077TAGS-target-boehm-gc: \
29078 configure-target-boehm-gc
29079 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
29080 r=`${PWD_COMMAND}`; export r; \
29081 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29082 $(SET_LIB_PATH) \
a675b75a 29083 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
29084 echo "Doing TAGS in $(TARGET_SUBDIR)/boehm-gc" ; \
29085 for flag in $(EXTRA_TARGET_FLAGS); do \
29086 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29087 done; \
29088 (cd $(TARGET_SUBDIR)/boehm-gc && \
29089 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29090 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29091 "RANLIB=$${RANLIB}" \
29092 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 29093 TAGS) \
8ec98d6c
NN
29094 || exit 1
29095
a7e609d6 29096@endif target-boehm-gc
8ec98d6c
NN
29097
29098.PHONY: maybe-install-info-target-boehm-gc install-info-target-boehm-gc
29099maybe-install-info-target-boehm-gc:
a7e609d6
PB
29100@if target-boehm-gc
29101maybe-install-info-target-boehm-gc: install-info-target-boehm-gc
8ec98d6c
NN
29102
29103install-info-target-boehm-gc: \
29104 configure-target-boehm-gc \
29105 info-target-boehm-gc
29106 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
29107 r=`${PWD_COMMAND}`; export r; \
29108 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29109 $(SET_LIB_PATH) \
a675b75a 29110 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
29111 echo "Doing install-info in $(TARGET_SUBDIR)/boehm-gc" ; \
29112 for flag in $(EXTRA_TARGET_FLAGS); do \
29113 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29114 done; \
29115 (cd $(TARGET_SUBDIR)/boehm-gc && \
29116 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29117 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29118 "RANLIB=$${RANLIB}" \
29119 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 29120 install-info) \
8ec98d6c
NN
29121 || exit 1
29122
a7e609d6 29123@endif target-boehm-gc
8ec98d6c
NN
29124
29125.PHONY: maybe-installcheck-target-boehm-gc installcheck-target-boehm-gc
29126maybe-installcheck-target-boehm-gc:
a7e609d6
PB
29127@if target-boehm-gc
29128maybe-installcheck-target-boehm-gc: installcheck-target-boehm-gc
8ec98d6c
NN
29129
29130installcheck-target-boehm-gc: \
29131 configure-target-boehm-gc
29132 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
29133 r=`${PWD_COMMAND}`; export r; \
29134 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29135 $(SET_LIB_PATH) \
a675b75a 29136 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
29137 echo "Doing installcheck in $(TARGET_SUBDIR)/boehm-gc" ; \
29138 for flag in $(EXTRA_TARGET_FLAGS); do \
29139 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29140 done; \
29141 (cd $(TARGET_SUBDIR)/boehm-gc && \
29142 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29143 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29144 "RANLIB=$${RANLIB}" \
29145 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 29146 installcheck) \
8ec98d6c
NN
29147 || exit 1
29148
a7e609d6 29149@endif target-boehm-gc
8ec98d6c
NN
29150
29151.PHONY: maybe-mostlyclean-target-boehm-gc mostlyclean-target-boehm-gc
29152maybe-mostlyclean-target-boehm-gc:
a7e609d6
PB
29153@if target-boehm-gc
29154maybe-mostlyclean-target-boehm-gc: mostlyclean-target-boehm-gc
8ec98d6c
NN
29155
29156mostlyclean-target-boehm-gc:
29157 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
29158 r=`${PWD_COMMAND}`; export r; \
29159 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29160 $(SET_LIB_PATH) \
a675b75a 29161 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
29162 echo "Doing mostlyclean in $(TARGET_SUBDIR)/boehm-gc" ; \
29163 for flag in $(EXTRA_TARGET_FLAGS); do \
29164 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29165 done; \
29166 (cd $(TARGET_SUBDIR)/boehm-gc && \
29167 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29168 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29169 "RANLIB=$${RANLIB}" \
29170 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 29171 mostlyclean) \
8ec98d6c
NN
29172 || exit 1
29173
a7e609d6 29174@endif target-boehm-gc
8ec98d6c
NN
29175
29176.PHONY: maybe-clean-target-boehm-gc clean-target-boehm-gc
29177maybe-clean-target-boehm-gc:
a7e609d6
PB
29178@if target-boehm-gc
29179maybe-clean-target-boehm-gc: clean-target-boehm-gc
8ec98d6c
NN
29180
29181clean-target-boehm-gc:
29182 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
29183 r=`${PWD_COMMAND}`; export r; \
29184 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29185 $(SET_LIB_PATH) \
a675b75a 29186 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
29187 echo "Doing clean in $(TARGET_SUBDIR)/boehm-gc" ; \
29188 for flag in $(EXTRA_TARGET_FLAGS); do \
29189 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29190 done; \
29191 (cd $(TARGET_SUBDIR)/boehm-gc && \
29192 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29193 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29194 "RANLIB=$${RANLIB}" \
29195 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 29196 clean) \
8ec98d6c
NN
29197 || exit 1
29198
a7e609d6 29199@endif target-boehm-gc
8ec98d6c
NN
29200
29201.PHONY: maybe-distclean-target-boehm-gc distclean-target-boehm-gc
29202maybe-distclean-target-boehm-gc:
a7e609d6
PB
29203@if target-boehm-gc
29204maybe-distclean-target-boehm-gc: distclean-target-boehm-gc
8ec98d6c
NN
29205
29206distclean-target-boehm-gc:
29207 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
29208 r=`${PWD_COMMAND}`; export r; \
29209 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29210 $(SET_LIB_PATH) \
a675b75a 29211 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
29212 echo "Doing distclean in $(TARGET_SUBDIR)/boehm-gc" ; \
29213 for flag in $(EXTRA_TARGET_FLAGS); do \
29214 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29215 done; \
29216 (cd $(TARGET_SUBDIR)/boehm-gc && \
29217 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29218 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29219 "RANLIB=$${RANLIB}" \
29220 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 29221 distclean) \
8ec98d6c
NN
29222 || exit 1
29223
a7e609d6 29224@endif target-boehm-gc
8ec98d6c
NN
29225
29226.PHONY: maybe-maintainer-clean-target-boehm-gc maintainer-clean-target-boehm-gc
29227maybe-maintainer-clean-target-boehm-gc:
a7e609d6
PB
29228@if target-boehm-gc
29229maybe-maintainer-clean-target-boehm-gc: maintainer-clean-target-boehm-gc
8ec98d6c
NN
29230
29231maintainer-clean-target-boehm-gc:
29232 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
29233 r=`${PWD_COMMAND}`; export r; \
29234 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29235 $(SET_LIB_PATH) \
a675b75a 29236 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
29237 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/boehm-gc" ; \
29238 for flag in $(EXTRA_TARGET_FLAGS); do \
29239 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29240 done; \
29241 (cd $(TARGET_SUBDIR)/boehm-gc && \
29242 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29243 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29244 "RANLIB=$${RANLIB}" \
29245 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 29246 maintainer-clean) \
8ec98d6c
NN
29247 || exit 1
29248
a7e609d6 29249@endif target-boehm-gc
8ec98d6c
NN
29250
29251
29252.PHONY: configure-target-qthreads maybe-configure-target-qthreads
29253maybe-configure-target-qthreads:
a7e609d6
PB
29254@if target-qthreads
29255maybe-configure-target-qthreads: configure-target-qthreads
43bdb69a 29256
6dbec167 29257# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
8ec98d6c
NN
29258$(TARGET_SUBDIR)/qthreads/multilib.out: multilib.out
29259 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/qthreads ; \
29260 rm -f $(TARGET_SUBDIR)/qthreads/Makefile || : ; \
29261 cp multilib.out $(TARGET_SUBDIR)/qthreads/multilib.out
43bdb69a 29262
8ec98d6c
NN
29263configure-target-qthreads: $(TARGET_SUBDIR)/qthreads/multilib.out
29264 @test ! -f $(TARGET_SUBDIR)/qthreads/Makefile || exit 0; \
29265 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/qthreads ; \
5230d454
L
29266 r=`${PWD_COMMAND}`; export r; \
29267 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 29268 $(SET_LIB_PATH) \
a675b75a 29269 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
29270 echo Configuring in $(TARGET_SUBDIR)/qthreads; \
29271 cd "$(TARGET_SUBDIR)/qthreads" || exit 1; \
2245eb63 29272 case $(srcdir) in \
7fc2ca22
PB
29273 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
29274 *) topdir=`echo $(TARGET_SUBDIR)/qthreads/ | \
29275 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2245eb63 29276 esac; \
7fc2ca22
PB
29277 srcdiroption="--srcdir=$${topdir}/qthreads"; \
29278 libsrcdir="$$s/qthreads"; \
2245eb63
NN
29279 rm -f no-such-file || : ; \
29280 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
29281 $(TARGET_CONFIGARGS) $${srcdiroption} \
63673a5b 29282 --with-target-subdir="$(TARGET_SUBDIR)" \
2245eb63 29283 || exit 1
a7e609d6 29284@endif target-qthreads
a3acbf46 29285
8ec98d6c
NN
29286.PHONY: all-target-qthreads maybe-all-target-qthreads
29287maybe-all-target-qthreads:
a7e609d6 29288@if target-qthreads
6a19fd82 29289TARGET-target-qthreads=all
a7e609d6 29290maybe-all-target-qthreads: all-target-qthreads
8ec98d6c 29291all-target-qthreads: configure-target-qthreads
5230d454
L
29292 @r=`${PWD_COMMAND}`; export r; \
29293 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 29294 $(SET_LIB_PATH) \
a675b75a 29295 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 29296 (cd $(TARGET_SUBDIR)/qthreads && \
6a19fd82 29297 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-qthreads))
a7e609d6 29298@endif target-qthreads
a3acbf46 29299
8ec98d6c
NN
29300.PHONY: check-target-qthreads maybe-check-target-qthreads
29301maybe-check-target-qthreads:
a7e609d6
PB
29302@if target-qthreads
29303maybe-check-target-qthreads: check-target-qthreads
70ffc148 29304
8ec98d6c 29305check-target-qthreads:
5230d454
L
29306 @r=`${PWD_COMMAND}`; export r; \
29307 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 29308 $(SET_LIB_PATH) \
a675b75a 29309 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 29310 (cd $(TARGET_SUBDIR)/qthreads && \
63673a5b 29311 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
a3acbf46 29312
a7e609d6 29313@endif target-qthreads
c5e4bb70 29314
8ec98d6c
NN
29315.PHONY: install-target-qthreads maybe-install-target-qthreads
29316maybe-install-target-qthreads:
a7e609d6
PB
29317@if target-qthreads
29318maybe-install-target-qthreads: install-target-qthreads
8ec98d6c
NN
29319
29320install-target-qthreads: installdirs
29321 @r=`${PWD_COMMAND}`; export r; \
29322 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29323 $(SET_LIB_PATH) \
a675b75a 29324 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 29325 (cd $(TARGET_SUBDIR)/qthreads && \
63673a5b 29326 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
8ec98d6c 29327
a7e609d6 29328@endif target-qthreads
8ec98d6c
NN
29329
29330# Other targets (info, dvi, etc.)
29331
29332.PHONY: maybe-info-target-qthreads info-target-qthreads
29333maybe-info-target-qthreads:
a7e609d6
PB
29334@if target-qthreads
29335maybe-info-target-qthreads: info-target-qthreads
8ec98d6c
NN
29336
29337info-target-qthreads: \
29338 configure-target-qthreads
29339 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
29340 r=`${PWD_COMMAND}`; export r; \
29341 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29342 $(SET_LIB_PATH) \
a675b75a 29343 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
29344 echo "Doing info in $(TARGET_SUBDIR)/qthreads" ; \
29345 for flag in $(EXTRA_TARGET_FLAGS); do \
29346 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29347 done; \
29348 (cd $(TARGET_SUBDIR)/qthreads && \
29349 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29350 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29351 "RANLIB=$${RANLIB}" \
29352 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 29353 info) \
8ec98d6c
NN
29354 || exit 1
29355
a7e609d6 29356@endif target-qthreads
8ec98d6c
NN
29357
29358.PHONY: maybe-dvi-target-qthreads dvi-target-qthreads
29359maybe-dvi-target-qthreads:
a7e609d6
PB
29360@if target-qthreads
29361maybe-dvi-target-qthreads: dvi-target-qthreads
8ec98d6c
NN
29362
29363dvi-target-qthreads: \
29364 configure-target-qthreads
29365 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
29366 r=`${PWD_COMMAND}`; export r; \
29367 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29368 $(SET_LIB_PATH) \
a675b75a 29369 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
29370 echo "Doing dvi in $(TARGET_SUBDIR)/qthreads" ; \
29371 for flag in $(EXTRA_TARGET_FLAGS); do \
29372 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29373 done; \
29374 (cd $(TARGET_SUBDIR)/qthreads && \
29375 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29376 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29377 "RANLIB=$${RANLIB}" \
29378 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 29379 dvi) \
8ec98d6c
NN
29380 || exit 1
29381
a7e609d6 29382@endif target-qthreads
8ec98d6c 29383
b6fb961f
MS
29384.PHONY: maybe-html-target-qthreads html-target-qthreads
29385maybe-html-target-qthreads:
29386@if target-qthreads
29387maybe-html-target-qthreads: html-target-qthreads
29388
29389html-target-qthreads: \
29390 configure-target-qthreads
29391 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
29392 r=`${PWD_COMMAND}`; export r; \
29393 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29394 $(SET_LIB_PATH) \
29395 $(NORMAL_TARGET_EXPORTS) \
29396 echo "Doing html in $(TARGET_SUBDIR)/qthreads" ; \
29397 for flag in $(EXTRA_TARGET_FLAGS); do \
29398 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29399 done; \
29400 (cd $(TARGET_SUBDIR)/qthreads && \
29401 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29402 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29403 "RANLIB=$${RANLIB}" \
29404 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
29405 html) \
29406 || exit 1
29407
29408@endif target-qthreads
29409
8ec98d6c
NN
29410.PHONY: maybe-TAGS-target-qthreads TAGS-target-qthreads
29411maybe-TAGS-target-qthreads:
a7e609d6
PB
29412@if target-qthreads
29413maybe-TAGS-target-qthreads: TAGS-target-qthreads
8ec98d6c
NN
29414
29415TAGS-target-qthreads: \
29416 configure-target-qthreads
29417 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
29418 r=`${PWD_COMMAND}`; export r; \
29419 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29420 $(SET_LIB_PATH) \
a675b75a 29421 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
29422 echo "Doing TAGS in $(TARGET_SUBDIR)/qthreads" ; \
29423 for flag in $(EXTRA_TARGET_FLAGS); do \
29424 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29425 done; \
29426 (cd $(TARGET_SUBDIR)/qthreads && \
29427 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29428 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29429 "RANLIB=$${RANLIB}" \
29430 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 29431 TAGS) \
8ec98d6c
NN
29432 || exit 1
29433
a7e609d6 29434@endif target-qthreads
8ec98d6c
NN
29435
29436.PHONY: maybe-install-info-target-qthreads install-info-target-qthreads
29437maybe-install-info-target-qthreads:
a7e609d6
PB
29438@if target-qthreads
29439maybe-install-info-target-qthreads: install-info-target-qthreads
8ec98d6c
NN
29440
29441install-info-target-qthreads: \
29442 configure-target-qthreads \
29443 info-target-qthreads
29444 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
29445 r=`${PWD_COMMAND}`; export r; \
29446 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29447 $(SET_LIB_PATH) \
a675b75a 29448 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
29449 echo "Doing install-info in $(TARGET_SUBDIR)/qthreads" ; \
29450 for flag in $(EXTRA_TARGET_FLAGS); do \
29451 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29452 done; \
29453 (cd $(TARGET_SUBDIR)/qthreads && \
29454 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29455 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29456 "RANLIB=$${RANLIB}" \
29457 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 29458 install-info) \
8ec98d6c
NN
29459 || exit 1
29460
a7e609d6 29461@endif target-qthreads
8ec98d6c
NN
29462
29463.PHONY: maybe-installcheck-target-qthreads installcheck-target-qthreads
29464maybe-installcheck-target-qthreads:
a7e609d6
PB
29465@if target-qthreads
29466maybe-installcheck-target-qthreads: installcheck-target-qthreads
8ec98d6c
NN
29467
29468installcheck-target-qthreads: \
29469 configure-target-qthreads
29470 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
29471 r=`${PWD_COMMAND}`; export r; \
29472 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29473 $(SET_LIB_PATH) \
a675b75a 29474 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
29475 echo "Doing installcheck in $(TARGET_SUBDIR)/qthreads" ; \
29476 for flag in $(EXTRA_TARGET_FLAGS); do \
29477 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29478 done; \
29479 (cd $(TARGET_SUBDIR)/qthreads && \
29480 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29481 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29482 "RANLIB=$${RANLIB}" \
29483 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 29484 installcheck) \
8ec98d6c
NN
29485 || exit 1
29486
a7e609d6 29487@endif target-qthreads
8ec98d6c
NN
29488
29489.PHONY: maybe-mostlyclean-target-qthreads mostlyclean-target-qthreads
29490maybe-mostlyclean-target-qthreads:
a7e609d6
PB
29491@if target-qthreads
29492maybe-mostlyclean-target-qthreads: mostlyclean-target-qthreads
8ec98d6c
NN
29493
29494mostlyclean-target-qthreads:
29495 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
29496 r=`${PWD_COMMAND}`; export r; \
29497 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29498 $(SET_LIB_PATH) \
a675b75a 29499 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
29500 echo "Doing mostlyclean in $(TARGET_SUBDIR)/qthreads" ; \
29501 for flag in $(EXTRA_TARGET_FLAGS); do \
29502 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29503 done; \
29504 (cd $(TARGET_SUBDIR)/qthreads && \
29505 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29506 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29507 "RANLIB=$${RANLIB}" \
29508 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 29509 mostlyclean) \
8ec98d6c
NN
29510 || exit 1
29511
a7e609d6 29512@endif target-qthreads
8ec98d6c
NN
29513
29514.PHONY: maybe-clean-target-qthreads clean-target-qthreads
29515maybe-clean-target-qthreads:
a7e609d6
PB
29516@if target-qthreads
29517maybe-clean-target-qthreads: clean-target-qthreads
8ec98d6c
NN
29518
29519clean-target-qthreads:
29520 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
29521 r=`${PWD_COMMAND}`; export r; \
29522 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29523 $(SET_LIB_PATH) \
a675b75a 29524 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
29525 echo "Doing clean in $(TARGET_SUBDIR)/qthreads" ; \
29526 for flag in $(EXTRA_TARGET_FLAGS); do \
29527 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29528 done; \
29529 (cd $(TARGET_SUBDIR)/qthreads && \
29530 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29531 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29532 "RANLIB=$${RANLIB}" \
29533 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 29534 clean) \
8ec98d6c
NN
29535 || exit 1
29536
a7e609d6 29537@endif target-qthreads
8ec98d6c
NN
29538
29539.PHONY: maybe-distclean-target-qthreads distclean-target-qthreads
29540maybe-distclean-target-qthreads:
a7e609d6
PB
29541@if target-qthreads
29542maybe-distclean-target-qthreads: distclean-target-qthreads
8ec98d6c
NN
29543
29544distclean-target-qthreads:
29545 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
29546 r=`${PWD_COMMAND}`; export r; \
29547 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29548 $(SET_LIB_PATH) \
a675b75a 29549 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
29550 echo "Doing distclean in $(TARGET_SUBDIR)/qthreads" ; \
29551 for flag in $(EXTRA_TARGET_FLAGS); do \
29552 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29553 done; \
29554 (cd $(TARGET_SUBDIR)/qthreads && \
29555 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29556 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29557 "RANLIB=$${RANLIB}" \
29558 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 29559 distclean) \
8ec98d6c
NN
29560 || exit 1
29561
a7e609d6 29562@endif target-qthreads
8ec98d6c
NN
29563
29564.PHONY: maybe-maintainer-clean-target-qthreads maintainer-clean-target-qthreads
29565maybe-maintainer-clean-target-qthreads:
a7e609d6
PB
29566@if target-qthreads
29567maybe-maintainer-clean-target-qthreads: maintainer-clean-target-qthreads
8ec98d6c
NN
29568
29569maintainer-clean-target-qthreads:
29570 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
29571 r=`${PWD_COMMAND}`; export r; \
29572 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29573 $(SET_LIB_PATH) \
a675b75a 29574 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
29575 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/qthreads" ; \
29576 for flag in $(EXTRA_TARGET_FLAGS); do \
29577 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29578 done; \
29579 (cd $(TARGET_SUBDIR)/qthreads && \
29580 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29581 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29582 "RANLIB=$${RANLIB}" \
29583 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 29584 maintainer-clean) \
8ec98d6c 29585 || exit 1
70ffc148 29586
a7e609d6 29587@endif target-qthreads
f66d1936 29588
d6ebd419 29589
8ec98d6c
NN
29590.PHONY: configure-target-rda maybe-configure-target-rda
29591maybe-configure-target-rda:
a7e609d6
PB
29592@if target-rda
29593maybe-configure-target-rda: configure-target-rda
43bdb69a 29594
6dbec167 29595# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
8ec98d6c
NN
29596$(TARGET_SUBDIR)/rda/multilib.out: multilib.out
29597 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda ; \
29598 rm -f $(TARGET_SUBDIR)/rda/Makefile || : ; \
29599 cp multilib.out $(TARGET_SUBDIR)/rda/multilib.out
43bdb69a 29600
8ec98d6c
NN
29601configure-target-rda: $(TARGET_SUBDIR)/rda/multilib.out
29602 @test ! -f $(TARGET_SUBDIR)/rda/Makefile || exit 0; \
29603 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda ; \
5230d454
L
29604 r=`${PWD_COMMAND}`; export r; \
29605 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 29606 $(SET_LIB_PATH) \
a675b75a 29607 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
29608 echo Configuring in $(TARGET_SUBDIR)/rda; \
29609 cd "$(TARGET_SUBDIR)/rda" || exit 1; \
2245eb63 29610 case $(srcdir) in \
7fc2ca22
PB
29611 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
29612 *) topdir=`echo $(TARGET_SUBDIR)/rda/ | \
29613 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2245eb63 29614 esac; \
7fc2ca22
PB
29615 srcdiroption="--srcdir=$${topdir}/rda"; \
29616 libsrcdir="$$s/rda"; \
2245eb63
NN
29617 rm -f no-such-file || : ; \
29618 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
29619 $(TARGET_CONFIGARGS) $${srcdiroption} \
63673a5b 29620 --with-target-subdir="$(TARGET_SUBDIR)" \
2245eb63 29621 || exit 1
a7e609d6 29622@endif target-rda
f66d1936 29623
8ec98d6c
NN
29624.PHONY: all-target-rda maybe-all-target-rda
29625maybe-all-target-rda:
a7e609d6 29626@if target-rda
6a19fd82 29627TARGET-target-rda=all
a7e609d6 29628maybe-all-target-rda: all-target-rda
8ec98d6c 29629all-target-rda: configure-target-rda
5230d454
L
29630 @r=`${PWD_COMMAND}`; export r; \
29631 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 29632 $(SET_LIB_PATH) \
a675b75a 29633 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 29634 (cd $(TARGET_SUBDIR)/rda && \
6a19fd82 29635 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-rda))
a7e609d6 29636@endif target-rda
a3acbf46 29637
8ec98d6c
NN
29638.PHONY: check-target-rda maybe-check-target-rda
29639maybe-check-target-rda:
a7e609d6
PB
29640@if target-rda
29641maybe-check-target-rda: check-target-rda
70ffc148 29642
8ec98d6c 29643check-target-rda:
5230d454
L
29644 @r=`${PWD_COMMAND}`; export r; \
29645 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 29646 $(SET_LIB_PATH) \
a675b75a 29647 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 29648 (cd $(TARGET_SUBDIR)/rda && \
63673a5b 29649 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
a3acbf46 29650
a7e609d6 29651@endif target-rda
c5e4bb70 29652
8ec98d6c
NN
29653.PHONY: install-target-rda maybe-install-target-rda
29654maybe-install-target-rda:
a7e609d6
PB
29655@if target-rda
29656maybe-install-target-rda: install-target-rda
70ffc148 29657
8ec98d6c 29658install-target-rda: installdirs
5230d454
L
29659 @r=`${PWD_COMMAND}`; export r; \
29660 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 29661 $(SET_LIB_PATH) \
a675b75a 29662 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 29663 (cd $(TARGET_SUBDIR)/rda && \
63673a5b 29664 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
d6ebd419 29665
a7e609d6 29666@endif target-rda
d6ebd419 29667
8ec98d6c 29668# Other targets (info, dvi, etc.)
43bdb69a 29669
8ec98d6c
NN
29670.PHONY: maybe-info-target-rda info-target-rda
29671maybe-info-target-rda:
a7e609d6
PB
29672@if target-rda
29673maybe-info-target-rda: info-target-rda
43bdb69a 29674
8ec98d6c
NN
29675info-target-rda: \
29676 configure-target-rda
29677 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
5230d454
L
29678 r=`${PWD_COMMAND}`; export r; \
29679 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 29680 $(SET_LIB_PATH) \
a675b75a 29681 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
29682 echo "Doing info in $(TARGET_SUBDIR)/rda" ; \
29683 for flag in $(EXTRA_TARGET_FLAGS); do \
29684 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29685 done; \
29686 (cd $(TARGET_SUBDIR)/rda && \
29687 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29688 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29689 "RANLIB=$${RANLIB}" \
29690 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 29691 info) \
2245eb63 29692 || exit 1
a3acbf46 29693
a7e609d6 29694@endif target-rda
8ec98d6c
NN
29695
29696.PHONY: maybe-dvi-target-rda dvi-target-rda
29697maybe-dvi-target-rda:
a7e609d6
PB
29698@if target-rda
29699maybe-dvi-target-rda: dvi-target-rda
8ec98d6c
NN
29700
29701dvi-target-rda: \
29702 configure-target-rda
29703 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
29704 r=`${PWD_COMMAND}`; export r; \
5230d454 29705 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 29706 $(SET_LIB_PATH) \
a675b75a 29707 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
29708 echo "Doing dvi in $(TARGET_SUBDIR)/rda" ; \
29709 for flag in $(EXTRA_TARGET_FLAGS); do \
29710 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29711 done; \
29712 (cd $(TARGET_SUBDIR)/rda && \
29713 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29714 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29715 "RANLIB=$${RANLIB}" \
29716 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 29717 dvi) \
8ec98d6c 29718 || exit 1
a3acbf46 29719
a7e609d6 29720@endif target-rda
70ffc148 29721
b6fb961f
MS
29722.PHONY: maybe-html-target-rda html-target-rda
29723maybe-html-target-rda:
29724@if target-rda
29725maybe-html-target-rda: html-target-rda
29726
29727html-target-rda: \
29728 configure-target-rda
29729 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
29730 r=`${PWD_COMMAND}`; export r; \
29731 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29732 $(SET_LIB_PATH) \
29733 $(NORMAL_TARGET_EXPORTS) \
29734 echo "Doing html in $(TARGET_SUBDIR)/rda" ; \
29735 for flag in $(EXTRA_TARGET_FLAGS); do \
29736 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29737 done; \
29738 (cd $(TARGET_SUBDIR)/rda && \
29739 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29740 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29741 "RANLIB=$${RANLIB}" \
29742 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
29743 html) \
29744 || exit 1
29745
29746@endif target-rda
29747
8ec98d6c
NN
29748.PHONY: maybe-TAGS-target-rda TAGS-target-rda
29749maybe-TAGS-target-rda:
a7e609d6
PB
29750@if target-rda
29751maybe-TAGS-target-rda: TAGS-target-rda
8ec98d6c
NN
29752
29753TAGS-target-rda: \
29754 configure-target-rda
29755 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
29756 r=`${PWD_COMMAND}`; export r; \
5230d454 29757 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 29758 $(SET_LIB_PATH) \
a675b75a 29759 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
29760 echo "Doing TAGS in $(TARGET_SUBDIR)/rda" ; \
29761 for flag in $(EXTRA_TARGET_FLAGS); do \
29762 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29763 done; \
29764 (cd $(TARGET_SUBDIR)/rda && \
29765 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29766 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29767 "RANLIB=$${RANLIB}" \
29768 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 29769 TAGS) \
8ec98d6c 29770 || exit 1
d6ebd419 29771
a7e609d6 29772@endif target-rda
c5e4bb70 29773
8ec98d6c
NN
29774.PHONY: maybe-install-info-target-rda install-info-target-rda
29775maybe-install-info-target-rda:
a7e609d6
PB
29776@if target-rda
29777maybe-install-info-target-rda: install-info-target-rda
70ffc148 29778
8ec98d6c
NN
29779install-info-target-rda: \
29780 configure-target-rda \
29781 info-target-rda
29782 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
29783 r=`${PWD_COMMAND}`; export r; \
5230d454 29784 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 29785 $(SET_LIB_PATH) \
a675b75a 29786 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
29787 echo "Doing install-info in $(TARGET_SUBDIR)/rda" ; \
29788 for flag in $(EXTRA_TARGET_FLAGS); do \
29789 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29790 done; \
29791 (cd $(TARGET_SUBDIR)/rda && \
29792 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29793 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29794 "RANLIB=$${RANLIB}" \
29795 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 29796 install-info) \
8ec98d6c 29797 || exit 1
a3acbf46 29798
a7e609d6 29799@endif target-rda
d6ebd419 29800
8ec98d6c
NN
29801.PHONY: maybe-installcheck-target-rda installcheck-target-rda
29802maybe-installcheck-target-rda:
a7e609d6
PB
29803@if target-rda
29804maybe-installcheck-target-rda: installcheck-target-rda
43bdb69a 29805
8ec98d6c
NN
29806installcheck-target-rda: \
29807 configure-target-rda
29808 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
29809 r=`${PWD_COMMAND}`; export r; \
29810 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29811 $(SET_LIB_PATH) \
a675b75a 29812 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
29813 echo "Doing installcheck in $(TARGET_SUBDIR)/rda" ; \
29814 for flag in $(EXTRA_TARGET_FLAGS); do \
29815 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29816 done; \
29817 (cd $(TARGET_SUBDIR)/rda && \
29818 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29819 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29820 "RANLIB=$${RANLIB}" \
29821 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 29822 installcheck) \
8ec98d6c 29823 || exit 1
43bdb69a 29824
a7e609d6 29825@endif target-rda
8ec98d6c
NN
29826
29827.PHONY: maybe-mostlyclean-target-rda mostlyclean-target-rda
29828maybe-mostlyclean-target-rda:
a7e609d6
PB
29829@if target-rda
29830maybe-mostlyclean-target-rda: mostlyclean-target-rda
8ec98d6c
NN
29831
29832mostlyclean-target-rda:
29833 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
5230d454
L
29834 r=`${PWD_COMMAND}`; export r; \
29835 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 29836 $(SET_LIB_PATH) \
a675b75a 29837 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
29838 echo "Doing mostlyclean in $(TARGET_SUBDIR)/rda" ; \
29839 for flag in $(EXTRA_TARGET_FLAGS); do \
29840 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29841 done; \
29842 (cd $(TARGET_SUBDIR)/rda && \
29843 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29844 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29845 "RANLIB=$${RANLIB}" \
29846 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 29847 mostlyclean) \
2245eb63 29848 || exit 1
a3acbf46 29849
a7e609d6 29850@endif target-rda
8ec98d6c
NN
29851
29852.PHONY: maybe-clean-target-rda clean-target-rda
29853maybe-clean-target-rda:
a7e609d6
PB
29854@if target-rda
29855maybe-clean-target-rda: clean-target-rda
8ec98d6c
NN
29856
29857clean-target-rda:
29858 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
29859 r=`${PWD_COMMAND}`; export r; \
5230d454 29860 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 29861 $(SET_LIB_PATH) \
a675b75a 29862 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
29863 echo "Doing clean in $(TARGET_SUBDIR)/rda" ; \
29864 for flag in $(EXTRA_TARGET_FLAGS); do \
29865 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29866 done; \
2245eb63 29867 (cd $(TARGET_SUBDIR)/rda && \
8ec98d6c
NN
29868 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29869 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29870 "RANLIB=$${RANLIB}" \
29871 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 29872 clean) \
8ec98d6c 29873 || exit 1
a3acbf46 29874
a7e609d6 29875@endif target-rda
70ffc148 29876
8ec98d6c
NN
29877.PHONY: maybe-distclean-target-rda distclean-target-rda
29878maybe-distclean-target-rda:
a7e609d6
PB
29879@if target-rda
29880maybe-distclean-target-rda: distclean-target-rda
8ec98d6c
NN
29881
29882distclean-target-rda:
29883 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
29884 r=`${PWD_COMMAND}`; export r; \
5230d454 29885 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 29886 $(SET_LIB_PATH) \
a675b75a 29887 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
29888 echo "Doing distclean in $(TARGET_SUBDIR)/rda" ; \
29889 for flag in $(EXTRA_TARGET_FLAGS); do \
29890 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29891 done; \
2245eb63 29892 (cd $(TARGET_SUBDIR)/rda && \
8ec98d6c
NN
29893 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29894 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29895 "RANLIB=$${RANLIB}" \
29896 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 29897 distclean) \
8ec98d6c 29898 || exit 1
a3acbf46 29899
a7e609d6 29900@endif target-rda
c5e4bb70 29901
8ec98d6c
NN
29902.PHONY: maybe-maintainer-clean-target-rda maintainer-clean-target-rda
29903maybe-maintainer-clean-target-rda:
a7e609d6
PB
29904@if target-rda
29905maybe-maintainer-clean-target-rda: maintainer-clean-target-rda
70ffc148 29906
8ec98d6c
NN
29907maintainer-clean-target-rda:
29908 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
29909 r=`${PWD_COMMAND}`; export r; \
5230d454 29910 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245eb63 29911 $(SET_LIB_PATH) \
a675b75a 29912 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
29913 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/rda" ; \
29914 for flag in $(EXTRA_TARGET_FLAGS); do \
29915 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29916 done; \
2245eb63 29917 (cd $(TARGET_SUBDIR)/rda && \
8ec98d6c
NN
29918 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29919 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29920 "RANLIB=$${RANLIB}" \
29921 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 29922 maintainer-clean) \
8ec98d6c
NN
29923 || exit 1
29924
a7e609d6 29925@endif target-rda
a3acbf46 29926
d6ebd419 29927
d832a288
DD
29928.PHONY: configure-target-libada maybe-configure-target-libada
29929maybe-configure-target-libada:
a7e609d6
PB
29930@if target-libada
29931maybe-configure-target-libada: configure-target-libada
d832a288
DD
29932
29933# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
29934$(TARGET_SUBDIR)/libada/multilib.out: multilib.out
29935 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada ; \
29936 rm -f $(TARGET_SUBDIR)/libada/Makefile || : ; \
29937 cp multilib.out $(TARGET_SUBDIR)/libada/multilib.out
29938
29939configure-target-libada: $(TARGET_SUBDIR)/libada/multilib.out
29940 @test ! -f $(TARGET_SUBDIR)/libada/Makefile || exit 0; \
29941 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada ; \
29942 r=`${PWD_COMMAND}`; export r; \
29943 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29944 $(SET_LIB_PATH) \
a675b75a 29945 $(NORMAL_TARGET_EXPORTS) \
d832a288
DD
29946 echo Configuring in $(TARGET_SUBDIR)/libada; \
29947 cd "$(TARGET_SUBDIR)/libada" || exit 1; \
29948 case $(srcdir) in \
7fc2ca22
PB
29949 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
29950 *) topdir=`echo $(TARGET_SUBDIR)/libada/ | \
29951 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
d832a288 29952 esac; \
7fc2ca22
PB
29953 srcdiroption="--srcdir=$${topdir}/libada"; \
29954 libsrcdir="$$s/libada"; \
d832a288
DD
29955 rm -f no-such-file || : ; \
29956 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
29957 $(TARGET_CONFIGARGS) $${srcdiroption} \
63673a5b 29958 --with-target-subdir="$(TARGET_SUBDIR)" \
d832a288 29959 || exit 1
a7e609d6 29960@endif target-libada
d832a288 29961
8ec98d6c
NN
29962.PHONY: all-target-libada maybe-all-target-libada
29963maybe-all-target-libada:
a7e609d6 29964@if target-libada
6a19fd82 29965TARGET-target-libada=all
a7e609d6 29966maybe-all-target-libada: all-target-libada
8ec98d6c
NN
29967all-target-libada: configure-target-libada
29968 @r=`${PWD_COMMAND}`; export r; \
29969 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29970 $(SET_LIB_PATH) \
a675b75a 29971 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 29972 (cd $(TARGET_SUBDIR)/libada && \
6a19fd82 29973 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libada))
a7e609d6 29974@endif target-libada
8ec98d6c
NN
29975
29976.PHONY: check-target-libada maybe-check-target-libada
29977maybe-check-target-libada:
a7e609d6
PB
29978@if target-libada
29979maybe-check-target-libada: check-target-libada
8ec98d6c
NN
29980
29981check-target-libada:
29982 @r=`${PWD_COMMAND}`; export r; \
29983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29984 $(SET_LIB_PATH) \
a675b75a 29985 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 29986 (cd $(TARGET_SUBDIR)/libada && \
63673a5b 29987 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
8ec98d6c 29988
a7e609d6 29989@endif target-libada
8ec98d6c
NN
29990
29991.PHONY: install-target-libada maybe-install-target-libada
29992maybe-install-target-libada:
a7e609d6
PB
29993@if target-libada
29994maybe-install-target-libada: install-target-libada
8ec98d6c
NN
29995
29996install-target-libada: installdirs
29997 @r=`${PWD_COMMAND}`; export r; \
29998 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29999 $(SET_LIB_PATH) \
a675b75a 30000 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 30001 (cd $(TARGET_SUBDIR)/libada && \
63673a5b 30002 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
8ec98d6c 30003
a7e609d6 30004@endif target-libada
8ec98d6c
NN
30005
30006# Other targets (info, dvi, etc.)
30007
30008.PHONY: maybe-info-target-libada info-target-libada
30009maybe-info-target-libada:
a7e609d6
PB
30010@if target-libada
30011maybe-info-target-libada: info-target-libada
8ec98d6c
NN
30012
30013info-target-libada: \
30014 configure-target-libada
30015 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
30016 r=`${PWD_COMMAND}`; export r; \
30017 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30018 $(SET_LIB_PATH) \
a675b75a 30019 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
30020 echo "Doing info in $(TARGET_SUBDIR)/libada" ; \
30021 for flag in $(EXTRA_TARGET_FLAGS); do \
30022 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30023 done; \
30024 (cd $(TARGET_SUBDIR)/libada && \
30025 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30026 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30027 "RANLIB=$${RANLIB}" \
30028 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 30029 info) \
8ec98d6c
NN
30030 || exit 1
30031
a7e609d6 30032@endif target-libada
8ec98d6c
NN
30033
30034.PHONY: maybe-dvi-target-libada dvi-target-libada
30035maybe-dvi-target-libada:
a7e609d6
PB
30036@if target-libada
30037maybe-dvi-target-libada: dvi-target-libada
8ec98d6c
NN
30038
30039dvi-target-libada: \
30040 configure-target-libada
30041 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
30042 r=`${PWD_COMMAND}`; export r; \
30043 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30044 $(SET_LIB_PATH) \
a675b75a 30045 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
30046 echo "Doing dvi in $(TARGET_SUBDIR)/libada" ; \
30047 for flag in $(EXTRA_TARGET_FLAGS); do \
30048 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30049 done; \
30050 (cd $(TARGET_SUBDIR)/libada && \
30051 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30052 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30053 "RANLIB=$${RANLIB}" \
30054 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 30055 dvi) \
8ec98d6c
NN
30056 || exit 1
30057
a7e609d6 30058@endif target-libada
8ec98d6c 30059
b6fb961f
MS
30060.PHONY: maybe-html-target-libada html-target-libada
30061maybe-html-target-libada:
30062@if target-libada
30063maybe-html-target-libada: html-target-libada
30064
30065html-target-libada: \
30066 configure-target-libada
30067 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
30068 r=`${PWD_COMMAND}`; export r; \
30069 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30070 $(SET_LIB_PATH) \
30071 $(NORMAL_TARGET_EXPORTS) \
30072 echo "Doing html in $(TARGET_SUBDIR)/libada" ; \
30073 for flag in $(EXTRA_TARGET_FLAGS); do \
30074 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30075 done; \
30076 (cd $(TARGET_SUBDIR)/libada && \
30077 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30078 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30079 "RANLIB=$${RANLIB}" \
30080 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
30081 html) \
30082 || exit 1
30083
30084@endif target-libada
30085
8ec98d6c
NN
30086.PHONY: maybe-TAGS-target-libada TAGS-target-libada
30087maybe-TAGS-target-libada:
a7e609d6
PB
30088@if target-libada
30089maybe-TAGS-target-libada: TAGS-target-libada
8ec98d6c
NN
30090
30091TAGS-target-libada: \
30092 configure-target-libada
30093 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
30094 r=`${PWD_COMMAND}`; export r; \
30095 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30096 $(SET_LIB_PATH) \
a675b75a 30097 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
30098 echo "Doing TAGS in $(TARGET_SUBDIR)/libada" ; \
30099 for flag in $(EXTRA_TARGET_FLAGS); do \
30100 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30101 done; \
30102 (cd $(TARGET_SUBDIR)/libada && \
30103 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30104 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30105 "RANLIB=$${RANLIB}" \
30106 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 30107 TAGS) \
8ec98d6c
NN
30108 || exit 1
30109
a7e609d6 30110@endif target-libada
8ec98d6c
NN
30111
30112.PHONY: maybe-install-info-target-libada install-info-target-libada
30113maybe-install-info-target-libada:
a7e609d6
PB
30114@if target-libada
30115maybe-install-info-target-libada: install-info-target-libada
8ec98d6c
NN
30116
30117install-info-target-libada: \
30118 configure-target-libada \
30119 info-target-libada
30120 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
30121 r=`${PWD_COMMAND}`; export r; \
30122 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30123 $(SET_LIB_PATH) \
a675b75a 30124 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
30125 echo "Doing install-info in $(TARGET_SUBDIR)/libada" ; \
30126 for flag in $(EXTRA_TARGET_FLAGS); do \
30127 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30128 done; \
30129 (cd $(TARGET_SUBDIR)/libada && \
30130 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30131 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30132 "RANLIB=$${RANLIB}" \
30133 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 30134 install-info) \
8ec98d6c
NN
30135 || exit 1
30136
a7e609d6 30137@endif target-libada
8ec98d6c
NN
30138
30139.PHONY: maybe-installcheck-target-libada installcheck-target-libada
30140maybe-installcheck-target-libada:
a7e609d6
PB
30141@if target-libada
30142maybe-installcheck-target-libada: installcheck-target-libada
8ec98d6c
NN
30143
30144installcheck-target-libada: \
30145 configure-target-libada
30146 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
30147 r=`${PWD_COMMAND}`; export r; \
30148 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30149 $(SET_LIB_PATH) \
a675b75a 30150 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
30151 echo "Doing installcheck in $(TARGET_SUBDIR)/libada" ; \
30152 for flag in $(EXTRA_TARGET_FLAGS); do \
30153 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30154 done; \
30155 (cd $(TARGET_SUBDIR)/libada && \
30156 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30157 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30158 "RANLIB=$${RANLIB}" \
30159 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 30160 installcheck) \
8ec98d6c
NN
30161 || exit 1
30162
a7e609d6 30163@endif target-libada
8ec98d6c
NN
30164
30165.PHONY: maybe-mostlyclean-target-libada mostlyclean-target-libada
30166maybe-mostlyclean-target-libada:
a7e609d6
PB
30167@if target-libada
30168maybe-mostlyclean-target-libada: mostlyclean-target-libada
8ec98d6c
NN
30169
30170mostlyclean-target-libada:
30171 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
30172 r=`${PWD_COMMAND}`; export r; \
30173 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30174 $(SET_LIB_PATH) \
a675b75a 30175 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
30176 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libada" ; \
30177 for flag in $(EXTRA_TARGET_FLAGS); do \
30178 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30179 done; \
30180 (cd $(TARGET_SUBDIR)/libada && \
30181 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30182 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30183 "RANLIB=$${RANLIB}" \
30184 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 30185 mostlyclean) \
8ec98d6c
NN
30186 || exit 1
30187
a7e609d6 30188@endif target-libada
8ec98d6c
NN
30189
30190.PHONY: maybe-clean-target-libada clean-target-libada
30191maybe-clean-target-libada:
a7e609d6
PB
30192@if target-libada
30193maybe-clean-target-libada: clean-target-libada
8ec98d6c
NN
30194
30195clean-target-libada:
30196 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
30197 r=`${PWD_COMMAND}`; export r; \
30198 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30199 $(SET_LIB_PATH) \
a675b75a 30200 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
30201 echo "Doing clean in $(TARGET_SUBDIR)/libada" ; \
30202 for flag in $(EXTRA_TARGET_FLAGS); do \
30203 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30204 done; \
30205 (cd $(TARGET_SUBDIR)/libada && \
30206 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30207 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30208 "RANLIB=$${RANLIB}" \
30209 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 30210 clean) \
8ec98d6c
NN
30211 || exit 1
30212
a7e609d6 30213@endif target-libada
d832a288 30214
8ec98d6c
NN
30215.PHONY: maybe-distclean-target-libada distclean-target-libada
30216maybe-distclean-target-libada:
a7e609d6
PB
30217@if target-libada
30218maybe-distclean-target-libada: distclean-target-libada
d832a288 30219
8ec98d6c
NN
30220distclean-target-libada:
30221 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
30222 r=`${PWD_COMMAND}`; export r; \
d832a288
DD
30223 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30224 $(SET_LIB_PATH) \
a675b75a 30225 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
30226 echo "Doing distclean in $(TARGET_SUBDIR)/libada" ; \
30227 for flag in $(EXTRA_TARGET_FLAGS); do \
30228 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30229 done; \
d832a288 30230 (cd $(TARGET_SUBDIR)/libada && \
8ec98d6c
NN
30231 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30232 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30233 "RANLIB=$${RANLIB}" \
30234 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 30235 distclean) \
8ec98d6c 30236 || exit 1
d832a288 30237
a7e609d6 30238@endif target-libada
d832a288 30239
8ec98d6c
NN
30240.PHONY: maybe-maintainer-clean-target-libada maintainer-clean-target-libada
30241maybe-maintainer-clean-target-libada:
a7e609d6
PB
30242@if target-libada
30243maybe-maintainer-clean-target-libada: maintainer-clean-target-libada
d832a288 30244
8ec98d6c
NN
30245maintainer-clean-target-libada:
30246 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
30247 r=`${PWD_COMMAND}`; export r; \
d832a288
DD
30248 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30249 $(SET_LIB_PATH) \
a675b75a 30250 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
30251 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libada" ; \
30252 for flag in $(EXTRA_TARGET_FLAGS); do \
30253 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30254 done; \
d832a288 30255 (cd $(TARGET_SUBDIR)/libada && \
8ec98d6c
NN
30256 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30257 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30258 "RANLIB=$${RANLIB}" \
30259 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
63673a5b 30260 maintainer-clean) \
8ec98d6c
NN
30261 || exit 1
30262
a7e609d6 30263@endif target-libada
d832a288
DD
30264
30265
d6ebd419 30266
43bdb69a
NN
30267# ----------
30268# GCC module
30269# ----------
30270
e1666221 30271@if gcc-no-bootstrap
d5eec917
PB
30272# GCC has some more recursive targets, which trigger the old
30273# (but still current, until the toplevel bootstrap project
30274# is finished) compiler bootstrapping rules.
a3acbf46 30275
09f7abda
DD
30276GCC_STRAP_TARGETS = bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean bubblestrap quickstrap cleanstrap restrap
30277.PHONY: $(GCC_STRAP_TARGETS)
364b9683 30278$(GCC_STRAP_TARGETS): all-prebootstrap configure-gcc
5230d454
L
30279 @r=`${PWD_COMMAND}`; export r; \
30280 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a3acbf46 30281 $(SET_LIB_PATH) \
63673a5b 30282 $(HOST_EXPORTS) \
a3acbf46 30283 echo "Bootstrapping the compiler"; \
25688b70 30284 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $@
5230d454
L
30285 @r=`${PWD_COMMAND}`; export r; \
30286 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a3acbf46
RH
30287 case "$@" in \
30288 *bootstrap4-lean ) \
2245eb63
NN
30289 msg="Comparing stage3 and stage4 of the compiler"; \
30290 compare=compare3-lean ;; \
30291 *bootstrap4 ) \
30292 msg="Comparing stage3 and stage4 of the compiler"; \
30293 compare=compare3 ;; \
30294 *-lean ) \
30295 msg="Comparing stage2 and stage3 of the compiler"; \
30296 compare=compare-lean ;; \
30297 * ) \
30298 msg="Comparing stage2 and stage3 of the compiler"; \
30299 compare=compare ;; \
a3acbf46
RH
30300 esac; \
30301 $(SET_LIB_PATH) \
63673a5b 30302 $(HOST_EXPORTS) \
a3acbf46 30303 echo "$$msg"; \
25688b70 30304 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $$compare
5230d454
L
30305 @r=`${PWD_COMMAND}`; export r; \
30306 s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
a3acbf46
RH
30307 $(SET_LIB_PATH) \
30308 echo "Building runtime libraries"; \
21ff191e 30309 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all
a3acbf46 30310
364b9683 30311profiledbootstrap: all-prebootstrap configure-gcc
5230d454
L
30312 @r=`${PWD_COMMAND}`; export r; \
30313 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
606989ed 30314 $(SET_LIB_PATH) \
63673a5b 30315 $(HOST_EXPORTS) \
96979a18 30316 echo "Bootstrapping training compiler"; \
606989ed 30317 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) stageprofile_build
5230d454 30318 @r=`${PWD_COMMAND}`; export r; \
5230d454 30319 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
606989ed 30320 $(SET_LIB_PATH) \
63673a5b 30321 $(HOST_EXPORTS) \
606989ed
NN
30322 echo "Building feedback based compiler"; \
30323 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) stagefeedback_build
96979a18
PB
30324 @r=`${PWD_COMMAND}`; export r; \
30325 s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
30326 $(SET_LIB_PATH) \
30327 echo "Building runtime libraries"; \
30328 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all
606989ed 30329
a3acbf46 30330.PHONY: cross
6a19fd82 30331cross: all-build all-gas all-ld
5230d454
L
30332 @r=`${PWD_COMMAND}`; export r; \
30333 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a3acbf46 30334 $(SET_LIB_PATH) \
63673a5b 30335 $(HOST_EXPORTS) \
a3acbf46 30336 echo "Building the C and C++ compiler"; \
25688b70 30337 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++"
5230d454
L
30338 @r=`${PWD_COMMAND}`; export r; \
30339 s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
a3acbf46
RH
30340 $(SET_LIB_PATH) \
30341 echo "Building runtime libraries"; \
21ff191e 30342 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LANGUAGES="c c++" all
e1666221 30343@endif gcc-no-bootstrap
a3acbf46 30344
a7e609d6 30345@if gcc
d97f0f72
JM
30346.PHONY: check-gcc-c++
30347check-gcc-c++:
f3d61cc7 30348 @if [ -f ./gcc/Makefile ] ; then \
5230d454
L
30349 r=`${PWD_COMMAND}`; export r; \
30350 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f3d61cc7 30351 $(SET_LIB_PATH) \
63673a5b 30352 $(HOST_EXPORTS) \
6dbec167 30353 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++); \
f3d61cc7
DD
30354 else \
30355 true; \
d97f0f72
JM
30356 fi
30357
30358.PHONY: check-c++
2a33c5f1 30359check-c++: check-target-libstdc++-v3 check-gcc-c++
a3acbf46 30360
43bdb69a
NN
30361# Install the gcc headers files, but not the fixed include files,
30362# which Cygnus is not allowed to distribute. This rule is very
30363# dependent on the workings of the gcc Makefile.in.
30364.PHONY: gcc-no-fixedincludes
30365gcc-no-fixedincludes:
30366 @if [ -f ./gcc/Makefile ]; then \
30367 rm -rf gcc/tmp-include; \
30368 mv gcc/include gcc/tmp-include 2>/dev/null; \
30369 mkdir gcc/include; \
30370 cp $(srcdir)/gcc/gsyslimits.h gcc/include/syslimits.h; \
30371 touch gcc/stmp-fixinc gcc/include/fixed; \
30372 rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \
5230d454
L
30373 r=`${PWD_COMMAND}`; export r; \
30374 s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
43bdb69a 30375 $(SET_LIB_PATH) \
63673a5b 30376 $(HOST_EXPORTS) \
6dbec167 30377 (cd ./gcc && \
43bdb69a
NN
30378 $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
30379 rm -rf gcc/include; \
30380 mv gcc/tmp-include gcc/include 2>/dev/null; \
30381 else true; fi
a7e609d6 30382@endif gcc
8ec98d6c 30383
d5eec917
PB
30384# ---------------------
30385# GCC bootstrap support
30386# ---------------------
8ec98d6c 30387
d5eec917
PB
30388# We track the current stage (the one in 'gcc') in the stage_current file.
30389# stage_last instead tracks the stage that was built last. These targets
30390# are dummy when toplevel bootstrap is not active.
8ec98d6c 30391
d5eec917
PB
30392.PHONY: unstage
30393unstage:
30394@if gcc-bootstrap
30395 @[ -f stage_current ] || $(MAKE) `cat stage_last`-start
30396@endif gcc-bootstrap
8ec98d6c 30397
d5eec917
PB
30398.PHONY: stage
30399stage:
e1666221 30400@if gcc-bootstrap
d5eec917
PB
30401 @$(MAKE) `cat stage_current`-end
30402@endif gcc-bootstrap
457eaf16 30403
35269421
PB
30404# We name the build directories for the various stages "stage1-gcc",
30405# "stage2-gcc","stage3-gcc", etc.
30406
30407# Since the 'compare' process will fail (on debugging information) if any
30408# directory names are different, we need to link the gcc directory for
30409# the previous stage to a constant name ('gcc-prev'), and to make the name of
30410# the build directories constant as well. For the latter, we use naked names
30411# like 'gcc', because the scripts in that directory assume it. We use
30412# mv on platforms where symlinks to directories do not work or are not
30413# reliable.
30414
30415# At the end of the bootstrap, a symlink to 'stage3-gcc' named 'gcc' must
30416# be kept, so that libraries can find it. Ick!
30417
30418# It would be best to preinstall gcc into a staging area (and in the
30419# future, gather there all prebootstrap packages). This would allow
30420# assemblers and linkers can be bootstrapped as well as the compiler
30421# (both in a combined tree, or separately). This however requires some
30422# change to the gcc driver, again in order to avoid comparison failures.
457eaf16 30423
99df82b9
PB
30424# Bugs: This is crippled when doing parallel make, the `make all-host'
30425# and `make all-target' phases can be parallelized.
30426
457eaf16
NN
30427
30428# 'touch' doesn't work right on some platforms.
30429STAMP = echo timestamp >
30430
30431# Only build the C compiler for stage1, because that is the only one that
30432# we can guarantee will build with the native compiler, and also it is the
30433# only thing useful for building stage2. STAGE1_CFLAGS (via CFLAGS),
30434# MAKEINFO and MAKEINFOFLAGS are explicitly passed here to make them
30435# overrideable (for a bootstrap build stage1 also builds gcc.info).
30436
30437STAGE1_CFLAGS=@stage1_cflags@
30438STAGE1_LANGUAGES=@stage1_languages@
30439
35269421
PB
30440# We only want to compare .o files, so set this!
30441objext = .o
30442
35269421 30443# Flags to pass to stage2 and later makes.
35269421 30444POSTSTAGE1_FLAGS_TO_PASS = \
21ff191e
PB
30445 CC="$${CC}" CC_FOR_BUILD="$${CC_FOR_BUILD}" \
30446 STAGE_PREFIX=$$r/stage-gcc/ \
35269421
PB
30447 CFLAGS="$(BOOT_CFLAGS)" \
30448 ADAC="\$$(CC)"
30449
8ec98d6c
NN
30450# For stage 1:
30451# * We force-disable intermodule optimizations, even if
30452# --enable-intermodule was passed, since the installed compiler probably
30453# can't handle them. Luckily, autoconf always respects
30454# the last argument when conflicting --enable arguments are passed.
30455# * Likewise, we force-disable coverage flags, since the installed compiler
30456# probably has never heard of them.
30457# * We build only C (and possibly Ada).
35269421
PB
30458
30459
e1666221 30460.PHONY: stage1-start stage1-end
35269421 30461
21ff191e 30462stage1-start::
ebc58bf8 30463 @[ -f stage_current ] && $(MAKE) `cat stage_current`-end || : ; \
d5eec917 30464 echo stage1 > stage_current ; \
7fc2ca22
PB
30465 echo stage1 > stage_last; \
30466 $(mkinstalldirs) $(HOST_SUBDIR)
6a19fd82 30467@if bfd
7fc2ca22
PB
30468 @cd $(HOST_SUBDIR); [ -d stage1-bfd ] || \
30469 mkdir stage1-bfd; \
30470 set stage1-bfd bfd ; \
30471 @CREATE_LINK_TO_DIR@
6a19fd82
PB
30472@endif bfd
30473@if opcodes
7fc2ca22
PB
30474 @cd $(HOST_SUBDIR); [ -d stage1-opcodes ] || \
30475 mkdir stage1-opcodes; \
30476 set stage1-opcodes opcodes ; \
30477 @CREATE_LINK_TO_DIR@
6a19fd82
PB
30478@endif opcodes
30479@if binutils
7fc2ca22
PB
30480 @cd $(HOST_SUBDIR); [ -d stage1-binutils ] || \
30481 mkdir stage1-binutils; \
30482 set stage1-binutils binutils ; \
30483 @CREATE_LINK_TO_DIR@
6a19fd82
PB
30484@endif binutils
30485@if gas
7fc2ca22
PB
30486 @cd $(HOST_SUBDIR); [ -d stage1-gas ] || \
30487 mkdir stage1-gas; \
30488 set stage1-gas gas ; \
30489 @CREATE_LINK_TO_DIR@
6a19fd82
PB
30490@endif gas
30491@if gcc
7fc2ca22
PB
30492 @cd $(HOST_SUBDIR); [ -d stage1-gcc ] || \
30493 mkdir stage1-gcc; \
30494 set stage1-gcc gcc ; \
30495 @CREATE_LINK_TO_DIR@
6a19fd82
PB
30496@endif gcc
30497@if intl
7fc2ca22
PB
30498 @cd $(HOST_SUBDIR); [ -d stage1-intl ] || \
30499 mkdir stage1-intl; \
30500 set stage1-intl intl ; \
30501 @CREATE_LINK_TO_DIR@
6a19fd82
PB
30502@endif intl
30503@if ld
7fc2ca22
PB
30504 @cd $(HOST_SUBDIR); [ -d stage1-ld ] || \
30505 mkdir stage1-ld; \
30506 set stage1-ld ld ; \
30507 @CREATE_LINK_TO_DIR@
6a19fd82
PB
30508@endif ld
30509@if libcpp
7fc2ca22
PB
30510 @cd $(HOST_SUBDIR); [ -d stage1-libcpp ] || \
30511 mkdir stage1-libcpp; \
30512 set stage1-libcpp libcpp ; \
30513 @CREATE_LINK_TO_DIR@
6a19fd82 30514@endif libcpp
6a19fd82 30515@if libiberty
7fc2ca22
PB
30516 @cd $(HOST_SUBDIR); [ -d stage1-libiberty ] || \
30517 mkdir stage1-libiberty; \
30518 set stage1-libiberty libiberty ; \
30519 @CREATE_LINK_TO_DIR@
6a19fd82
PB
30520@endif libiberty
30521@if zlib
7fc2ca22
PB
30522 @cd $(HOST_SUBDIR); [ -d stage1-zlib ] || \
30523 mkdir stage1-zlib; \
30524 set stage1-zlib zlib ; \
30525 @CREATE_LINK_TO_DIR@
6a19fd82 30526@endif zlib
35269421 30527
21ff191e 30528stage1-end::
ebc58bf8 30529 @rm -f stage_current
6a19fd82 30530@if bfd
7fc2ca22
PB
30531 @cd $(HOST_SUBDIR); set bfd stage1-bfd ; \
30532 @UNDO_LINK_TO_DIR@
6a19fd82
PB
30533@endif bfd
30534@if opcodes
7fc2ca22
PB
30535 @cd $(HOST_SUBDIR); set opcodes stage1-opcodes ; \
30536 @UNDO_LINK_TO_DIR@
6a19fd82
PB
30537@endif opcodes
30538@if binutils
7fc2ca22
PB
30539 @cd $(HOST_SUBDIR); set binutils stage1-binutils ; \
30540 @UNDO_LINK_TO_DIR@
6a19fd82
PB
30541@endif binutils
30542@if gas
7fc2ca22
PB
30543 @cd $(HOST_SUBDIR); set gas stage1-gas ; \
30544 @UNDO_LINK_TO_DIR@
6a19fd82
PB
30545@endif gas
30546@if gcc
7fc2ca22
PB
30547 @cd $(HOST_SUBDIR); set gcc stage1-gcc ; \
30548 @UNDO_LINK_TO_DIR@
6a19fd82
PB
30549@endif gcc
30550@if intl
7fc2ca22
PB
30551 @cd $(HOST_SUBDIR); set intl stage1-intl ; \
30552 @UNDO_LINK_TO_DIR@
6a19fd82
PB
30553@endif intl
30554@if ld
7fc2ca22
PB
30555 @cd $(HOST_SUBDIR); set ld stage1-ld ; \
30556 @UNDO_LINK_TO_DIR@
6a19fd82
PB
30557@endif ld
30558@if libcpp
7fc2ca22
PB
30559 @cd $(HOST_SUBDIR); set libcpp stage1-libcpp ; \
30560 @UNDO_LINK_TO_DIR@
6a19fd82 30561@endif libcpp
6a19fd82 30562@if libiberty
7fc2ca22
PB
30563 @cd $(HOST_SUBDIR); set libiberty stage1-libiberty ; \
30564 @UNDO_LINK_TO_DIR@
6a19fd82
PB
30565@endif libiberty
30566@if zlib
7fc2ca22
PB
30567 @cd $(HOST_SUBDIR); set zlib stage1-zlib ; \
30568 @UNDO_LINK_TO_DIR@
6a19fd82 30569@endif zlib
35269421
PB
30570
30571# Bubble a bugfix through all the stages up to stage 1. They
30572# are remade, but not reconfigured. The next stage (if any) will not
30573# be reconfigured as well.
e1666221 30574.PHONY: stage1-bubble
21ff191e 30575stage1-bubble::
ebc58bf8
PB
30576 @if test -f stage1-lean ; then \
30577 echo Skipping rebuild of stage1 ; \
30578 else \
99df82b9 30579 $(MAKE) $(RECURSE_FLAGS_TO_PASS) NOTPARALLEL= all-stage1; \
ebc58bf8 30580 fi
6a19fd82 30581
99df82b9 30582.PHONY: all-stage1 clean-stage1
6a19fd82
PB
30583all-stage1: \
30584 maybe-all-stage1-bfd \
30585 maybe-all-stage1-opcodes \
5350aa8b 30586 maybe-all-stage1-binutils \
6a19fd82
PB
30587 maybe-all-stage1-gas \
30588 maybe-all-stage1-gcc \
30589 maybe-all-stage1-intl \
30590 maybe-all-stage1-ld \
30591 maybe-all-stage1-libcpp \
6a19fd82 30592 maybe-all-stage1-libiberty \
7fc2ca22 30593 maybe-all-stage1-zlib
6a19fd82 30594
99df82b9
PB
30595do-clean: clean-stage1
30596clean-stage1: \
30597 maybe-clean-stage1-bfd \
30598 maybe-clean-stage1-opcodes \
5350aa8b 30599 maybe-clean-stage1-binutils \
99df82b9
PB
30600 maybe-clean-stage1-gas \
30601 maybe-clean-stage1-gcc \
30602 maybe-clean-stage1-intl \
30603 maybe-clean-stage1-ld \
30604 maybe-clean-stage1-libcpp \
99df82b9 30605 maybe-clean-stage1-libiberty \
7fc2ca22 30606 maybe-clean-stage1-zlib
99df82b9 30607
6a19fd82 30608
ebc58bf8
PB
30609.PHONY: configure-stage1-bfd maybe-configure-stage1-bfd
30610.PHONY: all-stage1-bfd maybe-all-stage1-bfd
99df82b9 30611.PHONY: clean-stage1-bfd maybe-clean-stage1-bfd
ebc58bf8 30612
6a19fd82
PB
30613maybe-configure-stage1-bfd:
30614maybe-all-stage1-bfd:
99df82b9 30615maybe-clean-stage1-bfd:
6a19fd82
PB
30616
30617@if bfd-bootstrap
30618maybe-configure-stage1-bfd: configure-stage1-bfd
ebc58bf8
PB
30619configure-stage1-bfd:
30620 @$(MAKE) stage1-start
30621 @[ -f bfd/Makefile ] && exit 0 || : ; \
457eaf16 30622 r=`${PWD_COMMAND}`; export r; \
a675b75a 30623 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
63673a5b 30624 $(HOST_EXPORTS) \
6a19fd82 30625 echo Configuring stage 1 in bfd ; \
7fc2ca22 30626 cd $(HOST_SUBDIR)/bfd || exit 1; \
457eaf16 30627 case $(srcdir) in \
7fc2ca22
PB
30628 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30629 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
30630 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
457eaf16 30631 esac; \
7fc2ca22
PB
30632 srcdiroption="--srcdir=$${topdir}/bfd"; \
30633 libsrcdir="$$s/bfd"; \
457eaf16 30634 $(SHELL) $${libsrcdir}/configure \
8ec98d6c 30635 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 30636 --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
457eaf16 30637
6a19fd82
PB
30638maybe-all-stage1-bfd: all-stage1-bfd
30639all-stage1-bfd: configure-stage1-bfd
ebc58bf8 30640 @$(MAKE) stage1-start
35269421 30641 @r=`${PWD_COMMAND}`; export r; \
a675b75a 30642 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
63673a5b 30643 $(HOST_EXPORTS) \
7fc2ca22 30644 cd $(HOST_SUBDIR)/bfd && \
6a19fd82 30645 $(MAKE) $(FLAGS_TO_PASS) \
ebc58bf8 30646 CFLAGS="$(STAGE1_CFLAGS)"
99df82b9
PB
30647
30648maybe-clean-stage1-bfd: clean-stage1-bfd
30649clean-stage1-bfd:
30650 @[ -f bfd/Makefile ] || [ -f stage1-bfd/Makefile ] \
30651 || exit 0 ; \
30652 [ -f bfd/Makefile ] || $(MAKE) stage1-start ; \
7fc2ca22 30653 cd $(HOST_SUBDIR)/bfd && \
99df82b9
PB
30654 $(MAKE) $(FLAGS_TO_PASS) \
30655 CFLAGS="$(STAGE1_CFLAGS)" clean
6a19fd82
PB
30656@endif bfd-bootstrap
30657
99df82b9 30658
ebc58bf8
PB
30659.PHONY: configure-stage1-opcodes maybe-configure-stage1-opcodes
30660.PHONY: all-stage1-opcodes maybe-all-stage1-opcodes
99df82b9 30661.PHONY: clean-stage1-opcodes maybe-clean-stage1-opcodes
ebc58bf8 30662
6a19fd82
PB
30663maybe-configure-stage1-opcodes:
30664maybe-all-stage1-opcodes:
99df82b9 30665maybe-clean-stage1-opcodes:
6a19fd82
PB
30666
30667@if opcodes-bootstrap
30668maybe-configure-stage1-opcodes: configure-stage1-opcodes
ebc58bf8
PB
30669configure-stage1-opcodes:
30670 @$(MAKE) stage1-start
30671 @[ -f opcodes/Makefile ] && exit 0 || : ; \
457eaf16 30672 r=`${PWD_COMMAND}`; export r; \
a675b75a 30673 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6a19fd82
PB
30674 $(HOST_EXPORTS) \
30675 echo Configuring stage 1 in opcodes ; \
7fc2ca22 30676 cd $(HOST_SUBDIR)/opcodes || exit 1; \
457eaf16 30677 case $(srcdir) in \
7fc2ca22
PB
30678 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30679 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
30680 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
457eaf16 30681 esac; \
7fc2ca22
PB
30682 srcdiroption="--srcdir=$${topdir}/opcodes"; \
30683 libsrcdir="$$s/opcodes"; \
457eaf16 30684 $(SHELL) $${libsrcdir}/configure \
35269421 30685 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 30686 --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
457eaf16 30687
6a19fd82
PB
30688maybe-all-stage1-opcodes: all-stage1-opcodes
30689all-stage1-opcodes: configure-stage1-opcodes
ebc58bf8 30690 @$(MAKE) stage1-start
35269421 30691 @r=`${PWD_COMMAND}`; export r; \
a675b75a 30692 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6a19fd82 30693 $(HOST_EXPORTS) \
7fc2ca22 30694 cd $(HOST_SUBDIR)/opcodes && \
6a19fd82 30695 $(MAKE) $(FLAGS_TO_PASS) \
ebc58bf8 30696 CFLAGS="$(STAGE1_CFLAGS)"
99df82b9
PB
30697
30698maybe-clean-stage1-opcodes: clean-stage1-opcodes
30699clean-stage1-opcodes:
30700 @[ -f opcodes/Makefile ] || [ -f stage1-opcodes/Makefile ] \
30701 || exit 0 ; \
30702 [ -f opcodes/Makefile ] || $(MAKE) stage1-start ; \
7fc2ca22 30703 cd $(HOST_SUBDIR)/opcodes && \
99df82b9
PB
30704 $(MAKE) $(FLAGS_TO_PASS) \
30705 CFLAGS="$(STAGE1_CFLAGS)" clean
6a19fd82
PB
30706@endif opcodes-bootstrap
30707
99df82b9 30708
ebc58bf8
PB
30709.PHONY: configure-stage1-binutils maybe-configure-stage1-binutils
30710.PHONY: all-stage1-binutils maybe-all-stage1-binutils
99df82b9 30711.PHONY: clean-stage1-binutils maybe-clean-stage1-binutils
ebc58bf8 30712
6a19fd82
PB
30713maybe-configure-stage1-binutils:
30714maybe-all-stage1-binutils:
99df82b9 30715maybe-clean-stage1-binutils:
6a19fd82
PB
30716
30717@if binutils-bootstrap
30718maybe-configure-stage1-binutils: configure-stage1-binutils
ebc58bf8
PB
30719configure-stage1-binutils:
30720 @$(MAKE) stage1-start
30721 @[ -f binutils/Makefile ] && exit 0 || : ; \
6a19fd82
PB
30722 r=`${PWD_COMMAND}`; export r; \
30723 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30724 $(HOST_EXPORTS) \
30725 echo Configuring stage 1 in binutils ; \
7fc2ca22 30726 cd $(HOST_SUBDIR)/binutils || exit 1; \
6a19fd82 30727 case $(srcdir) in \
7fc2ca22
PB
30728 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30729 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
30730 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a19fd82 30731 esac; \
7fc2ca22
PB
30732 srcdiroption="--srcdir=$${topdir}/binutils"; \
30733 libsrcdir="$$s/binutils"; \
6a19fd82
PB
30734 $(SHELL) $${libsrcdir}/configure \
30735 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 30736 --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
6a19fd82
PB
30737
30738maybe-all-stage1-binutils: all-stage1-binutils
30739all-stage1-binutils: configure-stage1-binutils
ebc58bf8 30740 @$(MAKE) stage1-start
6a19fd82
PB
30741 @r=`${PWD_COMMAND}`; export r; \
30742 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30743 $(HOST_EXPORTS) \
7fc2ca22 30744 cd $(HOST_SUBDIR)/binutils && \
6a19fd82 30745 $(MAKE) $(FLAGS_TO_PASS) \
ebc58bf8 30746 CFLAGS="$(STAGE1_CFLAGS)"
99df82b9
PB
30747
30748maybe-clean-stage1-binutils: clean-stage1-binutils
30749clean-stage1-binutils:
30750 @[ -f binutils/Makefile ] || [ -f stage1-binutils/Makefile ] \
30751 || exit 0 ; \
30752 [ -f binutils/Makefile ] || $(MAKE) stage1-start ; \
7fc2ca22 30753 cd $(HOST_SUBDIR)/binutils && \
99df82b9
PB
30754 $(MAKE) $(FLAGS_TO_PASS) \
30755 CFLAGS="$(STAGE1_CFLAGS)" clean
6a19fd82
PB
30756@endif binutils-bootstrap
30757
99df82b9 30758
ebc58bf8
PB
30759.PHONY: configure-stage1-gas maybe-configure-stage1-gas
30760.PHONY: all-stage1-gas maybe-all-stage1-gas
99df82b9 30761.PHONY: clean-stage1-gas maybe-clean-stage1-gas
ebc58bf8 30762
6a19fd82
PB
30763maybe-configure-stage1-gas:
30764maybe-all-stage1-gas:
99df82b9 30765maybe-clean-stage1-gas:
6a19fd82
PB
30766
30767@if gas-bootstrap
30768maybe-configure-stage1-gas: configure-stage1-gas
ebc58bf8
PB
30769configure-stage1-gas:
30770 @$(MAKE) stage1-start
30771 @[ -f gas/Makefile ] && exit 0 || : ; \
6a19fd82
PB
30772 r=`${PWD_COMMAND}`; export r; \
30773 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30774 $(HOST_EXPORTS) \
30775 echo Configuring stage 1 in gas ; \
7fc2ca22 30776 cd $(HOST_SUBDIR)/gas || exit 1; \
6a19fd82 30777 case $(srcdir) in \
7fc2ca22
PB
30778 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30779 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
30780 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a19fd82 30781 esac; \
7fc2ca22
PB
30782 srcdiroption="--srcdir=$${topdir}/gas"; \
30783 libsrcdir="$$s/gas"; \
6a19fd82
PB
30784 $(SHELL) $${libsrcdir}/configure \
30785 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 30786 --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
6a19fd82
PB
30787
30788maybe-all-stage1-gas: all-stage1-gas
30789all-stage1-gas: configure-stage1-gas
ebc58bf8 30790 @$(MAKE) stage1-start
6a19fd82
PB
30791 @r=`${PWD_COMMAND}`; export r; \
30792 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30793 $(HOST_EXPORTS) \
7fc2ca22 30794 cd $(HOST_SUBDIR)/gas && \
6a19fd82 30795 $(MAKE) $(FLAGS_TO_PASS) \
ebc58bf8 30796 CFLAGS="$(STAGE1_CFLAGS)"
99df82b9
PB
30797
30798maybe-clean-stage1-gas: clean-stage1-gas
30799clean-stage1-gas:
30800 @[ -f gas/Makefile ] || [ -f stage1-gas/Makefile ] \
30801 || exit 0 ; \
30802 [ -f gas/Makefile ] || $(MAKE) stage1-start ; \
7fc2ca22 30803 cd $(HOST_SUBDIR)/gas && \
99df82b9
PB
30804 $(MAKE) $(FLAGS_TO_PASS) \
30805 CFLAGS="$(STAGE1_CFLAGS)" clean
6a19fd82
PB
30806@endif gas-bootstrap
30807
99df82b9 30808
ebc58bf8
PB
30809.PHONY: configure-stage1-gcc maybe-configure-stage1-gcc
30810.PHONY: all-stage1-gcc maybe-all-stage1-gcc
99df82b9 30811.PHONY: clean-stage1-gcc maybe-clean-stage1-gcc
ebc58bf8 30812
6a19fd82
PB
30813maybe-configure-stage1-gcc:
30814maybe-all-stage1-gcc:
99df82b9 30815maybe-clean-stage1-gcc:
6a19fd82
PB
30816
30817@if gcc-bootstrap
30818maybe-configure-stage1-gcc: configure-stage1-gcc
ebc58bf8
PB
30819configure-stage1-gcc:
30820 @$(MAKE) stage1-start
30821 @[ -f gcc/Makefile ] && exit 0 || : ; \
6a19fd82
PB
30822 r=`${PWD_COMMAND}`; export r; \
30823 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30824 $(HOST_EXPORTS) \
30825 echo Configuring stage 1 in gcc ; \
7fc2ca22 30826 cd $(HOST_SUBDIR)/gcc || exit 1; \
6a19fd82 30827 case $(srcdir) in \
7fc2ca22
PB
30828 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30829 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
30830 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a19fd82 30831 esac; \
7fc2ca22
PB
30832 srcdiroption="--srcdir=$${topdir}/gcc"; \
30833 libsrcdir="$$s/gcc"; \
6a19fd82
PB
30834 $(SHELL) $${libsrcdir}/configure \
30835 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 30836 --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
6a19fd82
PB
30837
30838maybe-all-stage1-gcc: all-stage1-gcc
30839all-stage1-gcc: configure-stage1-gcc
ebc58bf8 30840 @$(MAKE) stage1-start
6a19fd82
PB
30841 @r=`${PWD_COMMAND}`; export r; \
30842 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30843 $(HOST_EXPORTS) \
7fc2ca22 30844 cd $(HOST_SUBDIR)/gcc && \
6a19fd82 30845 $(MAKE) $(FLAGS_TO_PASS) \
ebc58bf8 30846 CFLAGS="$(STAGE1_CFLAGS)" $(EXTRA_GCC_FLAGS)
99df82b9
PB
30847
30848maybe-clean-stage1-gcc: clean-stage1-gcc
30849clean-stage1-gcc:
30850 @[ -f gcc/Makefile ] || [ -f stage1-gcc/Makefile ] \
30851 || exit 0 ; \
30852 [ -f gcc/Makefile ] || $(MAKE) stage1-start ; \
7fc2ca22 30853 cd $(HOST_SUBDIR)/gcc && \
99df82b9
PB
30854 $(MAKE) $(FLAGS_TO_PASS) \
30855 CFLAGS="$(STAGE1_CFLAGS)" $(EXTRA_GCC_FLAGS) clean
6a19fd82
PB
30856@endif gcc-bootstrap
30857
99df82b9 30858
ebc58bf8
PB
30859.PHONY: configure-stage1-intl maybe-configure-stage1-intl
30860.PHONY: all-stage1-intl maybe-all-stage1-intl
99df82b9 30861.PHONY: clean-stage1-intl maybe-clean-stage1-intl
ebc58bf8 30862
6a19fd82
PB
30863maybe-configure-stage1-intl:
30864maybe-all-stage1-intl:
99df82b9 30865maybe-clean-stage1-intl:
6a19fd82
PB
30866
30867@if intl-bootstrap
30868maybe-configure-stage1-intl: configure-stage1-intl
ebc58bf8
PB
30869configure-stage1-intl:
30870 @$(MAKE) stage1-start
30871 @[ -f intl/Makefile ] && exit 0 || : ; \
6a19fd82
PB
30872 r=`${PWD_COMMAND}`; export r; \
30873 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30874 $(HOST_EXPORTS) \
30875 echo Configuring stage 1 in intl ; \
7fc2ca22 30876 cd $(HOST_SUBDIR)/intl || exit 1; \
6a19fd82 30877 case $(srcdir) in \
7fc2ca22
PB
30878 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30879 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
30880 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a19fd82 30881 esac; \
7fc2ca22
PB
30882 srcdiroption="--srcdir=$${topdir}/intl"; \
30883 libsrcdir="$$s/intl"; \
6a19fd82
PB
30884 $(SHELL) $${libsrcdir}/configure \
30885 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 30886 --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
6a19fd82
PB
30887
30888maybe-all-stage1-intl: all-stage1-intl
30889all-stage1-intl: configure-stage1-intl
ebc58bf8 30890 @$(MAKE) stage1-start
6a19fd82
PB
30891 @r=`${PWD_COMMAND}`; export r; \
30892 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30893 $(HOST_EXPORTS) \
7fc2ca22 30894 cd $(HOST_SUBDIR)/intl && \
6a19fd82 30895 $(MAKE) $(FLAGS_TO_PASS) \
ebc58bf8 30896 CFLAGS="$(STAGE1_CFLAGS)"
99df82b9
PB
30897
30898maybe-clean-stage1-intl: clean-stage1-intl
30899clean-stage1-intl:
30900 @[ -f intl/Makefile ] || [ -f stage1-intl/Makefile ] \
30901 || exit 0 ; \
30902 [ -f intl/Makefile ] || $(MAKE) stage1-start ; \
7fc2ca22 30903 cd $(HOST_SUBDIR)/intl && \
99df82b9
PB
30904 $(MAKE) $(FLAGS_TO_PASS) \
30905 CFLAGS="$(STAGE1_CFLAGS)" clean
6a19fd82
PB
30906@endif intl-bootstrap
30907
99df82b9 30908
ebc58bf8
PB
30909.PHONY: configure-stage1-ld maybe-configure-stage1-ld
30910.PHONY: all-stage1-ld maybe-all-stage1-ld
99df82b9 30911.PHONY: clean-stage1-ld maybe-clean-stage1-ld
ebc58bf8 30912
6a19fd82
PB
30913maybe-configure-stage1-ld:
30914maybe-all-stage1-ld:
99df82b9 30915maybe-clean-stage1-ld:
6a19fd82
PB
30916
30917@if ld-bootstrap
30918maybe-configure-stage1-ld: configure-stage1-ld
ebc58bf8
PB
30919configure-stage1-ld:
30920 @$(MAKE) stage1-start
30921 @[ -f ld/Makefile ] && exit 0 || : ; \
6a19fd82
PB
30922 r=`${PWD_COMMAND}`; export r; \
30923 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30924 $(HOST_EXPORTS) \
30925 echo Configuring stage 1 in ld ; \
7fc2ca22 30926 cd $(HOST_SUBDIR)/ld || exit 1; \
6a19fd82 30927 case $(srcdir) in \
7fc2ca22
PB
30928 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30929 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
30930 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a19fd82 30931 esac; \
7fc2ca22
PB
30932 srcdiroption="--srcdir=$${topdir}/ld"; \
30933 libsrcdir="$$s/ld"; \
6a19fd82
PB
30934 $(SHELL) $${libsrcdir}/configure \
30935 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 30936 --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
6a19fd82
PB
30937
30938maybe-all-stage1-ld: all-stage1-ld
30939all-stage1-ld: configure-stage1-ld
ebc58bf8 30940 @$(MAKE) stage1-start
6a19fd82
PB
30941 @r=`${PWD_COMMAND}`; export r; \
30942 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30943 $(HOST_EXPORTS) \
7fc2ca22 30944 cd $(HOST_SUBDIR)/ld && \
6a19fd82 30945 $(MAKE) $(FLAGS_TO_PASS) \
ebc58bf8 30946 CFLAGS="$(STAGE1_CFLAGS)"
99df82b9
PB
30947
30948maybe-clean-stage1-ld: clean-stage1-ld
30949clean-stage1-ld:
30950 @[ -f ld/Makefile ] || [ -f stage1-ld/Makefile ] \
30951 || exit 0 ; \
30952 [ -f ld/Makefile ] || $(MAKE) stage1-start ; \
7fc2ca22 30953 cd $(HOST_SUBDIR)/ld && \
99df82b9
PB
30954 $(MAKE) $(FLAGS_TO_PASS) \
30955 CFLAGS="$(STAGE1_CFLAGS)" clean
6a19fd82
PB
30956@endif ld-bootstrap
30957
99df82b9 30958
ebc58bf8
PB
30959.PHONY: configure-stage1-libcpp maybe-configure-stage1-libcpp
30960.PHONY: all-stage1-libcpp maybe-all-stage1-libcpp
99df82b9 30961.PHONY: clean-stage1-libcpp maybe-clean-stage1-libcpp
ebc58bf8 30962
6a19fd82
PB
30963maybe-configure-stage1-libcpp:
30964maybe-all-stage1-libcpp:
99df82b9 30965maybe-clean-stage1-libcpp:
6a19fd82
PB
30966
30967@if libcpp-bootstrap
30968maybe-configure-stage1-libcpp: configure-stage1-libcpp
ebc58bf8
PB
30969configure-stage1-libcpp:
30970 @$(MAKE) stage1-start
30971 @[ -f libcpp/Makefile ] && exit 0 || : ; \
6a19fd82
PB
30972 r=`${PWD_COMMAND}`; export r; \
30973 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30974 $(HOST_EXPORTS) \
30975 echo Configuring stage 1 in libcpp ; \
7fc2ca22 30976 cd $(HOST_SUBDIR)/libcpp || exit 1; \
6a19fd82 30977 case $(srcdir) in \
7fc2ca22
PB
30978 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30979 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
30980 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a19fd82 30981 esac; \
7fc2ca22
PB
30982 srcdiroption="--srcdir=$${topdir}/libcpp"; \
30983 libsrcdir="$$s/libcpp"; \
6a19fd82
PB
30984 $(SHELL) $${libsrcdir}/configure \
30985 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 30986 --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
6a19fd82
PB
30987
30988maybe-all-stage1-libcpp: all-stage1-libcpp
30989all-stage1-libcpp: configure-stage1-libcpp
ebc58bf8 30990 @$(MAKE) stage1-start
6a19fd82
PB
30991 @r=`${PWD_COMMAND}`; export r; \
30992 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30993 $(HOST_EXPORTS) \
7fc2ca22 30994 cd $(HOST_SUBDIR)/libcpp && \
6a19fd82 30995 $(MAKE) $(FLAGS_TO_PASS) \
ebc58bf8 30996 CFLAGS="$(STAGE1_CFLAGS)"
99df82b9
PB
30997
30998maybe-clean-stage1-libcpp: clean-stage1-libcpp
30999clean-stage1-libcpp:
31000 @[ -f libcpp/Makefile ] || [ -f stage1-libcpp/Makefile ] \
31001 || exit 0 ; \
31002 [ -f libcpp/Makefile ] || $(MAKE) stage1-start ; \
7fc2ca22 31003 cd $(HOST_SUBDIR)/libcpp && \
99df82b9
PB
31004 $(MAKE) $(FLAGS_TO_PASS) \
31005 CFLAGS="$(STAGE1_CFLAGS)" clean
6a19fd82
PB
31006@endif libcpp-bootstrap
31007
99df82b9 31008
ebc58bf8
PB
31009.PHONY: configure-stage1-libiberty maybe-configure-stage1-libiberty
31010.PHONY: all-stage1-libiberty maybe-all-stage1-libiberty
99df82b9 31011.PHONY: clean-stage1-libiberty maybe-clean-stage1-libiberty
ebc58bf8 31012
6a19fd82
PB
31013maybe-configure-stage1-libiberty:
31014maybe-all-stage1-libiberty:
99df82b9 31015maybe-clean-stage1-libiberty:
6a19fd82
PB
31016
31017@if libiberty-bootstrap
31018maybe-configure-stage1-libiberty: configure-stage1-libiberty
ebc58bf8
PB
31019configure-stage1-libiberty:
31020 @$(MAKE) stage1-start
31021 @[ -f libiberty/Makefile ] && exit 0 || : ; \
6a19fd82
PB
31022 r=`${PWD_COMMAND}`; export r; \
31023 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31024 $(HOST_EXPORTS) \
31025 echo Configuring stage 1 in libiberty ; \
7fc2ca22 31026 cd $(HOST_SUBDIR)/libiberty || exit 1; \
6a19fd82 31027 case $(srcdir) in \
7fc2ca22
PB
31028 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31029 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
31030 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a19fd82 31031 esac; \
7fc2ca22
PB
31032 srcdiroption="--srcdir=$${topdir}/libiberty"; \
31033 libsrcdir="$$s/libiberty"; \
6a19fd82
PB
31034 $(SHELL) $${libsrcdir}/configure \
31035 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 31036 --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
6a19fd82
PB
31037
31038maybe-all-stage1-libiberty: all-stage1-libiberty
31039all-stage1-libiberty: configure-stage1-libiberty
ebc58bf8 31040 @$(MAKE) stage1-start
6a19fd82
PB
31041 @r=`${PWD_COMMAND}`; export r; \
31042 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31043 $(HOST_EXPORTS) \
7fc2ca22 31044 cd $(HOST_SUBDIR)/libiberty && \
6a19fd82 31045 $(MAKE) $(FLAGS_TO_PASS) \
ebc58bf8 31046 CFLAGS="$(STAGE1_CFLAGS)"
99df82b9
PB
31047
31048maybe-clean-stage1-libiberty: clean-stage1-libiberty
31049clean-stage1-libiberty:
31050 @[ -f libiberty/Makefile ] || [ -f stage1-libiberty/Makefile ] \
31051 || exit 0 ; \
31052 [ -f libiberty/Makefile ] || $(MAKE) stage1-start ; \
7fc2ca22 31053 cd $(HOST_SUBDIR)/libiberty && \
99df82b9
PB
31054 $(MAKE) $(FLAGS_TO_PASS) \
31055 CFLAGS="$(STAGE1_CFLAGS)" clean
6a19fd82
PB
31056@endif libiberty-bootstrap
31057
99df82b9 31058
ebc58bf8
PB
31059.PHONY: configure-stage1-zlib maybe-configure-stage1-zlib
31060.PHONY: all-stage1-zlib maybe-all-stage1-zlib
99df82b9 31061.PHONY: clean-stage1-zlib maybe-clean-stage1-zlib
ebc58bf8 31062
6a19fd82
PB
31063maybe-configure-stage1-zlib:
31064maybe-all-stage1-zlib:
99df82b9 31065maybe-clean-stage1-zlib:
6a19fd82
PB
31066
31067@if zlib-bootstrap
31068maybe-configure-stage1-zlib: configure-stage1-zlib
ebc58bf8
PB
31069configure-stage1-zlib:
31070 @$(MAKE) stage1-start
31071 @[ -f zlib/Makefile ] && exit 0 || : ; \
6a19fd82
PB
31072 r=`${PWD_COMMAND}`; export r; \
31073 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31074 $(HOST_EXPORTS) \
31075 echo Configuring stage 1 in zlib ; \
7fc2ca22 31076 cd $(HOST_SUBDIR)/zlib || exit 1; \
6a19fd82 31077 case $(srcdir) in \
7fc2ca22
PB
31078 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31079 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
31080 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a19fd82 31081 esac; \
7fc2ca22
PB
31082 srcdiroption="--srcdir=$${topdir}/zlib"; \
31083 libsrcdir="$$s/zlib"; \
6a19fd82
PB
31084 $(SHELL) $${libsrcdir}/configure \
31085 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 31086 --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
6a19fd82
PB
31087
31088maybe-all-stage1-zlib: all-stage1-zlib
31089all-stage1-zlib: configure-stage1-zlib
ebc58bf8 31090 @$(MAKE) stage1-start
6a19fd82
PB
31091 @r=`${PWD_COMMAND}`; export r; \
31092 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31093 $(HOST_EXPORTS) \
7fc2ca22 31094 cd $(HOST_SUBDIR)/zlib && \
6a19fd82 31095 $(MAKE) $(FLAGS_TO_PASS) \
ebc58bf8 31096 CFLAGS="$(STAGE1_CFLAGS)"
99df82b9
PB
31097
31098maybe-clean-stage1-zlib: clean-stage1-zlib
31099clean-stage1-zlib:
31100 @[ -f zlib/Makefile ] || [ -f stage1-zlib/Makefile ] \
31101 || exit 0 ; \
31102 [ -f zlib/Makefile ] || $(MAKE) stage1-start ; \
7fc2ca22 31103 cd $(HOST_SUBDIR)/zlib && \
99df82b9
PB
31104 $(MAKE) $(FLAGS_TO_PASS) \
31105 CFLAGS="$(STAGE1_CFLAGS)" clean
6a19fd82
PB
31106@endif zlib-bootstrap
31107
31108
99df82b9 31109
6a19fd82
PB
31110# FIXME: Will not need to be conditional when toplevel bootstrap is the
31111# only possibility, but now it conflicts with no-bootstrap rules
31112@if gcc-bootstrap
31113
31114
31115
31116
99df82b9 31117# Rules to wipe a stage and all the following ones, also used for cleanstrap
6a19fd82 31118
99df82b9 31119.PHONY: distclean-stage1
6a19fd82
PB
31120distclean-stage1::
31121 [ -f stage_current ] && $(MAKE) `cat stage_current`-end || :
ebc58bf8 31122 rm -rf stage1-*
6a19fd82
PB
31123
31124
31125@endif gcc-bootstrap
31126
31127
31128.PHONY: stage2-start stage2-end
31129
31130stage2-start::
ebc58bf8 31131 @[ -f stage_current ] && $(MAKE) `cat stage_current`-end || : ; \
6a19fd82 31132 echo stage2 > stage_current ; \
7fc2ca22
PB
31133 echo stage2 > stage_last; \
31134 $(mkinstalldirs) $(HOST_SUBDIR)
6a19fd82 31135@if bfd
7fc2ca22
PB
31136 @cd $(HOST_SUBDIR); [ -d stage2-bfd ] || \
31137 mkdir stage2-bfd; \
31138 set stage2-bfd bfd ; \
31139 @CREATE_LINK_TO_DIR@ ; \
31140 set stage1-bfd prev-bfd ; \
31141 @CREATE_LINK_TO_DIR@
6a19fd82
PB
31142@endif bfd
31143@if opcodes
7fc2ca22
PB
31144 @cd $(HOST_SUBDIR); [ -d stage2-opcodes ] || \
31145 mkdir stage2-opcodes; \
31146 set stage2-opcodes opcodes ; \
31147 @CREATE_LINK_TO_DIR@ ; \
31148 set stage1-opcodes prev-opcodes ; \
31149 @CREATE_LINK_TO_DIR@
6a19fd82
PB
31150@endif opcodes
31151@if binutils
7fc2ca22
PB
31152 @cd $(HOST_SUBDIR); [ -d stage2-binutils ] || \
31153 mkdir stage2-binutils; \
31154 set stage2-binutils binutils ; \
31155 @CREATE_LINK_TO_DIR@ ; \
31156 set stage1-binutils prev-binutils ; \
31157 @CREATE_LINK_TO_DIR@
6a19fd82
PB
31158@endif binutils
31159@if gas
7fc2ca22
PB
31160 @cd $(HOST_SUBDIR); [ -d stage2-gas ] || \
31161 mkdir stage2-gas; \
31162 set stage2-gas gas ; \
31163 @CREATE_LINK_TO_DIR@ ; \
31164 set stage1-gas prev-gas ; \
31165 @CREATE_LINK_TO_DIR@
6a19fd82
PB
31166@endif gas
31167@if gcc
7fc2ca22
PB
31168 @cd $(HOST_SUBDIR); [ -d stage2-gcc ] || \
31169 mkdir stage2-gcc; \
31170 set stage2-gcc gcc ; \
31171 @CREATE_LINK_TO_DIR@ ; \
31172 set stage1-gcc prev-gcc ; \
31173 @CREATE_LINK_TO_DIR@
6a19fd82
PB
31174@endif gcc
31175@if intl
7fc2ca22
PB
31176 @cd $(HOST_SUBDIR); [ -d stage2-intl ] || \
31177 mkdir stage2-intl; \
31178 set stage2-intl intl ; \
31179 @CREATE_LINK_TO_DIR@ ; \
31180 set stage1-intl prev-intl ; \
31181 @CREATE_LINK_TO_DIR@
6a19fd82
PB
31182@endif intl
31183@if ld
7fc2ca22
PB
31184 @cd $(HOST_SUBDIR); [ -d stage2-ld ] || \
31185 mkdir stage2-ld; \
31186 set stage2-ld ld ; \
31187 @CREATE_LINK_TO_DIR@ ; \
31188 set stage1-ld prev-ld ; \
31189 @CREATE_LINK_TO_DIR@
6a19fd82
PB
31190@endif ld
31191@if libcpp
7fc2ca22
PB
31192 @cd $(HOST_SUBDIR); [ -d stage2-libcpp ] || \
31193 mkdir stage2-libcpp; \
31194 set stage2-libcpp libcpp ; \
31195 @CREATE_LINK_TO_DIR@ ; \
31196 set stage1-libcpp prev-libcpp ; \
31197 @CREATE_LINK_TO_DIR@
6a19fd82 31198@endif libcpp
6a19fd82 31199@if libiberty
7fc2ca22
PB
31200 @cd $(HOST_SUBDIR); [ -d stage2-libiberty ] || \
31201 mkdir stage2-libiberty; \
31202 set stage2-libiberty libiberty ; \
31203 @CREATE_LINK_TO_DIR@ ; \
31204 set stage1-libiberty prev-libiberty ; \
31205 @CREATE_LINK_TO_DIR@
6a19fd82
PB
31206@endif libiberty
31207@if zlib
7fc2ca22
PB
31208 @cd $(HOST_SUBDIR); [ -d stage2-zlib ] || \
31209 mkdir stage2-zlib; \
31210 set stage2-zlib zlib ; \
31211 @CREATE_LINK_TO_DIR@ ; \
31212 set stage1-zlib prev-zlib ; \
31213 @CREATE_LINK_TO_DIR@
6a19fd82
PB
31214@endif zlib
31215
31216stage2-end::
ebc58bf8 31217 @rm -f stage_current
6a19fd82 31218@if bfd
7fc2ca22
PB
31219 @cd $(HOST_SUBDIR); set bfd stage2-bfd ; \
31220 @UNDO_LINK_TO_DIR@ ; \
31221 set prev-bfd stage1-bfd ; \
31222 @UNDO_LINK_TO_DIR@
6a19fd82
PB
31223@endif bfd
31224@if opcodes
7fc2ca22
PB
31225 @cd $(HOST_SUBDIR); set opcodes stage2-opcodes ; \
31226 @UNDO_LINK_TO_DIR@ ; \
31227 set prev-opcodes stage1-opcodes ; \
31228 @UNDO_LINK_TO_DIR@
6a19fd82
PB
31229@endif opcodes
31230@if binutils
7fc2ca22
PB
31231 @cd $(HOST_SUBDIR); set binutils stage2-binutils ; \
31232 @UNDO_LINK_TO_DIR@ ; \
31233 set prev-binutils stage1-binutils ; \
31234 @UNDO_LINK_TO_DIR@
6a19fd82
PB
31235@endif binutils
31236@if gas
7fc2ca22
PB
31237 @cd $(HOST_SUBDIR); set gas stage2-gas ; \
31238 @UNDO_LINK_TO_DIR@ ; \
31239 set prev-gas stage1-gas ; \
31240 @UNDO_LINK_TO_DIR@
6a19fd82
PB
31241@endif gas
31242@if gcc
7fc2ca22
PB
31243 @cd $(HOST_SUBDIR); set gcc stage2-gcc ; \
31244 @UNDO_LINK_TO_DIR@ ; \
31245 set prev-gcc stage1-gcc ; \
31246 @UNDO_LINK_TO_DIR@
6a19fd82
PB
31247@endif gcc
31248@if intl
7fc2ca22
PB
31249 @cd $(HOST_SUBDIR); set intl stage2-intl ; \
31250 @UNDO_LINK_TO_DIR@ ; \
31251 set prev-intl stage1-intl ; \
31252 @UNDO_LINK_TO_DIR@
6a19fd82
PB
31253@endif intl
31254@if ld
7fc2ca22
PB
31255 @cd $(HOST_SUBDIR); set ld stage2-ld ; \
31256 @UNDO_LINK_TO_DIR@ ; \
31257 set prev-ld stage1-ld ; \
31258 @UNDO_LINK_TO_DIR@
6a19fd82
PB
31259@endif ld
31260@if libcpp
7fc2ca22
PB
31261 @cd $(HOST_SUBDIR); set libcpp stage2-libcpp ; \
31262 @UNDO_LINK_TO_DIR@ ; \
31263 set prev-libcpp stage1-libcpp ; \
31264 @UNDO_LINK_TO_DIR@
6a19fd82 31265@endif libcpp
6a19fd82 31266@if libiberty
7fc2ca22
PB
31267 @cd $(HOST_SUBDIR); set libiberty stage2-libiberty ; \
31268 @UNDO_LINK_TO_DIR@ ; \
31269 set prev-libiberty stage1-libiberty ; \
31270 @UNDO_LINK_TO_DIR@
6a19fd82
PB
31271@endif libiberty
31272@if zlib
7fc2ca22
PB
31273 @cd $(HOST_SUBDIR); set zlib stage2-zlib ; \
31274 @UNDO_LINK_TO_DIR@ ; \
31275 set prev-zlib stage1-zlib ; \
31276 @UNDO_LINK_TO_DIR@
6a19fd82
PB
31277@endif zlib
31278
31279# Bubble a bugfix through all the stages up to stage 2. They
31280# are remade, but not reconfigured. The next stage (if any) will not
31281# be reconfigured as well.
31282.PHONY: stage2-bubble
31283stage2-bubble:: stage1-bubble
ebc58bf8
PB
31284 @if test -f stage2-lean || test -f stage1-lean ; then \
31285 echo Skipping rebuild of stage2 ; \
31286 else \
99df82b9 31287 $(MAKE) $(RECURSE_FLAGS_TO_PASS) NOTPARALLEL= all-stage2; \
ebc58bf8 31288 fi
6a19fd82 31289
99df82b9 31290.PHONY: all-stage2 clean-stage2
6a19fd82
PB
31291all-stage2: \
31292 maybe-all-stage2-bfd \
31293 maybe-all-stage2-opcodes \
5350aa8b 31294 maybe-all-stage2-binutils \
6a19fd82
PB
31295 maybe-all-stage2-gas \
31296 maybe-all-stage2-gcc \
31297 maybe-all-stage2-intl \
31298 maybe-all-stage2-ld \
31299 maybe-all-stage2-libcpp \
6a19fd82 31300 maybe-all-stage2-libiberty \
7fc2ca22 31301 maybe-all-stage2-zlib
6a19fd82 31302
99df82b9
PB
31303do-clean: clean-stage2
31304clean-stage2: \
31305 maybe-clean-stage2-bfd \
31306 maybe-clean-stage2-opcodes \
5350aa8b 31307 maybe-clean-stage2-binutils \
99df82b9
PB
31308 maybe-clean-stage2-gas \
31309 maybe-clean-stage2-gcc \
31310 maybe-clean-stage2-intl \
31311 maybe-clean-stage2-ld \
31312 maybe-clean-stage2-libcpp \
99df82b9 31313 maybe-clean-stage2-libiberty \
7fc2ca22 31314 maybe-clean-stage2-zlib
99df82b9 31315
6a19fd82 31316
ebc58bf8
PB
31317.PHONY: configure-stage2-bfd maybe-configure-stage2-bfd
31318.PHONY: all-stage2-bfd maybe-all-stage2-bfd
99df82b9 31319.PHONY: clean-stage2-bfd maybe-clean-stage2-bfd
ebc58bf8 31320
6a19fd82
PB
31321maybe-configure-stage2-bfd:
31322maybe-all-stage2-bfd:
99df82b9 31323maybe-clean-stage2-bfd:
6a19fd82
PB
31324
31325@if bfd-bootstrap
31326maybe-configure-stage2-bfd: configure-stage2-bfd
ebc58bf8
PB
31327configure-stage2-bfd:
31328 @$(MAKE) stage2-start
31329 @[ -f bfd/Makefile ] && exit 0 || : ; \
6a19fd82
PB
31330 r=`${PWD_COMMAND}`; export r; \
31331 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31332 $(STAGE_HOST_EXPORTS) \
31333 echo Configuring stage 2 in bfd ; \
7fc2ca22 31334 cd $(HOST_SUBDIR)/bfd || exit 1; \
6a19fd82 31335 case $(srcdir) in \
7fc2ca22
PB
31336 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31337 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
31338 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a19fd82 31339 esac; \
7fc2ca22
PB
31340 srcdiroption="--srcdir=$${topdir}/bfd"; \
31341 libsrcdir="$$s/bfd"; \
6a19fd82
PB
31342 $(SHELL) $${libsrcdir}/configure \
31343 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 31344 @stage2_werror_flag@
6a19fd82
PB
31345
31346maybe-all-stage2-bfd: all-stage2-bfd
31347all-stage2-bfd: configure-stage2-bfd
ebc58bf8 31348 @$(MAKE) stage2-start
6a19fd82
PB
31349 @r=`${PWD_COMMAND}`; export r; \
31350 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31351 $(STAGE_HOST_EXPORTS) \
7fc2ca22 31352 cd $(HOST_SUBDIR)/bfd && \
6a19fd82
PB
31353 $(MAKE) $(FLAGS_TO_PASS) \
31354 $(POSTSTAGE1_FLAGS_TO_PASS) \
ebc58bf8 31355
99df82b9
PB
31356
31357maybe-clean-stage2-bfd: clean-stage2-bfd
31358clean-stage2-bfd:
31359 @[ -f bfd/Makefile ] || [ -f stage2-bfd/Makefile ] \
31360 || exit 0 ; \
31361 [ -f bfd/Makefile ] || $(MAKE) stage2-start ; \
7fc2ca22 31362 cd $(HOST_SUBDIR)/bfd && \
99df82b9
PB
31363 $(MAKE) $(FLAGS_TO_PASS) \
31364 $(POSTSTAGE1_FLAGS_TO_PASS) \
31365 clean
6a19fd82
PB
31366@endif bfd-bootstrap
31367
99df82b9 31368
ebc58bf8
PB
31369.PHONY: configure-stage2-opcodes maybe-configure-stage2-opcodes
31370.PHONY: all-stage2-opcodes maybe-all-stage2-opcodes
99df82b9 31371.PHONY: clean-stage2-opcodes maybe-clean-stage2-opcodes
ebc58bf8 31372
6a19fd82
PB
31373maybe-configure-stage2-opcodes:
31374maybe-all-stage2-opcodes:
99df82b9 31375maybe-clean-stage2-opcodes:
6a19fd82
PB
31376
31377@if opcodes-bootstrap
31378maybe-configure-stage2-opcodes: configure-stage2-opcodes
ebc58bf8
PB
31379configure-stage2-opcodes:
31380 @$(MAKE) stage2-start
31381 @[ -f opcodes/Makefile ] && exit 0 || : ; \
6a19fd82
PB
31382 r=`${PWD_COMMAND}`; export r; \
31383 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31384 $(STAGE_HOST_EXPORTS) \
31385 echo Configuring stage 2 in opcodes ; \
7fc2ca22 31386 cd $(HOST_SUBDIR)/opcodes || exit 1; \
6a19fd82 31387 case $(srcdir) in \
7fc2ca22
PB
31388 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31389 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
31390 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a19fd82 31391 esac; \
7fc2ca22
PB
31392 srcdiroption="--srcdir=$${topdir}/opcodes"; \
31393 libsrcdir="$$s/opcodes"; \
6a19fd82
PB
31394 $(SHELL) $${libsrcdir}/configure \
31395 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 31396 @stage2_werror_flag@
6a19fd82
PB
31397
31398maybe-all-stage2-opcodes: all-stage2-opcodes
31399all-stage2-opcodes: configure-stage2-opcodes
ebc58bf8 31400 @$(MAKE) stage2-start
6a19fd82
PB
31401 @r=`${PWD_COMMAND}`; export r; \
31402 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31403 $(STAGE_HOST_EXPORTS) \
7fc2ca22 31404 cd $(HOST_SUBDIR)/opcodes && \
6a19fd82
PB
31405 $(MAKE) $(FLAGS_TO_PASS) \
31406 $(POSTSTAGE1_FLAGS_TO_PASS) \
ebc58bf8 31407
99df82b9
PB
31408
31409maybe-clean-stage2-opcodes: clean-stage2-opcodes
31410clean-stage2-opcodes:
31411 @[ -f opcodes/Makefile ] || [ -f stage2-opcodes/Makefile ] \
31412 || exit 0 ; \
31413 [ -f opcodes/Makefile ] || $(MAKE) stage2-start ; \
7fc2ca22 31414 cd $(HOST_SUBDIR)/opcodes && \
99df82b9
PB
31415 $(MAKE) $(FLAGS_TO_PASS) \
31416 $(POSTSTAGE1_FLAGS_TO_PASS) \
31417 clean
6a19fd82
PB
31418@endif opcodes-bootstrap
31419
99df82b9 31420
ebc58bf8
PB
31421.PHONY: configure-stage2-binutils maybe-configure-stage2-binutils
31422.PHONY: all-stage2-binutils maybe-all-stage2-binutils
99df82b9 31423.PHONY: clean-stage2-binutils maybe-clean-stage2-binutils
ebc58bf8 31424
6a19fd82
PB
31425maybe-configure-stage2-binutils:
31426maybe-all-stage2-binutils:
99df82b9 31427maybe-clean-stage2-binutils:
6a19fd82
PB
31428
31429@if binutils-bootstrap
31430maybe-configure-stage2-binutils: configure-stage2-binutils
ebc58bf8
PB
31431configure-stage2-binutils:
31432 @$(MAKE) stage2-start
31433 @[ -f binutils/Makefile ] && exit 0 || : ; \
6a19fd82
PB
31434 r=`${PWD_COMMAND}`; export r; \
31435 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31436 $(STAGE_HOST_EXPORTS) \
31437 echo Configuring stage 2 in binutils ; \
7fc2ca22 31438 cd $(HOST_SUBDIR)/binutils || exit 1; \
6a19fd82 31439 case $(srcdir) in \
7fc2ca22
PB
31440 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31441 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
31442 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a19fd82 31443 esac; \
7fc2ca22
PB
31444 srcdiroption="--srcdir=$${topdir}/binutils"; \
31445 libsrcdir="$$s/binutils"; \
6a19fd82
PB
31446 $(SHELL) $${libsrcdir}/configure \
31447 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 31448 @stage2_werror_flag@
6a19fd82
PB
31449
31450maybe-all-stage2-binutils: all-stage2-binutils
31451all-stage2-binutils: configure-stage2-binutils
ebc58bf8 31452 @$(MAKE) stage2-start
6a19fd82
PB
31453 @r=`${PWD_COMMAND}`; export r; \
31454 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31455 $(STAGE_HOST_EXPORTS) \
7fc2ca22 31456 cd $(HOST_SUBDIR)/binutils && \
6a19fd82
PB
31457 $(MAKE) $(FLAGS_TO_PASS) \
31458 $(POSTSTAGE1_FLAGS_TO_PASS) \
ebc58bf8 31459
99df82b9
PB
31460
31461maybe-clean-stage2-binutils: clean-stage2-binutils
31462clean-stage2-binutils:
31463 @[ -f binutils/Makefile ] || [ -f stage2-binutils/Makefile ] \
31464 || exit 0 ; \
31465 [ -f binutils/Makefile ] || $(MAKE) stage2-start ; \
7fc2ca22 31466 cd $(HOST_SUBDIR)/binutils && \
99df82b9
PB
31467 $(MAKE) $(FLAGS_TO_PASS) \
31468 $(POSTSTAGE1_FLAGS_TO_PASS) \
31469 clean
6a19fd82
PB
31470@endif binutils-bootstrap
31471
99df82b9 31472
ebc58bf8
PB
31473.PHONY: configure-stage2-gas maybe-configure-stage2-gas
31474.PHONY: all-stage2-gas maybe-all-stage2-gas
99df82b9 31475.PHONY: clean-stage2-gas maybe-clean-stage2-gas
ebc58bf8 31476
6a19fd82
PB
31477maybe-configure-stage2-gas:
31478maybe-all-stage2-gas:
99df82b9 31479maybe-clean-stage2-gas:
6a19fd82
PB
31480
31481@if gas-bootstrap
31482maybe-configure-stage2-gas: configure-stage2-gas
ebc58bf8
PB
31483configure-stage2-gas:
31484 @$(MAKE) stage2-start
31485 @[ -f gas/Makefile ] && exit 0 || : ; \
6a19fd82
PB
31486 r=`${PWD_COMMAND}`; export r; \
31487 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31488 $(STAGE_HOST_EXPORTS) \
31489 echo Configuring stage 2 in gas ; \
7fc2ca22 31490 cd $(HOST_SUBDIR)/gas || exit 1; \
6a19fd82 31491 case $(srcdir) in \
7fc2ca22
PB
31492 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31493 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
31494 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a19fd82 31495 esac; \
7fc2ca22
PB
31496 srcdiroption="--srcdir=$${topdir}/gas"; \
31497 libsrcdir="$$s/gas"; \
6a19fd82
PB
31498 $(SHELL) $${libsrcdir}/configure \
31499 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 31500 @stage2_werror_flag@
6a19fd82
PB
31501
31502maybe-all-stage2-gas: all-stage2-gas
31503all-stage2-gas: configure-stage2-gas
ebc58bf8 31504 @$(MAKE) stage2-start
6a19fd82
PB
31505 @r=`${PWD_COMMAND}`; export r; \
31506 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31507 $(STAGE_HOST_EXPORTS) \
7fc2ca22 31508 cd $(HOST_SUBDIR)/gas && \
6a19fd82
PB
31509 $(MAKE) $(FLAGS_TO_PASS) \
31510 $(POSTSTAGE1_FLAGS_TO_PASS) \
ebc58bf8 31511
99df82b9
PB
31512
31513maybe-clean-stage2-gas: clean-stage2-gas
31514clean-stage2-gas:
31515 @[ -f gas/Makefile ] || [ -f stage2-gas/Makefile ] \
31516 || exit 0 ; \
31517 [ -f gas/Makefile ] || $(MAKE) stage2-start ; \
7fc2ca22 31518 cd $(HOST_SUBDIR)/gas && \
99df82b9
PB
31519 $(MAKE) $(FLAGS_TO_PASS) \
31520 $(POSTSTAGE1_FLAGS_TO_PASS) \
31521 clean
6a19fd82
PB
31522@endif gas-bootstrap
31523
99df82b9 31524
ebc58bf8
PB
31525.PHONY: configure-stage2-gcc maybe-configure-stage2-gcc
31526.PHONY: all-stage2-gcc maybe-all-stage2-gcc
99df82b9 31527.PHONY: clean-stage2-gcc maybe-clean-stage2-gcc
ebc58bf8 31528
6a19fd82
PB
31529maybe-configure-stage2-gcc:
31530maybe-all-stage2-gcc:
99df82b9 31531maybe-clean-stage2-gcc:
6a19fd82
PB
31532
31533@if gcc-bootstrap
31534maybe-configure-stage2-gcc: configure-stage2-gcc
ebc58bf8
PB
31535configure-stage2-gcc:
31536 @$(MAKE) stage2-start
31537 @[ -f gcc/Makefile ] && exit 0 || : ; \
6a19fd82
PB
31538 r=`${PWD_COMMAND}`; export r; \
31539 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31540 $(STAGE_HOST_EXPORTS) \
31541 echo Configuring stage 2 in gcc ; \
7fc2ca22 31542 cd $(HOST_SUBDIR)/gcc || exit 1; \
6a19fd82 31543 case $(srcdir) in \
7fc2ca22
PB
31544 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31545 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
31546 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a19fd82 31547 esac; \
7fc2ca22
PB
31548 srcdiroption="--srcdir=$${topdir}/gcc"; \
31549 libsrcdir="$$s/gcc"; \
6a19fd82
PB
31550 $(SHELL) $${libsrcdir}/configure \
31551 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 31552 @stage2_werror_flag@
6a19fd82
PB
31553
31554maybe-all-stage2-gcc: all-stage2-gcc
31555all-stage2-gcc: configure-stage2-gcc
ebc58bf8 31556 @$(MAKE) stage2-start
6a19fd82
PB
31557 @r=`${PWD_COMMAND}`; export r; \
31558 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31559 $(STAGE_HOST_EXPORTS) \
7fc2ca22 31560 cd $(HOST_SUBDIR)/gcc && \
6a19fd82
PB
31561 $(MAKE) $(FLAGS_TO_PASS) \
31562 $(POSTSTAGE1_FLAGS_TO_PASS) \
ebc58bf8 31563 $(EXTRA_GCC_FLAGS)
99df82b9
PB
31564
31565maybe-clean-stage2-gcc: clean-stage2-gcc
31566clean-stage2-gcc:
31567 @[ -f gcc/Makefile ] || [ -f stage2-gcc/Makefile ] \
31568 || exit 0 ; \
31569 [ -f gcc/Makefile ] || $(MAKE) stage2-start ; \
7fc2ca22 31570 cd $(HOST_SUBDIR)/gcc && \
99df82b9
PB
31571 $(MAKE) $(FLAGS_TO_PASS) \
31572 $(POSTSTAGE1_FLAGS_TO_PASS) \
31573 $(EXTRA_GCC_FLAGS) clean
6a19fd82
PB
31574@endif gcc-bootstrap
31575
99df82b9 31576
ebc58bf8
PB
31577.PHONY: configure-stage2-intl maybe-configure-stage2-intl
31578.PHONY: all-stage2-intl maybe-all-stage2-intl
99df82b9 31579.PHONY: clean-stage2-intl maybe-clean-stage2-intl
ebc58bf8 31580
6a19fd82
PB
31581maybe-configure-stage2-intl:
31582maybe-all-stage2-intl:
99df82b9 31583maybe-clean-stage2-intl:
6a19fd82
PB
31584
31585@if intl-bootstrap
31586maybe-configure-stage2-intl: configure-stage2-intl
ebc58bf8
PB
31587configure-stage2-intl:
31588 @$(MAKE) stage2-start
31589 @[ -f intl/Makefile ] && exit 0 || : ; \
6a19fd82
PB
31590 r=`${PWD_COMMAND}`; export r; \
31591 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31592 $(STAGE_HOST_EXPORTS) \
31593 echo Configuring stage 2 in intl ; \
7fc2ca22 31594 cd $(HOST_SUBDIR)/intl || exit 1; \
6a19fd82 31595 case $(srcdir) in \
7fc2ca22
PB
31596 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31597 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
31598 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a19fd82 31599 esac; \
7fc2ca22
PB
31600 srcdiroption="--srcdir=$${topdir}/intl"; \
31601 libsrcdir="$$s/intl"; \
6a19fd82
PB
31602 $(SHELL) $${libsrcdir}/configure \
31603 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 31604 @stage2_werror_flag@
6a19fd82
PB
31605
31606maybe-all-stage2-intl: all-stage2-intl
31607all-stage2-intl: configure-stage2-intl
ebc58bf8 31608 @$(MAKE) stage2-start
6a19fd82
PB
31609 @r=`${PWD_COMMAND}`; export r; \
31610 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31611 $(STAGE_HOST_EXPORTS) \
7fc2ca22 31612 cd $(HOST_SUBDIR)/intl && \
6a19fd82
PB
31613 $(MAKE) $(FLAGS_TO_PASS) \
31614 $(POSTSTAGE1_FLAGS_TO_PASS) \
ebc58bf8 31615
99df82b9
PB
31616
31617maybe-clean-stage2-intl: clean-stage2-intl
31618clean-stage2-intl:
31619 @[ -f intl/Makefile ] || [ -f stage2-intl/Makefile ] \
31620 || exit 0 ; \
31621 [ -f intl/Makefile ] || $(MAKE) stage2-start ; \
7fc2ca22 31622 cd $(HOST_SUBDIR)/intl && \
99df82b9
PB
31623 $(MAKE) $(FLAGS_TO_PASS) \
31624 $(POSTSTAGE1_FLAGS_TO_PASS) \
31625 clean
6a19fd82
PB
31626@endif intl-bootstrap
31627
99df82b9 31628
ebc58bf8
PB
31629.PHONY: configure-stage2-ld maybe-configure-stage2-ld
31630.PHONY: all-stage2-ld maybe-all-stage2-ld
99df82b9 31631.PHONY: clean-stage2-ld maybe-clean-stage2-ld
ebc58bf8 31632
6a19fd82
PB
31633maybe-configure-stage2-ld:
31634maybe-all-stage2-ld:
99df82b9 31635maybe-clean-stage2-ld:
6a19fd82
PB
31636
31637@if ld-bootstrap
31638maybe-configure-stage2-ld: configure-stage2-ld
ebc58bf8
PB
31639configure-stage2-ld:
31640 @$(MAKE) stage2-start
31641 @[ -f ld/Makefile ] && exit 0 || : ; \
6a19fd82
PB
31642 r=`${PWD_COMMAND}`; export r; \
31643 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31644 $(STAGE_HOST_EXPORTS) \
31645 echo Configuring stage 2 in ld ; \
7fc2ca22 31646 cd $(HOST_SUBDIR)/ld || exit 1; \
6a19fd82 31647 case $(srcdir) in \
7fc2ca22
PB
31648 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31649 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
31650 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a19fd82 31651 esac; \
7fc2ca22
PB
31652 srcdiroption="--srcdir=$${topdir}/ld"; \
31653 libsrcdir="$$s/ld"; \
6a19fd82
PB
31654 $(SHELL) $${libsrcdir}/configure \
31655 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 31656 @stage2_werror_flag@
6a19fd82
PB
31657
31658maybe-all-stage2-ld: all-stage2-ld
31659all-stage2-ld: configure-stage2-ld
ebc58bf8 31660 @$(MAKE) stage2-start
6a19fd82
PB
31661 @r=`${PWD_COMMAND}`; export r; \
31662 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31663 $(STAGE_HOST_EXPORTS) \
7fc2ca22 31664 cd $(HOST_SUBDIR)/ld && \
6a19fd82
PB
31665 $(MAKE) $(FLAGS_TO_PASS) \
31666 $(POSTSTAGE1_FLAGS_TO_PASS) \
ebc58bf8 31667
99df82b9
PB
31668
31669maybe-clean-stage2-ld: clean-stage2-ld
31670clean-stage2-ld:
31671 @[ -f ld/Makefile ] || [ -f stage2-ld/Makefile ] \
31672 || exit 0 ; \
31673 [ -f ld/Makefile ] || $(MAKE) stage2-start ; \
7fc2ca22 31674 cd $(HOST_SUBDIR)/ld && \
99df82b9
PB
31675 $(MAKE) $(FLAGS_TO_PASS) \
31676 $(POSTSTAGE1_FLAGS_TO_PASS) \
31677 clean
6a19fd82
PB
31678@endif ld-bootstrap
31679
99df82b9 31680
ebc58bf8
PB
31681.PHONY: configure-stage2-libcpp maybe-configure-stage2-libcpp
31682.PHONY: all-stage2-libcpp maybe-all-stage2-libcpp
99df82b9 31683.PHONY: clean-stage2-libcpp maybe-clean-stage2-libcpp
ebc58bf8 31684
6a19fd82
PB
31685maybe-configure-stage2-libcpp:
31686maybe-all-stage2-libcpp:
99df82b9 31687maybe-clean-stage2-libcpp:
6a19fd82
PB
31688
31689@if libcpp-bootstrap
31690maybe-configure-stage2-libcpp: configure-stage2-libcpp
ebc58bf8
PB
31691configure-stage2-libcpp:
31692 @$(MAKE) stage2-start
31693 @[ -f libcpp/Makefile ] && exit 0 || : ; \
6a19fd82
PB
31694 r=`${PWD_COMMAND}`; export r; \
31695 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31696 $(STAGE_HOST_EXPORTS) \
31697 echo Configuring stage 2 in libcpp ; \
7fc2ca22 31698 cd $(HOST_SUBDIR)/libcpp || exit 1; \
6a19fd82 31699 case $(srcdir) in \
7fc2ca22
PB
31700 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31701 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
31702 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a19fd82 31703 esac; \
7fc2ca22
PB
31704 srcdiroption="--srcdir=$${topdir}/libcpp"; \
31705 libsrcdir="$$s/libcpp"; \
6a19fd82
PB
31706 $(SHELL) $${libsrcdir}/configure \
31707 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 31708 @stage2_werror_flag@
6a19fd82
PB
31709
31710maybe-all-stage2-libcpp: all-stage2-libcpp
31711all-stage2-libcpp: configure-stage2-libcpp
ebc58bf8 31712 @$(MAKE) stage2-start
6a19fd82
PB
31713 @r=`${PWD_COMMAND}`; export r; \
31714 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31715 $(STAGE_HOST_EXPORTS) \
7fc2ca22 31716 cd $(HOST_SUBDIR)/libcpp && \
6a19fd82
PB
31717 $(MAKE) $(FLAGS_TO_PASS) \
31718 $(POSTSTAGE1_FLAGS_TO_PASS) \
ebc58bf8 31719
99df82b9
PB
31720
31721maybe-clean-stage2-libcpp: clean-stage2-libcpp
31722clean-stage2-libcpp:
31723 @[ -f libcpp/Makefile ] || [ -f stage2-libcpp/Makefile ] \
31724 || exit 0 ; \
31725 [ -f libcpp/Makefile ] || $(MAKE) stage2-start ; \
7fc2ca22 31726 cd $(HOST_SUBDIR)/libcpp && \
99df82b9
PB
31727 $(MAKE) $(FLAGS_TO_PASS) \
31728 $(POSTSTAGE1_FLAGS_TO_PASS) \
31729 clean
6a19fd82
PB
31730@endif libcpp-bootstrap
31731
99df82b9 31732
ebc58bf8
PB
31733.PHONY: configure-stage2-libiberty maybe-configure-stage2-libiberty
31734.PHONY: all-stage2-libiberty maybe-all-stage2-libiberty
99df82b9 31735.PHONY: clean-stage2-libiberty maybe-clean-stage2-libiberty
ebc58bf8 31736
6a19fd82
PB
31737maybe-configure-stage2-libiberty:
31738maybe-all-stage2-libiberty:
99df82b9 31739maybe-clean-stage2-libiberty:
6a19fd82
PB
31740
31741@if libiberty-bootstrap
31742maybe-configure-stage2-libiberty: configure-stage2-libiberty
ebc58bf8
PB
31743configure-stage2-libiberty:
31744 @$(MAKE) stage2-start
31745 @[ -f libiberty/Makefile ] && exit 0 || : ; \
6a19fd82
PB
31746 r=`${PWD_COMMAND}`; export r; \
31747 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31748 $(STAGE_HOST_EXPORTS) \
31749 echo Configuring stage 2 in libiberty ; \
7fc2ca22 31750 cd $(HOST_SUBDIR)/libiberty || exit 1; \
6a19fd82 31751 case $(srcdir) in \
7fc2ca22
PB
31752 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31753 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
31754 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a19fd82 31755 esac; \
7fc2ca22
PB
31756 srcdiroption="--srcdir=$${topdir}/libiberty"; \
31757 libsrcdir="$$s/libiberty"; \
6a19fd82
PB
31758 $(SHELL) $${libsrcdir}/configure \
31759 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 31760 @stage2_werror_flag@
6a19fd82
PB
31761
31762maybe-all-stage2-libiberty: all-stage2-libiberty
31763all-stage2-libiberty: configure-stage2-libiberty
ebc58bf8 31764 @$(MAKE) stage2-start
6a19fd82
PB
31765 @r=`${PWD_COMMAND}`; export r; \
31766 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31767 $(STAGE_HOST_EXPORTS) \
7fc2ca22 31768 cd $(HOST_SUBDIR)/libiberty && \
6a19fd82
PB
31769 $(MAKE) $(FLAGS_TO_PASS) \
31770 $(POSTSTAGE1_FLAGS_TO_PASS) \
ebc58bf8 31771
99df82b9
PB
31772
31773maybe-clean-stage2-libiberty: clean-stage2-libiberty
31774clean-stage2-libiberty:
31775 @[ -f libiberty/Makefile ] || [ -f stage2-libiberty/Makefile ] \
31776 || exit 0 ; \
31777 [ -f libiberty/Makefile ] || $(MAKE) stage2-start ; \
7fc2ca22 31778 cd $(HOST_SUBDIR)/libiberty && \
99df82b9
PB
31779 $(MAKE) $(FLAGS_TO_PASS) \
31780 $(POSTSTAGE1_FLAGS_TO_PASS) \
31781 clean
6a19fd82
PB
31782@endif libiberty-bootstrap
31783
99df82b9 31784
ebc58bf8
PB
31785.PHONY: configure-stage2-zlib maybe-configure-stage2-zlib
31786.PHONY: all-stage2-zlib maybe-all-stage2-zlib
99df82b9 31787.PHONY: clean-stage2-zlib maybe-clean-stage2-zlib
ebc58bf8 31788
6a19fd82
PB
31789maybe-configure-stage2-zlib:
31790maybe-all-stage2-zlib:
99df82b9 31791maybe-clean-stage2-zlib:
6a19fd82
PB
31792
31793@if zlib-bootstrap
31794maybe-configure-stage2-zlib: configure-stage2-zlib
ebc58bf8
PB
31795configure-stage2-zlib:
31796 @$(MAKE) stage2-start
31797 @[ -f zlib/Makefile ] && exit 0 || : ; \
6a19fd82
PB
31798 r=`${PWD_COMMAND}`; export r; \
31799 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31800 $(STAGE_HOST_EXPORTS) \
31801 echo Configuring stage 2 in zlib ; \
7fc2ca22 31802 cd $(HOST_SUBDIR)/zlib || exit 1; \
6a19fd82 31803 case $(srcdir) in \
7fc2ca22
PB
31804 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31805 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
31806 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a19fd82 31807 esac; \
7fc2ca22
PB
31808 srcdiroption="--srcdir=$${topdir}/zlib"; \
31809 libsrcdir="$$s/zlib"; \
6a19fd82
PB
31810 $(SHELL) $${libsrcdir}/configure \
31811 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 31812 @stage2_werror_flag@
6a19fd82
PB
31813
31814maybe-all-stage2-zlib: all-stage2-zlib
31815all-stage2-zlib: configure-stage2-zlib
ebc58bf8 31816 @$(MAKE) stage2-start
6a19fd82
PB
31817 @r=`${PWD_COMMAND}`; export r; \
31818 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31819 $(STAGE_HOST_EXPORTS) \
7fc2ca22 31820 cd $(HOST_SUBDIR)/zlib && \
6a19fd82
PB
31821 $(MAKE) $(FLAGS_TO_PASS) \
31822 $(POSTSTAGE1_FLAGS_TO_PASS) \
ebc58bf8 31823
99df82b9
PB
31824
31825maybe-clean-stage2-zlib: clean-stage2-zlib
31826clean-stage2-zlib:
31827 @[ -f zlib/Makefile ] || [ -f stage2-zlib/Makefile ] \
31828 || exit 0 ; \
31829 [ -f zlib/Makefile ] || $(MAKE) stage2-start ; \
7fc2ca22 31830 cd $(HOST_SUBDIR)/zlib && \
99df82b9
PB
31831 $(MAKE) $(FLAGS_TO_PASS) \
31832 $(POSTSTAGE1_FLAGS_TO_PASS) \
31833 clean
6a19fd82
PB
31834@endif zlib-bootstrap
31835
31836
99df82b9 31837
6a19fd82
PB
31838# FIXME: Will not need to be conditional when toplevel bootstrap is the
31839# only possibility, but now it conflicts with no-bootstrap rules
31840@if gcc-bootstrap
31841
31842
31843
31844.PHONY: bootstrap2
31845bootstrap2: stage2-bubble all
31846
31847
99df82b9 31848# Rules to wipe a stage and all the following ones, also used for cleanstrap
6a19fd82 31849distclean-stage1:: distclean-stage2
99df82b9 31850.PHONY: distclean-stage2
6a19fd82
PB
31851distclean-stage2::
31852 [ -f stage_current ] && $(MAKE) `cat stage_current`-end || :
ebc58bf8 31853 rm -rf stage2-*
6a19fd82
PB
31854
31855
31856@endif gcc-bootstrap
31857
31858
31859.PHONY: stage3-start stage3-end
31860
31861stage3-start::
ebc58bf8 31862 @[ -f stage_current ] && $(MAKE) `cat stage_current`-end || : ; \
6a19fd82 31863 echo stage3 > stage_current ; \
7fc2ca22
PB
31864 echo stage3 > stage_last; \
31865 $(mkinstalldirs) $(HOST_SUBDIR)
6a19fd82 31866@if bfd
7fc2ca22
PB
31867 @cd $(HOST_SUBDIR); [ -d stage3-bfd ] || \
31868 mkdir stage3-bfd; \
31869 set stage3-bfd bfd ; \
31870 @CREATE_LINK_TO_DIR@ ; \
31871 set stage2-bfd prev-bfd ; \
31872 @CREATE_LINK_TO_DIR@
6a19fd82
PB
31873@endif bfd
31874@if opcodes
7fc2ca22
PB
31875 @cd $(HOST_SUBDIR); [ -d stage3-opcodes ] || \
31876 mkdir stage3-opcodes; \
31877 set stage3-opcodes opcodes ; \
31878 @CREATE_LINK_TO_DIR@ ; \
31879 set stage2-opcodes prev-opcodes ; \
31880 @CREATE_LINK_TO_DIR@
6a19fd82
PB
31881@endif opcodes
31882@if binutils
7fc2ca22
PB
31883 @cd $(HOST_SUBDIR); [ -d stage3-binutils ] || \
31884 mkdir stage3-binutils; \
31885 set stage3-binutils binutils ; \
31886 @CREATE_LINK_TO_DIR@ ; \
31887 set stage2-binutils prev-binutils ; \
31888 @CREATE_LINK_TO_DIR@
6a19fd82
PB
31889@endif binutils
31890@if gas
7fc2ca22
PB
31891 @cd $(HOST_SUBDIR); [ -d stage3-gas ] || \
31892 mkdir stage3-gas; \
31893 set stage3-gas gas ; \
31894 @CREATE_LINK_TO_DIR@ ; \
31895 set stage2-gas prev-gas ; \
31896 @CREATE_LINK_TO_DIR@
6a19fd82
PB
31897@endif gas
31898@if gcc
7fc2ca22
PB
31899 @cd $(HOST_SUBDIR); [ -d stage3-gcc ] || \
31900 mkdir stage3-gcc; \
31901 set stage3-gcc gcc ; \
31902 @CREATE_LINK_TO_DIR@ ; \
31903 set stage2-gcc prev-gcc ; \
31904 @CREATE_LINK_TO_DIR@
6a19fd82
PB
31905@endif gcc
31906@if intl
7fc2ca22
PB
31907 @cd $(HOST_SUBDIR); [ -d stage3-intl ] || \
31908 mkdir stage3-intl; \
31909 set stage3-intl intl ; \
31910 @CREATE_LINK_TO_DIR@ ; \
31911 set stage2-intl prev-intl ; \
31912 @CREATE_LINK_TO_DIR@
6a19fd82
PB
31913@endif intl
31914@if ld
7fc2ca22
PB
31915 @cd $(HOST_SUBDIR); [ -d stage3-ld ] || \
31916 mkdir stage3-ld; \
31917 set stage3-ld ld ; \
31918 @CREATE_LINK_TO_DIR@ ; \
31919 set stage2-ld prev-ld ; \
31920 @CREATE_LINK_TO_DIR@
6a19fd82
PB
31921@endif ld
31922@if libcpp
7fc2ca22
PB
31923 @cd $(HOST_SUBDIR); [ -d stage3-libcpp ] || \
31924 mkdir stage3-libcpp; \
31925 set stage3-libcpp libcpp ; \
31926 @CREATE_LINK_TO_DIR@ ; \
31927 set stage2-libcpp prev-libcpp ; \
31928 @CREATE_LINK_TO_DIR@
6a19fd82 31929@endif libcpp
6a19fd82 31930@if libiberty
7fc2ca22
PB
31931 @cd $(HOST_SUBDIR); [ -d stage3-libiberty ] || \
31932 mkdir stage3-libiberty; \
31933 set stage3-libiberty libiberty ; \
31934 @CREATE_LINK_TO_DIR@ ; \
31935 set stage2-libiberty prev-libiberty ; \
31936 @CREATE_LINK_TO_DIR@
6a19fd82
PB
31937@endif libiberty
31938@if zlib
7fc2ca22
PB
31939 @cd $(HOST_SUBDIR); [ -d stage3-zlib ] || \
31940 mkdir stage3-zlib; \
31941 set stage3-zlib zlib ; \
31942 @CREATE_LINK_TO_DIR@ ; \
31943 set stage2-zlib prev-zlib ; \
31944 @CREATE_LINK_TO_DIR@
6a19fd82
PB
31945@endif zlib
31946
31947stage3-end::
ebc58bf8 31948 @rm -f stage_current
6a19fd82 31949@if bfd
7fc2ca22
PB
31950 @cd $(HOST_SUBDIR); set bfd stage3-bfd ; \
31951 @UNDO_LINK_TO_DIR@ ; \
31952 set prev-bfd stage2-bfd ; \
31953 @UNDO_LINK_TO_DIR@
6a19fd82
PB
31954@endif bfd
31955@if opcodes
7fc2ca22
PB
31956 @cd $(HOST_SUBDIR); set opcodes stage3-opcodes ; \
31957 @UNDO_LINK_TO_DIR@ ; \
31958 set prev-opcodes stage2-opcodes ; \
31959 @UNDO_LINK_TO_DIR@
6a19fd82
PB
31960@endif opcodes
31961@if binutils
7fc2ca22
PB
31962 @cd $(HOST_SUBDIR); set binutils stage3-binutils ; \
31963 @UNDO_LINK_TO_DIR@ ; \
31964 set prev-binutils stage2-binutils ; \
31965 @UNDO_LINK_TO_DIR@
6a19fd82
PB
31966@endif binutils
31967@if gas
7fc2ca22
PB
31968 @cd $(HOST_SUBDIR); set gas stage3-gas ; \
31969 @UNDO_LINK_TO_DIR@ ; \
31970 set prev-gas stage2-gas ; \
31971 @UNDO_LINK_TO_DIR@
6a19fd82
PB
31972@endif gas
31973@if gcc
7fc2ca22
PB
31974 @cd $(HOST_SUBDIR); set gcc stage3-gcc ; \
31975 @UNDO_LINK_TO_DIR@ ; \
31976 set prev-gcc stage2-gcc ; \
31977 @UNDO_LINK_TO_DIR@
6a19fd82
PB
31978@endif gcc
31979@if intl
7fc2ca22
PB
31980 @cd $(HOST_SUBDIR); set intl stage3-intl ; \
31981 @UNDO_LINK_TO_DIR@ ; \
31982 set prev-intl stage2-intl ; \
31983 @UNDO_LINK_TO_DIR@
6a19fd82
PB
31984@endif intl
31985@if ld
7fc2ca22
PB
31986 @cd $(HOST_SUBDIR); set ld stage3-ld ; \
31987 @UNDO_LINK_TO_DIR@ ; \
31988 set prev-ld stage2-ld ; \
31989 @UNDO_LINK_TO_DIR@
6a19fd82
PB
31990@endif ld
31991@if libcpp
7fc2ca22
PB
31992 @cd $(HOST_SUBDIR); set libcpp stage3-libcpp ; \
31993 @UNDO_LINK_TO_DIR@ ; \
31994 set prev-libcpp stage2-libcpp ; \
31995 @UNDO_LINK_TO_DIR@
6a19fd82 31996@endif libcpp
6a19fd82 31997@if libiberty
7fc2ca22
PB
31998 @cd $(HOST_SUBDIR); set libiberty stage3-libiberty ; \
31999 @UNDO_LINK_TO_DIR@ ; \
32000 set prev-libiberty stage2-libiberty ; \
32001 @UNDO_LINK_TO_DIR@
6a19fd82
PB
32002@endif libiberty
32003@if zlib
7fc2ca22
PB
32004 @cd $(HOST_SUBDIR); set zlib stage3-zlib ; \
32005 @UNDO_LINK_TO_DIR@ ; \
32006 set prev-zlib stage2-zlib ; \
32007 @UNDO_LINK_TO_DIR@
6a19fd82
PB
32008@endif zlib
32009
32010# Bubble a bugfix through all the stages up to stage 3. They
32011# are remade, but not reconfigured. The next stage (if any) will not
32012# be reconfigured as well.
32013.PHONY: stage3-bubble
32014stage3-bubble:: stage2-bubble
ebc58bf8
PB
32015 @bootstrap_lean@-rm -rf stage1-* ; $(STAMP) stage1-lean
32016 @if test -f stage3-lean || test -f stage2-lean ; then \
32017 echo Skipping rebuild of stage3 ; \
32018 else \
99df82b9 32019 $(MAKE) $(RECURSE_FLAGS_TO_PASS) NOTPARALLEL= all-stage3; \
ebc58bf8 32020 fi
6a19fd82 32021
99df82b9 32022.PHONY: all-stage3 clean-stage3
6a19fd82
PB
32023all-stage3: \
32024 maybe-all-stage3-bfd \
32025 maybe-all-stage3-opcodes \
5350aa8b 32026 maybe-all-stage3-binutils \
6a19fd82
PB
32027 maybe-all-stage3-gas \
32028 maybe-all-stage3-gcc \
32029 maybe-all-stage3-intl \
32030 maybe-all-stage3-ld \
32031 maybe-all-stage3-libcpp \
6a19fd82 32032 maybe-all-stage3-libiberty \
7fc2ca22 32033 maybe-all-stage3-zlib
6a19fd82 32034
99df82b9
PB
32035do-clean: clean-stage3
32036clean-stage3: \
32037 maybe-clean-stage3-bfd \
32038 maybe-clean-stage3-opcodes \
5350aa8b 32039 maybe-clean-stage3-binutils \
99df82b9
PB
32040 maybe-clean-stage3-gas \
32041 maybe-clean-stage3-gcc \
32042 maybe-clean-stage3-intl \
32043 maybe-clean-stage3-ld \
32044 maybe-clean-stage3-libcpp \
99df82b9 32045 maybe-clean-stage3-libiberty \
7fc2ca22 32046 maybe-clean-stage3-zlib
99df82b9 32047
6a19fd82 32048
ebc58bf8
PB
32049.PHONY: configure-stage3-bfd maybe-configure-stage3-bfd
32050.PHONY: all-stage3-bfd maybe-all-stage3-bfd
99df82b9 32051.PHONY: clean-stage3-bfd maybe-clean-stage3-bfd
ebc58bf8 32052
6a19fd82
PB
32053maybe-configure-stage3-bfd:
32054maybe-all-stage3-bfd:
99df82b9 32055maybe-clean-stage3-bfd:
6a19fd82
PB
32056
32057@if bfd-bootstrap
32058maybe-configure-stage3-bfd: configure-stage3-bfd
ebc58bf8
PB
32059configure-stage3-bfd:
32060 @$(MAKE) stage3-start
32061 @[ -f bfd/Makefile ] && exit 0 || : ; \
6a19fd82
PB
32062 r=`${PWD_COMMAND}`; export r; \
32063 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32064 $(STAGE_HOST_EXPORTS) \
32065 echo Configuring stage 3 in bfd ; \
7fc2ca22 32066 cd $(HOST_SUBDIR)/bfd || exit 1; \
6a19fd82 32067 case $(srcdir) in \
7fc2ca22
PB
32068 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32069 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
32070 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a19fd82 32071 esac; \
7fc2ca22
PB
32072 srcdiroption="--srcdir=$${topdir}/bfd"; \
32073 libsrcdir="$$s/bfd"; \
6a19fd82
PB
32074 $(SHELL) $${libsrcdir}/configure \
32075 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 32076 @stage2_werror_flag@
6a19fd82
PB
32077
32078maybe-all-stage3-bfd: all-stage3-bfd
32079all-stage3-bfd: configure-stage3-bfd
ebc58bf8 32080 @$(MAKE) stage3-start
6a19fd82
PB
32081 @r=`${PWD_COMMAND}`; export r; \
32082 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32083 $(STAGE_HOST_EXPORTS) \
7fc2ca22 32084 cd $(HOST_SUBDIR)/bfd && \
6a19fd82
PB
32085 $(MAKE) $(FLAGS_TO_PASS) \
32086 $(POSTSTAGE1_FLAGS_TO_PASS) \
ebc58bf8 32087
99df82b9
PB
32088
32089maybe-clean-stage3-bfd: clean-stage3-bfd
32090clean-stage3-bfd:
32091 @[ -f bfd/Makefile ] || [ -f stage3-bfd/Makefile ] \
32092 || exit 0 ; \
32093 [ -f bfd/Makefile ] || $(MAKE) stage3-start ; \
7fc2ca22 32094 cd $(HOST_SUBDIR)/bfd && \
99df82b9
PB
32095 $(MAKE) $(FLAGS_TO_PASS) \
32096 $(POSTSTAGE1_FLAGS_TO_PASS) \
32097 clean
6a19fd82
PB
32098@endif bfd-bootstrap
32099
99df82b9 32100
ebc58bf8
PB
32101.PHONY: configure-stage3-opcodes maybe-configure-stage3-opcodes
32102.PHONY: all-stage3-opcodes maybe-all-stage3-opcodes
99df82b9 32103.PHONY: clean-stage3-opcodes maybe-clean-stage3-opcodes
ebc58bf8 32104
6a19fd82
PB
32105maybe-configure-stage3-opcodes:
32106maybe-all-stage3-opcodes:
99df82b9 32107maybe-clean-stage3-opcodes:
6a19fd82
PB
32108
32109@if opcodes-bootstrap
32110maybe-configure-stage3-opcodes: configure-stage3-opcodes
ebc58bf8
PB
32111configure-stage3-opcodes:
32112 @$(MAKE) stage3-start
32113 @[ -f opcodes/Makefile ] && exit 0 || : ; \
6a19fd82
PB
32114 r=`${PWD_COMMAND}`; export r; \
32115 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32116 $(STAGE_HOST_EXPORTS) \
32117 echo Configuring stage 3 in opcodes ; \
7fc2ca22 32118 cd $(HOST_SUBDIR)/opcodes || exit 1; \
6a19fd82 32119 case $(srcdir) in \
7fc2ca22
PB
32120 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32121 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
32122 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a19fd82 32123 esac; \
7fc2ca22
PB
32124 srcdiroption="--srcdir=$${topdir}/opcodes"; \
32125 libsrcdir="$$s/opcodes"; \
6a19fd82
PB
32126 $(SHELL) $${libsrcdir}/configure \
32127 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 32128 @stage2_werror_flag@
6a19fd82
PB
32129
32130maybe-all-stage3-opcodes: all-stage3-opcodes
32131all-stage3-opcodes: configure-stage3-opcodes
ebc58bf8 32132 @$(MAKE) stage3-start
6a19fd82
PB
32133 @r=`${PWD_COMMAND}`; export r; \
32134 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32135 $(STAGE_HOST_EXPORTS) \
7fc2ca22 32136 cd $(HOST_SUBDIR)/opcodes && \
6a19fd82
PB
32137 $(MAKE) $(FLAGS_TO_PASS) \
32138 $(POSTSTAGE1_FLAGS_TO_PASS) \
ebc58bf8 32139
99df82b9
PB
32140
32141maybe-clean-stage3-opcodes: clean-stage3-opcodes
32142clean-stage3-opcodes:
32143 @[ -f opcodes/Makefile ] || [ -f stage3-opcodes/Makefile ] \
32144 || exit 0 ; \
32145 [ -f opcodes/Makefile ] || $(MAKE) stage3-start ; \
7fc2ca22 32146 cd $(HOST_SUBDIR)/opcodes && \
99df82b9
PB
32147 $(MAKE) $(FLAGS_TO_PASS) \
32148 $(POSTSTAGE1_FLAGS_TO_PASS) \
32149 clean
6a19fd82
PB
32150@endif opcodes-bootstrap
32151
99df82b9 32152
ebc58bf8
PB
32153.PHONY: configure-stage3-binutils maybe-configure-stage3-binutils
32154.PHONY: all-stage3-binutils maybe-all-stage3-binutils
99df82b9 32155.PHONY: clean-stage3-binutils maybe-clean-stage3-binutils
ebc58bf8 32156
6a19fd82
PB
32157maybe-configure-stage3-binutils:
32158maybe-all-stage3-binutils:
99df82b9 32159maybe-clean-stage3-binutils:
6a19fd82
PB
32160
32161@if binutils-bootstrap
32162maybe-configure-stage3-binutils: configure-stage3-binutils
ebc58bf8
PB
32163configure-stage3-binutils:
32164 @$(MAKE) stage3-start
32165 @[ -f binutils/Makefile ] && exit 0 || : ; \
6a19fd82
PB
32166 r=`${PWD_COMMAND}`; export r; \
32167 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32168 $(STAGE_HOST_EXPORTS) \
32169 echo Configuring stage 3 in binutils ; \
7fc2ca22 32170 cd $(HOST_SUBDIR)/binutils || exit 1; \
6a19fd82 32171 case $(srcdir) in \
7fc2ca22
PB
32172 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32173 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
32174 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a19fd82 32175 esac; \
7fc2ca22
PB
32176 srcdiroption="--srcdir=$${topdir}/binutils"; \
32177 libsrcdir="$$s/binutils"; \
6a19fd82
PB
32178 $(SHELL) $${libsrcdir}/configure \
32179 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 32180 @stage2_werror_flag@
6a19fd82
PB
32181
32182maybe-all-stage3-binutils: all-stage3-binutils
32183all-stage3-binutils: configure-stage3-binutils
ebc58bf8 32184 @$(MAKE) stage3-start
6a19fd82
PB
32185 @r=`${PWD_COMMAND}`; export r; \
32186 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32187 $(STAGE_HOST_EXPORTS) \
7fc2ca22 32188 cd $(HOST_SUBDIR)/binutils && \
6a19fd82
PB
32189 $(MAKE) $(FLAGS_TO_PASS) \
32190 $(POSTSTAGE1_FLAGS_TO_PASS) \
ebc58bf8 32191
99df82b9
PB
32192
32193maybe-clean-stage3-binutils: clean-stage3-binutils
32194clean-stage3-binutils:
32195 @[ -f binutils/Makefile ] || [ -f stage3-binutils/Makefile ] \
32196 || exit 0 ; \
32197 [ -f binutils/Makefile ] || $(MAKE) stage3-start ; \
7fc2ca22 32198 cd $(HOST_SUBDIR)/binutils && \
99df82b9
PB
32199 $(MAKE) $(FLAGS_TO_PASS) \
32200 $(POSTSTAGE1_FLAGS_TO_PASS) \
32201 clean
6a19fd82
PB
32202@endif binutils-bootstrap
32203
99df82b9 32204
ebc58bf8
PB
32205.PHONY: configure-stage3-gas maybe-configure-stage3-gas
32206.PHONY: all-stage3-gas maybe-all-stage3-gas
99df82b9 32207.PHONY: clean-stage3-gas maybe-clean-stage3-gas
ebc58bf8 32208
6a19fd82
PB
32209maybe-configure-stage3-gas:
32210maybe-all-stage3-gas:
99df82b9 32211maybe-clean-stage3-gas:
6a19fd82
PB
32212
32213@if gas-bootstrap
32214maybe-configure-stage3-gas: configure-stage3-gas
ebc58bf8
PB
32215configure-stage3-gas:
32216 @$(MAKE) stage3-start
32217 @[ -f gas/Makefile ] && exit 0 || : ; \
6a19fd82
PB
32218 r=`${PWD_COMMAND}`; export r; \
32219 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32220 $(STAGE_HOST_EXPORTS) \
32221 echo Configuring stage 3 in gas ; \
7fc2ca22 32222 cd $(HOST_SUBDIR)/gas || exit 1; \
6a19fd82 32223 case $(srcdir) in \
7fc2ca22
PB
32224 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32225 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
32226 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a19fd82 32227 esac; \
7fc2ca22
PB
32228 srcdiroption="--srcdir=$${topdir}/gas"; \
32229 libsrcdir="$$s/gas"; \
6a19fd82
PB
32230 $(SHELL) $${libsrcdir}/configure \
32231 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 32232 @stage2_werror_flag@
6a19fd82
PB
32233
32234maybe-all-stage3-gas: all-stage3-gas
32235all-stage3-gas: configure-stage3-gas
ebc58bf8 32236 @$(MAKE) stage3-start
6a19fd82
PB
32237 @r=`${PWD_COMMAND}`; export r; \
32238 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32239 $(STAGE_HOST_EXPORTS) \
7fc2ca22 32240 cd $(HOST_SUBDIR)/gas && \
6a19fd82
PB
32241 $(MAKE) $(FLAGS_TO_PASS) \
32242 $(POSTSTAGE1_FLAGS_TO_PASS) \
ebc58bf8 32243
99df82b9
PB
32244
32245maybe-clean-stage3-gas: clean-stage3-gas
32246clean-stage3-gas:
32247 @[ -f gas/Makefile ] || [ -f stage3-gas/Makefile ] \
32248 || exit 0 ; \
32249 [ -f gas/Makefile ] || $(MAKE) stage3-start ; \
7fc2ca22 32250 cd $(HOST_SUBDIR)/gas && \
99df82b9
PB
32251 $(MAKE) $(FLAGS_TO_PASS) \
32252 $(POSTSTAGE1_FLAGS_TO_PASS) \
32253 clean
6a19fd82
PB
32254@endif gas-bootstrap
32255
99df82b9 32256
ebc58bf8
PB
32257.PHONY: configure-stage3-gcc maybe-configure-stage3-gcc
32258.PHONY: all-stage3-gcc maybe-all-stage3-gcc
99df82b9 32259.PHONY: clean-stage3-gcc maybe-clean-stage3-gcc
ebc58bf8 32260
6a19fd82
PB
32261maybe-configure-stage3-gcc:
32262maybe-all-stage3-gcc:
99df82b9 32263maybe-clean-stage3-gcc:
6a19fd82
PB
32264
32265@if gcc-bootstrap
32266maybe-configure-stage3-gcc: configure-stage3-gcc
ebc58bf8
PB
32267configure-stage3-gcc:
32268 @$(MAKE) stage3-start
32269 @[ -f gcc/Makefile ] && exit 0 || : ; \
6a19fd82
PB
32270 r=`${PWD_COMMAND}`; export r; \
32271 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32272 $(STAGE_HOST_EXPORTS) \
32273 echo Configuring stage 3 in gcc ; \
7fc2ca22 32274 cd $(HOST_SUBDIR)/gcc || exit 1; \
6a19fd82 32275 case $(srcdir) in \
7fc2ca22
PB
32276 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32277 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
32278 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a19fd82 32279 esac; \
7fc2ca22
PB
32280 srcdiroption="--srcdir=$${topdir}/gcc"; \
32281 libsrcdir="$$s/gcc"; \
6a19fd82
PB
32282 $(SHELL) $${libsrcdir}/configure \
32283 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 32284 @stage2_werror_flag@
6a19fd82
PB
32285
32286maybe-all-stage3-gcc: all-stage3-gcc
32287all-stage3-gcc: configure-stage3-gcc
ebc58bf8 32288 @$(MAKE) stage3-start
6a19fd82
PB
32289 @r=`${PWD_COMMAND}`; export r; \
32290 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32291 $(STAGE_HOST_EXPORTS) \
7fc2ca22 32292 cd $(HOST_SUBDIR)/gcc && \
6a19fd82
PB
32293 $(MAKE) $(FLAGS_TO_PASS) \
32294 $(POSTSTAGE1_FLAGS_TO_PASS) \
ebc58bf8 32295 $(EXTRA_GCC_FLAGS)
99df82b9
PB
32296
32297maybe-clean-stage3-gcc: clean-stage3-gcc
32298clean-stage3-gcc:
32299 @[ -f gcc/Makefile ] || [ -f stage3-gcc/Makefile ] \
32300 || exit 0 ; \
32301 [ -f gcc/Makefile ] || $(MAKE) stage3-start ; \
7fc2ca22 32302 cd $(HOST_SUBDIR)/gcc && \
99df82b9
PB
32303 $(MAKE) $(FLAGS_TO_PASS) \
32304 $(POSTSTAGE1_FLAGS_TO_PASS) \
32305 $(EXTRA_GCC_FLAGS) clean
6a19fd82
PB
32306@endif gcc-bootstrap
32307
99df82b9 32308
ebc58bf8
PB
32309.PHONY: configure-stage3-intl maybe-configure-stage3-intl
32310.PHONY: all-stage3-intl maybe-all-stage3-intl
99df82b9 32311.PHONY: clean-stage3-intl maybe-clean-stage3-intl
ebc58bf8 32312
6a19fd82
PB
32313maybe-configure-stage3-intl:
32314maybe-all-stage3-intl:
99df82b9 32315maybe-clean-stage3-intl:
6a19fd82
PB
32316
32317@if intl-bootstrap
32318maybe-configure-stage3-intl: configure-stage3-intl
ebc58bf8
PB
32319configure-stage3-intl:
32320 @$(MAKE) stage3-start
32321 @[ -f intl/Makefile ] && exit 0 || : ; \
6a19fd82
PB
32322 r=`${PWD_COMMAND}`; export r; \
32323 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32324 $(STAGE_HOST_EXPORTS) \
32325 echo Configuring stage 3 in intl ; \
7fc2ca22 32326 cd $(HOST_SUBDIR)/intl || exit 1; \
6a19fd82 32327 case $(srcdir) in \
7fc2ca22
PB
32328 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32329 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
32330 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a19fd82 32331 esac; \
7fc2ca22
PB
32332 srcdiroption="--srcdir=$${topdir}/intl"; \
32333 libsrcdir="$$s/intl"; \
6a19fd82
PB
32334 $(SHELL) $${libsrcdir}/configure \
32335 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 32336 @stage2_werror_flag@
6a19fd82
PB
32337
32338maybe-all-stage3-intl: all-stage3-intl
32339all-stage3-intl: configure-stage3-intl
ebc58bf8 32340 @$(MAKE) stage3-start
6a19fd82
PB
32341 @r=`${PWD_COMMAND}`; export r; \
32342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32343 $(STAGE_HOST_EXPORTS) \
7fc2ca22 32344 cd $(HOST_SUBDIR)/intl && \
6a19fd82
PB
32345 $(MAKE) $(FLAGS_TO_PASS) \
32346 $(POSTSTAGE1_FLAGS_TO_PASS) \
ebc58bf8 32347
99df82b9
PB
32348
32349maybe-clean-stage3-intl: clean-stage3-intl
32350clean-stage3-intl:
32351 @[ -f intl/Makefile ] || [ -f stage3-intl/Makefile ] \
32352 || exit 0 ; \
32353 [ -f intl/Makefile ] || $(MAKE) stage3-start ; \
7fc2ca22 32354 cd $(HOST_SUBDIR)/intl && \
99df82b9
PB
32355 $(MAKE) $(FLAGS_TO_PASS) \
32356 $(POSTSTAGE1_FLAGS_TO_PASS) \
32357 clean
6a19fd82
PB
32358@endif intl-bootstrap
32359
99df82b9 32360
ebc58bf8
PB
32361.PHONY: configure-stage3-ld maybe-configure-stage3-ld
32362.PHONY: all-stage3-ld maybe-all-stage3-ld
99df82b9 32363.PHONY: clean-stage3-ld maybe-clean-stage3-ld
ebc58bf8 32364
6a19fd82
PB
32365maybe-configure-stage3-ld:
32366maybe-all-stage3-ld:
99df82b9 32367maybe-clean-stage3-ld:
6a19fd82
PB
32368
32369@if ld-bootstrap
32370maybe-configure-stage3-ld: configure-stage3-ld
ebc58bf8
PB
32371configure-stage3-ld:
32372 @$(MAKE) stage3-start
32373 @[ -f ld/Makefile ] && exit 0 || : ; \
6a19fd82
PB
32374 r=`${PWD_COMMAND}`; export r; \
32375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32376 $(STAGE_HOST_EXPORTS) \
32377 echo Configuring stage 3 in ld ; \
7fc2ca22 32378 cd $(HOST_SUBDIR)/ld || exit 1; \
6a19fd82 32379 case $(srcdir) in \
7fc2ca22
PB
32380 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32381 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
32382 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a19fd82 32383 esac; \
7fc2ca22
PB
32384 srcdiroption="--srcdir=$${topdir}/ld"; \
32385 libsrcdir="$$s/ld"; \
6a19fd82
PB
32386 $(SHELL) $${libsrcdir}/configure \
32387 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 32388 @stage2_werror_flag@
6a19fd82
PB
32389
32390maybe-all-stage3-ld: all-stage3-ld
32391all-stage3-ld: configure-stage3-ld
ebc58bf8 32392 @$(MAKE) stage3-start
6a19fd82
PB
32393 @r=`${PWD_COMMAND}`; export r; \
32394 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32395 $(STAGE_HOST_EXPORTS) \
7fc2ca22 32396 cd $(HOST_SUBDIR)/ld && \
6a19fd82
PB
32397 $(MAKE) $(FLAGS_TO_PASS) \
32398 $(POSTSTAGE1_FLAGS_TO_PASS) \
ebc58bf8 32399
99df82b9
PB
32400
32401maybe-clean-stage3-ld: clean-stage3-ld
32402clean-stage3-ld:
32403 @[ -f ld/Makefile ] || [ -f stage3-ld/Makefile ] \
32404 || exit 0 ; \
32405 [ -f ld/Makefile ] || $(MAKE) stage3-start ; \
7fc2ca22 32406 cd $(HOST_SUBDIR)/ld && \
99df82b9
PB
32407 $(MAKE) $(FLAGS_TO_PASS) \
32408 $(POSTSTAGE1_FLAGS_TO_PASS) \
32409 clean
6a19fd82
PB
32410@endif ld-bootstrap
32411
99df82b9 32412
ebc58bf8
PB
32413.PHONY: configure-stage3-libcpp maybe-configure-stage3-libcpp
32414.PHONY: all-stage3-libcpp maybe-all-stage3-libcpp
99df82b9 32415.PHONY: clean-stage3-libcpp maybe-clean-stage3-libcpp
ebc58bf8 32416
6a19fd82
PB
32417maybe-configure-stage3-libcpp:
32418maybe-all-stage3-libcpp:
99df82b9 32419maybe-clean-stage3-libcpp:
6a19fd82
PB
32420
32421@if libcpp-bootstrap
32422maybe-configure-stage3-libcpp: configure-stage3-libcpp
ebc58bf8
PB
32423configure-stage3-libcpp:
32424 @$(MAKE) stage3-start
32425 @[ -f libcpp/Makefile ] && exit 0 || : ; \
6a19fd82
PB
32426 r=`${PWD_COMMAND}`; export r; \
32427 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32428 $(STAGE_HOST_EXPORTS) \
32429 echo Configuring stage 3 in libcpp ; \
7fc2ca22 32430 cd $(HOST_SUBDIR)/libcpp || exit 1; \
6a19fd82 32431 case $(srcdir) in \
7fc2ca22
PB
32432 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32433 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
32434 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a19fd82 32435 esac; \
7fc2ca22
PB
32436 srcdiroption="--srcdir=$${topdir}/libcpp"; \
32437 libsrcdir="$$s/libcpp"; \
6a19fd82
PB
32438 $(SHELL) $${libsrcdir}/configure \
32439 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 32440 @stage2_werror_flag@
6a19fd82
PB
32441
32442maybe-all-stage3-libcpp: all-stage3-libcpp
32443all-stage3-libcpp: configure-stage3-libcpp
ebc58bf8 32444 @$(MAKE) stage3-start
6a19fd82
PB
32445 @r=`${PWD_COMMAND}`; export r; \
32446 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32447 $(STAGE_HOST_EXPORTS) \
7fc2ca22 32448 cd $(HOST_SUBDIR)/libcpp && \
6a19fd82
PB
32449 $(MAKE) $(FLAGS_TO_PASS) \
32450 $(POSTSTAGE1_FLAGS_TO_PASS) \
ebc58bf8 32451
99df82b9
PB
32452
32453maybe-clean-stage3-libcpp: clean-stage3-libcpp
32454clean-stage3-libcpp:
32455 @[ -f libcpp/Makefile ] || [ -f stage3-libcpp/Makefile ] \
32456 || exit 0 ; \
32457 [ -f libcpp/Makefile ] || $(MAKE) stage3-start ; \
7fc2ca22 32458 cd $(HOST_SUBDIR)/libcpp && \
99df82b9
PB
32459 $(MAKE) $(FLAGS_TO_PASS) \
32460 $(POSTSTAGE1_FLAGS_TO_PASS) \
32461 clean
6a19fd82
PB
32462@endif libcpp-bootstrap
32463
99df82b9 32464
ebc58bf8
PB
32465.PHONY: configure-stage3-libiberty maybe-configure-stage3-libiberty
32466.PHONY: all-stage3-libiberty maybe-all-stage3-libiberty
99df82b9 32467.PHONY: clean-stage3-libiberty maybe-clean-stage3-libiberty
ebc58bf8 32468
6a19fd82
PB
32469maybe-configure-stage3-libiberty:
32470maybe-all-stage3-libiberty:
99df82b9 32471maybe-clean-stage3-libiberty:
6a19fd82
PB
32472
32473@if libiberty-bootstrap
32474maybe-configure-stage3-libiberty: configure-stage3-libiberty
ebc58bf8
PB
32475configure-stage3-libiberty:
32476 @$(MAKE) stage3-start
32477 @[ -f libiberty/Makefile ] && exit 0 || : ; \
6a19fd82
PB
32478 r=`${PWD_COMMAND}`; export r; \
32479 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32480 $(STAGE_HOST_EXPORTS) \
32481 echo Configuring stage 3 in libiberty ; \
7fc2ca22 32482 cd $(HOST_SUBDIR)/libiberty || exit 1; \
6a19fd82 32483 case $(srcdir) in \
7fc2ca22
PB
32484 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32485 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
32486 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a19fd82 32487 esac; \
7fc2ca22
PB
32488 srcdiroption="--srcdir=$${topdir}/libiberty"; \
32489 libsrcdir="$$s/libiberty"; \
6a19fd82
PB
32490 $(SHELL) $${libsrcdir}/configure \
32491 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 32492 @stage2_werror_flag@
6a19fd82
PB
32493
32494maybe-all-stage3-libiberty: all-stage3-libiberty
32495all-stage3-libiberty: configure-stage3-libiberty
ebc58bf8 32496 @$(MAKE) stage3-start
6a19fd82
PB
32497 @r=`${PWD_COMMAND}`; export r; \
32498 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32499 $(STAGE_HOST_EXPORTS) \
7fc2ca22 32500 cd $(HOST_SUBDIR)/libiberty && \
6a19fd82
PB
32501 $(MAKE) $(FLAGS_TO_PASS) \
32502 $(POSTSTAGE1_FLAGS_TO_PASS) \
ebc58bf8 32503
99df82b9
PB
32504
32505maybe-clean-stage3-libiberty: clean-stage3-libiberty
32506clean-stage3-libiberty:
32507 @[ -f libiberty/Makefile ] || [ -f stage3-libiberty/Makefile ] \
32508 || exit 0 ; \
32509 [ -f libiberty/Makefile ] || $(MAKE) stage3-start ; \
7fc2ca22 32510 cd $(HOST_SUBDIR)/libiberty && \
99df82b9
PB
32511 $(MAKE) $(FLAGS_TO_PASS) \
32512 $(POSTSTAGE1_FLAGS_TO_PASS) \
32513 clean
6a19fd82
PB
32514@endif libiberty-bootstrap
32515
99df82b9 32516
ebc58bf8
PB
32517.PHONY: configure-stage3-zlib maybe-configure-stage3-zlib
32518.PHONY: all-stage3-zlib maybe-all-stage3-zlib
99df82b9 32519.PHONY: clean-stage3-zlib maybe-clean-stage3-zlib
ebc58bf8 32520
6a19fd82
PB
32521maybe-configure-stage3-zlib:
32522maybe-all-stage3-zlib:
99df82b9 32523maybe-clean-stage3-zlib:
6a19fd82
PB
32524
32525@if zlib-bootstrap
32526maybe-configure-stage3-zlib: configure-stage3-zlib
ebc58bf8
PB
32527configure-stage3-zlib:
32528 @$(MAKE) stage3-start
32529 @[ -f zlib/Makefile ] && exit 0 || : ; \
6a19fd82
PB
32530 r=`${PWD_COMMAND}`; export r; \
32531 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32532 $(STAGE_HOST_EXPORTS) \
32533 echo Configuring stage 3 in zlib ; \
7fc2ca22 32534 cd $(HOST_SUBDIR)/zlib || exit 1; \
6a19fd82 32535 case $(srcdir) in \
7fc2ca22
PB
32536 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32537 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
32538 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a19fd82 32539 esac; \
7fc2ca22
PB
32540 srcdiroption="--srcdir=$${topdir}/zlib"; \
32541 libsrcdir="$$s/zlib"; \
6a19fd82
PB
32542 $(SHELL) $${libsrcdir}/configure \
32543 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 32544 @stage2_werror_flag@
6a19fd82
PB
32545
32546maybe-all-stage3-zlib: all-stage3-zlib
32547all-stage3-zlib: configure-stage3-zlib
ebc58bf8 32548 @$(MAKE) stage3-start
6a19fd82
PB
32549 @r=`${PWD_COMMAND}`; export r; \
32550 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32551 $(STAGE_HOST_EXPORTS) \
7fc2ca22 32552 cd $(HOST_SUBDIR)/zlib && \
6a19fd82
PB
32553 $(MAKE) $(FLAGS_TO_PASS) \
32554 $(POSTSTAGE1_FLAGS_TO_PASS) \
ebc58bf8 32555
99df82b9
PB
32556
32557maybe-clean-stage3-zlib: clean-stage3-zlib
32558clean-stage3-zlib:
32559 @[ -f zlib/Makefile ] || [ -f stage3-zlib/Makefile ] \
32560 || exit 0 ; \
32561 [ -f zlib/Makefile ] || $(MAKE) stage3-start ; \
7fc2ca22 32562 cd $(HOST_SUBDIR)/zlib && \
99df82b9
PB
32563 $(MAKE) $(FLAGS_TO_PASS) \
32564 $(POSTSTAGE1_FLAGS_TO_PASS) \
32565 clean
6a19fd82
PB
32566@endif zlib-bootstrap
32567
32568
99df82b9 32569
6a19fd82
PB
32570# FIXME: Will not need to be conditional when toplevel bootstrap is the
32571# only possibility, but now it conflicts with no-bootstrap rules
32572@if gcc-bootstrap
32573
ebc58bf8
PB
32574compare:
32575 @if test -f stage2-lean; then \
32576 echo Cannot compare object files as stage 2 was deleted. ; \
32577 exit 0 ; \
32578 fi; \
32579 [ -f stage_current ] && $(MAKE) `cat stage_current`-end || : ; \
6a19fd82
PB
32580 @r=`${PWD_COMMAND}`; export r; \
32581 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32582 rm -f .bad_compare ; \
32583 cd stage3-gcc; \
32584 files=`find . -name "*$(objext)" -print` ; \
32585 cd .. ; \
32586 for file in $${files} ; do \
32587 f1=$$r/stage2-gcc/$$file; f2=$$r/stage3-gcc/$$file; \
32588 @do_compare@ > /dev/null 2>&1; \
32589 test $$? -eq 1 && echo $$file differs >> .bad_compare || true; \
32590 done ; \
32591 if [ -f .bad_compare ]; then \
32592 echo "Bootstrap comparison failure!"; \
32593 cat .bad_compare; \
32594 exit 1; \
32595 else \
32596 true; \
32597 fi ; \
32598 $(STAMP) compare
ebc58bf8 32599 @bootstrap_lean@-rm -rf stage2-* ; $(STAMP) stage2-lean
6a19fd82
PB
32600
32601
32602
32603.PHONY: bootstrap
ebc58bf8 32604bootstrap: stage3-bubble compare all
6a19fd82
PB
32605
32606
99df82b9 32607# Rules to wipe a stage and all the following ones, also used for cleanstrap
6a19fd82 32608distclean-stage2:: distclean-stage3
99df82b9 32609.PHONY: distclean-stage3
6a19fd82
PB
32610distclean-stage3::
32611 [ -f stage_current ] && $(MAKE) `cat stage_current`-end || :
ebc58bf8 32612 rm -rf stage3-* compare
6a19fd82
PB
32613
32614
32615.PHONY: cleanstrap
99df82b9 32616cleanstrap: distclean bootstrap
6a19fd82
PB
32617
32618@endif gcc-bootstrap
32619
32620
32621.PHONY: stage4-start stage4-end
32622
32623stage4-start::
ebc58bf8 32624 @[ -f stage_current ] && $(MAKE) `cat stage_current`-end || : ; \
6a19fd82 32625 echo stage4 > stage_current ; \
7fc2ca22
PB
32626 echo stage4 > stage_last; \
32627 $(mkinstalldirs) $(HOST_SUBDIR)
6a19fd82 32628@if bfd
7fc2ca22
PB
32629 @cd $(HOST_SUBDIR); [ -d stage4-bfd ] || \
32630 mkdir stage4-bfd; \
32631 set stage4-bfd bfd ; \
32632 @CREATE_LINK_TO_DIR@ ; \
32633 set stage3-bfd prev-bfd ; \
32634 @CREATE_LINK_TO_DIR@
6a19fd82
PB
32635@endif bfd
32636@if opcodes
7fc2ca22
PB
32637 @cd $(HOST_SUBDIR); [ -d stage4-opcodes ] || \
32638 mkdir stage4-opcodes; \
32639 set stage4-opcodes opcodes ; \
32640 @CREATE_LINK_TO_DIR@ ; \
32641 set stage3-opcodes prev-opcodes ; \
32642 @CREATE_LINK_TO_DIR@
6a19fd82
PB
32643@endif opcodes
32644@if binutils
7fc2ca22
PB
32645 @cd $(HOST_SUBDIR); [ -d stage4-binutils ] || \
32646 mkdir stage4-binutils; \
32647 set stage4-binutils binutils ; \
32648 @CREATE_LINK_TO_DIR@ ; \
32649 set stage3-binutils prev-binutils ; \
32650 @CREATE_LINK_TO_DIR@
6a19fd82
PB
32651@endif binutils
32652@if gas
7fc2ca22
PB
32653 @cd $(HOST_SUBDIR); [ -d stage4-gas ] || \
32654 mkdir stage4-gas; \
32655 set stage4-gas gas ; \
32656 @CREATE_LINK_TO_DIR@ ; \
32657 set stage3-gas prev-gas ; \
32658 @CREATE_LINK_TO_DIR@
6a19fd82
PB
32659@endif gas
32660@if gcc
7fc2ca22
PB
32661 @cd $(HOST_SUBDIR); [ -d stage4-gcc ] || \
32662 mkdir stage4-gcc; \
32663 set stage4-gcc gcc ; \
32664 @CREATE_LINK_TO_DIR@ ; \
32665 set stage3-gcc prev-gcc ; \
32666 @CREATE_LINK_TO_DIR@
6a19fd82
PB
32667@endif gcc
32668@if intl
7fc2ca22
PB
32669 @cd $(HOST_SUBDIR); [ -d stage4-intl ] || \
32670 mkdir stage4-intl; \
32671 set stage4-intl intl ; \
32672 @CREATE_LINK_TO_DIR@ ; \
32673 set stage3-intl prev-intl ; \
32674 @CREATE_LINK_TO_DIR@
6a19fd82
PB
32675@endif intl
32676@if ld
7fc2ca22
PB
32677 @cd $(HOST_SUBDIR); [ -d stage4-ld ] || \
32678 mkdir stage4-ld; \
32679 set stage4-ld ld ; \
32680 @CREATE_LINK_TO_DIR@ ; \
32681 set stage3-ld prev-ld ; \
32682 @CREATE_LINK_TO_DIR@
6a19fd82
PB
32683@endif ld
32684@if libcpp
7fc2ca22
PB
32685 @cd $(HOST_SUBDIR); [ -d stage4-libcpp ] || \
32686 mkdir stage4-libcpp; \
32687 set stage4-libcpp libcpp ; \
32688 @CREATE_LINK_TO_DIR@ ; \
32689 set stage3-libcpp prev-libcpp ; \
32690 @CREATE_LINK_TO_DIR@
6a19fd82 32691@endif libcpp
6a19fd82 32692@if libiberty
7fc2ca22
PB
32693 @cd $(HOST_SUBDIR); [ -d stage4-libiberty ] || \
32694 mkdir stage4-libiberty; \
32695 set stage4-libiberty libiberty ; \
32696 @CREATE_LINK_TO_DIR@ ; \
32697 set stage3-libiberty prev-libiberty ; \
32698 @CREATE_LINK_TO_DIR@
6a19fd82
PB
32699@endif libiberty
32700@if zlib
7fc2ca22
PB
32701 @cd $(HOST_SUBDIR); [ -d stage4-zlib ] || \
32702 mkdir stage4-zlib; \
32703 set stage4-zlib zlib ; \
32704 @CREATE_LINK_TO_DIR@ ; \
32705 set stage3-zlib prev-zlib ; \
32706 @CREATE_LINK_TO_DIR@
6a19fd82
PB
32707@endif zlib
32708
32709stage4-end::
ebc58bf8 32710 @rm -f stage_current
6a19fd82 32711@if bfd
7fc2ca22
PB
32712 @cd $(HOST_SUBDIR); set bfd stage4-bfd ; \
32713 @UNDO_LINK_TO_DIR@ ; \
32714 set prev-bfd stage3-bfd ; \
32715 @UNDO_LINK_TO_DIR@
6a19fd82
PB
32716@endif bfd
32717@if opcodes
7fc2ca22
PB
32718 @cd $(HOST_SUBDIR); set opcodes stage4-opcodes ; \
32719 @UNDO_LINK_TO_DIR@ ; \
32720 set prev-opcodes stage3-opcodes ; \
32721 @UNDO_LINK_TO_DIR@
6a19fd82
PB
32722@endif opcodes
32723@if binutils
7fc2ca22
PB
32724 @cd $(HOST_SUBDIR); set binutils stage4-binutils ; \
32725 @UNDO_LINK_TO_DIR@ ; \
32726 set prev-binutils stage3-binutils ; \
32727 @UNDO_LINK_TO_DIR@
6a19fd82
PB
32728@endif binutils
32729@if gas
7fc2ca22
PB
32730 @cd $(HOST_SUBDIR); set gas stage4-gas ; \
32731 @UNDO_LINK_TO_DIR@ ; \
32732 set prev-gas stage3-gas ; \
32733 @UNDO_LINK_TO_DIR@
6a19fd82
PB
32734@endif gas
32735@if gcc
7fc2ca22
PB
32736 @cd $(HOST_SUBDIR); set gcc stage4-gcc ; \
32737 @UNDO_LINK_TO_DIR@ ; \
32738 set prev-gcc stage3-gcc ; \
32739 @UNDO_LINK_TO_DIR@
6a19fd82
PB
32740@endif gcc
32741@if intl
7fc2ca22
PB
32742 @cd $(HOST_SUBDIR); set intl stage4-intl ; \
32743 @UNDO_LINK_TO_DIR@ ; \
32744 set prev-intl stage3-intl ; \
32745 @UNDO_LINK_TO_DIR@
6a19fd82
PB
32746@endif intl
32747@if ld
7fc2ca22
PB
32748 @cd $(HOST_SUBDIR); set ld stage4-ld ; \
32749 @UNDO_LINK_TO_DIR@ ; \
32750 set prev-ld stage3-ld ; \
32751 @UNDO_LINK_TO_DIR@
6a19fd82
PB
32752@endif ld
32753@if libcpp
7fc2ca22
PB
32754 @cd $(HOST_SUBDIR); set libcpp stage4-libcpp ; \
32755 @UNDO_LINK_TO_DIR@ ; \
32756 set prev-libcpp stage3-libcpp ; \
32757 @UNDO_LINK_TO_DIR@
6a19fd82 32758@endif libcpp
6a19fd82 32759@if libiberty
7fc2ca22
PB
32760 @cd $(HOST_SUBDIR); set libiberty stage4-libiberty ; \
32761 @UNDO_LINK_TO_DIR@ ; \
32762 set prev-libiberty stage3-libiberty ; \
32763 @UNDO_LINK_TO_DIR@
6a19fd82
PB
32764@endif libiberty
32765@if zlib
7fc2ca22
PB
32766 @cd $(HOST_SUBDIR); set zlib stage4-zlib ; \
32767 @UNDO_LINK_TO_DIR@ ; \
32768 set prev-zlib stage3-zlib ; \
32769 @UNDO_LINK_TO_DIR@
6a19fd82
PB
32770@endif zlib
32771
32772# Bubble a bugfix through all the stages up to stage 4. They
32773# are remade, but not reconfigured. The next stage (if any) will not
32774# be reconfigured as well.
32775.PHONY: stage4-bubble
32776stage4-bubble:: stage3-bubble
ebc58bf8
PB
32777 @bootstrap_lean@-rm -rf stage2-* ; $(STAMP) stage2-lean
32778 @if test -f stage4-lean || test -f stage3-lean ; then \
32779 echo Skipping rebuild of stage4 ; \
32780 else \
99df82b9 32781 $(MAKE) $(RECURSE_FLAGS_TO_PASS) NOTPARALLEL= all-stage4; \
ebc58bf8 32782 fi
6a19fd82 32783
99df82b9 32784.PHONY: all-stage4 clean-stage4
6a19fd82
PB
32785all-stage4: \
32786 maybe-all-stage4-bfd \
32787 maybe-all-stage4-opcodes \
5350aa8b 32788 maybe-all-stage4-binutils \
6a19fd82
PB
32789 maybe-all-stage4-gas \
32790 maybe-all-stage4-gcc \
32791 maybe-all-stage4-intl \
32792 maybe-all-stage4-ld \
32793 maybe-all-stage4-libcpp \
6a19fd82 32794 maybe-all-stage4-libiberty \
7fc2ca22 32795 maybe-all-stage4-zlib
6a19fd82 32796
99df82b9
PB
32797do-clean: clean-stage4
32798clean-stage4: \
32799 maybe-clean-stage4-bfd \
32800 maybe-clean-stage4-opcodes \
5350aa8b 32801 maybe-clean-stage4-binutils \
99df82b9
PB
32802 maybe-clean-stage4-gas \
32803 maybe-clean-stage4-gcc \
32804 maybe-clean-stage4-intl \
32805 maybe-clean-stage4-ld \
32806 maybe-clean-stage4-libcpp \
99df82b9 32807 maybe-clean-stage4-libiberty \
7fc2ca22 32808 maybe-clean-stage4-zlib
99df82b9 32809
6a19fd82 32810
ebc58bf8
PB
32811.PHONY: configure-stage4-bfd maybe-configure-stage4-bfd
32812.PHONY: all-stage4-bfd maybe-all-stage4-bfd
99df82b9 32813.PHONY: clean-stage4-bfd maybe-clean-stage4-bfd
ebc58bf8 32814
6a19fd82
PB
32815maybe-configure-stage4-bfd:
32816maybe-all-stage4-bfd:
99df82b9 32817maybe-clean-stage4-bfd:
6a19fd82
PB
32818
32819@if bfd-bootstrap
32820maybe-configure-stage4-bfd: configure-stage4-bfd
ebc58bf8
PB
32821configure-stage4-bfd:
32822 @$(MAKE) stage4-start
32823 @[ -f bfd/Makefile ] && exit 0 || : ; \
6a19fd82
PB
32824 r=`${PWD_COMMAND}`; export r; \
32825 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32826 $(STAGE_HOST_EXPORTS) \
32827 echo Configuring stage 4 in bfd ; \
7fc2ca22 32828 cd $(HOST_SUBDIR)/bfd || exit 1; \
6a19fd82 32829 case $(srcdir) in \
7fc2ca22
PB
32830 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32831 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
32832 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a19fd82 32833 esac; \
7fc2ca22
PB
32834 srcdiroption="--srcdir=$${topdir}/bfd"; \
32835 libsrcdir="$$s/bfd"; \
6a19fd82
PB
32836 $(SHELL) $${libsrcdir}/configure \
32837 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 32838 @stage2_werror_flag@
6a19fd82
PB
32839
32840maybe-all-stage4-bfd: all-stage4-bfd
32841all-stage4-bfd: configure-stage4-bfd
ebc58bf8 32842 @$(MAKE) stage4-start
6a19fd82
PB
32843 @r=`${PWD_COMMAND}`; export r; \
32844 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32845 $(STAGE_HOST_EXPORTS) \
7fc2ca22 32846 cd $(HOST_SUBDIR)/bfd && \
6a19fd82
PB
32847 $(MAKE) $(FLAGS_TO_PASS) \
32848 $(POSTSTAGE1_FLAGS_TO_PASS) \
ebc58bf8 32849
99df82b9
PB
32850
32851maybe-clean-stage4-bfd: clean-stage4-bfd
32852clean-stage4-bfd:
32853 @[ -f bfd/Makefile ] || [ -f stage4-bfd/Makefile ] \
32854 || exit 0 ; \
32855 [ -f bfd/Makefile ] || $(MAKE) stage4-start ; \
7fc2ca22 32856 cd $(HOST_SUBDIR)/bfd && \
99df82b9
PB
32857 $(MAKE) $(FLAGS_TO_PASS) \
32858 $(POSTSTAGE1_FLAGS_TO_PASS) \
32859 clean
6a19fd82
PB
32860@endif bfd-bootstrap
32861
99df82b9 32862
ebc58bf8
PB
32863.PHONY: configure-stage4-opcodes maybe-configure-stage4-opcodes
32864.PHONY: all-stage4-opcodes maybe-all-stage4-opcodes
99df82b9 32865.PHONY: clean-stage4-opcodes maybe-clean-stage4-opcodes
ebc58bf8 32866
6a19fd82
PB
32867maybe-configure-stage4-opcodes:
32868maybe-all-stage4-opcodes:
99df82b9 32869maybe-clean-stage4-opcodes:
6a19fd82
PB
32870
32871@if opcodes-bootstrap
32872maybe-configure-stage4-opcodes: configure-stage4-opcodes
ebc58bf8
PB
32873configure-stage4-opcodes:
32874 @$(MAKE) stage4-start
32875 @[ -f opcodes/Makefile ] && exit 0 || : ; \
6a19fd82
PB
32876 r=`${PWD_COMMAND}`; export r; \
32877 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32878 $(STAGE_HOST_EXPORTS) \
32879 echo Configuring stage 4 in opcodes ; \
7fc2ca22 32880 cd $(HOST_SUBDIR)/opcodes || exit 1; \
6a19fd82 32881 case $(srcdir) in \
7fc2ca22
PB
32882 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32883 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
32884 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a19fd82 32885 esac; \
7fc2ca22
PB
32886 srcdiroption="--srcdir=$${topdir}/opcodes"; \
32887 libsrcdir="$$s/opcodes"; \
6a19fd82
PB
32888 $(SHELL) $${libsrcdir}/configure \
32889 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 32890 @stage2_werror_flag@
6a19fd82
PB
32891
32892maybe-all-stage4-opcodes: all-stage4-opcodes
32893all-stage4-opcodes: configure-stage4-opcodes
ebc58bf8 32894 @$(MAKE) stage4-start
6a19fd82
PB
32895 @r=`${PWD_COMMAND}`; export r; \
32896 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32897 $(STAGE_HOST_EXPORTS) \
7fc2ca22 32898 cd $(HOST_SUBDIR)/opcodes && \
6a19fd82
PB
32899 $(MAKE) $(FLAGS_TO_PASS) \
32900 $(POSTSTAGE1_FLAGS_TO_PASS) \
ebc58bf8 32901
99df82b9
PB
32902
32903maybe-clean-stage4-opcodes: clean-stage4-opcodes
32904clean-stage4-opcodes:
32905 @[ -f opcodes/Makefile ] || [ -f stage4-opcodes/Makefile ] \
32906 || exit 0 ; \
32907 [ -f opcodes/Makefile ] || $(MAKE) stage4-start ; \
7fc2ca22 32908 cd $(HOST_SUBDIR)/opcodes && \
99df82b9
PB
32909 $(MAKE) $(FLAGS_TO_PASS) \
32910 $(POSTSTAGE1_FLAGS_TO_PASS) \
32911 clean
6a19fd82
PB
32912@endif opcodes-bootstrap
32913
99df82b9 32914
ebc58bf8
PB
32915.PHONY: configure-stage4-binutils maybe-configure-stage4-binutils
32916.PHONY: all-stage4-binutils maybe-all-stage4-binutils
99df82b9 32917.PHONY: clean-stage4-binutils maybe-clean-stage4-binutils
ebc58bf8 32918
6a19fd82
PB
32919maybe-configure-stage4-binutils:
32920maybe-all-stage4-binutils:
99df82b9 32921maybe-clean-stage4-binutils:
6a19fd82
PB
32922
32923@if binutils-bootstrap
32924maybe-configure-stage4-binutils: configure-stage4-binutils
ebc58bf8
PB
32925configure-stage4-binutils:
32926 @$(MAKE) stage4-start
32927 @[ -f binutils/Makefile ] && exit 0 || : ; \
6a19fd82
PB
32928 r=`${PWD_COMMAND}`; export r; \
32929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32930 $(STAGE_HOST_EXPORTS) \
32931 echo Configuring stage 4 in binutils ; \
7fc2ca22 32932 cd $(HOST_SUBDIR)/binutils || exit 1; \
6a19fd82 32933 case $(srcdir) in \
7fc2ca22
PB
32934 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32935 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
32936 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a19fd82 32937 esac; \
7fc2ca22
PB
32938 srcdiroption="--srcdir=$${topdir}/binutils"; \
32939 libsrcdir="$$s/binutils"; \
6a19fd82
PB
32940 $(SHELL) $${libsrcdir}/configure \
32941 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 32942 @stage2_werror_flag@
6a19fd82
PB
32943
32944maybe-all-stage4-binutils: all-stage4-binutils
32945all-stage4-binutils: configure-stage4-binutils
ebc58bf8 32946 @$(MAKE) stage4-start
6a19fd82
PB
32947 @r=`${PWD_COMMAND}`; export r; \
32948 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32949 $(STAGE_HOST_EXPORTS) \
7fc2ca22 32950 cd $(HOST_SUBDIR)/binutils && \
6a19fd82
PB
32951 $(MAKE) $(FLAGS_TO_PASS) \
32952 $(POSTSTAGE1_FLAGS_TO_PASS) \
ebc58bf8 32953
99df82b9
PB
32954
32955maybe-clean-stage4-binutils: clean-stage4-binutils
32956clean-stage4-binutils:
32957 @[ -f binutils/Makefile ] || [ -f stage4-binutils/Makefile ] \
32958 || exit 0 ; \
32959 [ -f binutils/Makefile ] || $(MAKE) stage4-start ; \
7fc2ca22 32960 cd $(HOST_SUBDIR)/binutils && \
99df82b9
PB
32961 $(MAKE) $(FLAGS_TO_PASS) \
32962 $(POSTSTAGE1_FLAGS_TO_PASS) \
32963 clean
6a19fd82
PB
32964@endif binutils-bootstrap
32965
99df82b9 32966
ebc58bf8
PB
32967.PHONY: configure-stage4-gas maybe-configure-stage4-gas
32968.PHONY: all-stage4-gas maybe-all-stage4-gas
99df82b9 32969.PHONY: clean-stage4-gas maybe-clean-stage4-gas
ebc58bf8 32970
6a19fd82
PB
32971maybe-configure-stage4-gas:
32972maybe-all-stage4-gas:
99df82b9 32973maybe-clean-stage4-gas:
6a19fd82
PB
32974
32975@if gas-bootstrap
32976maybe-configure-stage4-gas: configure-stage4-gas
ebc58bf8
PB
32977configure-stage4-gas:
32978 @$(MAKE) stage4-start
32979 @[ -f gas/Makefile ] && exit 0 || : ; \
6a19fd82
PB
32980 r=`${PWD_COMMAND}`; export r; \
32981 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32982 $(STAGE_HOST_EXPORTS) \
32983 echo Configuring stage 4 in gas ; \
7fc2ca22 32984 cd $(HOST_SUBDIR)/gas || exit 1; \
6a19fd82 32985 case $(srcdir) in \
7fc2ca22
PB
32986 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32987 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
32988 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a19fd82 32989 esac; \
7fc2ca22
PB
32990 srcdiroption="--srcdir=$${topdir}/gas"; \
32991 libsrcdir="$$s/gas"; \
6a19fd82
PB
32992 $(SHELL) $${libsrcdir}/configure \
32993 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 32994 @stage2_werror_flag@
6a19fd82
PB
32995
32996maybe-all-stage4-gas: all-stage4-gas
32997all-stage4-gas: configure-stage4-gas
ebc58bf8 32998 @$(MAKE) stage4-start
6a19fd82
PB
32999 @r=`${PWD_COMMAND}`; export r; \
33000 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33001 $(STAGE_HOST_EXPORTS) \
7fc2ca22 33002 cd $(HOST_SUBDIR)/gas && \
6a19fd82
PB
33003 $(MAKE) $(FLAGS_TO_PASS) \
33004 $(POSTSTAGE1_FLAGS_TO_PASS) \
ebc58bf8 33005
99df82b9
PB
33006
33007maybe-clean-stage4-gas: clean-stage4-gas
33008clean-stage4-gas:
33009 @[ -f gas/Makefile ] || [ -f stage4-gas/Makefile ] \
33010 || exit 0 ; \
33011 [ -f gas/Makefile ] || $(MAKE) stage4-start ; \
7fc2ca22 33012 cd $(HOST_SUBDIR)/gas && \
99df82b9
PB
33013 $(MAKE) $(FLAGS_TO_PASS) \
33014 $(POSTSTAGE1_FLAGS_TO_PASS) \
33015 clean
6a19fd82
PB
33016@endif gas-bootstrap
33017
99df82b9 33018
ebc58bf8
PB
33019.PHONY: configure-stage4-gcc maybe-configure-stage4-gcc
33020.PHONY: all-stage4-gcc maybe-all-stage4-gcc
99df82b9 33021.PHONY: clean-stage4-gcc maybe-clean-stage4-gcc
ebc58bf8 33022
6a19fd82
PB
33023maybe-configure-stage4-gcc:
33024maybe-all-stage4-gcc:
99df82b9 33025maybe-clean-stage4-gcc:
6a19fd82
PB
33026
33027@if gcc-bootstrap
33028maybe-configure-stage4-gcc: configure-stage4-gcc
ebc58bf8
PB
33029configure-stage4-gcc:
33030 @$(MAKE) stage4-start
33031 @[ -f gcc/Makefile ] && exit 0 || : ; \
6a19fd82
PB
33032 r=`${PWD_COMMAND}`; export r; \
33033 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33034 $(STAGE_HOST_EXPORTS) \
33035 echo Configuring stage 4 in gcc ; \
7fc2ca22 33036 cd $(HOST_SUBDIR)/gcc || exit 1; \
6a19fd82 33037 case $(srcdir) in \
7fc2ca22
PB
33038 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33039 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
33040 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a19fd82 33041 esac; \
7fc2ca22
PB
33042 srcdiroption="--srcdir=$${topdir}/gcc"; \
33043 libsrcdir="$$s/gcc"; \
6a19fd82
PB
33044 $(SHELL) $${libsrcdir}/configure \
33045 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 33046 @stage2_werror_flag@
6a19fd82
PB
33047
33048maybe-all-stage4-gcc: all-stage4-gcc
33049all-stage4-gcc: configure-stage4-gcc
ebc58bf8 33050 @$(MAKE) stage4-start
6a19fd82
PB
33051 @r=`${PWD_COMMAND}`; export r; \
33052 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33053 $(STAGE_HOST_EXPORTS) \
7fc2ca22 33054 cd $(HOST_SUBDIR)/gcc && \
6a19fd82
PB
33055 $(MAKE) $(FLAGS_TO_PASS) \
33056 $(POSTSTAGE1_FLAGS_TO_PASS) \
ebc58bf8 33057 $(EXTRA_GCC_FLAGS)
99df82b9
PB
33058
33059maybe-clean-stage4-gcc: clean-stage4-gcc
33060clean-stage4-gcc:
33061 @[ -f gcc/Makefile ] || [ -f stage4-gcc/Makefile ] \
33062 || exit 0 ; \
33063 [ -f gcc/Makefile ] || $(MAKE) stage4-start ; \
7fc2ca22 33064 cd $(HOST_SUBDIR)/gcc && \
99df82b9
PB
33065 $(MAKE) $(FLAGS_TO_PASS) \
33066 $(POSTSTAGE1_FLAGS_TO_PASS) \
33067 $(EXTRA_GCC_FLAGS) clean
6a19fd82
PB
33068@endif gcc-bootstrap
33069
99df82b9 33070
ebc58bf8
PB
33071.PHONY: configure-stage4-intl maybe-configure-stage4-intl
33072.PHONY: all-stage4-intl maybe-all-stage4-intl
99df82b9 33073.PHONY: clean-stage4-intl maybe-clean-stage4-intl
ebc58bf8 33074
6a19fd82
PB
33075maybe-configure-stage4-intl:
33076maybe-all-stage4-intl:
99df82b9 33077maybe-clean-stage4-intl:
6a19fd82
PB
33078
33079@if intl-bootstrap
33080maybe-configure-stage4-intl: configure-stage4-intl
ebc58bf8
PB
33081configure-stage4-intl:
33082 @$(MAKE) stage4-start
33083 @[ -f intl/Makefile ] && exit 0 || : ; \
6a19fd82
PB
33084 r=`${PWD_COMMAND}`; export r; \
33085 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33086 $(STAGE_HOST_EXPORTS) \
33087 echo Configuring stage 4 in intl ; \
7fc2ca22 33088 cd $(HOST_SUBDIR)/intl || exit 1; \
6a19fd82 33089 case $(srcdir) in \
7fc2ca22
PB
33090 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33091 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
33092 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a19fd82 33093 esac; \
7fc2ca22
PB
33094 srcdiroption="--srcdir=$${topdir}/intl"; \
33095 libsrcdir="$$s/intl"; \
6a19fd82
PB
33096 $(SHELL) $${libsrcdir}/configure \
33097 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 33098 @stage2_werror_flag@
6a19fd82
PB
33099
33100maybe-all-stage4-intl: all-stage4-intl
33101all-stage4-intl: configure-stage4-intl
ebc58bf8 33102 @$(MAKE) stage4-start
6a19fd82
PB
33103 @r=`${PWD_COMMAND}`; export r; \
33104 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33105 $(STAGE_HOST_EXPORTS) \
7fc2ca22 33106 cd $(HOST_SUBDIR)/intl && \
6a19fd82
PB
33107 $(MAKE) $(FLAGS_TO_PASS) \
33108 $(POSTSTAGE1_FLAGS_TO_PASS) \
ebc58bf8 33109
99df82b9
PB
33110
33111maybe-clean-stage4-intl: clean-stage4-intl
33112clean-stage4-intl:
33113 @[ -f intl/Makefile ] || [ -f stage4-intl/Makefile ] \
33114 || exit 0 ; \
33115 [ -f intl/Makefile ] || $(MAKE) stage4-start ; \
7fc2ca22 33116 cd $(HOST_SUBDIR)/intl && \
99df82b9
PB
33117 $(MAKE) $(FLAGS_TO_PASS) \
33118 $(POSTSTAGE1_FLAGS_TO_PASS) \
33119 clean
6a19fd82
PB
33120@endif intl-bootstrap
33121
99df82b9 33122
ebc58bf8
PB
33123.PHONY: configure-stage4-ld maybe-configure-stage4-ld
33124.PHONY: all-stage4-ld maybe-all-stage4-ld
99df82b9 33125.PHONY: clean-stage4-ld maybe-clean-stage4-ld
ebc58bf8 33126
6a19fd82
PB
33127maybe-configure-stage4-ld:
33128maybe-all-stage4-ld:
99df82b9 33129maybe-clean-stage4-ld:
6a19fd82
PB
33130
33131@if ld-bootstrap
33132maybe-configure-stage4-ld: configure-stage4-ld
ebc58bf8
PB
33133configure-stage4-ld:
33134 @$(MAKE) stage4-start
33135 @[ -f ld/Makefile ] && exit 0 || : ; \
6a19fd82
PB
33136 r=`${PWD_COMMAND}`; export r; \
33137 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33138 $(STAGE_HOST_EXPORTS) \
33139 echo Configuring stage 4 in ld ; \
7fc2ca22 33140 cd $(HOST_SUBDIR)/ld || exit 1; \
6a19fd82 33141 case $(srcdir) in \
7fc2ca22
PB
33142 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33143 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
33144 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a19fd82 33145 esac; \
7fc2ca22
PB
33146 srcdiroption="--srcdir=$${topdir}/ld"; \
33147 libsrcdir="$$s/ld"; \
6a19fd82
PB
33148 $(SHELL) $${libsrcdir}/configure \
33149 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 33150 @stage2_werror_flag@
6a19fd82
PB
33151
33152maybe-all-stage4-ld: all-stage4-ld
33153all-stage4-ld: configure-stage4-ld
ebc58bf8 33154 @$(MAKE) stage4-start
6a19fd82
PB
33155 @r=`${PWD_COMMAND}`; export r; \
33156 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33157 $(STAGE_HOST_EXPORTS) \
7fc2ca22 33158 cd $(HOST_SUBDIR)/ld && \
6a19fd82
PB
33159 $(MAKE) $(FLAGS_TO_PASS) \
33160 $(POSTSTAGE1_FLAGS_TO_PASS) \
ebc58bf8 33161
99df82b9
PB
33162
33163maybe-clean-stage4-ld: clean-stage4-ld
33164clean-stage4-ld:
33165 @[ -f ld/Makefile ] || [ -f stage4-ld/Makefile ] \
33166 || exit 0 ; \
33167 [ -f ld/Makefile ] || $(MAKE) stage4-start ; \
7fc2ca22 33168 cd $(HOST_SUBDIR)/ld && \
99df82b9
PB
33169 $(MAKE) $(FLAGS_TO_PASS) \
33170 $(POSTSTAGE1_FLAGS_TO_PASS) \
33171 clean
6a19fd82
PB
33172@endif ld-bootstrap
33173
99df82b9 33174
ebc58bf8
PB
33175.PHONY: configure-stage4-libcpp maybe-configure-stage4-libcpp
33176.PHONY: all-stage4-libcpp maybe-all-stage4-libcpp
99df82b9 33177.PHONY: clean-stage4-libcpp maybe-clean-stage4-libcpp
ebc58bf8 33178
6a19fd82
PB
33179maybe-configure-stage4-libcpp:
33180maybe-all-stage4-libcpp:
99df82b9 33181maybe-clean-stage4-libcpp:
6a19fd82
PB
33182
33183@if libcpp-bootstrap
33184maybe-configure-stage4-libcpp: configure-stage4-libcpp
ebc58bf8
PB
33185configure-stage4-libcpp:
33186 @$(MAKE) stage4-start
33187 @[ -f libcpp/Makefile ] && exit 0 || : ; \
6a19fd82
PB
33188 r=`${PWD_COMMAND}`; export r; \
33189 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33190 $(STAGE_HOST_EXPORTS) \
33191 echo Configuring stage 4 in libcpp ; \
7fc2ca22 33192 cd $(HOST_SUBDIR)/libcpp || exit 1; \
6a19fd82 33193 case $(srcdir) in \
7fc2ca22
PB
33194 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33195 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
33196 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a19fd82 33197 esac; \
7fc2ca22
PB
33198 srcdiroption="--srcdir=$${topdir}/libcpp"; \
33199 libsrcdir="$$s/libcpp"; \
6a19fd82
PB
33200 $(SHELL) $${libsrcdir}/configure \
33201 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 33202 @stage2_werror_flag@
6a19fd82
PB
33203
33204maybe-all-stage4-libcpp: all-stage4-libcpp
33205all-stage4-libcpp: configure-stage4-libcpp
ebc58bf8 33206 @$(MAKE) stage4-start
6a19fd82
PB
33207 @r=`${PWD_COMMAND}`; export r; \
33208 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33209 $(STAGE_HOST_EXPORTS) \
7fc2ca22 33210 cd $(HOST_SUBDIR)/libcpp && \
6a19fd82
PB
33211 $(MAKE) $(FLAGS_TO_PASS) \
33212 $(POSTSTAGE1_FLAGS_TO_PASS) \
ebc58bf8 33213
99df82b9
PB
33214
33215maybe-clean-stage4-libcpp: clean-stage4-libcpp
33216clean-stage4-libcpp:
33217 @[ -f libcpp/Makefile ] || [ -f stage4-libcpp/Makefile ] \
33218 || exit 0 ; \
33219 [ -f libcpp/Makefile ] || $(MAKE) stage4-start ; \
7fc2ca22 33220 cd $(HOST_SUBDIR)/libcpp && \
99df82b9
PB
33221 $(MAKE) $(FLAGS_TO_PASS) \
33222 $(POSTSTAGE1_FLAGS_TO_PASS) \
33223 clean
6a19fd82
PB
33224@endif libcpp-bootstrap
33225
99df82b9 33226
ebc58bf8
PB
33227.PHONY: configure-stage4-libiberty maybe-configure-stage4-libiberty
33228.PHONY: all-stage4-libiberty maybe-all-stage4-libiberty
99df82b9 33229.PHONY: clean-stage4-libiberty maybe-clean-stage4-libiberty
ebc58bf8 33230
6a19fd82
PB
33231maybe-configure-stage4-libiberty:
33232maybe-all-stage4-libiberty:
99df82b9 33233maybe-clean-stage4-libiberty:
6a19fd82
PB
33234
33235@if libiberty-bootstrap
33236maybe-configure-stage4-libiberty: configure-stage4-libiberty
ebc58bf8
PB
33237configure-stage4-libiberty:
33238 @$(MAKE) stage4-start
33239 @[ -f libiberty/Makefile ] && exit 0 || : ; \
6a19fd82
PB
33240 r=`${PWD_COMMAND}`; export r; \
33241 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33242 $(STAGE_HOST_EXPORTS) \
33243 echo Configuring stage 4 in libiberty ; \
7fc2ca22 33244 cd $(HOST_SUBDIR)/libiberty || exit 1; \
6a19fd82 33245 case $(srcdir) in \
7fc2ca22
PB
33246 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33247 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
33248 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a19fd82 33249 esac; \
7fc2ca22
PB
33250 srcdiroption="--srcdir=$${topdir}/libiberty"; \
33251 libsrcdir="$$s/libiberty"; \
6a19fd82
PB
33252 $(SHELL) $${libsrcdir}/configure \
33253 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 33254 @stage2_werror_flag@
6a19fd82
PB
33255
33256maybe-all-stage4-libiberty: all-stage4-libiberty
33257all-stage4-libiberty: configure-stage4-libiberty
ebc58bf8 33258 @$(MAKE) stage4-start
6a19fd82
PB
33259 @r=`${PWD_COMMAND}`; export r; \
33260 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33261 $(STAGE_HOST_EXPORTS) \
7fc2ca22 33262 cd $(HOST_SUBDIR)/libiberty && \
6a19fd82
PB
33263 $(MAKE) $(FLAGS_TO_PASS) \
33264 $(POSTSTAGE1_FLAGS_TO_PASS) \
ebc58bf8 33265
99df82b9
PB
33266
33267maybe-clean-stage4-libiberty: clean-stage4-libiberty
33268clean-stage4-libiberty:
33269 @[ -f libiberty/Makefile ] || [ -f stage4-libiberty/Makefile ] \
33270 || exit 0 ; \
33271 [ -f libiberty/Makefile ] || $(MAKE) stage4-start ; \
7fc2ca22 33272 cd $(HOST_SUBDIR)/libiberty && \
99df82b9
PB
33273 $(MAKE) $(FLAGS_TO_PASS) \
33274 $(POSTSTAGE1_FLAGS_TO_PASS) \
33275 clean
6a19fd82
PB
33276@endif libiberty-bootstrap
33277
99df82b9 33278
ebc58bf8
PB
33279.PHONY: configure-stage4-zlib maybe-configure-stage4-zlib
33280.PHONY: all-stage4-zlib maybe-all-stage4-zlib
99df82b9 33281.PHONY: clean-stage4-zlib maybe-clean-stage4-zlib
ebc58bf8 33282
6a19fd82
PB
33283maybe-configure-stage4-zlib:
33284maybe-all-stage4-zlib:
99df82b9 33285maybe-clean-stage4-zlib:
6a19fd82
PB
33286
33287@if zlib-bootstrap
33288maybe-configure-stage4-zlib: configure-stage4-zlib
ebc58bf8
PB
33289configure-stage4-zlib:
33290 @$(MAKE) stage4-start
33291 @[ -f zlib/Makefile ] && exit 0 || : ; \
6a19fd82
PB
33292 r=`${PWD_COMMAND}`; export r; \
33293 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33294 $(STAGE_HOST_EXPORTS) \
33295 echo Configuring stage 4 in zlib ; \
7fc2ca22 33296 cd $(HOST_SUBDIR)/zlib || exit 1; \
6a19fd82 33297 case $(srcdir) in \
7fc2ca22
PB
33298 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33299 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
33300 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a19fd82 33301 esac; \
7fc2ca22
PB
33302 srcdiroption="--srcdir=$${topdir}/zlib"; \
33303 libsrcdir="$$s/zlib"; \
6a19fd82
PB
33304 $(SHELL) $${libsrcdir}/configure \
33305 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 33306 @stage2_werror_flag@
6a19fd82
PB
33307
33308maybe-all-stage4-zlib: all-stage4-zlib
33309all-stage4-zlib: configure-stage4-zlib
ebc58bf8 33310 @$(MAKE) stage4-start
6a19fd82
PB
33311 @r=`${PWD_COMMAND}`; export r; \
33312 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33313 $(STAGE_HOST_EXPORTS) \
7fc2ca22 33314 cd $(HOST_SUBDIR)/zlib && \
6a19fd82
PB
33315 $(MAKE) $(FLAGS_TO_PASS) \
33316 $(POSTSTAGE1_FLAGS_TO_PASS) \
ebc58bf8 33317
99df82b9
PB
33318
33319maybe-clean-stage4-zlib: clean-stage4-zlib
33320clean-stage4-zlib:
33321 @[ -f zlib/Makefile ] || [ -f stage4-zlib/Makefile ] \
33322 || exit 0 ; \
33323 [ -f zlib/Makefile ] || $(MAKE) stage4-start ; \
7fc2ca22 33324 cd $(HOST_SUBDIR)/zlib && \
99df82b9
PB
33325 $(MAKE) $(FLAGS_TO_PASS) \
33326 $(POSTSTAGE1_FLAGS_TO_PASS) \
33327 clean
6a19fd82
PB
33328@endif zlib-bootstrap
33329
33330
99df82b9 33331
6a19fd82
PB
33332# FIXME: Will not need to be conditional when toplevel bootstrap is the
33333# only possibility, but now it conflicts with no-bootstrap rules
33334@if gcc-bootstrap
33335
ebc58bf8
PB
33336compare3:
33337 @if test -f stage3-lean; then \
33338 echo Cannot compare object files as stage 3 was deleted. ; \
33339 exit 0 ; \
33340 fi; \
33341 [ -f stage_current ] && $(MAKE) `cat stage_current`-end || : ; \
6a19fd82
PB
33342 @r=`${PWD_COMMAND}`; export r; \
33343 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33344 rm -f .bad_compare ; \
33345 cd stage4-gcc; \
33346 files=`find . -name "*$(objext)" -print` ; \
33347 cd .. ; \
33348 for file in $${files} ; do \
33349 f1=$$r/stage3-gcc/$$file; f2=$$r/stage4-gcc/$$file; \
33350 @do_compare@ > /dev/null 2>&1; \
33351 test $$? -eq 1 && echo $$file differs >> .bad_compare || true; \
33352 done ; \
33353 if [ -f .bad_compare ]; then \
33354 echo "Bootstrap comparison failure!"; \
33355 cat .bad_compare; \
33356 exit 1; \
33357 else \
33358 true; \
33359 fi ; \
33360 $(STAMP) compare3
ebc58bf8 33361 @bootstrap_lean@-rm -rf stage3-* ; $(STAMP) stage3-lean
6a19fd82
PB
33362
33363
33364
33365.PHONY: bootstrap4
ebc58bf8 33366bootstrap4: stage4-bubble compare3 all
6a19fd82
PB
33367
33368
99df82b9 33369# Rules to wipe a stage and all the following ones, also used for cleanstrap
6a19fd82 33370distclean-stage3:: distclean-stage4
99df82b9 33371.PHONY: distclean-stage4
6a19fd82
PB
33372distclean-stage4::
33373 [ -f stage_current ] && $(MAKE) `cat stage_current`-end || :
ebc58bf8 33374 rm -rf stage4-* compare3
6a19fd82
PB
33375
33376
33377@endif gcc-bootstrap
33378
33379
33380.PHONY: stageprofile-start stageprofile-end
33381
33382stageprofile-start::
ebc58bf8 33383 @[ -f stage_current ] && $(MAKE) `cat stage_current`-end || : ; \
6a19fd82 33384 echo stageprofile > stage_current ; \
7fc2ca22
PB
33385 echo stageprofile > stage_last; \
33386 $(mkinstalldirs) $(HOST_SUBDIR)
6a19fd82 33387@if bfd
7fc2ca22
PB
33388 @cd $(HOST_SUBDIR); [ -d stageprofile-bfd ] || \
33389 mkdir stageprofile-bfd; \
33390 set stageprofile-bfd bfd ; \
33391 @CREATE_LINK_TO_DIR@ ; \
33392 set stage1-bfd prev-bfd ; \
33393 @CREATE_LINK_TO_DIR@
6a19fd82
PB
33394@endif bfd
33395@if opcodes
7fc2ca22
PB
33396 @cd $(HOST_SUBDIR); [ -d stageprofile-opcodes ] || \
33397 mkdir stageprofile-opcodes; \
33398 set stageprofile-opcodes opcodes ; \
33399 @CREATE_LINK_TO_DIR@ ; \
33400 set stage1-opcodes prev-opcodes ; \
33401 @CREATE_LINK_TO_DIR@
6a19fd82
PB
33402@endif opcodes
33403@if binutils
7fc2ca22
PB
33404 @cd $(HOST_SUBDIR); [ -d stageprofile-binutils ] || \
33405 mkdir stageprofile-binutils; \
33406 set stageprofile-binutils binutils ; \
33407 @CREATE_LINK_TO_DIR@ ; \
33408 set stage1-binutils prev-binutils ; \
33409 @CREATE_LINK_TO_DIR@
6a19fd82
PB
33410@endif binutils
33411@if gas
7fc2ca22
PB
33412 @cd $(HOST_SUBDIR); [ -d stageprofile-gas ] || \
33413 mkdir stageprofile-gas; \
33414 set stageprofile-gas gas ; \
33415 @CREATE_LINK_TO_DIR@ ; \
33416 set stage1-gas prev-gas ; \
33417 @CREATE_LINK_TO_DIR@
6a19fd82
PB
33418@endif gas
33419@if gcc
7fc2ca22
PB
33420 @cd $(HOST_SUBDIR); [ -d stageprofile-gcc ] || \
33421 mkdir stageprofile-gcc; \
33422 set stageprofile-gcc gcc ; \
33423 @CREATE_LINK_TO_DIR@ ; \
33424 set stage1-gcc prev-gcc ; \
33425 @CREATE_LINK_TO_DIR@
6a19fd82
PB
33426@endif gcc
33427@if intl
7fc2ca22
PB
33428 @cd $(HOST_SUBDIR); [ -d stageprofile-intl ] || \
33429 mkdir stageprofile-intl; \
33430 set stageprofile-intl intl ; \
33431 @CREATE_LINK_TO_DIR@ ; \
33432 set stage1-intl prev-intl ; \
33433 @CREATE_LINK_TO_DIR@
6a19fd82
PB
33434@endif intl
33435@if ld
7fc2ca22
PB
33436 @cd $(HOST_SUBDIR); [ -d stageprofile-ld ] || \
33437 mkdir stageprofile-ld; \
33438 set stageprofile-ld ld ; \
33439 @CREATE_LINK_TO_DIR@ ; \
33440 set stage1-ld prev-ld ; \
33441 @CREATE_LINK_TO_DIR@
6a19fd82
PB
33442@endif ld
33443@if libcpp
7fc2ca22
PB
33444 @cd $(HOST_SUBDIR); [ -d stageprofile-libcpp ] || \
33445 mkdir stageprofile-libcpp; \
33446 set stageprofile-libcpp libcpp ; \
33447 @CREATE_LINK_TO_DIR@ ; \
33448 set stage1-libcpp prev-libcpp ; \
33449 @CREATE_LINK_TO_DIR@
6a19fd82 33450@endif libcpp
6a19fd82 33451@if libiberty
7fc2ca22
PB
33452 @cd $(HOST_SUBDIR); [ -d stageprofile-libiberty ] || \
33453 mkdir stageprofile-libiberty; \
33454 set stageprofile-libiberty libiberty ; \
33455 @CREATE_LINK_TO_DIR@ ; \
33456 set stage1-libiberty prev-libiberty ; \
33457 @CREATE_LINK_TO_DIR@
6a19fd82
PB
33458@endif libiberty
33459@if zlib
7fc2ca22
PB
33460 @cd $(HOST_SUBDIR); [ -d stageprofile-zlib ] || \
33461 mkdir stageprofile-zlib; \
33462 set stageprofile-zlib zlib ; \
33463 @CREATE_LINK_TO_DIR@ ; \
33464 set stage1-zlib prev-zlib ; \
33465 @CREATE_LINK_TO_DIR@
6a19fd82
PB
33466@endif zlib
33467
33468stageprofile-end::
ebc58bf8 33469 @rm -f stage_current
6a19fd82 33470@if bfd
7fc2ca22
PB
33471 @cd $(HOST_SUBDIR); set bfd stageprofile-bfd ; \
33472 @UNDO_LINK_TO_DIR@ ; \
33473 set prev-bfd stage1-bfd ; \
33474 @UNDO_LINK_TO_DIR@
6a19fd82
PB
33475@endif bfd
33476@if opcodes
7fc2ca22
PB
33477 @cd $(HOST_SUBDIR); set opcodes stageprofile-opcodes ; \
33478 @UNDO_LINK_TO_DIR@ ; \
33479 set prev-opcodes stage1-opcodes ; \
33480 @UNDO_LINK_TO_DIR@
6a19fd82
PB
33481@endif opcodes
33482@if binutils
7fc2ca22
PB
33483 @cd $(HOST_SUBDIR); set binutils stageprofile-binutils ; \
33484 @UNDO_LINK_TO_DIR@ ; \
33485 set prev-binutils stage1-binutils ; \
33486 @UNDO_LINK_TO_DIR@
6a19fd82
PB
33487@endif binutils
33488@if gas
7fc2ca22
PB
33489 @cd $(HOST_SUBDIR); set gas stageprofile-gas ; \
33490 @UNDO_LINK_TO_DIR@ ; \
33491 set prev-gas stage1-gas ; \
33492 @UNDO_LINK_TO_DIR@
6a19fd82
PB
33493@endif gas
33494@if gcc
7fc2ca22
PB
33495 @cd $(HOST_SUBDIR); set gcc stageprofile-gcc ; \
33496 @UNDO_LINK_TO_DIR@ ; \
33497 set prev-gcc stage1-gcc ; \
33498 @UNDO_LINK_TO_DIR@
6a19fd82
PB
33499@endif gcc
33500@if intl
7fc2ca22
PB
33501 @cd $(HOST_SUBDIR); set intl stageprofile-intl ; \
33502 @UNDO_LINK_TO_DIR@ ; \
33503 set prev-intl stage1-intl ; \
33504 @UNDO_LINK_TO_DIR@
6a19fd82
PB
33505@endif intl
33506@if ld
7fc2ca22
PB
33507 @cd $(HOST_SUBDIR); set ld stageprofile-ld ; \
33508 @UNDO_LINK_TO_DIR@ ; \
33509 set prev-ld stage1-ld ; \
33510 @UNDO_LINK_TO_DIR@
6a19fd82
PB
33511@endif ld
33512@if libcpp
7fc2ca22
PB
33513 @cd $(HOST_SUBDIR); set libcpp stageprofile-libcpp ; \
33514 @UNDO_LINK_TO_DIR@ ; \
33515 set prev-libcpp stage1-libcpp ; \
33516 @UNDO_LINK_TO_DIR@
6a19fd82 33517@endif libcpp
6a19fd82 33518@if libiberty
7fc2ca22
PB
33519 @cd $(HOST_SUBDIR); set libiberty stageprofile-libiberty ; \
33520 @UNDO_LINK_TO_DIR@ ; \
33521 set prev-libiberty stage1-libiberty ; \
33522 @UNDO_LINK_TO_DIR@
6a19fd82
PB
33523@endif libiberty
33524@if zlib
7fc2ca22
PB
33525 @cd $(HOST_SUBDIR); set zlib stageprofile-zlib ; \
33526 @UNDO_LINK_TO_DIR@ ; \
33527 set prev-zlib stage1-zlib ; \
33528 @UNDO_LINK_TO_DIR@
6a19fd82
PB
33529@endif zlib
33530
33531# Bubble a bugfix through all the stages up to stage profile. They
33532# are remade, but not reconfigured. The next stage (if any) will not
33533# be reconfigured as well.
33534.PHONY: stageprofile-bubble
33535stageprofile-bubble:: stage1-bubble
ebc58bf8
PB
33536 @if test -f stageprofile-lean || test -f stage1-lean ; then \
33537 echo Skipping rebuild of stageprofile ; \
33538 else \
99df82b9 33539 $(MAKE) $(RECURSE_FLAGS_TO_PASS) NOTPARALLEL= all-stageprofile; \
ebc58bf8 33540 fi
6a19fd82 33541
99df82b9 33542.PHONY: all-stageprofile clean-stageprofile
6a19fd82
PB
33543all-stageprofile: \
33544 maybe-all-stageprofile-bfd \
33545 maybe-all-stageprofile-opcodes \
5350aa8b 33546 maybe-all-stageprofile-binutils \
6a19fd82
PB
33547 maybe-all-stageprofile-gas \
33548 maybe-all-stageprofile-gcc \
33549 maybe-all-stageprofile-intl \
33550 maybe-all-stageprofile-ld \
33551 maybe-all-stageprofile-libcpp \
6a19fd82 33552 maybe-all-stageprofile-libiberty \
7fc2ca22 33553 maybe-all-stageprofile-zlib
6a19fd82 33554
99df82b9
PB
33555do-clean: clean-stageprofile
33556clean-stageprofile: \
33557 maybe-clean-stageprofile-bfd \
33558 maybe-clean-stageprofile-opcodes \
5350aa8b 33559 maybe-clean-stageprofile-binutils \
99df82b9
PB
33560 maybe-clean-stageprofile-gas \
33561 maybe-clean-stageprofile-gcc \
33562 maybe-clean-stageprofile-intl \
33563 maybe-clean-stageprofile-ld \
33564 maybe-clean-stageprofile-libcpp \
99df82b9 33565 maybe-clean-stageprofile-libiberty \
7fc2ca22 33566 maybe-clean-stageprofile-zlib
99df82b9 33567
6a19fd82 33568
ebc58bf8
PB
33569.PHONY: configure-stageprofile-bfd maybe-configure-stageprofile-bfd
33570.PHONY: all-stageprofile-bfd maybe-all-stageprofile-bfd
99df82b9 33571.PHONY: clean-stageprofile-bfd maybe-clean-stageprofile-bfd
ebc58bf8 33572
6a19fd82
PB
33573maybe-configure-stageprofile-bfd:
33574maybe-all-stageprofile-bfd:
99df82b9 33575maybe-clean-stageprofile-bfd:
6a19fd82
PB
33576
33577@if bfd-bootstrap
33578maybe-configure-stageprofile-bfd: configure-stageprofile-bfd
ebc58bf8
PB
33579configure-stageprofile-bfd:
33580 @$(MAKE) stageprofile-start
33581 @[ -f bfd/Makefile ] && exit 0 || : ; \
6a19fd82
PB
33582 r=`${PWD_COMMAND}`; export r; \
33583 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33584 $(STAGE_HOST_EXPORTS) \
33585 echo Configuring stage profile in bfd ; \
7fc2ca22 33586 cd $(HOST_SUBDIR)/bfd || exit 1; \
6a19fd82 33587 case $(srcdir) in \
7fc2ca22
PB
33588 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33589 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
33590 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a19fd82 33591 esac; \
7fc2ca22
PB
33592 srcdiroption="--srcdir=$${topdir}/bfd"; \
33593 libsrcdir="$$s/bfd"; \
6a19fd82
PB
33594 $(SHELL) $${libsrcdir}/configure \
33595 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 33596 @stage2_werror_flag@
6a19fd82
PB
33597
33598maybe-all-stageprofile-bfd: all-stageprofile-bfd
33599all-stageprofile-bfd: configure-stageprofile-bfd
ebc58bf8 33600 @$(MAKE) stageprofile-start
6a19fd82
PB
33601 @r=`${PWD_COMMAND}`; export r; \
33602 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33603 $(STAGE_HOST_EXPORTS) \
7fc2ca22 33604 cd $(HOST_SUBDIR)/bfd && \
6a19fd82
PB
33605 $(MAKE) $(FLAGS_TO_PASS) \
33606 $(POSTSTAGE1_FLAGS_TO_PASS) \
ebc58bf8 33607 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate"
99df82b9
PB
33608
33609maybe-clean-stageprofile-bfd: clean-stageprofile-bfd
33610clean-stageprofile-bfd:
33611 @[ -f bfd/Makefile ] || [ -f stageprofile-bfd/Makefile ] \
33612 || exit 0 ; \
33613 [ -f bfd/Makefile ] || $(MAKE) stageprofile-start ; \
7fc2ca22 33614 cd $(HOST_SUBDIR)/bfd && \
99df82b9
PB
33615 $(MAKE) $(FLAGS_TO_PASS) \
33616 $(POSTSTAGE1_FLAGS_TO_PASS) \
33617 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
6a19fd82
PB
33618@endif bfd-bootstrap
33619
99df82b9 33620
ebc58bf8
PB
33621.PHONY: configure-stageprofile-opcodes maybe-configure-stageprofile-opcodes
33622.PHONY: all-stageprofile-opcodes maybe-all-stageprofile-opcodes
99df82b9 33623.PHONY: clean-stageprofile-opcodes maybe-clean-stageprofile-opcodes
ebc58bf8 33624
6a19fd82
PB
33625maybe-configure-stageprofile-opcodes:
33626maybe-all-stageprofile-opcodes:
99df82b9 33627maybe-clean-stageprofile-opcodes:
6a19fd82
PB
33628
33629@if opcodes-bootstrap
33630maybe-configure-stageprofile-opcodes: configure-stageprofile-opcodes
ebc58bf8
PB
33631configure-stageprofile-opcodes:
33632 @$(MAKE) stageprofile-start
33633 @[ -f opcodes/Makefile ] && exit 0 || : ; \
6a19fd82
PB
33634 r=`${PWD_COMMAND}`; export r; \
33635 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33636 $(STAGE_HOST_EXPORTS) \
33637 echo Configuring stage profile in opcodes ; \
7fc2ca22 33638 cd $(HOST_SUBDIR)/opcodes || exit 1; \
6a19fd82 33639 case $(srcdir) in \
7fc2ca22
PB
33640 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33641 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
33642 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a19fd82 33643 esac; \
7fc2ca22
PB
33644 srcdiroption="--srcdir=$${topdir}/opcodes"; \
33645 libsrcdir="$$s/opcodes"; \
6a19fd82
PB
33646 $(SHELL) $${libsrcdir}/configure \
33647 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 33648 @stage2_werror_flag@
6a19fd82
PB
33649
33650maybe-all-stageprofile-opcodes: all-stageprofile-opcodes
33651all-stageprofile-opcodes: configure-stageprofile-opcodes
ebc58bf8 33652 @$(MAKE) stageprofile-start
6a19fd82
PB
33653 @r=`${PWD_COMMAND}`; export r; \
33654 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33655 $(STAGE_HOST_EXPORTS) \
7fc2ca22 33656 cd $(HOST_SUBDIR)/opcodes && \
6a19fd82
PB
33657 $(MAKE) $(FLAGS_TO_PASS) \
33658 $(POSTSTAGE1_FLAGS_TO_PASS) \
ebc58bf8 33659 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate"
99df82b9
PB
33660
33661maybe-clean-stageprofile-opcodes: clean-stageprofile-opcodes
33662clean-stageprofile-opcodes:
33663 @[ -f opcodes/Makefile ] || [ -f stageprofile-opcodes/Makefile ] \
33664 || exit 0 ; \
33665 [ -f opcodes/Makefile ] || $(MAKE) stageprofile-start ; \
7fc2ca22 33666 cd $(HOST_SUBDIR)/opcodes && \
99df82b9
PB
33667 $(MAKE) $(FLAGS_TO_PASS) \
33668 $(POSTSTAGE1_FLAGS_TO_PASS) \
33669 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
6a19fd82
PB
33670@endif opcodes-bootstrap
33671
99df82b9 33672
ebc58bf8
PB
33673.PHONY: configure-stageprofile-binutils maybe-configure-stageprofile-binutils
33674.PHONY: all-stageprofile-binutils maybe-all-stageprofile-binutils
99df82b9 33675.PHONY: clean-stageprofile-binutils maybe-clean-stageprofile-binutils
ebc58bf8 33676
6a19fd82
PB
33677maybe-configure-stageprofile-binutils:
33678maybe-all-stageprofile-binutils:
99df82b9 33679maybe-clean-stageprofile-binutils:
6a19fd82
PB
33680
33681@if binutils-bootstrap
33682maybe-configure-stageprofile-binutils: configure-stageprofile-binutils
ebc58bf8
PB
33683configure-stageprofile-binutils:
33684 @$(MAKE) stageprofile-start
33685 @[ -f binutils/Makefile ] && exit 0 || : ; \
6a19fd82
PB
33686 r=`${PWD_COMMAND}`; export r; \
33687 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33688 $(STAGE_HOST_EXPORTS) \
33689 echo Configuring stage profile in binutils ; \
7fc2ca22 33690 cd $(HOST_SUBDIR)/binutils || exit 1; \
6a19fd82 33691 case $(srcdir) in \
7fc2ca22
PB
33692 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33693 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
33694 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a19fd82 33695 esac; \
7fc2ca22
PB
33696 srcdiroption="--srcdir=$${topdir}/binutils"; \
33697 libsrcdir="$$s/binutils"; \
6a19fd82
PB
33698 $(SHELL) $${libsrcdir}/configure \
33699 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 33700 @stage2_werror_flag@
6a19fd82
PB
33701
33702maybe-all-stageprofile-binutils: all-stageprofile-binutils
33703all-stageprofile-binutils: configure-stageprofile-binutils
ebc58bf8 33704 @$(MAKE) stageprofile-start
6a19fd82
PB
33705 @r=`${PWD_COMMAND}`; export r; \
33706 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33707 $(STAGE_HOST_EXPORTS) \
7fc2ca22 33708 cd $(HOST_SUBDIR)/binutils && \
6a19fd82
PB
33709 $(MAKE) $(FLAGS_TO_PASS) \
33710 $(POSTSTAGE1_FLAGS_TO_PASS) \
ebc58bf8 33711 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate"
99df82b9
PB
33712
33713maybe-clean-stageprofile-binutils: clean-stageprofile-binutils
33714clean-stageprofile-binutils:
33715 @[ -f binutils/Makefile ] || [ -f stageprofile-binutils/Makefile ] \
33716 || exit 0 ; \
33717 [ -f binutils/Makefile ] || $(MAKE) stageprofile-start ; \
7fc2ca22 33718 cd $(HOST_SUBDIR)/binutils && \
99df82b9
PB
33719 $(MAKE) $(FLAGS_TO_PASS) \
33720 $(POSTSTAGE1_FLAGS_TO_PASS) \
33721 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
6a19fd82
PB
33722@endif binutils-bootstrap
33723
99df82b9 33724
ebc58bf8
PB
33725.PHONY: configure-stageprofile-gas maybe-configure-stageprofile-gas
33726.PHONY: all-stageprofile-gas maybe-all-stageprofile-gas
99df82b9 33727.PHONY: clean-stageprofile-gas maybe-clean-stageprofile-gas
ebc58bf8 33728
6a19fd82
PB
33729maybe-configure-stageprofile-gas:
33730maybe-all-stageprofile-gas:
99df82b9 33731maybe-clean-stageprofile-gas:
6a19fd82
PB
33732
33733@if gas-bootstrap
33734maybe-configure-stageprofile-gas: configure-stageprofile-gas
ebc58bf8
PB
33735configure-stageprofile-gas:
33736 @$(MAKE) stageprofile-start
33737 @[ -f gas/Makefile ] && exit 0 || : ; \
6a19fd82
PB
33738 r=`${PWD_COMMAND}`; export r; \
33739 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33740 $(STAGE_HOST_EXPORTS) \
33741 echo Configuring stage profile in gas ; \
7fc2ca22 33742 cd $(HOST_SUBDIR)/gas || exit 1; \
6a19fd82 33743 case $(srcdir) in \
7fc2ca22
PB
33744 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33745 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
33746 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a19fd82 33747 esac; \
7fc2ca22
PB
33748 srcdiroption="--srcdir=$${topdir}/gas"; \
33749 libsrcdir="$$s/gas"; \
6a19fd82
PB
33750 $(SHELL) $${libsrcdir}/configure \
33751 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 33752 @stage2_werror_flag@
6a19fd82
PB
33753
33754maybe-all-stageprofile-gas: all-stageprofile-gas
33755all-stageprofile-gas: configure-stageprofile-gas
ebc58bf8 33756 @$(MAKE) stageprofile-start
6a19fd82
PB
33757 @r=`${PWD_COMMAND}`; export r; \
33758 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33759 $(STAGE_HOST_EXPORTS) \
7fc2ca22 33760 cd $(HOST_SUBDIR)/gas && \
6a19fd82
PB
33761 $(MAKE) $(FLAGS_TO_PASS) \
33762 $(POSTSTAGE1_FLAGS_TO_PASS) \
ebc58bf8 33763 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate"
99df82b9
PB
33764
33765maybe-clean-stageprofile-gas: clean-stageprofile-gas
33766clean-stageprofile-gas:
33767 @[ -f gas/Makefile ] || [ -f stageprofile-gas/Makefile ] \
33768 || exit 0 ; \
33769 [ -f gas/Makefile ] || $(MAKE) stageprofile-start ; \
7fc2ca22 33770 cd $(HOST_SUBDIR)/gas && \
99df82b9
PB
33771 $(MAKE) $(FLAGS_TO_PASS) \
33772 $(POSTSTAGE1_FLAGS_TO_PASS) \
33773 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
6a19fd82
PB
33774@endif gas-bootstrap
33775
99df82b9 33776
ebc58bf8
PB
33777.PHONY: configure-stageprofile-gcc maybe-configure-stageprofile-gcc
33778.PHONY: all-stageprofile-gcc maybe-all-stageprofile-gcc
99df82b9 33779.PHONY: clean-stageprofile-gcc maybe-clean-stageprofile-gcc
ebc58bf8 33780
6a19fd82
PB
33781maybe-configure-stageprofile-gcc:
33782maybe-all-stageprofile-gcc:
99df82b9 33783maybe-clean-stageprofile-gcc:
6a19fd82
PB
33784
33785@if gcc-bootstrap
33786maybe-configure-stageprofile-gcc: configure-stageprofile-gcc
ebc58bf8
PB
33787configure-stageprofile-gcc:
33788 @$(MAKE) stageprofile-start
33789 @[ -f gcc/Makefile ] && exit 0 || : ; \
6a19fd82
PB
33790 r=`${PWD_COMMAND}`; export r; \
33791 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33792 $(STAGE_HOST_EXPORTS) \
33793 echo Configuring stage profile in gcc ; \
7fc2ca22 33794 cd $(HOST_SUBDIR)/gcc || exit 1; \
6a19fd82 33795 case $(srcdir) in \
7fc2ca22
PB
33796 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33797 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
33798 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a19fd82 33799 esac; \
7fc2ca22
PB
33800 srcdiroption="--srcdir=$${topdir}/gcc"; \
33801 libsrcdir="$$s/gcc"; \
6a19fd82
PB
33802 $(SHELL) $${libsrcdir}/configure \
33803 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 33804 @stage2_werror_flag@
6a19fd82
PB
33805
33806maybe-all-stageprofile-gcc: all-stageprofile-gcc
33807all-stageprofile-gcc: configure-stageprofile-gcc
ebc58bf8 33808 @$(MAKE) stageprofile-start
6a19fd82
PB
33809 @r=`${PWD_COMMAND}`; export r; \
33810 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33811 $(STAGE_HOST_EXPORTS) \
7fc2ca22 33812 cd $(HOST_SUBDIR)/gcc && \
6a19fd82
PB
33813 $(MAKE) $(FLAGS_TO_PASS) \
33814 $(POSTSTAGE1_FLAGS_TO_PASS) \
ebc58bf8 33815 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" $(EXTRA_GCC_FLAGS)
99df82b9
PB
33816
33817maybe-clean-stageprofile-gcc: clean-stageprofile-gcc
33818clean-stageprofile-gcc:
33819 @[ -f gcc/Makefile ] || [ -f stageprofile-gcc/Makefile ] \
33820 || exit 0 ; \
33821 [ -f gcc/Makefile ] || $(MAKE) stageprofile-start ; \
7fc2ca22 33822 cd $(HOST_SUBDIR)/gcc && \
99df82b9
PB
33823 $(MAKE) $(FLAGS_TO_PASS) \
33824 $(POSTSTAGE1_FLAGS_TO_PASS) \
33825 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" $(EXTRA_GCC_FLAGS) clean
6a19fd82
PB
33826@endif gcc-bootstrap
33827
99df82b9 33828
ebc58bf8
PB
33829.PHONY: configure-stageprofile-intl maybe-configure-stageprofile-intl
33830.PHONY: all-stageprofile-intl maybe-all-stageprofile-intl
99df82b9 33831.PHONY: clean-stageprofile-intl maybe-clean-stageprofile-intl
ebc58bf8 33832
6a19fd82
PB
33833maybe-configure-stageprofile-intl:
33834maybe-all-stageprofile-intl:
99df82b9 33835maybe-clean-stageprofile-intl:
6a19fd82
PB
33836
33837@if intl-bootstrap
33838maybe-configure-stageprofile-intl: configure-stageprofile-intl
ebc58bf8
PB
33839configure-stageprofile-intl:
33840 @$(MAKE) stageprofile-start
33841 @[ -f intl/Makefile ] && exit 0 || : ; \
6a19fd82
PB
33842 r=`${PWD_COMMAND}`; export r; \
33843 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33844 $(STAGE_HOST_EXPORTS) \
33845 echo Configuring stage profile in intl ; \
7fc2ca22 33846 cd $(HOST_SUBDIR)/intl || exit 1; \
6a19fd82 33847 case $(srcdir) in \
7fc2ca22
PB
33848 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33849 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
33850 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a19fd82 33851 esac; \
7fc2ca22
PB
33852 srcdiroption="--srcdir=$${topdir}/intl"; \
33853 libsrcdir="$$s/intl"; \
6a19fd82
PB
33854 $(SHELL) $${libsrcdir}/configure \
33855 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 33856 @stage2_werror_flag@
6a19fd82
PB
33857
33858maybe-all-stageprofile-intl: all-stageprofile-intl
33859all-stageprofile-intl: configure-stageprofile-intl
ebc58bf8 33860 @$(MAKE) stageprofile-start
6a19fd82
PB
33861 @r=`${PWD_COMMAND}`; export r; \
33862 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33863 $(STAGE_HOST_EXPORTS) \
7fc2ca22 33864 cd $(HOST_SUBDIR)/intl && \
6a19fd82
PB
33865 $(MAKE) $(FLAGS_TO_PASS) \
33866 $(POSTSTAGE1_FLAGS_TO_PASS) \
ebc58bf8 33867 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate"
99df82b9
PB
33868
33869maybe-clean-stageprofile-intl: clean-stageprofile-intl
33870clean-stageprofile-intl:
33871 @[ -f intl/Makefile ] || [ -f stageprofile-intl/Makefile ] \
33872 || exit 0 ; \
33873 [ -f intl/Makefile ] || $(MAKE) stageprofile-start ; \
7fc2ca22 33874 cd $(HOST_SUBDIR)/intl && \
99df82b9
PB
33875 $(MAKE) $(FLAGS_TO_PASS) \
33876 $(POSTSTAGE1_FLAGS_TO_PASS) \
33877 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
6a19fd82
PB
33878@endif intl-bootstrap
33879
99df82b9 33880
ebc58bf8
PB
33881.PHONY: configure-stageprofile-ld maybe-configure-stageprofile-ld
33882.PHONY: all-stageprofile-ld maybe-all-stageprofile-ld
99df82b9 33883.PHONY: clean-stageprofile-ld maybe-clean-stageprofile-ld
ebc58bf8 33884
6a19fd82
PB
33885maybe-configure-stageprofile-ld:
33886maybe-all-stageprofile-ld:
99df82b9 33887maybe-clean-stageprofile-ld:
6a19fd82
PB
33888
33889@if ld-bootstrap
33890maybe-configure-stageprofile-ld: configure-stageprofile-ld
ebc58bf8
PB
33891configure-stageprofile-ld:
33892 @$(MAKE) stageprofile-start
33893 @[ -f ld/Makefile ] && exit 0 || : ; \
6a19fd82
PB
33894 r=`${PWD_COMMAND}`; export r; \
33895 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33896 $(STAGE_HOST_EXPORTS) \
33897 echo Configuring stage profile in ld ; \
7fc2ca22 33898 cd $(HOST_SUBDIR)/ld || exit 1; \
6a19fd82 33899 case $(srcdir) in \
7fc2ca22
PB
33900 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33901 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
33902 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a19fd82 33903 esac; \
7fc2ca22
PB
33904 srcdiroption="--srcdir=$${topdir}/ld"; \
33905 libsrcdir="$$s/ld"; \
6a19fd82
PB
33906 $(SHELL) $${libsrcdir}/configure \
33907 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 33908 @stage2_werror_flag@
6a19fd82
PB
33909
33910maybe-all-stageprofile-ld: all-stageprofile-ld
33911all-stageprofile-ld: configure-stageprofile-ld
ebc58bf8 33912 @$(MAKE) stageprofile-start
6a19fd82
PB
33913 @r=`${PWD_COMMAND}`; export r; \
33914 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33915 $(STAGE_HOST_EXPORTS) \
7fc2ca22 33916 cd $(HOST_SUBDIR)/ld && \
6a19fd82
PB
33917 $(MAKE) $(FLAGS_TO_PASS) \
33918 $(POSTSTAGE1_FLAGS_TO_PASS) \
ebc58bf8 33919 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate"
99df82b9
PB
33920
33921maybe-clean-stageprofile-ld: clean-stageprofile-ld
33922clean-stageprofile-ld:
33923 @[ -f ld/Makefile ] || [ -f stageprofile-ld/Makefile ] \
33924 || exit 0 ; \
33925 [ -f ld/Makefile ] || $(MAKE) stageprofile-start ; \
7fc2ca22 33926 cd $(HOST_SUBDIR)/ld && \
99df82b9
PB
33927 $(MAKE) $(FLAGS_TO_PASS) \
33928 $(POSTSTAGE1_FLAGS_TO_PASS) \
33929 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
6a19fd82
PB
33930@endif ld-bootstrap
33931
99df82b9 33932
ebc58bf8
PB
33933.PHONY: configure-stageprofile-libcpp maybe-configure-stageprofile-libcpp
33934.PHONY: all-stageprofile-libcpp maybe-all-stageprofile-libcpp
99df82b9 33935.PHONY: clean-stageprofile-libcpp maybe-clean-stageprofile-libcpp
ebc58bf8 33936
6a19fd82
PB
33937maybe-configure-stageprofile-libcpp:
33938maybe-all-stageprofile-libcpp:
99df82b9 33939maybe-clean-stageprofile-libcpp:
6a19fd82
PB
33940
33941@if libcpp-bootstrap
33942maybe-configure-stageprofile-libcpp: configure-stageprofile-libcpp
ebc58bf8
PB
33943configure-stageprofile-libcpp:
33944 @$(MAKE) stageprofile-start
33945 @[ -f libcpp/Makefile ] && exit 0 || : ; \
6a19fd82
PB
33946 r=`${PWD_COMMAND}`; export r; \
33947 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33948 $(STAGE_HOST_EXPORTS) \
33949 echo Configuring stage profile in libcpp ; \
7fc2ca22 33950 cd $(HOST_SUBDIR)/libcpp || exit 1; \
6a19fd82 33951 case $(srcdir) in \
7fc2ca22
PB
33952 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33953 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
33954 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a19fd82 33955 esac; \
7fc2ca22
PB
33956 srcdiroption="--srcdir=$${topdir}/libcpp"; \
33957 libsrcdir="$$s/libcpp"; \
6a19fd82
PB
33958 $(SHELL) $${libsrcdir}/configure \
33959 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 33960 @stage2_werror_flag@
6a19fd82
PB
33961
33962maybe-all-stageprofile-libcpp: all-stageprofile-libcpp
33963all-stageprofile-libcpp: configure-stageprofile-libcpp
ebc58bf8 33964 @$(MAKE) stageprofile-start
6a19fd82
PB
33965 @r=`${PWD_COMMAND}`; export r; \
33966 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33967 $(STAGE_HOST_EXPORTS) \
7fc2ca22 33968 cd $(HOST_SUBDIR)/libcpp && \
6a19fd82
PB
33969 $(MAKE) $(FLAGS_TO_PASS) \
33970 $(POSTSTAGE1_FLAGS_TO_PASS) \
ebc58bf8 33971 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate"
99df82b9
PB
33972
33973maybe-clean-stageprofile-libcpp: clean-stageprofile-libcpp
33974clean-stageprofile-libcpp:
33975 @[ -f libcpp/Makefile ] || [ -f stageprofile-libcpp/Makefile ] \
33976 || exit 0 ; \
33977 [ -f libcpp/Makefile ] || $(MAKE) stageprofile-start ; \
7fc2ca22 33978 cd $(HOST_SUBDIR)/libcpp && \
99df82b9
PB
33979 $(MAKE) $(FLAGS_TO_PASS) \
33980 $(POSTSTAGE1_FLAGS_TO_PASS) \
33981 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
6a19fd82
PB
33982@endif libcpp-bootstrap
33983
99df82b9 33984
ebc58bf8
PB
33985.PHONY: configure-stageprofile-libiberty maybe-configure-stageprofile-libiberty
33986.PHONY: all-stageprofile-libiberty maybe-all-stageprofile-libiberty
99df82b9 33987.PHONY: clean-stageprofile-libiberty maybe-clean-stageprofile-libiberty
ebc58bf8 33988
6a19fd82
PB
33989maybe-configure-stageprofile-libiberty:
33990maybe-all-stageprofile-libiberty:
99df82b9 33991maybe-clean-stageprofile-libiberty:
6a19fd82
PB
33992
33993@if libiberty-bootstrap
33994maybe-configure-stageprofile-libiberty: configure-stageprofile-libiberty
ebc58bf8
PB
33995configure-stageprofile-libiberty:
33996 @$(MAKE) stageprofile-start
33997 @[ -f libiberty/Makefile ] && exit 0 || : ; \
6a19fd82
PB
33998 r=`${PWD_COMMAND}`; export r; \
33999 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34000 $(STAGE_HOST_EXPORTS) \
34001 echo Configuring stage profile in libiberty ; \
7fc2ca22 34002 cd $(HOST_SUBDIR)/libiberty || exit 1; \
6a19fd82 34003 case $(srcdir) in \
7fc2ca22
PB
34004 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34005 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
34006 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a19fd82 34007 esac; \
7fc2ca22
PB
34008 srcdiroption="--srcdir=$${topdir}/libiberty"; \
34009 libsrcdir="$$s/libiberty"; \
6a19fd82
PB
34010 $(SHELL) $${libsrcdir}/configure \
34011 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 34012 @stage2_werror_flag@
6a19fd82
PB
34013
34014maybe-all-stageprofile-libiberty: all-stageprofile-libiberty
34015all-stageprofile-libiberty: configure-stageprofile-libiberty
ebc58bf8 34016 @$(MAKE) stageprofile-start
6a19fd82
PB
34017 @r=`${PWD_COMMAND}`; export r; \
34018 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34019 $(STAGE_HOST_EXPORTS) \
7fc2ca22 34020 cd $(HOST_SUBDIR)/libiberty && \
6a19fd82
PB
34021 $(MAKE) $(FLAGS_TO_PASS) \
34022 $(POSTSTAGE1_FLAGS_TO_PASS) \
ebc58bf8 34023 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate"
99df82b9
PB
34024
34025maybe-clean-stageprofile-libiberty: clean-stageprofile-libiberty
34026clean-stageprofile-libiberty:
34027 @[ -f libiberty/Makefile ] || [ -f stageprofile-libiberty/Makefile ] \
34028 || exit 0 ; \
34029 [ -f libiberty/Makefile ] || $(MAKE) stageprofile-start ; \
7fc2ca22 34030 cd $(HOST_SUBDIR)/libiberty && \
99df82b9
PB
34031 $(MAKE) $(FLAGS_TO_PASS) \
34032 $(POSTSTAGE1_FLAGS_TO_PASS) \
34033 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
6a19fd82
PB
34034@endif libiberty-bootstrap
34035
99df82b9 34036
ebc58bf8
PB
34037.PHONY: configure-stageprofile-zlib maybe-configure-stageprofile-zlib
34038.PHONY: all-stageprofile-zlib maybe-all-stageprofile-zlib
99df82b9 34039.PHONY: clean-stageprofile-zlib maybe-clean-stageprofile-zlib
ebc58bf8 34040
6a19fd82
PB
34041maybe-configure-stageprofile-zlib:
34042maybe-all-stageprofile-zlib:
99df82b9 34043maybe-clean-stageprofile-zlib:
6a19fd82
PB
34044
34045@if zlib-bootstrap
34046maybe-configure-stageprofile-zlib: configure-stageprofile-zlib
ebc58bf8
PB
34047configure-stageprofile-zlib:
34048 @$(MAKE) stageprofile-start
34049 @[ -f zlib/Makefile ] && exit 0 || : ; \
6a19fd82
PB
34050 r=`${PWD_COMMAND}`; export r; \
34051 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34052 $(STAGE_HOST_EXPORTS) \
34053 echo Configuring stage profile in zlib ; \
7fc2ca22 34054 cd $(HOST_SUBDIR)/zlib || exit 1; \
6a19fd82 34055 case $(srcdir) in \
7fc2ca22
PB
34056 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34057 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
34058 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a19fd82 34059 esac; \
7fc2ca22
PB
34060 srcdiroption="--srcdir=$${topdir}/zlib"; \
34061 libsrcdir="$$s/zlib"; \
6a19fd82
PB
34062 $(SHELL) $${libsrcdir}/configure \
34063 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 34064 @stage2_werror_flag@
6a19fd82
PB
34065
34066maybe-all-stageprofile-zlib: all-stageprofile-zlib
34067all-stageprofile-zlib: configure-stageprofile-zlib
ebc58bf8 34068 @$(MAKE) stageprofile-start
6a19fd82
PB
34069 @r=`${PWD_COMMAND}`; export r; \
34070 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34071 $(STAGE_HOST_EXPORTS) \
7fc2ca22 34072 cd $(HOST_SUBDIR)/zlib && \
6a19fd82
PB
34073 $(MAKE) $(FLAGS_TO_PASS) \
34074 $(POSTSTAGE1_FLAGS_TO_PASS) \
ebc58bf8 34075 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate"
99df82b9
PB
34076
34077maybe-clean-stageprofile-zlib: clean-stageprofile-zlib
34078clean-stageprofile-zlib:
34079 @[ -f zlib/Makefile ] || [ -f stageprofile-zlib/Makefile ] \
34080 || exit 0 ; \
34081 [ -f zlib/Makefile ] || $(MAKE) stageprofile-start ; \
7fc2ca22 34082 cd $(HOST_SUBDIR)/zlib && \
99df82b9
PB
34083 $(MAKE) $(FLAGS_TO_PASS) \
34084 $(POSTSTAGE1_FLAGS_TO_PASS) \
34085 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
6a19fd82
PB
34086@endif zlib-bootstrap
34087
34088
99df82b9 34089
6a19fd82
PB
34090# FIXME: Will not need to be conditional when toplevel bootstrap is the
34091# only possibility, but now it conflicts with no-bootstrap rules
34092@if gcc-bootstrap
34093
34094
34095
34096
99df82b9 34097# Rules to wipe a stage and all the following ones, also used for cleanstrap
6a19fd82 34098distclean-stage1:: distclean-stageprofile
99df82b9 34099.PHONY: distclean-stageprofile
6a19fd82
PB
34100distclean-stageprofile::
34101 [ -f stage_current ] && $(MAKE) `cat stage_current`-end || :
ebc58bf8 34102 rm -rf stageprofile-*
35269421
PB
34103
34104
6a19fd82 34105@endif gcc-bootstrap
35269421
PB
34106
34107
6a19fd82 34108.PHONY: stagefeedback-start stagefeedback-end
35269421 34109
6a19fd82 34110stagefeedback-start::
ebc58bf8 34111 @[ -f stage_current ] && $(MAKE) `cat stage_current`-end || : ; \
6a19fd82 34112 echo stagefeedback > stage_current ; \
7fc2ca22
PB
34113 echo stagefeedback > stage_last; \
34114 $(mkinstalldirs) $(HOST_SUBDIR)
6a19fd82 34115@if bfd
7fc2ca22
PB
34116 @cd $(HOST_SUBDIR); [ -d stagefeedback-bfd ] || \
34117 mkdir stagefeedback-bfd; \
34118 set stagefeedback-bfd bfd ; \
34119 @CREATE_LINK_TO_DIR@ ; \
34120 set stage1-bfd prev-bfd ; \
34121 @CREATE_LINK_TO_DIR@
6a19fd82
PB
34122@endif bfd
34123@if opcodes
7fc2ca22
PB
34124 @cd $(HOST_SUBDIR); [ -d stagefeedback-opcodes ] || \
34125 mkdir stagefeedback-opcodes; \
34126 set stagefeedback-opcodes opcodes ; \
34127 @CREATE_LINK_TO_DIR@ ; \
34128 set stage1-opcodes prev-opcodes ; \
34129 @CREATE_LINK_TO_DIR@
6a19fd82
PB
34130@endif opcodes
34131@if binutils
7fc2ca22
PB
34132 @cd $(HOST_SUBDIR); [ -d stagefeedback-binutils ] || \
34133 mkdir stagefeedback-binutils; \
34134 set stagefeedback-binutils binutils ; \
34135 @CREATE_LINK_TO_DIR@ ; \
34136 set stage1-binutils prev-binutils ; \
34137 @CREATE_LINK_TO_DIR@
6a19fd82
PB
34138@endif binutils
34139@if gas
7fc2ca22
PB
34140 @cd $(HOST_SUBDIR); [ -d stagefeedback-gas ] || \
34141 mkdir stagefeedback-gas; \
34142 set stagefeedback-gas gas ; \
34143 @CREATE_LINK_TO_DIR@ ; \
34144 set stage1-gas prev-gas ; \
34145 @CREATE_LINK_TO_DIR@
6a19fd82
PB
34146@endif gas
34147@if gcc
7fc2ca22
PB
34148 @cd $(HOST_SUBDIR); [ -d stagefeedback-gcc ] || \
34149 mkdir stagefeedback-gcc; \
34150 set stagefeedback-gcc gcc ; \
34151 @CREATE_LINK_TO_DIR@ ; \
34152 set stage1-gcc prev-gcc ; \
34153 @CREATE_LINK_TO_DIR@
6a19fd82
PB
34154@endif gcc
34155@if intl
7fc2ca22
PB
34156 @cd $(HOST_SUBDIR); [ -d stagefeedback-intl ] || \
34157 mkdir stagefeedback-intl; \
34158 set stagefeedback-intl intl ; \
34159 @CREATE_LINK_TO_DIR@ ; \
34160 set stage1-intl prev-intl ; \
34161 @CREATE_LINK_TO_DIR@
6a19fd82
PB
34162@endif intl
34163@if ld
7fc2ca22
PB
34164 @cd $(HOST_SUBDIR); [ -d stagefeedback-ld ] || \
34165 mkdir stagefeedback-ld; \
34166 set stagefeedback-ld ld ; \
34167 @CREATE_LINK_TO_DIR@ ; \
34168 set stage1-ld prev-ld ; \
34169 @CREATE_LINK_TO_DIR@
6a19fd82
PB
34170@endif ld
34171@if libcpp
7fc2ca22
PB
34172 @cd $(HOST_SUBDIR); [ -d stagefeedback-libcpp ] || \
34173 mkdir stagefeedback-libcpp; \
34174 set stagefeedback-libcpp libcpp ; \
34175 @CREATE_LINK_TO_DIR@ ; \
34176 set stage1-libcpp prev-libcpp ; \
34177 @CREATE_LINK_TO_DIR@
6a19fd82 34178@endif libcpp
6a19fd82 34179@if libiberty
7fc2ca22
PB
34180 @cd $(HOST_SUBDIR); [ -d stagefeedback-libiberty ] || \
34181 mkdir stagefeedback-libiberty; \
34182 set stagefeedback-libiberty libiberty ; \
34183 @CREATE_LINK_TO_DIR@ ; \
34184 set stage1-libiberty prev-libiberty ; \
34185 @CREATE_LINK_TO_DIR@
6a19fd82
PB
34186@endif libiberty
34187@if zlib
7fc2ca22
PB
34188 @cd $(HOST_SUBDIR); [ -d stagefeedback-zlib ] || \
34189 mkdir stagefeedback-zlib; \
34190 set stagefeedback-zlib zlib ; \
34191 @CREATE_LINK_TO_DIR@ ; \
34192 set stage1-zlib prev-zlib ; \
34193 @CREATE_LINK_TO_DIR@
6a19fd82 34194@endif zlib
35269421 34195
6a19fd82 34196stagefeedback-end::
ebc58bf8 34197 @rm -f stage_current
6a19fd82 34198@if bfd
7fc2ca22
PB
34199 @cd $(HOST_SUBDIR); set bfd stagefeedback-bfd ; \
34200 @UNDO_LINK_TO_DIR@ ; \
34201 set prev-bfd stage1-bfd ; \
34202 @UNDO_LINK_TO_DIR@
6a19fd82
PB
34203@endif bfd
34204@if opcodes
7fc2ca22
PB
34205 @cd $(HOST_SUBDIR); set opcodes stagefeedback-opcodes ; \
34206 @UNDO_LINK_TO_DIR@ ; \
34207 set prev-opcodes stage1-opcodes ; \
34208 @UNDO_LINK_TO_DIR@
6a19fd82
PB
34209@endif opcodes
34210@if binutils
7fc2ca22
PB
34211 @cd $(HOST_SUBDIR); set binutils stagefeedback-binutils ; \
34212 @UNDO_LINK_TO_DIR@ ; \
34213 set prev-binutils stage1-binutils ; \
34214 @UNDO_LINK_TO_DIR@
6a19fd82
PB
34215@endif binutils
34216@if gas
7fc2ca22
PB
34217 @cd $(HOST_SUBDIR); set gas stagefeedback-gas ; \
34218 @UNDO_LINK_TO_DIR@ ; \
34219 set prev-gas stage1-gas ; \
34220 @UNDO_LINK_TO_DIR@
6a19fd82
PB
34221@endif gas
34222@if gcc
7fc2ca22
PB
34223 @cd $(HOST_SUBDIR); set gcc stagefeedback-gcc ; \
34224 @UNDO_LINK_TO_DIR@ ; \
34225 set prev-gcc stage1-gcc ; \
34226 @UNDO_LINK_TO_DIR@
6a19fd82
PB
34227@endif gcc
34228@if intl
7fc2ca22
PB
34229 @cd $(HOST_SUBDIR); set intl stagefeedback-intl ; \
34230 @UNDO_LINK_TO_DIR@ ; \
34231 set prev-intl stage1-intl ; \
34232 @UNDO_LINK_TO_DIR@
6a19fd82
PB
34233@endif intl
34234@if ld
7fc2ca22
PB
34235 @cd $(HOST_SUBDIR); set ld stagefeedback-ld ; \
34236 @UNDO_LINK_TO_DIR@ ; \
34237 set prev-ld stage1-ld ; \
34238 @UNDO_LINK_TO_DIR@
6a19fd82
PB
34239@endif ld
34240@if libcpp
7fc2ca22
PB
34241 @cd $(HOST_SUBDIR); set libcpp stagefeedback-libcpp ; \
34242 @UNDO_LINK_TO_DIR@ ; \
34243 set prev-libcpp stage1-libcpp ; \
34244 @UNDO_LINK_TO_DIR@
6a19fd82 34245@endif libcpp
6a19fd82 34246@if libiberty
7fc2ca22
PB
34247 @cd $(HOST_SUBDIR); set libiberty stagefeedback-libiberty ; \
34248 @UNDO_LINK_TO_DIR@ ; \
34249 set prev-libiberty stage1-libiberty ; \
34250 @UNDO_LINK_TO_DIR@
6a19fd82
PB
34251@endif libiberty
34252@if zlib
7fc2ca22
PB
34253 @cd $(HOST_SUBDIR); set zlib stagefeedback-zlib ; \
34254 @UNDO_LINK_TO_DIR@ ; \
34255 set prev-zlib stage1-zlib ; \
34256 @UNDO_LINK_TO_DIR@
6a19fd82 34257@endif zlib
35269421 34258
6a19fd82 34259# Bubble a bugfix through all the stages up to stage feedback. They
35269421
PB
34260# are remade, but not reconfigured. The next stage (if any) will not
34261# be reconfigured as well.
6a19fd82
PB
34262.PHONY: stagefeedback-bubble
34263stagefeedback-bubble:: stage1-bubble
ebc58bf8
PB
34264 @if test -f stagefeedback-lean || test -f stage1-lean ; then \
34265 echo Skipping rebuild of stagefeedback ; \
34266 else \
99df82b9 34267 $(MAKE) $(RECURSE_FLAGS_TO_PASS) NOTPARALLEL= all-stagefeedback; \
ebc58bf8 34268 fi
6a19fd82 34269
99df82b9 34270.PHONY: all-stagefeedback clean-stagefeedback
6a19fd82
PB
34271all-stagefeedback: \
34272 maybe-all-stagefeedback-bfd \
34273 maybe-all-stagefeedback-opcodes \
5350aa8b 34274 maybe-all-stagefeedback-binutils \
6a19fd82
PB
34275 maybe-all-stagefeedback-gas \
34276 maybe-all-stagefeedback-gcc \
34277 maybe-all-stagefeedback-intl \
34278 maybe-all-stagefeedback-ld \
34279 maybe-all-stagefeedback-libcpp \
6a19fd82 34280 maybe-all-stagefeedback-libiberty \
7fc2ca22 34281 maybe-all-stagefeedback-zlib
6a19fd82 34282
99df82b9
PB
34283do-clean: clean-stagefeedback
34284clean-stagefeedback: \
34285 maybe-clean-stagefeedback-bfd \
34286 maybe-clean-stagefeedback-opcodes \
5350aa8b 34287 maybe-clean-stagefeedback-binutils \
99df82b9
PB
34288 maybe-clean-stagefeedback-gas \
34289 maybe-clean-stagefeedback-gcc \
34290 maybe-clean-stagefeedback-intl \
34291 maybe-clean-stagefeedback-ld \
34292 maybe-clean-stagefeedback-libcpp \
99df82b9 34293 maybe-clean-stagefeedback-libiberty \
7fc2ca22 34294 maybe-clean-stagefeedback-zlib
99df82b9 34295
6a19fd82 34296
ebc58bf8
PB
34297.PHONY: configure-stagefeedback-bfd maybe-configure-stagefeedback-bfd
34298.PHONY: all-stagefeedback-bfd maybe-all-stagefeedback-bfd
99df82b9 34299.PHONY: clean-stagefeedback-bfd maybe-clean-stagefeedback-bfd
ebc58bf8 34300
6a19fd82
PB
34301maybe-configure-stagefeedback-bfd:
34302maybe-all-stagefeedback-bfd:
99df82b9 34303maybe-clean-stagefeedback-bfd:
6a19fd82
PB
34304
34305@if bfd-bootstrap
34306maybe-configure-stagefeedback-bfd: configure-stagefeedback-bfd
ebc58bf8
PB
34307configure-stagefeedback-bfd:
34308 @$(MAKE) stagefeedback-start
34309 @[ -f bfd/Makefile ] && exit 0 || : ; \
6a19fd82
PB
34310 r=`${PWD_COMMAND}`; export r; \
34311 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34312 $(STAGE_HOST_EXPORTS) \
34313 echo Configuring stage feedback in bfd ; \
7fc2ca22 34314 cd $(HOST_SUBDIR)/bfd || exit 1; \
6a19fd82 34315 case $(srcdir) in \
7fc2ca22
PB
34316 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34317 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
34318 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a19fd82 34319 esac; \
7fc2ca22
PB
34320 srcdiroption="--srcdir=$${topdir}/bfd"; \
34321 libsrcdir="$$s/bfd"; \
6a19fd82
PB
34322 $(SHELL) $${libsrcdir}/configure \
34323 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 34324 @stage2_werror_flag@
21ff191e 34325
6a19fd82
PB
34326maybe-all-stagefeedback-bfd: all-stagefeedback-bfd
34327all-stagefeedback-bfd: configure-stagefeedback-bfd
ebc58bf8 34328 @$(MAKE) stagefeedback-start
6a19fd82
PB
34329 @r=`${PWD_COMMAND}`; export r; \
34330 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34331 $(STAGE_HOST_EXPORTS) \
7fc2ca22 34332 cd $(HOST_SUBDIR)/bfd && \
6a19fd82
PB
34333 $(MAKE) $(FLAGS_TO_PASS) \
34334 $(POSTSTAGE1_FLAGS_TO_PASS) \
ebc58bf8 34335 CFLAGS="$(BOOT_CFLAGS) -fprofile-use"
99df82b9
PB
34336
34337maybe-clean-stagefeedback-bfd: clean-stagefeedback-bfd
34338clean-stagefeedback-bfd:
34339 @[ -f bfd/Makefile ] || [ -f stagefeedback-bfd/Makefile ] \
34340 || exit 0 ; \
34341 [ -f bfd/Makefile ] || $(MAKE) stagefeedback-start ; \
7fc2ca22 34342 cd $(HOST_SUBDIR)/bfd && \
99df82b9
PB
34343 $(MAKE) $(FLAGS_TO_PASS) \
34344 $(POSTSTAGE1_FLAGS_TO_PASS) \
34345 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
6a19fd82 34346@endif bfd-bootstrap
35269421 34347
99df82b9 34348
ebc58bf8
PB
34349.PHONY: configure-stagefeedback-opcodes maybe-configure-stagefeedback-opcodes
34350.PHONY: all-stagefeedback-opcodes maybe-all-stagefeedback-opcodes
99df82b9 34351.PHONY: clean-stagefeedback-opcodes maybe-clean-stagefeedback-opcodes
ebc58bf8 34352
6a19fd82
PB
34353maybe-configure-stagefeedback-opcodes:
34354maybe-all-stagefeedback-opcodes:
99df82b9 34355maybe-clean-stagefeedback-opcodes:
21ff191e 34356
6a19fd82
PB
34357@if opcodes-bootstrap
34358maybe-configure-stagefeedback-opcodes: configure-stagefeedback-opcodes
ebc58bf8
PB
34359configure-stagefeedback-opcodes:
34360 @$(MAKE) stagefeedback-start
34361 @[ -f opcodes/Makefile ] && exit 0 || : ; \
457eaf16 34362 r=`${PWD_COMMAND}`; export r; \
a675b75a
DD
34363 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34364 $(STAGE_HOST_EXPORTS) \
6a19fd82 34365 echo Configuring stage feedback in opcodes ; \
7fc2ca22 34366 cd $(HOST_SUBDIR)/opcodes || exit 1; \
457eaf16 34367 case $(srcdir) in \
7fc2ca22
PB
34368 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34369 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
34370 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
457eaf16 34371 esac; \
7fc2ca22
PB
34372 srcdiroption="--srcdir=$${topdir}/opcodes"; \
34373 libsrcdir="$$s/opcodes"; \
457eaf16 34374 $(SHELL) $${libsrcdir}/configure \
35269421 34375 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 34376 @stage2_werror_flag@
457eaf16 34377
6a19fd82
PB
34378maybe-all-stagefeedback-opcodes: all-stagefeedback-opcodes
34379all-stagefeedback-opcodes: configure-stagefeedback-opcodes
ebc58bf8 34380 @$(MAKE) stagefeedback-start
35269421 34381 @r=`${PWD_COMMAND}`; export r; \
a675b75a
DD
34382 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34383 $(STAGE_HOST_EXPORTS) \
7fc2ca22 34384 cd $(HOST_SUBDIR)/opcodes && \
6a19fd82 34385 $(MAKE) $(FLAGS_TO_PASS) \
21ff191e 34386 $(POSTSTAGE1_FLAGS_TO_PASS) \
ebc58bf8 34387 CFLAGS="$(BOOT_CFLAGS) -fprofile-use"
99df82b9
PB
34388
34389maybe-clean-stagefeedback-opcodes: clean-stagefeedback-opcodes
34390clean-stagefeedback-opcodes:
34391 @[ -f opcodes/Makefile ] || [ -f stagefeedback-opcodes/Makefile ] \
34392 || exit 0 ; \
34393 [ -f opcodes/Makefile ] || $(MAKE) stagefeedback-start ; \
7fc2ca22 34394 cd $(HOST_SUBDIR)/opcodes && \
99df82b9
PB
34395 $(MAKE) $(FLAGS_TO_PASS) \
34396 $(POSTSTAGE1_FLAGS_TO_PASS) \
34397 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
6a19fd82 34398@endif opcodes-bootstrap
457eaf16 34399
99df82b9 34400
ebc58bf8
PB
34401.PHONY: configure-stagefeedback-binutils maybe-configure-stagefeedback-binutils
34402.PHONY: all-stagefeedback-binutils maybe-all-stagefeedback-binutils
99df82b9 34403.PHONY: clean-stagefeedback-binutils maybe-clean-stagefeedback-binutils
ebc58bf8 34404
6a19fd82
PB
34405maybe-configure-stagefeedback-binutils:
34406maybe-all-stagefeedback-binutils:
99df82b9 34407maybe-clean-stagefeedback-binutils:
457eaf16 34408
6a19fd82
PB
34409@if binutils-bootstrap
34410maybe-configure-stagefeedback-binutils: configure-stagefeedback-binutils
ebc58bf8
PB
34411configure-stagefeedback-binutils:
34412 @$(MAKE) stagefeedback-start
34413 @[ -f binutils/Makefile ] && exit 0 || : ; \
6a19fd82
PB
34414 r=`${PWD_COMMAND}`; export r; \
34415 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34416 $(STAGE_HOST_EXPORTS) \
34417 echo Configuring stage feedback in binutils ; \
7fc2ca22 34418 cd $(HOST_SUBDIR)/binutils || exit 1; \
6a19fd82 34419 case $(srcdir) in \
7fc2ca22
PB
34420 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34421 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
34422 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a19fd82 34423 esac; \
7fc2ca22
PB
34424 srcdiroption="--srcdir=$${topdir}/binutils"; \
34425 libsrcdir="$$s/binutils"; \
6a19fd82
PB
34426 $(SHELL) $${libsrcdir}/configure \
34427 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 34428 @stage2_werror_flag@
e1666221 34429
6a19fd82
PB
34430maybe-all-stagefeedback-binutils: all-stagefeedback-binutils
34431all-stagefeedback-binutils: configure-stagefeedback-binutils
ebc58bf8 34432 @$(MAKE) stagefeedback-start
6a19fd82
PB
34433 @r=`${PWD_COMMAND}`; export r; \
34434 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34435 $(STAGE_HOST_EXPORTS) \
7fc2ca22 34436 cd $(HOST_SUBDIR)/binutils && \
6a19fd82
PB
34437 $(MAKE) $(FLAGS_TO_PASS) \
34438 $(POSTSTAGE1_FLAGS_TO_PASS) \
ebc58bf8 34439 CFLAGS="$(BOOT_CFLAGS) -fprofile-use"
99df82b9
PB
34440
34441maybe-clean-stagefeedback-binutils: clean-stagefeedback-binutils
34442clean-stagefeedback-binutils:
34443 @[ -f binutils/Makefile ] || [ -f stagefeedback-binutils/Makefile ] \
34444 || exit 0 ; \
34445 [ -f binutils/Makefile ] || $(MAKE) stagefeedback-start ; \
7fc2ca22 34446 cd $(HOST_SUBDIR)/binutils && \
99df82b9
PB
34447 $(MAKE) $(FLAGS_TO_PASS) \
34448 $(POSTSTAGE1_FLAGS_TO_PASS) \
34449 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
6a19fd82 34450@endif binutils-bootstrap
e1666221 34451
99df82b9 34452
ebc58bf8
PB
34453.PHONY: configure-stagefeedback-gas maybe-configure-stagefeedback-gas
34454.PHONY: all-stagefeedback-gas maybe-all-stagefeedback-gas
99df82b9 34455.PHONY: clean-stagefeedback-gas maybe-clean-stagefeedback-gas
ebc58bf8 34456
6a19fd82
PB
34457maybe-configure-stagefeedback-gas:
34458maybe-all-stagefeedback-gas:
99df82b9 34459maybe-clean-stagefeedback-gas:
e1666221 34460
6a19fd82
PB
34461@if gas-bootstrap
34462maybe-configure-stagefeedback-gas: configure-stagefeedback-gas
ebc58bf8
PB
34463configure-stagefeedback-gas:
34464 @$(MAKE) stagefeedback-start
34465 @[ -f gas/Makefile ] && exit 0 || : ; \
6a19fd82
PB
34466 r=`${PWD_COMMAND}`; export r; \
34467 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34468 $(STAGE_HOST_EXPORTS) \
34469 echo Configuring stage feedback in gas ; \
7fc2ca22 34470 cd $(HOST_SUBDIR)/gas || exit 1; \
6a19fd82 34471 case $(srcdir) in \
7fc2ca22
PB
34472 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34473 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
34474 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a19fd82 34475 esac; \
7fc2ca22
PB
34476 srcdiroption="--srcdir=$${topdir}/gas"; \
34477 libsrcdir="$$s/gas"; \
6a19fd82
PB
34478 $(SHELL) $${libsrcdir}/configure \
34479 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 34480 @stage2_werror_flag@
e1666221 34481
6a19fd82
PB
34482maybe-all-stagefeedback-gas: all-stagefeedback-gas
34483all-stagefeedback-gas: configure-stagefeedback-gas
ebc58bf8 34484 @$(MAKE) stagefeedback-start
6a19fd82
PB
34485 @r=`${PWD_COMMAND}`; export r; \
34486 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34487 $(STAGE_HOST_EXPORTS) \
7fc2ca22 34488 cd $(HOST_SUBDIR)/gas && \
6a19fd82
PB
34489 $(MAKE) $(FLAGS_TO_PASS) \
34490 $(POSTSTAGE1_FLAGS_TO_PASS) \
ebc58bf8 34491 CFLAGS="$(BOOT_CFLAGS) -fprofile-use"
99df82b9
PB
34492
34493maybe-clean-stagefeedback-gas: clean-stagefeedback-gas
34494clean-stagefeedback-gas:
34495 @[ -f gas/Makefile ] || [ -f stagefeedback-gas/Makefile ] \
34496 || exit 0 ; \
34497 [ -f gas/Makefile ] || $(MAKE) stagefeedback-start ; \
7fc2ca22 34498 cd $(HOST_SUBDIR)/gas && \
99df82b9
PB
34499 $(MAKE) $(FLAGS_TO_PASS) \
34500 $(POSTSTAGE1_FLAGS_TO_PASS) \
34501 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
6a19fd82 34502@endif gas-bootstrap
e1666221 34503
99df82b9 34504
ebc58bf8
PB
34505.PHONY: configure-stagefeedback-gcc maybe-configure-stagefeedback-gcc
34506.PHONY: all-stagefeedback-gcc maybe-all-stagefeedback-gcc
99df82b9 34507.PHONY: clean-stagefeedback-gcc maybe-clean-stagefeedback-gcc
ebc58bf8 34508
6a19fd82
PB
34509maybe-configure-stagefeedback-gcc:
34510maybe-all-stagefeedback-gcc:
99df82b9 34511maybe-clean-stagefeedback-gcc:
e1666221 34512
6a19fd82
PB
34513@if gcc-bootstrap
34514maybe-configure-stagefeedback-gcc: configure-stagefeedback-gcc
ebc58bf8
PB
34515configure-stagefeedback-gcc:
34516 @$(MAKE) stagefeedback-start
34517 @[ -f gcc/Makefile ] && exit 0 || : ; \
6a19fd82
PB
34518 r=`${PWD_COMMAND}`; export r; \
34519 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34520 $(STAGE_HOST_EXPORTS) \
34521 echo Configuring stage feedback in gcc ; \
7fc2ca22 34522 cd $(HOST_SUBDIR)/gcc || exit 1; \
6a19fd82 34523 case $(srcdir) in \
7fc2ca22
PB
34524 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34525 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
34526 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a19fd82 34527 esac; \
7fc2ca22
PB
34528 srcdiroption="--srcdir=$${topdir}/gcc"; \
34529 libsrcdir="$$s/gcc"; \
6a19fd82
PB
34530 $(SHELL) $${libsrcdir}/configure \
34531 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 34532 @stage2_werror_flag@
21ff191e 34533
6a19fd82
PB
34534maybe-all-stagefeedback-gcc: all-stagefeedback-gcc
34535all-stagefeedback-gcc: configure-stagefeedback-gcc
ebc58bf8 34536 @$(MAKE) stagefeedback-start
6a19fd82
PB
34537 @r=`${PWD_COMMAND}`; export r; \
34538 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34539 $(STAGE_HOST_EXPORTS) \
7fc2ca22 34540 cd $(HOST_SUBDIR)/gcc && \
6a19fd82
PB
34541 $(MAKE) $(FLAGS_TO_PASS) \
34542 $(POSTSTAGE1_FLAGS_TO_PASS) \
ebc58bf8 34543 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" $(EXTRA_GCC_FLAGS)
99df82b9
PB
34544
34545maybe-clean-stagefeedback-gcc: clean-stagefeedback-gcc
34546clean-stagefeedback-gcc:
34547 @[ -f gcc/Makefile ] || [ -f stagefeedback-gcc/Makefile ] \
34548 || exit 0 ; \
34549 [ -f gcc/Makefile ] || $(MAKE) stagefeedback-start ; \
7fc2ca22 34550 cd $(HOST_SUBDIR)/gcc && \
99df82b9
PB
34551 $(MAKE) $(FLAGS_TO_PASS) \
34552 $(POSTSTAGE1_FLAGS_TO_PASS) \
34553 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" $(EXTRA_GCC_FLAGS) clean
6a19fd82 34554@endif gcc-bootstrap
e1666221 34555
99df82b9 34556
ebc58bf8
PB
34557.PHONY: configure-stagefeedback-intl maybe-configure-stagefeedback-intl
34558.PHONY: all-stagefeedback-intl maybe-all-stagefeedback-intl
99df82b9 34559.PHONY: clean-stagefeedback-intl maybe-clean-stagefeedback-intl
ebc58bf8 34560
6a19fd82
PB
34561maybe-configure-stagefeedback-intl:
34562maybe-all-stagefeedback-intl:
99df82b9 34563maybe-clean-stagefeedback-intl:
21ff191e 34564
6a19fd82
PB
34565@if intl-bootstrap
34566maybe-configure-stagefeedback-intl: configure-stagefeedback-intl
ebc58bf8
PB
34567configure-stagefeedback-intl:
34568 @$(MAKE) stagefeedback-start
34569 @[ -f intl/Makefile ] && exit 0 || : ; \
e1666221
PB
34570 r=`${PWD_COMMAND}`; export r; \
34571 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34572 $(STAGE_HOST_EXPORTS) \
6a19fd82 34573 echo Configuring stage feedback in intl ; \
7fc2ca22 34574 cd $(HOST_SUBDIR)/intl || exit 1; \
e1666221 34575 case $(srcdir) in \
7fc2ca22
PB
34576 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34577 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
34578 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e1666221 34579 esac; \
7fc2ca22
PB
34580 srcdiroption="--srcdir=$${topdir}/intl"; \
34581 libsrcdir="$$s/intl"; \
e1666221
PB
34582 $(SHELL) $${libsrcdir}/configure \
34583 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 34584 @stage2_werror_flag@
e1666221 34585
6a19fd82
PB
34586maybe-all-stagefeedback-intl: all-stagefeedback-intl
34587all-stagefeedback-intl: configure-stagefeedback-intl
ebc58bf8 34588 @$(MAKE) stagefeedback-start
e1666221
PB
34589 @r=`${PWD_COMMAND}`; export r; \
34590 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34591 $(STAGE_HOST_EXPORTS) \
7fc2ca22 34592 cd $(HOST_SUBDIR)/intl && \
6a19fd82 34593 $(MAKE) $(FLAGS_TO_PASS) \
21ff191e 34594 $(POSTSTAGE1_FLAGS_TO_PASS) \
ebc58bf8 34595 CFLAGS="$(BOOT_CFLAGS) -fprofile-use"
99df82b9
PB
34596
34597maybe-clean-stagefeedback-intl: clean-stagefeedback-intl
34598clean-stagefeedback-intl:
34599 @[ -f intl/Makefile ] || [ -f stagefeedback-intl/Makefile ] \
34600 || exit 0 ; \
34601 [ -f intl/Makefile ] || $(MAKE) stagefeedback-start ; \
7fc2ca22 34602 cd $(HOST_SUBDIR)/intl && \
99df82b9
PB
34603 $(MAKE) $(FLAGS_TO_PASS) \
34604 $(POSTSTAGE1_FLAGS_TO_PASS) \
34605 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
6a19fd82 34606@endif intl-bootstrap
e1666221 34607
99df82b9 34608
ebc58bf8
PB
34609.PHONY: configure-stagefeedback-ld maybe-configure-stagefeedback-ld
34610.PHONY: all-stagefeedback-ld maybe-all-stagefeedback-ld
99df82b9 34611.PHONY: clean-stagefeedback-ld maybe-clean-stagefeedback-ld
ebc58bf8 34612
6a19fd82
PB
34613maybe-configure-stagefeedback-ld:
34614maybe-all-stagefeedback-ld:
99df82b9 34615maybe-clean-stagefeedback-ld:
e1666221 34616
6a19fd82
PB
34617@if ld-bootstrap
34618maybe-configure-stagefeedback-ld: configure-stagefeedback-ld
ebc58bf8
PB
34619configure-stagefeedback-ld:
34620 @$(MAKE) stagefeedback-start
34621 @[ -f ld/Makefile ] && exit 0 || : ; \
6a19fd82
PB
34622 r=`${PWD_COMMAND}`; export r; \
34623 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34624 $(STAGE_HOST_EXPORTS) \
34625 echo Configuring stage feedback in ld ; \
7fc2ca22 34626 cd $(HOST_SUBDIR)/ld || exit 1; \
6a19fd82 34627 case $(srcdir) in \
7fc2ca22
PB
34628 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34629 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
34630 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a19fd82 34631 esac; \
7fc2ca22
PB
34632 srcdiroption="--srcdir=$${topdir}/ld"; \
34633 libsrcdir="$$s/ld"; \
6a19fd82
PB
34634 $(SHELL) $${libsrcdir}/configure \
34635 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 34636 @stage2_werror_flag@
21ff191e 34637
6a19fd82
PB
34638maybe-all-stagefeedback-ld: all-stagefeedback-ld
34639all-stagefeedback-ld: configure-stagefeedback-ld
ebc58bf8 34640 @$(MAKE) stagefeedback-start
6a19fd82
PB
34641 @r=`${PWD_COMMAND}`; export r; \
34642 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34643 $(STAGE_HOST_EXPORTS) \
7fc2ca22 34644 cd $(HOST_SUBDIR)/ld && \
6a19fd82
PB
34645 $(MAKE) $(FLAGS_TO_PASS) \
34646 $(POSTSTAGE1_FLAGS_TO_PASS) \
ebc58bf8 34647 CFLAGS="$(BOOT_CFLAGS) -fprofile-use"
99df82b9
PB
34648
34649maybe-clean-stagefeedback-ld: clean-stagefeedback-ld
34650clean-stagefeedback-ld:
34651 @[ -f ld/Makefile ] || [ -f stagefeedback-ld/Makefile ] \
34652 || exit 0 ; \
34653 [ -f ld/Makefile ] || $(MAKE) stagefeedback-start ; \
7fc2ca22 34654 cd $(HOST_SUBDIR)/ld && \
99df82b9
PB
34655 $(MAKE) $(FLAGS_TO_PASS) \
34656 $(POSTSTAGE1_FLAGS_TO_PASS) \
34657 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
6a19fd82 34658@endif ld-bootstrap
21ff191e 34659
99df82b9 34660
ebc58bf8
PB
34661.PHONY: configure-stagefeedback-libcpp maybe-configure-stagefeedback-libcpp
34662.PHONY: all-stagefeedback-libcpp maybe-all-stagefeedback-libcpp
99df82b9 34663.PHONY: clean-stagefeedback-libcpp maybe-clean-stagefeedback-libcpp
ebc58bf8 34664
6a19fd82
PB
34665maybe-configure-stagefeedback-libcpp:
34666maybe-all-stagefeedback-libcpp:
99df82b9 34667maybe-clean-stagefeedback-libcpp:
21ff191e 34668
6a19fd82
PB
34669@if libcpp-bootstrap
34670maybe-configure-stagefeedback-libcpp: configure-stagefeedback-libcpp
ebc58bf8
PB
34671configure-stagefeedback-libcpp:
34672 @$(MAKE) stagefeedback-start
34673 @[ -f libcpp/Makefile ] && exit 0 || : ; \
6a19fd82
PB
34674 r=`${PWD_COMMAND}`; export r; \
34675 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34676 $(STAGE_HOST_EXPORTS) \
34677 echo Configuring stage feedback in libcpp ; \
7fc2ca22 34678 cd $(HOST_SUBDIR)/libcpp || exit 1; \
6a19fd82 34679 case $(srcdir) in \
7fc2ca22
PB
34680 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34681 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
34682 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a19fd82 34683 esac; \
7fc2ca22
PB
34684 srcdiroption="--srcdir=$${topdir}/libcpp"; \
34685 libsrcdir="$$s/libcpp"; \
6a19fd82
PB
34686 $(SHELL) $${libsrcdir}/configure \
34687 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 34688 @stage2_werror_flag@
21ff191e 34689
6a19fd82
PB
34690maybe-all-stagefeedback-libcpp: all-stagefeedback-libcpp
34691all-stagefeedback-libcpp: configure-stagefeedback-libcpp
ebc58bf8 34692 @$(MAKE) stagefeedback-start
6a19fd82
PB
34693 @r=`${PWD_COMMAND}`; export r; \
34694 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34695 $(STAGE_HOST_EXPORTS) \
7fc2ca22 34696 cd $(HOST_SUBDIR)/libcpp && \
6a19fd82
PB
34697 $(MAKE) $(FLAGS_TO_PASS) \
34698 $(POSTSTAGE1_FLAGS_TO_PASS) \
ebc58bf8 34699 CFLAGS="$(BOOT_CFLAGS) -fprofile-use"
99df82b9
PB
34700
34701maybe-clean-stagefeedback-libcpp: clean-stagefeedback-libcpp
34702clean-stagefeedback-libcpp:
34703 @[ -f libcpp/Makefile ] || [ -f stagefeedback-libcpp/Makefile ] \
34704 || exit 0 ; \
34705 [ -f libcpp/Makefile ] || $(MAKE) stagefeedback-start ; \
7fc2ca22 34706 cd $(HOST_SUBDIR)/libcpp && \
99df82b9
PB
34707 $(MAKE) $(FLAGS_TO_PASS) \
34708 $(POSTSTAGE1_FLAGS_TO_PASS) \
34709 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
6a19fd82 34710@endif libcpp-bootstrap
35269421 34711
99df82b9 34712
ebc58bf8
PB
34713.PHONY: configure-stagefeedback-libiberty maybe-configure-stagefeedback-libiberty
34714.PHONY: all-stagefeedback-libiberty maybe-all-stagefeedback-libiberty
99df82b9 34715.PHONY: clean-stagefeedback-libiberty maybe-clean-stagefeedback-libiberty
ebc58bf8 34716
6a19fd82
PB
34717maybe-configure-stagefeedback-libiberty:
34718maybe-all-stagefeedback-libiberty:
99df82b9 34719maybe-clean-stagefeedback-libiberty:
21ff191e 34720
6a19fd82
PB
34721@if libiberty-bootstrap
34722maybe-configure-stagefeedback-libiberty: configure-stagefeedback-libiberty
ebc58bf8
PB
34723configure-stagefeedback-libiberty:
34724 @$(MAKE) stagefeedback-start
34725 @[ -f libiberty/Makefile ] && exit 0 || : ; \
6a19fd82
PB
34726 r=`${PWD_COMMAND}`; export r; \
34727 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34728 $(STAGE_HOST_EXPORTS) \
34729 echo Configuring stage feedback in libiberty ; \
7fc2ca22 34730 cd $(HOST_SUBDIR)/libiberty || exit 1; \
6a19fd82 34731 case $(srcdir) in \
7fc2ca22
PB
34732 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34733 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
34734 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a19fd82 34735 esac; \
7fc2ca22
PB
34736 srcdiroption="--srcdir=$${topdir}/libiberty"; \
34737 libsrcdir="$$s/libiberty"; \
6a19fd82
PB
34738 $(SHELL) $${libsrcdir}/configure \
34739 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 34740 @stage2_werror_flag@
21ff191e 34741
6a19fd82
PB
34742maybe-all-stagefeedback-libiberty: all-stagefeedback-libiberty
34743all-stagefeedback-libiberty: configure-stagefeedback-libiberty
ebc58bf8 34744 @$(MAKE) stagefeedback-start
6a19fd82
PB
34745 @r=`${PWD_COMMAND}`; export r; \
34746 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34747 $(STAGE_HOST_EXPORTS) \
7fc2ca22 34748 cd $(HOST_SUBDIR)/libiberty && \
6a19fd82
PB
34749 $(MAKE) $(FLAGS_TO_PASS) \
34750 $(POSTSTAGE1_FLAGS_TO_PASS) \
ebc58bf8 34751 CFLAGS="$(BOOT_CFLAGS) -fprofile-use"
99df82b9
PB
34752
34753maybe-clean-stagefeedback-libiberty: clean-stagefeedback-libiberty
34754clean-stagefeedback-libiberty:
34755 @[ -f libiberty/Makefile ] || [ -f stagefeedback-libiberty/Makefile ] \
34756 || exit 0 ; \
34757 [ -f libiberty/Makefile ] || $(MAKE) stagefeedback-start ; \
7fc2ca22 34758 cd $(HOST_SUBDIR)/libiberty && \
99df82b9
PB
34759 $(MAKE) $(FLAGS_TO_PASS) \
34760 $(POSTSTAGE1_FLAGS_TO_PASS) \
34761 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
6a19fd82 34762@endif libiberty-bootstrap
21ff191e 34763
99df82b9 34764
ebc58bf8
PB
34765.PHONY: configure-stagefeedback-zlib maybe-configure-stagefeedback-zlib
34766.PHONY: all-stagefeedback-zlib maybe-all-stagefeedback-zlib
99df82b9 34767.PHONY: clean-stagefeedback-zlib maybe-clean-stagefeedback-zlib
ebc58bf8 34768
6a19fd82
PB
34769maybe-configure-stagefeedback-zlib:
34770maybe-all-stagefeedback-zlib:
99df82b9 34771maybe-clean-stagefeedback-zlib:
21ff191e 34772
6a19fd82
PB
34773@if zlib-bootstrap
34774maybe-configure-stagefeedback-zlib: configure-stagefeedback-zlib
ebc58bf8
PB
34775configure-stagefeedback-zlib:
34776 @$(MAKE) stagefeedback-start
34777 @[ -f zlib/Makefile ] && exit 0 || : ; \
21ff191e
PB
34778 r=`${PWD_COMMAND}`; export r; \
34779 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34780 $(STAGE_HOST_EXPORTS) \
6a19fd82 34781 echo Configuring stage feedback in zlib ; \
7fc2ca22 34782 cd $(HOST_SUBDIR)/zlib || exit 1; \
21ff191e 34783 case $(srcdir) in \
7fc2ca22
PB
34784 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34785 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
34786 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21ff191e 34787 esac; \
7fc2ca22
PB
34788 srcdiroption="--srcdir=$${topdir}/zlib"; \
34789 libsrcdir="$$s/zlib"; \
21ff191e
PB
34790 $(SHELL) $${libsrcdir}/configure \
34791 $(HOST_CONFIGARGS) $${srcdiroption} \
ebc58bf8 34792 @stage2_werror_flag@
21ff191e 34793
6a19fd82
PB
34794maybe-all-stagefeedback-zlib: all-stagefeedback-zlib
34795all-stagefeedback-zlib: configure-stagefeedback-zlib
ebc58bf8 34796 @$(MAKE) stagefeedback-start
21ff191e
PB
34797 @r=`${PWD_COMMAND}`; export r; \
34798 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34799 $(STAGE_HOST_EXPORTS) \
7fc2ca22 34800 cd $(HOST_SUBDIR)/zlib && \
6a19fd82 34801 $(MAKE) $(FLAGS_TO_PASS) \
21ff191e 34802 $(POSTSTAGE1_FLAGS_TO_PASS) \
ebc58bf8 34803 CFLAGS="$(BOOT_CFLAGS) -fprofile-use"
99df82b9
PB
34804
34805maybe-clean-stagefeedback-zlib: clean-stagefeedback-zlib
34806clean-stagefeedback-zlib:
34807 @[ -f zlib/Makefile ] || [ -f stagefeedback-zlib/Makefile ] \
34808 || exit 0 ; \
34809 [ -f zlib/Makefile ] || $(MAKE) stagefeedback-start ; \
7fc2ca22 34810 cd $(HOST_SUBDIR)/zlib && \
99df82b9
PB
34811 $(MAKE) $(FLAGS_TO_PASS) \
34812 $(POSTSTAGE1_FLAGS_TO_PASS) \
34813 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
6a19fd82
PB
34814@endif zlib-bootstrap
34815
21ff191e 34816
99df82b9 34817
6a19fd82
PB
34818# FIXME: Will not need to be conditional when toplevel bootstrap is the
34819# only possibility, but now it conflicts with no-bootstrap rules
34820@if gcc-bootstrap
21ff191e
PB
34821
34822
34823
34824
99df82b9 34825# Rules to wipe a stage and all the following ones, also used for cleanstrap
21ff191e 34826distclean-stage1:: distclean-stagefeedback
99df82b9 34827.PHONY: distclean-stagefeedback
21ff191e 34828distclean-stagefeedback::
d5eec917 34829 [ -f stage_current ] && $(MAKE) `cat stage_current`-end || :
ebc58bf8 34830 rm -rf stagefeedback-*
21ff191e
PB
34831
34832
6a19fd82 34833@endif gcc-bootstrap
21ff191e
PB
34834
34835
34836
34837stagefeedback-start::
34838 @r=`${PWD_COMMAND}`; export r; \
34839 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34840 cd stageprofile-gcc && \
34841 { find . -type d | sort | sed 's,.*,$(SHELL) '"$$s"'/mkinstalldirs "../gcc/&",' | $(SHELL); } && \
34842 { find . -name '*.*da' | sed 's,.*,$(LN) -f "&" "../gcc/&",' | $(SHELL); }
34843
6a19fd82
PB
34844# FIXME: Will not need to be conditional when toplevel bootstrap is the
34845# only possibility, but now it conflicts with no-bootstrap rules
34846@if gcc-bootstrap
34847profiledbootstrap:
21ff191e
PB
34848 @r=`${PWD_COMMAND}`; export r; \
34849 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34850 $(SET_LIB_PATH) \
63673a5b 34851 $(HOST_EXPORTS) \
21ff191e 34852 echo "Bootstrapping the compiler"; \
d5eec917 34853 $(MAKE) stageprofile-bubble distclean-stagefeedback
21ff191e
PB
34854 @r=`${PWD_COMMAND}`; export r; \
34855 s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
34856 $(SET_LIB_PATH) \
34857 echo "Building runtime libraries and training compiler"; \
34858 $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) all
34859 @r=`${PWD_COMMAND}`; export r; \
34860 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34861 $(SET_LIB_PATH) \
63673a5b 34862 $(HOST_EXPORTS) \
21ff191e
PB
34863 echo "Building feedback based compiler"; \
34864 $(MAKE) stagefeedback-bubble stagefeedback-end
e1666221 34865@endif gcc-bootstrap
866c244e 34866
99df82b9
PB
34867@if gcc-bootstrap
34868NOTPARALLEL = .NOTPARALLEL
34869$(NOTPARALLEL):
34870do-distclean: distclean-stage1
34871@endif gcc-bootstrap
34872
c5ab3a90
NN
34873# --------------------------------------
34874# Dependencies between different modules
34875# --------------------------------------
a3acbf46 34876
364b9683
PB
34877# Generic dependencies for target modules on host stuff, especially gcc
34878
34879configure-target-libstdc++-v3: maybe-all-gcc
34880
34881configure-target-libmudflap: maybe-all-gcc
34882
34883configure-target-newlib: maybe-all-gcc
34884
34885configure-target-libgfortran: maybe-all-gcc
34886
34887configure-target-libobjc: maybe-all-gcc
34888
34889configure-target-libtermcap: maybe-all-gcc
34890
34891configure-target-winsup: maybe-all-gcc
34892
34893configure-target-libgloss: maybe-all-gcc
34894
34895configure-target-libiberty: maybe-all-gcc
34896
34897configure-target-gperf: maybe-all-gcc
34898
34899configure-target-examples: maybe-all-gcc
34900
34901configure-target-libffi: maybe-all-gcc
34902
34903configure-target-libjava: maybe-all-gcc
34904
34905configure-target-zlib: maybe-all-gcc
34906
34907configure-target-boehm-gc: maybe-all-gcc
34908
34909configure-target-qthreads: maybe-all-gcc
34910
34911configure-target-rda: maybe-all-gcc
34912
34913configure-target-libada: maybe-all-gcc
34914
34915
34916
34917configure-target-boehm-gc: maybe-all-target-newlib maybe-all-target-libgloss
34918
34919configure-target-gperf: maybe-all-target-newlib maybe-all-target-libgloss
34920configure-target-gperf: maybe-all-target-libstdc++-v3
34921
34922configure-target-libada: maybe-all-target-newlib maybe-all-target-libgloss
34923
34924configure-target-libgfortran: maybe-all-target-newlib maybe-all-target-libgloss
34925
34926configure-target-libffi: maybe-all-target-newlib maybe-all-target-libgloss
34927
34928configure-target-libjava: maybe-all-target-newlib maybe-all-target-libgloss
34929configure-target-libjava: maybe-all-target-libstdc++-v3
34930
34931configure-target-libobjc: maybe-all-target-newlib maybe-all-target-libgloss
34932
34933configure-target-libstdc++-v3: maybe-all-target-newlib maybe-all-target-libgloss
34934
34935configure-target-zlib: maybe-all-target-newlib maybe-all-target-libgloss
34936
34937configure-target-examples: maybe-all-target-newlib maybe-all-target-libgloss
34938
34939configure-target-libtermcap: maybe-all-target-newlib maybe-all-target-libgloss
34940
34941configure-target-rda: maybe-all-target-newlib maybe-all-target-libgloss
34942
34943configure-target-winsup: maybe-all-target-newlib maybe-all-target-libgloss
34944
34945configure-target-qthreads: maybe-all-target-newlib maybe-all-target-libgloss
34946
34947
c5ab3a90
NN
34948# There are two types of dependencies here: 'hard' dependencies, where one
34949# module simply won't build without the other; and 'soft' dependencies, where
34950# if the depended-on module is missing, the depending module will do without
34951# or find a substitute somewhere (perhaps installed). Soft dependencies
364b9683 34952# are made here to depend on a 'maybe-' target. If you're not sure,
c5ab3a90
NN
34953# it's safer to use a soft dependency.
34954
364b9683
PB
34955
34956
34957
34958
34959# With all the machinery above in place, it is pretty easy to generate
34960# dependencies. Host dependencies are a bit more complex because we have
34961# to check for bootstrap/prebootstrap dependencies. To resolve
34962# prebootstrap dependencies, prebootstrap modules are gathered in
34963# a hash table.
2cb47d68 34964all-build-bison: maybe-all-build-texinfo
364b9683 34965all-build-byacc: maybe-all-build-texinfo
2cb47d68 34966all-build-flex: maybe-all-build-texinfo
364b9683
PB
34967all-build-flex: maybe-all-build-bison
34968all-build-flex: maybe-all-build-byacc
34969all-build-flex: maybe-all-build-m4
2cb47d68 34970all-build-libiberty: maybe-all-build-texinfo
364b9683 34971all-build-m4: maybe-all-build-texinfo
607d4caf 34972all-build-fixincludes: maybe-all-build-libiberty
364b9683
PB
34973configure-gcc: maybe-configure-intl
34974
34975configure-stage1-gcc: maybe-configure-stage1-intl
34976configure-stage2-gcc: maybe-configure-stage2-intl
34977configure-stage3-gcc: maybe-configure-stage3-intl
34978configure-stage4-gcc: maybe-configure-stage4-intl
34979configure-stageprofile-gcc: maybe-configure-stageprofile-intl
34980configure-stagefeedback-gcc: maybe-configure-stagefeedback-intl
34981configure-gcc: maybe-configure-binutils
34982
34983configure-stage1-gcc: maybe-configure-stage1-binutils
34984configure-stage2-gcc: maybe-configure-stage2-binutils
34985configure-stage3-gcc: maybe-configure-stage3-binutils
34986configure-stage4-gcc: maybe-configure-stage4-binutils
34987configure-stageprofile-gcc: maybe-configure-stageprofile-binutils
34988configure-stagefeedback-gcc: maybe-configure-stagefeedback-binutils
34989configure-gcc: maybe-configure-gas
34990
34991configure-stage1-gcc: maybe-configure-stage1-gas
34992configure-stage2-gcc: maybe-configure-stage2-gas
34993configure-stage3-gcc: maybe-configure-stage3-gas
34994configure-stage4-gcc: maybe-configure-stage4-gas
34995configure-stageprofile-gcc: maybe-configure-stageprofile-gas
34996configure-stagefeedback-gcc: maybe-configure-stagefeedback-gas
34997configure-gcc: maybe-configure-ld
34998
34999configure-stage1-gcc: maybe-configure-stage1-ld
35000configure-stage2-gcc: maybe-configure-stage2-ld
35001configure-stage3-gcc: maybe-configure-stage3-ld
35002configure-stage4-gcc: maybe-configure-stage4-ld
35003configure-stageprofile-gcc: maybe-configure-stageprofile-ld
35004configure-stagefeedback-gcc: maybe-configure-stagefeedback-ld
364b9683
PB
35005all-gcc: all-libiberty
35006
35007all-stage1-gcc: all-stage1-libiberty
35008all-stage2-gcc: all-stage2-libiberty
35009all-stage3-gcc: all-stage3-libiberty
35010all-stage4-gcc: all-stage4-libiberty
35011all-stageprofile-gcc: all-stageprofile-libiberty
35012all-stagefeedback-gcc: all-stagefeedback-libiberty
35013all-gcc: maybe-all-intl
35014
35015all-stage1-gcc: maybe-all-stage1-intl
35016all-stage2-gcc: maybe-all-stage2-intl
35017all-stage3-gcc: maybe-all-stage3-intl
35018all-stage4-gcc: maybe-all-stage4-intl
35019all-stageprofile-gcc: maybe-all-stageprofile-intl
35020all-stagefeedback-gcc: maybe-all-stagefeedback-intl
6a19fd82
PB
35021all-gcc: maybe-all-build-texinfo
35022
35023all-stage1-gcc: maybe-all-build-texinfo
35024all-stage2-gcc: maybe-all-build-texinfo
35025all-stage3-gcc: maybe-all-build-texinfo
35026all-stage4-gcc: maybe-all-build-texinfo
35027all-stageprofile-gcc: maybe-all-build-texinfo
35028all-stagefeedback-gcc: maybe-all-build-texinfo
35029all-prebootstrap: maybe-all-build-texinfo
35030all-gcc: maybe-all-build-bison
35031
35032all-stage1-gcc: maybe-all-build-bison
35033all-stage2-gcc: maybe-all-build-bison
35034all-stage3-gcc: maybe-all-build-bison
35035all-stage4-gcc: maybe-all-build-bison
35036all-stageprofile-gcc: maybe-all-build-bison
35037all-stagefeedback-gcc: maybe-all-build-bison
35038all-prebootstrap: maybe-all-build-bison
35039all-gcc: maybe-all-build-byacc
35040
35041all-stage1-gcc: maybe-all-build-byacc
35042all-stage2-gcc: maybe-all-build-byacc
35043all-stage3-gcc: maybe-all-build-byacc
35044all-stage4-gcc: maybe-all-build-byacc
35045all-stageprofile-gcc: maybe-all-build-byacc
35046all-stagefeedback-gcc: maybe-all-build-byacc
35047all-prebootstrap: maybe-all-build-byacc
35048all-gcc: maybe-all-build-flex
35049
35050all-stage1-gcc: maybe-all-build-flex
35051all-stage2-gcc: maybe-all-build-flex
35052all-stage3-gcc: maybe-all-build-flex
35053all-stage4-gcc: maybe-all-build-flex
35054all-stageprofile-gcc: maybe-all-build-flex
35055all-stagefeedback-gcc: maybe-all-build-flex
35056all-prebootstrap: maybe-all-build-flex
607d4caf
PB
35057all-gcc: maybe-all-build-libiberty
35058
35059all-stage1-gcc: maybe-all-build-libiberty
35060all-stage2-gcc: maybe-all-build-libiberty
35061all-stage3-gcc: maybe-all-build-libiberty
35062all-stage4-gcc: maybe-all-build-libiberty
35063all-stageprofile-gcc: maybe-all-build-libiberty
35064all-stagefeedback-gcc: maybe-all-build-libiberty
35065all-prebootstrap: maybe-all-build-libiberty
35066all-gcc: maybe-all-build-fixincludes
35067
35068all-stage1-gcc: maybe-all-build-fixincludes
35069all-stage2-gcc: maybe-all-build-fixincludes
35070all-stage3-gcc: maybe-all-build-fixincludes
35071all-stage4-gcc: maybe-all-build-fixincludes
35072all-stageprofile-gcc: maybe-all-build-fixincludes
35073all-stagefeedback-gcc: maybe-all-build-fixincludes
35074all-prebootstrap: maybe-all-build-fixincludes
364b9683
PB
35075all-gcc: maybe-all-binutils
35076
35077all-stage1-gcc: maybe-all-stage1-binutils
35078all-stage2-gcc: maybe-all-stage2-binutils
35079all-stage3-gcc: maybe-all-stage3-binutils
35080all-stage4-gcc: maybe-all-stage4-binutils
35081all-stageprofile-gcc: maybe-all-stageprofile-binutils
35082all-stagefeedback-gcc: maybe-all-stagefeedback-binutils
35083all-gcc: maybe-all-gas
35084
35085all-stage1-gcc: maybe-all-stage1-gas
35086all-stage2-gcc: maybe-all-stage2-gas
35087all-stage3-gcc: maybe-all-stage3-gas
35088all-stage4-gcc: maybe-all-stage4-gas
35089all-stageprofile-gcc: maybe-all-stageprofile-gas
35090all-stagefeedback-gcc: maybe-all-stagefeedback-gas
35091all-gcc: maybe-all-ld
35092
35093all-stage1-gcc: maybe-all-stage1-ld
35094all-stage2-gcc: maybe-all-stage2-ld
35095all-stage3-gcc: maybe-all-stage3-ld
35096all-stage4-gcc: maybe-all-stage4-ld
35097all-stageprofile-gcc: maybe-all-stageprofile-ld
35098all-stagefeedback-gcc: maybe-all-stagefeedback-ld
35099all-gcc: maybe-all-zlib
35100
35101all-stage1-gcc: maybe-all-stage1-zlib
35102all-stage2-gcc: maybe-all-stage2-zlib
35103all-stage3-gcc: maybe-all-stage3-zlib
35104all-stage4-gcc: maybe-all-stage4-zlib
35105all-stageprofile-gcc: maybe-all-stageprofile-zlib
35106all-stagefeedback-gcc: maybe-all-stagefeedback-zlib
364b9683
PB
35107all-gcc: all-libcpp
35108
35109all-stage1-gcc: all-stage1-libcpp
35110all-stage2-gcc: all-stage2-libcpp
35111all-stage3-gcc: all-stage3-libcpp
35112all-stage4-gcc: all-stage4-libcpp
35113all-stageprofile-gcc: all-stageprofile-libcpp
35114all-stagefeedback-gcc: all-stagefeedback-libcpp
5350aa8b
GK
35115all-gcc: maybe-all-libiberty
35116
35117all-stage1-gcc: maybe-all-stage1-libiberty
35118all-stage2-gcc: maybe-all-stage2-libiberty
35119all-stage3-gcc: maybe-all-stage3-libiberty
35120all-stage4-gcc: maybe-all-stage4-libiberty
35121all-stageprofile-gcc: maybe-all-stageprofile-libiberty
35122all-stagefeedback-gcc: maybe-all-stagefeedback-libiberty
35123all-gcc: maybe-all-fixincludes
afaa92f9 35124install-gcc: maybe-install-fixincludes
364b9683
PB
35125configure-libcpp: configure-libiberty
35126
35127configure-stage1-libcpp: configure-stage1-libiberty
35128configure-stage2-libcpp: configure-stage2-libiberty
35129configure-stage3-libcpp: configure-stage3-libiberty
35130configure-stage4-libcpp: configure-stage4-libiberty
35131configure-stageprofile-libcpp: configure-stageprofile-libiberty
35132configure-stagefeedback-libcpp: configure-stagefeedback-libiberty
35133configure-libcpp: maybe-configure-intl
35134
35135configure-stage1-libcpp: maybe-configure-stage1-intl
35136configure-stage2-libcpp: maybe-configure-stage2-intl
35137configure-stage3-libcpp: maybe-configure-stage3-intl
35138configure-stage4-libcpp: maybe-configure-stage4-intl
35139configure-stageprofile-libcpp: maybe-configure-stageprofile-intl
35140configure-stagefeedback-libcpp: maybe-configure-stagefeedback-intl
35141all-libcpp: all-libiberty
35142
35143all-stage1-libcpp: all-stage1-libiberty
35144all-stage2-libcpp: all-stage2-libiberty
35145all-stage3-libcpp: all-stage3-libiberty
35146all-stage4-libcpp: all-stage4-libiberty
35147all-stageprofile-libcpp: all-stageprofile-libiberty
35148all-stagefeedback-libcpp: all-stagefeedback-libiberty
35149all-libcpp: maybe-all-intl
35150
35151all-stage1-libcpp: maybe-all-stage1-intl
35152all-stage2-libcpp: maybe-all-stage2-intl
35153all-stage3-libcpp: maybe-all-stage3-intl
35154all-stage4-libcpp: maybe-all-stage4-intl
35155all-stageprofile-libcpp: maybe-all-stageprofile-intl
35156all-stagefeedback-libcpp: maybe-all-stagefeedback-intl
5350aa8b 35157all-fixincludes: maybe-all-libiberty
7fc2ca22 35158all-gnattools: maybe-all-target-libada
364b9683
PB
35159configure-gdb: maybe-configure-itcl
35160configure-gdb: maybe-configure-tcl
35161configure-gdb: maybe-configure-tk
35162configure-gdb: maybe-configure-sim
35163all-gdb: maybe-all-libiberty
35164all-gdb: maybe-all-opcodes
35165all-gdb: maybe-all-bfd
364b9683 35166all-gdb: maybe-all-readline
6a19fd82
PB
35167all-gdb: maybe-all-build-bison
35168all-gdb: maybe-all-build-byacc
364b9683
PB
35169all-gdb: maybe-all-sim
35170install-gdb: maybe-install-tcl
35171install-gdb: maybe-install-tk
35172install-gdb: maybe-install-itcl
364b9683
PB
35173install-gdb: maybe-install-libgui
35174configure-libgui: maybe-configure-tcl
35175configure-libgui: maybe-configure-tk
35176all-libgui: maybe-all-tcl
35177all-libgui: maybe-all-tk
35178all-libgui: maybe-all-itcl
5f7308ff 35179configure-bfd: configure-libiberty
364b9683
PB
35180
35181configure-stage1-bfd: configure-stage1-libiberty
35182configure-stage2-bfd: configure-stage2-libiberty
35183configure-stage3-bfd: configure-stage3-libiberty
35184configure-stage4-bfd: configure-stage4-libiberty
35185configure-stageprofile-bfd: configure-stageprofile-libiberty
35186configure-stagefeedback-bfd: configure-stagefeedback-libiberty
35187all-bfd: maybe-all-libiberty
35188
35189all-stage1-bfd: maybe-all-stage1-libiberty
35190all-stage2-bfd: maybe-all-stage2-libiberty
35191all-stage3-bfd: maybe-all-stage3-libiberty
35192all-stage4-bfd: maybe-all-stage4-libiberty
35193all-stageprofile-bfd: maybe-all-stageprofile-libiberty
35194all-stagefeedback-bfd: maybe-all-stagefeedback-libiberty
35195all-bfd: maybe-all-intl
35196
35197all-stage1-bfd: maybe-all-stage1-intl
35198all-stage2-bfd: maybe-all-stage2-intl
35199all-stage3-bfd: maybe-all-stage3-intl
35200all-stage4-bfd: maybe-all-stage4-intl
35201all-stageprofile-bfd: maybe-all-stageprofile-intl
35202all-stagefeedback-bfd: maybe-all-stagefeedback-intl
35203all-binutils: maybe-all-libiberty
35204
35205all-stage1-binutils: maybe-all-stage1-libiberty
35206all-stage2-binutils: maybe-all-stage2-libiberty
35207all-stage3-binutils: maybe-all-stage3-libiberty
35208all-stage4-binutils: maybe-all-stage4-libiberty
35209all-stageprofile-binutils: maybe-all-stageprofile-libiberty
35210all-stagefeedback-binutils: maybe-all-stagefeedback-libiberty
35211all-binutils: maybe-all-opcodes
35212
35213all-stage1-binutils: maybe-all-stage1-opcodes
35214all-stage2-binutils: maybe-all-stage2-opcodes
35215all-stage3-binutils: maybe-all-stage3-opcodes
35216all-stage4-binutils: maybe-all-stage4-opcodes
35217all-stageprofile-binutils: maybe-all-stageprofile-opcodes
35218all-stagefeedback-binutils: maybe-all-stagefeedback-opcodes
35219all-binutils: maybe-all-bfd
35220
35221all-stage1-binutils: maybe-all-stage1-bfd
35222all-stage2-binutils: maybe-all-stage2-bfd
35223all-stage3-binutils: maybe-all-stage3-bfd
35224all-stage4-binutils: maybe-all-stage4-bfd
35225all-stageprofile-binutils: maybe-all-stageprofile-bfd
35226all-stagefeedback-binutils: maybe-all-stagefeedback-bfd
6a19fd82
PB
35227all-binutils: maybe-all-build-flex
35228
35229all-stage1-binutils: maybe-all-build-flex
35230all-stage2-binutils: maybe-all-build-flex
35231all-stage3-binutils: maybe-all-build-flex
35232all-stage4-binutils: maybe-all-build-flex
35233all-stageprofile-binutils: maybe-all-build-flex
35234all-stagefeedback-binutils: maybe-all-build-flex
35235all-prebootstrap: maybe-all-build-flex
35236all-binutils: maybe-all-build-bison
35237
35238all-stage1-binutils: maybe-all-build-bison
35239all-stage2-binutils: maybe-all-build-bison
35240all-stage3-binutils: maybe-all-build-bison
35241all-stage4-binutils: maybe-all-build-bison
35242all-stageprofile-binutils: maybe-all-build-bison
35243all-stagefeedback-binutils: maybe-all-build-bison
35244all-prebootstrap: maybe-all-build-bison
35245all-binutils: maybe-all-build-byacc
35246
35247all-stage1-binutils: maybe-all-build-byacc
35248all-stage2-binutils: maybe-all-build-byacc
35249all-stage3-binutils: maybe-all-build-byacc
35250all-stage4-binutils: maybe-all-build-byacc
35251all-stageprofile-binutils: maybe-all-build-byacc
35252all-stagefeedback-binutils: maybe-all-build-byacc
35253all-prebootstrap: maybe-all-build-byacc
364b9683
PB
35254all-binutils: maybe-all-intl
35255
35256all-stage1-binutils: maybe-all-stage1-intl
35257all-stage2-binutils: maybe-all-stage2-intl
35258all-stage3-binutils: maybe-all-stage3-intl
35259all-stage4-binutils: maybe-all-stage4-intl
35260all-stageprofile-binutils: maybe-all-stageprofile-intl
35261all-stagefeedback-binutils: maybe-all-stagefeedback-intl
c5ab3a90 35262install-binutils: maybe-install-opcodes
7deb4540 35263install-opcodes: maybe-install-bfd
364b9683
PB
35264all-gas: maybe-all-libiberty
35265
35266all-stage1-gas: maybe-all-stage1-libiberty
35267all-stage2-gas: maybe-all-stage2-libiberty
35268all-stage3-gas: maybe-all-stage3-libiberty
35269all-stage4-gas: maybe-all-stage4-libiberty
35270all-stageprofile-gas: maybe-all-stageprofile-libiberty
35271all-stagefeedback-gas: maybe-all-stagefeedback-libiberty
35272all-gas: maybe-all-opcodes
35273
35274all-stage1-gas: maybe-all-stage1-opcodes
35275all-stage2-gas: maybe-all-stage2-opcodes
35276all-stage3-gas: maybe-all-stage3-opcodes
35277all-stage4-gas: maybe-all-stage4-opcodes
35278all-stageprofile-gas: maybe-all-stageprofile-opcodes
35279all-stagefeedback-gas: maybe-all-stagefeedback-opcodes
35280all-gas: maybe-all-bfd
35281
35282all-stage1-gas: maybe-all-stage1-bfd
35283all-stage2-gas: maybe-all-stage2-bfd
35284all-stage3-gas: maybe-all-stage3-bfd
35285all-stage4-gas: maybe-all-stage4-bfd
35286all-stageprofile-gas: maybe-all-stageprofile-bfd
35287all-stagefeedback-gas: maybe-all-stagefeedback-bfd
35288all-gas: maybe-all-intl
35289
35290all-stage1-gas: maybe-all-stage1-intl
35291all-stage2-gas: maybe-all-stage2-intl
35292all-stage3-gas: maybe-all-stage3-intl
35293all-stage4-gas: maybe-all-stage4-intl
35294all-stageprofile-gas: maybe-all-stageprofile-intl
35295all-stagefeedback-gas: maybe-all-stagefeedback-intl
35296all-gprof: maybe-all-libiberty
35297all-gprof: maybe-all-bfd
35298all-gprof: maybe-all-opcodes
35299all-gprof: maybe-all-intl
35300all-ld: maybe-all-libiberty
35301
35302all-stage1-ld: maybe-all-stage1-libiberty
35303all-stage2-ld: maybe-all-stage2-libiberty
35304all-stage3-ld: maybe-all-stage3-libiberty
35305all-stage4-ld: maybe-all-stage4-libiberty
35306all-stageprofile-ld: maybe-all-stageprofile-libiberty
35307all-stagefeedback-ld: maybe-all-stagefeedback-libiberty
35308all-ld: maybe-all-bfd
35309
35310all-stage1-ld: maybe-all-stage1-bfd
35311all-stage2-ld: maybe-all-stage2-bfd
35312all-stage3-ld: maybe-all-stage3-bfd
35313all-stage4-ld: maybe-all-stage4-bfd
35314all-stageprofile-ld: maybe-all-stageprofile-bfd
35315all-stagefeedback-ld: maybe-all-stagefeedback-bfd
35316all-ld: maybe-all-opcodes
35317
35318all-stage1-ld: maybe-all-stage1-opcodes
35319all-stage2-ld: maybe-all-stage2-opcodes
35320all-stage3-ld: maybe-all-stage3-opcodes
35321all-stage4-ld: maybe-all-stage4-opcodes
35322all-stageprofile-ld: maybe-all-stageprofile-opcodes
35323all-stagefeedback-ld: maybe-all-stagefeedback-opcodes
6a19fd82
PB
35324all-ld: maybe-all-build-bison
35325
35326all-stage1-ld: maybe-all-build-bison
35327all-stage2-ld: maybe-all-build-bison
35328all-stage3-ld: maybe-all-build-bison
35329all-stage4-ld: maybe-all-build-bison
35330all-stageprofile-ld: maybe-all-build-bison
35331all-stagefeedback-ld: maybe-all-build-bison
35332all-prebootstrap: maybe-all-build-bison
35333all-ld: maybe-all-build-byacc
35334
35335all-stage1-ld: maybe-all-build-byacc
35336all-stage2-ld: maybe-all-build-byacc
35337all-stage3-ld: maybe-all-build-byacc
35338all-stage4-ld: maybe-all-build-byacc
35339all-stageprofile-ld: maybe-all-build-byacc
35340all-stagefeedback-ld: maybe-all-build-byacc
35341all-prebootstrap: maybe-all-build-byacc
35342all-ld: maybe-all-build-flex
35343
35344all-stage1-ld: maybe-all-build-flex
35345all-stage2-ld: maybe-all-build-flex
35346all-stage3-ld: maybe-all-build-flex
35347all-stage4-ld: maybe-all-build-flex
35348all-stageprofile-ld: maybe-all-build-flex
35349all-stagefeedback-ld: maybe-all-build-flex
35350all-prebootstrap: maybe-all-build-flex
364b9683
PB
35351all-ld: maybe-all-intl
35352
35353all-stage1-ld: maybe-all-stage1-intl
35354all-stage2-ld: maybe-all-stage2-intl
35355all-stage3-ld: maybe-all-stage3-intl
35356all-stage4-ld: maybe-all-stage4-intl
35357all-stageprofile-ld: maybe-all-stageprofile-intl
35358all-stagefeedback-ld: maybe-all-stagefeedback-intl
35359all-opcodes: maybe-all-bfd
35360
35361all-stage1-opcodes: maybe-all-stage1-bfd
35362all-stage2-opcodes: maybe-all-stage2-bfd
35363all-stage3-opcodes: maybe-all-stage3-bfd
35364all-stage4-opcodes: maybe-all-stage4-bfd
35365all-stageprofile-opcodes: maybe-all-stageprofile-bfd
35366all-stagefeedback-opcodes: maybe-all-stagefeedback-bfd
35367all-opcodes: maybe-all-libiberty
35368
35369all-stage1-opcodes: maybe-all-stage1-libiberty
35370all-stage2-opcodes: maybe-all-stage2-libiberty
35371all-stage3-opcodes: maybe-all-stage3-libiberty
35372all-stage4-opcodes: maybe-all-stage4-libiberty
35373all-stageprofile-opcodes: maybe-all-stageprofile-libiberty
35374all-stagefeedback-opcodes: maybe-all-stagefeedback-libiberty
35375all-dejagnu: maybe-all-tcl
35376all-dejagnu: maybe-all-expect
35377all-dejagnu: maybe-all-tk
35378configure-expect: maybe-configure-tcl
35379configure-expect: maybe-configure-tk
35380all-expect: maybe-all-tcl
35381all-expect: maybe-all-tk
35382configure-itcl: maybe-configure-tcl
35383configure-itcl: maybe-configure-tk
35384all-itcl: maybe-all-tcl
35385all-itcl: maybe-all-tk
c5ab3a90 35386install-itcl: maybe-install-tcl
5f7308ff 35387configure-tk: maybe-configure-tcl
c5ab3a90 35388all-tk: maybe-all-tcl
364b9683
PB
35389all-sid: maybe-all-libiberty
35390all-sid: maybe-all-bfd
35391all-sid: maybe-all-opcodes
35392all-sid: maybe-all-tcl
35393all-sid: maybe-all-tk
35394install-sid: maybe-install-tcl
35395install-sid: maybe-install-tk
35396all-sim: maybe-all-libiberty
35397all-sim: maybe-all-bfd
35398all-sim: maybe-all-opcodes
35399all-sim: maybe-all-readline
35400all-sim: maybe-configure-gdb
35401all-fastjar: maybe-all-zlib
6a19fd82 35402all-fastjar: maybe-all-build-texinfo
364b9683
PB
35403all-fastjar: maybe-all-libiberty
35404all-autoconf: maybe-all-m4
6a19fd82 35405all-autoconf: maybe-all-build-texinfo
364b9683 35406all-automake: maybe-all-m4
6a19fd82 35407all-automake: maybe-all-build-texinfo
364b9683
PB
35408all-automake: maybe-all-autoconf
35409all-bison: maybe-all-intl
6a19fd82 35410all-bison: maybe-all-build-texinfo
364b9683 35411all-diff: maybe-all-intl
6a19fd82 35412all-diff: maybe-all-build-texinfo
364b9683 35413all-fileutils: maybe-all-intl
6a19fd82
PB
35414all-fileutils: maybe-all-build-texinfo
35415all-flex: maybe-all-build-bison
35416all-flex: maybe-all-build-byacc
364b9683
PB
35417all-flex: maybe-all-intl
35418all-flex: maybe-all-m4
6a19fd82 35419all-flex: maybe-all-build-texinfo
364b9683
PB
35420all-gzip: maybe-all-intl
35421all-gzip: maybe-all-zlib
6a19fd82 35422all-gzip: maybe-all-build-texinfo
364b9683 35423all-hello: maybe-all-intl
6a19fd82 35424all-hello: maybe-all-build-texinfo
364b9683 35425all-m4: maybe-all-intl
6a19fd82 35426all-m4: maybe-all-build-texinfo
364b9683 35427all-make: maybe-all-intl
6a19fd82
PB
35428all-make: maybe-all-build-texinfo
35429all-patch: maybe-all-build-texinfo
35430all-make: maybe-all-build-texinfo
c5e4bb70 35431all-prms: maybe-all-libiberty
6a19fd82
PB
35432all-recode: maybe-all-build-texinfo
35433all-sed: maybe-all-build-texinfo
c5e4bb70 35434all-send-pr: maybe-all-prms
6a19fd82
PB
35435all-tar: maybe-all-build-texinfo
35436all-uudecode: maybe-all-build-texinfo
364b9683 35437configure-target-boehm-gc: maybe-configure-target-qthreads
5f7308ff 35438configure-target-fastjar: maybe-configure-target-zlib
364b9683
PB
35439all-target-fastjar: maybe-all-target-zlib
35440all-target-fastjar: maybe-all-target-libiberty
35441configure-target-libjava: maybe-configure-target-zlib
35442configure-target-libjava: maybe-configure-target-boehm-gc
35443configure-target-libjava: maybe-configure-target-qthreads
35444configure-target-libjava: maybe-configure-target-libffi
35445all-target-libjava: maybe-all-fastjar
35446all-target-libjava: maybe-all-target-zlib
35447all-target-libjava: maybe-all-target-boehm-gc
35448all-target-libjava: maybe-all-target-qthreads
35449all-target-libjava: maybe-all-target-libffi
c5ab3a90 35450all-target-libobjc: maybe-all-target-libiberty
c5ab3a90 35451all-target-libstdc++-v3: maybe-all-target-libiberty
c5ab3a90 35452all-target-libgloss: maybe-configure-target-newlib
364b9683
PB
35453all-target-winsup: maybe-all-target-libiberty
35454all-target-winsup: maybe-all-target-libtermcap
35455
35456
6a19fd82
PB
35457# Non-toplevel bootstrap rules must depend on several packages, to be built
35458# before gcc. Another wart that will go away, hopefully soon.
364b9683
PB
35459@if gcc-no-bootstrap
35460
35461all-prebootstrap: maybe-all-bfd
35462all-prebootstrap: maybe-all-opcodes
35463all-prebootstrap: maybe-all-binutils
35464all-prebootstrap: maybe-all-gas
35465all-prebootstrap: maybe-all-intl
35466all-prebootstrap: maybe-all-ld
35467all-prebootstrap: maybe-all-libcpp
364b9683
PB
35468all-prebootstrap: maybe-all-libiberty
35469all-prebootstrap: maybe-all-zlib
35470@endif gcc-no-bootstrap
35471
35472GDB_TK = @GDB_TK@
35473all-gdb: $(gdbnlmrequirements) $(GDB_TK)
00f56d7b 35474
d8e6f006
NN
35475# Serialization dependencies. Host configures don't work well in parallel to
35476# each other, due to contention over config.cache. Target configures and
35477# build configures are similar.
35478@serialization_dependencies@
35479
43bdb69a
NN
35480# --------------------------------
35481# Regenerating top level configury
35482# --------------------------------
a3acbf46 35483
6dbec167
NN
35484# Multilib.out tells target dirs what multilibs they should build.
35485# There is really only one copy. We use the 'timestamp' method to
35486# work around various timestamp bugs on some systems.
35487# We use move-if-change so that it's only considered updated when it
35488# actually changes, because it has to depend on a phony target.
af9955fa 35489multilib.out: maybe-all-gcc
5230d454 35490 @r=`${PWD_COMMAND}`; export r; \
6dbec167
NN
35491 echo "Checking multilib configuration..."; \
35492 $(CC_FOR_TARGET) --print-multi-lib > multilib.tmp 2> /dev/null ; \
35493 $(SHELL) $(srcdir)/move-if-change multilib.tmp multilib.out ; \
6dbec167 35494
862fb445 35495# Rebuilding Makefile.in, using autogen.
81011f17 35496AUTOGEN = autogen
3728f201 35497$(srcdir)/Makefile.in: @MAINT@ $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def
81011f17 35498 cd $(srcdir) && $(AUTOGEN) Makefile.def
862fb445 35499
bafecfd6 35500# Rebuilding Makefile.
81011f17
AO
35501Makefile: $(srcdir)/Makefile.in config.status
35502 CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
35503
9e6daff1 35504config.status: configure
08bf2e60 35505 CONFIG_SHELL="$(SHELL)" $(SHELL) ./config.status --recheck
a3acbf46 35506
bafecfd6 35507# Rebuilding configure.
81011f17 35508AUTOCONF = autoconf
3728f201 35509$(srcdir)/configure: @MAINT@ $(srcdir)/configure.in $(srcdir)/config/acx.m4
81011f17 35510 cd $(srcdir) && $(AUTOCONF)
a3acbf46 35511
1c53cd00
NN
35512# ------------------------------
35513# Special directives to GNU Make
35514# ------------------------------
35515
1c53cd00
NN
35516# Don't pass command-line variables to submakes.
35517.NOEXPORT:
35518MAKEOVERRIDES=
35519
a3acbf46 35520# end of Makefile.in
This page took 4.962266 seconds and 5 git commands to generate.