]> gcc.gnu.org Git - gcc.git/blame - Makefile.in
re PR rtl-optimization/14851 (suboptimal fp division with -ffast-math)
[gcc.git] / Makefile.in
CommitLineData
95ddd785
NN
1
2# Makefile.in is generated from Makefile.tpl by 'autogen Makefile.def'.
6599da04
JM
3#
4# Makefile for directory with subdirs to build.
6e2a4843 5# Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
4fc4dd12 6# 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation
6599da04
JM
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
df0f0674
NN
23# -------------------------------
24# Standard Autoconf-set variables
25# -------------------------------
4977bab6 26VPATH=@srcdir@
4977bab6
ZW
27
28build_alias=@build_alias@
e89fbdfe 29build=@build@
4977bab6 30host_alias=@host_alias@
e89fbdfe 31host=@host@
4977bab6 32target_alias=@target_alias@
e89fbdfe 33target=@target@
4977bab6 34
df0f0674 35program_transform_name = @program_transform_name@
0dffceed
NN
36
37prefix = @prefix@
38exec_prefix = @exec_prefix@
39
df0f0674
NN
40srcdir = @srcdir@
41
0dffceed
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@
6599da04
JM
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
1e6347d8 63
775956d0
NN
64INSTALL = @INSTALL@
65INSTALL_PROGRAM = @INSTALL_PROGRAM@
66INSTALL_SCRIPT = @INSTALL_SCRIPT@
67INSTALL_DATA = @INSTALL_DATA@
ad6717df
PB
68LN = @LN@
69LN_S = @LN_S@
6599da04 70
df0f0674
NN
71# -------------------------------------------------
72# Miscellaneous non-standard autoconf-set variables
73# -------------------------------------------------
6599da04 74
df0f0674
NN
75# The file containing GCC's version number.
76gcc_version_trigger = @gcc_version_trigger@
77gcc_version = @gcc_version@
6599da04 78
df0f0674
NN
79# The gcc driver likes to know the arguments it was configured with.
80TOPLEVEL_CONFIGURE_ARGUMENTS=@TOPLEVEL_CONFIGURE_ARGUMENTS@
6599da04 81
df0f0674
NN
82gxx_include_dir = @gxx_include_dir@
83libstdcxx_incdir = @libstdcxx_incdir@
6599da04 84
df0f0674
NN
85tooldir = @tooldir@
86build_tooldir = @build_tooldir@
6599da04 87
df0f0674 88# Directory in which the compiler finds executables, libraries, etc.
a8ee6e2d 89libsubdir = $(libdir)/gcc/$(target_alias)/$(gcc_version)
df0f0674 90GDB_NLM_DEPS =
6599da04 91
df0f0674
NN
92# This is the name of the environment variable used for the path to
93# the libraries.
94RPATH_ENVVAR = @RPATH_ENVVAR@
6599da04 95
df0f0674
NN
96# This is set by configure to REALLY_SET_LIB_PATH if --enable-shared
97# was used.
98SET_LIB_PATH = @SET_LIB_PATH@
6599da04 99
df0f0674
NN
100# configure.in sets SET_LIB_PATH to this if --enable-shared was used.
101# Some platforms don't like blank entries, so we remove duplicate,
102# leading and trailing colons.
103REALLY_SET_LIB_PATH = \
104 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH):$(TARGET_LIB_PATH):$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
6599da04 105
df0f0674 106# This is the list of directories to be built for the build system.
0a050485 107BUILD_CONFIGDIRS = libiberty
df0f0674
NN
108# Build programs are put under this directory.
109BUILD_SUBDIR = @build_subdir@
110# This is set by the configure script to the arguments to use when configuring
111# directories built for the build system.
112BUILD_CONFIGARGS = @build_configargs@
23f6b2f9
PB
113
114# This is the list of variables to export in the environment when
115# configuring any subdirectory. It must also be exported whenever
116# recursing into a build directory in case that directory's Makefile
117# re-runs configure.
118BASE_EXPORTS = \
119 FLEX="$(FLEX)"; export FLEX; \
120 LEX="$(LEX)"; export LEX; \
121 BISON="$(BISON)"; export BISON; \
122 YACC="$(YACC)"; export YACC; \
123 M4="$(M4)"; export M4; \
124 MAKEINFO="$(MAKEINFO)"; export MAKEINFO;
125
4fc4dd12 126# This is the list of variables to export in the environment when
23f6b2f9 127# configuring subdirectories for the build system.
4fc4dd12 128BUILD_EXPORTS = \
23f6b2f9 129 $(BASE_EXPORTS) \
4fc4dd12
DJ
130 AR="$(AR_FOR_BUILD)"; export AR; \
131 AS="$(AS_FOR_BUILD)"; export AS; \
132 CC="$(CC_FOR_BUILD)"; export CC; \
133 CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \
134 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
135 CXX="$(CXX_FOR_BUILD)"; export CXX; \
136 CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \
137 GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \
138 GFORTRAN="$(GFORTRAN_FOR_BUILD)"; export GFORTRAN; \
139 DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \
140 LD="$(LD_FOR_BUILD)"; export LD; \
141 LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \
142 NM="$(NM_FOR_BUILD)"; export NM; \
143 RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \
144 WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES;
df0f0674
NN
145
146# This is the list of directories to built for the host system.
147SUBDIRS = @configdirs@
148# This is set by the configure script to the arguments to use when configuring
149# directories built for the host system.
150HOST_CONFIGARGS = @host_configargs@
4fc4dd12 151# This is the list of variables to export in the environment when
23f6b2f9 152# configuring subdirectories for the host system.
4fc4dd12 153HOST_EXPORTS = \
23f6b2f9 154 $(BASE_EXPORTS) \
4fc4dd12
DJ
155 CC="$(CC)"; export CC; \
156 CFLAGS="$(CFLAGS)"; export CFLAGS; \
157 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
158 CXX="$(CXX)"; export CXX; \
159 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
160 AR="$(AR)"; export AR; \
161 AS="$(AS)"; export AS; \
162 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
163 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
164 LD="$(LD)"; export LD; \
165 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
166 NM="$(NM)"; export NM; \
167 RANLIB="$(RANLIB)"; export RANLIB; \
168 WINDRES="$(WINDRES)"; export WINDRES; \
169 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1c020272 170 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4fc4dd12
DJ
171 TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
172 GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \
173 GMPINC="$(HOST_GMPINC)"; export GMPINC;
174
175# Similar, for later GCC stages.
176STAGE_HOST_EXPORTS = \
a52a0a7f 177 $(HOST_EXPORTS) \
4fc4dd12
DJ
178 CC="$(STAGE_CC_WRAPPER) $$r/prev-gcc/xgcc$(exeext) -B$$r/prev-gcc/ -B$(build_tooldir)/bin/"; export CC; \
179 CC_FOR_BUILD="$(STAGE_CC_WRAPPER) $$r/prev-gcc/xgcc$(exeext) -B$$r/prev-gcc/ -B$(build_tooldir)/bin/"; export CC_FOR_BUILD;
df0f0674
NN
180
181# This is set by the configure script to the list of directories which
182# should be built using the target tools.
183TARGET_CONFIGDIRS = @target_configdirs@
184# Target libraries are put under this directory:
185TARGET_SUBDIR = @target_subdir@
186# This is set by the configure script to the arguments to use when configuring
187# directories built for the target.
188TARGET_CONFIGARGS = @target_configargs@
4fc4dd12 189# This is the list of variables to export in the environment when
23f6b2f9 190# configuring subdirectories for the host system.
4fc4dd12 191BASE_TARGET_EXPORTS = \
23f6b2f9 192 $(BASE_EXPORTS) \
4fc4dd12
DJ
193 AR="$(AR_FOR_TARGET)"; export AR; \
194 AS="$(AS_FOR_TARGET)"; export AS; \
195 CC="$(CC_FOR_TARGET)"; export CC; \
196 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
197 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
198 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
199 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
200 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
201 GFORTRAN="$(GFORTRAN_FOR_TARGET)"; export GFORTRAN; \
202 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
203 LD="$(LD_FOR_TARGET)"; export LD; \
204 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
205 NM="$(NM_FOR_TARGET)"; export NM; \
206 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
207 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES;
208
209RAW_CXX_TARGET_EXPORTS = \
210 $(BASE_TARGET_EXPORTS) \
211 CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \
212 CXX="$(RAW_CXX_FOR_TARGET)"; export CXX;
213
214NORMAL_TARGET_EXPORTS = \
215 $(BASE_TARGET_EXPORTS) \
216 CXX="$(CXX_FOR_TARGET)"; export CXX;
df0f0674 217
6de9cd9a
DN
218# Where to find GMP
219HOST_GMPLIBS = @gmplibs@
220HOST_GMPINC = @gmpinc@
221
df0f0674
NN
222# ----------------------------------------------
223# Programs producing files for the BUILD machine
224# ----------------------------------------------
225
226SHELL = @config_shell@
227
228# pwd command to use. Allow user to override default by setting PWDCMD in
229# the environment to account for automounters. The make variable must not
230# be called PWDCMD, otherwise the value set here is passed to make
231# subprocesses and overrides the setting from the user's environment.
8c90b13a
L
232# Don't use PWD since it is a common shell environment variable and we
233# don't want to corrupt it.
234PWD_COMMAND = $${PWDCMD-pwd}
df0f0674
NN
235
236# compilers to use to create programs which must be run in the build
237# environment.
238CC_FOR_BUILD = @CC_FOR_BUILD@
6691a79e 239CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
df0f0674
NN
240
241CXX_FOR_BUILD = $(CXX)
242
243# Special variables passed down in EXTRA_GCC_FLAGS. They are defined
244# here so that they can be overridden by Makefile fragments.
df0f0674
NN
245BUILD_PREFIX = @BUILD_PREFIX@
246BUILD_PREFIX_1 = @BUILD_PREFIX_1@
6599da04 247
45f366ab
PB
248# Flags to pass to stage2 and later makes. They are defined
249# here so that they can be overridden by Makefile fragments.
250BOOT_CFLAGS= -g -O2
251
23f6b2f9 252CONFIGURED_BISON = @CONFIGURED_BISON@
7c27e184
PB
253BISON = `if [ -f $$r/$(BUILD_SUBDIR)/bison/tests/bison ] ; then \
254 echo $$r/$(BUILD_SUBDIR)/bison/tests/bison ; \
6599da04 255 else \
23f6b2f9 256 echo ${CONFIGURED_BISON} ; \
6599da04
JM
257 fi`
258
23f6b2f9 259CONFIGURED_YACC = @CONFIGURED_YACC@
7c27e184
PB
260YACC = `if [ -f $$r/$(BUILD_SUBDIR)/bison/tests/bison ] ; then \
261 echo $$r/$(BUILD_SUBDIR)/bison/tests/bison -y ; \
262 elif [ -f $$r/$(BUILD_SUBDIR)/byacc/byacc ] ; then \
263 echo $$r/$(BUILD_SUBDIR)/byacc/byacc ; \
6599da04 264 else \
23f6b2f9 265 echo ${CONFIGURED_YACC} ; \
6599da04
JM
266 fi`
267
23f6b2f9 268CONFIGURED_FLEX = @CONFIGURED_FLEX@
7c27e184
PB
269FLEX = `if [ -f $$r/$(BUILD_SUBDIR)/flex/flex ] ; \
270 then echo $$r/$(BUILD_SUBDIR)/flex/flex ; \
23f6b2f9 271 else echo ${CONFIGURED_FLEX} ; fi`
6599da04 272
23f6b2f9 273CONFIGURED_LEX = @CONFIGURED_LEX@
7c27e184
PB
274LEX = `if [ -f $$r/$(BUILD_SUBDIR)/flex/flex ] ; \
275 then echo $$r/$(BUILD_SUBDIR)/flex/flex ; \
23f6b2f9
PB
276 else echo ${CONFIGURED_LEX} ; fi`
277
278CONFIGURED_M4 = @CONFIGURED_M4@
7c27e184
PB
279M4 = `if [ -f $$r/$(BUILD_SUBDIR)/m4/m4 ] ; \
280 then echo $$r/$(BUILD_SUBDIR)/m4/m4 ; \
23f6b2f9 281 else echo ${CONFIGURED_M4} ; fi`
6599da04 282
de722255 283# For an installed makeinfo, we require it to be from texinfo 4.2 or
23f6b2f9
PB
284# higher, else we use the "missing" dummy. We also pass the subdirectory
285# makeinfo even if only the Makefile is there, because Texinfo builds its
286# manual when made, and it requires its own version.
287CONFIGURED_MAKEINFO = @CONFIGURED_MAKEINFO@
7c27e184
PB
288MAKEINFO = `if [ -f $$r/$(BUILD_SUBDIR)/texinfo/makeinfo/Makefile ] ; \
289 then echo $$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo ; \
23f6b2f9 290 else if (${CONFIGURED_MAKEINFO} --version \
de722255 291 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[2-9]|[5-9])') >/dev/null 2>&1; \
23f6b2f9 292 then echo ${CONFIGURED_MAKEINFO}; else echo $$s/missing makeinfo; fi; fi`
6599da04
JM
293
294# This just becomes part of the MAKEINFO definition passed down to
295# sub-makes. It lets flags be given on the command line while still
296# using the makeinfo from the object tree.
2f50999f
GP
297# (Default to avoid splitting info files by setting the threshold high.)
298MAKEINFOFLAGS = --split-size=5000000
6599da04
JM
299
300EXPECT = `if [ -f $$r/expect/expect ] ; \
301 then echo $$r/expect/expect ; \
302 else echo expect ; fi`
303
304RUNTEST = `if [ -f $$s/dejagnu/runtest ] ; \
305 then echo $$s/dejagnu/runtest ; \
306 else echo runtest ; fi`
307
df0f0674
NN
308# ---------------------------------------------
309# Programs producing files for the HOST machine
310# ---------------------------------------------
6599da04 311
df0f0674
NN
312# This is the list of directories that may be needed in RPATH_ENVVAR
313# so that programs built for the host machine work.
314HOST_LIB_PATH = $$r/bfd:$$r/opcodes
6599da04 315
df0f0674 316AS = @AS@
6599da04 317
df0f0674
NN
318AR = @AR@
319AR_FLAGS = rc
6599da04 320
df0f0674
NN
321CC = @CC@
322CFLAGS = @CFLAGS@
323LIBCFLAGS = $(CFLAGS)
6599da04 324
df0f0674
NN
325CXX = @CXX@
326CXXFLAGS = @CXXFLAGS@
327LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
e490616e 328
df0f0674 329DLLTOOL = @DLLTOOL@
6599da04 330
df0f0674 331NM = @NM@
4977bab6 332
df0f0674
NN
333LD = @LD@
334LDFLAGS =
4977bab6 335
df0f0674 336RANLIB = @RANLIB@
6599da04 337
df0f0674 338WINDRES = @WINDRES@
6599da04 339
df0f0674
NN
340PICFLAG =
341
342# -----------------------------------------------
343# Programs producing files for the TARGET machine
344# -----------------------------------------------
ce8e06b1
AO
345
346# This is the list of directories that may be needed in RPATH_ENVVAR
347# so that prorgams built for the target machine work.
6de9cd9a 348TARGET_LIB_PATH = $$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs:$$r/$(TARGET_SUBDIR)/libmudflap/.libs
ce8e06b1 349
ec0461f6 350FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
6599da04 351
df0f0674 352AR_FOR_TARGET=@AR_FOR_TARGET@
be912515 353CONFIGURED_AR_FOR_TARGET=@CONFIGURED_AR_FOR_TARGET@
df0f0674
NN
354USUAL_AR_FOR_TARGET = ` \
355 if [ -f $$r/binutils/ar ] ; then \
356 echo $$r/binutils/ar ; \
357 else \
e89fbdfe 358 if [ '$(host)' = '$(target)' ] ; then \
df0f0674
NN
359 echo $(AR); \
360 else \
be912515 361 echo $(CONFIGURED_AR_FOR_TARGET) ; \
df0f0674
NN
362 fi; \
363 fi`
6599da04 364
4977bab6 365AS_FOR_TARGET=@AS_FOR_TARGET@
be912515 366CONFIGURED_AS_FOR_TARGET=@CONFIGURED_AS_FOR_TARGET@
4977bab6 367USUAL_AS_FOR_TARGET = ` \
6599da04
JM
368 if [ -f $$r/gas/as-new ] ; then \
369 echo $$r/gas/as-new ; \
e9a8af10
AO
370 elif [ -f $$r/gcc/xgcc ]; then \
371 $(CC_FOR_TARGET) -print-prog-name=as ; \
6599da04 372 else \
e89fbdfe 373 if [ '$(host)' = '$(target)' ] ; then \
6599da04
JM
374 echo $(AS); \
375 else \
be912515 376 echo $(CONFIGURED_AS_FOR_TARGET) ; \
6599da04
JM
377 fi; \
378 fi`
379
df0f0674
NN
380CC_FOR_TARGET = @CC_FOR_TARGET@
381# During gcc bootstrap, if we use some random cc for stage1 then
382# CFLAGS will be just -g. We want to ensure that TARGET libraries
383# (which we know are built with gcc) are built with optimizations so
384# prepend -O2 when setting CFLAGS_FOR_TARGET.
385CFLAGS_FOR_TARGET = -O2 $(CFLAGS)
386# If GCC_FOR_TARGET is not overriden on the command line, then this
387# variable is passed down to the gcc Makefile, where it is used to
388# build libgcc2.a. We define it here so that it can itself be
389# overridden on the command line.
390GCC_FOR_TARGET=@GCC_FOR_TARGET@
391USUAL_GCC_FOR_TARGET = $(STAGE_CC_WRAPPER) $$r/gcc/xgcc -B$$r/gcc/ $(FLAGS_FOR_TARGET)
392LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
393
394CXX_FOR_TARGET = @CXX_FOR_TARGET@
395RAW_CXX_FOR_TARGET = @RAW_CXX_FOR_TARGET@
396CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
397RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
398CXXFLAGS_FOR_TARGET = $(CXXFLAGS)
399LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
6599da04 400
4977bab6 401DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@
be912515 402CONFIGURED_DLLTOOL_FOR_TARGET=@CONFIGURED_DLLTOOL_FOR_TARGET@
4977bab6 403USUAL_DLLTOOL_FOR_TARGET = ` \
6599da04
JM
404 if [ -f $$r/binutils/dlltool ] ; then \
405 echo $$r/binutils/dlltool ; \
406 else \
e89fbdfe 407 if [ '$(host)' = '$(target)' ] ; then \
6599da04
JM
408 echo $(DLLTOOL); \
409 else \
be912515 410 echo $(CONFIGURED_DLLTOOL_FOR_TARGET) ; \
6599da04
JM
411 fi; \
412 fi`
413
df0f0674 414GCJ_FOR_TARGET = @GCJ_FOR_TARGET@
6de9cd9a 415GFORTRAN_FOR_TARGET = @GFORTRAN_FOR_TARGET@
df0f0674
NN
416
417LD_FOR_TARGET=@LD_FOR_TARGET@
be912515 418CONFIGURED_LD_FOR_TARGET=@CONFIGURED_LD_FOR_TARGET@
df0f0674
NN
419USUAL_LD_FOR_TARGET = ` \
420 if [ -f $$r/ld/ld-new ] ; then \
421 echo $$r/ld/ld-new ; \
422 elif [ -f $$r/gcc/xgcc ]; then \
423 $(CC_FOR_TARGET) -print-prog-name=ld ; \
6599da04 424 else \
e89fbdfe 425 if [ '$(host)' = '$(target)' ] ; then \
df0f0674 426 echo $(LD); \
6599da04 427 else \
be912515 428 echo $(CONFIGURED_LD_FOR_TARGET) ; \
6599da04
JM
429 fi; \
430 fi`
431
df0f0674
NN
432LDFLAGS_FOR_TARGET =
433
434NM_FOR_TARGET=@NM_FOR_TARGET@
be912515 435CONFIGURED_NM_FOR_TARGET=@CONFIGURED_NM_FOR_TARGET@
df0f0674
NN
436USUAL_NM_FOR_TARGET = ` \
437 if [ -f $$r/binutils/nm-new ] ; then \
438 echo $$r/binutils/nm-new ; \
439 elif [ -f $$r/gcc/xgcc ]; then \
440 $(CC_FOR_TARGET) -print-prog-name=nm ; \
6599da04 441 else \
e89fbdfe 442 if [ '$(host)' = '$(target)' ] ; then \
df0f0674 443 echo $(NM); \
6599da04 444 else \
be912515 445 echo $(CONFIGURED_NM_FOR_TARGET) ; \
6599da04
JM
446 fi; \
447 fi`
448
4977bab6 449RANLIB_FOR_TARGET=@RANLIB_FOR_TARGET@
be912515 450CONFIGURED_RANLIB_FOR_TARGET=@CONFIGURED_RANLIB_FOR_TARGET@
4977bab6 451USUAL_RANLIB_FOR_TARGET = ` \
6599da04
JM
452 if [ -f $$r/binutils/ranlib ] ; then \
453 echo $$r/binutils/ranlib ; \
454 else \
e89fbdfe 455 if [ '$(host)' = '$(target)' ] ; then \
759bfa90 456 if [ x'$(RANLIB)' != x ]; then \
6822468a
LB
457 echo $(RANLIB); \
458 else \
459 echo ranlib; \
460 fi; \
6599da04 461 else \
be912515 462 echo $(CONFIGURED_RANLIB_FOR_TARGET) ; \
6599da04
JM
463 fi; \
464 fi`
465
df0f0674 466WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@
be912515 467CONFIGURED_WINDRES_FOR_TARGET=@CONFIGURED_WINDRES_FOR_TARGET@
df0f0674
NN
468USUAL_WINDRES_FOR_TARGET = ` \
469 if [ -f $$r/binutils/windres ] ; then \
470 echo $$r/binutils/windres ; \
6599da04 471 else \
e89fbdfe 472 if [ '$(host)' = '$(target)' ] ; then \
df0f0674 473 echo $(WINDRES); \
6599da04 474 else \
be912515 475 echo $(CONFIGURED_WINDRES_FOR_TARGET) ; \
6599da04
JM
476 fi; \
477 fi`
478
df0f0674
NN
479PICFLAG_FOR_TARGET =
480
481# ------------------------------------
482# Miscellaneous targets and flag lists
483# ------------------------------------
484
5d4a5ee6
JL
485# The first rule in the file had better be this one. Don't put any above it.
486# This lives here to allow makefile fragments to contain dependencies.
f516a7da 487@default_target@:
5d4a5ee6 488
6599da04 489#### host and target specific makefile fragments come in here.
671aa708
NN
490@target_makefile_frag@
491@alphaieee_frag@
492@ospace_frag@
493@host_makefile_frag@
6599da04
JM
494###
495
496# Flags to pass down to all sub-makes.
6599da04 497BASE_FLAGS_TO_PASS = \
3fbe8e4a 498 "DESTDIR=$(DESTDIR)" \
5d4a5ee6 499 "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
81241b5e 500 "TARGET_SUBDIR=$(TARGET_SUBDIR)" \
632933d5
PB
501 "bindir=$(bindir)" \
502 "datadir=$(datadir)" \
503 "exec_prefix=$(exec_prefix)" \
504 "includedir=$(includedir)" \
505 "infodir=$(infodir)" \
506 "libdir=$(libdir)" \
507 "libexecdir=$(libexecdir)" \
508 "lispdir=$(lispdir)" \
cc330df9 509 "libstdcxx_incdir=$(libstdcxx_incdir)" \
632933d5
PB
510 "libsubdir=$(libsubdir)" \
511 "localstatedir=$(localstatedir)" \
512 "mandir=$(mandir)" \
5d4a5ee6 513 "oldincludedir=$(oldincludedir)" \
632933d5
PB
514 "prefix=$(prefix)" \
515 "sbindir=$(sbindir)" \
516 "sharedstatedir=$(sharedstatedir)" \
517 "sysconfdir=$(sysconfdir)" \
d0a8352c 518 "tooldir=$(tooldir)" \
5cb95c7a 519 "build_tooldir=$(build_tooldir)" \
fe2fa3c4
MH
520 "gxx_include_dir=$(gxx_include_dir)" \
521 "gcc_version=$(gcc_version)" \
6dd27861 522 "gcc_version_trigger=$(gcc_version_trigger)" \
11405c93
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)" \
23f6b2f9 528 "FLEX=$(FLEX)" \
11405c93
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)" \
550 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
551 "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
552 "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
553 "GCJ_FOR_TARGET=$(GCJ_FOR_TARGET)" \
6de9cd9a 554 "GFORTRAN_FOR_TARGET=$(GFORTRAN_FOR_TARGET)" \
11405c93
NN
555 "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
556 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
557 "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
558 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
559 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
560 "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
e75f9147 561 "CONFIG_SHELL=$(SHELL)" \
11405c93 562 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)"
6599da04 563
a3406c06
AO
564# For any flags above that may contain shell code that varies from one
565# target library to another. When doing recursive invocations of the
566# top-level Makefile, we don't want the outer make to evaluate them,
567# so we pass these variables down unchanged. They must not contain
568# single nor double quotes.
569RECURSE_FLAGS = \
4977bab6
ZW
570 CXX_FOR_TARGET='$(CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \
571 RAW_CXX_FOR_TARGET='$(RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \
a3406c06 572
ad6717df
PB
573RECURSE_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS)
574
6599da04
JM
575# Flags to pass down to most sub-makes, in which we're building with
576# the host environment.
6599da04
JM
577EXTRA_HOST_FLAGS = \
578 'AR=$(AR)' \
579 'AS=$(AS)' \
580 'CC=$(CC)' \
581 'CXX=$(CXX)' \
582 'DLLTOOL=$(DLLTOOL)' \
583 'LD=$(LD)' \
584 'NM=$(NM)' \
c858bf1e 585 'RANLIB=$(RANLIB)' \
6599da04
JM
586 'WINDRES=$(WINDRES)'
587
588FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
589
590# Flags that are concerned with the location of the X11 include files
591# and library files
592#
593# NOTE: until the top-level is getting the values via autoconf, it only
594# causes problems to have this top-level Makefile overriding the autoconf-set
595# values in child directories. Only variables that don't conflict with
596# autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now.
597#
598X11_FLAGS_TO_PASS = \
599 'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \
600 'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)'
601
602# Flags to pass down to makes which are built with the target environment.
603# The double $ decreases the length of the command line; the variables
604# are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them.
6599da04
JM
605EXTRA_TARGET_FLAGS = \
606 'AR=$$(AR_FOR_TARGET)' \
607 'AS=$$(AS_FOR_TARGET)' \
608 'CC=$$(CC_FOR_TARGET)' \
609 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
610 'CXX=$$(CXX_FOR_TARGET)' \
611 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
612 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
613 'LD=$$(LD_FOR_TARGET)' \
614 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
615 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
616 'NM=$$(NM_FOR_TARGET)' \
0c055e34 617 'RANLIB=$$(RANLIB_FOR_TARGET)' \
6599da04
JM
618 'WINDRES=$$(WINDRES_FOR_TARGET)'
619
620TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
621
622# Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
623# unfortunately needs the native compiler and the target ar and
624# ranlib.
625# If any variables are added here, they must be added to do-*, below.
1358ccea 626# The BUILD_* variables are a special case, which are used for the gcc
6599da04
JM
627# cross-building scheme.
628EXTRA_GCC_FLAGS = \
efe1f357
NN
629 'BUILD_PREFIX=$(BUILD_PREFIX)' \
630 'BUILD_PREFIX_1=$(BUILD_PREFIX_1)' \
6599da04 631 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
d920e825 632 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
d4cd9d81
NN
633 "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
634 "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
635 "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
636 "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
637 "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
638 "`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
639 "`echo 'STAGE1_CFLAGS=$(STAGE1_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
640 "`echo 'BOOT_CFLAGS=$(BOOT_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
641 "`echo 'BOOT_ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
6599da04 642
d29b8ad8 643GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS)
6599da04 644
8b87bb96 645.PHONY: configure-host
d32ab992 646configure-host: \
8b87bb96
NN
647 maybe-configure-ash \
648 maybe-configure-autoconf \
649 maybe-configure-automake \
650 maybe-configure-bash \
651 maybe-configure-bfd \
652 maybe-configure-opcodes \
653 maybe-configure-binutils \
654 maybe-configure-bison \
655 maybe-configure-byacc \
656 maybe-configure-bzip2 \
657 maybe-configure-dejagnu \
658 maybe-configure-diff \
659 maybe-configure-dosutils \
660 maybe-configure-etc \
661 maybe-configure-fastjar \
662 maybe-configure-fileutils \
663 maybe-configure-findutils \
664 maybe-configure-find \
665 maybe-configure-flex \
666 maybe-configure-gas \
d32ab992 667 maybe-configure-gcc \
8b87bb96
NN
668 maybe-configure-gawk \
669 maybe-configure-gettext \
670 maybe-configure-gnuserv \
671 maybe-configure-gprof \
672 maybe-configure-gzip \
673 maybe-configure-hello \
674 maybe-configure-indent \
675 maybe-configure-intl \
676 maybe-configure-tcl \
677 maybe-configure-itcl \
678 maybe-configure-ld \
4f4e53dd 679 maybe-configure-libcpp \
8b87bb96
NN
680 maybe-configure-libgui \
681 maybe-configure-libiberty \
682 maybe-configure-libtool \
683 maybe-configure-m4 \
684 maybe-configure-make \
685 maybe-configure-mmalloc \
686 maybe-configure-patch \
687 maybe-configure-perl \
688 maybe-configure-prms \
689 maybe-configure-rcs \
690 maybe-configure-readline \
691 maybe-configure-release \
692 maybe-configure-recode \
693 maybe-configure-sed \
694 maybe-configure-send-pr \
695 maybe-configure-shellutils \
696 maybe-configure-sid \
697 maybe-configure-sim \
698 maybe-configure-tar \
699 maybe-configure-texinfo \
700 maybe-configure-textutils \
701 maybe-configure-time \
702 maybe-configure-uudecode \
703 maybe-configure-wdiff \
704 maybe-configure-zip \
705 maybe-configure-zlib \
706 maybe-configure-gdb \
707 maybe-configure-expect \
708 maybe-configure-guile \
709 maybe-configure-tk \
8b87bb96
NN
710 maybe-configure-libtermcap \
711 maybe-configure-utils
712.PHONY: configure-target
713configure-target: \
714 maybe-configure-target-libstdc++-v3 \
6de9cd9a 715 maybe-configure-target-libmudflap \
8b87bb96 716 maybe-configure-target-newlib \
6de9cd9a 717 maybe-configure-target-libgfortran \
8b87bb96
NN
718 maybe-configure-target-libobjc \
719 maybe-configure-target-libtermcap \
720 maybe-configure-target-winsup \
721 maybe-configure-target-libgloss \
722 maybe-configure-target-libiberty \
723 maybe-configure-target-gperf \
724 maybe-configure-target-examples \
725 maybe-configure-target-libffi \
726 maybe-configure-target-libjava \
727 maybe-configure-target-zlib \
728 maybe-configure-target-boehm-gc \
729 maybe-configure-target-qthreads \
d9cdb878
AC
730 maybe-configure-target-rda \
731 maybe-configure-target-libada
6599da04 732
f516a7da
PB
733# The target built for a native non-bootstrap build.
734.PHONY: all
7c27e184 735all: unstage all-host all-target stage
23f6b2f9
PB
736
737.PHONY: all-build
738all-build: \
739 maybe-all-build-libiberty \
23f6b2f9
PB
740 maybe-all-build-bison \
741 maybe-all-build-byacc \
742 maybe-all-build-flex \
743 maybe-all-build-m4 \
71b5d516
PB
744 maybe-all-build-texinfo \
745 maybe-all-build-fixincludes
8b87bb96 746.PHONY: all-host
d32ab992 747all-host: \
8b87bb96
NN
748 maybe-all-ash \
749 maybe-all-autoconf \
750 maybe-all-automake \
751 maybe-all-bash \
752 maybe-all-bfd \
753 maybe-all-opcodes \
754 maybe-all-binutils \
755 maybe-all-bison \
756 maybe-all-byacc \
757 maybe-all-bzip2 \
758 maybe-all-dejagnu \
759 maybe-all-diff \
760 maybe-all-dosutils \
761 maybe-all-etc \
762 maybe-all-fastjar \
763 maybe-all-fileutils \
764 maybe-all-findutils \
765 maybe-all-find \
766 maybe-all-flex \
767 maybe-all-gas \
d32ab992 768 maybe-all-gcc \
8b87bb96
NN
769 maybe-all-gawk \
770 maybe-all-gettext \
771 maybe-all-gnuserv \
772 maybe-all-gprof \
773 maybe-all-gzip \
774 maybe-all-hello \
775 maybe-all-indent \
776 maybe-all-intl \
777 maybe-all-tcl \
778 maybe-all-itcl \
779 maybe-all-ld \
4f4e53dd 780 maybe-all-libcpp \
8b87bb96
NN
781 maybe-all-libgui \
782 maybe-all-libiberty \
783 maybe-all-libtool \
784 maybe-all-m4 \
785 maybe-all-make \
786 maybe-all-mmalloc \
787 maybe-all-patch \
788 maybe-all-perl \
789 maybe-all-prms \
790 maybe-all-rcs \
791 maybe-all-readline \
792 maybe-all-release \
793 maybe-all-recode \
794 maybe-all-sed \
795 maybe-all-send-pr \
796 maybe-all-shellutils \
797 maybe-all-sid \
798 maybe-all-sim \
799 maybe-all-tar \
800 maybe-all-texinfo \
801 maybe-all-textutils \
802 maybe-all-time \
803 maybe-all-uudecode \
804 maybe-all-wdiff \
805 maybe-all-zip \
806 maybe-all-zlib \
807 maybe-all-gdb \
808 maybe-all-expect \
809 maybe-all-guile \
810 maybe-all-tk \
8b87bb96
NN
811 maybe-all-libtermcap \
812 maybe-all-utils
813.PHONY: all-target
814all-target: \
815 maybe-all-target-libstdc++-v3 \
6de9cd9a 816 maybe-all-target-libmudflap \
8b87bb96 817 maybe-all-target-newlib \
6de9cd9a 818 maybe-all-target-libgfortran \
8b87bb96
NN
819 maybe-all-target-libobjc \
820 maybe-all-target-libtermcap \
821 maybe-all-target-winsup \
822 maybe-all-target-libgloss \
823 maybe-all-target-libiberty \
824 maybe-all-target-gperf \
825 maybe-all-target-examples \
826 maybe-all-target-libffi \
827 maybe-all-target-libjava \
828 maybe-all-target-zlib \
829 maybe-all-target-boehm-gc \
830 maybe-all-target-qthreads \
d9cdb878
AC
831 maybe-all-target-rda \
832 maybe-all-target-libada
6599da04
JM
833
834# Do a target for all the subdirectories. A ``make do-X'' will do a
835# ``make X'' in all subdirectories (because, in general, there is a
836# dependency (below) of X upon do-X, a ``make X'' will also do this,
837# but it may do additional work as well).
4977bab6 838
1358ccea 839.PHONY: do-info
d32ab992 840do-info: unstage info-host info-target stage
6599da04 841
1358ccea 842.PHONY: info-host
d32ab992 843info-host: \
1358ccea
NN
844 maybe-info-ash \
845 maybe-info-autoconf \
846 maybe-info-automake \
847 maybe-info-bash \
848 maybe-info-bfd \
849 maybe-info-opcodes \
850 maybe-info-binutils \
851 maybe-info-bison \
852 maybe-info-byacc \
853 maybe-info-bzip2 \
854 maybe-info-dejagnu \
855 maybe-info-diff \
856 maybe-info-dosutils \
857 maybe-info-etc \
858 maybe-info-fastjar \
859 maybe-info-fileutils \
860 maybe-info-findutils \
861 maybe-info-find \
862 maybe-info-flex \
863 maybe-info-gas \
d32ab992 864 maybe-info-gcc \
1358ccea
NN
865 maybe-info-gawk \
866 maybe-info-gettext \
867 maybe-info-gnuserv \
868 maybe-info-gprof \
869 maybe-info-gzip \
870 maybe-info-hello \
871 maybe-info-indent \
872 maybe-info-intl \
873 maybe-info-tcl \
874 maybe-info-itcl \
875 maybe-info-ld \
4f4e53dd 876 maybe-info-libcpp \
1358ccea
NN
877 maybe-info-libgui \
878 maybe-info-libiberty \
879 maybe-info-libtool \
880 maybe-info-m4 \
881 maybe-info-make \
882 maybe-info-mmalloc \
883 maybe-info-patch \
884 maybe-info-perl \
885 maybe-info-prms \
886 maybe-info-rcs \
887 maybe-info-readline \
888 maybe-info-release \
889 maybe-info-recode \
890 maybe-info-sed \
891 maybe-info-send-pr \
892 maybe-info-shellutils \
893 maybe-info-sid \
894 maybe-info-sim \
895 maybe-info-tar \
896 maybe-info-texinfo \
897 maybe-info-textutils \
898 maybe-info-time \
899 maybe-info-uudecode \
900 maybe-info-wdiff \
901 maybe-info-zip \
902 maybe-info-zlib \
903 maybe-info-gdb \
904 maybe-info-expect \
905 maybe-info-guile \
906 maybe-info-tk \
1358ccea
NN
907 maybe-info-libtermcap \
908 maybe-info-utils
6599da04 909
1358ccea
NN
910.PHONY: info-target
911info-target: \
912 maybe-info-target-libstdc++-v3 \
6de9cd9a 913 maybe-info-target-libmudflap \
1358ccea 914 maybe-info-target-newlib \
6de9cd9a 915 maybe-info-target-libgfortran \
1358ccea
NN
916 maybe-info-target-libobjc \
917 maybe-info-target-libtermcap \
918 maybe-info-target-winsup \
919 maybe-info-target-libgloss \
920 maybe-info-target-libiberty \
921 maybe-info-target-gperf \
922 maybe-info-target-examples \
923 maybe-info-target-libffi \
924 maybe-info-target-libjava \
925 maybe-info-target-zlib \
926 maybe-info-target-boehm-gc \
927 maybe-info-target-qthreads \
d9cdb878
AC
928 maybe-info-target-rda \
929 maybe-info-target-libada
6599da04 930
295f4e42 931.PHONY: do-dvi
d32ab992 932do-dvi: unstage dvi-host dvi-target stage
4977bab6 933
295f4e42 934.PHONY: dvi-host
d32ab992 935dvi-host: \
295f4e42
NN
936 maybe-dvi-ash \
937 maybe-dvi-autoconf \
938 maybe-dvi-automake \
939 maybe-dvi-bash \
940 maybe-dvi-bfd \
941 maybe-dvi-opcodes \
942 maybe-dvi-binutils \
943 maybe-dvi-bison \
944 maybe-dvi-byacc \
945 maybe-dvi-bzip2 \
946 maybe-dvi-dejagnu \
947 maybe-dvi-diff \
948 maybe-dvi-dosutils \
949 maybe-dvi-etc \
950 maybe-dvi-fastjar \
951 maybe-dvi-fileutils \
952 maybe-dvi-findutils \
953 maybe-dvi-find \
954 maybe-dvi-flex \
955 maybe-dvi-gas \
d32ab992 956 maybe-dvi-gcc \
295f4e42
NN
957 maybe-dvi-gawk \
958 maybe-dvi-gettext \
959 maybe-dvi-gnuserv \
960 maybe-dvi-gprof \
961 maybe-dvi-gzip \
962 maybe-dvi-hello \
963 maybe-dvi-indent \
964 maybe-dvi-intl \
965 maybe-dvi-tcl \
966 maybe-dvi-itcl \
967 maybe-dvi-ld \
4f4e53dd 968 maybe-dvi-libcpp \
295f4e42
NN
969 maybe-dvi-libgui \
970 maybe-dvi-libiberty \
971 maybe-dvi-libtool \
972 maybe-dvi-m4 \
973 maybe-dvi-make \
974 maybe-dvi-mmalloc \
975 maybe-dvi-patch \
976 maybe-dvi-perl \
977 maybe-dvi-prms \
978 maybe-dvi-rcs \
979 maybe-dvi-readline \
980 maybe-dvi-release \
981 maybe-dvi-recode \
982 maybe-dvi-sed \
983 maybe-dvi-send-pr \
984 maybe-dvi-shellutils \
985 maybe-dvi-sid \
986 maybe-dvi-sim \
987 maybe-dvi-tar \
988 maybe-dvi-texinfo \
989 maybe-dvi-textutils \
990 maybe-dvi-time \
991 maybe-dvi-uudecode \
992 maybe-dvi-wdiff \
993 maybe-dvi-zip \
994 maybe-dvi-zlib \
995 maybe-dvi-gdb \
996 maybe-dvi-expect \
997 maybe-dvi-guile \
998 maybe-dvi-tk \
295f4e42
NN
999 maybe-dvi-libtermcap \
1000 maybe-dvi-utils
4977bab6 1001
295f4e42
NN
1002.PHONY: dvi-target
1003dvi-target: \
1004 maybe-dvi-target-libstdc++-v3 \
6de9cd9a 1005 maybe-dvi-target-libmudflap \
295f4e42 1006 maybe-dvi-target-newlib \
6de9cd9a 1007 maybe-dvi-target-libgfortran \
295f4e42
NN
1008 maybe-dvi-target-libobjc \
1009 maybe-dvi-target-libtermcap \
1010 maybe-dvi-target-winsup \
1011 maybe-dvi-target-libgloss \
1012 maybe-dvi-target-libiberty \
1013 maybe-dvi-target-gperf \
1014 maybe-dvi-target-examples \
1015 maybe-dvi-target-libffi \
1016 maybe-dvi-target-libjava \
1017 maybe-dvi-target-zlib \
1018 maybe-dvi-target-boehm-gc \
1019 maybe-dvi-target-qthreads \
1020 maybe-dvi-target-rda \
1021 maybe-dvi-target-libada
4977bab6 1022
295f4e42 1023.PHONY: do-TAGS
d32ab992 1024do-TAGS: unstage TAGS-host TAGS-target stage
4977bab6 1025
295f4e42 1026.PHONY: TAGS-host
d32ab992 1027TAGS-host: \
295f4e42
NN
1028 maybe-TAGS-ash \
1029 maybe-TAGS-autoconf \
1030 maybe-TAGS-automake \
1031 maybe-TAGS-bash \
1032 maybe-TAGS-bfd \
1033 maybe-TAGS-opcodes \
1034 maybe-TAGS-binutils \
1035 maybe-TAGS-bison \
1036 maybe-TAGS-byacc \
1037 maybe-TAGS-bzip2 \
1038 maybe-TAGS-dejagnu \
1039 maybe-TAGS-diff \
1040 maybe-TAGS-dosutils \
1041 maybe-TAGS-etc \
1042 maybe-TAGS-fastjar \
1043 maybe-TAGS-fileutils \
1044 maybe-TAGS-findutils \
1045 maybe-TAGS-find \
1046 maybe-TAGS-flex \
1047 maybe-TAGS-gas \
d32ab992 1048 maybe-TAGS-gcc \
295f4e42
NN
1049 maybe-TAGS-gawk \
1050 maybe-TAGS-gettext \
1051 maybe-TAGS-gnuserv \
1052 maybe-TAGS-gprof \
1053 maybe-TAGS-gzip \
1054 maybe-TAGS-hello \
1055 maybe-TAGS-indent \
1056 maybe-TAGS-intl \
1057 maybe-TAGS-tcl \
1058 maybe-TAGS-itcl \
1059 maybe-TAGS-ld \
4f4e53dd 1060 maybe-TAGS-libcpp \
295f4e42
NN
1061 maybe-TAGS-libgui \
1062 maybe-TAGS-libiberty \
1063 maybe-TAGS-libtool \
1064 maybe-TAGS-m4 \
1065 maybe-TAGS-make \
1066 maybe-TAGS-mmalloc \
1067 maybe-TAGS-patch \
1068 maybe-TAGS-perl \
1069 maybe-TAGS-prms \
1070 maybe-TAGS-rcs \
1071 maybe-TAGS-readline \
1072 maybe-TAGS-release \
1073 maybe-TAGS-recode \
1074 maybe-TAGS-sed \
1075 maybe-TAGS-send-pr \
1076 maybe-TAGS-shellutils \
1077 maybe-TAGS-sid \
1078 maybe-TAGS-sim \
1079 maybe-TAGS-tar \
1080 maybe-TAGS-texinfo \
1081 maybe-TAGS-textutils \
1082 maybe-TAGS-time \
1083 maybe-TAGS-uudecode \
1084 maybe-TAGS-wdiff \
1085 maybe-TAGS-zip \
1086 maybe-TAGS-zlib \
1087 maybe-TAGS-gdb \
1088 maybe-TAGS-expect \
1089 maybe-TAGS-guile \
1090 maybe-TAGS-tk \
295f4e42
NN
1091 maybe-TAGS-libtermcap \
1092 maybe-TAGS-utils
4977bab6 1093
295f4e42
NN
1094.PHONY: TAGS-target
1095TAGS-target: \
1096 maybe-TAGS-target-libstdc++-v3 \
6de9cd9a 1097 maybe-TAGS-target-libmudflap \
295f4e42 1098 maybe-TAGS-target-newlib \
6de9cd9a 1099 maybe-TAGS-target-libgfortran \
295f4e42
NN
1100 maybe-TAGS-target-libobjc \
1101 maybe-TAGS-target-libtermcap \
1102 maybe-TAGS-target-winsup \
1103 maybe-TAGS-target-libgloss \
1104 maybe-TAGS-target-libiberty \
1105 maybe-TAGS-target-gperf \
1106 maybe-TAGS-target-examples \
1107 maybe-TAGS-target-libffi \
1108 maybe-TAGS-target-libjava \
1109 maybe-TAGS-target-zlib \
1110 maybe-TAGS-target-boehm-gc \
1111 maybe-TAGS-target-qthreads \
1112 maybe-TAGS-target-rda \
1113 maybe-TAGS-target-libada
4977bab6 1114
295f4e42 1115.PHONY: do-install-info
d32ab992 1116do-install-info: unstage install-info-host install-info-target stage
4977bab6 1117
295f4e42 1118.PHONY: install-info-host
d32ab992 1119install-info-host: \
295f4e42
NN
1120 maybe-install-info-ash \
1121 maybe-install-info-autoconf \
1122 maybe-install-info-automake \
1123 maybe-install-info-bash \
1124 maybe-install-info-bfd \
1125 maybe-install-info-opcodes \
1126 maybe-install-info-binutils \
1127 maybe-install-info-bison \
1128 maybe-install-info-byacc \
1129 maybe-install-info-bzip2 \
1130 maybe-install-info-dejagnu \
1131 maybe-install-info-diff \
1132 maybe-install-info-dosutils \
1133 maybe-install-info-etc \
1134 maybe-install-info-fastjar \
1135 maybe-install-info-fileutils \
1136 maybe-install-info-findutils \
1137 maybe-install-info-find \
1138 maybe-install-info-flex \
1139 maybe-install-info-gas \
d32ab992 1140 maybe-install-info-gcc \
295f4e42
NN
1141 maybe-install-info-gawk \
1142 maybe-install-info-gettext \
1143 maybe-install-info-gnuserv \
1144 maybe-install-info-gprof \
1145 maybe-install-info-gzip \
1146 maybe-install-info-hello \
1147 maybe-install-info-indent \
1148 maybe-install-info-intl \
1149 maybe-install-info-tcl \
1150 maybe-install-info-itcl \
1151 maybe-install-info-ld \
4f4e53dd 1152 maybe-install-info-libcpp \
295f4e42
NN
1153 maybe-install-info-libgui \
1154 maybe-install-info-libiberty \
1155 maybe-install-info-libtool \
1156 maybe-install-info-m4 \
1157 maybe-install-info-make \
1158 maybe-install-info-mmalloc \
1159 maybe-install-info-patch \
1160 maybe-install-info-perl \
1161 maybe-install-info-prms \
1162 maybe-install-info-rcs \
1163 maybe-install-info-readline \
1164 maybe-install-info-release \
1165 maybe-install-info-recode \
1166 maybe-install-info-sed \
1167 maybe-install-info-send-pr \
1168 maybe-install-info-shellutils \
1169 maybe-install-info-sid \
1170 maybe-install-info-sim \
1171 maybe-install-info-tar \
1172 maybe-install-info-texinfo \
1173 maybe-install-info-textutils \
1174 maybe-install-info-time \
1175 maybe-install-info-uudecode \
1176 maybe-install-info-wdiff \
1177 maybe-install-info-zip \
1178 maybe-install-info-zlib \
1179 maybe-install-info-gdb \
1180 maybe-install-info-expect \
1181 maybe-install-info-guile \
1182 maybe-install-info-tk \
295f4e42
NN
1183 maybe-install-info-libtermcap \
1184 maybe-install-info-utils
1358ccea 1185
295f4e42
NN
1186.PHONY: install-info-target
1187install-info-target: \
1188 maybe-install-info-target-libstdc++-v3 \
6de9cd9a 1189 maybe-install-info-target-libmudflap \
295f4e42 1190 maybe-install-info-target-newlib \
6de9cd9a 1191 maybe-install-info-target-libgfortran \
295f4e42
NN
1192 maybe-install-info-target-libobjc \
1193 maybe-install-info-target-libtermcap \
1194 maybe-install-info-target-winsup \
1195 maybe-install-info-target-libgloss \
1196 maybe-install-info-target-libiberty \
1197 maybe-install-info-target-gperf \
1198 maybe-install-info-target-examples \
1199 maybe-install-info-target-libffi \
1200 maybe-install-info-target-libjava \
1201 maybe-install-info-target-zlib \
1202 maybe-install-info-target-boehm-gc \
1203 maybe-install-info-target-qthreads \
1204 maybe-install-info-target-rda \
1205 maybe-install-info-target-libada
1358ccea 1206
295f4e42 1207.PHONY: do-installcheck
d32ab992 1208do-installcheck: unstage installcheck-host installcheck-target stage
1358ccea 1209
295f4e42 1210.PHONY: installcheck-host
d32ab992 1211installcheck-host: \
295f4e42
NN
1212 maybe-installcheck-ash \
1213 maybe-installcheck-autoconf \
1214 maybe-installcheck-automake \
1215 maybe-installcheck-bash \
1216 maybe-installcheck-bfd \
1217 maybe-installcheck-opcodes \
1218 maybe-installcheck-binutils \
1219 maybe-installcheck-bison \
1220 maybe-installcheck-byacc \
1221 maybe-installcheck-bzip2 \
1222 maybe-installcheck-dejagnu \
1223 maybe-installcheck-diff \
1224 maybe-installcheck-dosutils \
1225 maybe-installcheck-etc \
1226 maybe-installcheck-fastjar \
1227 maybe-installcheck-fileutils \
1228 maybe-installcheck-findutils \
1229 maybe-installcheck-find \
1230 maybe-installcheck-flex \
1231 maybe-installcheck-gas \
d32ab992 1232 maybe-installcheck-gcc \
295f4e42
NN
1233 maybe-installcheck-gawk \
1234 maybe-installcheck-gettext \
1235 maybe-installcheck-gnuserv \
1236 maybe-installcheck-gprof \
1237 maybe-installcheck-gzip \
1238 maybe-installcheck-hello \
1239 maybe-installcheck-indent \
1240 maybe-installcheck-intl \
1241 maybe-installcheck-tcl \
1242 maybe-installcheck-itcl \
1243 maybe-installcheck-ld \
4f4e53dd 1244 maybe-installcheck-libcpp \
295f4e42
NN
1245 maybe-installcheck-libgui \
1246 maybe-installcheck-libiberty \
1247 maybe-installcheck-libtool \
1248 maybe-installcheck-m4 \
1249 maybe-installcheck-make \
1250 maybe-installcheck-mmalloc \
1251 maybe-installcheck-patch \
1252 maybe-installcheck-perl \
1253 maybe-installcheck-prms \
1254 maybe-installcheck-rcs \
1255 maybe-installcheck-readline \
1256 maybe-installcheck-release \
1257 maybe-installcheck-recode \
1258 maybe-installcheck-sed \
1259 maybe-installcheck-send-pr \
1260 maybe-installcheck-shellutils \
1261 maybe-installcheck-sid \
1262 maybe-installcheck-sim \
1263 maybe-installcheck-tar \
1264 maybe-installcheck-texinfo \
1265 maybe-installcheck-textutils \
1266 maybe-installcheck-time \
1267 maybe-installcheck-uudecode \
1268 maybe-installcheck-wdiff \
1269 maybe-installcheck-zip \
1270 maybe-installcheck-zlib \
1271 maybe-installcheck-gdb \
1272 maybe-installcheck-expect \
1273 maybe-installcheck-guile \
1274 maybe-installcheck-tk \
295f4e42
NN
1275 maybe-installcheck-libtermcap \
1276 maybe-installcheck-utils
1358ccea 1277
295f4e42
NN
1278.PHONY: installcheck-target
1279installcheck-target: \
1280 maybe-installcheck-target-libstdc++-v3 \
6de9cd9a 1281 maybe-installcheck-target-libmudflap \
295f4e42 1282 maybe-installcheck-target-newlib \
6de9cd9a 1283 maybe-installcheck-target-libgfortran \
295f4e42
NN
1284 maybe-installcheck-target-libobjc \
1285 maybe-installcheck-target-libtermcap \
1286 maybe-installcheck-target-winsup \
1287 maybe-installcheck-target-libgloss \
1288 maybe-installcheck-target-libiberty \
1289 maybe-installcheck-target-gperf \
1290 maybe-installcheck-target-examples \
1291 maybe-installcheck-target-libffi \
1292 maybe-installcheck-target-libjava \
1293 maybe-installcheck-target-zlib \
1294 maybe-installcheck-target-boehm-gc \
1295 maybe-installcheck-target-qthreads \
1296 maybe-installcheck-target-rda \
1297 maybe-installcheck-target-libada
1358ccea 1298
295f4e42 1299.PHONY: do-mostlyclean
d32ab992 1300do-mostlyclean: unstage mostlyclean-host mostlyclean-target stage
1358ccea 1301
295f4e42 1302.PHONY: mostlyclean-host
d32ab992 1303mostlyclean-host: \
295f4e42
NN
1304 maybe-mostlyclean-ash \
1305 maybe-mostlyclean-autoconf \
1306 maybe-mostlyclean-automake \
1307 maybe-mostlyclean-bash \
1308 maybe-mostlyclean-bfd \
1309 maybe-mostlyclean-opcodes \
1310 maybe-mostlyclean-binutils \
1311 maybe-mostlyclean-bison \
1312 maybe-mostlyclean-byacc \
1313 maybe-mostlyclean-bzip2 \
1314 maybe-mostlyclean-dejagnu \
1315 maybe-mostlyclean-diff \
1316 maybe-mostlyclean-dosutils \
1317 maybe-mostlyclean-etc \
1318 maybe-mostlyclean-fastjar \
1319 maybe-mostlyclean-fileutils \
1320 maybe-mostlyclean-findutils \
1321 maybe-mostlyclean-find \
1322 maybe-mostlyclean-flex \
1323 maybe-mostlyclean-gas \
d32ab992 1324 maybe-mostlyclean-gcc \
295f4e42
NN
1325 maybe-mostlyclean-gawk \
1326 maybe-mostlyclean-gettext \
1327 maybe-mostlyclean-gnuserv \
1328 maybe-mostlyclean-gprof \
1329 maybe-mostlyclean-gzip \
1330 maybe-mostlyclean-hello \
1331 maybe-mostlyclean-indent \
1332 maybe-mostlyclean-intl \
1333 maybe-mostlyclean-tcl \
1334 maybe-mostlyclean-itcl \
1335 maybe-mostlyclean-ld \
4f4e53dd 1336 maybe-mostlyclean-libcpp \
295f4e42
NN
1337 maybe-mostlyclean-libgui \
1338 maybe-mostlyclean-libiberty \
1339 maybe-mostlyclean-libtool \
1340 maybe-mostlyclean-m4 \
1341 maybe-mostlyclean-make \
1342 maybe-mostlyclean-mmalloc \
1343 maybe-mostlyclean-patch \
1344 maybe-mostlyclean-perl \
1345 maybe-mostlyclean-prms \
1346 maybe-mostlyclean-rcs \
1347 maybe-mostlyclean-readline \
1348 maybe-mostlyclean-release \
1349 maybe-mostlyclean-recode \
1350 maybe-mostlyclean-sed \
1351 maybe-mostlyclean-send-pr \
1352 maybe-mostlyclean-shellutils \
1353 maybe-mostlyclean-sid \
1354 maybe-mostlyclean-sim \
1355 maybe-mostlyclean-tar \
1356 maybe-mostlyclean-texinfo \
1357 maybe-mostlyclean-textutils \
1358 maybe-mostlyclean-time \
1359 maybe-mostlyclean-uudecode \
1360 maybe-mostlyclean-wdiff \
1361 maybe-mostlyclean-zip \
1362 maybe-mostlyclean-zlib \
1363 maybe-mostlyclean-gdb \
1364 maybe-mostlyclean-expect \
1365 maybe-mostlyclean-guile \
1366 maybe-mostlyclean-tk \
295f4e42
NN
1367 maybe-mostlyclean-libtermcap \
1368 maybe-mostlyclean-utils
1358ccea 1369
295f4e42
NN
1370.PHONY: mostlyclean-target
1371mostlyclean-target: \
1372 maybe-mostlyclean-target-libstdc++-v3 \
6de9cd9a 1373 maybe-mostlyclean-target-libmudflap \
295f4e42 1374 maybe-mostlyclean-target-newlib \
6de9cd9a 1375 maybe-mostlyclean-target-libgfortran \
295f4e42
NN
1376 maybe-mostlyclean-target-libobjc \
1377 maybe-mostlyclean-target-libtermcap \
1378 maybe-mostlyclean-target-winsup \
1379 maybe-mostlyclean-target-libgloss \
1380 maybe-mostlyclean-target-libiberty \
1381 maybe-mostlyclean-target-gperf \
1382 maybe-mostlyclean-target-examples \
1383 maybe-mostlyclean-target-libffi \
1384 maybe-mostlyclean-target-libjava \
1385 maybe-mostlyclean-target-zlib \
1386 maybe-mostlyclean-target-boehm-gc \
1387 maybe-mostlyclean-target-qthreads \
1388 maybe-mostlyclean-target-rda \
1389 maybe-mostlyclean-target-libada
1358ccea 1390
295f4e42 1391.PHONY: do-clean
d32ab992 1392do-clean: unstage clean-host clean-target stage
1358ccea 1393
295f4e42 1394.PHONY: clean-host
d32ab992 1395clean-host: \
295f4e42
NN
1396 maybe-clean-ash \
1397 maybe-clean-autoconf \
1398 maybe-clean-automake \
1399 maybe-clean-bash \
1400 maybe-clean-bfd \
1401 maybe-clean-opcodes \
1402 maybe-clean-binutils \
1403 maybe-clean-bison \
1404 maybe-clean-byacc \
1405 maybe-clean-bzip2 \
1406 maybe-clean-dejagnu \
1407 maybe-clean-diff \
1408 maybe-clean-dosutils \
1409 maybe-clean-etc \
1410 maybe-clean-fastjar \
1411 maybe-clean-fileutils \
1412 maybe-clean-findutils \
1413 maybe-clean-find \
1414 maybe-clean-flex \
1415 maybe-clean-gas \
d32ab992 1416 maybe-clean-gcc \
295f4e42
NN
1417 maybe-clean-gawk \
1418 maybe-clean-gettext \
1419 maybe-clean-gnuserv \
1420 maybe-clean-gprof \
1421 maybe-clean-gzip \
1422 maybe-clean-hello \
1423 maybe-clean-indent \
1424 maybe-clean-intl \
1425 maybe-clean-tcl \
1426 maybe-clean-itcl \
1427 maybe-clean-ld \
4f4e53dd 1428 maybe-clean-libcpp \
295f4e42
NN
1429 maybe-clean-libgui \
1430 maybe-clean-libiberty \
1431 maybe-clean-libtool \
1432 maybe-clean-m4 \
1433 maybe-clean-make \
1434 maybe-clean-mmalloc \
1435 maybe-clean-patch \
1436 maybe-clean-perl \
1437 maybe-clean-prms \
1438 maybe-clean-rcs \
1439 maybe-clean-readline \
1440 maybe-clean-release \
1441 maybe-clean-recode \
1442 maybe-clean-sed \
1443 maybe-clean-send-pr \
1444 maybe-clean-shellutils \
1445 maybe-clean-sid \
1446 maybe-clean-sim \
1447 maybe-clean-tar \
1448 maybe-clean-texinfo \
1449 maybe-clean-textutils \
1450 maybe-clean-time \
1451 maybe-clean-uudecode \
1452 maybe-clean-wdiff \
1453 maybe-clean-zip \
1454 maybe-clean-zlib \
1455 maybe-clean-gdb \
1456 maybe-clean-expect \
1457 maybe-clean-guile \
1458 maybe-clean-tk \
295f4e42
NN
1459 maybe-clean-libtermcap \
1460 maybe-clean-utils
1358ccea 1461
295f4e42
NN
1462.PHONY: clean-target
1463clean-target: \
1464 maybe-clean-target-libstdc++-v3 \
6de9cd9a 1465 maybe-clean-target-libmudflap \
295f4e42 1466 maybe-clean-target-newlib \
6de9cd9a 1467 maybe-clean-target-libgfortran \
295f4e42
NN
1468 maybe-clean-target-libobjc \
1469 maybe-clean-target-libtermcap \
1470 maybe-clean-target-winsup \
1471 maybe-clean-target-libgloss \
1472 maybe-clean-target-libiberty \
1473 maybe-clean-target-gperf \
1474 maybe-clean-target-examples \
1475 maybe-clean-target-libffi \
1476 maybe-clean-target-libjava \
1477 maybe-clean-target-zlib \
1478 maybe-clean-target-boehm-gc \
1479 maybe-clean-target-qthreads \
1480 maybe-clean-target-rda \
1481 maybe-clean-target-libada
1358ccea 1482
295f4e42 1483.PHONY: do-distclean
d32ab992 1484do-distclean: unstage distclean-host distclean-target stage
1358ccea 1485
295f4e42 1486.PHONY: distclean-host
d32ab992 1487distclean-host: \
295f4e42
NN
1488 maybe-distclean-ash \
1489 maybe-distclean-autoconf \
1490 maybe-distclean-automake \
1491 maybe-distclean-bash \
1492 maybe-distclean-bfd \
1493 maybe-distclean-opcodes \
1494 maybe-distclean-binutils \
1495 maybe-distclean-bison \
1496 maybe-distclean-byacc \
1497 maybe-distclean-bzip2 \
1498 maybe-distclean-dejagnu \
1499 maybe-distclean-diff \
1500 maybe-distclean-dosutils \
1501 maybe-distclean-etc \
1502 maybe-distclean-fastjar \
1503 maybe-distclean-fileutils \
1504 maybe-distclean-findutils \
1505 maybe-distclean-find \
1506 maybe-distclean-flex \
1507 maybe-distclean-gas \
d32ab992 1508 maybe-distclean-gcc \
295f4e42
NN
1509 maybe-distclean-gawk \
1510 maybe-distclean-gettext \
1511 maybe-distclean-gnuserv \
1512 maybe-distclean-gprof \
1513 maybe-distclean-gzip \
1514 maybe-distclean-hello \
1515 maybe-distclean-indent \
1516 maybe-distclean-intl \
1517 maybe-distclean-tcl \
1518 maybe-distclean-itcl \
1519 maybe-distclean-ld \
4f4e53dd 1520 maybe-distclean-libcpp \
295f4e42
NN
1521 maybe-distclean-libgui \
1522 maybe-distclean-libiberty \
1523 maybe-distclean-libtool \
1524 maybe-distclean-m4 \
1525 maybe-distclean-make \
1526 maybe-distclean-mmalloc \
1527 maybe-distclean-patch \
1528 maybe-distclean-perl \
1529 maybe-distclean-prms \
1530 maybe-distclean-rcs \
1531 maybe-distclean-readline \
1532 maybe-distclean-release \
1533 maybe-distclean-recode \
1534 maybe-distclean-sed \
1535 maybe-distclean-send-pr \
1536 maybe-distclean-shellutils \
1537 maybe-distclean-sid \
1538 maybe-distclean-sim \
1539 maybe-distclean-tar \
1540 maybe-distclean-texinfo \
1541 maybe-distclean-textutils \
1542 maybe-distclean-time \
1543 maybe-distclean-uudecode \
1544 maybe-distclean-wdiff \
1545 maybe-distclean-zip \
1546 maybe-distclean-zlib \
1547 maybe-distclean-gdb \
1548 maybe-distclean-expect \
1549 maybe-distclean-guile \
1550 maybe-distclean-tk \
295f4e42
NN
1551 maybe-distclean-libtermcap \
1552 maybe-distclean-utils
1358ccea 1553
295f4e42
NN
1554.PHONY: distclean-target
1555distclean-target: \
1556 maybe-distclean-target-libstdc++-v3 \
6de9cd9a 1557 maybe-distclean-target-libmudflap \
295f4e42 1558 maybe-distclean-target-newlib \
6de9cd9a 1559 maybe-distclean-target-libgfortran \
295f4e42
NN
1560 maybe-distclean-target-libobjc \
1561 maybe-distclean-target-libtermcap \
1562 maybe-distclean-target-winsup \
1563 maybe-distclean-target-libgloss \
1564 maybe-distclean-target-libiberty \
1565 maybe-distclean-target-gperf \
1566 maybe-distclean-target-examples \
1567 maybe-distclean-target-libffi \
1568 maybe-distclean-target-libjava \
1569 maybe-distclean-target-zlib \
1570 maybe-distclean-target-boehm-gc \
1571 maybe-distclean-target-qthreads \
1572 maybe-distclean-target-rda \
1573 maybe-distclean-target-libada
1358ccea 1574
295f4e42 1575.PHONY: do-maintainer-clean
d32ab992 1576do-maintainer-clean: unstage maintainer-clean-host maintainer-clean-target stage
1358ccea 1577
295f4e42 1578.PHONY: maintainer-clean-host
d32ab992 1579maintainer-clean-host: \
295f4e42
NN
1580 maybe-maintainer-clean-ash \
1581 maybe-maintainer-clean-autoconf \
1582 maybe-maintainer-clean-automake \
1583 maybe-maintainer-clean-bash \
1584 maybe-maintainer-clean-bfd \
1585 maybe-maintainer-clean-opcodes \
1586 maybe-maintainer-clean-binutils \
1587 maybe-maintainer-clean-bison \
1588 maybe-maintainer-clean-byacc \
1589 maybe-maintainer-clean-bzip2 \
1590 maybe-maintainer-clean-dejagnu \
1591 maybe-maintainer-clean-diff \
1592 maybe-maintainer-clean-dosutils \
1593 maybe-maintainer-clean-etc \
1594 maybe-maintainer-clean-fastjar \
1595 maybe-maintainer-clean-fileutils \
1596 maybe-maintainer-clean-findutils \
1597 maybe-maintainer-clean-find \
1598 maybe-maintainer-clean-flex \
1599 maybe-maintainer-clean-gas \
d32ab992 1600 maybe-maintainer-clean-gcc \
295f4e42
NN
1601 maybe-maintainer-clean-gawk \
1602 maybe-maintainer-clean-gettext \
1603 maybe-maintainer-clean-gnuserv \
1604 maybe-maintainer-clean-gprof \
1605 maybe-maintainer-clean-gzip \
1606 maybe-maintainer-clean-hello \
1607 maybe-maintainer-clean-indent \
1608 maybe-maintainer-clean-intl \
1609 maybe-maintainer-clean-tcl \
1610 maybe-maintainer-clean-itcl \
1611 maybe-maintainer-clean-ld \
4f4e53dd 1612 maybe-maintainer-clean-libcpp \
295f4e42
NN
1613 maybe-maintainer-clean-libgui \
1614 maybe-maintainer-clean-libiberty \
1615 maybe-maintainer-clean-libtool \
1616 maybe-maintainer-clean-m4 \
1617 maybe-maintainer-clean-make \
1618 maybe-maintainer-clean-mmalloc \
1619 maybe-maintainer-clean-patch \
1620 maybe-maintainer-clean-perl \
1621 maybe-maintainer-clean-prms \
1622 maybe-maintainer-clean-rcs \
1623 maybe-maintainer-clean-readline \
1624 maybe-maintainer-clean-release \
1625 maybe-maintainer-clean-recode \
1626 maybe-maintainer-clean-sed \
1627 maybe-maintainer-clean-send-pr \
1628 maybe-maintainer-clean-shellutils \
1629 maybe-maintainer-clean-sid \
1630 maybe-maintainer-clean-sim \
1631 maybe-maintainer-clean-tar \
1632 maybe-maintainer-clean-texinfo \
1633 maybe-maintainer-clean-textutils \
1634 maybe-maintainer-clean-time \
1635 maybe-maintainer-clean-uudecode \
1636 maybe-maintainer-clean-wdiff \
1637 maybe-maintainer-clean-zip \
1638 maybe-maintainer-clean-zlib \
1639 maybe-maintainer-clean-gdb \
1640 maybe-maintainer-clean-expect \
1641 maybe-maintainer-clean-guile \
1642 maybe-maintainer-clean-tk \
295f4e42
NN
1643 maybe-maintainer-clean-libtermcap \
1644 maybe-maintainer-clean-utils
1358ccea 1645
295f4e42
NN
1646.PHONY: maintainer-clean-target
1647maintainer-clean-target: \
1648 maybe-maintainer-clean-target-libstdc++-v3 \
6de9cd9a 1649 maybe-maintainer-clean-target-libmudflap \
295f4e42 1650 maybe-maintainer-clean-target-newlib \
6de9cd9a 1651 maybe-maintainer-clean-target-libgfortran \
295f4e42
NN
1652 maybe-maintainer-clean-target-libobjc \
1653 maybe-maintainer-clean-target-libtermcap \
1654 maybe-maintainer-clean-target-winsup \
1655 maybe-maintainer-clean-target-libgloss \
1656 maybe-maintainer-clean-target-libiberty \
1657 maybe-maintainer-clean-target-gperf \
1658 maybe-maintainer-clean-target-examples \
1659 maybe-maintainer-clean-target-libffi \
1660 maybe-maintainer-clean-target-libjava \
1661 maybe-maintainer-clean-target-zlib \
1662 maybe-maintainer-clean-target-boehm-gc \
1663 maybe-maintainer-clean-target-qthreads \
1664 maybe-maintainer-clean-target-rda \
1665 maybe-maintainer-clean-target-libada
1358ccea 1666
1358ccea 1667
295f4e42 1668# Here are the targets which correspond to the do-X targets.
1358ccea 1669
295f4e42
NN
1670.PHONY: info installcheck dvi install-info
1671.PHONY: clean distclean mostlyclean maintainer-clean realclean
1672.PHONY: local-clean local-distclean local-maintainer-clean
1673info: do-info
1674installcheck: do-installcheck
1675dvi: do-dvi
1358ccea 1676
295f4e42
NN
1677# Make sure makeinfo is built before we do a `make info', if we're
1678# in fact building texinfo.
1679do-info: maybe-all-texinfo
1358ccea 1680
295f4e42 1681install-info: do-install-info dir.info
8c90b13a 1682 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
295f4e42
NN
1683 if [ -f dir.info ] ; then \
1684 $(INSTALL_DATA) dir.info $(DESTDIR)$(infodir)/dir.info ; \
1685 else true ; fi
1358ccea 1686
295f4e42
NN
1687local-clean:
1688 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
1358ccea 1689
295f4e42
NN
1690local-distclean:
1691 -rm -f Makefile config.status config.cache mh-frag mt-frag
1692 -rm -f multilib.out multilib.tmp maybedep.tmp serdep.tmp
1693 -if [ "$(TARGET_SUBDIR)" != "." ]; then \
1694 rm -rf $(TARGET_SUBDIR); \
1695 else true; fi
1696 -rm -rf $(BUILD_SUBDIR)
1697 -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
1698 -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
1699 -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
1700 -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
1701 -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
1358ccea 1702
295f4e42
NN
1703local-maintainer-clean:
1704 @echo "This command is intended for maintainers to use;"
1705 @echo "it deletes files that may require special tools to rebuild."
1358ccea 1706
295f4e42
NN
1707clean: do-clean local-clean
1708mostlyclean: do-mostlyclean local-clean
1709distclean: do-distclean local-clean local-distclean
1710maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
1711maintainer-clean: local-distclean
1712realclean: maintainer-clean
1358ccea 1713
295f4e42
NN
1714# Extra dependency for clean-target, owing to the mixed nature of gcc
1715clean-target: clean-target-libgcc
1716clean-target-libgcc:
1717 test ! -d gcc/libgcc || \
1718 (cd gcc/libgcc && find . -type d -print) | \
1719 while read d; do rm -f gcc/$$d/libgcc.a || : ; done
1720 -rm -rf gcc/libgcc
1358ccea 1721
295f4e42 1722# Check target.
1358ccea 1723
295f4e42
NN
1724.PHONY: check do-check
1725check: do-check
1358ccea 1726
295f4e42 1727# Only include modules actually being configured and built.
d32ab992 1728do-check: unstage \
295f4e42
NN
1729 maybe-check-ash \
1730 maybe-check-autoconf \
1731 maybe-check-automake \
1732 maybe-check-bash \
1733 maybe-check-bfd \
1734 maybe-check-opcodes \
1735 maybe-check-binutils \
1736 maybe-check-bison \
1737 maybe-check-byacc \
1738 maybe-check-bzip2 \
1739 maybe-check-dejagnu \
1740 maybe-check-diff \
1741 maybe-check-dosutils \
1742 maybe-check-etc \
1743 maybe-check-fastjar \
1744 maybe-check-fileutils \
1745 maybe-check-findutils \
1746 maybe-check-find \
1747 maybe-check-flex \
1748 maybe-check-gas \
d32ab992 1749 maybe-check-gcc \
295f4e42
NN
1750 maybe-check-gawk \
1751 maybe-check-gettext \
1752 maybe-check-gnuserv \
1753 maybe-check-gprof \
1754 maybe-check-gzip \
1755 maybe-check-hello \
1756 maybe-check-indent \
1757 maybe-check-intl \
1758 maybe-check-tcl \
1759 maybe-check-itcl \
1760 maybe-check-ld \
4f4e53dd 1761 maybe-check-libcpp \
295f4e42
NN
1762 maybe-check-libgui \
1763 maybe-check-libiberty \
1764 maybe-check-libtool \
1765 maybe-check-m4 \
1766 maybe-check-make \
1767 maybe-check-mmalloc \
1768 maybe-check-patch \
1769 maybe-check-perl \
1770 maybe-check-prms \
1771 maybe-check-rcs \
1772 maybe-check-readline \
1773 maybe-check-release \
1774 maybe-check-recode \
1775 maybe-check-sed \
1776 maybe-check-send-pr \
1777 maybe-check-shellutils \
1778 maybe-check-sid \
1779 maybe-check-sim \
1780 maybe-check-tar \
1781 maybe-check-texinfo \
1782 maybe-check-textutils \
1783 maybe-check-time \
1784 maybe-check-uudecode \
1785 maybe-check-wdiff \
1786 maybe-check-zip \
1787 maybe-check-zlib \
1788 maybe-check-gdb \
1789 maybe-check-expect \
1790 maybe-check-guile \
1791 maybe-check-tk \
295f4e42
NN
1792 maybe-check-libtermcap \
1793 maybe-check-utils \
1794 maybe-check-target-libstdc++-v3 \
6de9cd9a 1795 maybe-check-target-libmudflap \
295f4e42 1796 maybe-check-target-newlib \
6de9cd9a 1797 maybe-check-target-libgfortran \
295f4e42
NN
1798 maybe-check-target-libobjc \
1799 maybe-check-target-libtermcap \
1800 maybe-check-target-winsup \
1801 maybe-check-target-libgloss \
1802 maybe-check-target-libiberty \
1803 maybe-check-target-gperf \
1804 maybe-check-target-examples \
1805 maybe-check-target-libffi \
1806 maybe-check-target-libjava \
1807 maybe-check-target-zlib \
1808 maybe-check-target-boehm-gc \
1809 maybe-check-target-qthreads \
1810 maybe-check-target-rda \
d32ab992 1811 maybe-check-target-libada stage
1358ccea 1812
295f4e42 1813# Automated reporting of test results.
1358ccea 1814
295f4e42
NN
1815warning.log: build.log
1816 $(srcdir)/contrib/warn_summary build.log > $@
d9cdb878 1817
295f4e42
NN
1818mail-report.log:
1819 if test x'$(BOOT_CFLAGS)' != x''; then \
1820 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1821 fi; \
1822 $(srcdir)/contrib/test_summary -t >$@
1823 chmod +x $@
1824 echo If you really want to send e-mail, run ./$@ now
d9cdb878 1825
295f4e42
NN
1826mail-report-with-warnings.log: warning.log
1827 if test x'$(BOOT_CFLAGS)' != x''; then \
1828 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1829 fi; \
1830 $(srcdir)/contrib/test_summary -t -i warning.log >$@
1831 chmod +x $@
1832 echo If you really want to send e-mail, run ./$@ now
d9cdb878 1833
295f4e42 1834# Installation targets.
1358ccea 1835
295f4e42
NN
1836.PHONY: install uninstall
1837install: installdirs install-host install-target
1358ccea 1838
295f4e42
NN
1839.PHONY: install-host-nogcc
1840install-host-nogcc: \
1841 maybe-install-ash \
1842 maybe-install-autoconf \
1843 maybe-install-automake \
1844 maybe-install-bash \
1845 maybe-install-bfd \
1846 maybe-install-opcodes \
1847 maybe-install-binutils \
1848 maybe-install-bison \
1849 maybe-install-byacc \
1850 maybe-install-bzip2 \
1851 maybe-install-dejagnu \
1852 maybe-install-diff \
1853 maybe-install-dosutils \
1854 maybe-install-etc \
1855 maybe-install-fastjar \
1856 maybe-install-fileutils \
1857 maybe-install-findutils \
1858 maybe-install-find \
1859 maybe-install-flex \
1860 maybe-install-gas \
1861 maybe-install-gawk \
1862 maybe-install-gettext \
1863 maybe-install-gnuserv \
1864 maybe-install-gprof \
1865 maybe-install-gzip \
1866 maybe-install-hello \
1867 maybe-install-indent \
1868 maybe-install-intl \
1869 maybe-install-tcl \
1870 maybe-install-itcl \
1871 maybe-install-ld \
4f4e53dd 1872 maybe-install-libcpp \
295f4e42
NN
1873 maybe-install-libgui \
1874 maybe-install-libiberty \
1875 maybe-install-libtool \
1876 maybe-install-m4 \
1877 maybe-install-make \
1878 maybe-install-mmalloc \
1879 maybe-install-patch \
1880 maybe-install-perl \
1881 maybe-install-prms \
1882 maybe-install-rcs \
1883 maybe-install-readline \
1884 maybe-install-release \
1885 maybe-install-recode \
1886 maybe-install-sed \
1887 maybe-install-send-pr \
1888 maybe-install-shellutils \
1889 maybe-install-sid \
1890 maybe-install-sim \
1891 maybe-install-tar \
1892 maybe-install-texinfo \
1893 maybe-install-textutils \
1894 maybe-install-time \
1895 maybe-install-uudecode \
1896 maybe-install-wdiff \
1897 maybe-install-zip \
1898 maybe-install-zlib \
1899 maybe-install-gdb \
1900 maybe-install-expect \
1901 maybe-install-guile \
1902 maybe-install-tk \
295f4e42
NN
1903 maybe-install-libtermcap \
1904 maybe-install-utils
1905
1906.PHONY: install-host
d32ab992 1907install-host: \
295f4e42
NN
1908 maybe-install-ash \
1909 maybe-install-autoconf \
1910 maybe-install-automake \
1911 maybe-install-bash \
1912 maybe-install-bfd \
1913 maybe-install-opcodes \
1914 maybe-install-binutils \
1915 maybe-install-bison \
1916 maybe-install-byacc \
1917 maybe-install-bzip2 \
1918 maybe-install-dejagnu \
1919 maybe-install-diff \
1920 maybe-install-dosutils \
1921 maybe-install-etc \
1922 maybe-install-fastjar \
1923 maybe-install-fileutils \
1924 maybe-install-findutils \
1925 maybe-install-find \
1926 maybe-install-flex \
1927 maybe-install-gas \
d32ab992 1928 maybe-install-gcc \
295f4e42
NN
1929 maybe-install-gawk \
1930 maybe-install-gettext \
1931 maybe-install-gnuserv \
1932 maybe-install-gprof \
1933 maybe-install-gzip \
1934 maybe-install-hello \
1935 maybe-install-indent \
1936 maybe-install-intl \
1937 maybe-install-tcl \
1938 maybe-install-itcl \
1939 maybe-install-ld \
4f4e53dd 1940 maybe-install-libcpp \
295f4e42
NN
1941 maybe-install-libgui \
1942 maybe-install-libiberty \
1943 maybe-install-libtool \
1944 maybe-install-m4 \
1945 maybe-install-make \
1946 maybe-install-mmalloc \
1947 maybe-install-patch \
1948 maybe-install-perl \
1949 maybe-install-prms \
1950 maybe-install-rcs \
1951 maybe-install-readline \
1952 maybe-install-release \
1953 maybe-install-recode \
1954 maybe-install-sed \
1955 maybe-install-send-pr \
1956 maybe-install-shellutils \
1957 maybe-install-sid \
1958 maybe-install-sim \
1959 maybe-install-tar \
1960 maybe-install-texinfo \
1961 maybe-install-textutils \
1962 maybe-install-time \
1963 maybe-install-uudecode \
1964 maybe-install-wdiff \
1965 maybe-install-zip \
1966 maybe-install-zlib \
1967 maybe-install-gdb \
1968 maybe-install-expect \
1969 maybe-install-guile \
1970 maybe-install-tk \
295f4e42
NN
1971 maybe-install-libtermcap \
1972 maybe-install-utils
1973
1974.PHONY: install-target
1975install-target: \
1976 maybe-install-target-libstdc++-v3 \
6de9cd9a 1977 maybe-install-target-libmudflap \
295f4e42 1978 maybe-install-target-newlib \
6de9cd9a 1979 maybe-install-target-libgfortran \
295f4e42
NN
1980 maybe-install-target-libobjc \
1981 maybe-install-target-libtermcap \
1982 maybe-install-target-winsup \
1983 maybe-install-target-libgloss \
1984 maybe-install-target-libiberty \
1985 maybe-install-target-gperf \
1986 maybe-install-target-examples \
1987 maybe-install-target-libffi \
1988 maybe-install-target-libjava \
1989 maybe-install-target-zlib \
1990 maybe-install-target-boehm-gc \
1991 maybe-install-target-qthreads \
1992 maybe-install-target-rda \
1993 maybe-install-target-libada
1358ccea 1994
295f4e42
NN
1995uninstall:
1996 @echo "the uninstall target is not supported in this tree"
1358ccea 1997
295f4e42
NN
1998.PHONY: install.all
1999install.all: install-no-fixedincludes
2000 @if [ -f ./gcc/Makefile ] ; then \
2001 r=`${PWD_COMMAND}` ; export r ; \
2002 $(SET_LIB_PATH) \
a52a0a7f 2003 $(HOST_EXPORTS) \
295f4e42
NN
2004 (cd ./gcc && \
2005 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
2006 else \
2007 true ; \
2008 fi
1358ccea 2009
295f4e42
NN
2010# install-no-fixedincludes is used because Cygnus can not distribute
2011# the fixed header files.
2012.PHONY: install-no-fixedincludes
2013install-no-fixedincludes: installdirs install-host-nogcc \
2014 install-target gcc-no-fixedincludes
1358ccea 2015
295f4e42 2016### other supporting targets
1358ccea 2017
295f4e42
NN
2018MAKEDIRS= \
2019 $(DESTDIR)$(prefix) \
2020 $(DESTDIR)$(exec_prefix)
2021.PHONY: installdirs
2022installdirs: mkinstalldirs
2023 $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
1358ccea 2024
295f4e42
NN
2025dir.info: do-install-info
2026 if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
2027 $(srcdir)/texinfo/gen-info-dir $(DESTDIR)$(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
2028 mv -f dir.info.new dir.info ; \
2029 else true ; \
2030 fi
1358ccea 2031
295f4e42
NN
2032dist:
2033 @echo "Building a full distribution of this tree isn't done"
2034 @echo "via 'make dist'. Check out the etc/ subdirectory"
1358ccea 2035
295f4e42 2036etags tags: TAGS
1358ccea 2037
295f4e42
NN
2038# Right now this just builds TAGS in each subdirectory. emacs19 has the
2039# ability to use several tags files at once, so there is probably no need
2040# to combine them into one big TAGS file (like CVS 1.3 does). We could
2041# (if we felt like it) have this Makefile write a piece of elisp which
2042# the user could load to tell emacs19 where all the TAGS files we just
2043# built are.
2044TAGS: do-TAGS
1358ccea 2045
295f4e42
NN
2046# --------------------------------------
2047# Modules which run on the build machine
2048# --------------------------------------
1358ccea 2049
295f4e42
NN
2050.PHONY: configure-build-libiberty maybe-configure-build-libiberty
2051maybe-configure-build-libiberty:
60975492
PB
2052@if build-libiberty
2053maybe-configure-build-libiberty: configure-build-libiberty
295f4e42
NN
2054configure-build-libiberty:
2055 @test ! -f $(BUILD_SUBDIR)/libiberty/Makefile || exit 0; \
2056 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libiberty ; \
8c90b13a
L
2057 r=`${PWD_COMMAND}`; export r; \
2058 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 2059 $(BUILD_EXPORTS) \
295f4e42
NN
2060 echo Configuring in $(BUILD_SUBDIR)/libiberty; \
2061 cd "$(BUILD_SUBDIR)/libiberty" || exit 1; \
2062 case $(srcdir) in \
2063 /* | [A-Za-z]:[\\/]*) \
2064 topdir=$(srcdir) ;; \
2065 *) \
2066 case "$(BUILD_SUBDIR)" in \
2067 .) topdir="../$(srcdir)" ;; \
2068 *) topdir="../../$(srcdir)" ;; \
2069 esac ;; \
2070 esac; \
2071 if [ "$(srcdir)" = "." ] ; then \
2072 if [ "$(BUILD_SUBDIR)" != "." ] ; then \
2073 if $(SHELL) $$s/symlink-tree $${topdir}/libiberty "no-such-file" ; then \
2074 if [ -f Makefile ]; then \
2075 if $(MAKE) distclean; then \
2076 true; \
2077 else \
2078 exit 1; \
2079 fi; \
2080 else \
2081 true; \
2082 fi; \
2083 else \
2084 exit 1; \
2085 fi; \
2086 else \
2087 true; \
2088 fi; \
2089 srcdiroption="--srcdir=."; \
2090 libsrcdir="."; \
2091 else \
2092 srcdiroption="--srcdir=$${topdir}/libiberty"; \
2093 libsrcdir="$$s/libiberty"; \
2094 fi; \
2095 rm -f no-such-file || : ; \
2096 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2097 $(BUILD_CONFIGARGS) $${srcdiroption} \
a52a0a7f 2098 --with-build-subdir="$(BUILD_SUBDIR)" \
1358ccea 2099 || exit 1
60975492 2100@endif build-libiberty
1358ccea 2101
295f4e42
NN
2102.PHONY: all-build-libiberty maybe-all-build-libiberty
2103maybe-all-build-libiberty:
60975492 2104@if build-libiberty
7c27e184 2105TARGET-build-libiberty=all
60975492 2106maybe-all-build-libiberty: all-build-libiberty
295f4e42
NN
2107all-build-libiberty: configure-build-libiberty
2108 @r=`${PWD_COMMAND}`; export r; \
2109 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 2110 $(BUILD_EXPORTS) \
7c27e184
PB
2111 (cd $(BUILD_SUBDIR)/libiberty && \
2112 $(MAKE) $(TARGET-build-libiberty))
60975492 2113@endif build-libiberty
295f4e42 2114
23f6b2f9
PB
2115.PHONY: configure-build-bison maybe-configure-build-bison
2116maybe-configure-build-bison:
2117@if build-bison
2118maybe-configure-build-bison: configure-build-bison
2119configure-build-bison:
2120 @test ! -f $(BUILD_SUBDIR)/bison/Makefile || exit 0; \
2121 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/bison ; \
2122 r=`${PWD_COMMAND}`; export r; \
2123 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2124 $(BUILD_EXPORTS) \
2125 echo Configuring in $(BUILD_SUBDIR)/bison; \
2126 cd "$(BUILD_SUBDIR)/bison" || exit 1; \
2127 case $(srcdir) in \
2128 /* | [A-Za-z]:[\\/]*) \
2129 topdir=$(srcdir) ;; \
2130 *) \
2131 case "$(BUILD_SUBDIR)" in \
2132 .) topdir="../$(srcdir)" ;; \
2133 *) topdir="../../$(srcdir)" ;; \
2134 esac ;; \
2135 esac; \
2136 if [ "$(srcdir)" = "." ] ; then \
2137 if [ "$(BUILD_SUBDIR)" != "." ] ; then \
2138 if $(SHELL) $$s/symlink-tree $${topdir}/bison "no-such-file" ; then \
2139 if [ -f Makefile ]; then \
2140 if $(MAKE) distclean; then \
2141 true; \
2142 else \
2143 exit 1; \
2144 fi; \
2145 else \
2146 true; \
2147 fi; \
2148 else \
2149 exit 1; \
2150 fi; \
2151 else \
2152 true; \
2153 fi; \
2154 srcdiroption="--srcdir=."; \
2155 libsrcdir="."; \
2156 else \
2157 srcdiroption="--srcdir=$${topdir}/bison"; \
2158 libsrcdir="$$s/bison"; \
2159 fi; \
2160 rm -f no-such-file || : ; \
2161 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2162 $(BUILD_CONFIGARGS) $${srcdiroption} \
2163 --with-build-subdir="$(BUILD_SUBDIR)" \
2164 || exit 1
2165@endif build-bison
2166
2167.PHONY: all-build-bison maybe-all-build-bison
2168maybe-all-build-bison:
2169@if build-bison
7c27e184 2170TARGET-build-bison=all
23f6b2f9
PB
2171maybe-all-build-bison: all-build-bison
2172all-build-bison: configure-build-bison
2173 @r=`${PWD_COMMAND}`; export r; \
2174 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2175 $(BUILD_EXPORTS) \
7c27e184
PB
2176 (cd $(BUILD_SUBDIR)/bison && \
2177 $(MAKE) $(TARGET-build-bison))
23f6b2f9
PB
2178@endif build-bison
2179
2180.PHONY: configure-build-byacc maybe-configure-build-byacc
2181maybe-configure-build-byacc:
2182@if build-byacc
2183maybe-configure-build-byacc: configure-build-byacc
2184configure-build-byacc:
2185 @test ! -f $(BUILD_SUBDIR)/byacc/Makefile || exit 0; \
2186 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/byacc ; \
2187 r=`${PWD_COMMAND}`; export r; \
2188 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2189 $(BUILD_EXPORTS) \
2190 echo Configuring in $(BUILD_SUBDIR)/byacc; \
2191 cd "$(BUILD_SUBDIR)/byacc" || exit 1; \
2192 case $(srcdir) in \
2193 /* | [A-Za-z]:[\\/]*) \
2194 topdir=$(srcdir) ;; \
2195 *) \
2196 case "$(BUILD_SUBDIR)" in \
2197 .) topdir="../$(srcdir)" ;; \
2198 *) topdir="../../$(srcdir)" ;; \
2199 esac ;; \
2200 esac; \
2201 if [ "$(srcdir)" = "." ] ; then \
2202 if [ "$(BUILD_SUBDIR)" != "." ] ; then \
2203 if $(SHELL) $$s/symlink-tree $${topdir}/byacc "no-such-file" ; then \
2204 if [ -f Makefile ]; then \
2205 if $(MAKE) distclean; then \
2206 true; \
2207 else \
2208 exit 1; \
2209 fi; \
2210 else \
2211 true; \
2212 fi; \
2213 else \
2214 exit 1; \
2215 fi; \
2216 else \
2217 true; \
2218 fi; \
2219 srcdiroption="--srcdir=."; \
2220 libsrcdir="."; \
2221 else \
2222 srcdiroption="--srcdir=$${topdir}/byacc"; \
2223 libsrcdir="$$s/byacc"; \
2224 fi; \
2225 rm -f no-such-file || : ; \
2226 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2227 $(BUILD_CONFIGARGS) $${srcdiroption} \
2228 --with-build-subdir="$(BUILD_SUBDIR)" \
2229 || exit 1
2230@endif build-byacc
2231
2232.PHONY: all-build-byacc maybe-all-build-byacc
2233maybe-all-build-byacc:
2234@if build-byacc
7c27e184 2235TARGET-build-byacc=all
23f6b2f9
PB
2236maybe-all-build-byacc: all-build-byacc
2237all-build-byacc: configure-build-byacc
2238 @r=`${PWD_COMMAND}`; export r; \
2239 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2240 $(BUILD_EXPORTS) \
7c27e184
PB
2241 (cd $(BUILD_SUBDIR)/byacc && \
2242 $(MAKE) $(TARGET-build-byacc))
23f6b2f9
PB
2243@endif build-byacc
2244
2245.PHONY: configure-build-flex maybe-configure-build-flex
2246maybe-configure-build-flex:
2247@if build-flex
2248maybe-configure-build-flex: configure-build-flex
2249configure-build-flex:
2250 @test ! -f $(BUILD_SUBDIR)/flex/Makefile || exit 0; \
2251 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/flex ; \
2252 r=`${PWD_COMMAND}`; export r; \
2253 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2254 $(BUILD_EXPORTS) \
2255 echo Configuring in $(BUILD_SUBDIR)/flex; \
2256 cd "$(BUILD_SUBDIR)/flex" || exit 1; \
2257 case $(srcdir) in \
2258 /* | [A-Za-z]:[\\/]*) \
2259 topdir=$(srcdir) ;; \
2260 *) \
2261 case "$(BUILD_SUBDIR)" in \
2262 .) topdir="../$(srcdir)" ;; \
2263 *) topdir="../../$(srcdir)" ;; \
2264 esac ;; \
2265 esac; \
2266 if [ "$(srcdir)" = "." ] ; then \
2267 if [ "$(BUILD_SUBDIR)" != "." ] ; then \
2268 if $(SHELL) $$s/symlink-tree $${topdir}/flex "no-such-file" ; then \
2269 if [ -f Makefile ]; then \
2270 if $(MAKE) distclean; then \
2271 true; \
2272 else \
2273 exit 1; \
2274 fi; \
2275 else \
2276 true; \
2277 fi; \
2278 else \
2279 exit 1; \
2280 fi; \
2281 else \
2282 true; \
2283 fi; \
2284 srcdiroption="--srcdir=."; \
2285 libsrcdir="."; \
2286 else \
2287 srcdiroption="--srcdir=$${topdir}/flex"; \
2288 libsrcdir="$$s/flex"; \
2289 fi; \
2290 rm -f no-such-file || : ; \
2291 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2292 $(BUILD_CONFIGARGS) $${srcdiroption} \
2293 --with-build-subdir="$(BUILD_SUBDIR)" \
2294 || exit 1
2295@endif build-flex
2296
2297.PHONY: all-build-flex maybe-all-build-flex
2298maybe-all-build-flex:
2299@if build-flex
7c27e184 2300TARGET-build-flex=all
23f6b2f9
PB
2301maybe-all-build-flex: all-build-flex
2302all-build-flex: configure-build-flex
2303 @r=`${PWD_COMMAND}`; export r; \
2304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2305 $(BUILD_EXPORTS) \
7c27e184
PB
2306 (cd $(BUILD_SUBDIR)/flex && \
2307 $(MAKE) $(TARGET-build-flex))
23f6b2f9
PB
2308@endif build-flex
2309
2310.PHONY: configure-build-m4 maybe-configure-build-m4
2311maybe-configure-build-m4:
2312@if build-m4
2313maybe-configure-build-m4: configure-build-m4
2314configure-build-m4:
2315 @test ! -f $(BUILD_SUBDIR)/m4/Makefile || exit 0; \
2316 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/m4 ; \
2317 r=`${PWD_COMMAND}`; export r; \
2318 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2319 $(BUILD_EXPORTS) \
2320 echo Configuring in $(BUILD_SUBDIR)/m4; \
2321 cd "$(BUILD_SUBDIR)/m4" || exit 1; \
2322 case $(srcdir) in \
2323 /* | [A-Za-z]:[\\/]*) \
2324 topdir=$(srcdir) ;; \
2325 *) \
2326 case "$(BUILD_SUBDIR)" in \
2327 .) topdir="../$(srcdir)" ;; \
2328 *) topdir="../../$(srcdir)" ;; \
2329 esac ;; \
2330 esac; \
2331 if [ "$(srcdir)" = "." ] ; then \
2332 if [ "$(BUILD_SUBDIR)" != "." ] ; then \
2333 if $(SHELL) $$s/symlink-tree $${topdir}/m4 "no-such-file" ; then \
2334 if [ -f Makefile ]; then \
2335 if $(MAKE) distclean; then \
2336 true; \
2337 else \
2338 exit 1; \
2339 fi; \
2340 else \
2341 true; \
2342 fi; \
2343 else \
2344 exit 1; \
2345 fi; \
2346 else \
2347 true; \
2348 fi; \
2349 srcdiroption="--srcdir=."; \
2350 libsrcdir="."; \
2351 else \
2352 srcdiroption="--srcdir=$${topdir}/m4"; \
2353 libsrcdir="$$s/m4"; \
2354 fi; \
2355 rm -f no-such-file || : ; \
2356 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2357 $(BUILD_CONFIGARGS) $${srcdiroption} \
2358 --with-build-subdir="$(BUILD_SUBDIR)" \
2359 || exit 1
2360@endif build-m4
2361
2362.PHONY: all-build-m4 maybe-all-build-m4
2363maybe-all-build-m4:
2364@if build-m4
7c27e184 2365TARGET-build-m4=all
23f6b2f9
PB
2366maybe-all-build-m4: all-build-m4
2367all-build-m4: configure-build-m4
2368 @r=`${PWD_COMMAND}`; export r; \
2369 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2370 $(BUILD_EXPORTS) \
7c27e184
PB
2371 (cd $(BUILD_SUBDIR)/m4 && \
2372 $(MAKE) $(TARGET-build-m4))
23f6b2f9
PB
2373@endif build-m4
2374
2375.PHONY: configure-build-texinfo maybe-configure-build-texinfo
2376maybe-configure-build-texinfo:
2377@if build-texinfo
2378maybe-configure-build-texinfo: configure-build-texinfo
2379configure-build-texinfo:
2380 @test ! -f $(BUILD_SUBDIR)/texinfo/Makefile || exit 0; \
2381 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/texinfo ; \
2382 r=`${PWD_COMMAND}`; export r; \
2383 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2384 $(BUILD_EXPORTS) \
2385 echo Configuring in $(BUILD_SUBDIR)/texinfo; \
2386 cd "$(BUILD_SUBDIR)/texinfo" || exit 1; \
2387 case $(srcdir) in \
2388 /* | [A-Za-z]:[\\/]*) \
2389 topdir=$(srcdir) ;; \
2390 *) \
2391 case "$(BUILD_SUBDIR)" in \
2392 .) topdir="../$(srcdir)" ;; \
2393 *) topdir="../../$(srcdir)" ;; \
2394 esac ;; \
2395 esac; \
2396 if [ "$(srcdir)" = "." ] ; then \
2397 if [ "$(BUILD_SUBDIR)" != "." ] ; then \
2398 if $(SHELL) $$s/symlink-tree $${topdir}/texinfo "no-such-file" ; then \
2399 if [ -f Makefile ]; then \
2400 if $(MAKE) distclean; then \
2401 true; \
2402 else \
2403 exit 1; \
2404 fi; \
2405 else \
2406 true; \
2407 fi; \
2408 else \
2409 exit 1; \
2410 fi; \
2411 else \
2412 true; \
2413 fi; \
2414 srcdiroption="--srcdir=."; \
2415 libsrcdir="."; \
2416 else \
2417 srcdiroption="--srcdir=$${topdir}/texinfo"; \
2418 libsrcdir="$$s/texinfo"; \
2419 fi; \
2420 rm -f no-such-file || : ; \
2421 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2422 $(BUILD_CONFIGARGS) $${srcdiroption} \
2423 --with-build-subdir="$(BUILD_SUBDIR)" \
2424 || exit 1
2425@endif build-texinfo
2426
2427.PHONY: all-build-texinfo maybe-all-build-texinfo
2428maybe-all-build-texinfo:
2429@if build-texinfo
7c27e184 2430TARGET-build-texinfo=all
23f6b2f9
PB
2431maybe-all-build-texinfo: all-build-texinfo
2432all-build-texinfo: configure-build-texinfo
2433 @r=`${PWD_COMMAND}`; export r; \
2434 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2435 $(BUILD_EXPORTS) \
7c27e184
PB
2436 (cd $(BUILD_SUBDIR)/texinfo && \
2437 $(MAKE) $(TARGET-build-texinfo))
23f6b2f9
PB
2438@endif build-texinfo
2439
71b5d516
PB
2440.PHONY: configure-build-fixincludes maybe-configure-build-fixincludes
2441maybe-configure-build-fixincludes:
2442@if build-fixincludes
2443maybe-configure-build-fixincludes: configure-build-fixincludes
2444configure-build-fixincludes:
2445 @test ! -f $(BUILD_SUBDIR)/fixincludes/Makefile || exit 0; \
2446 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/fixincludes ; \
2447 r=`${PWD_COMMAND}`; export r; \
2448 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2449 $(BUILD_EXPORTS) \
2450 echo Configuring in $(BUILD_SUBDIR)/fixincludes; \
2451 cd "$(BUILD_SUBDIR)/fixincludes" || exit 1; \
2452 case $(srcdir) in \
2453 /* | [A-Za-z]:[\\/]*) \
2454 topdir=$(srcdir) ;; \
2455 *) \
2456 case "$(BUILD_SUBDIR)" in \
2457 .) topdir="../$(srcdir)" ;; \
2458 *) topdir="../../$(srcdir)" ;; \
2459 esac ;; \
2460 esac; \
2461 if [ "$(srcdir)" = "." ] ; then \
2462 if [ "$(BUILD_SUBDIR)" != "." ] ; then \
2463 if $(SHELL) $$s/symlink-tree $${topdir}/fixincludes "no-such-file" ; then \
2464 if [ -f Makefile ]; then \
2465 if $(MAKE) distclean; then \
2466 true; \
2467 else \
2468 exit 1; \
2469 fi; \
2470 else \
2471 true; \
2472 fi; \
2473 else \
2474 exit 1; \
2475 fi; \
2476 else \
2477 true; \
2478 fi; \
2479 srcdiroption="--srcdir=."; \
2480 libsrcdir="."; \
2481 else \
2482 srcdiroption="--srcdir=$${topdir}/fixincludes"; \
2483 libsrcdir="$$s/fixincludes"; \
2484 fi; \
2485 rm -f no-such-file || : ; \
2486 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2487 $(BUILD_CONFIGARGS) $${srcdiroption} \
2488 --with-build-subdir="$(BUILD_SUBDIR)" \
2489 || exit 1
2490@endif build-fixincludes
2491
2492.PHONY: all-build-fixincludes maybe-all-build-fixincludes
2493maybe-all-build-fixincludes:
2494@if build-fixincludes
2495TARGET-build-fixincludes=all
2496maybe-all-build-fixincludes: all-build-fixincludes
2497all-build-fixincludes: configure-build-fixincludes
2498 @r=`${PWD_COMMAND}`; export r; \
2499 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2500 $(BUILD_EXPORTS) \
2501 (cd $(BUILD_SUBDIR)/fixincludes && \
2502 $(MAKE) $(TARGET-build-fixincludes))
2503@endif build-fixincludes
2504
1358ccea 2505
295f4e42
NN
2506# --------------------------------------
2507# Modules which run on the host machine
2508# --------------------------------------
1358ccea 2509
295f4e42
NN
2510.PHONY: configure-ash maybe-configure-ash
2511maybe-configure-ash:
60975492
PB
2512@if ash
2513maybe-configure-ash: configure-ash
295f4e42
NN
2514configure-ash:
2515 @test ! -f ash/Makefile || exit 0; \
2516 [ -d ash ] || mkdir ash; \
8c90b13a
L
2517 r=`${PWD_COMMAND}`; export r; \
2518 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 2519 $(HOST_EXPORTS) \
295f4e42
NN
2520 echo Configuring in ash; \
2521 cd ash || exit 1; \
2522 case $(srcdir) in \
2523 \.) \
2524 srcdiroption="--srcdir=."; \
2525 libsrcdir=".";; \
2526 /* | [A-Za-z]:[\\/]*) \
2527 srcdiroption="--srcdir=$(srcdir)/ash"; \
2528 libsrcdir="$$s/ash";; \
2529 *) \
2530 srcdiroption="--srcdir=../$(srcdir)/ash"; \
2531 libsrcdir="$$s/ash";; \
2532 esac; \
2533 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 2534 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 2535 || exit 1
60975492 2536@endif ash
1358ccea 2537
295f4e42
NN
2538.PHONY: all-ash maybe-all-ash
2539maybe-all-ash:
60975492
PB
2540@if ash
2541maybe-all-ash: all-ash
295f4e42
NN
2542all-ash: configure-ash
2543 @r=`${PWD_COMMAND}`; export r; \
2544 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2545 $(SET_LIB_PATH) \
4fc4dd12 2546 $(HOST_EXPORTS) \
a52a0a7f 2547 (cd ash && $(MAKE) $(FLAGS_TO_PASS) all)
60975492 2548@endif ash
1358ccea 2549
295f4e42
NN
2550.PHONY: check-ash maybe-check-ash
2551maybe-check-ash:
60975492
PB
2552@if ash
2553maybe-check-ash: check-ash
1358ccea 2554
295f4e42
NN
2555check-ash:
2556 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 2557 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 2558 $(SET_LIB_PATH) \
4fc4dd12 2559 $(HOST_EXPORTS) \
7c27e184 2560 (cd ash && $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 2561
60975492 2562@endif ash
1358ccea 2563
295f4e42
NN
2564.PHONY: install-ash maybe-install-ash
2565maybe-install-ash:
60975492
PB
2566@if ash
2567maybe-install-ash: install-ash
1358ccea 2568
295f4e42
NN
2569install-ash: installdirs
2570 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 2571 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 2572 $(SET_LIB_PATH) \
4fc4dd12 2573 $(HOST_EXPORTS) \
7c27e184 2574 (cd ash && $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 2575
60975492 2576@endif ash
1358ccea 2577
295f4e42 2578# Other targets (info, dvi, etc.)
1358ccea 2579
295f4e42
NN
2580.PHONY: maybe-info-ash info-ash
2581maybe-info-ash:
60975492
PB
2582@if ash
2583maybe-info-ash: info-ash
295f4e42
NN
2584
2585info-ash: \
2586 configure-ash
2587 @[ -f ./ash/Makefile ] || exit 0; \
8c90b13a
L
2588 r=`${PWD_COMMAND}`; export r; \
2589 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 2590 $(SET_LIB_PATH) \
4fc4dd12 2591 $(HOST_EXPORTS) \
d32ab992 2592 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
2593 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2594 done; \
295f4e42
NN
2595 echo "Doing info in ash" ; \
2596 (cd ash && \
1358ccea
NN
2597 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2598 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2599 "RANLIB=$${RANLIB}" \
2600 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 2601 info) \
1358ccea
NN
2602 || exit 1
2603
60975492 2604@endif ash
1358ccea 2605
295f4e42
NN
2606.PHONY: maybe-dvi-ash dvi-ash
2607maybe-dvi-ash:
60975492
PB
2608@if ash
2609maybe-dvi-ash: dvi-ash
1358ccea 2610
295f4e42
NN
2611dvi-ash: \
2612 configure-ash
2613 @[ -f ./ash/Makefile ] || exit 0; \
8c90b13a
L
2614 r=`${PWD_COMMAND}`; export r; \
2615 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 2616 $(SET_LIB_PATH) \
4fc4dd12 2617 $(HOST_EXPORTS) \
d32ab992 2618 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
2619 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2620 done; \
295f4e42
NN
2621 echo "Doing dvi in ash" ; \
2622 (cd ash && \
1358ccea
NN
2623 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2624 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2625 "RANLIB=$${RANLIB}" \
2626 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 2627 dvi) \
1358ccea
NN
2628 || exit 1
2629
60975492 2630@endif ash
1358ccea 2631
295f4e42
NN
2632.PHONY: maybe-TAGS-ash TAGS-ash
2633maybe-TAGS-ash:
60975492
PB
2634@if ash
2635maybe-TAGS-ash: TAGS-ash
1358ccea 2636
295f4e42
NN
2637TAGS-ash: \
2638 configure-ash
2639 @[ -f ./ash/Makefile ] || exit 0; \
8c90b13a
L
2640 r=`${PWD_COMMAND}`; export r; \
2641 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 2642 $(SET_LIB_PATH) \
4fc4dd12 2643 $(HOST_EXPORTS) \
d32ab992 2644 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
2645 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2646 done; \
295f4e42
NN
2647 echo "Doing TAGS in ash" ; \
2648 (cd ash && \
1358ccea
NN
2649 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2650 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2651 "RANLIB=$${RANLIB}" \
2652 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 2653 TAGS) \
1358ccea
NN
2654 || exit 1
2655
60975492 2656@endif ash
1358ccea 2657
295f4e42
NN
2658.PHONY: maybe-install-info-ash install-info-ash
2659maybe-install-info-ash:
60975492
PB
2660@if ash
2661maybe-install-info-ash: install-info-ash
1358ccea 2662
295f4e42
NN
2663install-info-ash: \
2664 configure-ash \
2665 info-ash
2666 @[ -f ./ash/Makefile ] || exit 0; \
8c90b13a
L
2667 r=`${PWD_COMMAND}`; export r; \
2668 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 2669 $(SET_LIB_PATH) \
4fc4dd12 2670 $(HOST_EXPORTS) \
d32ab992 2671 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
2672 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2673 done; \
295f4e42
NN
2674 echo "Doing install-info in ash" ; \
2675 (cd ash && \
1358ccea
NN
2676 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2677 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2678 "RANLIB=$${RANLIB}" \
2679 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 2680 install-info) \
1358ccea
NN
2681 || exit 1
2682
60975492 2683@endif ash
1358ccea 2684
295f4e42
NN
2685.PHONY: maybe-installcheck-ash installcheck-ash
2686maybe-installcheck-ash:
60975492
PB
2687@if ash
2688maybe-installcheck-ash: installcheck-ash
1358ccea 2689
295f4e42
NN
2690installcheck-ash: \
2691 configure-ash
2692 @[ -f ./ash/Makefile ] || exit 0; \
8c90b13a
L
2693 r=`${PWD_COMMAND}`; export r; \
2694 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 2695 $(SET_LIB_PATH) \
4fc4dd12 2696 $(HOST_EXPORTS) \
d32ab992 2697 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
2698 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2699 done; \
295f4e42
NN
2700 echo "Doing installcheck in ash" ; \
2701 (cd ash && \
1358ccea
NN
2702 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2703 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2704 "RANLIB=$${RANLIB}" \
2705 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 2706 installcheck) \
1358ccea
NN
2707 || exit 1
2708
60975492 2709@endif ash
1358ccea 2710
295f4e42
NN
2711.PHONY: maybe-mostlyclean-ash mostlyclean-ash
2712maybe-mostlyclean-ash:
60975492
PB
2713@if ash
2714maybe-mostlyclean-ash: mostlyclean-ash
1358ccea 2715
295f4e42
NN
2716mostlyclean-ash:
2717 @[ -f ./ash/Makefile ] || exit 0; \
8c90b13a
L
2718 r=`${PWD_COMMAND}`; export r; \
2719 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 2720 $(SET_LIB_PATH) \
4fc4dd12 2721 $(HOST_EXPORTS) \
d32ab992 2722 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
2723 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2724 done; \
295f4e42
NN
2725 echo "Doing mostlyclean in ash" ; \
2726 (cd ash && \
1358ccea
NN
2727 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2728 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2729 "RANLIB=$${RANLIB}" \
2730 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 2731 mostlyclean) \
1358ccea
NN
2732 || exit 1
2733
60975492 2734@endif ash
1358ccea 2735
295f4e42
NN
2736.PHONY: maybe-clean-ash clean-ash
2737maybe-clean-ash:
60975492
PB
2738@if ash
2739maybe-clean-ash: clean-ash
1358ccea 2740
295f4e42
NN
2741clean-ash:
2742 @[ -f ./ash/Makefile ] || exit 0; \
8c90b13a
L
2743 r=`${PWD_COMMAND}`; export r; \
2744 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 2745 $(SET_LIB_PATH) \
4fc4dd12 2746 $(HOST_EXPORTS) \
d32ab992 2747 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
2748 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2749 done; \
295f4e42
NN
2750 echo "Doing clean in ash" ; \
2751 (cd ash && \
1358ccea
NN
2752 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2753 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2754 "RANLIB=$${RANLIB}" \
2755 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 2756 clean) \
1358ccea
NN
2757 || exit 1
2758
60975492 2759@endif ash
1358ccea 2760
295f4e42
NN
2761.PHONY: maybe-distclean-ash distclean-ash
2762maybe-distclean-ash:
60975492
PB
2763@if ash
2764maybe-distclean-ash: distclean-ash
1358ccea 2765
295f4e42
NN
2766distclean-ash:
2767 @[ -f ./ash/Makefile ] || exit 0; \
8c90b13a
L
2768 r=`${PWD_COMMAND}`; export r; \
2769 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 2770 $(SET_LIB_PATH) \
4fc4dd12 2771 $(HOST_EXPORTS) \
d32ab992 2772 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
2773 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2774 done; \
295f4e42
NN
2775 echo "Doing distclean in ash" ; \
2776 (cd ash && \
1358ccea
NN
2777 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2778 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2779 "RANLIB=$${RANLIB}" \
2780 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 2781 distclean) \
1358ccea
NN
2782 || exit 1
2783
60975492 2784@endif ash
1358ccea 2785
295f4e42
NN
2786.PHONY: maybe-maintainer-clean-ash maintainer-clean-ash
2787maybe-maintainer-clean-ash:
60975492
PB
2788@if ash
2789maybe-maintainer-clean-ash: maintainer-clean-ash
1358ccea 2790
295f4e42
NN
2791maintainer-clean-ash:
2792 @[ -f ./ash/Makefile ] || exit 0; \
8c90b13a
L
2793 r=`${PWD_COMMAND}`; export r; \
2794 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 2795 $(SET_LIB_PATH) \
4fc4dd12 2796 $(HOST_EXPORTS) \
d32ab992 2797 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
2798 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2799 done; \
295f4e42
NN
2800 echo "Doing maintainer-clean in ash" ; \
2801 (cd ash && \
1358ccea
NN
2802 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2803 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2804 "RANLIB=$${RANLIB}" \
2805 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 2806 maintainer-clean) \
1358ccea
NN
2807 || exit 1
2808
60975492 2809@endif ash
1358ccea 2810
1358ccea 2811
295f4e42
NN
2812.PHONY: configure-autoconf maybe-configure-autoconf
2813maybe-configure-autoconf:
60975492
PB
2814@if autoconf
2815maybe-configure-autoconf: configure-autoconf
295f4e42
NN
2816configure-autoconf:
2817 @test ! -f autoconf/Makefile || exit 0; \
2818 [ -d autoconf ] || mkdir autoconf; \
8c90b13a
L
2819 r=`${PWD_COMMAND}`; export r; \
2820 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 2821 $(HOST_EXPORTS) \
295f4e42
NN
2822 echo Configuring in autoconf; \
2823 cd autoconf || exit 1; \
2824 case $(srcdir) in \
2825 \.) \
2826 srcdiroption="--srcdir=."; \
2827 libsrcdir=".";; \
2828 /* | [A-Za-z]:[\\/]*) \
2829 srcdiroption="--srcdir=$(srcdir)/autoconf"; \
2830 libsrcdir="$$s/autoconf";; \
2831 *) \
2832 srcdiroption="--srcdir=../$(srcdir)/autoconf"; \
2833 libsrcdir="$$s/autoconf";; \
2834 esac; \
2835 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 2836 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 2837 || exit 1
60975492 2838@endif autoconf
1358ccea 2839
295f4e42
NN
2840.PHONY: all-autoconf maybe-all-autoconf
2841maybe-all-autoconf:
60975492
PB
2842@if autoconf
2843maybe-all-autoconf: all-autoconf
295f4e42
NN
2844all-autoconf: configure-autoconf
2845 @r=`${PWD_COMMAND}`; export r; \
2846 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2847 $(SET_LIB_PATH) \
4fc4dd12 2848 $(HOST_EXPORTS) \
a52a0a7f 2849 (cd autoconf && $(MAKE) $(FLAGS_TO_PASS) all)
60975492 2850@endif autoconf
1358ccea 2851
295f4e42
NN
2852.PHONY: check-autoconf maybe-check-autoconf
2853maybe-check-autoconf:
60975492
PB
2854@if autoconf
2855maybe-check-autoconf: check-autoconf
1358ccea 2856
295f4e42
NN
2857check-autoconf:
2858 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 2859 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 2860 $(SET_LIB_PATH) \
4fc4dd12 2861 $(HOST_EXPORTS) \
7c27e184 2862 (cd autoconf && $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 2863
60975492 2864@endif autoconf
1358ccea 2865
295f4e42
NN
2866.PHONY: install-autoconf maybe-install-autoconf
2867maybe-install-autoconf:
60975492
PB
2868@if autoconf
2869maybe-install-autoconf: install-autoconf
1358ccea 2870
295f4e42
NN
2871install-autoconf: installdirs
2872 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 2873 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 2874 $(SET_LIB_PATH) \
4fc4dd12 2875 $(HOST_EXPORTS) \
7c27e184 2876 (cd autoconf && $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 2877
60975492 2878@endif autoconf
1358ccea 2879
295f4e42 2880# Other targets (info, dvi, etc.)
1358ccea 2881
295f4e42
NN
2882.PHONY: maybe-info-autoconf info-autoconf
2883maybe-info-autoconf:
60975492
PB
2884@if autoconf
2885maybe-info-autoconf: info-autoconf
295f4e42
NN
2886
2887info-autoconf: \
2888 configure-autoconf
2889 @[ -f ./autoconf/Makefile ] || exit 0; \
8c90b13a
L
2890 r=`${PWD_COMMAND}`; export r; \
2891 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 2892 $(SET_LIB_PATH) \
4fc4dd12 2893 $(HOST_EXPORTS) \
d32ab992 2894 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
2895 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2896 done; \
295f4e42
NN
2897 echo "Doing info in autoconf" ; \
2898 (cd autoconf && \
1358ccea
NN
2899 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2900 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2901 "RANLIB=$${RANLIB}" \
2902 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 2903 info) \
1358ccea
NN
2904 || exit 1
2905
60975492 2906@endif autoconf
1358ccea 2907
295f4e42
NN
2908.PHONY: maybe-dvi-autoconf dvi-autoconf
2909maybe-dvi-autoconf:
60975492
PB
2910@if autoconf
2911maybe-dvi-autoconf: dvi-autoconf
1358ccea 2912
295f4e42
NN
2913dvi-autoconf: \
2914 configure-autoconf
2915 @[ -f ./autoconf/Makefile ] || exit 0; \
8c90b13a
L
2916 r=`${PWD_COMMAND}`; export r; \
2917 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 2918 $(SET_LIB_PATH) \
4fc4dd12 2919 $(HOST_EXPORTS) \
d32ab992 2920 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
2921 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2922 done; \
295f4e42
NN
2923 echo "Doing dvi in autoconf" ; \
2924 (cd autoconf && \
1358ccea
NN
2925 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2926 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2927 "RANLIB=$${RANLIB}" \
2928 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 2929 dvi) \
1358ccea
NN
2930 || exit 1
2931
60975492 2932@endif autoconf
1358ccea 2933
295f4e42
NN
2934.PHONY: maybe-TAGS-autoconf TAGS-autoconf
2935maybe-TAGS-autoconf:
60975492
PB
2936@if autoconf
2937maybe-TAGS-autoconf: TAGS-autoconf
1358ccea 2938
295f4e42
NN
2939TAGS-autoconf: \
2940 configure-autoconf
2941 @[ -f ./autoconf/Makefile ] || exit 0; \
8c90b13a
L
2942 r=`${PWD_COMMAND}`; export r; \
2943 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 2944 $(SET_LIB_PATH) \
4fc4dd12 2945 $(HOST_EXPORTS) \
d32ab992 2946 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
2947 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2948 done; \
295f4e42
NN
2949 echo "Doing TAGS in autoconf" ; \
2950 (cd autoconf && \
1358ccea
NN
2951 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2952 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2953 "RANLIB=$${RANLIB}" \
2954 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 2955 TAGS) \
1358ccea
NN
2956 || exit 1
2957
60975492 2958@endif autoconf
1358ccea 2959
295f4e42
NN
2960.PHONY: maybe-install-info-autoconf install-info-autoconf
2961maybe-install-info-autoconf:
60975492
PB
2962@if autoconf
2963maybe-install-info-autoconf: install-info-autoconf
1358ccea 2964
295f4e42
NN
2965install-info-autoconf: \
2966 configure-autoconf \
2967 info-autoconf
2968 @[ -f ./autoconf/Makefile ] || exit 0; \
8c90b13a
L
2969 r=`${PWD_COMMAND}`; export r; \
2970 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 2971 $(SET_LIB_PATH) \
4fc4dd12 2972 $(HOST_EXPORTS) \
d32ab992 2973 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
2974 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2975 done; \
295f4e42
NN
2976 echo "Doing install-info in autoconf" ; \
2977 (cd autoconf && \
1358ccea
NN
2978 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2979 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2980 "RANLIB=$${RANLIB}" \
2981 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 2982 install-info) \
1358ccea
NN
2983 || exit 1
2984
60975492 2985@endif autoconf
1358ccea 2986
295f4e42
NN
2987.PHONY: maybe-installcheck-autoconf installcheck-autoconf
2988maybe-installcheck-autoconf:
60975492
PB
2989@if autoconf
2990maybe-installcheck-autoconf: installcheck-autoconf
1358ccea 2991
295f4e42
NN
2992installcheck-autoconf: \
2993 configure-autoconf
2994 @[ -f ./autoconf/Makefile ] || exit 0; \
8c90b13a
L
2995 r=`${PWD_COMMAND}`; export r; \
2996 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 2997 $(SET_LIB_PATH) \
4fc4dd12 2998 $(HOST_EXPORTS) \
d32ab992 2999 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3000 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3001 done; \
295f4e42
NN
3002 echo "Doing installcheck in autoconf" ; \
3003 (cd autoconf && \
1358ccea
NN
3004 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3005 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3006 "RANLIB=$${RANLIB}" \
3007 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3008 installcheck) \
1358ccea
NN
3009 || exit 1
3010
60975492 3011@endif autoconf
1358ccea 3012
295f4e42
NN
3013.PHONY: maybe-mostlyclean-autoconf mostlyclean-autoconf
3014maybe-mostlyclean-autoconf:
60975492
PB
3015@if autoconf
3016maybe-mostlyclean-autoconf: mostlyclean-autoconf
1358ccea 3017
295f4e42
NN
3018mostlyclean-autoconf:
3019 @[ -f ./autoconf/Makefile ] || exit 0; \
8c90b13a
L
3020 r=`${PWD_COMMAND}`; export r; \
3021 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 3022 $(SET_LIB_PATH) \
4fc4dd12 3023 $(HOST_EXPORTS) \
d32ab992 3024 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3025 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3026 done; \
295f4e42
NN
3027 echo "Doing mostlyclean in autoconf" ; \
3028 (cd autoconf && \
1358ccea
NN
3029 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3030 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3031 "RANLIB=$${RANLIB}" \
3032 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3033 mostlyclean) \
1358ccea
NN
3034 || exit 1
3035
60975492 3036@endif autoconf
1358ccea 3037
295f4e42
NN
3038.PHONY: maybe-clean-autoconf clean-autoconf
3039maybe-clean-autoconf:
60975492
PB
3040@if autoconf
3041maybe-clean-autoconf: clean-autoconf
1358ccea 3042
295f4e42
NN
3043clean-autoconf:
3044 @[ -f ./autoconf/Makefile ] || exit 0; \
8c90b13a
L
3045 r=`${PWD_COMMAND}`; export r; \
3046 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 3047 $(SET_LIB_PATH) \
4fc4dd12 3048 $(HOST_EXPORTS) \
d32ab992 3049 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3050 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3051 done; \
295f4e42
NN
3052 echo "Doing clean in autoconf" ; \
3053 (cd autoconf && \
1358ccea
NN
3054 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3055 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3056 "RANLIB=$${RANLIB}" \
3057 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3058 clean) \
1358ccea
NN
3059 || exit 1
3060
60975492 3061@endif autoconf
1358ccea 3062
295f4e42
NN
3063.PHONY: maybe-distclean-autoconf distclean-autoconf
3064maybe-distclean-autoconf:
60975492
PB
3065@if autoconf
3066maybe-distclean-autoconf: distclean-autoconf
1358ccea 3067
295f4e42
NN
3068distclean-autoconf:
3069 @[ -f ./autoconf/Makefile ] || exit 0; \
8c90b13a
L
3070 r=`${PWD_COMMAND}`; export r; \
3071 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 3072 $(SET_LIB_PATH) \
4fc4dd12 3073 $(HOST_EXPORTS) \
d32ab992 3074 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3075 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3076 done; \
295f4e42
NN
3077 echo "Doing distclean in autoconf" ; \
3078 (cd autoconf && \
1358ccea
NN
3079 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3080 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3081 "RANLIB=$${RANLIB}" \
3082 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3083 distclean) \
1358ccea
NN
3084 || exit 1
3085
60975492 3086@endif autoconf
1358ccea 3087
295f4e42
NN
3088.PHONY: maybe-maintainer-clean-autoconf maintainer-clean-autoconf
3089maybe-maintainer-clean-autoconf:
60975492
PB
3090@if autoconf
3091maybe-maintainer-clean-autoconf: maintainer-clean-autoconf
1358ccea 3092
295f4e42
NN
3093maintainer-clean-autoconf:
3094 @[ -f ./autoconf/Makefile ] || exit 0; \
8c90b13a
L
3095 r=`${PWD_COMMAND}`; export r; \
3096 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 3097 $(SET_LIB_PATH) \
4fc4dd12 3098 $(HOST_EXPORTS) \
d32ab992 3099 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3100 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3101 done; \
295f4e42
NN
3102 echo "Doing maintainer-clean in autoconf" ; \
3103 (cd autoconf && \
1358ccea
NN
3104 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3105 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3106 "RANLIB=$${RANLIB}" \
3107 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3108 maintainer-clean) \
1358ccea
NN
3109 || exit 1
3110
60975492 3111@endif autoconf
1358ccea 3112
1358ccea 3113
295f4e42
NN
3114.PHONY: configure-automake maybe-configure-automake
3115maybe-configure-automake:
60975492
PB
3116@if automake
3117maybe-configure-automake: configure-automake
295f4e42
NN
3118configure-automake:
3119 @test ! -f automake/Makefile || exit 0; \
3120 [ -d automake ] || mkdir automake; \
8c90b13a
L
3121 r=`${PWD_COMMAND}`; export r; \
3122 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3123 $(HOST_EXPORTS) \
295f4e42
NN
3124 echo Configuring in automake; \
3125 cd automake || exit 1; \
3126 case $(srcdir) in \
3127 \.) \
3128 srcdiroption="--srcdir=."; \
3129 libsrcdir=".";; \
3130 /* | [A-Za-z]:[\\/]*) \
3131 srcdiroption="--srcdir=$(srcdir)/automake"; \
3132 libsrcdir="$$s/automake";; \
3133 *) \
3134 srcdiroption="--srcdir=../$(srcdir)/automake"; \
3135 libsrcdir="$$s/automake";; \
3136 esac; \
3137 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 3138 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 3139 || exit 1
60975492 3140@endif automake
1358ccea 3141
295f4e42
NN
3142.PHONY: all-automake maybe-all-automake
3143maybe-all-automake:
60975492
PB
3144@if automake
3145maybe-all-automake: all-automake
295f4e42
NN
3146all-automake: configure-automake
3147 @r=`${PWD_COMMAND}`; export r; \
3148 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3149 $(SET_LIB_PATH) \
4fc4dd12 3150 $(HOST_EXPORTS) \
a52a0a7f 3151 (cd automake && $(MAKE) $(FLAGS_TO_PASS) all)
60975492 3152@endif automake
1358ccea 3153
295f4e42
NN
3154.PHONY: check-automake maybe-check-automake
3155maybe-check-automake:
60975492
PB
3156@if automake
3157maybe-check-automake: check-automake
1358ccea 3158
295f4e42
NN
3159check-automake:
3160 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 3161 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 3162 $(SET_LIB_PATH) \
4fc4dd12 3163 $(HOST_EXPORTS) \
7c27e184 3164 (cd automake && $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 3165
60975492 3166@endif automake
1358ccea 3167
295f4e42
NN
3168.PHONY: install-automake maybe-install-automake
3169maybe-install-automake:
60975492
PB
3170@if automake
3171maybe-install-automake: install-automake
1358ccea 3172
295f4e42
NN
3173install-automake: installdirs
3174 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 3175 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 3176 $(SET_LIB_PATH) \
4fc4dd12 3177 $(HOST_EXPORTS) \
7c27e184 3178 (cd automake && $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 3179
60975492 3180@endif automake
1358ccea 3181
295f4e42 3182# Other targets (info, dvi, etc.)
1358ccea 3183
295f4e42
NN
3184.PHONY: maybe-info-automake info-automake
3185maybe-info-automake:
60975492
PB
3186@if automake
3187maybe-info-automake: info-automake
295f4e42
NN
3188
3189info-automake: \
3190 configure-automake
3191 @[ -f ./automake/Makefile ] || exit 0; \
8c90b13a
L
3192 r=`${PWD_COMMAND}`; export r; \
3193 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 3194 $(SET_LIB_PATH) \
4fc4dd12 3195 $(HOST_EXPORTS) \
d32ab992 3196 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3197 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3198 done; \
295f4e42
NN
3199 echo "Doing info in automake" ; \
3200 (cd automake && \
1358ccea
NN
3201 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3202 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3203 "RANLIB=$${RANLIB}" \
3204 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3205 info) \
1358ccea
NN
3206 || exit 1
3207
60975492 3208@endif automake
1358ccea 3209
295f4e42
NN
3210.PHONY: maybe-dvi-automake dvi-automake
3211maybe-dvi-automake:
60975492
PB
3212@if automake
3213maybe-dvi-automake: dvi-automake
1358ccea 3214
295f4e42
NN
3215dvi-automake: \
3216 configure-automake
3217 @[ -f ./automake/Makefile ] || exit 0; \
8c90b13a
L
3218 r=`${PWD_COMMAND}`; export r; \
3219 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 3220 $(SET_LIB_PATH) \
4fc4dd12 3221 $(HOST_EXPORTS) \
d32ab992 3222 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3223 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3224 done; \
295f4e42
NN
3225 echo "Doing dvi in automake" ; \
3226 (cd automake && \
1358ccea
NN
3227 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3228 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3229 "RANLIB=$${RANLIB}" \
3230 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3231 dvi) \
1358ccea
NN
3232 || exit 1
3233
60975492 3234@endif automake
1358ccea 3235
295f4e42
NN
3236.PHONY: maybe-TAGS-automake TAGS-automake
3237maybe-TAGS-automake:
60975492
PB
3238@if automake
3239maybe-TAGS-automake: TAGS-automake
1358ccea 3240
295f4e42
NN
3241TAGS-automake: \
3242 configure-automake
3243 @[ -f ./automake/Makefile ] || exit 0; \
8c90b13a
L
3244 r=`${PWD_COMMAND}`; export r; \
3245 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 3246 $(SET_LIB_PATH) \
4fc4dd12 3247 $(HOST_EXPORTS) \
d32ab992 3248 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3249 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3250 done; \
295f4e42
NN
3251 echo "Doing TAGS in automake" ; \
3252 (cd automake && \
1358ccea
NN
3253 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3254 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3255 "RANLIB=$${RANLIB}" \
3256 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3257 TAGS) \
1358ccea
NN
3258 || exit 1
3259
60975492 3260@endif automake
1358ccea 3261
295f4e42
NN
3262.PHONY: maybe-install-info-automake install-info-automake
3263maybe-install-info-automake:
60975492
PB
3264@if automake
3265maybe-install-info-automake: install-info-automake
1358ccea 3266
295f4e42
NN
3267install-info-automake: \
3268 configure-automake \
3269 info-automake
3270 @[ -f ./automake/Makefile ] || exit 0; \
8c90b13a
L
3271 r=`${PWD_COMMAND}`; export r; \
3272 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 3273 $(SET_LIB_PATH) \
4fc4dd12 3274 $(HOST_EXPORTS) \
d32ab992 3275 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3276 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3277 done; \
295f4e42
NN
3278 echo "Doing install-info in automake" ; \
3279 (cd automake && \
1358ccea
NN
3280 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3281 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3282 "RANLIB=$${RANLIB}" \
3283 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3284 install-info) \
1358ccea
NN
3285 || exit 1
3286
60975492 3287@endif automake
1358ccea 3288
295f4e42
NN
3289.PHONY: maybe-installcheck-automake installcheck-automake
3290maybe-installcheck-automake:
60975492
PB
3291@if automake
3292maybe-installcheck-automake: installcheck-automake
1358ccea 3293
295f4e42
NN
3294installcheck-automake: \
3295 configure-automake
3296 @[ -f ./automake/Makefile ] || exit 0; \
8c90b13a
L
3297 r=`${PWD_COMMAND}`; export r; \
3298 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 3299 $(SET_LIB_PATH) \
4fc4dd12 3300 $(HOST_EXPORTS) \
d32ab992 3301 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3302 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3303 done; \
295f4e42
NN
3304 echo "Doing installcheck in automake" ; \
3305 (cd automake && \
1358ccea
NN
3306 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3307 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3308 "RANLIB=$${RANLIB}" \
3309 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3310 installcheck) \
1358ccea
NN
3311 || exit 1
3312
60975492 3313@endif automake
1358ccea 3314
295f4e42
NN
3315.PHONY: maybe-mostlyclean-automake mostlyclean-automake
3316maybe-mostlyclean-automake:
60975492
PB
3317@if automake
3318maybe-mostlyclean-automake: mostlyclean-automake
1358ccea 3319
295f4e42
NN
3320mostlyclean-automake:
3321 @[ -f ./automake/Makefile ] || exit 0; \
8c90b13a
L
3322 r=`${PWD_COMMAND}`; export r; \
3323 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 3324 $(SET_LIB_PATH) \
4fc4dd12 3325 $(HOST_EXPORTS) \
d32ab992 3326 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3327 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3328 done; \
295f4e42
NN
3329 echo "Doing mostlyclean in automake" ; \
3330 (cd automake && \
1358ccea
NN
3331 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3332 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3333 "RANLIB=$${RANLIB}" \
3334 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3335 mostlyclean) \
1358ccea
NN
3336 || exit 1
3337
60975492 3338@endif automake
1358ccea 3339
295f4e42
NN
3340.PHONY: maybe-clean-automake clean-automake
3341maybe-clean-automake:
60975492
PB
3342@if automake
3343maybe-clean-automake: clean-automake
1358ccea 3344
295f4e42
NN
3345clean-automake:
3346 @[ -f ./automake/Makefile ] || exit 0; \
8c90b13a
L
3347 r=`${PWD_COMMAND}`; export r; \
3348 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 3349 $(SET_LIB_PATH) \
4fc4dd12 3350 $(HOST_EXPORTS) \
d32ab992 3351 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3352 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3353 done; \
295f4e42
NN
3354 echo "Doing clean in automake" ; \
3355 (cd automake && \
1358ccea
NN
3356 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3357 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3358 "RANLIB=$${RANLIB}" \
3359 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3360 clean) \
1358ccea
NN
3361 || exit 1
3362
60975492 3363@endif automake
1358ccea 3364
295f4e42
NN
3365.PHONY: maybe-distclean-automake distclean-automake
3366maybe-distclean-automake:
60975492
PB
3367@if automake
3368maybe-distclean-automake: distclean-automake
1358ccea 3369
295f4e42
NN
3370distclean-automake:
3371 @[ -f ./automake/Makefile ] || exit 0; \
8c90b13a
L
3372 r=`${PWD_COMMAND}`; export r; \
3373 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 3374 $(SET_LIB_PATH) \
4fc4dd12 3375 $(HOST_EXPORTS) \
d32ab992 3376 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3377 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3378 done; \
295f4e42
NN
3379 echo "Doing distclean in automake" ; \
3380 (cd automake && \
1358ccea
NN
3381 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3382 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3383 "RANLIB=$${RANLIB}" \
3384 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3385 distclean) \
1358ccea
NN
3386 || exit 1
3387
60975492 3388@endif automake
1358ccea 3389
295f4e42
NN
3390.PHONY: maybe-maintainer-clean-automake maintainer-clean-automake
3391maybe-maintainer-clean-automake:
60975492
PB
3392@if automake
3393maybe-maintainer-clean-automake: maintainer-clean-automake
1358ccea 3394
295f4e42
NN
3395maintainer-clean-automake:
3396 @[ -f ./automake/Makefile ] || exit 0; \
8c90b13a
L
3397 r=`${PWD_COMMAND}`; export r; \
3398 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 3399 $(SET_LIB_PATH) \
4fc4dd12 3400 $(HOST_EXPORTS) \
d32ab992 3401 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3402 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3403 done; \
295f4e42
NN
3404 echo "Doing maintainer-clean in automake" ; \
3405 (cd automake && \
1358ccea
NN
3406 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3407 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3408 "RANLIB=$${RANLIB}" \
3409 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3410 maintainer-clean) \
1358ccea
NN
3411 || exit 1
3412
60975492 3413@endif automake
1358ccea 3414
1358ccea 3415
295f4e42
NN
3416.PHONY: configure-bash maybe-configure-bash
3417maybe-configure-bash:
60975492
PB
3418@if bash
3419maybe-configure-bash: configure-bash
295f4e42
NN
3420configure-bash:
3421 @test ! -f bash/Makefile || exit 0; \
3422 [ -d bash ] || mkdir bash; \
8c90b13a
L
3423 r=`${PWD_COMMAND}`; export r; \
3424 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3425 $(HOST_EXPORTS) \
295f4e42
NN
3426 echo Configuring in bash; \
3427 cd bash || exit 1; \
3428 case $(srcdir) in \
3429 \.) \
3430 srcdiroption="--srcdir=."; \
3431 libsrcdir=".";; \
3432 /* | [A-Za-z]:[\\/]*) \
3433 srcdiroption="--srcdir=$(srcdir)/bash"; \
3434 libsrcdir="$$s/bash";; \
3435 *) \
3436 srcdiroption="--srcdir=../$(srcdir)/bash"; \
3437 libsrcdir="$$s/bash";; \
3438 esac; \
3439 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 3440 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 3441 || exit 1
60975492 3442@endif bash
1358ccea 3443
295f4e42
NN
3444.PHONY: all-bash maybe-all-bash
3445maybe-all-bash:
60975492
PB
3446@if bash
3447maybe-all-bash: all-bash
295f4e42
NN
3448all-bash: configure-bash
3449 @r=`${PWD_COMMAND}`; export r; \
3450 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3451 $(SET_LIB_PATH) \
4fc4dd12 3452 $(HOST_EXPORTS) \
a52a0a7f 3453 (cd bash && $(MAKE) $(FLAGS_TO_PASS) all)
60975492 3454@endif bash
1358ccea 3455
295f4e42
NN
3456.PHONY: check-bash maybe-check-bash
3457maybe-check-bash:
60975492
PB
3458@if bash
3459maybe-check-bash: check-bash
1358ccea 3460
295f4e42
NN
3461check-bash:
3462 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 3463 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 3464 $(SET_LIB_PATH) \
4fc4dd12 3465 $(HOST_EXPORTS) \
7c27e184 3466 (cd bash && $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 3467
60975492 3468@endif bash
1358ccea 3469
295f4e42
NN
3470.PHONY: install-bash maybe-install-bash
3471maybe-install-bash:
60975492
PB
3472@if bash
3473maybe-install-bash: install-bash
1358ccea 3474
295f4e42
NN
3475install-bash: installdirs
3476 @r=`${PWD_COMMAND}`; export r; \
3477 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3478 $(SET_LIB_PATH) \
4fc4dd12 3479 $(HOST_EXPORTS) \
7c27e184 3480 (cd bash && $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 3481
60975492 3482@endif bash
295f4e42
NN
3483
3484# Other targets (info, dvi, etc.)
3485
3486.PHONY: maybe-info-bash info-bash
3487maybe-info-bash:
60975492
PB
3488@if bash
3489maybe-info-bash: info-bash
295f4e42
NN
3490
3491info-bash: \
3492 configure-bash
3493 @[ -f ./bash/Makefile ] || exit 0; \
8c90b13a
L
3494 r=`${PWD_COMMAND}`; export r; \
3495 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 3496 $(SET_LIB_PATH) \
4fc4dd12 3497 $(HOST_EXPORTS) \
d32ab992 3498 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3499 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3500 done; \
295f4e42
NN
3501 echo "Doing info in bash" ; \
3502 (cd bash && \
1358ccea
NN
3503 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3504 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3505 "RANLIB=$${RANLIB}" \
3506 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3507 info) \
1358ccea
NN
3508 || exit 1
3509
60975492 3510@endif bash
1358ccea 3511
295f4e42
NN
3512.PHONY: maybe-dvi-bash dvi-bash
3513maybe-dvi-bash:
60975492
PB
3514@if bash
3515maybe-dvi-bash: dvi-bash
1358ccea 3516
295f4e42
NN
3517dvi-bash: \
3518 configure-bash
3519 @[ -f ./bash/Makefile ] || exit 0; \
8c90b13a
L
3520 r=`${PWD_COMMAND}`; export r; \
3521 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 3522 $(SET_LIB_PATH) \
4fc4dd12 3523 $(HOST_EXPORTS) \
d32ab992 3524 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3525 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3526 done; \
295f4e42
NN
3527 echo "Doing dvi in bash" ; \
3528 (cd bash && \
1358ccea
NN
3529 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3530 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3531 "RANLIB=$${RANLIB}" \
3532 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3533 dvi) \
1358ccea
NN
3534 || exit 1
3535
60975492 3536@endif bash
1358ccea 3537
295f4e42
NN
3538.PHONY: maybe-TAGS-bash TAGS-bash
3539maybe-TAGS-bash:
60975492
PB
3540@if bash
3541maybe-TAGS-bash: TAGS-bash
1358ccea 3542
295f4e42
NN
3543TAGS-bash: \
3544 configure-bash
3545 @[ -f ./bash/Makefile ] || exit 0; \
8c90b13a
L
3546 r=`${PWD_COMMAND}`; export r; \
3547 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 3548 $(SET_LIB_PATH) \
4fc4dd12 3549 $(HOST_EXPORTS) \
d32ab992 3550 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3551 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3552 done; \
295f4e42
NN
3553 echo "Doing TAGS in bash" ; \
3554 (cd bash && \
1358ccea
NN
3555 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3556 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3557 "RANLIB=$${RANLIB}" \
3558 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3559 TAGS) \
1358ccea
NN
3560 || exit 1
3561
60975492 3562@endif bash
1358ccea 3563
295f4e42
NN
3564.PHONY: maybe-install-info-bash install-info-bash
3565maybe-install-info-bash:
60975492
PB
3566@if bash
3567maybe-install-info-bash: install-info-bash
1358ccea 3568
295f4e42
NN
3569install-info-bash: \
3570 configure-bash \
3571 info-bash
3572 @[ -f ./bash/Makefile ] || exit 0; \
8c90b13a
L
3573 r=`${PWD_COMMAND}`; export r; \
3574 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 3575 $(SET_LIB_PATH) \
4fc4dd12 3576 $(HOST_EXPORTS) \
d32ab992 3577 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3578 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3579 done; \
295f4e42
NN
3580 echo "Doing install-info in bash" ; \
3581 (cd bash && \
1358ccea
NN
3582 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3583 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3584 "RANLIB=$${RANLIB}" \
3585 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3586 install-info) \
1358ccea
NN
3587 || exit 1
3588
60975492 3589@endif bash
1358ccea 3590
295f4e42
NN
3591.PHONY: maybe-installcheck-bash installcheck-bash
3592maybe-installcheck-bash:
60975492
PB
3593@if bash
3594maybe-installcheck-bash: installcheck-bash
1358ccea 3595
295f4e42
NN
3596installcheck-bash: \
3597 configure-bash
3598 @[ -f ./bash/Makefile ] || exit 0; \
8c90b13a
L
3599 r=`${PWD_COMMAND}`; export r; \
3600 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 3601 $(SET_LIB_PATH) \
4fc4dd12 3602 $(HOST_EXPORTS) \
d32ab992 3603 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3604 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3605 done; \
295f4e42
NN
3606 echo "Doing installcheck in bash" ; \
3607 (cd bash && \
1358ccea
NN
3608 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3609 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3610 "RANLIB=$${RANLIB}" \
3611 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3612 installcheck) \
1358ccea
NN
3613 || exit 1
3614
60975492 3615@endif bash
1358ccea 3616
295f4e42
NN
3617.PHONY: maybe-mostlyclean-bash mostlyclean-bash
3618maybe-mostlyclean-bash:
60975492
PB
3619@if bash
3620maybe-mostlyclean-bash: mostlyclean-bash
1358ccea 3621
295f4e42
NN
3622mostlyclean-bash:
3623 @[ -f ./bash/Makefile ] || exit 0; \
8c90b13a
L
3624 r=`${PWD_COMMAND}`; export r; \
3625 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 3626 $(SET_LIB_PATH) \
4fc4dd12 3627 $(HOST_EXPORTS) \
d32ab992 3628 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3629 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3630 done; \
295f4e42
NN
3631 echo "Doing mostlyclean in bash" ; \
3632 (cd bash && \
1358ccea
NN
3633 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3634 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3635 "RANLIB=$${RANLIB}" \
3636 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3637 mostlyclean) \
1358ccea
NN
3638 || exit 1
3639
60975492 3640@endif bash
1358ccea 3641
295f4e42
NN
3642.PHONY: maybe-clean-bash clean-bash
3643maybe-clean-bash:
60975492
PB
3644@if bash
3645maybe-clean-bash: clean-bash
1358ccea 3646
295f4e42
NN
3647clean-bash:
3648 @[ -f ./bash/Makefile ] || exit 0; \
8c90b13a
L
3649 r=`${PWD_COMMAND}`; export r; \
3650 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 3651 $(SET_LIB_PATH) \
4fc4dd12 3652 $(HOST_EXPORTS) \
d32ab992 3653 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3654 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3655 done; \
295f4e42
NN
3656 echo "Doing clean in bash" ; \
3657 (cd bash && \
1358ccea
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}" \
d32ab992 3662 clean) \
1358ccea
NN
3663 || exit 1
3664
60975492 3665@endif bash
1358ccea 3666
295f4e42
NN
3667.PHONY: maybe-distclean-bash distclean-bash
3668maybe-distclean-bash:
60975492
PB
3669@if bash
3670maybe-distclean-bash: distclean-bash
1358ccea 3671
295f4e42
NN
3672distclean-bash:
3673 @[ -f ./bash/Makefile ] || exit 0; \
8c90b13a
L
3674 r=`${PWD_COMMAND}`; export r; \
3675 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 3676 $(SET_LIB_PATH) \
4fc4dd12 3677 $(HOST_EXPORTS) \
d32ab992 3678 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3679 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3680 done; \
295f4e42
NN
3681 echo "Doing distclean in bash" ; \
3682 (cd bash && \
1358ccea
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}" \
d32ab992 3687 distclean) \
1358ccea
NN
3688 || exit 1
3689
60975492 3690@endif bash
1358ccea 3691
295f4e42
NN
3692.PHONY: maybe-maintainer-clean-bash maintainer-clean-bash
3693maybe-maintainer-clean-bash:
60975492
PB
3694@if bash
3695maybe-maintainer-clean-bash: maintainer-clean-bash
1358ccea 3696
295f4e42
NN
3697maintainer-clean-bash:
3698 @[ -f ./bash/Makefile ] || exit 0; \
8c90b13a
L
3699 r=`${PWD_COMMAND}`; export r; \
3700 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 3701 $(SET_LIB_PATH) \
4fc4dd12 3702 $(HOST_EXPORTS) \
d32ab992 3703 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3704 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3705 done; \
295f4e42
NN
3706 echo "Doing maintainer-clean in bash" ; \
3707 (cd bash && \
1358ccea
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}" \
d32ab992 3712 maintainer-clean) \
1358ccea
NN
3713 || exit 1
3714
60975492 3715@endif bash
1358ccea 3716
1358ccea 3717
295f4e42
NN
3718.PHONY: configure-bfd maybe-configure-bfd
3719maybe-configure-bfd:
60975492
PB
3720@if bfd
3721maybe-configure-bfd: configure-bfd
295f4e42 3722configure-bfd:
7c27e184
PB
3723 @test -f stage_last && exit 0; \
3724 test ! -f bfd/Makefile || exit 0; \
295f4e42 3725 [ -d bfd ] || mkdir bfd; \
8c90b13a
L
3726 r=`${PWD_COMMAND}`; export r; \
3727 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3728 $(HOST_EXPORTS) \
295f4e42
NN
3729 echo Configuring in bfd; \
3730 cd bfd || exit 1; \
3731 case $(srcdir) in \
3732 \.) \
3733 srcdiroption="--srcdir=."; \
3734 libsrcdir=".";; \
3735 /* | [A-Za-z]:[\\/]*) \
3736 srcdiroption="--srcdir=$(srcdir)/bfd"; \
3737 libsrcdir="$$s/bfd";; \
3738 *) \
3739 srcdiroption="--srcdir=../$(srcdir)/bfd"; \
3740 libsrcdir="$$s/bfd";; \
3741 esac; \
3742 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 3743 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 3744 || exit 1
60975492 3745@endif bfd
1358ccea 3746
295f4e42
NN
3747.PHONY: all-bfd maybe-all-bfd
3748maybe-all-bfd:
60975492
PB
3749@if bfd
3750maybe-all-bfd: all-bfd
295f4e42 3751all-bfd: configure-bfd
7c27e184
PB
3752 @test -f stage_last && exit 0; \
3753 r=`${PWD_COMMAND}`; export r; \
295f4e42
NN
3754 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3755 $(SET_LIB_PATH) \
4fc4dd12 3756 $(HOST_EXPORTS) \
a52a0a7f 3757 (cd bfd && $(MAKE) $(FLAGS_TO_PASS) all)
60975492 3758@endif bfd
1358ccea 3759
295f4e42
NN
3760.PHONY: check-bfd maybe-check-bfd
3761maybe-check-bfd:
60975492
PB
3762@if bfd
3763maybe-check-bfd: check-bfd
1358ccea 3764
295f4e42
NN
3765check-bfd:
3766 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 3767 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 3768 $(SET_LIB_PATH) \
4fc4dd12 3769 $(HOST_EXPORTS) \
7c27e184 3770 (cd bfd && $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 3771
60975492 3772@endif bfd
1358ccea 3773
295f4e42
NN
3774.PHONY: install-bfd maybe-install-bfd
3775maybe-install-bfd:
60975492
PB
3776@if bfd
3777maybe-install-bfd: install-bfd
1358ccea 3778
295f4e42
NN
3779install-bfd: installdirs
3780 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 3781 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 3782 $(SET_LIB_PATH) \
4fc4dd12 3783 $(HOST_EXPORTS) \
7c27e184 3784 (cd bfd && $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 3785
60975492 3786@endif bfd
1358ccea 3787
295f4e42
NN
3788# Other targets (info, dvi, etc.)
3789
3790.PHONY: maybe-info-bfd info-bfd
3791maybe-info-bfd:
60975492
PB
3792@if bfd
3793maybe-info-bfd: info-bfd
1358ccea 3794
295f4e42
NN
3795info-bfd: \
3796 configure-bfd
3797 @[ -f ./bfd/Makefile ] || exit 0; \
8c90b13a
L
3798 r=`${PWD_COMMAND}`; export r; \
3799 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 3800 $(SET_LIB_PATH) \
4fc4dd12 3801 $(HOST_EXPORTS) \
d32ab992 3802 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3803 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3804 done; \
295f4e42
NN
3805 echo "Doing info in bfd" ; \
3806 (cd bfd && \
1358ccea
NN
3807 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3808 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3809 "RANLIB=$${RANLIB}" \
3810 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3811 info) \
1358ccea
NN
3812 || exit 1
3813
60975492 3814@endif bfd
1358ccea 3815
295f4e42
NN
3816.PHONY: maybe-dvi-bfd dvi-bfd
3817maybe-dvi-bfd:
60975492
PB
3818@if bfd
3819maybe-dvi-bfd: dvi-bfd
1358ccea 3820
295f4e42
NN
3821dvi-bfd: \
3822 configure-bfd
3823 @[ -f ./bfd/Makefile ] || exit 0; \
8c90b13a
L
3824 r=`${PWD_COMMAND}`; export r; \
3825 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 3826 $(SET_LIB_PATH) \
4fc4dd12 3827 $(HOST_EXPORTS) \
d32ab992 3828 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3829 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3830 done; \
295f4e42
NN
3831 echo "Doing dvi in bfd" ; \
3832 (cd bfd && \
1358ccea
NN
3833 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3834 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3835 "RANLIB=$${RANLIB}" \
3836 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3837 dvi) \
1358ccea
NN
3838 || exit 1
3839
60975492 3840@endif bfd
1358ccea 3841
295f4e42
NN
3842.PHONY: maybe-TAGS-bfd TAGS-bfd
3843maybe-TAGS-bfd:
60975492
PB
3844@if bfd
3845maybe-TAGS-bfd: TAGS-bfd
1358ccea 3846
295f4e42
NN
3847TAGS-bfd: \
3848 configure-bfd
3849 @[ -f ./bfd/Makefile ] || exit 0; \
8c90b13a
L
3850 r=`${PWD_COMMAND}`; export r; \
3851 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 3852 $(SET_LIB_PATH) \
4fc4dd12 3853 $(HOST_EXPORTS) \
d32ab992 3854 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3855 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3856 done; \
295f4e42
NN
3857 echo "Doing TAGS in bfd" ; \
3858 (cd bfd && \
1358ccea
NN
3859 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3860 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3861 "RANLIB=$${RANLIB}" \
3862 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3863 TAGS) \
1358ccea
NN
3864 || exit 1
3865
60975492 3866@endif bfd
1358ccea 3867
295f4e42
NN
3868.PHONY: maybe-install-info-bfd install-info-bfd
3869maybe-install-info-bfd:
60975492
PB
3870@if bfd
3871maybe-install-info-bfd: install-info-bfd
1358ccea 3872
295f4e42
NN
3873install-info-bfd: \
3874 configure-bfd \
3875 info-bfd
3876 @[ -f ./bfd/Makefile ] || exit 0; \
8c90b13a
L
3877 r=`${PWD_COMMAND}`; export r; \
3878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 3879 $(SET_LIB_PATH) \
4fc4dd12 3880 $(HOST_EXPORTS) \
d32ab992 3881 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3882 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3883 done; \
295f4e42
NN
3884 echo "Doing install-info in bfd" ; \
3885 (cd bfd && \
1358ccea
NN
3886 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3887 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3888 "RANLIB=$${RANLIB}" \
3889 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3890 install-info) \
1358ccea
NN
3891 || exit 1
3892
60975492 3893@endif bfd
1358ccea 3894
295f4e42
NN
3895.PHONY: maybe-installcheck-bfd installcheck-bfd
3896maybe-installcheck-bfd:
60975492
PB
3897@if bfd
3898maybe-installcheck-bfd: installcheck-bfd
1358ccea 3899
295f4e42
NN
3900installcheck-bfd: \
3901 configure-bfd
3902 @[ -f ./bfd/Makefile ] || exit 0; \
8c90b13a
L
3903 r=`${PWD_COMMAND}`; export r; \
3904 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 3905 $(SET_LIB_PATH) \
4fc4dd12 3906 $(HOST_EXPORTS) \
d32ab992 3907 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3908 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3909 done; \
295f4e42
NN
3910 echo "Doing installcheck in bfd" ; \
3911 (cd bfd && \
1358ccea
NN
3912 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3913 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3914 "RANLIB=$${RANLIB}" \
3915 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3916 installcheck) \
1358ccea
NN
3917 || exit 1
3918
60975492 3919@endif bfd
1358ccea 3920
295f4e42
NN
3921.PHONY: maybe-mostlyclean-bfd mostlyclean-bfd
3922maybe-mostlyclean-bfd:
60975492
PB
3923@if bfd
3924maybe-mostlyclean-bfd: mostlyclean-bfd
1358ccea 3925
295f4e42
NN
3926mostlyclean-bfd:
3927 @[ -f ./bfd/Makefile ] || exit 0; \
8c90b13a
L
3928 r=`${PWD_COMMAND}`; export r; \
3929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 3930 $(SET_LIB_PATH) \
4fc4dd12 3931 $(HOST_EXPORTS) \
d32ab992 3932 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3933 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3934 done; \
295f4e42
NN
3935 echo "Doing mostlyclean in bfd" ; \
3936 (cd bfd && \
1358ccea
NN
3937 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3938 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3939 "RANLIB=$${RANLIB}" \
3940 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3941 mostlyclean) \
1358ccea
NN
3942 || exit 1
3943
60975492 3944@endif bfd
1358ccea 3945
295f4e42
NN
3946.PHONY: maybe-clean-bfd clean-bfd
3947maybe-clean-bfd:
60975492
PB
3948@if bfd
3949maybe-clean-bfd: clean-bfd
1358ccea 3950
295f4e42
NN
3951clean-bfd:
3952 @[ -f ./bfd/Makefile ] || exit 0; \
8c90b13a
L
3953 r=`${PWD_COMMAND}`; export r; \
3954 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 3955 $(SET_LIB_PATH) \
4fc4dd12 3956 $(HOST_EXPORTS) \
d32ab992 3957 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3958 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3959 done; \
295f4e42
NN
3960 echo "Doing clean in bfd" ; \
3961 (cd bfd && \
1358ccea
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}" \
d32ab992 3966 clean) \
1358ccea
NN
3967 || exit 1
3968
60975492 3969@endif bfd
1358ccea 3970
295f4e42
NN
3971.PHONY: maybe-distclean-bfd distclean-bfd
3972maybe-distclean-bfd:
60975492
PB
3973@if bfd
3974maybe-distclean-bfd: distclean-bfd
1358ccea 3975
295f4e42
NN
3976distclean-bfd:
3977 @[ -f ./bfd/Makefile ] || exit 0; \
8c90b13a
L
3978 r=`${PWD_COMMAND}`; export r; \
3979 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 3980 $(SET_LIB_PATH) \
4fc4dd12 3981 $(HOST_EXPORTS) \
d32ab992 3982 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3983 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3984 done; \
295f4e42
NN
3985 echo "Doing distclean in bfd" ; \
3986 (cd bfd && \
1358ccea
NN
3987 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3988 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3989 "RANLIB=$${RANLIB}" \
3990 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3991 distclean) \
1358ccea
NN
3992 || exit 1
3993
60975492 3994@endif bfd
1358ccea 3995
295f4e42
NN
3996.PHONY: maybe-maintainer-clean-bfd maintainer-clean-bfd
3997maybe-maintainer-clean-bfd:
60975492
PB
3998@if bfd
3999maybe-maintainer-clean-bfd: maintainer-clean-bfd
1358ccea 4000
295f4e42
NN
4001maintainer-clean-bfd:
4002 @[ -f ./bfd/Makefile ] || exit 0; \
8c90b13a
L
4003 r=`${PWD_COMMAND}`; export r; \
4004 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 4005 $(SET_LIB_PATH) \
4fc4dd12 4006 $(HOST_EXPORTS) \
d32ab992 4007 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4008 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4009 done; \
295f4e42
NN
4010 echo "Doing maintainer-clean in bfd" ; \
4011 (cd bfd && \
1358ccea
NN
4012 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4013 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4014 "RANLIB=$${RANLIB}" \
4015 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4016 maintainer-clean) \
1358ccea
NN
4017 || exit 1
4018
60975492 4019@endif bfd
1358ccea 4020
1358ccea 4021
295f4e42
NN
4022.PHONY: configure-opcodes maybe-configure-opcodes
4023maybe-configure-opcodes:
60975492
PB
4024@if opcodes
4025maybe-configure-opcodes: configure-opcodes
295f4e42 4026configure-opcodes:
7c27e184
PB
4027 @test -f stage_last && exit 0; \
4028 test ! -f opcodes/Makefile || exit 0; \
295f4e42 4029 [ -d opcodes ] || mkdir opcodes; \
8c90b13a
L
4030 r=`${PWD_COMMAND}`; export r; \
4031 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4032 $(HOST_EXPORTS) \
295f4e42
NN
4033 echo Configuring in opcodes; \
4034 cd opcodes || exit 1; \
4035 case $(srcdir) in \
4036 \.) \
4037 srcdiroption="--srcdir=."; \
4038 libsrcdir=".";; \
4039 /* | [A-Za-z]:[\\/]*) \
4040 srcdiroption="--srcdir=$(srcdir)/opcodes"; \
4041 libsrcdir="$$s/opcodes";; \
4042 *) \
4043 srcdiroption="--srcdir=../$(srcdir)/opcodes"; \
4044 libsrcdir="$$s/opcodes";; \
4045 esac; \
4046 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 4047 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 4048 || exit 1
60975492 4049@endif opcodes
1358ccea 4050
295f4e42
NN
4051.PHONY: all-opcodes maybe-all-opcodes
4052maybe-all-opcodes:
60975492
PB
4053@if opcodes
4054maybe-all-opcodes: all-opcodes
295f4e42 4055all-opcodes: configure-opcodes
7c27e184
PB
4056 @test -f stage_last && exit 0; \
4057 r=`${PWD_COMMAND}`; export r; \
8c90b13a 4058 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 4059 $(SET_LIB_PATH) \
4fc4dd12 4060 $(HOST_EXPORTS) \
a52a0a7f 4061 (cd opcodes && $(MAKE) $(FLAGS_TO_PASS) all)
60975492 4062@endif opcodes
1358ccea 4063
295f4e42
NN
4064.PHONY: check-opcodes maybe-check-opcodes
4065maybe-check-opcodes:
60975492
PB
4066@if opcodes
4067maybe-check-opcodes: check-opcodes
1358ccea 4068
295f4e42
NN
4069check-opcodes:
4070 @r=`${PWD_COMMAND}`; export r; \
4071 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4072 $(SET_LIB_PATH) \
4fc4dd12 4073 $(HOST_EXPORTS) \
7c27e184 4074 (cd opcodes && $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 4075
60975492 4076@endif opcodes
1358ccea 4077
295f4e42
NN
4078.PHONY: install-opcodes maybe-install-opcodes
4079maybe-install-opcodes:
60975492
PB
4080@if opcodes
4081maybe-install-opcodes: install-opcodes
1358ccea 4082
295f4e42
NN
4083install-opcodes: installdirs
4084 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 4085 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 4086 $(SET_LIB_PATH) \
4fc4dd12 4087 $(HOST_EXPORTS) \
7c27e184 4088 (cd opcodes && $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 4089
60975492 4090@endif opcodes
1358ccea 4091
295f4e42 4092# Other targets (info, dvi, etc.)
1358ccea 4093
295f4e42
NN
4094.PHONY: maybe-info-opcodes info-opcodes
4095maybe-info-opcodes:
60975492
PB
4096@if opcodes
4097maybe-info-opcodes: info-opcodes
295f4e42
NN
4098
4099info-opcodes: \
4100 configure-opcodes
4101 @[ -f ./opcodes/Makefile ] || exit 0; \
8c90b13a
L
4102 r=`${PWD_COMMAND}`; export r; \
4103 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 4104 $(SET_LIB_PATH) \
4fc4dd12 4105 $(HOST_EXPORTS) \
d32ab992 4106 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4107 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4108 done; \
295f4e42
NN
4109 echo "Doing info in opcodes" ; \
4110 (cd opcodes && \
1358ccea
NN
4111 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4112 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4113 "RANLIB=$${RANLIB}" \
4114 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4115 info) \
1358ccea
NN
4116 || exit 1
4117
60975492 4118@endif opcodes
1358ccea 4119
295f4e42
NN
4120.PHONY: maybe-dvi-opcodes dvi-opcodes
4121maybe-dvi-opcodes:
60975492
PB
4122@if opcodes
4123maybe-dvi-opcodes: dvi-opcodes
1358ccea 4124
295f4e42
NN
4125dvi-opcodes: \
4126 configure-opcodes
4127 @[ -f ./opcodes/Makefile ] || exit 0; \
8c90b13a
L
4128 r=`${PWD_COMMAND}`; export r; \
4129 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 4130 $(SET_LIB_PATH) \
4fc4dd12 4131 $(HOST_EXPORTS) \
d32ab992 4132 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4133 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4134 done; \
295f4e42
NN
4135 echo "Doing dvi in opcodes" ; \
4136 (cd opcodes && \
1358ccea
NN
4137 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4138 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4139 "RANLIB=$${RANLIB}" \
4140 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4141 dvi) \
1358ccea
NN
4142 || exit 1
4143
60975492 4144@endif opcodes
1358ccea 4145
295f4e42
NN
4146.PHONY: maybe-TAGS-opcodes TAGS-opcodes
4147maybe-TAGS-opcodes:
60975492
PB
4148@if opcodes
4149maybe-TAGS-opcodes: TAGS-opcodes
1358ccea 4150
295f4e42
NN
4151TAGS-opcodes: \
4152 configure-opcodes
4153 @[ -f ./opcodes/Makefile ] || exit 0; \
8c90b13a
L
4154 r=`${PWD_COMMAND}`; export r; \
4155 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 4156 $(SET_LIB_PATH) \
4fc4dd12 4157 $(HOST_EXPORTS) \
d32ab992 4158 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4159 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4160 done; \
295f4e42
NN
4161 echo "Doing TAGS in opcodes" ; \
4162 (cd opcodes && \
1358ccea
NN
4163 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4164 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4165 "RANLIB=$${RANLIB}" \
4166 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4167 TAGS) \
1358ccea
NN
4168 || exit 1
4169
60975492 4170@endif opcodes
1358ccea 4171
295f4e42
NN
4172.PHONY: maybe-install-info-opcodes install-info-opcodes
4173maybe-install-info-opcodes:
60975492
PB
4174@if opcodes
4175maybe-install-info-opcodes: install-info-opcodes
1358ccea 4176
295f4e42
NN
4177install-info-opcodes: \
4178 configure-opcodes \
4179 info-opcodes
4180 @[ -f ./opcodes/Makefile ] || exit 0; \
8c90b13a
L
4181 r=`${PWD_COMMAND}`; export r; \
4182 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 4183 $(SET_LIB_PATH) \
4fc4dd12 4184 $(HOST_EXPORTS) \
d32ab992 4185 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4186 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4187 done; \
295f4e42
NN
4188 echo "Doing install-info in opcodes" ; \
4189 (cd opcodes && \
1358ccea
NN
4190 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4191 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4192 "RANLIB=$${RANLIB}" \
4193 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4194 install-info) \
1358ccea
NN
4195 || exit 1
4196
60975492 4197@endif opcodes
1358ccea 4198
295f4e42
NN
4199.PHONY: maybe-installcheck-opcodes installcheck-opcodes
4200maybe-installcheck-opcodes:
60975492
PB
4201@if opcodes
4202maybe-installcheck-opcodes: installcheck-opcodes
1358ccea 4203
295f4e42
NN
4204installcheck-opcodes: \
4205 configure-opcodes
4206 @[ -f ./opcodes/Makefile ] || exit 0; \
8c90b13a
L
4207 r=`${PWD_COMMAND}`; export r; \
4208 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 4209 $(SET_LIB_PATH) \
4fc4dd12 4210 $(HOST_EXPORTS) \
d32ab992 4211 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4212 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4213 done; \
295f4e42
NN
4214 echo "Doing installcheck in opcodes" ; \
4215 (cd opcodes && \
1358ccea
NN
4216 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4217 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4218 "RANLIB=$${RANLIB}" \
4219 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4220 installcheck) \
1358ccea
NN
4221 || exit 1
4222
60975492 4223@endif opcodes
1358ccea 4224
295f4e42
NN
4225.PHONY: maybe-mostlyclean-opcodes mostlyclean-opcodes
4226maybe-mostlyclean-opcodes:
60975492
PB
4227@if opcodes
4228maybe-mostlyclean-opcodes: mostlyclean-opcodes
1358ccea 4229
295f4e42
NN
4230mostlyclean-opcodes:
4231 @[ -f ./opcodes/Makefile ] || exit 0; \
8c90b13a
L
4232 r=`${PWD_COMMAND}`; export r; \
4233 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 4234 $(SET_LIB_PATH) \
4fc4dd12 4235 $(HOST_EXPORTS) \
d32ab992 4236 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4237 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4238 done; \
295f4e42
NN
4239 echo "Doing mostlyclean in opcodes" ; \
4240 (cd opcodes && \
1358ccea
NN
4241 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4242 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4243 "RANLIB=$${RANLIB}" \
4244 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4245 mostlyclean) \
1358ccea
NN
4246 || exit 1
4247
60975492 4248@endif opcodes
1358ccea 4249
295f4e42
NN
4250.PHONY: maybe-clean-opcodes clean-opcodes
4251maybe-clean-opcodes:
60975492
PB
4252@if opcodes
4253maybe-clean-opcodes: clean-opcodes
1358ccea 4254
295f4e42
NN
4255clean-opcodes:
4256 @[ -f ./opcodes/Makefile ] || exit 0; \
8c90b13a
L
4257 r=`${PWD_COMMAND}`; export r; \
4258 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 4259 $(SET_LIB_PATH) \
4fc4dd12 4260 $(HOST_EXPORTS) \
d32ab992 4261 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4262 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4263 done; \
295f4e42
NN
4264 echo "Doing clean in opcodes" ; \
4265 (cd opcodes && \
1358ccea
NN
4266 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4267 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4268 "RANLIB=$${RANLIB}" \
4269 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4270 clean) \
1358ccea
NN
4271 || exit 1
4272
60975492 4273@endif opcodes
1358ccea 4274
295f4e42
NN
4275.PHONY: maybe-distclean-opcodes distclean-opcodes
4276maybe-distclean-opcodes:
60975492
PB
4277@if opcodes
4278maybe-distclean-opcodes: distclean-opcodes
1358ccea 4279
295f4e42
NN
4280distclean-opcodes:
4281 @[ -f ./opcodes/Makefile ] || exit 0; \
8c90b13a
L
4282 r=`${PWD_COMMAND}`; export r; \
4283 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 4284 $(SET_LIB_PATH) \
4fc4dd12 4285 $(HOST_EXPORTS) \
d32ab992 4286 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4287 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4288 done; \
295f4e42
NN
4289 echo "Doing distclean in opcodes" ; \
4290 (cd opcodes && \
1358ccea
NN
4291 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4292 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4293 "RANLIB=$${RANLIB}" \
4294 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4295 distclean) \
1358ccea
NN
4296 || exit 1
4297
60975492 4298@endif opcodes
1358ccea 4299
295f4e42
NN
4300.PHONY: maybe-maintainer-clean-opcodes maintainer-clean-opcodes
4301maybe-maintainer-clean-opcodes:
60975492
PB
4302@if opcodes
4303maybe-maintainer-clean-opcodes: maintainer-clean-opcodes
1358ccea 4304
295f4e42
NN
4305maintainer-clean-opcodes:
4306 @[ -f ./opcodes/Makefile ] || exit 0; \
8c90b13a
L
4307 r=`${PWD_COMMAND}`; export r; \
4308 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 4309 $(SET_LIB_PATH) \
4fc4dd12 4310 $(HOST_EXPORTS) \
d32ab992 4311 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4312 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4313 done; \
295f4e42
NN
4314 echo "Doing maintainer-clean in opcodes" ; \
4315 (cd opcodes && \
1358ccea
NN
4316 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4317 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4318 "RANLIB=$${RANLIB}" \
4319 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4320 maintainer-clean) \
1358ccea
NN
4321 || exit 1
4322
60975492 4323@endif opcodes
1358ccea 4324
1358ccea 4325
295f4e42
NN
4326.PHONY: configure-binutils maybe-configure-binutils
4327maybe-configure-binutils:
60975492
PB
4328@if binutils
4329maybe-configure-binutils: configure-binutils
295f4e42 4330configure-binutils:
7c27e184
PB
4331 @test -f stage_last && exit 0; \
4332 test ! -f binutils/Makefile || exit 0; \
295f4e42 4333 [ -d binutils ] || mkdir binutils; \
8c90b13a
L
4334 r=`${PWD_COMMAND}`; export r; \
4335 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4336 $(HOST_EXPORTS) \
295f4e42
NN
4337 echo Configuring in binutils; \
4338 cd binutils || exit 1; \
4339 case $(srcdir) in \
4340 \.) \
4341 srcdiroption="--srcdir=."; \
4342 libsrcdir=".";; \
4343 /* | [A-Za-z]:[\\/]*) \
4344 srcdiroption="--srcdir=$(srcdir)/binutils"; \
4345 libsrcdir="$$s/binutils";; \
4346 *) \
4347 srcdiroption="--srcdir=../$(srcdir)/binutils"; \
4348 libsrcdir="$$s/binutils";; \
4349 esac; \
4350 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 4351 $(HOST_CONFIGARGS) $${srcdiroption} \
295f4e42 4352 || exit 1
60975492 4353@endif binutils
295f4e42
NN
4354
4355.PHONY: all-binutils maybe-all-binutils
4356maybe-all-binutils:
60975492
PB
4357@if binutils
4358maybe-all-binutils: all-binutils
295f4e42 4359all-binutils: configure-binutils
7c27e184
PB
4360 @test -f stage_last && exit 0; \
4361 r=`${PWD_COMMAND}`; export r; \
295f4e42 4362 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 4363 $(SET_LIB_PATH) \
4fc4dd12 4364 $(HOST_EXPORTS) \
a52a0a7f 4365 (cd binutils && $(MAKE) $(FLAGS_TO_PASS) all)
60975492 4366@endif binutils
295f4e42
NN
4367
4368.PHONY: check-binutils maybe-check-binutils
4369maybe-check-binutils:
60975492
PB
4370@if binutils
4371maybe-check-binutils: check-binutils
295f4e42
NN
4372
4373check-binutils:
4374 @r=`${PWD_COMMAND}`; export r; \
4375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4376 $(SET_LIB_PATH) \
4fc4dd12 4377 $(HOST_EXPORTS) \
7c27e184 4378 (cd binutils && $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 4379
60975492 4380@endif binutils
295f4e42
NN
4381
4382.PHONY: install-binutils maybe-install-binutils
4383maybe-install-binutils:
60975492
PB
4384@if binutils
4385maybe-install-binutils: install-binutils
295f4e42
NN
4386
4387install-binutils: installdirs
4388 @r=`${PWD_COMMAND}`; export r; \
4389 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4390 $(SET_LIB_PATH) \
4fc4dd12 4391 $(HOST_EXPORTS) \
7c27e184 4392 (cd binutils && $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 4393
60975492 4394@endif binutils
295f4e42
NN
4395
4396# Other targets (info, dvi, etc.)
4397
4398.PHONY: maybe-info-binutils info-binutils
4399maybe-info-binutils:
60975492
PB
4400@if binutils
4401maybe-info-binutils: info-binutils
295f4e42
NN
4402
4403info-binutils: \
4404 configure-binutils
4405 @[ -f ./binutils/Makefile ] || exit 0; \
4406 r=`${PWD_COMMAND}`; export r; \
4407 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4408 $(SET_LIB_PATH) \
4fc4dd12 4409 $(HOST_EXPORTS) \
d32ab992 4410 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4411 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4412 done; \
295f4e42
NN
4413 echo "Doing info in binutils" ; \
4414 (cd binutils && \
1358ccea
NN
4415 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4416 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4417 "RANLIB=$${RANLIB}" \
4418 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4419 info) \
1358ccea
NN
4420 || exit 1
4421
60975492 4422@endif binutils
1358ccea 4423
295f4e42
NN
4424.PHONY: maybe-dvi-binutils dvi-binutils
4425maybe-dvi-binutils:
60975492
PB
4426@if binutils
4427maybe-dvi-binutils: dvi-binutils
1358ccea 4428
295f4e42
NN
4429dvi-binutils: \
4430 configure-binutils
4431 @[ -f ./binutils/Makefile ] || exit 0; \
8c90b13a
L
4432 r=`${PWD_COMMAND}`; export r; \
4433 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 4434 $(SET_LIB_PATH) \
4fc4dd12 4435 $(HOST_EXPORTS) \
d32ab992 4436 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4437 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4438 done; \
295f4e42
NN
4439 echo "Doing dvi in binutils" ; \
4440 (cd binutils && \
1358ccea
NN
4441 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4442 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4443 "RANLIB=$${RANLIB}" \
4444 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4445 dvi) \
1358ccea
NN
4446 || exit 1
4447
60975492 4448@endif binutils
1358ccea 4449
295f4e42
NN
4450.PHONY: maybe-TAGS-binutils TAGS-binutils
4451maybe-TAGS-binutils:
60975492
PB
4452@if binutils
4453maybe-TAGS-binutils: TAGS-binutils
1358ccea 4454
295f4e42
NN
4455TAGS-binutils: \
4456 configure-binutils
4457 @[ -f ./binutils/Makefile ] || exit 0; \
8c90b13a
L
4458 r=`${PWD_COMMAND}`; export r; \
4459 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 4460 $(SET_LIB_PATH) \
4fc4dd12 4461 $(HOST_EXPORTS) \
d32ab992 4462 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4463 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4464 done; \
295f4e42
NN
4465 echo "Doing TAGS in binutils" ; \
4466 (cd binutils && \
1358ccea
NN
4467 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4468 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4469 "RANLIB=$${RANLIB}" \
4470 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4471 TAGS) \
1358ccea
NN
4472 || exit 1
4473
60975492 4474@endif binutils
1358ccea 4475
295f4e42
NN
4476.PHONY: maybe-install-info-binutils install-info-binutils
4477maybe-install-info-binutils:
60975492
PB
4478@if binutils
4479maybe-install-info-binutils: install-info-binutils
1358ccea 4480
295f4e42
NN
4481install-info-binutils: \
4482 configure-binutils \
4483 info-binutils
4484 @[ -f ./binutils/Makefile ] || exit 0; \
8c90b13a
L
4485 r=`${PWD_COMMAND}`; export r; \
4486 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 4487 $(SET_LIB_PATH) \
4fc4dd12 4488 $(HOST_EXPORTS) \
d32ab992 4489 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4490 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4491 done; \
295f4e42
NN
4492 echo "Doing install-info in binutils" ; \
4493 (cd binutils && \
1358ccea
NN
4494 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4495 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4496 "RANLIB=$${RANLIB}" \
4497 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4498 install-info) \
1358ccea
NN
4499 || exit 1
4500
60975492 4501@endif binutils
1358ccea 4502
295f4e42
NN
4503.PHONY: maybe-installcheck-binutils installcheck-binutils
4504maybe-installcheck-binutils:
60975492
PB
4505@if binutils
4506maybe-installcheck-binutils: installcheck-binutils
1358ccea 4507
295f4e42
NN
4508installcheck-binutils: \
4509 configure-binutils
4510 @[ -f ./binutils/Makefile ] || exit 0; \
8c90b13a
L
4511 r=`${PWD_COMMAND}`; export r; \
4512 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 4513 $(SET_LIB_PATH) \
4fc4dd12 4514 $(HOST_EXPORTS) \
d32ab992 4515 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4516 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4517 done; \
295f4e42
NN
4518 echo "Doing installcheck in binutils" ; \
4519 (cd binutils && \
1358ccea
NN
4520 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4521 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4522 "RANLIB=$${RANLIB}" \
4523 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4524 installcheck) \
1358ccea
NN
4525 || exit 1
4526
60975492 4527@endif binutils
1358ccea 4528
295f4e42
NN
4529.PHONY: maybe-mostlyclean-binutils mostlyclean-binutils
4530maybe-mostlyclean-binutils:
60975492
PB
4531@if binutils
4532maybe-mostlyclean-binutils: mostlyclean-binutils
1358ccea 4533
295f4e42
NN
4534mostlyclean-binutils:
4535 @[ -f ./binutils/Makefile ] || exit 0; \
8c90b13a
L
4536 r=`${PWD_COMMAND}`; export r; \
4537 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 4538 $(SET_LIB_PATH) \
4fc4dd12 4539 $(HOST_EXPORTS) \
d32ab992 4540 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4541 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4542 done; \
295f4e42
NN
4543 echo "Doing mostlyclean in binutils" ; \
4544 (cd binutils && \
1358ccea
NN
4545 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4546 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4547 "RANLIB=$${RANLIB}" \
4548 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4549 mostlyclean) \
1358ccea
NN
4550 || exit 1
4551
60975492 4552@endif binutils
1358ccea 4553
295f4e42
NN
4554.PHONY: maybe-clean-binutils clean-binutils
4555maybe-clean-binutils:
60975492
PB
4556@if binutils
4557maybe-clean-binutils: clean-binutils
d9cdb878 4558
295f4e42
NN
4559clean-binutils:
4560 @[ -f ./binutils/Makefile ] || exit 0; \
d9cdb878
AC
4561 r=`${PWD_COMMAND}`; export r; \
4562 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4563 $(SET_LIB_PATH) \
4fc4dd12 4564 $(HOST_EXPORTS) \
d32ab992 4565 for flag in $(EXTRA_HOST_FLAGS) ; do \
d9cdb878
AC
4566 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4567 done; \
295f4e42
NN
4568 echo "Doing clean in binutils" ; \
4569 (cd binutils && \
d9cdb878
AC
4570 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4571 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4572 "RANLIB=$${RANLIB}" \
4573 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4574 clean) \
d9cdb878
AC
4575 || exit 1
4576
60975492 4577@endif binutils
d9cdb878 4578
295f4e42
NN
4579.PHONY: maybe-distclean-binutils distclean-binutils
4580maybe-distclean-binutils:
60975492
PB
4581@if binutils
4582maybe-distclean-binutils: distclean-binutils
1358ccea 4583
295f4e42
NN
4584distclean-binutils:
4585 @[ -f ./binutils/Makefile ] || exit 0; \
8c90b13a
L
4586 r=`${PWD_COMMAND}`; export r; \
4587 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 4588 $(SET_LIB_PATH) \
4fc4dd12 4589 $(HOST_EXPORTS) \
d32ab992 4590 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4591 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4592 done; \
295f4e42
NN
4593 echo "Doing distclean in binutils" ; \
4594 (cd binutils && \
1358ccea
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}" \
d32ab992 4599 distclean) \
1358ccea
NN
4600 || exit 1
4601
60975492 4602@endif binutils
1358ccea 4603
295f4e42
NN
4604.PHONY: maybe-maintainer-clean-binutils maintainer-clean-binutils
4605maybe-maintainer-clean-binutils:
60975492
PB
4606@if binutils
4607maybe-maintainer-clean-binutils: maintainer-clean-binutils
1358ccea 4608
295f4e42
NN
4609maintainer-clean-binutils:
4610 @[ -f ./binutils/Makefile ] || exit 0; \
8c90b13a
L
4611 r=`${PWD_COMMAND}`; export r; \
4612 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 4613 $(SET_LIB_PATH) \
4fc4dd12 4614 $(HOST_EXPORTS) \
d32ab992 4615 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4616 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4617 done; \
295f4e42
NN
4618 echo "Doing maintainer-clean in binutils" ; \
4619 (cd binutils && \
1358ccea
NN
4620 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4621 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4622 "RANLIB=$${RANLIB}" \
4623 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4624 maintainer-clean) \
295f4e42
NN
4625 || exit 1
4626
60975492 4627@endif binutils
295f4e42
NN
4628
4629
4630.PHONY: configure-bison maybe-configure-bison
4631maybe-configure-bison:
60975492
PB
4632@if bison
4633maybe-configure-bison: configure-bison
295f4e42
NN
4634configure-bison:
4635 @test ! -f bison/Makefile || exit 0; \
4636 [ -d bison ] || mkdir bison; \
4637 r=`${PWD_COMMAND}`; export r; \
4638 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4639 $(HOST_EXPORTS) \
295f4e42
NN
4640 echo Configuring in bison; \
4641 cd bison || exit 1; \
4642 case $(srcdir) in \
4643 \.) \
4644 srcdiroption="--srcdir=."; \
4645 libsrcdir=".";; \
4646 /* | [A-Za-z]:[\\/]*) \
4647 srcdiroption="--srcdir=$(srcdir)/bison"; \
4648 libsrcdir="$$s/bison";; \
4649 *) \
4650 srcdiroption="--srcdir=../$(srcdir)/bison"; \
4651 libsrcdir="$$s/bison";; \
4652 esac; \
4653 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 4654 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 4655 || exit 1
60975492 4656@endif bison
1358ccea 4657
295f4e42
NN
4658.PHONY: all-bison maybe-all-bison
4659maybe-all-bison:
60975492
PB
4660@if bison
4661maybe-all-bison: all-bison
295f4e42
NN
4662all-bison: configure-bison
4663 @r=`${PWD_COMMAND}`; export r; \
4664 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4665 $(SET_LIB_PATH) \
4fc4dd12 4666 $(HOST_EXPORTS) \
a52a0a7f 4667 (cd bison && $(MAKE) $(FLAGS_TO_PASS) all)
60975492 4668@endif bison
295f4e42
NN
4669
4670.PHONY: check-bison maybe-check-bison
4671maybe-check-bison:
60975492
PB
4672@if bison
4673maybe-check-bison: check-bison
295f4e42
NN
4674
4675# This module is only tested in a native toolchain.
4676check-bison:
4677 @if [ '$(host)' = '$(target)' ] ; then \
4678 r=`${PWD_COMMAND}`; export r; \
4679 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4680 $(SET_LIB_PATH) \
4fc4dd12 4681 $(HOST_EXPORTS) \
a52a0a7f 4682 (cd bison && $(MAKE) $(FLAGS_TO_PASS) check); \
295f4e42
NN
4683 fi
4684
60975492 4685@endif bison
1358ccea 4686
295f4e42
NN
4687.PHONY: install-bison maybe-install-bison
4688maybe-install-bison:
60975492
PB
4689@if bison
4690maybe-install-bison: install-bison
1358ccea 4691
295f4e42
NN
4692install-bison: installdirs
4693 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 4694 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 4695 $(SET_LIB_PATH) \
4fc4dd12 4696 $(HOST_EXPORTS) \
7c27e184 4697 (cd bison && $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 4698
60975492 4699@endif bison
1358ccea 4700
295f4e42 4701# Other targets (info, dvi, etc.)
1358ccea 4702
295f4e42
NN
4703.PHONY: maybe-info-bison info-bison
4704maybe-info-bison:
60975492
PB
4705@if bison
4706maybe-info-bison: info-bison
295f4e42
NN
4707
4708info-bison: \
4709 configure-bison
4710 @[ -f ./bison/Makefile ] || exit 0; \
8c90b13a
L
4711 r=`${PWD_COMMAND}`; export r; \
4712 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 4713 $(SET_LIB_PATH) \
4fc4dd12 4714 $(HOST_EXPORTS) \
d32ab992 4715 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4716 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4717 done; \
295f4e42
NN
4718 echo "Doing info in bison" ; \
4719 (cd bison && \
1358ccea
NN
4720 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4721 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4722 "RANLIB=$${RANLIB}" \
4723 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4724 info) \
1358ccea
NN
4725 || exit 1
4726
60975492 4727@endif bison
1358ccea 4728
295f4e42
NN
4729.PHONY: maybe-dvi-bison dvi-bison
4730maybe-dvi-bison:
60975492
PB
4731@if bison
4732maybe-dvi-bison: dvi-bison
1358ccea 4733
295f4e42
NN
4734dvi-bison: \
4735 configure-bison
4736 @[ -f ./bison/Makefile ] || exit 0; \
8c90b13a
L
4737 r=`${PWD_COMMAND}`; export r; \
4738 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 4739 $(SET_LIB_PATH) \
4fc4dd12 4740 $(HOST_EXPORTS) \
d32ab992 4741 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4742 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4743 done; \
295f4e42
NN
4744 echo "Doing dvi in bison" ; \
4745 (cd bison && \
1358ccea
NN
4746 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4747 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4748 "RANLIB=$${RANLIB}" \
4749 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4750 dvi) \
1358ccea
NN
4751 || exit 1
4752
60975492 4753@endif bison
1358ccea 4754
295f4e42
NN
4755.PHONY: maybe-TAGS-bison TAGS-bison
4756maybe-TAGS-bison:
60975492
PB
4757@if bison
4758maybe-TAGS-bison: TAGS-bison
1358ccea 4759
295f4e42
NN
4760TAGS-bison: \
4761 configure-bison
4762 @[ -f ./bison/Makefile ] || exit 0; \
8c90b13a
L
4763 r=`${PWD_COMMAND}`; export r; \
4764 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 4765 $(SET_LIB_PATH) \
4fc4dd12 4766 $(HOST_EXPORTS) \
d32ab992 4767 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4768 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4769 done; \
295f4e42
NN
4770 echo "Doing TAGS in bison" ; \
4771 (cd bison && \
1358ccea
NN
4772 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4773 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4774 "RANLIB=$${RANLIB}" \
4775 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4776 TAGS) \
1358ccea
NN
4777 || exit 1
4778
60975492 4779@endif bison
1358ccea 4780
295f4e42
NN
4781.PHONY: maybe-install-info-bison install-info-bison
4782maybe-install-info-bison:
60975492
PB
4783@if bison
4784maybe-install-info-bison: install-info-bison
1358ccea 4785
295f4e42
NN
4786install-info-bison: \
4787 configure-bison \
4788 info-bison
4789 @[ -f ./bison/Makefile ] || exit 0; \
8c90b13a
L
4790 r=`${PWD_COMMAND}`; export r; \
4791 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 4792 $(SET_LIB_PATH) \
4fc4dd12 4793 $(HOST_EXPORTS) \
d32ab992 4794 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4795 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4796 done; \
295f4e42
NN
4797 echo "Doing install-info in bison" ; \
4798 (cd bison && \
1358ccea
NN
4799 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4800 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4801 "RANLIB=$${RANLIB}" \
4802 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4803 install-info) \
1358ccea
NN
4804 || exit 1
4805
60975492 4806@endif bison
1358ccea 4807
295f4e42
NN
4808.PHONY: maybe-installcheck-bison installcheck-bison
4809maybe-installcheck-bison:
60975492
PB
4810@if bison
4811maybe-installcheck-bison: installcheck-bison
1358ccea 4812
295f4e42
NN
4813installcheck-bison: \
4814 configure-bison
4815 @[ -f ./bison/Makefile ] || exit 0; \
8c90b13a
L
4816 r=`${PWD_COMMAND}`; export r; \
4817 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 4818 $(SET_LIB_PATH) \
4fc4dd12 4819 $(HOST_EXPORTS) \
d32ab992 4820 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4821 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4822 done; \
295f4e42
NN
4823 echo "Doing installcheck in bison" ; \
4824 (cd bison && \
1358ccea
NN
4825 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4826 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4827 "RANLIB=$${RANLIB}" \
4828 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4829 installcheck) \
1358ccea
NN
4830 || exit 1
4831
60975492 4832@endif bison
1358ccea
NN
4833
4834.PHONY: maybe-mostlyclean-bison mostlyclean-bison
4835maybe-mostlyclean-bison:
60975492
PB
4836@if bison
4837maybe-mostlyclean-bison: mostlyclean-bison
1358ccea
NN
4838
4839mostlyclean-bison:
4840 @[ -f ./bison/Makefile ] || exit 0; \
8c90b13a
L
4841 r=`${PWD_COMMAND}`; export r; \
4842 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 4843 $(SET_LIB_PATH) \
4fc4dd12 4844 $(HOST_EXPORTS) \
d32ab992 4845 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4846 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4847 done; \
4848 echo "Doing mostlyclean in bison" ; \
4849 (cd bison && \
4850 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4851 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4852 "RANLIB=$${RANLIB}" \
4853 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4854 mostlyclean) \
1358ccea
NN
4855 || exit 1
4856
60975492 4857@endif bison
1358ccea 4858
295f4e42
NN
4859.PHONY: maybe-clean-bison clean-bison
4860maybe-clean-bison:
60975492
PB
4861@if bison
4862maybe-clean-bison: clean-bison
1358ccea 4863
295f4e42
NN
4864clean-bison:
4865 @[ -f ./bison/Makefile ] || exit 0; \
8c90b13a
L
4866 r=`${PWD_COMMAND}`; export r; \
4867 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 4868 $(SET_LIB_PATH) \
4fc4dd12 4869 $(HOST_EXPORTS) \
d32ab992 4870 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4871 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4872 done; \
295f4e42
NN
4873 echo "Doing clean in bison" ; \
4874 (cd bison && \
1358ccea
NN
4875 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4876 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4877 "RANLIB=$${RANLIB}" \
4878 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4879 clean) \
1358ccea
NN
4880 || exit 1
4881
60975492 4882@endif bison
1358ccea 4883
295f4e42
NN
4884.PHONY: maybe-distclean-bison distclean-bison
4885maybe-distclean-bison:
60975492
PB
4886@if bison
4887maybe-distclean-bison: distclean-bison
1358ccea 4888
295f4e42
NN
4889distclean-bison:
4890 @[ -f ./bison/Makefile ] || exit 0; \
8c90b13a
L
4891 r=`${PWD_COMMAND}`; export r; \
4892 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 4893 $(SET_LIB_PATH) \
4fc4dd12 4894 $(HOST_EXPORTS) \
d32ab992 4895 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4896 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4897 done; \
295f4e42
NN
4898 echo "Doing distclean in bison" ; \
4899 (cd bison && \
1358ccea
NN
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}" \
d32ab992 4904 distclean) \
1358ccea
NN
4905 || exit 1
4906
60975492 4907@endif bison
1358ccea 4908
295f4e42
NN
4909.PHONY: maybe-maintainer-clean-bison maintainer-clean-bison
4910maybe-maintainer-clean-bison:
60975492
PB
4911@if bison
4912maybe-maintainer-clean-bison: maintainer-clean-bison
1358ccea 4913
295f4e42
NN
4914maintainer-clean-bison:
4915 @[ -f ./bison/Makefile ] || exit 0; \
8c90b13a
L
4916 r=`${PWD_COMMAND}`; export r; \
4917 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 4918 $(SET_LIB_PATH) \
4fc4dd12 4919 $(HOST_EXPORTS) \
d32ab992 4920 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4921 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4922 done; \
295f4e42
NN
4923 echo "Doing maintainer-clean in bison" ; \
4924 (cd bison && \
1358ccea
NN
4925 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4926 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4927 "RANLIB=$${RANLIB}" \
4928 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4929 maintainer-clean) \
1358ccea
NN
4930 || exit 1
4931
60975492 4932@endif bison
1358ccea 4933
1358ccea 4934
295f4e42
NN
4935.PHONY: configure-byacc maybe-configure-byacc
4936maybe-configure-byacc:
60975492
PB
4937@if byacc
4938maybe-configure-byacc: configure-byacc
295f4e42
NN
4939configure-byacc:
4940 @test ! -f byacc/Makefile || exit 0; \
4941 [ -d byacc ] || mkdir byacc; \
8c90b13a
L
4942 r=`${PWD_COMMAND}`; export r; \
4943 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4944 $(HOST_EXPORTS) \
295f4e42
NN
4945 echo Configuring in byacc; \
4946 cd byacc || exit 1; \
4947 case $(srcdir) in \
4948 \.) \
4949 srcdiroption="--srcdir=."; \
4950 libsrcdir=".";; \
4951 /* | [A-Za-z]:[\\/]*) \
4952 srcdiroption="--srcdir=$(srcdir)/byacc"; \
4953 libsrcdir="$$s/byacc";; \
4954 *) \
4955 srcdiroption="--srcdir=../$(srcdir)/byacc"; \
4956 libsrcdir="$$s/byacc";; \
4957 esac; \
4958 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 4959 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 4960 || exit 1
60975492 4961@endif byacc
1358ccea 4962
295f4e42
NN
4963.PHONY: all-byacc maybe-all-byacc
4964maybe-all-byacc:
60975492
PB
4965@if byacc
4966maybe-all-byacc: all-byacc
295f4e42
NN
4967all-byacc: configure-byacc
4968 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 4969 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 4970 $(SET_LIB_PATH) \
4fc4dd12 4971 $(HOST_EXPORTS) \
a52a0a7f 4972 (cd byacc && $(MAKE) $(FLAGS_TO_PASS) all)
60975492 4973@endif byacc
1358ccea 4974
295f4e42
NN
4975.PHONY: check-byacc maybe-check-byacc
4976maybe-check-byacc:
60975492
PB
4977@if byacc
4978maybe-check-byacc: check-byacc
1358ccea 4979
295f4e42
NN
4980# This module is only tested in a native toolchain.
4981check-byacc:
4982 @if [ '$(host)' = '$(target)' ] ; then \
4983 r=`${PWD_COMMAND}`; export r; \
4984 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4985 $(SET_LIB_PATH) \
4fc4dd12 4986 $(HOST_EXPORTS) \
a52a0a7f 4987 (cd byacc && $(MAKE) $(FLAGS_TO_PASS) check); \
295f4e42 4988 fi
1358ccea 4989
60975492 4990@endif byacc
295f4e42
NN
4991
4992.PHONY: install-byacc maybe-install-byacc
4993maybe-install-byacc:
60975492
PB
4994@if byacc
4995maybe-install-byacc: install-byacc
295f4e42
NN
4996
4997install-byacc: installdirs
4998 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 4999 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 5000 $(SET_LIB_PATH) \
4fc4dd12 5001 $(HOST_EXPORTS) \
7c27e184 5002 (cd byacc && $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 5003
60975492 5004@endif byacc
1358ccea 5005
295f4e42 5006# Other targets (info, dvi, etc.)
1358ccea 5007
295f4e42
NN
5008.PHONY: maybe-info-byacc info-byacc
5009maybe-info-byacc:
60975492
PB
5010@if byacc
5011maybe-info-byacc: info-byacc
295f4e42
NN
5012
5013info-byacc: \
5014 configure-byacc
5015 @[ -f ./byacc/Makefile ] || exit 0; \
8c90b13a
L
5016 r=`${PWD_COMMAND}`; export r; \
5017 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 5018 $(SET_LIB_PATH) \
4fc4dd12 5019 $(HOST_EXPORTS) \
d32ab992 5020 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5021 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5022 done; \
295f4e42
NN
5023 echo "Doing info in byacc" ; \
5024 (cd byacc && \
1358ccea
NN
5025 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5026 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5027 "RANLIB=$${RANLIB}" \
5028 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5029 info) \
1358ccea
NN
5030 || exit 1
5031
60975492 5032@endif byacc
1358ccea 5033
295f4e42
NN
5034.PHONY: maybe-dvi-byacc dvi-byacc
5035maybe-dvi-byacc:
60975492
PB
5036@if byacc
5037maybe-dvi-byacc: dvi-byacc
1358ccea 5038
295f4e42
NN
5039dvi-byacc: \
5040 configure-byacc
5041 @[ -f ./byacc/Makefile ] || exit 0; \
8c90b13a
L
5042 r=`${PWD_COMMAND}`; export r; \
5043 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 5044 $(SET_LIB_PATH) \
4fc4dd12 5045 $(HOST_EXPORTS) \
d32ab992 5046 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5047 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5048 done; \
295f4e42
NN
5049 echo "Doing dvi in byacc" ; \
5050 (cd byacc && \
1358ccea
NN
5051 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5052 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5053 "RANLIB=$${RANLIB}" \
5054 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5055 dvi) \
1358ccea
NN
5056 || exit 1
5057
60975492 5058@endif byacc
1358ccea 5059
295f4e42
NN
5060.PHONY: maybe-TAGS-byacc TAGS-byacc
5061maybe-TAGS-byacc:
60975492
PB
5062@if byacc
5063maybe-TAGS-byacc: TAGS-byacc
1358ccea 5064
295f4e42
NN
5065TAGS-byacc: \
5066 configure-byacc
5067 @[ -f ./byacc/Makefile ] || exit 0; \
8c90b13a
L
5068 r=`${PWD_COMMAND}`; export r; \
5069 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 5070 $(SET_LIB_PATH) \
4fc4dd12 5071 $(HOST_EXPORTS) \
d32ab992 5072 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5073 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5074 done; \
295f4e42
NN
5075 echo "Doing TAGS in byacc" ; \
5076 (cd byacc && \
1358ccea
NN
5077 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5078 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5079 "RANLIB=$${RANLIB}" \
5080 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5081 TAGS) \
1358ccea
NN
5082 || exit 1
5083
60975492 5084@endif byacc
1358ccea 5085
295f4e42
NN
5086.PHONY: maybe-install-info-byacc install-info-byacc
5087maybe-install-info-byacc:
60975492
PB
5088@if byacc
5089maybe-install-info-byacc: install-info-byacc
1358ccea 5090
295f4e42
NN
5091install-info-byacc: \
5092 configure-byacc \
5093 info-byacc
5094 @[ -f ./byacc/Makefile ] || exit 0; \
8c90b13a
L
5095 r=`${PWD_COMMAND}`; export r; \
5096 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 5097 $(SET_LIB_PATH) \
4fc4dd12 5098 $(HOST_EXPORTS) \
d32ab992 5099 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5100 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5101 done; \
295f4e42
NN
5102 echo "Doing install-info in byacc" ; \
5103 (cd byacc && \
1358ccea
NN
5104 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5105 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5106 "RANLIB=$${RANLIB}" \
5107 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5108 install-info) \
1358ccea
NN
5109 || exit 1
5110
60975492 5111@endif byacc
1358ccea 5112
295f4e42
NN
5113.PHONY: maybe-installcheck-byacc installcheck-byacc
5114maybe-installcheck-byacc:
60975492
PB
5115@if byacc
5116maybe-installcheck-byacc: installcheck-byacc
1358ccea 5117
295f4e42
NN
5118installcheck-byacc: \
5119 configure-byacc
5120 @[ -f ./byacc/Makefile ] || exit 0; \
8c90b13a
L
5121 r=`${PWD_COMMAND}`; export r; \
5122 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 5123 $(SET_LIB_PATH) \
4fc4dd12 5124 $(HOST_EXPORTS) \
d32ab992 5125 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5126 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5127 done; \
295f4e42
NN
5128 echo "Doing installcheck in byacc" ; \
5129 (cd byacc && \
1358ccea
NN
5130 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5131 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5132 "RANLIB=$${RANLIB}" \
5133 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5134 installcheck) \
1358ccea
NN
5135 || exit 1
5136
60975492 5137@endif byacc
1358ccea 5138
295f4e42
NN
5139.PHONY: maybe-mostlyclean-byacc mostlyclean-byacc
5140maybe-mostlyclean-byacc:
60975492
PB
5141@if byacc
5142maybe-mostlyclean-byacc: mostlyclean-byacc
1358ccea 5143
295f4e42
NN
5144mostlyclean-byacc:
5145 @[ -f ./byacc/Makefile ] || exit 0; \
8c90b13a
L
5146 r=`${PWD_COMMAND}`; export r; \
5147 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 5148 $(SET_LIB_PATH) \
4fc4dd12 5149 $(HOST_EXPORTS) \
d32ab992 5150 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5151 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5152 done; \
295f4e42
NN
5153 echo "Doing mostlyclean in byacc" ; \
5154 (cd byacc && \
1358ccea
NN
5155 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5156 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5157 "RANLIB=$${RANLIB}" \
5158 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5159 mostlyclean) \
1358ccea
NN
5160 || exit 1
5161
60975492 5162@endif byacc
1358ccea 5163
295f4e42
NN
5164.PHONY: maybe-clean-byacc clean-byacc
5165maybe-clean-byacc:
60975492
PB
5166@if byacc
5167maybe-clean-byacc: clean-byacc
1358ccea 5168
295f4e42
NN
5169clean-byacc:
5170 @[ -f ./byacc/Makefile ] || exit 0; \
8c90b13a
L
5171 r=`${PWD_COMMAND}`; export r; \
5172 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 5173 $(SET_LIB_PATH) \
4fc4dd12 5174 $(HOST_EXPORTS) \
d32ab992 5175 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5176 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5177 done; \
295f4e42
NN
5178 echo "Doing clean in byacc" ; \
5179 (cd byacc && \
1358ccea
NN
5180 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5181 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5182 "RANLIB=$${RANLIB}" \
5183 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5184 clean) \
1358ccea
NN
5185 || exit 1
5186
60975492 5187@endif byacc
1358ccea 5188
295f4e42
NN
5189.PHONY: maybe-distclean-byacc distclean-byacc
5190maybe-distclean-byacc:
60975492
PB
5191@if byacc
5192maybe-distclean-byacc: distclean-byacc
1358ccea 5193
295f4e42
NN
5194distclean-byacc:
5195 @[ -f ./byacc/Makefile ] || exit 0; \
8c90b13a
L
5196 r=`${PWD_COMMAND}`; export r; \
5197 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 5198 $(SET_LIB_PATH) \
4fc4dd12 5199 $(HOST_EXPORTS) \
d32ab992 5200 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5201 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5202 done; \
295f4e42
NN
5203 echo "Doing distclean in byacc" ; \
5204 (cd byacc && \
1358ccea
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}" \
d32ab992 5209 distclean) \
1358ccea
NN
5210 || exit 1
5211
60975492 5212@endif byacc
1358ccea 5213
295f4e42
NN
5214.PHONY: maybe-maintainer-clean-byacc maintainer-clean-byacc
5215maybe-maintainer-clean-byacc:
60975492
PB
5216@if byacc
5217maybe-maintainer-clean-byacc: maintainer-clean-byacc
1358ccea 5218
295f4e42
NN
5219maintainer-clean-byacc:
5220 @[ -f ./byacc/Makefile ] || exit 0; \
8c90b13a
L
5221 r=`${PWD_COMMAND}`; export r; \
5222 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 5223 $(SET_LIB_PATH) \
4fc4dd12 5224 $(HOST_EXPORTS) \
d32ab992 5225 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5226 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5227 done; \
295f4e42
NN
5228 echo "Doing maintainer-clean in byacc" ; \
5229 (cd byacc && \
1358ccea
NN
5230 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5231 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5232 "RANLIB=$${RANLIB}" \
5233 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5234 maintainer-clean) \
1358ccea
NN
5235 || exit 1
5236
60975492 5237@endif byacc
1358ccea 5238
1358ccea 5239
295f4e42
NN
5240.PHONY: configure-bzip2 maybe-configure-bzip2
5241maybe-configure-bzip2:
60975492
PB
5242@if bzip2
5243maybe-configure-bzip2: configure-bzip2
295f4e42
NN
5244configure-bzip2:
5245 @test ! -f bzip2/Makefile || exit 0; \
5246 [ -d bzip2 ] || mkdir bzip2; \
5247 r=`${PWD_COMMAND}`; export r; \
5248 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5249 $(HOST_EXPORTS) \
295f4e42
NN
5250 echo Configuring in bzip2; \
5251 cd bzip2 || exit 1; \
5252 case $(srcdir) in \
5253 \.) \
5254 srcdiroption="--srcdir=."; \
5255 libsrcdir=".";; \
5256 /* | [A-Za-z]:[\\/]*) \
5257 srcdiroption="--srcdir=$(srcdir)/bzip2"; \
5258 libsrcdir="$$s/bzip2";; \
5259 *) \
5260 srcdiroption="--srcdir=../$(srcdir)/bzip2"; \
5261 libsrcdir="$$s/bzip2";; \
5262 esac; \
5263 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 5264 $(HOST_CONFIGARGS) $${srcdiroption} \
295f4e42 5265 || exit 1
60975492 5266@endif bzip2
295f4e42
NN
5267
5268.PHONY: all-bzip2 maybe-all-bzip2
5269maybe-all-bzip2:
60975492
PB
5270@if bzip2
5271maybe-all-bzip2: all-bzip2
295f4e42
NN
5272all-bzip2: configure-bzip2
5273 @r=`${PWD_COMMAND}`; export r; \
5274 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5275 $(SET_LIB_PATH) \
4fc4dd12 5276 $(HOST_EXPORTS) \
a52a0a7f 5277 (cd bzip2 && $(MAKE) $(FLAGS_TO_PASS) all)
60975492 5278@endif bzip2
295f4e42
NN
5279
5280.PHONY: check-bzip2 maybe-check-bzip2
5281maybe-check-bzip2:
60975492
PB
5282@if bzip2
5283maybe-check-bzip2: check-bzip2
295f4e42
NN
5284
5285check-bzip2:
5286 @r=`${PWD_COMMAND}`; export r; \
5287 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5288 $(SET_LIB_PATH) \
4fc4dd12 5289 $(HOST_EXPORTS) \
7c27e184 5290 (cd bzip2 && $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 5291
60975492 5292@endif bzip2
295f4e42
NN
5293
5294.PHONY: install-bzip2 maybe-install-bzip2
5295maybe-install-bzip2:
60975492
PB
5296@if bzip2
5297maybe-install-bzip2: install-bzip2
295f4e42
NN
5298
5299install-bzip2: installdirs
5300 @r=`${PWD_COMMAND}`; export r; \
5301 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5302 $(SET_LIB_PATH) \
4fc4dd12 5303 $(HOST_EXPORTS) \
7c27e184 5304 (cd bzip2 && $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 5305
60975492 5306@endif bzip2
295f4e42
NN
5307
5308# Other targets (info, dvi, etc.)
5309
5310.PHONY: maybe-info-bzip2 info-bzip2
5311maybe-info-bzip2:
60975492
PB
5312@if bzip2
5313maybe-info-bzip2: info-bzip2
295f4e42
NN
5314
5315info-bzip2: \
5316 configure-bzip2
5317 @[ -f ./bzip2/Makefile ] || exit 0; \
8c90b13a
L
5318 r=`${PWD_COMMAND}`; export r; \
5319 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 5320 $(SET_LIB_PATH) \
4fc4dd12 5321 $(HOST_EXPORTS) \
d32ab992 5322 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5323 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5324 done; \
295f4e42
NN
5325 echo "Doing info in bzip2" ; \
5326 (cd bzip2 && \
1358ccea
NN
5327 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5328 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5329 "RANLIB=$${RANLIB}" \
5330 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5331 info) \
1358ccea
NN
5332 || exit 1
5333
60975492 5334@endif bzip2
1358ccea 5335
295f4e42
NN
5336.PHONY: maybe-dvi-bzip2 dvi-bzip2
5337maybe-dvi-bzip2:
60975492
PB
5338@if bzip2
5339maybe-dvi-bzip2: dvi-bzip2
1358ccea 5340
295f4e42
NN
5341dvi-bzip2: \
5342 configure-bzip2
5343 @[ -f ./bzip2/Makefile ] || exit 0; \
8c90b13a
L
5344 r=`${PWD_COMMAND}`; export r; \
5345 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 5346 $(SET_LIB_PATH) \
4fc4dd12 5347 $(HOST_EXPORTS) \
d32ab992 5348 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5349 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5350 done; \
295f4e42
NN
5351 echo "Doing dvi in bzip2" ; \
5352 (cd bzip2 && \
1358ccea
NN
5353 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5354 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5355 "RANLIB=$${RANLIB}" \
5356 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5357 dvi) \
1358ccea
NN
5358 || exit 1
5359
60975492 5360@endif bzip2
1358ccea 5361
295f4e42
NN
5362.PHONY: maybe-TAGS-bzip2 TAGS-bzip2
5363maybe-TAGS-bzip2:
60975492
PB
5364@if bzip2
5365maybe-TAGS-bzip2: TAGS-bzip2
1358ccea 5366
295f4e42
NN
5367TAGS-bzip2: \
5368 configure-bzip2
5369 @[ -f ./bzip2/Makefile ] || exit 0; \
8c90b13a
L
5370 r=`${PWD_COMMAND}`; export r; \
5371 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 5372 $(SET_LIB_PATH) \
4fc4dd12 5373 $(HOST_EXPORTS) \
d32ab992 5374 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5375 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5376 done; \
295f4e42
NN
5377 echo "Doing TAGS in bzip2" ; \
5378 (cd bzip2 && \
1358ccea
NN
5379 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5380 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5381 "RANLIB=$${RANLIB}" \
5382 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5383 TAGS) \
1358ccea
NN
5384 || exit 1
5385
60975492 5386@endif bzip2
1358ccea 5387
295f4e42
NN
5388.PHONY: maybe-install-info-bzip2 install-info-bzip2
5389maybe-install-info-bzip2:
60975492
PB
5390@if bzip2
5391maybe-install-info-bzip2: install-info-bzip2
1358ccea 5392
295f4e42
NN
5393install-info-bzip2: \
5394 configure-bzip2 \
5395 info-bzip2
5396 @[ -f ./bzip2/Makefile ] || exit 0; \
8c90b13a
L
5397 r=`${PWD_COMMAND}`; export r; \
5398 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 5399 $(SET_LIB_PATH) \
4fc4dd12 5400 $(HOST_EXPORTS) \
d32ab992 5401 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5402 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5403 done; \
295f4e42
NN
5404 echo "Doing install-info in bzip2" ; \
5405 (cd bzip2 && \
1358ccea
NN
5406 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5407 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5408 "RANLIB=$${RANLIB}" \
5409 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5410 install-info) \
1358ccea
NN
5411 || exit 1
5412
60975492 5413@endif bzip2
1358ccea 5414
295f4e42
NN
5415.PHONY: maybe-installcheck-bzip2 installcheck-bzip2
5416maybe-installcheck-bzip2:
60975492
PB
5417@if bzip2
5418maybe-installcheck-bzip2: installcheck-bzip2
295f4e42
NN
5419
5420installcheck-bzip2: \
5421 configure-bzip2
5422 @[ -f ./bzip2/Makefile ] || exit 0; \
8c90b13a
L
5423 r=`${PWD_COMMAND}`; export r; \
5424 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 5425 $(SET_LIB_PATH) \
4fc4dd12 5426 $(HOST_EXPORTS) \
d32ab992 5427 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5428 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5429 done; \
295f4e42
NN
5430 echo "Doing installcheck in bzip2" ; \
5431 (cd bzip2 && \
1358ccea
NN
5432 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5433 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5434 "RANLIB=$${RANLIB}" \
5435 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5436 installcheck) \
1358ccea
NN
5437 || exit 1
5438
60975492 5439@endif bzip2
1358ccea 5440
295f4e42
NN
5441.PHONY: maybe-mostlyclean-bzip2 mostlyclean-bzip2
5442maybe-mostlyclean-bzip2:
60975492
PB
5443@if bzip2
5444maybe-mostlyclean-bzip2: mostlyclean-bzip2
1358ccea 5445
295f4e42
NN
5446mostlyclean-bzip2:
5447 @[ -f ./bzip2/Makefile ] || exit 0; \
8c90b13a
L
5448 r=`${PWD_COMMAND}`; export r; \
5449 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 5450 $(SET_LIB_PATH) \
4fc4dd12 5451 $(HOST_EXPORTS) \
d32ab992 5452 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5453 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5454 done; \
295f4e42
NN
5455 echo "Doing mostlyclean in bzip2" ; \
5456 (cd bzip2 && \
1358ccea
NN
5457 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5458 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5459 "RANLIB=$${RANLIB}" \
5460 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5461 mostlyclean) \
1358ccea
NN
5462 || exit 1
5463
60975492 5464@endif bzip2
1358ccea 5465
295f4e42
NN
5466.PHONY: maybe-clean-bzip2 clean-bzip2
5467maybe-clean-bzip2:
60975492
PB
5468@if bzip2
5469maybe-clean-bzip2: clean-bzip2
1358ccea 5470
295f4e42
NN
5471clean-bzip2:
5472 @[ -f ./bzip2/Makefile ] || exit 0; \
8c90b13a
L
5473 r=`${PWD_COMMAND}`; export r; \
5474 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 5475 $(SET_LIB_PATH) \
4fc4dd12 5476 $(HOST_EXPORTS) \
d32ab992 5477 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5478 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5479 done; \
295f4e42
NN
5480 echo "Doing clean in bzip2" ; \
5481 (cd bzip2 && \
1358ccea
NN
5482 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5483 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5484 "RANLIB=$${RANLIB}" \
5485 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5486 clean) \
1358ccea
NN
5487 || exit 1
5488
60975492 5489@endif bzip2
1358ccea 5490
295f4e42
NN
5491.PHONY: maybe-distclean-bzip2 distclean-bzip2
5492maybe-distclean-bzip2:
60975492
PB
5493@if bzip2
5494maybe-distclean-bzip2: distclean-bzip2
1358ccea 5495
295f4e42
NN
5496distclean-bzip2:
5497 @[ -f ./bzip2/Makefile ] || exit 0; \
8c90b13a
L
5498 r=`${PWD_COMMAND}`; export r; \
5499 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 5500 $(SET_LIB_PATH) \
4fc4dd12 5501 $(HOST_EXPORTS) \
d32ab992 5502 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5503 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5504 done; \
295f4e42
NN
5505 echo "Doing distclean in bzip2" ; \
5506 (cd bzip2 && \
1358ccea
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}" \
d32ab992 5511 distclean) \
1358ccea
NN
5512 || exit 1
5513
60975492 5514@endif bzip2
1358ccea 5515
295f4e42
NN
5516.PHONY: maybe-maintainer-clean-bzip2 maintainer-clean-bzip2
5517maybe-maintainer-clean-bzip2:
60975492
PB
5518@if bzip2
5519maybe-maintainer-clean-bzip2: maintainer-clean-bzip2
1358ccea 5520
295f4e42
NN
5521maintainer-clean-bzip2:
5522 @[ -f ./bzip2/Makefile ] || exit 0; \
8c90b13a
L
5523 r=`${PWD_COMMAND}`; export r; \
5524 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 5525 $(SET_LIB_PATH) \
4fc4dd12 5526 $(HOST_EXPORTS) \
d32ab992 5527 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5528 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5529 done; \
295f4e42
NN
5530 echo "Doing maintainer-clean in bzip2" ; \
5531 (cd bzip2 && \
1358ccea
NN
5532 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5533 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5534 "RANLIB=$${RANLIB}" \
5535 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5536 maintainer-clean) \
1358ccea
NN
5537 || exit 1
5538
60975492 5539@endif bzip2
1358ccea 5540
1358ccea 5541
295f4e42
NN
5542.PHONY: configure-dejagnu maybe-configure-dejagnu
5543maybe-configure-dejagnu:
60975492
PB
5544@if dejagnu
5545maybe-configure-dejagnu: configure-dejagnu
295f4e42
NN
5546configure-dejagnu:
5547 @test ! -f dejagnu/Makefile || exit 0; \
5548 [ -d dejagnu ] || mkdir dejagnu; \
5549 r=`${PWD_COMMAND}`; export r; \
5550 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5551 $(HOST_EXPORTS) \
295f4e42
NN
5552 echo Configuring in dejagnu; \
5553 cd dejagnu || exit 1; \
5554 case $(srcdir) in \
5555 \.) \
5556 srcdiroption="--srcdir=."; \
5557 libsrcdir=".";; \
5558 /* | [A-Za-z]:[\\/]*) \
5559 srcdiroption="--srcdir=$(srcdir)/dejagnu"; \
5560 libsrcdir="$$s/dejagnu";; \
5561 *) \
5562 srcdiroption="--srcdir=../$(srcdir)/dejagnu"; \
5563 libsrcdir="$$s/dejagnu";; \
5564 esac; \
5565 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 5566 $(HOST_CONFIGARGS) $${srcdiroption} \
295f4e42 5567 || exit 1
60975492 5568@endif dejagnu
295f4e42
NN
5569
5570.PHONY: all-dejagnu maybe-all-dejagnu
5571maybe-all-dejagnu:
60975492
PB
5572@if dejagnu
5573maybe-all-dejagnu: all-dejagnu
295f4e42
NN
5574all-dejagnu: configure-dejagnu
5575 @r=`${PWD_COMMAND}`; export r; \
5576 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5577 $(SET_LIB_PATH) \
4fc4dd12 5578 $(HOST_EXPORTS) \
a52a0a7f 5579 (cd dejagnu && $(MAKE) $(FLAGS_TO_PASS) all)
60975492 5580@endif dejagnu
295f4e42
NN
5581
5582.PHONY: check-dejagnu maybe-check-dejagnu
5583maybe-check-dejagnu:
60975492
PB
5584@if dejagnu
5585maybe-check-dejagnu: check-dejagnu
295f4e42
NN
5586
5587check-dejagnu:
5588 @r=`${PWD_COMMAND}`; export r; \
5589 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5590 $(SET_LIB_PATH) \
4fc4dd12 5591 $(HOST_EXPORTS) \
7c27e184 5592 (cd dejagnu && $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 5593
60975492 5594@endif dejagnu
295f4e42
NN
5595
5596.PHONY: install-dejagnu maybe-install-dejagnu
5597maybe-install-dejagnu:
60975492
PB
5598@if dejagnu
5599maybe-install-dejagnu: install-dejagnu
295f4e42
NN
5600
5601install-dejagnu: installdirs
5602 @r=`${PWD_COMMAND}`; export r; \
5603 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5604 $(SET_LIB_PATH) \
4fc4dd12 5605 $(HOST_EXPORTS) \
7c27e184 5606 (cd dejagnu && $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 5607
60975492 5608@endif dejagnu
295f4e42
NN
5609
5610# Other targets (info, dvi, etc.)
5611
5612.PHONY: maybe-info-dejagnu info-dejagnu
5613maybe-info-dejagnu:
60975492
PB
5614@if dejagnu
5615maybe-info-dejagnu: info-dejagnu
295f4e42
NN
5616
5617info-dejagnu: \
5618 configure-dejagnu
5619 @[ -f ./dejagnu/Makefile ] || exit 0; \
8c90b13a
L
5620 r=`${PWD_COMMAND}`; export r; \
5621 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 5622 $(SET_LIB_PATH) \
4fc4dd12 5623 $(HOST_EXPORTS) \
d32ab992 5624 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5625 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5626 done; \
295f4e42
NN
5627 echo "Doing info in dejagnu" ; \
5628 (cd dejagnu && \
1358ccea
NN
5629 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5630 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5631 "RANLIB=$${RANLIB}" \
5632 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5633 info) \
1358ccea
NN
5634 || exit 1
5635
60975492 5636@endif dejagnu
1358ccea 5637
295f4e42
NN
5638.PHONY: maybe-dvi-dejagnu dvi-dejagnu
5639maybe-dvi-dejagnu:
60975492
PB
5640@if dejagnu
5641maybe-dvi-dejagnu: dvi-dejagnu
1358ccea 5642
295f4e42
NN
5643dvi-dejagnu: \
5644 configure-dejagnu
5645 @[ -f ./dejagnu/Makefile ] || exit 0; \
8c90b13a
L
5646 r=`${PWD_COMMAND}`; export r; \
5647 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 5648 $(SET_LIB_PATH) \
4fc4dd12 5649 $(HOST_EXPORTS) \
d32ab992 5650 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5651 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5652 done; \
295f4e42
NN
5653 echo "Doing dvi in dejagnu" ; \
5654 (cd dejagnu && \
1358ccea
NN
5655 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5656 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5657 "RANLIB=$${RANLIB}" \
5658 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5659 dvi) \
1358ccea
NN
5660 || exit 1
5661
60975492 5662@endif dejagnu
1358ccea 5663
295f4e42
NN
5664.PHONY: maybe-TAGS-dejagnu TAGS-dejagnu
5665maybe-TAGS-dejagnu:
60975492
PB
5666@if dejagnu
5667maybe-TAGS-dejagnu: TAGS-dejagnu
1358ccea 5668
295f4e42
NN
5669TAGS-dejagnu: \
5670 configure-dejagnu
5671 @[ -f ./dejagnu/Makefile ] || exit 0; \
8c90b13a
L
5672 r=`${PWD_COMMAND}`; export r; \
5673 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 5674 $(SET_LIB_PATH) \
4fc4dd12 5675 $(HOST_EXPORTS) \
d32ab992 5676 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5677 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5678 done; \
295f4e42
NN
5679 echo "Doing TAGS in dejagnu" ; \
5680 (cd dejagnu && \
1358ccea
NN
5681 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5682 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5683 "RANLIB=$${RANLIB}" \
5684 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5685 TAGS) \
1358ccea
NN
5686 || exit 1
5687
60975492 5688@endif dejagnu
1358ccea 5689
295f4e42
NN
5690.PHONY: maybe-install-info-dejagnu install-info-dejagnu
5691maybe-install-info-dejagnu:
60975492
PB
5692@if dejagnu
5693maybe-install-info-dejagnu: install-info-dejagnu
1358ccea 5694
295f4e42
NN
5695install-info-dejagnu: \
5696 configure-dejagnu \
5697 info-dejagnu
5698 @[ -f ./dejagnu/Makefile ] || exit 0; \
8c90b13a
L
5699 r=`${PWD_COMMAND}`; export r; \
5700 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 5701 $(SET_LIB_PATH) \
4fc4dd12 5702 $(HOST_EXPORTS) \
d32ab992 5703 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5704 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5705 done; \
295f4e42
NN
5706 echo "Doing install-info in dejagnu" ; \
5707 (cd dejagnu && \
1358ccea
NN
5708 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5709 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5710 "RANLIB=$${RANLIB}" \
5711 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5712 install-info) \
1358ccea
NN
5713 || exit 1
5714
60975492 5715@endif dejagnu
1358ccea 5716
295f4e42
NN
5717.PHONY: maybe-installcheck-dejagnu installcheck-dejagnu
5718maybe-installcheck-dejagnu:
60975492
PB
5719@if dejagnu
5720maybe-installcheck-dejagnu: installcheck-dejagnu
1358ccea 5721
295f4e42
NN
5722installcheck-dejagnu: \
5723 configure-dejagnu
5724 @[ -f ./dejagnu/Makefile ] || exit 0; \
8c90b13a
L
5725 r=`${PWD_COMMAND}`; export r; \
5726 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 5727 $(SET_LIB_PATH) \
4fc4dd12 5728 $(HOST_EXPORTS) \
d32ab992 5729 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5730 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5731 done; \
295f4e42
NN
5732 echo "Doing installcheck in dejagnu" ; \
5733 (cd dejagnu && \
1358ccea
NN
5734 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5735 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5736 "RANLIB=$${RANLIB}" \
5737 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5738 installcheck) \
1358ccea
NN
5739 || exit 1
5740
60975492 5741@endif dejagnu
1358ccea 5742
295f4e42
NN
5743.PHONY: maybe-mostlyclean-dejagnu mostlyclean-dejagnu
5744maybe-mostlyclean-dejagnu:
60975492
PB
5745@if dejagnu
5746maybe-mostlyclean-dejagnu: mostlyclean-dejagnu
1358ccea 5747
295f4e42
NN
5748mostlyclean-dejagnu:
5749 @[ -f ./dejagnu/Makefile ] || exit 0; \
8c90b13a
L
5750 r=`${PWD_COMMAND}`; export r; \
5751 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 5752 $(SET_LIB_PATH) \
4fc4dd12 5753 $(HOST_EXPORTS) \
d32ab992 5754 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5755 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5756 done; \
295f4e42
NN
5757 echo "Doing mostlyclean in dejagnu" ; \
5758 (cd dejagnu && \
1358ccea
NN
5759 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5760 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5761 "RANLIB=$${RANLIB}" \
5762 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5763 mostlyclean) \
1358ccea
NN
5764 || exit 1
5765
60975492 5766@endif dejagnu
1358ccea 5767
295f4e42
NN
5768.PHONY: maybe-clean-dejagnu clean-dejagnu
5769maybe-clean-dejagnu:
60975492
PB
5770@if dejagnu
5771maybe-clean-dejagnu: clean-dejagnu
1358ccea 5772
295f4e42
NN
5773clean-dejagnu:
5774 @[ -f ./dejagnu/Makefile ] || exit 0; \
8c90b13a
L
5775 r=`${PWD_COMMAND}`; export r; \
5776 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 5777 $(SET_LIB_PATH) \
4fc4dd12 5778 $(HOST_EXPORTS) \
d32ab992 5779 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5780 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5781 done; \
295f4e42
NN
5782 echo "Doing clean in dejagnu" ; \
5783 (cd dejagnu && \
1358ccea
NN
5784 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5785 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5786 "RANLIB=$${RANLIB}" \
5787 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5788 clean) \
1358ccea
NN
5789 || exit 1
5790
60975492 5791@endif dejagnu
1358ccea 5792
295f4e42
NN
5793.PHONY: maybe-distclean-dejagnu distclean-dejagnu
5794maybe-distclean-dejagnu:
60975492
PB
5795@if dejagnu
5796maybe-distclean-dejagnu: distclean-dejagnu
1358ccea 5797
295f4e42
NN
5798distclean-dejagnu:
5799 @[ -f ./dejagnu/Makefile ] || exit 0; \
8c90b13a
L
5800 r=`${PWD_COMMAND}`; export r; \
5801 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 5802 $(SET_LIB_PATH) \
4fc4dd12 5803 $(HOST_EXPORTS) \
d32ab992 5804 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5805 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5806 done; \
295f4e42
NN
5807 echo "Doing distclean in dejagnu" ; \
5808 (cd dejagnu && \
1358ccea
NN
5809 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5810 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5811 "RANLIB=$${RANLIB}" \
5812 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5813 distclean) \
1358ccea
NN
5814 || exit 1
5815
60975492 5816@endif dejagnu
1358ccea 5817
295f4e42
NN
5818.PHONY: maybe-maintainer-clean-dejagnu maintainer-clean-dejagnu
5819maybe-maintainer-clean-dejagnu:
60975492
PB
5820@if dejagnu
5821maybe-maintainer-clean-dejagnu: maintainer-clean-dejagnu
1358ccea 5822
295f4e42
NN
5823maintainer-clean-dejagnu:
5824 @[ -f ./dejagnu/Makefile ] || exit 0; \
8c90b13a
L
5825 r=`${PWD_COMMAND}`; export r; \
5826 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 5827 $(SET_LIB_PATH) \
4fc4dd12 5828 $(HOST_EXPORTS) \
d32ab992 5829 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5830 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5831 done; \
295f4e42
NN
5832 echo "Doing maintainer-clean in dejagnu" ; \
5833 (cd dejagnu && \
1358ccea
NN
5834 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5835 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5836 "RANLIB=$${RANLIB}" \
5837 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5838 maintainer-clean) \
1358ccea
NN
5839 || exit 1
5840
60975492 5841@endif dejagnu
1358ccea 5842
1358ccea 5843
295f4e42
NN
5844.PHONY: configure-diff maybe-configure-diff
5845maybe-configure-diff:
60975492
PB
5846@if diff
5847maybe-configure-diff: configure-diff
295f4e42
NN
5848configure-diff:
5849 @test ! -f diff/Makefile || exit 0; \
5850 [ -d diff ] || mkdir diff; \
5851 r=`${PWD_COMMAND}`; export r; \
5852 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5853 $(HOST_EXPORTS) \
295f4e42
NN
5854 echo Configuring in diff; \
5855 cd diff || exit 1; \
5856 case $(srcdir) in \
5857 \.) \
5858 srcdiroption="--srcdir=."; \
5859 libsrcdir=".";; \
5860 /* | [A-Za-z]:[\\/]*) \
5861 srcdiroption="--srcdir=$(srcdir)/diff"; \
5862 libsrcdir="$$s/diff";; \
5863 *) \
5864 srcdiroption="--srcdir=../$(srcdir)/diff"; \
5865 libsrcdir="$$s/diff";; \
5866 esac; \
5867 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 5868 $(HOST_CONFIGARGS) $${srcdiroption} \
295f4e42 5869 || exit 1
60975492 5870@endif diff
295f4e42
NN
5871
5872.PHONY: all-diff maybe-all-diff
5873maybe-all-diff:
60975492
PB
5874@if diff
5875maybe-all-diff: all-diff
295f4e42
NN
5876all-diff: configure-diff
5877 @r=`${PWD_COMMAND}`; export r; \
5878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5879 $(SET_LIB_PATH) \
4fc4dd12 5880 $(HOST_EXPORTS) \
a52a0a7f 5881 (cd diff && $(MAKE) $(FLAGS_TO_PASS) all)
60975492 5882@endif diff
295f4e42
NN
5883
5884.PHONY: check-diff maybe-check-diff
5885maybe-check-diff:
60975492
PB
5886@if diff
5887maybe-check-diff: check-diff
295f4e42
NN
5888
5889check-diff:
5890 @r=`${PWD_COMMAND}`; export r; \
5891 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5892 $(SET_LIB_PATH) \
4fc4dd12 5893 $(HOST_EXPORTS) \
7c27e184 5894 (cd diff && $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 5895
60975492 5896@endif diff
295f4e42
NN
5897
5898.PHONY: install-diff maybe-install-diff
5899maybe-install-diff:
60975492
PB
5900@if diff
5901maybe-install-diff: install-diff
295f4e42
NN
5902
5903install-diff: installdirs
5904 @r=`${PWD_COMMAND}`; export r; \
5905 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5906 $(SET_LIB_PATH) \
4fc4dd12 5907 $(HOST_EXPORTS) \
7c27e184 5908 (cd diff && $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 5909
60975492 5910@endif diff
295f4e42
NN
5911
5912# Other targets (info, dvi, etc.)
5913
5914.PHONY: maybe-info-diff info-diff
5915maybe-info-diff:
60975492
PB
5916@if diff
5917maybe-info-diff: info-diff
295f4e42
NN
5918
5919info-diff: \
5920 configure-diff
5921 @[ -f ./diff/Makefile ] || exit 0; \
8c90b13a
L
5922 r=`${PWD_COMMAND}`; export r; \
5923 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 5924 $(SET_LIB_PATH) \
4fc4dd12 5925 $(HOST_EXPORTS) \
d32ab992 5926 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5927 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5928 done; \
295f4e42
NN
5929 echo "Doing info in diff" ; \
5930 (cd diff && \
1358ccea
NN
5931 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5932 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5933 "RANLIB=$${RANLIB}" \
5934 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5935 info) \
1358ccea
NN
5936 || exit 1
5937
60975492 5938@endif diff
1358ccea 5939
295f4e42
NN
5940.PHONY: maybe-dvi-diff dvi-diff
5941maybe-dvi-diff:
60975492
PB
5942@if diff
5943maybe-dvi-diff: dvi-diff
1358ccea 5944
295f4e42
NN
5945dvi-diff: \
5946 configure-diff
5947 @[ -f ./diff/Makefile ] || exit 0; \
8c90b13a
L
5948 r=`${PWD_COMMAND}`; export r; \
5949 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 5950 $(SET_LIB_PATH) \
4fc4dd12 5951 $(HOST_EXPORTS) \
d32ab992 5952 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5953 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5954 done; \
295f4e42
NN
5955 echo "Doing dvi in diff" ; \
5956 (cd diff && \
1358ccea
NN
5957 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5958 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5959 "RANLIB=$${RANLIB}" \
5960 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5961 dvi) \
1358ccea
NN
5962 || exit 1
5963
60975492 5964@endif diff
1358ccea 5965
295f4e42
NN
5966.PHONY: maybe-TAGS-diff TAGS-diff
5967maybe-TAGS-diff:
60975492
PB
5968@if diff
5969maybe-TAGS-diff: TAGS-diff
1358ccea 5970
295f4e42
NN
5971TAGS-diff: \
5972 configure-diff
5973 @[ -f ./diff/Makefile ] || exit 0; \
8c90b13a
L
5974 r=`${PWD_COMMAND}`; export r; \
5975 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 5976 $(SET_LIB_PATH) \
4fc4dd12 5977 $(HOST_EXPORTS) \
d32ab992 5978 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5979 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5980 done; \
295f4e42
NN
5981 echo "Doing TAGS in diff" ; \
5982 (cd diff && \
1358ccea
NN
5983 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5984 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5985 "RANLIB=$${RANLIB}" \
5986 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5987 TAGS) \
1358ccea
NN
5988 || exit 1
5989
60975492 5990@endif diff
1358ccea 5991
295f4e42
NN
5992.PHONY: maybe-install-info-diff install-info-diff
5993maybe-install-info-diff:
60975492
PB
5994@if diff
5995maybe-install-info-diff: install-info-diff
1358ccea 5996
295f4e42
NN
5997install-info-diff: \
5998 configure-diff \
5999 info-diff
6000 @[ -f ./diff/Makefile ] || exit 0; \
8c90b13a
L
6001 r=`${PWD_COMMAND}`; export r; \
6002 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 6003 $(SET_LIB_PATH) \
4fc4dd12 6004 $(HOST_EXPORTS) \
d32ab992 6005 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6006 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6007 done; \
295f4e42
NN
6008 echo "Doing install-info in diff" ; \
6009 (cd diff && \
1358ccea
NN
6010 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6011 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6012 "RANLIB=$${RANLIB}" \
6013 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6014 install-info) \
1358ccea
NN
6015 || exit 1
6016
60975492 6017@endif diff
1358ccea 6018
295f4e42
NN
6019.PHONY: maybe-installcheck-diff installcheck-diff
6020maybe-installcheck-diff:
60975492
PB
6021@if diff
6022maybe-installcheck-diff: installcheck-diff
1358ccea 6023
295f4e42
NN
6024installcheck-diff: \
6025 configure-diff
6026 @[ -f ./diff/Makefile ] || exit 0; \
8c90b13a
L
6027 r=`${PWD_COMMAND}`; export r; \
6028 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 6029 $(SET_LIB_PATH) \
4fc4dd12 6030 $(HOST_EXPORTS) \
d32ab992 6031 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6032 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6033 done; \
295f4e42
NN
6034 echo "Doing installcheck in diff" ; \
6035 (cd diff && \
1358ccea
NN
6036 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6037 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6038 "RANLIB=$${RANLIB}" \
6039 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6040 installcheck) \
1358ccea
NN
6041 || exit 1
6042
60975492 6043@endif diff
1358ccea 6044
295f4e42
NN
6045.PHONY: maybe-mostlyclean-diff mostlyclean-diff
6046maybe-mostlyclean-diff:
60975492
PB
6047@if diff
6048maybe-mostlyclean-diff: mostlyclean-diff
1358ccea 6049
295f4e42
NN
6050mostlyclean-diff:
6051 @[ -f ./diff/Makefile ] || exit 0; \
8c90b13a
L
6052 r=`${PWD_COMMAND}`; export r; \
6053 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 6054 $(SET_LIB_PATH) \
4fc4dd12 6055 $(HOST_EXPORTS) \
d32ab992 6056 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6057 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6058 done; \
295f4e42
NN
6059 echo "Doing mostlyclean in diff" ; \
6060 (cd diff && \
1358ccea
NN
6061 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6062 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6063 "RANLIB=$${RANLIB}" \
6064 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6065 mostlyclean) \
1358ccea
NN
6066 || exit 1
6067
60975492 6068@endif diff
1358ccea 6069
295f4e42
NN
6070.PHONY: maybe-clean-diff clean-diff
6071maybe-clean-diff:
60975492
PB
6072@if diff
6073maybe-clean-diff: clean-diff
1358ccea 6074
295f4e42
NN
6075clean-diff:
6076 @[ -f ./diff/Makefile ] || exit 0; \
8c90b13a
L
6077 r=`${PWD_COMMAND}`; export r; \
6078 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 6079 $(SET_LIB_PATH) \
4fc4dd12 6080 $(HOST_EXPORTS) \
d32ab992 6081 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6082 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6083 done; \
295f4e42
NN
6084 echo "Doing clean in diff" ; \
6085 (cd diff && \
1358ccea
NN
6086 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6087 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6088 "RANLIB=$${RANLIB}" \
6089 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6090 clean) \
1358ccea
NN
6091 || exit 1
6092
60975492 6093@endif diff
1358ccea 6094
295f4e42
NN
6095.PHONY: maybe-distclean-diff distclean-diff
6096maybe-distclean-diff:
60975492
PB
6097@if diff
6098maybe-distclean-diff: distclean-diff
1358ccea 6099
295f4e42
NN
6100distclean-diff:
6101 @[ -f ./diff/Makefile ] || exit 0; \
8c90b13a
L
6102 r=`${PWD_COMMAND}`; export r; \
6103 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 6104 $(SET_LIB_PATH) \
4fc4dd12 6105 $(HOST_EXPORTS) \
d32ab992 6106 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6107 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6108 done; \
295f4e42
NN
6109 echo "Doing distclean in diff" ; \
6110 (cd diff && \
1358ccea
NN
6111 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6112 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6113 "RANLIB=$${RANLIB}" \
6114 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6115 distclean) \
1358ccea
NN
6116 || exit 1
6117
60975492 6118@endif diff
1358ccea 6119
295f4e42
NN
6120.PHONY: maybe-maintainer-clean-diff maintainer-clean-diff
6121maybe-maintainer-clean-diff:
60975492
PB
6122@if diff
6123maybe-maintainer-clean-diff: maintainer-clean-diff
1358ccea 6124
295f4e42
NN
6125maintainer-clean-diff:
6126 @[ -f ./diff/Makefile ] || exit 0; \
8c90b13a
L
6127 r=`${PWD_COMMAND}`; export r; \
6128 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 6129 $(SET_LIB_PATH) \
4fc4dd12 6130 $(HOST_EXPORTS) \
d32ab992 6131 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6132 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6133 done; \
295f4e42
NN
6134 echo "Doing maintainer-clean in diff" ; \
6135 (cd diff && \
1358ccea
NN
6136 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6137 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6138 "RANLIB=$${RANLIB}" \
6139 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6140 maintainer-clean) \
295f4e42
NN
6141 || exit 1
6142
60975492 6143@endif diff
295f4e42
NN
6144
6145
6146.PHONY: configure-dosutils maybe-configure-dosutils
6147maybe-configure-dosutils:
60975492
PB
6148@if dosutils
6149maybe-configure-dosutils: configure-dosutils
295f4e42
NN
6150configure-dosutils:
6151 @test ! -f dosutils/Makefile || exit 0; \
6152 [ -d dosutils ] || mkdir dosutils; \
6153 r=`${PWD_COMMAND}`; export r; \
6154 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6155 $(HOST_EXPORTS) \
295f4e42
NN
6156 echo Configuring in dosutils; \
6157 cd dosutils || exit 1; \
6158 case $(srcdir) in \
6159 \.) \
6160 srcdiroption="--srcdir=."; \
6161 libsrcdir=".";; \
6162 /* | [A-Za-z]:[\\/]*) \
6163 srcdiroption="--srcdir=$(srcdir)/dosutils"; \
6164 libsrcdir="$$s/dosutils";; \
6165 *) \
6166 srcdiroption="--srcdir=../$(srcdir)/dosutils"; \
6167 libsrcdir="$$s/dosutils";; \
6168 esac; \
6169 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 6170 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 6171 || exit 1
60975492 6172@endif dosutils
1358ccea 6173
295f4e42
NN
6174.PHONY: all-dosutils maybe-all-dosutils
6175maybe-all-dosutils:
60975492
PB
6176@if dosutils
6177maybe-all-dosutils: all-dosutils
295f4e42
NN
6178all-dosutils: configure-dosutils
6179 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 6180 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 6181 $(SET_LIB_PATH) \
4fc4dd12 6182 $(HOST_EXPORTS) \
a52a0a7f 6183 (cd dosutils && $(MAKE) $(FLAGS_TO_PASS) all)
60975492 6184@endif dosutils
1358ccea 6185
295f4e42
NN
6186.PHONY: check-dosutils maybe-check-dosutils
6187maybe-check-dosutils:
60975492
PB
6188@if dosutils
6189maybe-check-dosutils: check-dosutils
1358ccea 6190
295f4e42 6191check-dosutils:
1358ccea 6192
60975492 6193@endif dosutils
1358ccea 6194
295f4e42
NN
6195.PHONY: install-dosutils maybe-install-dosutils
6196maybe-install-dosutils:
60975492
PB
6197@if dosutils
6198maybe-install-dosutils: install-dosutils
1358ccea 6199
295f4e42
NN
6200install-dosutils: installdirs
6201 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 6202 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 6203 $(SET_LIB_PATH) \
4fc4dd12 6204 $(HOST_EXPORTS) \
7c27e184 6205 (cd dosutils && $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 6206
60975492 6207@endif dosutils
1358ccea 6208
295f4e42 6209# Other targets (info, dvi, etc.)
1358ccea 6210
295f4e42
NN
6211.PHONY: maybe-info-dosutils info-dosutils
6212maybe-info-dosutils:
60975492
PB
6213@if dosutils
6214maybe-info-dosutils: info-dosutils
295f4e42
NN
6215
6216info-dosutils: \
6217 configure-dosutils
6218 @[ -f ./dosutils/Makefile ] || exit 0; \
8c90b13a
L
6219 r=`${PWD_COMMAND}`; export r; \
6220 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 6221 $(SET_LIB_PATH) \
4fc4dd12 6222 $(HOST_EXPORTS) \
d32ab992 6223 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6224 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6225 done; \
295f4e42
NN
6226 echo "Doing info in dosutils" ; \
6227 (cd dosutils && \
1358ccea
NN
6228 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6229 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6230 "RANLIB=$${RANLIB}" \
6231 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6232 info) \
1358ccea
NN
6233 || exit 1
6234
60975492 6235@endif dosutils
1358ccea 6236
295f4e42
NN
6237.PHONY: maybe-dvi-dosutils dvi-dosutils
6238maybe-dvi-dosutils:
60975492
PB
6239@if dosutils
6240maybe-dvi-dosutils: dvi-dosutils
1358ccea 6241
295f4e42
NN
6242dvi-dosutils: \
6243 configure-dosutils
6244 @[ -f ./dosutils/Makefile ] || exit 0; \
8c90b13a
L
6245 r=`${PWD_COMMAND}`; export r; \
6246 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 6247 $(SET_LIB_PATH) \
4fc4dd12 6248 $(HOST_EXPORTS) \
d32ab992 6249 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6250 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6251 done; \
295f4e42
NN
6252 echo "Doing dvi in dosutils" ; \
6253 (cd dosutils && \
1358ccea
NN
6254 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6255 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6256 "RANLIB=$${RANLIB}" \
6257 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6258 dvi) \
1358ccea
NN
6259 || exit 1
6260
60975492 6261@endif dosutils
1358ccea 6262
295f4e42
NN
6263.PHONY: maybe-TAGS-dosutils TAGS-dosutils
6264maybe-TAGS-dosutils:
60975492
PB
6265@if dosutils
6266maybe-TAGS-dosutils: TAGS-dosutils
1358ccea 6267
295f4e42
NN
6268TAGS-dosutils: \
6269 configure-dosutils
6270 @[ -f ./dosutils/Makefile ] || exit 0; \
8c90b13a
L
6271 r=`${PWD_COMMAND}`; export r; \
6272 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 6273 $(SET_LIB_PATH) \
4fc4dd12 6274 $(HOST_EXPORTS) \
d32ab992 6275 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6276 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6277 done; \
295f4e42
NN
6278 echo "Doing TAGS in dosutils" ; \
6279 (cd dosutils && \
1358ccea
NN
6280 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6281 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6282 "RANLIB=$${RANLIB}" \
6283 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6284 TAGS) \
1358ccea
NN
6285 || exit 1
6286
60975492 6287@endif dosutils
1358ccea 6288
295f4e42
NN
6289.PHONY: maybe-install-info-dosutils install-info-dosutils
6290maybe-install-info-dosutils:
60975492
PB
6291@if dosutils
6292maybe-install-info-dosutils: install-info-dosutils
1358ccea 6293
295f4e42
NN
6294install-info-dosutils: \
6295 configure-dosutils \
6296 info-dosutils
6297 @[ -f ./dosutils/Makefile ] || exit 0; \
8c90b13a
L
6298 r=`${PWD_COMMAND}`; export r; \
6299 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 6300 $(SET_LIB_PATH) \
4fc4dd12 6301 $(HOST_EXPORTS) \
d32ab992 6302 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6303 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6304 done; \
295f4e42
NN
6305 echo "Doing install-info in dosutils" ; \
6306 (cd dosutils && \
1358ccea
NN
6307 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6308 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6309 "RANLIB=$${RANLIB}" \
6310 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6311 install-info) \
1358ccea
NN
6312 || exit 1
6313
60975492 6314@endif dosutils
1358ccea 6315
295f4e42
NN
6316.PHONY: maybe-installcheck-dosutils installcheck-dosutils
6317maybe-installcheck-dosutils:
60975492
PB
6318@if dosutils
6319maybe-installcheck-dosutils: installcheck-dosutils
1358ccea 6320
295f4e42
NN
6321installcheck-dosutils: \
6322 configure-dosutils
6323 @[ -f ./dosutils/Makefile ] || exit 0; \
8c90b13a
L
6324 r=`${PWD_COMMAND}`; export r; \
6325 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 6326 $(SET_LIB_PATH) \
4fc4dd12 6327 $(HOST_EXPORTS) \
d32ab992 6328 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6329 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6330 done; \
295f4e42
NN
6331 echo "Doing installcheck in dosutils" ; \
6332 (cd dosutils && \
1358ccea
NN
6333 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6334 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6335 "RANLIB=$${RANLIB}" \
6336 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6337 installcheck) \
1358ccea
NN
6338 || exit 1
6339
60975492 6340@endif dosutils
1358ccea 6341
295f4e42
NN
6342.PHONY: maybe-mostlyclean-dosutils mostlyclean-dosutils
6343maybe-mostlyclean-dosutils:
60975492
PB
6344@if dosutils
6345maybe-mostlyclean-dosutils: mostlyclean-dosutils
1358ccea 6346
295f4e42
NN
6347mostlyclean-dosutils:
6348 @[ -f ./dosutils/Makefile ] || exit 0; \
8c90b13a
L
6349 r=`${PWD_COMMAND}`; export r; \
6350 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 6351 $(SET_LIB_PATH) \
4fc4dd12 6352 $(HOST_EXPORTS) \
d32ab992 6353 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6354 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6355 done; \
295f4e42
NN
6356 echo "Doing mostlyclean in dosutils" ; \
6357 (cd dosutils && \
1358ccea
NN
6358 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6359 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6360 "RANLIB=$${RANLIB}" \
6361 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6362 mostlyclean) \
1358ccea
NN
6363 || exit 1
6364
60975492 6365@endif dosutils
1358ccea 6366
295f4e42
NN
6367.PHONY: maybe-clean-dosutils clean-dosutils
6368maybe-clean-dosutils:
60975492
PB
6369@if dosutils
6370maybe-clean-dosutils: clean-dosutils
1358ccea 6371
295f4e42
NN
6372clean-dosutils:
6373 @[ -f ./dosutils/Makefile ] || exit 0; \
8c90b13a
L
6374 r=`${PWD_COMMAND}`; export r; \
6375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 6376 $(SET_LIB_PATH) \
4fc4dd12 6377 $(HOST_EXPORTS) \
d32ab992 6378 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6379 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6380 done; \
295f4e42
NN
6381 echo "Doing clean in dosutils" ; \
6382 (cd dosutils && \
1358ccea
NN
6383 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6384 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6385 "RANLIB=$${RANLIB}" \
6386 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6387 clean) \
1358ccea
NN
6388 || exit 1
6389
60975492 6390@endif dosutils
1358ccea 6391
295f4e42
NN
6392.PHONY: maybe-distclean-dosutils distclean-dosutils
6393maybe-distclean-dosutils:
60975492
PB
6394@if dosutils
6395maybe-distclean-dosutils: distclean-dosutils
1358ccea 6396
295f4e42
NN
6397distclean-dosutils:
6398 @[ -f ./dosutils/Makefile ] || exit 0; \
8c90b13a
L
6399 r=`${PWD_COMMAND}`; export r; \
6400 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 6401 $(SET_LIB_PATH) \
4fc4dd12 6402 $(HOST_EXPORTS) \
d32ab992 6403 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6404 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6405 done; \
295f4e42
NN
6406 echo "Doing distclean in dosutils" ; \
6407 (cd dosutils && \
1358ccea
NN
6408 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6409 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6410 "RANLIB=$${RANLIB}" \
6411 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6412 distclean) \
1358ccea
NN
6413 || exit 1
6414
60975492 6415@endif dosutils
1358ccea 6416
295f4e42
NN
6417.PHONY: maybe-maintainer-clean-dosutils maintainer-clean-dosutils
6418maybe-maintainer-clean-dosutils:
60975492
PB
6419@if dosutils
6420maybe-maintainer-clean-dosutils: maintainer-clean-dosutils
1358ccea 6421
295f4e42
NN
6422maintainer-clean-dosutils:
6423 @[ -f ./dosutils/Makefile ] || exit 0; \
8c90b13a
L
6424 r=`${PWD_COMMAND}`; export r; \
6425 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 6426 $(SET_LIB_PATH) \
4fc4dd12 6427 $(HOST_EXPORTS) \
d32ab992 6428 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6429 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6430 done; \
295f4e42
NN
6431 echo "Doing maintainer-clean in dosutils" ; \
6432 (cd dosutils && \
1358ccea
NN
6433 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6434 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6435 "RANLIB=$${RANLIB}" \
6436 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6437 maintainer-clean) \
1358ccea
NN
6438 || exit 1
6439
60975492 6440@endif dosutils
1358ccea
NN
6441
6442
295f4e42
NN
6443.PHONY: configure-etc maybe-configure-etc
6444maybe-configure-etc:
60975492
PB
6445@if etc
6446maybe-configure-etc: configure-etc
295f4e42
NN
6447configure-etc:
6448 @test ! -f etc/Makefile || exit 0; \
6449 [ -d etc ] || mkdir etc; \
8c90b13a
L
6450 r=`${PWD_COMMAND}`; export r; \
6451 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6452 $(HOST_EXPORTS) \
295f4e42
NN
6453 echo Configuring in etc; \
6454 cd etc || exit 1; \
6455 case $(srcdir) in \
6456 \.) \
6457 srcdiroption="--srcdir=."; \
6458 libsrcdir=".";; \
6459 /* | [A-Za-z]:[\\/]*) \
6460 srcdiroption="--srcdir=$(srcdir)/etc"; \
6461 libsrcdir="$$s/etc";; \
6462 *) \
6463 srcdiroption="--srcdir=../$(srcdir)/etc"; \
6464 libsrcdir="$$s/etc";; \
6465 esac; \
6466 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 6467 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 6468 || exit 1
60975492 6469@endif etc
1358ccea 6470
295f4e42
NN
6471.PHONY: all-etc maybe-all-etc
6472maybe-all-etc:
60975492
PB
6473@if etc
6474maybe-all-etc: all-etc
295f4e42
NN
6475all-etc: configure-etc
6476 @r=`${PWD_COMMAND}`; export r; \
6477 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6478 $(SET_LIB_PATH) \
4fc4dd12 6479 $(HOST_EXPORTS) \
a52a0a7f 6480 (cd etc && $(MAKE) $(FLAGS_TO_PASS) all)
60975492 6481@endif etc
1358ccea 6482
295f4e42
NN
6483.PHONY: check-etc maybe-check-etc
6484maybe-check-etc:
60975492
PB
6485@if etc
6486maybe-check-etc: check-etc
1358ccea 6487
295f4e42
NN
6488check-etc:
6489 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 6490 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 6491 $(SET_LIB_PATH) \
4fc4dd12 6492 $(HOST_EXPORTS) \
7c27e184 6493 (cd etc && $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 6494
60975492 6495@endif etc
1358ccea 6496
295f4e42
NN
6497.PHONY: install-etc maybe-install-etc
6498maybe-install-etc:
60975492
PB
6499@if etc
6500maybe-install-etc: install-etc
1358ccea 6501
295f4e42
NN
6502install-etc: installdirs
6503 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 6504 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 6505 $(SET_LIB_PATH) \
4fc4dd12 6506 $(HOST_EXPORTS) \
7c27e184 6507 (cd etc && $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 6508
60975492 6509@endif etc
1358ccea 6510
295f4e42 6511# Other targets (info, dvi, etc.)
1358ccea 6512
295f4e42
NN
6513.PHONY: maybe-info-etc info-etc
6514maybe-info-etc:
60975492
PB
6515@if etc
6516maybe-info-etc: info-etc
295f4e42
NN
6517
6518info-etc: \
6519 configure-etc
6520 @[ -f ./etc/Makefile ] || exit 0; \
8c90b13a
L
6521 r=`${PWD_COMMAND}`; export r; \
6522 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 6523 $(SET_LIB_PATH) \
4fc4dd12 6524 $(HOST_EXPORTS) \
d32ab992 6525 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6526 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6527 done; \
295f4e42
NN
6528 echo "Doing info in etc" ; \
6529 (cd etc && \
1358ccea
NN
6530 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6531 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6532 "RANLIB=$${RANLIB}" \
6533 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6534 info) \
1358ccea
NN
6535 || exit 1
6536
60975492 6537@endif etc
1358ccea 6538
295f4e42
NN
6539.PHONY: maybe-dvi-etc dvi-etc
6540maybe-dvi-etc:
60975492
PB
6541@if etc
6542maybe-dvi-etc: dvi-etc
1358ccea 6543
295f4e42
NN
6544dvi-etc: \
6545 configure-etc
6546 @[ -f ./etc/Makefile ] || exit 0; \
8c90b13a
L
6547 r=`${PWD_COMMAND}`; export r; \
6548 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 6549 $(SET_LIB_PATH) \
4fc4dd12 6550 $(HOST_EXPORTS) \
d32ab992 6551 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6552 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6553 done; \
295f4e42
NN
6554 echo "Doing dvi in etc" ; \
6555 (cd etc && \
1358ccea
NN
6556 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6557 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6558 "RANLIB=$${RANLIB}" \
6559 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6560 dvi) \
1358ccea
NN
6561 || exit 1
6562
60975492 6563@endif etc
1358ccea 6564
295f4e42
NN
6565.PHONY: maybe-TAGS-etc TAGS-etc
6566maybe-TAGS-etc:
60975492
PB
6567@if etc
6568maybe-TAGS-etc: TAGS-etc
1358ccea 6569
295f4e42
NN
6570TAGS-etc: \
6571 configure-etc
6572 @[ -f ./etc/Makefile ] || exit 0; \
8c90b13a
L
6573 r=`${PWD_COMMAND}`; export r; \
6574 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 6575 $(SET_LIB_PATH) \
4fc4dd12 6576 $(HOST_EXPORTS) \
d32ab992 6577 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6578 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6579 done; \
295f4e42
NN
6580 echo "Doing TAGS in etc" ; \
6581 (cd etc && \
1358ccea
NN
6582 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6583 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6584 "RANLIB=$${RANLIB}" \
6585 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6586 TAGS) \
1358ccea
NN
6587 || exit 1
6588
60975492 6589@endif etc
1358ccea 6590
295f4e42
NN
6591.PHONY: maybe-install-info-etc install-info-etc
6592maybe-install-info-etc:
60975492
PB
6593@if etc
6594maybe-install-info-etc: install-info-etc
1358ccea 6595
295f4e42
NN
6596install-info-etc: \
6597 configure-etc \
6598 info-etc
6599 @[ -f ./etc/Makefile ] || exit 0; \
8c90b13a
L
6600 r=`${PWD_COMMAND}`; export r; \
6601 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 6602 $(SET_LIB_PATH) \
4fc4dd12 6603 $(HOST_EXPORTS) \
d32ab992 6604 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6605 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6606 done; \
295f4e42
NN
6607 echo "Doing install-info in etc" ; \
6608 (cd etc && \
1358ccea
NN
6609 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6610 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6611 "RANLIB=$${RANLIB}" \
6612 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6613 install-info) \
1358ccea
NN
6614 || exit 1
6615
60975492 6616@endif etc
1358ccea 6617
295f4e42
NN
6618.PHONY: maybe-installcheck-etc installcheck-etc
6619maybe-installcheck-etc:
60975492
PB
6620@if etc
6621maybe-installcheck-etc: installcheck-etc
1358ccea 6622
295f4e42
NN
6623installcheck-etc: \
6624 configure-etc
6625 @[ -f ./etc/Makefile ] || exit 0; \
8c90b13a
L
6626 r=`${PWD_COMMAND}`; export r; \
6627 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 6628 $(SET_LIB_PATH) \
4fc4dd12 6629 $(HOST_EXPORTS) \
d32ab992 6630 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6631 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6632 done; \
295f4e42
NN
6633 echo "Doing installcheck in etc" ; \
6634 (cd etc && \
1358ccea
NN
6635 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6636 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6637 "RANLIB=$${RANLIB}" \
6638 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6639 installcheck) \
1358ccea
NN
6640 || exit 1
6641
60975492 6642@endif etc
1358ccea 6643
295f4e42
NN
6644.PHONY: maybe-mostlyclean-etc mostlyclean-etc
6645maybe-mostlyclean-etc:
60975492
PB
6646@if etc
6647maybe-mostlyclean-etc: mostlyclean-etc
1358ccea 6648
295f4e42
NN
6649mostlyclean-etc:
6650 @[ -f ./etc/Makefile ] || exit 0; \
8c90b13a
L
6651 r=`${PWD_COMMAND}`; export r; \
6652 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 6653 $(SET_LIB_PATH) \
4fc4dd12 6654 $(HOST_EXPORTS) \
d32ab992 6655 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6656 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6657 done; \
295f4e42
NN
6658 echo "Doing mostlyclean in etc" ; \
6659 (cd etc && \
1358ccea
NN
6660 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6661 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6662 "RANLIB=$${RANLIB}" \
6663 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6664 mostlyclean) \
1358ccea
NN
6665 || exit 1
6666
60975492 6667@endif etc
1358ccea 6668
295f4e42
NN
6669.PHONY: maybe-clean-etc clean-etc
6670maybe-clean-etc:
60975492
PB
6671@if etc
6672maybe-clean-etc: clean-etc
1358ccea 6673
295f4e42
NN
6674clean-etc:
6675 @[ -f ./etc/Makefile ] || exit 0; \
8c90b13a
L
6676 r=`${PWD_COMMAND}`; export r; \
6677 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 6678 $(SET_LIB_PATH) \
4fc4dd12 6679 $(HOST_EXPORTS) \
d32ab992 6680 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6681 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6682 done; \
295f4e42
NN
6683 echo "Doing clean in etc" ; \
6684 (cd etc && \
1358ccea
NN
6685 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6686 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6687 "RANLIB=$${RANLIB}" \
6688 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6689 clean) \
1358ccea
NN
6690 || exit 1
6691
60975492 6692@endif etc
1358ccea 6693
295f4e42
NN
6694.PHONY: maybe-distclean-etc distclean-etc
6695maybe-distclean-etc:
60975492
PB
6696@if etc
6697maybe-distclean-etc: distclean-etc
1358ccea 6698
295f4e42
NN
6699distclean-etc:
6700 @[ -f ./etc/Makefile ] || exit 0; \
8c90b13a
L
6701 r=`${PWD_COMMAND}`; export r; \
6702 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 6703 $(SET_LIB_PATH) \
4fc4dd12 6704 $(HOST_EXPORTS) \
d32ab992 6705 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6706 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6707 done; \
295f4e42
NN
6708 echo "Doing distclean in etc" ; \
6709 (cd etc && \
1358ccea
NN
6710 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6711 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6712 "RANLIB=$${RANLIB}" \
6713 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6714 distclean) \
1358ccea
NN
6715 || exit 1
6716
60975492 6717@endif etc
1358ccea 6718
295f4e42
NN
6719.PHONY: maybe-maintainer-clean-etc maintainer-clean-etc
6720maybe-maintainer-clean-etc:
60975492
PB
6721@if etc
6722maybe-maintainer-clean-etc: maintainer-clean-etc
1358ccea 6723
295f4e42
NN
6724maintainer-clean-etc:
6725 @[ -f ./etc/Makefile ] || exit 0; \
8c90b13a
L
6726 r=`${PWD_COMMAND}`; export r; \
6727 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 6728 $(SET_LIB_PATH) \
4fc4dd12 6729 $(HOST_EXPORTS) \
d32ab992 6730 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6731 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6732 done; \
295f4e42
NN
6733 echo "Doing maintainer-clean in etc" ; \
6734 (cd etc && \
1358ccea
NN
6735 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6736 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6737 "RANLIB=$${RANLIB}" \
6738 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6739 maintainer-clean) \
1358ccea
NN
6740 || exit 1
6741
60975492 6742@endif etc
1358ccea 6743
1358ccea 6744
295f4e42
NN
6745.PHONY: configure-fastjar maybe-configure-fastjar
6746maybe-configure-fastjar:
60975492
PB
6747@if fastjar
6748maybe-configure-fastjar: configure-fastjar
295f4e42
NN
6749configure-fastjar:
6750 @test ! -f fastjar/Makefile || exit 0; \
6751 [ -d fastjar ] || mkdir fastjar; \
8c90b13a
L
6752 r=`${PWD_COMMAND}`; export r; \
6753 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6754 $(HOST_EXPORTS) \
295f4e42
NN
6755 echo Configuring in fastjar; \
6756 cd fastjar || exit 1; \
6757 case $(srcdir) in \
6758 \.) \
6759 srcdiroption="--srcdir=."; \
6760 libsrcdir=".";; \
6761 /* | [A-Za-z]:[\\/]*) \
6762 srcdiroption="--srcdir=$(srcdir)/fastjar"; \
6763 libsrcdir="$$s/fastjar";; \
6764 *) \
6765 srcdiroption="--srcdir=../$(srcdir)/fastjar"; \
6766 libsrcdir="$$s/fastjar";; \
6767 esac; \
6768 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 6769 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 6770 || exit 1
60975492 6771@endif fastjar
1358ccea 6772
295f4e42
NN
6773.PHONY: all-fastjar maybe-all-fastjar
6774maybe-all-fastjar:
60975492
PB
6775@if fastjar
6776maybe-all-fastjar: all-fastjar
295f4e42
NN
6777all-fastjar: configure-fastjar
6778 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 6779 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 6780 $(SET_LIB_PATH) \
4fc4dd12 6781 $(HOST_EXPORTS) \
a52a0a7f 6782 (cd fastjar && $(MAKE) $(FLAGS_TO_PASS) all)
60975492 6783@endif fastjar
1358ccea 6784
295f4e42
NN
6785.PHONY: check-fastjar maybe-check-fastjar
6786maybe-check-fastjar:
60975492
PB
6787@if fastjar
6788maybe-check-fastjar: check-fastjar
1358ccea 6789
295f4e42
NN
6790# This module is only tested in a native toolchain.
6791check-fastjar:
6792 @if [ '$(host)' = '$(target)' ] ; then \
6793 r=`${PWD_COMMAND}`; export r; \
6794 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6795 $(SET_LIB_PATH) \
4fc4dd12 6796 $(HOST_EXPORTS) \
a52a0a7f 6797 (cd fastjar && $(MAKE) $(FLAGS_TO_PASS) check); \
295f4e42 6798 fi
1358ccea 6799
60975492 6800@endif fastjar
295f4e42
NN
6801
6802.PHONY: install-fastjar maybe-install-fastjar
6803maybe-install-fastjar:
60975492
PB
6804@if fastjar
6805maybe-install-fastjar: install-fastjar
295f4e42
NN
6806
6807install-fastjar: installdirs
6808 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 6809 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 6810 $(SET_LIB_PATH) \
4fc4dd12 6811 $(HOST_EXPORTS) \
7c27e184 6812 (cd fastjar && $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 6813
60975492 6814@endif fastjar
1358ccea 6815
295f4e42 6816# Other targets (info, dvi, etc.)
d9cdb878 6817
295f4e42
NN
6818.PHONY: maybe-info-fastjar info-fastjar
6819maybe-info-fastjar:
60975492
PB
6820@if fastjar
6821maybe-info-fastjar: info-fastjar
295f4e42
NN
6822
6823info-fastjar: \
6824 configure-fastjar
6825 @[ -f ./fastjar/Makefile ] || exit 0; \
d9cdb878
AC
6826 r=`${PWD_COMMAND}`; export r; \
6827 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6828 $(SET_LIB_PATH) \
4fc4dd12 6829 $(HOST_EXPORTS) \
d32ab992 6830 for flag in $(EXTRA_HOST_FLAGS) ; do \
d9cdb878
AC
6831 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6832 done; \
295f4e42
NN
6833 echo "Doing info in fastjar" ; \
6834 (cd fastjar && \
d9cdb878
AC
6835 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6836 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6837 "RANLIB=$${RANLIB}" \
6838 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6839 info) \
d9cdb878
AC
6840 || exit 1
6841
60975492 6842@endif fastjar
d9cdb878 6843
295f4e42
NN
6844.PHONY: maybe-dvi-fastjar dvi-fastjar
6845maybe-dvi-fastjar:
60975492
PB
6846@if fastjar
6847maybe-dvi-fastjar: dvi-fastjar
1358ccea 6848
295f4e42
NN
6849dvi-fastjar: \
6850 configure-fastjar
6851 @[ -f ./fastjar/Makefile ] || exit 0; \
8c90b13a
L
6852 r=`${PWD_COMMAND}`; export r; \
6853 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 6854 $(SET_LIB_PATH) \
4fc4dd12 6855 $(HOST_EXPORTS) \
d32ab992 6856 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6857 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6858 done; \
295f4e42
NN
6859 echo "Doing dvi in fastjar" ; \
6860 (cd fastjar && \
1358ccea
NN
6861 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6862 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6863 "RANLIB=$${RANLIB}" \
6864 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6865 dvi) \
1358ccea
NN
6866 || exit 1
6867
60975492 6868@endif fastjar
1358ccea 6869
295f4e42
NN
6870.PHONY: maybe-TAGS-fastjar TAGS-fastjar
6871maybe-TAGS-fastjar:
60975492
PB
6872@if fastjar
6873maybe-TAGS-fastjar: TAGS-fastjar
1358ccea 6874
295f4e42
NN
6875TAGS-fastjar: \
6876 configure-fastjar
6877 @[ -f ./fastjar/Makefile ] || exit 0; \
8c90b13a
L
6878 r=`${PWD_COMMAND}`; export r; \
6879 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 6880 $(SET_LIB_PATH) \
4fc4dd12 6881 $(HOST_EXPORTS) \
d32ab992 6882 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6883 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6884 done; \
295f4e42
NN
6885 echo "Doing TAGS in fastjar" ; \
6886 (cd fastjar && \
1358ccea
NN
6887 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6888 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6889 "RANLIB=$${RANLIB}" \
6890 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6891 TAGS) \
1358ccea
NN
6892 || exit 1
6893
60975492 6894@endif fastjar
1358ccea 6895
295f4e42
NN
6896.PHONY: maybe-install-info-fastjar install-info-fastjar
6897maybe-install-info-fastjar:
60975492
PB
6898@if fastjar
6899maybe-install-info-fastjar: install-info-fastjar
1358ccea 6900
295f4e42
NN
6901install-info-fastjar: \
6902 configure-fastjar \
6903 info-fastjar
6904 @[ -f ./fastjar/Makefile ] || exit 0; \
8c90b13a
L
6905 r=`${PWD_COMMAND}`; export r; \
6906 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 6907 $(SET_LIB_PATH) \
4fc4dd12 6908 $(HOST_EXPORTS) \
d32ab992 6909 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6910 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6911 done; \
295f4e42
NN
6912 echo "Doing install-info in fastjar" ; \
6913 (cd fastjar && \
1358ccea
NN
6914 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6915 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6916 "RANLIB=$${RANLIB}" \
6917 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6918 install-info) \
1358ccea
NN
6919 || exit 1
6920
60975492 6921@endif fastjar
1358ccea 6922
295f4e42
NN
6923.PHONY: maybe-installcheck-fastjar installcheck-fastjar
6924maybe-installcheck-fastjar:
60975492
PB
6925@if fastjar
6926maybe-installcheck-fastjar: installcheck-fastjar
1358ccea 6927
295f4e42
NN
6928installcheck-fastjar: \
6929 configure-fastjar
6930 @[ -f ./fastjar/Makefile ] || exit 0; \
8c90b13a
L
6931 r=`${PWD_COMMAND}`; export r; \
6932 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 6933 $(SET_LIB_PATH) \
4fc4dd12 6934 $(HOST_EXPORTS) \
d32ab992 6935 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6936 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6937 done; \
295f4e42
NN
6938 echo "Doing installcheck in fastjar" ; \
6939 (cd fastjar && \
1358ccea
NN
6940 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6941 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6942 "RANLIB=$${RANLIB}" \
6943 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6944 installcheck) \
1358ccea
NN
6945 || exit 1
6946
60975492 6947@endif fastjar
1358ccea 6948
295f4e42
NN
6949.PHONY: maybe-mostlyclean-fastjar mostlyclean-fastjar
6950maybe-mostlyclean-fastjar:
60975492
PB
6951@if fastjar
6952maybe-mostlyclean-fastjar: mostlyclean-fastjar
1358ccea 6953
295f4e42
NN
6954mostlyclean-fastjar:
6955 @[ -f ./fastjar/Makefile ] || exit 0; \
8c90b13a
L
6956 r=`${PWD_COMMAND}`; export r; \
6957 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 6958 $(SET_LIB_PATH) \
4fc4dd12 6959 $(HOST_EXPORTS) \
d32ab992 6960 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6961 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6962 done; \
295f4e42
NN
6963 echo "Doing mostlyclean in fastjar" ; \
6964 (cd fastjar && \
1358ccea
NN
6965 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6966 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6967 "RANLIB=$${RANLIB}" \
6968 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6969 mostlyclean) \
1358ccea
NN
6970 || exit 1
6971
60975492 6972@endif fastjar
1358ccea 6973
295f4e42
NN
6974.PHONY: maybe-clean-fastjar clean-fastjar
6975maybe-clean-fastjar:
60975492
PB
6976@if fastjar
6977maybe-clean-fastjar: clean-fastjar
1358ccea 6978
295f4e42
NN
6979clean-fastjar:
6980 @[ -f ./fastjar/Makefile ] || exit 0; \
8c90b13a
L
6981 r=`${PWD_COMMAND}`; export r; \
6982 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 6983 $(SET_LIB_PATH) \
4fc4dd12 6984 $(HOST_EXPORTS) \
d32ab992 6985 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6986 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6987 done; \
295f4e42
NN
6988 echo "Doing clean in fastjar" ; \
6989 (cd fastjar && \
1358ccea
NN
6990 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6991 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6992 "RANLIB=$${RANLIB}" \
6993 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6994 clean) \
1358ccea
NN
6995 || exit 1
6996
60975492 6997@endif fastjar
1358ccea 6998
295f4e42
NN
6999.PHONY: maybe-distclean-fastjar distclean-fastjar
7000maybe-distclean-fastjar:
60975492
PB
7001@if fastjar
7002maybe-distclean-fastjar: distclean-fastjar
1358ccea 7003
295f4e42
NN
7004distclean-fastjar:
7005 @[ -f ./fastjar/Makefile ] || exit 0; \
8c90b13a
L
7006 r=`${PWD_COMMAND}`; export r; \
7007 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 7008 $(SET_LIB_PATH) \
4fc4dd12 7009 $(HOST_EXPORTS) \
d32ab992 7010 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7011 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7012 done; \
295f4e42
NN
7013 echo "Doing distclean in fastjar" ; \
7014 (cd fastjar && \
1358ccea
NN
7015 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7016 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7017 "RANLIB=$${RANLIB}" \
7018 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7019 distclean) \
1358ccea
NN
7020 || exit 1
7021
60975492 7022@endif fastjar
1358ccea 7023
295f4e42
NN
7024.PHONY: maybe-maintainer-clean-fastjar maintainer-clean-fastjar
7025maybe-maintainer-clean-fastjar:
60975492
PB
7026@if fastjar
7027maybe-maintainer-clean-fastjar: maintainer-clean-fastjar
1358ccea 7028
295f4e42
NN
7029maintainer-clean-fastjar:
7030 @[ -f ./fastjar/Makefile ] || exit 0; \
8c90b13a
L
7031 r=`${PWD_COMMAND}`; export r; \
7032 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 7033 $(SET_LIB_PATH) \
4fc4dd12 7034 $(HOST_EXPORTS) \
d32ab992 7035 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7036 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7037 done; \
295f4e42
NN
7038 echo "Doing maintainer-clean in fastjar" ; \
7039 (cd fastjar && \
1358ccea
NN
7040 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7041 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7042 "RANLIB=$${RANLIB}" \
7043 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7044 maintainer-clean) \
1358ccea
NN
7045 || exit 1
7046
60975492 7047@endif fastjar
1358ccea 7048
1358ccea 7049
295f4e42
NN
7050.PHONY: configure-fileutils maybe-configure-fileutils
7051maybe-configure-fileutils:
60975492
PB
7052@if fileutils
7053maybe-configure-fileutils: configure-fileutils
295f4e42
NN
7054configure-fileutils:
7055 @test ! -f fileutils/Makefile || exit 0; \
7056 [ -d fileutils ] || mkdir fileutils; \
7057 r=`${PWD_COMMAND}`; export r; \
7058 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7059 $(HOST_EXPORTS) \
295f4e42
NN
7060 echo Configuring in fileutils; \
7061 cd fileutils || exit 1; \
7062 case $(srcdir) in \
7063 \.) \
7064 srcdiroption="--srcdir=."; \
7065 libsrcdir=".";; \
7066 /* | [A-Za-z]:[\\/]*) \
7067 srcdiroption="--srcdir=$(srcdir)/fileutils"; \
7068 libsrcdir="$$s/fileutils";; \
7069 *) \
7070 srcdiroption="--srcdir=../$(srcdir)/fileutils"; \
7071 libsrcdir="$$s/fileutils";; \
7072 esac; \
7073 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 7074 $(HOST_CONFIGARGS) $${srcdiroption} \
295f4e42 7075 || exit 1
60975492 7076@endif fileutils
295f4e42
NN
7077
7078.PHONY: all-fileutils maybe-all-fileutils
7079maybe-all-fileutils:
60975492
PB
7080@if fileutils
7081maybe-all-fileutils: all-fileutils
295f4e42
NN
7082all-fileutils: configure-fileutils
7083 @r=`${PWD_COMMAND}`; export r; \
7084 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7085 $(SET_LIB_PATH) \
4fc4dd12 7086 $(HOST_EXPORTS) \
a52a0a7f 7087 (cd fileutils && $(MAKE) $(FLAGS_TO_PASS) all)
60975492 7088@endif fileutils
295f4e42
NN
7089
7090.PHONY: check-fileutils maybe-check-fileutils
7091maybe-check-fileutils:
60975492
PB
7092@if fileutils
7093maybe-check-fileutils: check-fileutils
295f4e42
NN
7094
7095check-fileutils:
7096 @r=`${PWD_COMMAND}`; export r; \
7097 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7098 $(SET_LIB_PATH) \
4fc4dd12 7099 $(HOST_EXPORTS) \
7c27e184 7100 (cd fileutils && $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 7101
60975492 7102@endif fileutils
295f4e42
NN
7103
7104.PHONY: install-fileutils maybe-install-fileutils
7105maybe-install-fileutils:
60975492
PB
7106@if fileutils
7107maybe-install-fileutils: install-fileutils
295f4e42
NN
7108
7109install-fileutils: installdirs
7110 @r=`${PWD_COMMAND}`; export r; \
7111 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7112 $(SET_LIB_PATH) \
4fc4dd12 7113 $(HOST_EXPORTS) \
7c27e184 7114 (cd fileutils && $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 7115
60975492 7116@endif fileutils
295f4e42
NN
7117
7118# Other targets (info, dvi, etc.)
7119
7120.PHONY: maybe-info-fileutils info-fileutils
7121maybe-info-fileutils:
60975492
PB
7122@if fileutils
7123maybe-info-fileutils: info-fileutils
295f4e42
NN
7124
7125info-fileutils: \
7126 configure-fileutils
7127 @[ -f ./fileutils/Makefile ] || exit 0; \
8c90b13a
L
7128 r=`${PWD_COMMAND}`; export r; \
7129 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 7130 $(SET_LIB_PATH) \
4fc4dd12 7131 $(HOST_EXPORTS) \
d32ab992 7132 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7133 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7134 done; \
295f4e42
NN
7135 echo "Doing info in fileutils" ; \
7136 (cd fileutils && \
1358ccea
NN
7137 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7138 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7139 "RANLIB=$${RANLIB}" \
7140 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7141 info) \
1358ccea
NN
7142 || exit 1
7143
60975492 7144@endif fileutils
1358ccea 7145
295f4e42
NN
7146.PHONY: maybe-dvi-fileutils dvi-fileutils
7147maybe-dvi-fileutils:
60975492
PB
7148@if fileutils
7149maybe-dvi-fileutils: dvi-fileutils
1358ccea 7150
295f4e42
NN
7151dvi-fileutils: \
7152 configure-fileutils
7153 @[ -f ./fileutils/Makefile ] || exit 0; \
8c90b13a
L
7154 r=`${PWD_COMMAND}`; export r; \
7155 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 7156 $(SET_LIB_PATH) \
4fc4dd12 7157 $(HOST_EXPORTS) \
d32ab992 7158 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7159 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7160 done; \
295f4e42
NN
7161 echo "Doing dvi in fileutils" ; \
7162 (cd fileutils && \
1358ccea
NN
7163 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7164 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7165 "RANLIB=$${RANLIB}" \
7166 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7167 dvi) \
1358ccea
NN
7168 || exit 1
7169
60975492 7170@endif fileutils
1358ccea 7171
295f4e42
NN
7172.PHONY: maybe-TAGS-fileutils TAGS-fileutils
7173maybe-TAGS-fileutils:
60975492
PB
7174@if fileutils
7175maybe-TAGS-fileutils: TAGS-fileutils
1358ccea 7176
295f4e42
NN
7177TAGS-fileutils: \
7178 configure-fileutils
7179 @[ -f ./fileutils/Makefile ] || exit 0; \
8c90b13a
L
7180 r=`${PWD_COMMAND}`; export r; \
7181 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 7182 $(SET_LIB_PATH) \
4fc4dd12 7183 $(HOST_EXPORTS) \
d32ab992 7184 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7185 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7186 done; \
295f4e42
NN
7187 echo "Doing TAGS in fileutils" ; \
7188 (cd fileutils && \
1358ccea
NN
7189 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7190 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7191 "RANLIB=$${RANLIB}" \
7192 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7193 TAGS) \
1358ccea
NN
7194 || exit 1
7195
60975492 7196@endif fileutils
1358ccea 7197
295f4e42
NN
7198.PHONY: maybe-install-info-fileutils install-info-fileutils
7199maybe-install-info-fileutils:
60975492
PB
7200@if fileutils
7201maybe-install-info-fileutils: install-info-fileutils
1358ccea 7202
295f4e42
NN
7203install-info-fileutils: \
7204 configure-fileutils \
7205 info-fileutils
7206 @[ -f ./fileutils/Makefile ] || exit 0; \
8c90b13a
L
7207 r=`${PWD_COMMAND}`; export r; \
7208 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 7209 $(SET_LIB_PATH) \
4fc4dd12 7210 $(HOST_EXPORTS) \
d32ab992 7211 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7212 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7213 done; \
295f4e42
NN
7214 echo "Doing install-info in fileutils" ; \
7215 (cd fileutils && \
1358ccea
NN
7216 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7217 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7218 "RANLIB=$${RANLIB}" \
7219 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7220 install-info) \
1358ccea
NN
7221 || exit 1
7222
60975492 7223@endif fileutils
1358ccea 7224
295f4e42
NN
7225.PHONY: maybe-installcheck-fileutils installcheck-fileutils
7226maybe-installcheck-fileutils:
60975492
PB
7227@if fileutils
7228maybe-installcheck-fileutils: installcheck-fileutils
1358ccea 7229
295f4e42
NN
7230installcheck-fileutils: \
7231 configure-fileutils
7232 @[ -f ./fileutils/Makefile ] || exit 0; \
8c90b13a
L
7233 r=`${PWD_COMMAND}`; export r; \
7234 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 7235 $(SET_LIB_PATH) \
4fc4dd12 7236 $(HOST_EXPORTS) \
d32ab992 7237 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7238 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7239 done; \
295f4e42
NN
7240 echo "Doing installcheck in fileutils" ; \
7241 (cd fileutils && \
1358ccea
NN
7242 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7243 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7244 "RANLIB=$${RANLIB}" \
7245 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7246 installcheck) \
1358ccea
NN
7247 || exit 1
7248
60975492 7249@endif fileutils
1358ccea 7250
295f4e42
NN
7251.PHONY: maybe-mostlyclean-fileutils mostlyclean-fileutils
7252maybe-mostlyclean-fileutils:
60975492
PB
7253@if fileutils
7254maybe-mostlyclean-fileutils: mostlyclean-fileutils
1358ccea 7255
295f4e42
NN
7256mostlyclean-fileutils:
7257 @[ -f ./fileutils/Makefile ] || exit 0; \
8c90b13a
L
7258 r=`${PWD_COMMAND}`; export r; \
7259 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 7260 $(SET_LIB_PATH) \
4fc4dd12 7261 $(HOST_EXPORTS) \
d32ab992 7262 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7263 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7264 done; \
295f4e42
NN
7265 echo "Doing mostlyclean in fileutils" ; \
7266 (cd fileutils && \
1358ccea
NN
7267 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7268 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7269 "RANLIB=$${RANLIB}" \
7270 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7271 mostlyclean) \
1358ccea
NN
7272 || exit 1
7273
60975492 7274@endif fileutils
1358ccea 7275
295f4e42
NN
7276.PHONY: maybe-clean-fileutils clean-fileutils
7277maybe-clean-fileutils:
60975492
PB
7278@if fileutils
7279maybe-clean-fileutils: clean-fileutils
1358ccea 7280
295f4e42
NN
7281clean-fileutils:
7282 @[ -f ./fileutils/Makefile ] || exit 0; \
8c90b13a
L
7283 r=`${PWD_COMMAND}`; export r; \
7284 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 7285 $(SET_LIB_PATH) \
4fc4dd12 7286 $(HOST_EXPORTS) \
d32ab992 7287 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7288 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7289 done; \
295f4e42
NN
7290 echo "Doing clean in fileutils" ; \
7291 (cd fileutils && \
1358ccea
NN
7292 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7293 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7294 "RANLIB=$${RANLIB}" \
7295 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7296 clean) \
1358ccea
NN
7297 || exit 1
7298
60975492 7299@endif fileutils
1358ccea 7300
295f4e42
NN
7301.PHONY: maybe-distclean-fileutils distclean-fileutils
7302maybe-distclean-fileutils:
60975492
PB
7303@if fileutils
7304maybe-distclean-fileutils: distclean-fileutils
1358ccea 7305
295f4e42
NN
7306distclean-fileutils:
7307 @[ -f ./fileutils/Makefile ] || exit 0; \
8c90b13a
L
7308 r=`${PWD_COMMAND}`; export r; \
7309 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 7310 $(SET_LIB_PATH) \
4fc4dd12 7311 $(HOST_EXPORTS) \
d32ab992 7312 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7313 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7314 done; \
295f4e42
NN
7315 echo "Doing distclean in fileutils" ; \
7316 (cd fileutils && \
1358ccea
NN
7317 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7318 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7319 "RANLIB=$${RANLIB}" \
7320 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7321 distclean) \
1358ccea
NN
7322 || exit 1
7323
60975492 7324@endif fileutils
1358ccea 7325
295f4e42
NN
7326.PHONY: maybe-maintainer-clean-fileutils maintainer-clean-fileutils
7327maybe-maintainer-clean-fileutils:
60975492
PB
7328@if fileutils
7329maybe-maintainer-clean-fileutils: maintainer-clean-fileutils
1358ccea 7330
295f4e42 7331maintainer-clean-fileutils:
1358ccea 7332 @[ -f ./fileutils/Makefile ] || exit 0; \
8c90b13a
L
7333 r=`${PWD_COMMAND}`; export r; \
7334 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 7335 $(SET_LIB_PATH) \
4fc4dd12 7336 $(HOST_EXPORTS) \
d32ab992 7337 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7338 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7339 done; \
295f4e42 7340 echo "Doing maintainer-clean in fileutils" ; \
1358ccea
NN
7341 (cd fileutils && \
7342 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7343 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7344 "RANLIB=$${RANLIB}" \
7345 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7346 maintainer-clean) \
295f4e42
NN
7347 || exit 1
7348
60975492 7349@endif fileutils
295f4e42
NN
7350
7351
7352.PHONY: configure-findutils maybe-configure-findutils
7353maybe-configure-findutils:
60975492
PB
7354@if findutils
7355maybe-configure-findutils: configure-findutils
295f4e42
NN
7356configure-findutils:
7357 @test ! -f findutils/Makefile || exit 0; \
7358 [ -d findutils ] || mkdir findutils; \
7359 r=`${PWD_COMMAND}`; export r; \
7360 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7361 $(HOST_EXPORTS) \
295f4e42
NN
7362 echo Configuring in findutils; \
7363 cd findutils || exit 1; \
7364 case $(srcdir) in \
7365 \.) \
7366 srcdiroption="--srcdir=."; \
7367 libsrcdir=".";; \
7368 /* | [A-Za-z]:[\\/]*) \
7369 srcdiroption="--srcdir=$(srcdir)/findutils"; \
7370 libsrcdir="$$s/findutils";; \
7371 *) \
7372 srcdiroption="--srcdir=../$(srcdir)/findutils"; \
7373 libsrcdir="$$s/findutils";; \
7374 esac; \
7375 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 7376 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 7377 || exit 1
60975492 7378@endif findutils
1358ccea 7379
295f4e42
NN
7380.PHONY: all-findutils maybe-all-findutils
7381maybe-all-findutils:
60975492
PB
7382@if findutils
7383maybe-all-findutils: all-findutils
295f4e42
NN
7384all-findutils: configure-findutils
7385 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 7386 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 7387 $(SET_LIB_PATH) \
4fc4dd12 7388 $(HOST_EXPORTS) \
a52a0a7f 7389 (cd findutils && $(MAKE) $(FLAGS_TO_PASS) all)
60975492 7390@endif findutils
1358ccea 7391
295f4e42
NN
7392.PHONY: check-findutils maybe-check-findutils
7393maybe-check-findutils:
60975492
PB
7394@if findutils
7395maybe-check-findutils: check-findutils
1358ccea 7396
295f4e42
NN
7397check-findutils:
7398 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 7399 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 7400 $(SET_LIB_PATH) \
4fc4dd12 7401 $(HOST_EXPORTS) \
7c27e184 7402 (cd findutils && $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 7403
60975492 7404@endif findutils
1358ccea 7405
295f4e42
NN
7406.PHONY: install-findutils maybe-install-findutils
7407maybe-install-findutils:
60975492
PB
7408@if findutils
7409maybe-install-findutils: install-findutils
1358ccea 7410
295f4e42
NN
7411install-findutils: installdirs
7412 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 7413 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 7414 $(SET_LIB_PATH) \
4fc4dd12 7415 $(HOST_EXPORTS) \
7c27e184 7416 (cd findutils && $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 7417
60975492 7418@endif findutils
1358ccea 7419
295f4e42 7420# Other targets (info, dvi, etc.)
1358ccea 7421
295f4e42
NN
7422.PHONY: maybe-info-findutils info-findutils
7423maybe-info-findutils:
60975492
PB
7424@if findutils
7425maybe-info-findutils: info-findutils
295f4e42
NN
7426
7427info-findutils: \
7428 configure-findutils
7429 @[ -f ./findutils/Makefile ] || exit 0; \
8c90b13a
L
7430 r=`${PWD_COMMAND}`; export r; \
7431 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 7432 $(SET_LIB_PATH) \
4fc4dd12 7433 $(HOST_EXPORTS) \
d32ab992 7434 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7435 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7436 done; \
295f4e42
NN
7437 echo "Doing info in findutils" ; \
7438 (cd findutils && \
1358ccea
NN
7439 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7440 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7441 "RANLIB=$${RANLIB}" \
7442 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7443 info) \
1358ccea
NN
7444 || exit 1
7445
60975492 7446@endif findutils
1358ccea 7447
295f4e42
NN
7448.PHONY: maybe-dvi-findutils dvi-findutils
7449maybe-dvi-findutils:
60975492
PB
7450@if findutils
7451maybe-dvi-findutils: dvi-findutils
1358ccea 7452
295f4e42
NN
7453dvi-findutils: \
7454 configure-findutils
7455 @[ -f ./findutils/Makefile ] || exit 0; \
8c90b13a
L
7456 r=`${PWD_COMMAND}`; export r; \
7457 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 7458 $(SET_LIB_PATH) \
4fc4dd12 7459 $(HOST_EXPORTS) \
d32ab992 7460 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7461 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7462 done; \
295f4e42
NN
7463 echo "Doing dvi in findutils" ; \
7464 (cd findutils && \
1358ccea
NN
7465 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7466 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7467 "RANLIB=$${RANLIB}" \
7468 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7469 dvi) \
1358ccea
NN
7470 || exit 1
7471
60975492 7472@endif findutils
1358ccea 7473
295f4e42
NN
7474.PHONY: maybe-TAGS-findutils TAGS-findutils
7475maybe-TAGS-findutils:
60975492
PB
7476@if findutils
7477maybe-TAGS-findutils: TAGS-findutils
1358ccea 7478
295f4e42
NN
7479TAGS-findutils: \
7480 configure-findutils
7481 @[ -f ./findutils/Makefile ] || exit 0; \
8c90b13a
L
7482 r=`${PWD_COMMAND}`; export r; \
7483 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 7484 $(SET_LIB_PATH) \
4fc4dd12 7485 $(HOST_EXPORTS) \
d32ab992 7486 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7487 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7488 done; \
295f4e42
NN
7489 echo "Doing TAGS in findutils" ; \
7490 (cd findutils && \
1358ccea
NN
7491 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7492 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7493 "RANLIB=$${RANLIB}" \
7494 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7495 TAGS) \
1358ccea
NN
7496 || exit 1
7497
60975492 7498@endif findutils
1358ccea 7499
295f4e42
NN
7500.PHONY: maybe-install-info-findutils install-info-findutils
7501maybe-install-info-findutils:
60975492
PB
7502@if findutils
7503maybe-install-info-findutils: install-info-findutils
1358ccea 7504
295f4e42
NN
7505install-info-findutils: \
7506 configure-findutils \
7507 info-findutils
7508 @[ -f ./findutils/Makefile ] || exit 0; \
8c90b13a
L
7509 r=`${PWD_COMMAND}`; export r; \
7510 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 7511 $(SET_LIB_PATH) \
4fc4dd12 7512 $(HOST_EXPORTS) \
d32ab992 7513 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7514 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7515 done; \
295f4e42
NN
7516 echo "Doing install-info in findutils" ; \
7517 (cd findutils && \
1358ccea
NN
7518 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7519 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7520 "RANLIB=$${RANLIB}" \
7521 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7522 install-info) \
1358ccea
NN
7523 || exit 1
7524
60975492 7525@endif findutils
1358ccea 7526
295f4e42
NN
7527.PHONY: maybe-installcheck-findutils installcheck-findutils
7528maybe-installcheck-findutils:
60975492
PB
7529@if findutils
7530maybe-installcheck-findutils: installcheck-findutils
1358ccea 7531
295f4e42
NN
7532installcheck-findutils: \
7533 configure-findutils
7534 @[ -f ./findutils/Makefile ] || exit 0; \
8c90b13a
L
7535 r=`${PWD_COMMAND}`; export r; \
7536 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 7537 $(SET_LIB_PATH) \
4fc4dd12 7538 $(HOST_EXPORTS) \
d32ab992 7539 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7540 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7541 done; \
295f4e42
NN
7542 echo "Doing installcheck in findutils" ; \
7543 (cd findutils && \
1358ccea
NN
7544 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7545 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7546 "RANLIB=$${RANLIB}" \
7547 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7548 installcheck) \
1358ccea
NN
7549 || exit 1
7550
60975492 7551@endif findutils
1358ccea 7552
295f4e42
NN
7553.PHONY: maybe-mostlyclean-findutils mostlyclean-findutils
7554maybe-mostlyclean-findutils:
60975492
PB
7555@if findutils
7556maybe-mostlyclean-findutils: mostlyclean-findutils
1358ccea 7557
295f4e42
NN
7558mostlyclean-findutils:
7559 @[ -f ./findutils/Makefile ] || exit 0; \
8c90b13a
L
7560 r=`${PWD_COMMAND}`; export r; \
7561 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 7562 $(SET_LIB_PATH) \
4fc4dd12 7563 $(HOST_EXPORTS) \
d32ab992 7564 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7565 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7566 done; \
295f4e42
NN
7567 echo "Doing mostlyclean in findutils" ; \
7568 (cd findutils && \
1358ccea
NN
7569 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7570 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7571 "RANLIB=$${RANLIB}" \
7572 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7573 mostlyclean) \
1358ccea
NN
7574 || exit 1
7575
60975492 7576@endif findutils
1358ccea 7577
295f4e42
NN
7578.PHONY: maybe-clean-findutils clean-findutils
7579maybe-clean-findutils:
60975492
PB
7580@if findutils
7581maybe-clean-findutils: clean-findutils
1358ccea 7582
295f4e42
NN
7583clean-findutils:
7584 @[ -f ./findutils/Makefile ] || exit 0; \
8c90b13a
L
7585 r=`${PWD_COMMAND}`; export r; \
7586 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 7587 $(SET_LIB_PATH) \
4fc4dd12 7588 $(HOST_EXPORTS) \
d32ab992 7589 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7590 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7591 done; \
295f4e42
NN
7592 echo "Doing clean in findutils" ; \
7593 (cd findutils && \
1358ccea
NN
7594 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7595 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7596 "RANLIB=$${RANLIB}" \
7597 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7598 clean) \
1358ccea
NN
7599 || exit 1
7600
60975492 7601@endif findutils
1358ccea 7602
295f4e42
NN
7603.PHONY: maybe-distclean-findutils distclean-findutils
7604maybe-distclean-findutils:
60975492
PB
7605@if findutils
7606maybe-distclean-findutils: distclean-findutils
1358ccea 7607
295f4e42
NN
7608distclean-findutils:
7609 @[ -f ./findutils/Makefile ] || exit 0; \
8c90b13a
L
7610 r=`${PWD_COMMAND}`; export r; \
7611 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 7612 $(SET_LIB_PATH) \
4fc4dd12 7613 $(HOST_EXPORTS) \
d32ab992 7614 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7615 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7616 done; \
295f4e42
NN
7617 echo "Doing distclean in findutils" ; \
7618 (cd findutils && \
1358ccea
NN
7619 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7620 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7621 "RANLIB=$${RANLIB}" \
7622 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7623 distclean) \
1358ccea
NN
7624 || exit 1
7625
60975492 7626@endif findutils
1358ccea 7627
295f4e42
NN
7628.PHONY: maybe-maintainer-clean-findutils maintainer-clean-findutils
7629maybe-maintainer-clean-findutils:
60975492
PB
7630@if findutils
7631maybe-maintainer-clean-findutils: maintainer-clean-findutils
1358ccea 7632
295f4e42
NN
7633maintainer-clean-findutils:
7634 @[ -f ./findutils/Makefile ] || exit 0; \
8c90b13a
L
7635 r=`${PWD_COMMAND}`; export r; \
7636 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 7637 $(SET_LIB_PATH) \
4fc4dd12 7638 $(HOST_EXPORTS) \
d32ab992 7639 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7640 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7641 done; \
295f4e42
NN
7642 echo "Doing maintainer-clean in findutils" ; \
7643 (cd findutils && \
1358ccea
NN
7644 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7645 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7646 "RANLIB=$${RANLIB}" \
7647 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7648 maintainer-clean) \
1358ccea
NN
7649 || exit 1
7650
60975492 7651@endif findutils
1358ccea 7652
1358ccea 7653
295f4e42
NN
7654.PHONY: configure-find maybe-configure-find
7655maybe-configure-find:
60975492
PB
7656@if find
7657maybe-configure-find: configure-find
295f4e42
NN
7658configure-find:
7659 @test ! -f find/Makefile || exit 0; \
7660 [ -d find ] || mkdir find; \
8c90b13a
L
7661 r=`${PWD_COMMAND}`; export r; \
7662 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7663 $(HOST_EXPORTS) \
295f4e42
NN
7664 echo Configuring in find; \
7665 cd find || exit 1; \
7666 case $(srcdir) in \
7667 \.) \
7668 srcdiroption="--srcdir=."; \
7669 libsrcdir=".";; \
7670 /* | [A-Za-z]:[\\/]*) \
7671 srcdiroption="--srcdir=$(srcdir)/find"; \
7672 libsrcdir="$$s/find";; \
7673 *) \
7674 srcdiroption="--srcdir=../$(srcdir)/find"; \
7675 libsrcdir="$$s/find";; \
7676 esac; \
7677 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 7678 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 7679 || exit 1
60975492 7680@endif find
1358ccea 7681
295f4e42
NN
7682.PHONY: all-find maybe-all-find
7683maybe-all-find:
60975492
PB
7684@if find
7685maybe-all-find: all-find
295f4e42
NN
7686all-find: configure-find
7687 @r=`${PWD_COMMAND}`; export r; \
7688 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7689 $(SET_LIB_PATH) \
4fc4dd12 7690 $(HOST_EXPORTS) \
a52a0a7f 7691 (cd find && $(MAKE) $(FLAGS_TO_PASS) all)
60975492 7692@endif find
1358ccea 7693
295f4e42
NN
7694.PHONY: check-find maybe-check-find
7695maybe-check-find:
60975492
PB
7696@if find
7697maybe-check-find: check-find
1358ccea 7698
295f4e42
NN
7699check-find:
7700 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 7701 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 7702 $(SET_LIB_PATH) \
4fc4dd12 7703 $(HOST_EXPORTS) \
7c27e184 7704 (cd find && $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 7705
60975492 7706@endif find
1358ccea 7707
295f4e42
NN
7708.PHONY: install-find maybe-install-find
7709maybe-install-find:
60975492
PB
7710@if find
7711maybe-install-find: install-find
1358ccea 7712
295f4e42
NN
7713install-find: installdirs
7714 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 7715 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 7716 $(SET_LIB_PATH) \
4fc4dd12 7717 $(HOST_EXPORTS) \
7c27e184 7718 (cd find && $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 7719
60975492 7720@endif find
1358ccea 7721
295f4e42 7722# Other targets (info, dvi, etc.)
1358ccea 7723
295f4e42
NN
7724.PHONY: maybe-info-find info-find
7725maybe-info-find:
60975492
PB
7726@if find
7727maybe-info-find: info-find
295f4e42
NN
7728
7729info-find: \
7730 configure-find
7731 @[ -f ./find/Makefile ] || exit 0; \
8c90b13a
L
7732 r=`${PWD_COMMAND}`; export r; \
7733 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 7734 $(SET_LIB_PATH) \
4fc4dd12 7735 $(HOST_EXPORTS) \
d32ab992 7736 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7737 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7738 done; \
295f4e42
NN
7739 echo "Doing info in find" ; \
7740 (cd find && \
1358ccea
NN
7741 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7742 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7743 "RANLIB=$${RANLIB}" \
7744 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7745 info) \
1358ccea
NN
7746 || exit 1
7747
60975492 7748@endif find
1358ccea 7749
295f4e42
NN
7750.PHONY: maybe-dvi-find dvi-find
7751maybe-dvi-find:
60975492
PB
7752@if find
7753maybe-dvi-find: dvi-find
1358ccea 7754
295f4e42
NN
7755dvi-find: \
7756 configure-find
7757 @[ -f ./find/Makefile ] || exit 0; \
8c90b13a
L
7758 r=`${PWD_COMMAND}`; export r; \
7759 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 7760 $(SET_LIB_PATH) \
4fc4dd12 7761 $(HOST_EXPORTS) \
d32ab992 7762 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7763 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7764 done; \
295f4e42
NN
7765 echo "Doing dvi in find" ; \
7766 (cd find && \
1358ccea
NN
7767 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7768 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7769 "RANLIB=$${RANLIB}" \
7770 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7771 dvi) \
1358ccea
NN
7772 || exit 1
7773
60975492 7774@endif find
1358ccea 7775
295f4e42
NN
7776.PHONY: maybe-TAGS-find TAGS-find
7777maybe-TAGS-find:
60975492
PB
7778@if find
7779maybe-TAGS-find: TAGS-find
1358ccea 7780
295f4e42
NN
7781TAGS-find: \
7782 configure-find
7783 @[ -f ./find/Makefile ] || exit 0; \
8c90b13a
L
7784 r=`${PWD_COMMAND}`; export r; \
7785 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 7786 $(SET_LIB_PATH) \
4fc4dd12 7787 $(HOST_EXPORTS) \
d32ab992 7788 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7789 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7790 done; \
295f4e42
NN
7791 echo "Doing TAGS in find" ; \
7792 (cd find && \
1358ccea
NN
7793 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7794 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7795 "RANLIB=$${RANLIB}" \
7796 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7797 TAGS) \
1358ccea
NN
7798 || exit 1
7799
60975492 7800@endif find
1358ccea 7801
295f4e42
NN
7802.PHONY: maybe-install-info-find install-info-find
7803maybe-install-info-find:
60975492
PB
7804@if find
7805maybe-install-info-find: install-info-find
1358ccea 7806
295f4e42
NN
7807install-info-find: \
7808 configure-find \
7809 info-find
7810 @[ -f ./find/Makefile ] || exit 0; \
8c90b13a
L
7811 r=`${PWD_COMMAND}`; export r; \
7812 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 7813 $(SET_LIB_PATH) \
4fc4dd12 7814 $(HOST_EXPORTS) \
d32ab992 7815 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7816 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7817 done; \
295f4e42
NN
7818 echo "Doing install-info in find" ; \
7819 (cd find && \
1358ccea
NN
7820 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7821 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7822 "RANLIB=$${RANLIB}" \
7823 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7824 install-info) \
1358ccea
NN
7825 || exit 1
7826
60975492 7827@endif find
1358ccea 7828
295f4e42
NN
7829.PHONY: maybe-installcheck-find installcheck-find
7830maybe-installcheck-find:
60975492
PB
7831@if find
7832maybe-installcheck-find: installcheck-find
1358ccea 7833
295f4e42
NN
7834installcheck-find: \
7835 configure-find
7836 @[ -f ./find/Makefile ] || exit 0; \
8c90b13a
L
7837 r=`${PWD_COMMAND}`; export r; \
7838 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 7839 $(SET_LIB_PATH) \
4fc4dd12 7840 $(HOST_EXPORTS) \
d32ab992 7841 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7842 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7843 done; \
295f4e42
NN
7844 echo "Doing installcheck in find" ; \
7845 (cd find && \
1358ccea
NN
7846 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7847 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7848 "RANLIB=$${RANLIB}" \
7849 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7850 installcheck) \
1358ccea
NN
7851 || exit 1
7852
60975492 7853@endif find
1358ccea 7854
295f4e42
NN
7855.PHONY: maybe-mostlyclean-find mostlyclean-find
7856maybe-mostlyclean-find:
60975492
PB
7857@if find
7858maybe-mostlyclean-find: mostlyclean-find
1358ccea 7859
295f4e42
NN
7860mostlyclean-find:
7861 @[ -f ./find/Makefile ] || exit 0; \
8c90b13a
L
7862 r=`${PWD_COMMAND}`; export r; \
7863 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 7864 $(SET_LIB_PATH) \
4fc4dd12 7865 $(HOST_EXPORTS) \
d32ab992 7866 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7867 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7868 done; \
295f4e42
NN
7869 echo "Doing mostlyclean in find" ; \
7870 (cd find && \
1358ccea
NN
7871 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7872 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7873 "RANLIB=$${RANLIB}" \
7874 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7875 mostlyclean) \
1358ccea
NN
7876 || exit 1
7877
60975492 7878@endif find
1358ccea 7879
295f4e42
NN
7880.PHONY: maybe-clean-find clean-find
7881maybe-clean-find:
60975492
PB
7882@if find
7883maybe-clean-find: clean-find
1358ccea 7884
295f4e42
NN
7885clean-find:
7886 @[ -f ./find/Makefile ] || exit 0; \
8c90b13a
L
7887 r=`${PWD_COMMAND}`; export r; \
7888 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 7889 $(SET_LIB_PATH) \
4fc4dd12 7890 $(HOST_EXPORTS) \
d32ab992 7891 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7892 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7893 done; \
295f4e42
NN
7894 echo "Doing clean in find" ; \
7895 (cd find && \
1358ccea
NN
7896 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7897 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7898 "RANLIB=$${RANLIB}" \
7899 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7900 clean) \
1358ccea
NN
7901 || exit 1
7902
60975492 7903@endif find
1358ccea 7904
295f4e42
NN
7905.PHONY: maybe-distclean-find distclean-find
7906maybe-distclean-find:
60975492
PB
7907@if find
7908maybe-distclean-find: distclean-find
1358ccea 7909
295f4e42
NN
7910distclean-find:
7911 @[ -f ./find/Makefile ] || exit 0; \
8c90b13a
L
7912 r=`${PWD_COMMAND}`; export r; \
7913 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 7914 $(SET_LIB_PATH) \
4fc4dd12 7915 $(HOST_EXPORTS) \
d32ab992 7916 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7917 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7918 done; \
295f4e42
NN
7919 echo "Doing distclean in find" ; \
7920 (cd find && \
1358ccea
NN
7921 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7922 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7923 "RANLIB=$${RANLIB}" \
7924 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7925 distclean) \
1358ccea
NN
7926 || exit 1
7927
60975492 7928@endif find
1358ccea 7929
295f4e42
NN
7930.PHONY: maybe-maintainer-clean-find maintainer-clean-find
7931maybe-maintainer-clean-find:
60975492
PB
7932@if find
7933maybe-maintainer-clean-find: maintainer-clean-find
1358ccea 7934
295f4e42
NN
7935maintainer-clean-find:
7936 @[ -f ./find/Makefile ] || exit 0; \
8c90b13a
L
7937 r=`${PWD_COMMAND}`; export r; \
7938 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 7939 $(SET_LIB_PATH) \
4fc4dd12 7940 $(HOST_EXPORTS) \
d32ab992 7941 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7942 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7943 done; \
295f4e42
NN
7944 echo "Doing maintainer-clean in find" ; \
7945 (cd find && \
1358ccea
NN
7946 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7947 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7948 "RANLIB=$${RANLIB}" \
7949 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7950 maintainer-clean) \
1358ccea
NN
7951 || exit 1
7952
60975492 7953@endif find
1358ccea 7954
1358ccea 7955
295f4e42
NN
7956.PHONY: configure-flex maybe-configure-flex
7957maybe-configure-flex:
60975492
PB
7958@if flex
7959maybe-configure-flex: configure-flex
295f4e42
NN
7960configure-flex:
7961 @test ! -f flex/Makefile || exit 0; \
7962 [ -d flex ] || mkdir flex; \
8c90b13a
L
7963 r=`${PWD_COMMAND}`; export r; \
7964 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7965 $(HOST_EXPORTS) \
295f4e42
NN
7966 echo Configuring in flex; \
7967 cd flex || exit 1; \
7968 case $(srcdir) in \
7969 \.) \
7970 srcdiroption="--srcdir=."; \
7971 libsrcdir=".";; \
7972 /* | [A-Za-z]:[\\/]*) \
7973 srcdiroption="--srcdir=$(srcdir)/flex"; \
7974 libsrcdir="$$s/flex";; \
7975 *) \
7976 srcdiroption="--srcdir=../$(srcdir)/flex"; \
7977 libsrcdir="$$s/flex";; \
7978 esac; \
7979 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 7980 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 7981 || exit 1
60975492 7982@endif flex
1358ccea 7983
295f4e42
NN
7984.PHONY: all-flex maybe-all-flex
7985maybe-all-flex:
60975492
PB
7986@if flex
7987maybe-all-flex: all-flex
295f4e42
NN
7988all-flex: configure-flex
7989 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 7990 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 7991 $(SET_LIB_PATH) \
4fc4dd12 7992 $(HOST_EXPORTS) \
a52a0a7f 7993 (cd flex && $(MAKE) $(FLAGS_TO_PASS) all)
60975492 7994@endif flex
295f4e42
NN
7995
7996.PHONY: check-flex maybe-check-flex
7997maybe-check-flex:
60975492
PB
7998@if flex
7999maybe-check-flex: check-flex
295f4e42
NN
8000
8001# This module is only tested in a native toolchain.
8002check-flex:
8003 @if [ '$(host)' = '$(target)' ] ; then \
8004 r=`${PWD_COMMAND}`; export r; \
8005 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8006 $(SET_LIB_PATH) \
4fc4dd12 8007 $(HOST_EXPORTS) \
a52a0a7f 8008 (cd flex && $(MAKE) $(FLAGS_TO_PASS) check); \
295f4e42 8009 fi
1358ccea 8010
60975492 8011@endif flex
1358ccea 8012
295f4e42
NN
8013.PHONY: install-flex maybe-install-flex
8014maybe-install-flex:
60975492
PB
8015@if flex
8016maybe-install-flex: install-flex
1358ccea 8017
295f4e42
NN
8018install-flex: installdirs
8019 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 8020 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 8021 $(SET_LIB_PATH) \
4fc4dd12 8022 $(HOST_EXPORTS) \
7c27e184 8023 (cd flex && $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 8024
60975492 8025@endif flex
1358ccea 8026
295f4e42 8027# Other targets (info, dvi, etc.)
1358ccea 8028
295f4e42
NN
8029.PHONY: maybe-info-flex info-flex
8030maybe-info-flex:
60975492
PB
8031@if flex
8032maybe-info-flex: info-flex
295f4e42
NN
8033
8034info-flex: \
8035 configure-flex
8036 @[ -f ./flex/Makefile ] || exit 0; \
8c90b13a
L
8037 r=`${PWD_COMMAND}`; export r; \
8038 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 8039 $(SET_LIB_PATH) \
4fc4dd12 8040 $(HOST_EXPORTS) \
d32ab992 8041 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8042 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8043 done; \
295f4e42
NN
8044 echo "Doing info in flex" ; \
8045 (cd flex && \
1358ccea
NN
8046 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8047 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8048 "RANLIB=$${RANLIB}" \
8049 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8050 info) \
1358ccea
NN
8051 || exit 1
8052
60975492 8053@endif flex
1358ccea 8054
295f4e42
NN
8055.PHONY: maybe-dvi-flex dvi-flex
8056maybe-dvi-flex:
60975492
PB
8057@if flex
8058maybe-dvi-flex: dvi-flex
1358ccea 8059
295f4e42
NN
8060dvi-flex: \
8061 configure-flex
8062 @[ -f ./flex/Makefile ] || exit 0; \
8c90b13a
L
8063 r=`${PWD_COMMAND}`; export r; \
8064 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 8065 $(SET_LIB_PATH) \
4fc4dd12 8066 $(HOST_EXPORTS) \
d32ab992 8067 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8068 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8069 done; \
295f4e42
NN
8070 echo "Doing dvi in flex" ; \
8071 (cd flex && \
1358ccea
NN
8072 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8073 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8074 "RANLIB=$${RANLIB}" \
8075 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8076 dvi) \
1358ccea
NN
8077 || exit 1
8078
60975492 8079@endif flex
1358ccea 8080
295f4e42
NN
8081.PHONY: maybe-TAGS-flex TAGS-flex
8082maybe-TAGS-flex:
60975492
PB
8083@if flex
8084maybe-TAGS-flex: TAGS-flex
1358ccea 8085
295f4e42
NN
8086TAGS-flex: \
8087 configure-flex
8088 @[ -f ./flex/Makefile ] || exit 0; \
8c90b13a
L
8089 r=`${PWD_COMMAND}`; export r; \
8090 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 8091 $(SET_LIB_PATH) \
4fc4dd12 8092 $(HOST_EXPORTS) \
d32ab992 8093 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8094 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8095 done; \
295f4e42
NN
8096 echo "Doing TAGS in flex" ; \
8097 (cd flex && \
1358ccea
NN
8098 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8099 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8100 "RANLIB=$${RANLIB}" \
8101 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8102 TAGS) \
1358ccea
NN
8103 || exit 1
8104
60975492 8105@endif flex
1358ccea 8106
295f4e42
NN
8107.PHONY: maybe-install-info-flex install-info-flex
8108maybe-install-info-flex:
60975492
PB
8109@if flex
8110maybe-install-info-flex: install-info-flex
1358ccea 8111
295f4e42
NN
8112install-info-flex: \
8113 configure-flex \
8114 info-flex
8115 @[ -f ./flex/Makefile ] || exit 0; \
8c90b13a
L
8116 r=`${PWD_COMMAND}`; export r; \
8117 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 8118 $(SET_LIB_PATH) \
4fc4dd12 8119 $(HOST_EXPORTS) \
d32ab992 8120 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8121 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8122 done; \
295f4e42
NN
8123 echo "Doing install-info in flex" ; \
8124 (cd flex && \
1358ccea
NN
8125 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8126 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8127 "RANLIB=$${RANLIB}" \
8128 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8129 install-info) \
1358ccea
NN
8130 || exit 1
8131
60975492 8132@endif flex
1358ccea 8133
295f4e42
NN
8134.PHONY: maybe-installcheck-flex installcheck-flex
8135maybe-installcheck-flex:
60975492
PB
8136@if flex
8137maybe-installcheck-flex: installcheck-flex
1358ccea 8138
295f4e42
NN
8139installcheck-flex: \
8140 configure-flex
8141 @[ -f ./flex/Makefile ] || exit 0; \
8c90b13a
L
8142 r=`${PWD_COMMAND}`; export r; \
8143 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 8144 $(SET_LIB_PATH) \
4fc4dd12 8145 $(HOST_EXPORTS) \
d32ab992 8146 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8147 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8148 done; \
295f4e42
NN
8149 echo "Doing installcheck in flex" ; \
8150 (cd flex && \
1358ccea
NN
8151 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8152 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8153 "RANLIB=$${RANLIB}" \
8154 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8155 installcheck) \
1358ccea
NN
8156 || exit 1
8157
60975492 8158@endif flex
1358ccea 8159
295f4e42
NN
8160.PHONY: maybe-mostlyclean-flex mostlyclean-flex
8161maybe-mostlyclean-flex:
60975492
PB
8162@if flex
8163maybe-mostlyclean-flex: mostlyclean-flex
1358ccea 8164
295f4e42
NN
8165mostlyclean-flex:
8166 @[ -f ./flex/Makefile ] || exit 0; \
8c90b13a
L
8167 r=`${PWD_COMMAND}`; export r; \
8168 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 8169 $(SET_LIB_PATH) \
4fc4dd12 8170 $(HOST_EXPORTS) \
d32ab992 8171 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8172 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8173 done; \
295f4e42
NN
8174 echo "Doing mostlyclean in flex" ; \
8175 (cd flex && \
1358ccea
NN
8176 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8177 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8178 "RANLIB=$${RANLIB}" \
8179 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8180 mostlyclean) \
1358ccea
NN
8181 || exit 1
8182
60975492 8183@endif flex
1358ccea 8184
295f4e42
NN
8185.PHONY: maybe-clean-flex clean-flex
8186maybe-clean-flex:
60975492
PB
8187@if flex
8188maybe-clean-flex: clean-flex
1358ccea 8189
295f4e42
NN
8190clean-flex:
8191 @[ -f ./flex/Makefile ] || exit 0; \
8c90b13a
L
8192 r=`${PWD_COMMAND}`; export r; \
8193 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 8194 $(SET_LIB_PATH) \
4fc4dd12 8195 $(HOST_EXPORTS) \
d32ab992 8196 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8197 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8198 done; \
295f4e42
NN
8199 echo "Doing clean in flex" ; \
8200 (cd flex && \
1358ccea
NN
8201 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8202 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8203 "RANLIB=$${RANLIB}" \
8204 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8205 clean) \
1358ccea
NN
8206 || exit 1
8207
60975492 8208@endif flex
1358ccea 8209
295f4e42
NN
8210.PHONY: maybe-distclean-flex distclean-flex
8211maybe-distclean-flex:
60975492
PB
8212@if flex
8213maybe-distclean-flex: distclean-flex
1358ccea 8214
295f4e42
NN
8215distclean-flex:
8216 @[ -f ./flex/Makefile ] || exit 0; \
8c90b13a
L
8217 r=`${PWD_COMMAND}`; export r; \
8218 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 8219 $(SET_LIB_PATH) \
4fc4dd12 8220 $(HOST_EXPORTS) \
d32ab992 8221 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8222 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8223 done; \
295f4e42
NN
8224 echo "Doing distclean in flex" ; \
8225 (cd flex && \
1358ccea
NN
8226 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8227 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8228 "RANLIB=$${RANLIB}" \
8229 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8230 distclean) \
1358ccea
NN
8231 || exit 1
8232
60975492 8233@endif flex
1358ccea 8234
295f4e42
NN
8235.PHONY: maybe-maintainer-clean-flex maintainer-clean-flex
8236maybe-maintainer-clean-flex:
60975492
PB
8237@if flex
8238maybe-maintainer-clean-flex: maintainer-clean-flex
1358ccea 8239
295f4e42
NN
8240maintainer-clean-flex:
8241 @[ -f ./flex/Makefile ] || exit 0; \
8c90b13a
L
8242 r=`${PWD_COMMAND}`; export r; \
8243 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 8244 $(SET_LIB_PATH) \
4fc4dd12 8245 $(HOST_EXPORTS) \
d32ab992 8246 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8247 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8248 done; \
295f4e42
NN
8249 echo "Doing maintainer-clean in flex" ; \
8250 (cd flex && \
1358ccea
NN
8251 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8252 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8253 "RANLIB=$${RANLIB}" \
8254 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8255 maintainer-clean) \
1358ccea
NN
8256 || exit 1
8257
60975492 8258@endif flex
1358ccea 8259
1358ccea 8260
295f4e42
NN
8261.PHONY: configure-gas maybe-configure-gas
8262maybe-configure-gas:
60975492
PB
8263@if gas
8264maybe-configure-gas: configure-gas
295f4e42 8265configure-gas:
7c27e184
PB
8266 @test -f stage_last && exit 0; \
8267 test ! -f gas/Makefile || exit 0; \
295f4e42 8268 [ -d gas ] || mkdir gas; \
8c90b13a
L
8269 r=`${PWD_COMMAND}`; export r; \
8270 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8271 $(HOST_EXPORTS) \
295f4e42
NN
8272 echo Configuring in gas; \
8273 cd gas || exit 1; \
8274 case $(srcdir) in \
8275 \.) \
8276 srcdiroption="--srcdir=."; \
8277 libsrcdir=".";; \
8278 /* | [A-Za-z]:[\\/]*) \
8279 srcdiroption="--srcdir=$(srcdir)/gas"; \
8280 libsrcdir="$$s/gas";; \
8281 *) \
8282 srcdiroption="--srcdir=../$(srcdir)/gas"; \
8283 libsrcdir="$$s/gas";; \
8284 esac; \
8285 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 8286 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 8287 || exit 1
60975492 8288@endif gas
1358ccea 8289
295f4e42
NN
8290.PHONY: all-gas maybe-all-gas
8291maybe-all-gas:
60975492
PB
8292@if gas
8293maybe-all-gas: all-gas
295f4e42 8294all-gas: configure-gas
7c27e184
PB
8295 @test -f stage_last && exit 0; \
8296 r=`${PWD_COMMAND}`; export r; \
295f4e42
NN
8297 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8298 $(SET_LIB_PATH) \
4fc4dd12 8299 $(HOST_EXPORTS) \
a52a0a7f 8300 (cd gas && $(MAKE) $(FLAGS_TO_PASS) all)
60975492 8301@endif gas
1358ccea 8302
295f4e42
NN
8303.PHONY: check-gas maybe-check-gas
8304maybe-check-gas:
60975492
PB
8305@if gas
8306maybe-check-gas: check-gas
1358ccea 8307
295f4e42
NN
8308check-gas:
8309 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 8310 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 8311 $(SET_LIB_PATH) \
4fc4dd12 8312 $(HOST_EXPORTS) \
7c27e184 8313 (cd gas && $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 8314
60975492 8315@endif gas
1358ccea 8316
295f4e42
NN
8317.PHONY: install-gas maybe-install-gas
8318maybe-install-gas:
60975492
PB
8319@if gas
8320maybe-install-gas: install-gas
1358ccea 8321
295f4e42
NN
8322install-gas: installdirs
8323 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 8324 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 8325 $(SET_LIB_PATH) \
4fc4dd12 8326 $(HOST_EXPORTS) \
7c27e184 8327 (cd gas && $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 8328
60975492 8329@endif gas
1358ccea 8330
295f4e42 8331# Other targets (info, dvi, etc.)
1358ccea 8332
295f4e42
NN
8333.PHONY: maybe-info-gas info-gas
8334maybe-info-gas:
60975492
PB
8335@if gas
8336maybe-info-gas: info-gas
295f4e42
NN
8337
8338info-gas: \
8339 configure-gas
8340 @[ -f ./gas/Makefile ] || exit 0; \
8c90b13a
L
8341 r=`${PWD_COMMAND}`; export r; \
8342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 8343 $(SET_LIB_PATH) \
4fc4dd12 8344 $(HOST_EXPORTS) \
d32ab992 8345 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8346 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8347 done; \
295f4e42
NN
8348 echo "Doing info in gas" ; \
8349 (cd gas && \
1358ccea
NN
8350 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8351 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8352 "RANLIB=$${RANLIB}" \
8353 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8354 info) \
1358ccea
NN
8355 || exit 1
8356
60975492 8357@endif gas
1358ccea 8358
295f4e42
NN
8359.PHONY: maybe-dvi-gas dvi-gas
8360maybe-dvi-gas:
60975492
PB
8361@if gas
8362maybe-dvi-gas: dvi-gas
1358ccea 8363
295f4e42
NN
8364dvi-gas: \
8365 configure-gas
8366 @[ -f ./gas/Makefile ] || exit 0; \
8c90b13a
L
8367 r=`${PWD_COMMAND}`; export r; \
8368 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 8369 $(SET_LIB_PATH) \
4fc4dd12 8370 $(HOST_EXPORTS) \
d32ab992 8371 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8372 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8373 done; \
295f4e42
NN
8374 echo "Doing dvi in gas" ; \
8375 (cd gas && \
1358ccea
NN
8376 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8377 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8378 "RANLIB=$${RANLIB}" \
8379 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8380 dvi) \
1358ccea
NN
8381 || exit 1
8382
60975492 8383@endif gas
1358ccea 8384
295f4e42
NN
8385.PHONY: maybe-TAGS-gas TAGS-gas
8386maybe-TAGS-gas:
60975492
PB
8387@if gas
8388maybe-TAGS-gas: TAGS-gas
1358ccea 8389
295f4e42
NN
8390TAGS-gas: \
8391 configure-gas
8392 @[ -f ./gas/Makefile ] || exit 0; \
8c90b13a
L
8393 r=`${PWD_COMMAND}`; export r; \
8394 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 8395 $(SET_LIB_PATH) \
4fc4dd12 8396 $(HOST_EXPORTS) \
d32ab992 8397 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8398 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8399 done; \
295f4e42
NN
8400 echo "Doing TAGS in gas" ; \
8401 (cd gas && \
1358ccea
NN
8402 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8403 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8404 "RANLIB=$${RANLIB}" \
8405 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8406 TAGS) \
1358ccea
NN
8407 || exit 1
8408
60975492 8409@endif gas
1358ccea 8410
295f4e42
NN
8411.PHONY: maybe-install-info-gas install-info-gas
8412maybe-install-info-gas:
60975492
PB
8413@if gas
8414maybe-install-info-gas: install-info-gas
1358ccea 8415
295f4e42
NN
8416install-info-gas: \
8417 configure-gas \
8418 info-gas
8419 @[ -f ./gas/Makefile ] || exit 0; \
8c90b13a
L
8420 r=`${PWD_COMMAND}`; export r; \
8421 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 8422 $(SET_LIB_PATH) \
4fc4dd12 8423 $(HOST_EXPORTS) \
d32ab992 8424 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8425 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8426 done; \
295f4e42
NN
8427 echo "Doing install-info in gas" ; \
8428 (cd gas && \
1358ccea
NN
8429 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8430 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8431 "RANLIB=$${RANLIB}" \
8432 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8433 install-info) \
1358ccea
NN
8434 || exit 1
8435
60975492 8436@endif gas
1358ccea 8437
295f4e42
NN
8438.PHONY: maybe-installcheck-gas installcheck-gas
8439maybe-installcheck-gas:
60975492
PB
8440@if gas
8441maybe-installcheck-gas: installcheck-gas
1358ccea 8442
295f4e42
NN
8443installcheck-gas: \
8444 configure-gas
8445 @[ -f ./gas/Makefile ] || exit 0; \
8c90b13a
L
8446 r=`${PWD_COMMAND}`; export r; \
8447 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 8448 $(SET_LIB_PATH) \
4fc4dd12 8449 $(HOST_EXPORTS) \
d32ab992 8450 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8451 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8452 done; \
295f4e42
NN
8453 echo "Doing installcheck in gas" ; \
8454 (cd gas && \
1358ccea
NN
8455 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8456 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8457 "RANLIB=$${RANLIB}" \
8458 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8459 installcheck) \
1358ccea
NN
8460 || exit 1
8461
60975492 8462@endif gas
1358ccea 8463
295f4e42
NN
8464.PHONY: maybe-mostlyclean-gas mostlyclean-gas
8465maybe-mostlyclean-gas:
60975492
PB
8466@if gas
8467maybe-mostlyclean-gas: mostlyclean-gas
1358ccea 8468
295f4e42
NN
8469mostlyclean-gas:
8470 @[ -f ./gas/Makefile ] || exit 0; \
8c90b13a
L
8471 r=`${PWD_COMMAND}`; export r; \
8472 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 8473 $(SET_LIB_PATH) \
4fc4dd12 8474 $(HOST_EXPORTS) \
d32ab992 8475 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8476 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8477 done; \
295f4e42
NN
8478 echo "Doing mostlyclean in gas" ; \
8479 (cd gas && \
1358ccea
NN
8480 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8481 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8482 "RANLIB=$${RANLIB}" \
8483 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8484 mostlyclean) \
1358ccea
NN
8485 || exit 1
8486
60975492 8487@endif gas
1358ccea 8488
295f4e42
NN
8489.PHONY: maybe-clean-gas clean-gas
8490maybe-clean-gas:
60975492
PB
8491@if gas
8492maybe-clean-gas: clean-gas
1358ccea 8493
295f4e42
NN
8494clean-gas:
8495 @[ -f ./gas/Makefile ] || exit 0; \
8c90b13a
L
8496 r=`${PWD_COMMAND}`; export r; \
8497 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 8498 $(SET_LIB_PATH) \
4fc4dd12 8499 $(HOST_EXPORTS) \
d32ab992 8500 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8501 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8502 done; \
295f4e42
NN
8503 echo "Doing clean in gas" ; \
8504 (cd gas && \
1358ccea
NN
8505 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8506 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8507 "RANLIB=$${RANLIB}" \
8508 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8509 clean) \
1358ccea
NN
8510 || exit 1
8511
60975492 8512@endif gas
1358ccea 8513
295f4e42
NN
8514.PHONY: maybe-distclean-gas distclean-gas
8515maybe-distclean-gas:
60975492
PB
8516@if gas
8517maybe-distclean-gas: distclean-gas
1358ccea 8518
295f4e42
NN
8519distclean-gas:
8520 @[ -f ./gas/Makefile ] || exit 0; \
8c90b13a
L
8521 r=`${PWD_COMMAND}`; export r; \
8522 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 8523 $(SET_LIB_PATH) \
4fc4dd12 8524 $(HOST_EXPORTS) \
d32ab992 8525 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8526 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8527 done; \
295f4e42
NN
8528 echo "Doing distclean in gas" ; \
8529 (cd gas && \
1358ccea
NN
8530 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8531 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8532 "RANLIB=$${RANLIB}" \
8533 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8534 distclean) \
1358ccea
NN
8535 || exit 1
8536
60975492 8537@endif gas
1358ccea 8538
295f4e42
NN
8539.PHONY: maybe-maintainer-clean-gas maintainer-clean-gas
8540maybe-maintainer-clean-gas:
60975492
PB
8541@if gas
8542maybe-maintainer-clean-gas: maintainer-clean-gas
1358ccea 8543
295f4e42
NN
8544maintainer-clean-gas:
8545 @[ -f ./gas/Makefile ] || exit 0; \
8c90b13a
L
8546 r=`${PWD_COMMAND}`; export r; \
8547 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 8548 $(SET_LIB_PATH) \
4fc4dd12 8549 $(HOST_EXPORTS) \
d32ab992 8550 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8551 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8552 done; \
295f4e42
NN
8553 echo "Doing maintainer-clean in gas" ; \
8554 (cd gas && \
1358ccea
NN
8555 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8556 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8557 "RANLIB=$${RANLIB}" \
8558 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8559 maintainer-clean) \
1358ccea
NN
8560 || exit 1
8561
60975492 8562@endif gas
1358ccea 8563
1358ccea 8564
d32ab992
PB
8565.PHONY: configure-gcc maybe-configure-gcc
8566maybe-configure-gcc:
8567@if gcc
8568maybe-configure-gcc: configure-gcc
8569configure-gcc:
7c27e184
PB
8570 @test -f stage_last && exit 0; \
8571 test ! -f gcc/Makefile || exit 0; \
d32ab992 8572 [ -d gcc ] || mkdir gcc; \
8c90b13a
L
8573 r=`${PWD_COMMAND}`; export r; \
8574 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8575 $(HOST_EXPORTS) \
d32ab992
PB
8576 echo Configuring in gcc; \
8577 cd gcc || exit 1; \
295f4e42
NN
8578 case $(srcdir) in \
8579 \.) \
8580 srcdiroption="--srcdir=."; \
8581 libsrcdir=".";; \
8582 /* | [A-Za-z]:[\\/]*) \
d32ab992
PB
8583 srcdiroption="--srcdir=$(srcdir)/gcc"; \
8584 libsrcdir="$$s/gcc";; \
295f4e42 8585 *) \
d32ab992
PB
8586 srcdiroption="--srcdir=../$(srcdir)/gcc"; \
8587 libsrcdir="$$s/gcc";; \
295f4e42
NN
8588 esac; \
8589 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 8590 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 8591 || exit 1
d32ab992 8592@endif gcc
1358ccea 8593
d32ab992
PB
8594.PHONY: all-gcc maybe-all-gcc
8595maybe-all-gcc:
8596@if gcc
8597maybe-all-gcc: all-gcc
8598all-gcc: configure-gcc
7c27e184
PB
8599 @test -f stage_last && exit 0; \
8600 r=`${PWD_COMMAND}`; export r; \
295f4e42
NN
8601 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8602 $(SET_LIB_PATH) \
4fc4dd12 8603 $(HOST_EXPORTS) \
d32ab992
PB
8604 (cd gcc && $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
8605 `if [ -f gcc/stage_last ]; then echo quickstrap ; else echo all; fi` )
8606@endif gcc
1358ccea 8607
d32ab992
PB
8608.PHONY: check-gcc maybe-check-gcc
8609maybe-check-gcc:
8610@if gcc
8611maybe-check-gcc: check-gcc
1358ccea 8612
d32ab992 8613check-gcc:
295f4e42 8614 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 8615 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 8616 $(SET_LIB_PATH) \
4fc4dd12 8617 $(HOST_EXPORTS) \
7c27e184 8618 (cd gcc && $(MAKE) $(FLAGS_TO_PASS)$(EXTRA_GCC_FLAGS) check)
1358ccea 8619
d32ab992 8620@endif gcc
1358ccea 8621
d32ab992
PB
8622.PHONY: install-gcc maybe-install-gcc
8623maybe-install-gcc:
8624@if gcc
8625maybe-install-gcc: install-gcc
1358ccea 8626
d32ab992 8627install-gcc: installdirs
295f4e42 8628 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 8629 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 8630 $(SET_LIB_PATH) \
4fc4dd12 8631 $(HOST_EXPORTS) \
7c27e184 8632 (cd gcc && $(MAKE) $(FLAGS_TO_PASS)$(EXTRA_GCC_FLAGS) install)
1358ccea 8633
d32ab992 8634@endif gcc
1358ccea 8635
295f4e42 8636# Other targets (info, dvi, etc.)
1358ccea 8637
d32ab992
PB
8638.PHONY: maybe-info-gcc info-gcc
8639maybe-info-gcc:
8640@if gcc
8641maybe-info-gcc: info-gcc
1358ccea 8642
d32ab992
PB
8643info-gcc: \
8644 configure-gcc
8645 @[ -f ./gcc/Makefile ] || exit 0; \
8c90b13a
L
8646 r=`${PWD_COMMAND}`; export r; \
8647 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 8648 $(SET_LIB_PATH) \
4fc4dd12 8649 $(HOST_EXPORTS) \
d32ab992 8650 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
1358ccea
NN
8651 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8652 done; \
d32ab992
PB
8653 echo "Doing info in gcc" ; \
8654 (cd gcc && \
1358ccea
NN
8655 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8656 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8657 "RANLIB=$${RANLIB}" \
8658 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8659 info) \
1358ccea
NN
8660 || exit 1
8661
d32ab992 8662@endif gcc
1358ccea 8663
d32ab992
PB
8664.PHONY: maybe-dvi-gcc dvi-gcc
8665maybe-dvi-gcc:
8666@if gcc
8667maybe-dvi-gcc: dvi-gcc
1358ccea 8668
d32ab992
PB
8669dvi-gcc: \
8670 configure-gcc
8671 @[ -f ./gcc/Makefile ] || exit 0; \
8c90b13a
L
8672 r=`${PWD_COMMAND}`; export r; \
8673 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 8674 $(SET_LIB_PATH) \
4fc4dd12 8675 $(HOST_EXPORTS) \
d32ab992 8676 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
1358ccea
NN
8677 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8678 done; \
d32ab992
PB
8679 echo "Doing dvi in gcc" ; \
8680 (cd gcc && \
1358ccea
NN
8681 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8682 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8683 "RANLIB=$${RANLIB}" \
8684 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8685 dvi) \
1358ccea
NN
8686 || exit 1
8687
d32ab992 8688@endif gcc
1358ccea 8689
d32ab992
PB
8690.PHONY: maybe-TAGS-gcc TAGS-gcc
8691maybe-TAGS-gcc:
8692@if gcc
8693maybe-TAGS-gcc: TAGS-gcc
1358ccea 8694
d32ab992
PB
8695TAGS-gcc: \
8696 configure-gcc
8697 @[ -f ./gcc/Makefile ] || exit 0; \
8c90b13a
L
8698 r=`${PWD_COMMAND}`; export r; \
8699 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 8700 $(SET_LIB_PATH) \
4fc4dd12 8701 $(HOST_EXPORTS) \
d32ab992 8702 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
1358ccea
NN
8703 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8704 done; \
d32ab992
PB
8705 echo "Doing TAGS in gcc" ; \
8706 (cd gcc && \
1358ccea
NN
8707 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8708 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8709 "RANLIB=$${RANLIB}" \
8710 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8711 TAGS) \
1358ccea
NN
8712 || exit 1
8713
d32ab992 8714@endif gcc
1358ccea 8715
d32ab992
PB
8716.PHONY: maybe-install-info-gcc install-info-gcc
8717maybe-install-info-gcc:
8718@if gcc
8719maybe-install-info-gcc: install-info-gcc
1358ccea 8720
d32ab992
PB
8721install-info-gcc: \
8722 configure-gcc \
8723 info-gcc
8724 @[ -f ./gcc/Makefile ] || exit 0; \
8c90b13a
L
8725 r=`${PWD_COMMAND}`; export r; \
8726 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 8727 $(SET_LIB_PATH) \
4fc4dd12 8728 $(HOST_EXPORTS) \
d32ab992 8729 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
1358ccea
NN
8730 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8731 done; \
d32ab992
PB
8732 echo "Doing install-info in gcc" ; \
8733 (cd gcc && \
1358ccea
NN
8734 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8735 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8736 "RANLIB=$${RANLIB}" \
8737 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8738 install-info) \
1358ccea
NN
8739 || exit 1
8740
d32ab992 8741@endif gcc
1358ccea 8742
d32ab992
PB
8743.PHONY: maybe-installcheck-gcc installcheck-gcc
8744maybe-installcheck-gcc:
8745@if gcc
8746maybe-installcheck-gcc: installcheck-gcc
1358ccea 8747
d32ab992
PB
8748installcheck-gcc: \
8749 configure-gcc
8750 @[ -f ./gcc/Makefile ] || exit 0; \
8c90b13a
L
8751 r=`${PWD_COMMAND}`; export r; \
8752 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 8753 $(SET_LIB_PATH) \
4fc4dd12 8754 $(HOST_EXPORTS) \
d32ab992 8755 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
1358ccea
NN
8756 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8757 done; \
d32ab992
PB
8758 echo "Doing installcheck in gcc" ; \
8759 (cd gcc && \
1358ccea
NN
8760 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8761 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8762 "RANLIB=$${RANLIB}" \
8763 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8764 installcheck) \
1358ccea
NN
8765 || exit 1
8766
d32ab992 8767@endif gcc
1358ccea 8768
d32ab992
PB
8769.PHONY: maybe-mostlyclean-gcc mostlyclean-gcc
8770maybe-mostlyclean-gcc:
8771@if gcc
8772maybe-mostlyclean-gcc: mostlyclean-gcc
1358ccea 8773
d32ab992
PB
8774mostlyclean-gcc:
8775 @[ -f ./gcc/Makefile ] || exit 0; \
8c90b13a
L
8776 r=`${PWD_COMMAND}`; export r; \
8777 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 8778 $(SET_LIB_PATH) \
4fc4dd12 8779 $(HOST_EXPORTS) \
d32ab992 8780 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
1358ccea
NN
8781 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8782 done; \
d32ab992
PB
8783 echo "Doing mostlyclean in gcc" ; \
8784 (cd gcc && \
1358ccea
NN
8785 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8786 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8787 "RANLIB=$${RANLIB}" \
8788 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8789 mostlyclean) \
1358ccea
NN
8790 || exit 1
8791
d32ab992 8792@endif gcc
1358ccea 8793
d32ab992
PB
8794.PHONY: maybe-clean-gcc clean-gcc
8795maybe-clean-gcc:
8796@if gcc
8797maybe-clean-gcc: clean-gcc
1358ccea 8798
d32ab992
PB
8799clean-gcc:
8800 @[ -f ./gcc/Makefile ] || exit 0; \
8c90b13a
L
8801 r=`${PWD_COMMAND}`; export r; \
8802 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 8803 $(SET_LIB_PATH) \
4fc4dd12 8804 $(HOST_EXPORTS) \
d32ab992 8805 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
1358ccea
NN
8806 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8807 done; \
d32ab992
PB
8808 echo "Doing clean in gcc" ; \
8809 (cd gcc && \
1358ccea
NN
8810 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8811 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8812 "RANLIB=$${RANLIB}" \
8813 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8814 clean) \
1358ccea
NN
8815 || exit 1
8816
d32ab992 8817@endif gcc
1358ccea 8818
d32ab992
PB
8819.PHONY: maybe-distclean-gcc distclean-gcc
8820maybe-distclean-gcc:
8821@if gcc
8822maybe-distclean-gcc: distclean-gcc
1358ccea 8823
d32ab992
PB
8824distclean-gcc:
8825 @[ -f ./gcc/Makefile ] || exit 0; \
8c90b13a
L
8826 r=`${PWD_COMMAND}`; export r; \
8827 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 8828 $(SET_LIB_PATH) \
4fc4dd12 8829 $(HOST_EXPORTS) \
d32ab992 8830 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
1358ccea
NN
8831 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8832 done; \
d32ab992
PB
8833 echo "Doing distclean in gcc" ; \
8834 (cd gcc && \
1358ccea
NN
8835 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8836 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8837 "RANLIB=$${RANLIB}" \
8838 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8839 distclean) \
1358ccea
NN
8840 || exit 1
8841
d32ab992 8842@endif gcc
1358ccea 8843
d32ab992
PB
8844.PHONY: maybe-maintainer-clean-gcc maintainer-clean-gcc
8845maybe-maintainer-clean-gcc:
8846@if gcc
8847maybe-maintainer-clean-gcc: maintainer-clean-gcc
1358ccea 8848
d32ab992
PB
8849maintainer-clean-gcc:
8850 @[ -f ./gcc/Makefile ] || exit 0; \
8c90b13a
L
8851 r=`${PWD_COMMAND}`; export r; \
8852 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 8853 $(SET_LIB_PATH) \
4fc4dd12 8854 $(HOST_EXPORTS) \
d32ab992 8855 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
1358ccea
NN
8856 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8857 done; \
d32ab992
PB
8858 echo "Doing maintainer-clean in gcc" ; \
8859 (cd gcc && \
1358ccea
NN
8860 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8861 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8862 "RANLIB=$${RANLIB}" \
8863 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8864 maintainer-clean) \
1358ccea
NN
8865 || exit 1
8866
d32ab992 8867@endif gcc
1358ccea 8868
1358ccea 8869
d32ab992
PB
8870.PHONY: configure-gawk maybe-configure-gawk
8871maybe-configure-gawk:
8872@if gawk
8873maybe-configure-gawk: configure-gawk
8874configure-gawk:
8875 @test ! -f gawk/Makefile || exit 0; \
8876 [ -d gawk ] || mkdir gawk; \
8c90b13a
L
8877 r=`${PWD_COMMAND}`; export r; \
8878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8879 $(HOST_EXPORTS) \
d32ab992
PB
8880 echo Configuring in gawk; \
8881 cd gawk || exit 1; \
295f4e42
NN
8882 case $(srcdir) in \
8883 \.) \
8884 srcdiroption="--srcdir=."; \
8885 libsrcdir=".";; \
8886 /* | [A-Za-z]:[\\/]*) \
d32ab992
PB
8887 srcdiroption="--srcdir=$(srcdir)/gawk"; \
8888 libsrcdir="$$s/gawk";; \
295f4e42 8889 *) \
d32ab992
PB
8890 srcdiroption="--srcdir=../$(srcdir)/gawk"; \
8891 libsrcdir="$$s/gawk";; \
295f4e42
NN
8892 esac; \
8893 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 8894 $(HOST_CONFIGARGS) $${srcdiroption} \
295f4e42 8895 || exit 1
d32ab992 8896@endif gawk
295f4e42 8897
d32ab992
PB
8898.PHONY: all-gawk maybe-all-gawk
8899maybe-all-gawk:
8900@if gawk
8901maybe-all-gawk: all-gawk
8902all-gawk: configure-gawk
295f4e42
NN
8903 @r=`${PWD_COMMAND}`; export r; \
8904 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 8905 $(SET_LIB_PATH) \
4fc4dd12 8906 $(HOST_EXPORTS) \
d32ab992
PB
8907 (cd gawk && $(MAKE) $(FLAGS_TO_PASS) all)
8908@endif gawk
295f4e42 8909
d32ab992
PB
8910.PHONY: check-gawk maybe-check-gawk
8911maybe-check-gawk:
8912@if gawk
8913maybe-check-gawk: check-gawk
295f4e42 8914
d32ab992 8915check-gawk:
295f4e42
NN
8916 @r=`${PWD_COMMAND}`; export r; \
8917 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8918 $(SET_LIB_PATH) \
4fc4dd12 8919 $(HOST_EXPORTS) \
7c27e184 8920 (cd gawk && $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 8921
d32ab992 8922@endif gawk
295f4e42 8923
d32ab992
PB
8924.PHONY: install-gawk maybe-install-gawk
8925maybe-install-gawk:
8926@if gawk
8927maybe-install-gawk: install-gawk
295f4e42 8928
d32ab992 8929install-gawk: installdirs
295f4e42
NN
8930 @r=`${PWD_COMMAND}`; export r; \
8931 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8932 $(SET_LIB_PATH) \
4fc4dd12 8933 $(HOST_EXPORTS) \
7c27e184 8934 (cd gawk && $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 8935
d32ab992 8936@endif gawk
295f4e42
NN
8937
8938# Other targets (info, dvi, etc.)
8939
d32ab992
PB
8940.PHONY: maybe-info-gawk info-gawk
8941maybe-info-gawk:
8942@if gawk
8943maybe-info-gawk: info-gawk
295f4e42 8944
d32ab992
PB
8945info-gawk: \
8946 configure-gawk
8947 @[ -f ./gawk/Makefile ] || exit 0; \
295f4e42
NN
8948 r=`${PWD_COMMAND}`; export r; \
8949 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8950 $(SET_LIB_PATH) \
4fc4dd12 8951 $(HOST_EXPORTS) \
d32ab992 8952 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8953 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8954 done; \
d32ab992
PB
8955 echo "Doing info in gawk" ; \
8956 (cd gawk && \
1358ccea
NN
8957 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8958 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8959 "RANLIB=$${RANLIB}" \
8960 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8961 info) \
1358ccea
NN
8962 || exit 1
8963
d32ab992 8964@endif gawk
1358ccea 8965
d32ab992
PB
8966.PHONY: maybe-dvi-gawk dvi-gawk
8967maybe-dvi-gawk:
8968@if gawk
8969maybe-dvi-gawk: dvi-gawk
1358ccea 8970
d32ab992
PB
8971dvi-gawk: \
8972 configure-gawk
8973 @[ -f ./gawk/Makefile ] || exit 0; \
8c90b13a
L
8974 r=`${PWD_COMMAND}`; export r; \
8975 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 8976 $(SET_LIB_PATH) \
4fc4dd12 8977 $(HOST_EXPORTS) \
d32ab992 8978 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8979 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8980 done; \
d32ab992
PB
8981 echo "Doing dvi in gawk" ; \
8982 (cd gawk && \
1358ccea
NN
8983 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8984 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8985 "RANLIB=$${RANLIB}" \
8986 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8987 dvi) \
1358ccea
NN
8988 || exit 1
8989
d32ab992 8990@endif gawk
1358ccea 8991
d32ab992
PB
8992.PHONY: maybe-TAGS-gawk TAGS-gawk
8993maybe-TAGS-gawk:
8994@if gawk
8995maybe-TAGS-gawk: TAGS-gawk
d9cdb878 8996
d32ab992
PB
8997TAGS-gawk: \
8998 configure-gawk
8999 @[ -f ./gawk/Makefile ] || exit 0; \
d9cdb878
AC
9000 r=`${PWD_COMMAND}`; export r; \
9001 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9002 $(SET_LIB_PATH) \
4fc4dd12 9003 $(HOST_EXPORTS) \
d32ab992 9004 for flag in $(EXTRA_HOST_FLAGS) ; do \
d9cdb878
AC
9005 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9006 done; \
d32ab992
PB
9007 echo "Doing TAGS in gawk" ; \
9008 (cd gawk && \
d9cdb878
AC
9009 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9010 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9011 "RANLIB=$${RANLIB}" \
9012 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9013 TAGS) \
d9cdb878
AC
9014 || exit 1
9015
d32ab992 9016@endif gawk
d9cdb878 9017
d32ab992
PB
9018.PHONY: maybe-install-info-gawk install-info-gawk
9019maybe-install-info-gawk:
9020@if gawk
9021maybe-install-info-gawk: install-info-gawk
1358ccea 9022
d32ab992
PB
9023install-info-gawk: \
9024 configure-gawk \
9025 info-gawk
9026 @[ -f ./gawk/Makefile ] || exit 0; \
8c90b13a
L
9027 r=`${PWD_COMMAND}`; export r; \
9028 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 9029 $(SET_LIB_PATH) \
4fc4dd12 9030 $(HOST_EXPORTS) \
d32ab992 9031 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9032 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9033 done; \
d32ab992
PB
9034 echo "Doing install-info in gawk" ; \
9035 (cd gawk && \
1358ccea
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}" \
d32ab992 9040 install-info) \
1358ccea
NN
9041 || exit 1
9042
d32ab992 9043@endif gawk
1358ccea 9044
d32ab992
PB
9045.PHONY: maybe-installcheck-gawk installcheck-gawk
9046maybe-installcheck-gawk:
9047@if gawk
9048maybe-installcheck-gawk: installcheck-gawk
1358ccea 9049
d32ab992
PB
9050installcheck-gawk: \
9051 configure-gawk
9052 @[ -f ./gawk/Makefile ] || exit 0; \
8c90b13a
L
9053 r=`${PWD_COMMAND}`; export r; \
9054 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 9055 $(SET_LIB_PATH) \
4fc4dd12 9056 $(HOST_EXPORTS) \
d32ab992 9057 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9058 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9059 done; \
d32ab992
PB
9060 echo "Doing installcheck in gawk" ; \
9061 (cd gawk && \
1358ccea
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}" \
d32ab992 9066 installcheck) \
1358ccea
NN
9067 || exit 1
9068
d32ab992 9069@endif gawk
1358ccea 9070
d32ab992
PB
9071.PHONY: maybe-mostlyclean-gawk mostlyclean-gawk
9072maybe-mostlyclean-gawk:
9073@if gawk
9074maybe-mostlyclean-gawk: mostlyclean-gawk
1358ccea 9075
d32ab992
PB
9076mostlyclean-gawk:
9077 @[ -f ./gawk/Makefile ] || exit 0; \
8c90b13a
L
9078 r=`${PWD_COMMAND}`; export r; \
9079 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 9080 $(SET_LIB_PATH) \
4fc4dd12 9081 $(HOST_EXPORTS) \
d32ab992 9082 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9083 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9084 done; \
d32ab992
PB
9085 echo "Doing mostlyclean in gawk" ; \
9086 (cd gawk && \
1358ccea
NN
9087 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9088 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9089 "RANLIB=$${RANLIB}" \
9090 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9091 mostlyclean) \
1358ccea
NN
9092 || exit 1
9093
d32ab992 9094@endif gawk
1358ccea 9095
d32ab992
PB
9096.PHONY: maybe-clean-gawk clean-gawk
9097maybe-clean-gawk:
9098@if gawk
9099maybe-clean-gawk: clean-gawk
1358ccea 9100
d32ab992
PB
9101clean-gawk:
9102 @[ -f ./gawk/Makefile ] || exit 0; \
8c90b13a
L
9103 r=`${PWD_COMMAND}`; export r; \
9104 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 9105 $(SET_LIB_PATH) \
4fc4dd12 9106 $(HOST_EXPORTS) \
d32ab992 9107 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9108 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9109 done; \
d32ab992
PB
9110 echo "Doing clean in gawk" ; \
9111 (cd gawk && \
1358ccea
NN
9112 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9113 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9114 "RANLIB=$${RANLIB}" \
9115 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9116 clean) \
1358ccea
NN
9117 || exit 1
9118
d32ab992 9119@endif gawk
1358ccea 9120
d32ab992
PB
9121.PHONY: maybe-distclean-gawk distclean-gawk
9122maybe-distclean-gawk:
9123@if gawk
9124maybe-distclean-gawk: distclean-gawk
1358ccea 9125
d32ab992
PB
9126distclean-gawk:
9127 @[ -f ./gawk/Makefile ] || exit 0; \
8c90b13a
L
9128 r=`${PWD_COMMAND}`; export r; \
9129 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 9130 $(SET_LIB_PATH) \
4fc4dd12 9131 $(HOST_EXPORTS) \
d32ab992 9132 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9133 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9134 done; \
d32ab992
PB
9135 echo "Doing distclean in gawk" ; \
9136 (cd gawk && \
1358ccea
NN
9137 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9138 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9139 "RANLIB=$${RANLIB}" \
9140 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9141 distclean) \
1358ccea
NN
9142 || exit 1
9143
d32ab992 9144@endif gawk
1358ccea 9145
d32ab992
PB
9146.PHONY: maybe-maintainer-clean-gawk maintainer-clean-gawk
9147maybe-maintainer-clean-gawk:
9148@if gawk
9149maybe-maintainer-clean-gawk: maintainer-clean-gawk
1358ccea 9150
d32ab992
PB
9151maintainer-clean-gawk:
9152 @[ -f ./gawk/Makefile ] || exit 0; \
8c90b13a
L
9153 r=`${PWD_COMMAND}`; export r; \
9154 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 9155 $(SET_LIB_PATH) \
4fc4dd12 9156 $(HOST_EXPORTS) \
d32ab992 9157 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9158 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9159 done; \
d32ab992
PB
9160 echo "Doing maintainer-clean in gawk" ; \
9161 (cd gawk && \
1358ccea
NN
9162 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9163 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9164 "RANLIB=$${RANLIB}" \
9165 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9166 maintainer-clean) \
1358ccea
NN
9167 || exit 1
9168
d32ab992 9169@endif gawk
1358ccea 9170
1358ccea 9171
d32ab992
PB
9172.PHONY: configure-gettext maybe-configure-gettext
9173maybe-configure-gettext:
9174@if gettext
9175maybe-configure-gettext: configure-gettext
9176configure-gettext:
9177 @test ! -f gettext/Makefile || exit 0; \
9178 [ -d gettext ] || mkdir gettext; \
295f4e42
NN
9179 r=`${PWD_COMMAND}`; export r; \
9180 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9181 $(HOST_EXPORTS) \
d32ab992
PB
9182 echo Configuring in gettext; \
9183 cd gettext || exit 1; \
295f4e42
NN
9184 case $(srcdir) in \
9185 \.) \
9186 srcdiroption="--srcdir=."; \
9187 libsrcdir=".";; \
9188 /* | [A-Za-z]:[\\/]*) \
d32ab992
PB
9189 srcdiroption="--srcdir=$(srcdir)/gettext"; \
9190 libsrcdir="$$s/gettext";; \
295f4e42 9191 *) \
d32ab992
PB
9192 srcdiroption="--srcdir=../$(srcdir)/gettext"; \
9193 libsrcdir="$$s/gettext";; \
295f4e42
NN
9194 esac; \
9195 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 9196 $(HOST_CONFIGARGS) $${srcdiroption} \
295f4e42 9197 || exit 1
d32ab992 9198@endif gettext
295f4e42 9199
d32ab992
PB
9200.PHONY: all-gettext maybe-all-gettext
9201maybe-all-gettext:
9202@if gettext
9203maybe-all-gettext: all-gettext
9204all-gettext: configure-gettext
295f4e42
NN
9205 @r=`${PWD_COMMAND}`; export r; \
9206 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9207 $(SET_LIB_PATH) \
4fc4dd12 9208 $(HOST_EXPORTS) \
d32ab992
PB
9209 (cd gettext && $(MAKE) $(FLAGS_TO_PASS) all)
9210@endif gettext
295f4e42 9211
d32ab992
PB
9212.PHONY: check-gettext maybe-check-gettext
9213maybe-check-gettext:
9214@if gettext
9215maybe-check-gettext: check-gettext
295f4e42 9216
d32ab992 9217check-gettext:
295f4e42
NN
9218 @r=`${PWD_COMMAND}`; export r; \
9219 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9220 $(SET_LIB_PATH) \
4fc4dd12 9221 $(HOST_EXPORTS) \
7c27e184 9222 (cd gettext && $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 9223
d32ab992 9224@endif gettext
295f4e42 9225
d32ab992
PB
9226.PHONY: install-gettext maybe-install-gettext
9227maybe-install-gettext:
9228@if gettext
9229maybe-install-gettext: install-gettext
295f4e42 9230
d32ab992 9231install-gettext: installdirs
295f4e42
NN
9232 @r=`${PWD_COMMAND}`; export r; \
9233 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9234 $(SET_LIB_PATH) \
4fc4dd12 9235 $(HOST_EXPORTS) \
7c27e184 9236 (cd gettext && $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 9237
d32ab992 9238@endif gettext
295f4e42
NN
9239
9240# Other targets (info, dvi, etc.)
9241
d32ab992
PB
9242.PHONY: maybe-info-gettext info-gettext
9243maybe-info-gettext:
9244@if gettext
9245maybe-info-gettext: info-gettext
295f4e42 9246
d32ab992
PB
9247info-gettext: \
9248 configure-gettext
9249 @[ -f ./gettext/Makefile ] || exit 0; \
8c90b13a
L
9250 r=`${PWD_COMMAND}`; export r; \
9251 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 9252 $(SET_LIB_PATH) \
4fc4dd12 9253 $(HOST_EXPORTS) \
d32ab992 9254 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9255 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9256 done; \
d32ab992
PB
9257 echo "Doing info in gettext" ; \
9258 (cd gettext && \
1358ccea
NN
9259 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9260 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9261 "RANLIB=$${RANLIB}" \
9262 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9263 info) \
1358ccea
NN
9264 || exit 1
9265
d32ab992 9266@endif gettext
1358ccea 9267
d32ab992
PB
9268.PHONY: maybe-dvi-gettext dvi-gettext
9269maybe-dvi-gettext:
9270@if gettext
9271maybe-dvi-gettext: dvi-gettext
1358ccea 9272
d32ab992
PB
9273dvi-gettext: \
9274 configure-gettext
9275 @[ -f ./gettext/Makefile ] || exit 0; \
8c90b13a
L
9276 r=`${PWD_COMMAND}`; export r; \
9277 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 9278 $(SET_LIB_PATH) \
4fc4dd12 9279 $(HOST_EXPORTS) \
d32ab992 9280 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9281 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9282 done; \
d32ab992
PB
9283 echo "Doing dvi in gettext" ; \
9284 (cd gettext && \
1358ccea
NN
9285 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9286 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9287 "RANLIB=$${RANLIB}" \
9288 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9289 dvi) \
1358ccea
NN
9290 || exit 1
9291
d32ab992 9292@endif gettext
1358ccea 9293
d32ab992
PB
9294.PHONY: maybe-TAGS-gettext TAGS-gettext
9295maybe-TAGS-gettext:
9296@if gettext
9297maybe-TAGS-gettext: TAGS-gettext
1358ccea 9298
d32ab992
PB
9299TAGS-gettext: \
9300 configure-gettext
9301 @[ -f ./gettext/Makefile ] || exit 0; \
8c90b13a
L
9302 r=`${PWD_COMMAND}`; export r; \
9303 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 9304 $(SET_LIB_PATH) \
4fc4dd12 9305 $(HOST_EXPORTS) \
d32ab992 9306 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9307 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9308 done; \
d32ab992
PB
9309 echo "Doing TAGS in gettext" ; \
9310 (cd gettext && \
1358ccea
NN
9311 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9312 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9313 "RANLIB=$${RANLIB}" \
9314 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9315 TAGS) \
1358ccea
NN
9316 || exit 1
9317
d32ab992 9318@endif gettext
1358ccea 9319
d32ab992
PB
9320.PHONY: maybe-install-info-gettext install-info-gettext
9321maybe-install-info-gettext:
9322@if gettext
9323maybe-install-info-gettext: install-info-gettext
9324
9325install-info-gettext: \
9326 configure-gettext \
9327 info-gettext
9328 @[ -f ./gettext/Makefile ] || exit 0; \
8c90b13a
L
9329 r=`${PWD_COMMAND}`; export r; \
9330 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 9331 $(SET_LIB_PATH) \
4fc4dd12 9332 $(HOST_EXPORTS) \
d32ab992 9333 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9334 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9335 done; \
d32ab992
PB
9336 echo "Doing install-info in gettext" ; \
9337 (cd gettext && \
1358ccea
NN
9338 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9339 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9340 "RANLIB=$${RANLIB}" \
9341 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9342 install-info) \
1358ccea
NN
9343 || exit 1
9344
d32ab992 9345@endif gettext
1358ccea 9346
d32ab992
PB
9347.PHONY: maybe-installcheck-gettext installcheck-gettext
9348maybe-installcheck-gettext:
9349@if gettext
9350maybe-installcheck-gettext: installcheck-gettext
1358ccea 9351
d32ab992
PB
9352installcheck-gettext: \
9353 configure-gettext
9354 @[ -f ./gettext/Makefile ] || exit 0; \
8c90b13a
L
9355 r=`${PWD_COMMAND}`; export r; \
9356 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 9357 $(SET_LIB_PATH) \
4fc4dd12 9358 $(HOST_EXPORTS) \
d32ab992 9359 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9360 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9361 done; \
d32ab992
PB
9362 echo "Doing installcheck in gettext" ; \
9363 (cd gettext && \
1358ccea
NN
9364 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9365 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9366 "RANLIB=$${RANLIB}" \
9367 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9368 installcheck) \
1358ccea
NN
9369 || exit 1
9370
d32ab992 9371@endif gettext
1358ccea 9372
d32ab992
PB
9373.PHONY: maybe-mostlyclean-gettext mostlyclean-gettext
9374maybe-mostlyclean-gettext:
9375@if gettext
9376maybe-mostlyclean-gettext: mostlyclean-gettext
1358ccea 9377
d32ab992
PB
9378mostlyclean-gettext:
9379 @[ -f ./gettext/Makefile ] || exit 0; \
8c90b13a
L
9380 r=`${PWD_COMMAND}`; export r; \
9381 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 9382 $(SET_LIB_PATH) \
4fc4dd12 9383 $(HOST_EXPORTS) \
d32ab992 9384 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9385 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9386 done; \
d32ab992
PB
9387 echo "Doing mostlyclean in gettext" ; \
9388 (cd gettext && \
1358ccea
NN
9389 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9390 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9391 "RANLIB=$${RANLIB}" \
9392 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9393 mostlyclean) \
1358ccea
NN
9394 || exit 1
9395
d32ab992 9396@endif gettext
1358ccea 9397
d32ab992
PB
9398.PHONY: maybe-clean-gettext clean-gettext
9399maybe-clean-gettext:
9400@if gettext
9401maybe-clean-gettext: clean-gettext
1358ccea 9402
d32ab992
PB
9403clean-gettext:
9404 @[ -f ./gettext/Makefile ] || exit 0; \
8c90b13a
L
9405 r=`${PWD_COMMAND}`; export r; \
9406 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 9407 $(SET_LIB_PATH) \
4fc4dd12 9408 $(HOST_EXPORTS) \
d32ab992 9409 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9410 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9411 done; \
d32ab992
PB
9412 echo "Doing clean in gettext" ; \
9413 (cd gettext && \
1358ccea
NN
9414 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9415 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9416 "RANLIB=$${RANLIB}" \
9417 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9418 clean) \
1358ccea
NN
9419 || exit 1
9420
d32ab992 9421@endif gettext
1358ccea 9422
d32ab992
PB
9423.PHONY: maybe-distclean-gettext distclean-gettext
9424maybe-distclean-gettext:
9425@if gettext
9426maybe-distclean-gettext: distclean-gettext
1358ccea 9427
d32ab992
PB
9428distclean-gettext:
9429 @[ -f ./gettext/Makefile ] || exit 0; \
8c90b13a
L
9430 r=`${PWD_COMMAND}`; export r; \
9431 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 9432 $(SET_LIB_PATH) \
4fc4dd12 9433 $(HOST_EXPORTS) \
d32ab992 9434 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9435 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9436 done; \
d32ab992
PB
9437 echo "Doing distclean in gettext" ; \
9438 (cd gettext && \
1358ccea
NN
9439 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9440 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9441 "RANLIB=$${RANLIB}" \
9442 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9443 distclean) \
1358ccea
NN
9444 || exit 1
9445
d32ab992 9446@endif gettext
1358ccea 9447
d32ab992
PB
9448.PHONY: maybe-maintainer-clean-gettext maintainer-clean-gettext
9449maybe-maintainer-clean-gettext:
9450@if gettext
9451maybe-maintainer-clean-gettext: maintainer-clean-gettext
1358ccea 9452
d32ab992
PB
9453maintainer-clean-gettext:
9454 @[ -f ./gettext/Makefile ] || exit 0; \
8c90b13a
L
9455 r=`${PWD_COMMAND}`; export r; \
9456 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 9457 $(SET_LIB_PATH) \
4fc4dd12 9458 $(HOST_EXPORTS) \
d32ab992 9459 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9460 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9461 done; \
d32ab992
PB
9462 echo "Doing maintainer-clean in gettext" ; \
9463 (cd gettext && \
1358ccea
NN
9464 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9465 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9466 "RANLIB=$${RANLIB}" \
9467 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9468 maintainer-clean) \
1358ccea
NN
9469 || exit 1
9470
d32ab992 9471@endif gettext
1358ccea 9472
1358ccea 9473
d32ab992
PB
9474.PHONY: configure-gnuserv maybe-configure-gnuserv
9475maybe-configure-gnuserv:
9476@if gnuserv
9477maybe-configure-gnuserv: configure-gnuserv
9478configure-gnuserv:
9479 @test ! -f gnuserv/Makefile || exit 0; \
9480 [ -d gnuserv ] || mkdir gnuserv; \
8c90b13a
L
9481 r=`${PWD_COMMAND}`; export r; \
9482 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9483 $(HOST_EXPORTS) \
d32ab992
PB
9484 echo Configuring in gnuserv; \
9485 cd gnuserv || exit 1; \
295f4e42
NN
9486 case $(srcdir) in \
9487 \.) \
9488 srcdiroption="--srcdir=."; \
9489 libsrcdir=".";; \
9490 /* | [A-Za-z]:[\\/]*) \
d32ab992
PB
9491 srcdiroption="--srcdir=$(srcdir)/gnuserv"; \
9492 libsrcdir="$$s/gnuserv";; \
295f4e42 9493 *) \
d32ab992
PB
9494 srcdiroption="--srcdir=../$(srcdir)/gnuserv"; \
9495 libsrcdir="$$s/gnuserv";; \
295f4e42
NN
9496 esac; \
9497 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 9498 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 9499 || exit 1
d32ab992 9500@endif gnuserv
1358ccea 9501
d32ab992
PB
9502.PHONY: all-gnuserv maybe-all-gnuserv
9503maybe-all-gnuserv:
9504@if gnuserv
9505maybe-all-gnuserv: all-gnuserv
9506all-gnuserv: configure-gnuserv
295f4e42
NN
9507 @r=`${PWD_COMMAND}`; export r; \
9508 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9509 $(SET_LIB_PATH) \
4fc4dd12 9510 $(HOST_EXPORTS) \
d32ab992
PB
9511 (cd gnuserv && $(MAKE) $(FLAGS_TO_PASS) all)
9512@endif gnuserv
1358ccea 9513
d32ab992
PB
9514.PHONY: check-gnuserv maybe-check-gnuserv
9515maybe-check-gnuserv:
9516@if gnuserv
9517maybe-check-gnuserv: check-gnuserv
1358ccea 9518
d32ab992 9519check-gnuserv:
295f4e42 9520 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 9521 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 9522 $(SET_LIB_PATH) \
4fc4dd12 9523 $(HOST_EXPORTS) \
7c27e184 9524 (cd gnuserv && $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 9525
d32ab992 9526@endif gnuserv
1358ccea 9527
d32ab992
PB
9528.PHONY: install-gnuserv maybe-install-gnuserv
9529maybe-install-gnuserv:
9530@if gnuserv
9531maybe-install-gnuserv: install-gnuserv
1358ccea 9532
d32ab992 9533install-gnuserv: installdirs
295f4e42
NN
9534 @r=`${PWD_COMMAND}`; export r; \
9535 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9536 $(SET_LIB_PATH) \
4fc4dd12 9537 $(HOST_EXPORTS) \
7c27e184 9538 (cd gnuserv && $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 9539
d32ab992 9540@endif gnuserv
295f4e42
NN
9541
9542# Other targets (info, dvi, etc.)
9543
d32ab992
PB
9544.PHONY: maybe-info-gnuserv info-gnuserv
9545maybe-info-gnuserv:
9546@if gnuserv
9547maybe-info-gnuserv: info-gnuserv
295f4e42 9548
d32ab992
PB
9549info-gnuserv: \
9550 configure-gnuserv
9551 @[ -f ./gnuserv/Makefile ] || exit 0; \
8c90b13a
L
9552 r=`${PWD_COMMAND}`; export r; \
9553 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 9554 $(SET_LIB_PATH) \
4fc4dd12 9555 $(HOST_EXPORTS) \
d32ab992 9556 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9557 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9558 done; \
d32ab992
PB
9559 echo "Doing info in gnuserv" ; \
9560 (cd gnuserv && \
1358ccea
NN
9561 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9562 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9563 "RANLIB=$${RANLIB}" \
9564 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9565 info) \
1358ccea
NN
9566 || exit 1
9567
d32ab992 9568@endif gnuserv
1358ccea 9569
d32ab992
PB
9570.PHONY: maybe-dvi-gnuserv dvi-gnuserv
9571maybe-dvi-gnuserv:
9572@if gnuserv
9573maybe-dvi-gnuserv: dvi-gnuserv
1358ccea 9574
d32ab992
PB
9575dvi-gnuserv: \
9576 configure-gnuserv
9577 @[ -f ./gnuserv/Makefile ] || exit 0; \
8c90b13a
L
9578 r=`${PWD_COMMAND}`; export r; \
9579 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 9580 $(SET_LIB_PATH) \
4fc4dd12 9581 $(HOST_EXPORTS) \
d32ab992 9582 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9583 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9584 done; \
d32ab992
PB
9585 echo "Doing dvi in gnuserv" ; \
9586 (cd gnuserv && \
1358ccea
NN
9587 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9588 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9589 "RANLIB=$${RANLIB}" \
9590 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9591 dvi) \
1358ccea
NN
9592 || exit 1
9593
d32ab992 9594@endif gnuserv
1358ccea 9595
d32ab992
PB
9596.PHONY: maybe-TAGS-gnuserv TAGS-gnuserv
9597maybe-TAGS-gnuserv:
9598@if gnuserv
9599maybe-TAGS-gnuserv: TAGS-gnuserv
1358ccea 9600
d32ab992
PB
9601TAGS-gnuserv: \
9602 configure-gnuserv
9603 @[ -f ./gnuserv/Makefile ] || exit 0; \
8c90b13a
L
9604 r=`${PWD_COMMAND}`; export r; \
9605 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 9606 $(SET_LIB_PATH) \
4fc4dd12 9607 $(HOST_EXPORTS) \
d32ab992 9608 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9609 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9610 done; \
d32ab992
PB
9611 echo "Doing TAGS in gnuserv" ; \
9612 (cd gnuserv && \
1358ccea
NN
9613 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9614 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9615 "RANLIB=$${RANLIB}" \
9616 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9617 TAGS) \
1358ccea
NN
9618 || exit 1
9619
d32ab992 9620@endif gnuserv
1358ccea 9621
d32ab992
PB
9622.PHONY: maybe-install-info-gnuserv install-info-gnuserv
9623maybe-install-info-gnuserv:
9624@if gnuserv
9625maybe-install-info-gnuserv: install-info-gnuserv
1358ccea 9626
d32ab992
PB
9627install-info-gnuserv: \
9628 configure-gnuserv \
9629 info-gnuserv
9630 @[ -f ./gnuserv/Makefile ] || exit 0; \
8c90b13a
L
9631 r=`${PWD_COMMAND}`; export r; \
9632 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 9633 $(SET_LIB_PATH) \
4fc4dd12 9634 $(HOST_EXPORTS) \
d32ab992 9635 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9636 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9637 done; \
d32ab992
PB
9638 echo "Doing install-info in gnuserv" ; \
9639 (cd gnuserv && \
1358ccea
NN
9640 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9641 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9642 "RANLIB=$${RANLIB}" \
9643 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9644 install-info) \
1358ccea
NN
9645 || exit 1
9646
d32ab992 9647@endif gnuserv
1358ccea 9648
d32ab992
PB
9649.PHONY: maybe-installcheck-gnuserv installcheck-gnuserv
9650maybe-installcheck-gnuserv:
9651@if gnuserv
9652maybe-installcheck-gnuserv: installcheck-gnuserv
1358ccea 9653
d32ab992
PB
9654installcheck-gnuserv: \
9655 configure-gnuserv
9656 @[ -f ./gnuserv/Makefile ] || exit 0; \
8c90b13a
L
9657 r=`${PWD_COMMAND}`; export r; \
9658 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 9659 $(SET_LIB_PATH) \
4fc4dd12 9660 $(HOST_EXPORTS) \
d32ab992 9661 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9662 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9663 done; \
d32ab992
PB
9664 echo "Doing installcheck in gnuserv" ; \
9665 (cd gnuserv && \
1358ccea
NN
9666 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9667 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9668 "RANLIB=$${RANLIB}" \
9669 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9670 installcheck) \
1358ccea
NN
9671 || exit 1
9672
d32ab992 9673@endif gnuserv
1358ccea 9674
d32ab992
PB
9675.PHONY: maybe-mostlyclean-gnuserv mostlyclean-gnuserv
9676maybe-mostlyclean-gnuserv:
9677@if gnuserv
9678maybe-mostlyclean-gnuserv: mostlyclean-gnuserv
1358ccea 9679
d32ab992
PB
9680mostlyclean-gnuserv:
9681 @[ -f ./gnuserv/Makefile ] || exit 0; \
8c90b13a
L
9682 r=`${PWD_COMMAND}`; export r; \
9683 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 9684 $(SET_LIB_PATH) \
4fc4dd12 9685 $(HOST_EXPORTS) \
d32ab992 9686 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9687 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9688 done; \
d32ab992
PB
9689 echo "Doing mostlyclean in gnuserv" ; \
9690 (cd gnuserv && \
1358ccea
NN
9691 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9692 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9693 "RANLIB=$${RANLIB}" \
9694 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9695 mostlyclean) \
1358ccea
NN
9696 || exit 1
9697
d32ab992 9698@endif gnuserv
1358ccea 9699
d32ab992
PB
9700.PHONY: maybe-clean-gnuserv clean-gnuserv
9701maybe-clean-gnuserv:
9702@if gnuserv
9703maybe-clean-gnuserv: clean-gnuserv
1358ccea 9704
d32ab992
PB
9705clean-gnuserv:
9706 @[ -f ./gnuserv/Makefile ] || exit 0; \
8c90b13a
L
9707 r=`${PWD_COMMAND}`; export r; \
9708 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 9709 $(SET_LIB_PATH) \
4fc4dd12 9710 $(HOST_EXPORTS) \
d32ab992 9711 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9712 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9713 done; \
d32ab992
PB
9714 echo "Doing clean in gnuserv" ; \
9715 (cd gnuserv && \
1358ccea
NN
9716 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9717 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9718 "RANLIB=$${RANLIB}" \
9719 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9720 clean) \
1358ccea
NN
9721 || exit 1
9722
d32ab992 9723@endif gnuserv
1358ccea 9724
d32ab992
PB
9725.PHONY: maybe-distclean-gnuserv distclean-gnuserv
9726maybe-distclean-gnuserv:
9727@if gnuserv
9728maybe-distclean-gnuserv: distclean-gnuserv
1358ccea 9729
d32ab992
PB
9730distclean-gnuserv:
9731 @[ -f ./gnuserv/Makefile ] || exit 0; \
8c90b13a
L
9732 r=`${PWD_COMMAND}`; export r; \
9733 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 9734 $(SET_LIB_PATH) \
4fc4dd12 9735 $(HOST_EXPORTS) \
d32ab992 9736 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9737 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9738 done; \
d32ab992
PB
9739 echo "Doing distclean in gnuserv" ; \
9740 (cd gnuserv && \
1358ccea
NN
9741 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9742 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9743 "RANLIB=$${RANLIB}" \
9744 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9745 distclean) \
1358ccea
NN
9746 || exit 1
9747
d32ab992 9748@endif gnuserv
1358ccea 9749
d32ab992
PB
9750.PHONY: maybe-maintainer-clean-gnuserv maintainer-clean-gnuserv
9751maybe-maintainer-clean-gnuserv:
9752@if gnuserv
9753maybe-maintainer-clean-gnuserv: maintainer-clean-gnuserv
1358ccea 9754
d32ab992
PB
9755maintainer-clean-gnuserv:
9756 @[ -f ./gnuserv/Makefile ] || exit 0; \
8c90b13a
L
9757 r=`${PWD_COMMAND}`; export r; \
9758 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 9759 $(SET_LIB_PATH) \
4fc4dd12 9760 $(HOST_EXPORTS) \
d32ab992 9761 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9762 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9763 done; \
d32ab992
PB
9764 echo "Doing maintainer-clean in gnuserv" ; \
9765 (cd gnuserv && \
1358ccea
NN
9766 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9767 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9768 "RANLIB=$${RANLIB}" \
9769 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9770 maintainer-clean) \
1358ccea
NN
9771 || exit 1
9772
d32ab992 9773@endif gnuserv
1358ccea 9774
1358ccea 9775
d32ab992
PB
9776.PHONY: configure-gprof maybe-configure-gprof
9777maybe-configure-gprof:
9778@if gprof
9779maybe-configure-gprof: configure-gprof
9780configure-gprof:
9781 @test ! -f gprof/Makefile || exit 0; \
9782 [ -d gprof ] || mkdir gprof; \
295f4e42
NN
9783 r=`${PWD_COMMAND}`; export r; \
9784 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9785 $(HOST_EXPORTS) \
d32ab992
PB
9786 echo Configuring in gprof; \
9787 cd gprof || exit 1; \
295f4e42
NN
9788 case $(srcdir) in \
9789 \.) \
9790 srcdiroption="--srcdir=."; \
9791 libsrcdir=".";; \
9792 /* | [A-Za-z]:[\\/]*) \
d32ab992
PB
9793 srcdiroption="--srcdir=$(srcdir)/gprof"; \
9794 libsrcdir="$$s/gprof";; \
295f4e42 9795 *) \
d32ab992
PB
9796 srcdiroption="--srcdir=../$(srcdir)/gprof"; \
9797 libsrcdir="$$s/gprof";; \
295f4e42
NN
9798 esac; \
9799 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 9800 $(HOST_CONFIGARGS) $${srcdiroption} \
295f4e42 9801 || exit 1
d32ab992 9802@endif gprof
295f4e42 9803
d32ab992
PB
9804.PHONY: all-gprof maybe-all-gprof
9805maybe-all-gprof:
9806@if gprof
9807maybe-all-gprof: all-gprof
9808all-gprof: configure-gprof
295f4e42
NN
9809 @r=`${PWD_COMMAND}`; export r; \
9810 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9811 $(SET_LIB_PATH) \
4fc4dd12 9812 $(HOST_EXPORTS) \
d32ab992
PB
9813 (cd gprof && $(MAKE) $(FLAGS_TO_PASS) all)
9814@endif gprof
295f4e42 9815
d32ab992
PB
9816.PHONY: check-gprof maybe-check-gprof
9817maybe-check-gprof:
9818@if gprof
9819maybe-check-gprof: check-gprof
295f4e42 9820
d32ab992 9821check-gprof:
295f4e42
NN
9822 @r=`${PWD_COMMAND}`; export r; \
9823 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9824 $(SET_LIB_PATH) \
4fc4dd12 9825 $(HOST_EXPORTS) \
7c27e184 9826 (cd gprof && $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 9827
d32ab992 9828@endif gprof
295f4e42 9829
d32ab992
PB
9830.PHONY: install-gprof maybe-install-gprof
9831maybe-install-gprof:
9832@if gprof
9833maybe-install-gprof: install-gprof
295f4e42 9834
d32ab992 9835install-gprof: installdirs
295f4e42
NN
9836 @r=`${PWD_COMMAND}`; export r; \
9837 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9838 $(SET_LIB_PATH) \
4fc4dd12 9839 $(HOST_EXPORTS) \
7c27e184 9840 (cd gprof && $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 9841
d32ab992 9842@endif gprof
295f4e42
NN
9843
9844# Other targets (info, dvi, etc.)
9845
d32ab992
PB
9846.PHONY: maybe-info-gprof info-gprof
9847maybe-info-gprof:
9848@if gprof
9849maybe-info-gprof: info-gprof
295f4e42 9850
d32ab992
PB
9851info-gprof: \
9852 configure-gprof
9853 @[ -f ./gprof/Makefile ] || exit 0; \
8c90b13a
L
9854 r=`${PWD_COMMAND}`; export r; \
9855 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 9856 $(SET_LIB_PATH) \
4fc4dd12 9857 $(HOST_EXPORTS) \
d32ab992 9858 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9859 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9860 done; \
d32ab992
PB
9861 echo "Doing info in gprof" ; \
9862 (cd gprof && \
1358ccea
NN
9863 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9864 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9865 "RANLIB=$${RANLIB}" \
9866 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9867 info) \
1358ccea
NN
9868 || exit 1
9869
d32ab992 9870@endif gprof
1358ccea 9871
d32ab992
PB
9872.PHONY: maybe-dvi-gprof dvi-gprof
9873maybe-dvi-gprof:
9874@if gprof
9875maybe-dvi-gprof: dvi-gprof
1358ccea 9876
d32ab992
PB
9877dvi-gprof: \
9878 configure-gprof
9879 @[ -f ./gprof/Makefile ] || exit 0; \
8c90b13a
L
9880 r=`${PWD_COMMAND}`; export r; \
9881 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 9882 $(SET_LIB_PATH) \
4fc4dd12 9883 $(HOST_EXPORTS) \
d32ab992 9884 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9885 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9886 done; \
d32ab992
PB
9887 echo "Doing dvi in gprof" ; \
9888 (cd gprof && \
1358ccea
NN
9889 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9890 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9891 "RANLIB=$${RANLIB}" \
9892 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9893 dvi) \
1358ccea
NN
9894 || exit 1
9895
d32ab992 9896@endif gprof
1358ccea 9897
d32ab992
PB
9898.PHONY: maybe-TAGS-gprof TAGS-gprof
9899maybe-TAGS-gprof:
9900@if gprof
9901maybe-TAGS-gprof: TAGS-gprof
1358ccea 9902
d32ab992
PB
9903TAGS-gprof: \
9904 configure-gprof
9905 @[ -f ./gprof/Makefile ] || exit 0; \
8c90b13a
L
9906 r=`${PWD_COMMAND}`; export r; \
9907 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 9908 $(SET_LIB_PATH) \
4fc4dd12 9909 $(HOST_EXPORTS) \
d32ab992 9910 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9911 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9912 done; \
d32ab992
PB
9913 echo "Doing TAGS in gprof" ; \
9914 (cd gprof && \
1358ccea
NN
9915 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9916 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9917 "RANLIB=$${RANLIB}" \
9918 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9919 TAGS) \
1358ccea
NN
9920 || exit 1
9921
d32ab992 9922@endif gprof
1358ccea 9923
d32ab992
PB
9924.PHONY: maybe-install-info-gprof install-info-gprof
9925maybe-install-info-gprof:
9926@if gprof
9927maybe-install-info-gprof: install-info-gprof
1358ccea 9928
d32ab992
PB
9929install-info-gprof: \
9930 configure-gprof \
9931 info-gprof
9932 @[ -f ./gprof/Makefile ] || exit 0; \
8c90b13a
L
9933 r=`${PWD_COMMAND}`; export r; \
9934 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 9935 $(SET_LIB_PATH) \
4fc4dd12 9936 $(HOST_EXPORTS) \
d32ab992 9937 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9938 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9939 done; \
d32ab992
PB
9940 echo "Doing install-info in gprof" ; \
9941 (cd gprof && \
1358ccea
NN
9942 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9943 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9944 "RANLIB=$${RANLIB}" \
9945 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9946 install-info) \
1358ccea
NN
9947 || exit 1
9948
d32ab992 9949@endif gprof
1358ccea 9950
d32ab992
PB
9951.PHONY: maybe-installcheck-gprof installcheck-gprof
9952maybe-installcheck-gprof:
9953@if gprof
9954maybe-installcheck-gprof: installcheck-gprof
1358ccea 9955
d32ab992
PB
9956installcheck-gprof: \
9957 configure-gprof
9958 @[ -f ./gprof/Makefile ] || exit 0; \
8c90b13a
L
9959 r=`${PWD_COMMAND}`; export r; \
9960 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 9961 $(SET_LIB_PATH) \
4fc4dd12 9962 $(HOST_EXPORTS) \
d32ab992 9963 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9964 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9965 done; \
d32ab992
PB
9966 echo "Doing installcheck in gprof" ; \
9967 (cd gprof && \
1358ccea
NN
9968 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9969 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9970 "RANLIB=$${RANLIB}" \
9971 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9972 installcheck) \
1358ccea
NN
9973 || exit 1
9974
d32ab992 9975@endif gprof
1358ccea 9976
d32ab992
PB
9977.PHONY: maybe-mostlyclean-gprof mostlyclean-gprof
9978maybe-mostlyclean-gprof:
9979@if gprof
9980maybe-mostlyclean-gprof: mostlyclean-gprof
1358ccea 9981
d32ab992
PB
9982mostlyclean-gprof:
9983 @[ -f ./gprof/Makefile ] || exit 0; \
8c90b13a
L
9984 r=`${PWD_COMMAND}`; export r; \
9985 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 9986 $(SET_LIB_PATH) \
4fc4dd12 9987 $(HOST_EXPORTS) \
d32ab992 9988 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9989 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9990 done; \
d32ab992
PB
9991 echo "Doing mostlyclean in gprof" ; \
9992 (cd gprof && \
1358ccea
NN
9993 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9994 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9995 "RANLIB=$${RANLIB}" \
9996 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9997 mostlyclean) \
1358ccea
NN
9998 || exit 1
9999
d32ab992 10000@endif gprof
1358ccea 10001
d32ab992
PB
10002.PHONY: maybe-clean-gprof clean-gprof
10003maybe-clean-gprof:
10004@if gprof
10005maybe-clean-gprof: clean-gprof
1358ccea 10006
d32ab992
PB
10007clean-gprof:
10008 @[ -f ./gprof/Makefile ] || exit 0; \
8c90b13a
L
10009 r=`${PWD_COMMAND}`; export r; \
10010 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 10011 $(SET_LIB_PATH) \
4fc4dd12 10012 $(HOST_EXPORTS) \
d32ab992 10013 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10014 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10015 done; \
d32ab992
PB
10016 echo "Doing clean in gprof" ; \
10017 (cd gprof && \
1358ccea
NN
10018 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10019 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10020 "RANLIB=$${RANLIB}" \
10021 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10022 clean) \
1358ccea
NN
10023 || exit 1
10024
d32ab992 10025@endif gprof
1358ccea 10026
d32ab992
PB
10027.PHONY: maybe-distclean-gprof distclean-gprof
10028maybe-distclean-gprof:
10029@if gprof
10030maybe-distclean-gprof: distclean-gprof
1358ccea 10031
d32ab992
PB
10032distclean-gprof:
10033 @[ -f ./gprof/Makefile ] || exit 0; \
8c90b13a
L
10034 r=`${PWD_COMMAND}`; export r; \
10035 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 10036 $(SET_LIB_PATH) \
4fc4dd12 10037 $(HOST_EXPORTS) \
d32ab992 10038 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10039 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10040 done; \
d32ab992
PB
10041 echo "Doing distclean in gprof" ; \
10042 (cd gprof && \
1358ccea
NN
10043 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10044 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10045 "RANLIB=$${RANLIB}" \
10046 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10047 distclean) \
1358ccea
NN
10048 || exit 1
10049
d32ab992 10050@endif gprof
1358ccea 10051
d32ab992
PB
10052.PHONY: maybe-maintainer-clean-gprof maintainer-clean-gprof
10053maybe-maintainer-clean-gprof:
10054@if gprof
10055maybe-maintainer-clean-gprof: maintainer-clean-gprof
1358ccea 10056
d32ab992
PB
10057maintainer-clean-gprof:
10058 @[ -f ./gprof/Makefile ] || exit 0; \
8c90b13a
L
10059 r=`${PWD_COMMAND}`; export r; \
10060 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 10061 $(SET_LIB_PATH) \
4fc4dd12 10062 $(HOST_EXPORTS) \
d32ab992 10063 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10064 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10065 done; \
d32ab992
PB
10066 echo "Doing maintainer-clean in gprof" ; \
10067 (cd gprof && \
1358ccea
NN
10068 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10069 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10070 "RANLIB=$${RANLIB}" \
10071 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10072 maintainer-clean) \
1358ccea
NN
10073 || exit 1
10074
d32ab992 10075@endif gprof
1358ccea 10076
1358ccea 10077
d32ab992
PB
10078.PHONY: configure-gzip maybe-configure-gzip
10079maybe-configure-gzip:
10080@if gzip
10081maybe-configure-gzip: configure-gzip
10082configure-gzip:
10083 @test ! -f gzip/Makefile || exit 0; \
10084 [ -d gzip ] || mkdir gzip; \
295f4e42
NN
10085 r=`${PWD_COMMAND}`; export r; \
10086 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10087 $(HOST_EXPORTS) \
d32ab992
PB
10088 echo Configuring in gzip; \
10089 cd gzip || exit 1; \
295f4e42
NN
10090 case $(srcdir) in \
10091 \.) \
10092 srcdiroption="--srcdir=."; \
10093 libsrcdir=".";; \
10094 /* | [A-Za-z]:[\\/]*) \
d32ab992
PB
10095 srcdiroption="--srcdir=$(srcdir)/gzip"; \
10096 libsrcdir="$$s/gzip";; \
295f4e42 10097 *) \
d32ab992
PB
10098 srcdiroption="--srcdir=../$(srcdir)/gzip"; \
10099 libsrcdir="$$s/gzip";; \
295f4e42
NN
10100 esac; \
10101 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 10102 $(HOST_CONFIGARGS) $${srcdiroption} \
295f4e42 10103 || exit 1
d32ab992 10104@endif gzip
295f4e42 10105
d32ab992
PB
10106.PHONY: all-gzip maybe-all-gzip
10107maybe-all-gzip:
10108@if gzip
10109maybe-all-gzip: all-gzip
10110all-gzip: configure-gzip
295f4e42
NN
10111 @r=`${PWD_COMMAND}`; export r; \
10112 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10113 $(SET_LIB_PATH) \
4fc4dd12 10114 $(HOST_EXPORTS) \
d32ab992
PB
10115 (cd gzip && $(MAKE) $(FLAGS_TO_PASS) all)
10116@endif gzip
295f4e42 10117
d32ab992
PB
10118.PHONY: check-gzip maybe-check-gzip
10119maybe-check-gzip:
10120@if gzip
10121maybe-check-gzip: check-gzip
295f4e42 10122
d32ab992 10123check-gzip:
295f4e42
NN
10124 @r=`${PWD_COMMAND}`; export r; \
10125 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10126 $(SET_LIB_PATH) \
4fc4dd12 10127 $(HOST_EXPORTS) \
7c27e184 10128 (cd gzip && $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 10129
d32ab992 10130@endif gzip
295f4e42 10131
d32ab992
PB
10132.PHONY: install-gzip maybe-install-gzip
10133maybe-install-gzip:
10134@if gzip
10135maybe-install-gzip: install-gzip
295f4e42 10136
d32ab992 10137install-gzip: installdirs
295f4e42
NN
10138 @r=`${PWD_COMMAND}`; export r; \
10139 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10140 $(SET_LIB_PATH) \
4fc4dd12 10141 $(HOST_EXPORTS) \
7c27e184 10142 (cd gzip && $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 10143
d32ab992 10144@endif gzip
295f4e42
NN
10145
10146# Other targets (info, dvi, etc.)
10147
d32ab992
PB
10148.PHONY: maybe-info-gzip info-gzip
10149maybe-info-gzip:
10150@if gzip
10151maybe-info-gzip: info-gzip
295f4e42 10152
d32ab992
PB
10153info-gzip: \
10154 configure-gzip
10155 @[ -f ./gzip/Makefile ] || exit 0; \
8c90b13a
L
10156 r=`${PWD_COMMAND}`; export r; \
10157 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 10158 $(SET_LIB_PATH) \
4fc4dd12 10159 $(HOST_EXPORTS) \
d32ab992 10160 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10161 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10162 done; \
d32ab992
PB
10163 echo "Doing info in gzip" ; \
10164 (cd gzip && \
1358ccea
NN
10165 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10166 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10167 "RANLIB=$${RANLIB}" \
10168 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10169 info) \
1358ccea
NN
10170 || exit 1
10171
d32ab992 10172@endif gzip
1358ccea 10173
d32ab992
PB
10174.PHONY: maybe-dvi-gzip dvi-gzip
10175maybe-dvi-gzip:
10176@if gzip
10177maybe-dvi-gzip: dvi-gzip
1358ccea 10178
d32ab992
PB
10179dvi-gzip: \
10180 configure-gzip
10181 @[ -f ./gzip/Makefile ] || exit 0; \
8c90b13a
L
10182 r=`${PWD_COMMAND}`; export r; \
10183 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 10184 $(SET_LIB_PATH) \
4fc4dd12 10185 $(HOST_EXPORTS) \
d32ab992 10186 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10187 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10188 done; \
d32ab992
PB
10189 echo "Doing dvi in gzip" ; \
10190 (cd gzip && \
1358ccea
NN
10191 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10192 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10193 "RANLIB=$${RANLIB}" \
10194 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10195 dvi) \
1358ccea
NN
10196 || exit 1
10197
d32ab992 10198@endif gzip
1358ccea 10199
d32ab992
PB
10200.PHONY: maybe-TAGS-gzip TAGS-gzip
10201maybe-TAGS-gzip:
10202@if gzip
10203maybe-TAGS-gzip: TAGS-gzip
1358ccea 10204
d32ab992
PB
10205TAGS-gzip: \
10206 configure-gzip
10207 @[ -f ./gzip/Makefile ] || exit 0; \
8c90b13a
L
10208 r=`${PWD_COMMAND}`; export r; \
10209 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 10210 $(SET_LIB_PATH) \
4fc4dd12 10211 $(HOST_EXPORTS) \
d32ab992 10212 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10213 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10214 done; \
d32ab992
PB
10215 echo "Doing TAGS in gzip" ; \
10216 (cd gzip && \
1358ccea
NN
10217 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10218 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10219 "RANLIB=$${RANLIB}" \
10220 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10221 TAGS) \
1358ccea
NN
10222 || exit 1
10223
d32ab992 10224@endif gzip
1358ccea 10225
d32ab992
PB
10226.PHONY: maybe-install-info-gzip install-info-gzip
10227maybe-install-info-gzip:
10228@if gzip
10229maybe-install-info-gzip: install-info-gzip
1358ccea 10230
d32ab992
PB
10231install-info-gzip: \
10232 configure-gzip \
10233 info-gzip
10234 @[ -f ./gzip/Makefile ] || exit 0; \
8c90b13a
L
10235 r=`${PWD_COMMAND}`; export r; \
10236 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 10237 $(SET_LIB_PATH) \
4fc4dd12 10238 $(HOST_EXPORTS) \
d32ab992 10239 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10240 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10241 done; \
d32ab992
PB
10242 echo "Doing install-info in gzip" ; \
10243 (cd gzip && \
1358ccea
NN
10244 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10245 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10246 "RANLIB=$${RANLIB}" \
10247 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10248 install-info) \
1358ccea
NN
10249 || exit 1
10250
d32ab992 10251@endif gzip
1358ccea 10252
d32ab992
PB
10253.PHONY: maybe-installcheck-gzip installcheck-gzip
10254maybe-installcheck-gzip:
10255@if gzip
10256maybe-installcheck-gzip: installcheck-gzip
1358ccea 10257
d32ab992
PB
10258installcheck-gzip: \
10259 configure-gzip
10260 @[ -f ./gzip/Makefile ] || exit 0; \
8c90b13a
L
10261 r=`${PWD_COMMAND}`; export r; \
10262 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 10263 $(SET_LIB_PATH) \
4fc4dd12 10264 $(HOST_EXPORTS) \
d32ab992 10265 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10266 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10267 done; \
d32ab992
PB
10268 echo "Doing installcheck in gzip" ; \
10269 (cd gzip && \
1358ccea
NN
10270 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10271 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10272 "RANLIB=$${RANLIB}" \
10273 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10274 installcheck) \
1358ccea
NN
10275 || exit 1
10276
d32ab992 10277@endif gzip
1358ccea 10278
d32ab992
PB
10279.PHONY: maybe-mostlyclean-gzip mostlyclean-gzip
10280maybe-mostlyclean-gzip:
10281@if gzip
10282maybe-mostlyclean-gzip: mostlyclean-gzip
1358ccea 10283
d32ab992
PB
10284mostlyclean-gzip:
10285 @[ -f ./gzip/Makefile ] || exit 0; \
8c90b13a
L
10286 r=`${PWD_COMMAND}`; export r; \
10287 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 10288 $(SET_LIB_PATH) \
4fc4dd12 10289 $(HOST_EXPORTS) \
d32ab992 10290 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10291 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10292 done; \
d32ab992
PB
10293 echo "Doing mostlyclean in gzip" ; \
10294 (cd gzip && \
1358ccea
NN
10295 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10296 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10297 "RANLIB=$${RANLIB}" \
10298 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10299 mostlyclean) \
1358ccea
NN
10300 || exit 1
10301
d32ab992 10302@endif gzip
1358ccea 10303
d32ab992
PB
10304.PHONY: maybe-clean-gzip clean-gzip
10305maybe-clean-gzip:
10306@if gzip
10307maybe-clean-gzip: clean-gzip
1358ccea 10308
d32ab992
PB
10309clean-gzip:
10310 @[ -f ./gzip/Makefile ] || exit 0; \
8c90b13a
L
10311 r=`${PWD_COMMAND}`; export r; \
10312 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 10313 $(SET_LIB_PATH) \
4fc4dd12 10314 $(HOST_EXPORTS) \
d32ab992 10315 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10316 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10317 done; \
d32ab992
PB
10318 echo "Doing clean in gzip" ; \
10319 (cd gzip && \
1358ccea
NN
10320 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10321 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10322 "RANLIB=$${RANLIB}" \
10323 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10324 clean) \
1358ccea
NN
10325 || exit 1
10326
d32ab992 10327@endif gzip
1358ccea 10328
d32ab992
PB
10329.PHONY: maybe-distclean-gzip distclean-gzip
10330maybe-distclean-gzip:
10331@if gzip
10332maybe-distclean-gzip: distclean-gzip
1358ccea 10333
d32ab992
PB
10334distclean-gzip:
10335 @[ -f ./gzip/Makefile ] || exit 0; \
8c90b13a
L
10336 r=`${PWD_COMMAND}`; export r; \
10337 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 10338 $(SET_LIB_PATH) \
4fc4dd12 10339 $(HOST_EXPORTS) \
d32ab992 10340 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10341 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10342 done; \
d32ab992
PB
10343 echo "Doing distclean in gzip" ; \
10344 (cd gzip && \
1358ccea
NN
10345 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10346 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10347 "RANLIB=$${RANLIB}" \
10348 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10349 distclean) \
1358ccea
NN
10350 || exit 1
10351
d32ab992 10352@endif gzip
1358ccea 10353
d32ab992
PB
10354.PHONY: maybe-maintainer-clean-gzip maintainer-clean-gzip
10355maybe-maintainer-clean-gzip:
10356@if gzip
10357maybe-maintainer-clean-gzip: maintainer-clean-gzip
1358ccea 10358
d32ab992
PB
10359maintainer-clean-gzip:
10360 @[ -f ./gzip/Makefile ] || exit 0; \
8c90b13a
L
10361 r=`${PWD_COMMAND}`; export r; \
10362 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 10363 $(SET_LIB_PATH) \
4fc4dd12 10364 $(HOST_EXPORTS) \
d32ab992 10365 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10366 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10367 done; \
d32ab992
PB
10368 echo "Doing maintainer-clean in gzip" ; \
10369 (cd gzip && \
1358ccea
NN
10370 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10371 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10372 "RANLIB=$${RANLIB}" \
10373 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10374 maintainer-clean) \
295f4e42
NN
10375 || exit 1
10376
d32ab992 10377@endif gzip
295f4e42
NN
10378
10379
d32ab992
PB
10380.PHONY: configure-hello maybe-configure-hello
10381maybe-configure-hello:
10382@if hello
10383maybe-configure-hello: configure-hello
10384configure-hello:
10385 @test ! -f hello/Makefile || exit 0; \
10386 [ -d hello ] || mkdir hello; \
295f4e42
NN
10387 r=`${PWD_COMMAND}`; export r; \
10388 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10389 $(HOST_EXPORTS) \
d32ab992
PB
10390 echo Configuring in hello; \
10391 cd hello || exit 1; \
295f4e42
NN
10392 case $(srcdir) in \
10393 \.) \
10394 srcdiroption="--srcdir=."; \
10395 libsrcdir=".";; \
10396 /* | [A-Za-z]:[\\/]*) \
d32ab992
PB
10397 srcdiroption="--srcdir=$(srcdir)/hello"; \
10398 libsrcdir="$$s/hello";; \
295f4e42 10399 *) \
d32ab992
PB
10400 srcdiroption="--srcdir=../$(srcdir)/hello"; \
10401 libsrcdir="$$s/hello";; \
295f4e42
NN
10402 esac; \
10403 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 10404 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 10405 || exit 1
d32ab992 10406@endif hello
1358ccea 10407
d32ab992
PB
10408.PHONY: all-hello maybe-all-hello
10409maybe-all-hello:
10410@if hello
10411maybe-all-hello: all-hello
10412all-hello: configure-hello
295f4e42 10413 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 10414 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 10415 $(SET_LIB_PATH) \
4fc4dd12 10416 $(HOST_EXPORTS) \
d32ab992
PB
10417 (cd hello && $(MAKE) $(FLAGS_TO_PASS) all)
10418@endif hello
1358ccea 10419
d32ab992
PB
10420.PHONY: check-hello maybe-check-hello
10421maybe-check-hello:
10422@if hello
10423maybe-check-hello: check-hello
1358ccea 10424
d32ab992 10425check-hello:
295f4e42 10426 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 10427 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 10428 $(SET_LIB_PATH) \
4fc4dd12 10429 $(HOST_EXPORTS) \
7c27e184 10430 (cd hello && $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 10431
d32ab992 10432@endif hello
1358ccea 10433
d32ab992
PB
10434.PHONY: install-hello maybe-install-hello
10435maybe-install-hello:
10436@if hello
10437maybe-install-hello: install-hello
1358ccea 10438
d32ab992 10439install-hello: installdirs
295f4e42 10440 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 10441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 10442 $(SET_LIB_PATH) \
4fc4dd12 10443 $(HOST_EXPORTS) \
7c27e184 10444 (cd hello && $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 10445
d32ab992 10446@endif hello
1358ccea 10447
295f4e42 10448# Other targets (info, dvi, etc.)
1358ccea 10449
d32ab992
PB
10450.PHONY: maybe-info-hello info-hello
10451maybe-info-hello:
10452@if hello
10453maybe-info-hello: info-hello
295f4e42 10454
d32ab992
PB
10455info-hello: \
10456 configure-hello
10457 @[ -f ./hello/Makefile ] || exit 0; \
8c90b13a
L
10458 r=`${PWD_COMMAND}`; export r; \
10459 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 10460 $(SET_LIB_PATH) \
4fc4dd12 10461 $(HOST_EXPORTS) \
d32ab992 10462 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10463 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10464 done; \
d32ab992
PB
10465 echo "Doing info in hello" ; \
10466 (cd hello && \
1358ccea
NN
10467 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10468 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10469 "RANLIB=$${RANLIB}" \
10470 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10471 info) \
1358ccea
NN
10472 || exit 1
10473
d32ab992 10474@endif hello
1358ccea 10475
d32ab992
PB
10476.PHONY: maybe-dvi-hello dvi-hello
10477maybe-dvi-hello:
10478@if hello
10479maybe-dvi-hello: dvi-hello
1358ccea 10480
d32ab992
PB
10481dvi-hello: \
10482 configure-hello
10483 @[ -f ./hello/Makefile ] || exit 0; \
8c90b13a
L
10484 r=`${PWD_COMMAND}`; export r; \
10485 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 10486 $(SET_LIB_PATH) \
4fc4dd12 10487 $(HOST_EXPORTS) \
d32ab992 10488 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10489 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10490 done; \
d32ab992
PB
10491 echo "Doing dvi in hello" ; \
10492 (cd hello && \
1358ccea
NN
10493 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10494 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10495 "RANLIB=$${RANLIB}" \
10496 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10497 dvi) \
1358ccea
NN
10498 || exit 1
10499
d32ab992 10500@endif hello
1358ccea 10501
d32ab992
PB
10502.PHONY: maybe-TAGS-hello TAGS-hello
10503maybe-TAGS-hello:
10504@if hello
10505maybe-TAGS-hello: TAGS-hello
1358ccea 10506
d32ab992
PB
10507TAGS-hello: \
10508 configure-hello
10509 @[ -f ./hello/Makefile ] || exit 0; \
8c90b13a
L
10510 r=`${PWD_COMMAND}`; export r; \
10511 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 10512 $(SET_LIB_PATH) \
4fc4dd12 10513 $(HOST_EXPORTS) \
d32ab992 10514 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10515 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10516 done; \
d32ab992
PB
10517 echo "Doing TAGS in hello" ; \
10518 (cd hello && \
1358ccea
NN
10519 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10520 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10521 "RANLIB=$${RANLIB}" \
10522 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10523 TAGS) \
1358ccea
NN
10524 || exit 1
10525
d32ab992 10526@endif hello
1358ccea 10527
d32ab992
PB
10528.PHONY: maybe-install-info-hello install-info-hello
10529maybe-install-info-hello:
10530@if hello
10531maybe-install-info-hello: install-info-hello
1358ccea 10532
d32ab992
PB
10533install-info-hello: \
10534 configure-hello \
10535 info-hello
10536 @[ -f ./hello/Makefile ] || exit 0; \
8c90b13a
L
10537 r=`${PWD_COMMAND}`; export r; \
10538 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 10539 $(SET_LIB_PATH) \
4fc4dd12 10540 $(HOST_EXPORTS) \
d32ab992 10541 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10542 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10543 done; \
d32ab992
PB
10544 echo "Doing install-info in hello" ; \
10545 (cd hello && \
1358ccea
NN
10546 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10547 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10548 "RANLIB=$${RANLIB}" \
10549 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10550 install-info) \
1358ccea
NN
10551 || exit 1
10552
d32ab992 10553@endif hello
1358ccea 10554
d32ab992
PB
10555.PHONY: maybe-installcheck-hello installcheck-hello
10556maybe-installcheck-hello:
10557@if hello
10558maybe-installcheck-hello: installcheck-hello
1358ccea 10559
d32ab992
PB
10560installcheck-hello: \
10561 configure-hello
10562 @[ -f ./hello/Makefile ] || exit 0; \
8c90b13a
L
10563 r=`${PWD_COMMAND}`; export r; \
10564 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 10565 $(SET_LIB_PATH) \
4fc4dd12 10566 $(HOST_EXPORTS) \
d32ab992 10567 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10568 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10569 done; \
d32ab992
PB
10570 echo "Doing installcheck in hello" ; \
10571 (cd hello && \
1358ccea
NN
10572 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10573 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10574 "RANLIB=$${RANLIB}" \
10575 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10576 installcheck) \
1358ccea
NN
10577 || exit 1
10578
d32ab992 10579@endif hello
1358ccea 10580
d32ab992
PB
10581.PHONY: maybe-mostlyclean-hello mostlyclean-hello
10582maybe-mostlyclean-hello:
10583@if hello
10584maybe-mostlyclean-hello: mostlyclean-hello
1358ccea 10585
d32ab992
PB
10586mostlyclean-hello:
10587 @[ -f ./hello/Makefile ] || exit 0; \
8c90b13a
L
10588 r=`${PWD_COMMAND}`; export r; \
10589 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 10590 $(SET_LIB_PATH) \
4fc4dd12 10591 $(HOST_EXPORTS) \
d32ab992 10592 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10593 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10594 done; \
d32ab992
PB
10595 echo "Doing mostlyclean in hello" ; \
10596 (cd hello && \
1358ccea
NN
10597 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10598 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10599 "RANLIB=$${RANLIB}" \
10600 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10601 mostlyclean) \
1358ccea
NN
10602 || exit 1
10603
d32ab992 10604@endif hello
1358ccea 10605
d32ab992
PB
10606.PHONY: maybe-clean-hello clean-hello
10607maybe-clean-hello:
10608@if hello
10609maybe-clean-hello: clean-hello
1358ccea 10610
d32ab992
PB
10611clean-hello:
10612 @[ -f ./hello/Makefile ] || exit 0; \
8c90b13a
L
10613 r=`${PWD_COMMAND}`; export r; \
10614 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 10615 $(SET_LIB_PATH) \
4fc4dd12 10616 $(HOST_EXPORTS) \
d32ab992 10617 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10618 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10619 done; \
d32ab992
PB
10620 echo "Doing clean in hello" ; \
10621 (cd hello && \
1358ccea
NN
10622 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10623 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10624 "RANLIB=$${RANLIB}" \
10625 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10626 clean) \
1358ccea
NN
10627 || exit 1
10628
d32ab992 10629@endif hello
1358ccea 10630
d32ab992
PB
10631.PHONY: maybe-distclean-hello distclean-hello
10632maybe-distclean-hello:
10633@if hello
10634maybe-distclean-hello: distclean-hello
1358ccea 10635
d32ab992
PB
10636distclean-hello:
10637 @[ -f ./hello/Makefile ] || exit 0; \
8c90b13a
L
10638 r=`${PWD_COMMAND}`; export r; \
10639 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 10640 $(SET_LIB_PATH) \
4fc4dd12 10641 $(HOST_EXPORTS) \
d32ab992 10642 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10643 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10644 done; \
d32ab992
PB
10645 echo "Doing distclean in hello" ; \
10646 (cd hello && \
1358ccea
NN
10647 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10648 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10649 "RANLIB=$${RANLIB}" \
10650 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10651 distclean) \
1358ccea
NN
10652 || exit 1
10653
d32ab992 10654@endif hello
1358ccea 10655
d32ab992
PB
10656.PHONY: maybe-maintainer-clean-hello maintainer-clean-hello
10657maybe-maintainer-clean-hello:
10658@if hello
10659maybe-maintainer-clean-hello: maintainer-clean-hello
1358ccea 10660
d32ab992
PB
10661maintainer-clean-hello:
10662 @[ -f ./hello/Makefile ] || exit 0; \
8c90b13a
L
10663 r=`${PWD_COMMAND}`; export r; \
10664 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 10665 $(SET_LIB_PATH) \
4fc4dd12 10666 $(HOST_EXPORTS) \
d32ab992 10667 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10668 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10669 done; \
d32ab992
PB
10670 echo "Doing maintainer-clean in hello" ; \
10671 (cd hello && \
1358ccea
NN
10672 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10673 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10674 "RANLIB=$${RANLIB}" \
10675 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10676 maintainer-clean) \
1358ccea
NN
10677 || exit 1
10678
d32ab992 10679@endif hello
1358ccea 10680
1358ccea 10681
d32ab992
PB
10682.PHONY: configure-indent maybe-configure-indent
10683maybe-configure-indent:
10684@if indent
10685maybe-configure-indent: configure-indent
10686configure-indent:
10687 @test ! -f indent/Makefile || exit 0; \
10688 [ -d indent ] || mkdir indent; \
8c90b13a
L
10689 r=`${PWD_COMMAND}`; export r; \
10690 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10691 $(HOST_EXPORTS) \
d32ab992
PB
10692 echo Configuring in indent; \
10693 cd indent || exit 1; \
295f4e42
NN
10694 case $(srcdir) in \
10695 \.) \
10696 srcdiroption="--srcdir=."; \
10697 libsrcdir=".";; \
10698 /* | [A-Za-z]:[\\/]*) \
d32ab992
PB
10699 srcdiroption="--srcdir=$(srcdir)/indent"; \
10700 libsrcdir="$$s/indent";; \
295f4e42 10701 *) \
d32ab992
PB
10702 srcdiroption="--srcdir=../$(srcdir)/indent"; \
10703 libsrcdir="$$s/indent";; \
295f4e42
NN
10704 esac; \
10705 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 10706 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 10707 || exit 1
d32ab992 10708@endif indent
1358ccea 10709
d32ab992
PB
10710.PHONY: all-indent maybe-all-indent
10711maybe-all-indent:
10712@if indent
10713maybe-all-indent: all-indent
10714all-indent: configure-indent
295f4e42
NN
10715 @r=`${PWD_COMMAND}`; export r; \
10716 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10717 $(SET_LIB_PATH) \
4fc4dd12 10718 $(HOST_EXPORTS) \
d32ab992
PB
10719 (cd indent && $(MAKE) $(FLAGS_TO_PASS) all)
10720@endif indent
1358ccea 10721
d32ab992
PB
10722.PHONY: check-indent maybe-check-indent
10723maybe-check-indent:
10724@if indent
10725maybe-check-indent: check-indent
1358ccea 10726
d32ab992 10727check-indent:
295f4e42 10728 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 10729 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 10730 $(SET_LIB_PATH) \
4fc4dd12 10731 $(HOST_EXPORTS) \
7c27e184 10732 (cd indent && $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 10733
d32ab992 10734@endif indent
1358ccea 10735
d32ab992
PB
10736.PHONY: install-indent maybe-install-indent
10737maybe-install-indent:
10738@if indent
10739maybe-install-indent: install-indent
1358ccea 10740
d32ab992 10741install-indent: installdirs
295f4e42 10742 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 10743 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 10744 $(SET_LIB_PATH) \
4fc4dd12 10745 $(HOST_EXPORTS) \
7c27e184 10746 (cd indent && $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 10747
d32ab992 10748@endif indent
1358ccea 10749
295f4e42 10750# Other targets (info, dvi, etc.)
1358ccea 10751
d32ab992
PB
10752.PHONY: maybe-info-indent info-indent
10753maybe-info-indent:
10754@if indent
10755maybe-info-indent: info-indent
295f4e42 10756
d32ab992
PB
10757info-indent: \
10758 configure-indent
10759 @[ -f ./indent/Makefile ] || exit 0; \
8c90b13a
L
10760 r=`${PWD_COMMAND}`; export r; \
10761 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 10762 $(SET_LIB_PATH) \
4fc4dd12 10763 $(HOST_EXPORTS) \
d32ab992 10764 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10765 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10766 done; \
d32ab992
PB
10767 echo "Doing info in indent" ; \
10768 (cd indent && \
1358ccea
NN
10769 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10770 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10771 "RANLIB=$${RANLIB}" \
10772 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10773 info) \
1358ccea
NN
10774 || exit 1
10775
d32ab992 10776@endif indent
1358ccea 10777
d32ab992
PB
10778.PHONY: maybe-dvi-indent dvi-indent
10779maybe-dvi-indent:
10780@if indent
10781maybe-dvi-indent: dvi-indent
1358ccea 10782
d32ab992
PB
10783dvi-indent: \
10784 configure-indent
10785 @[ -f ./indent/Makefile ] || exit 0; \
8c90b13a
L
10786 r=`${PWD_COMMAND}`; export r; \
10787 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 10788 $(SET_LIB_PATH) \
4fc4dd12 10789 $(HOST_EXPORTS) \
d32ab992 10790 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10791 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10792 done; \
d32ab992
PB
10793 echo "Doing dvi in indent" ; \
10794 (cd indent && \
1358ccea
NN
10795 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10796 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10797 "RANLIB=$${RANLIB}" \
10798 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10799 dvi) \
1358ccea
NN
10800 || exit 1
10801
d32ab992 10802@endif indent
1358ccea 10803
d32ab992
PB
10804.PHONY: maybe-TAGS-indent TAGS-indent
10805maybe-TAGS-indent:
10806@if indent
10807maybe-TAGS-indent: TAGS-indent
1358ccea 10808
d32ab992
PB
10809TAGS-indent: \
10810 configure-indent
10811 @[ -f ./indent/Makefile ] || exit 0; \
8c90b13a
L
10812 r=`${PWD_COMMAND}`; export r; \
10813 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 10814 $(SET_LIB_PATH) \
4fc4dd12 10815 $(HOST_EXPORTS) \
d32ab992 10816 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10817 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10818 done; \
d32ab992
PB
10819 echo "Doing TAGS in indent" ; \
10820 (cd indent && \
1358ccea
NN
10821 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10822 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10823 "RANLIB=$${RANLIB}" \
10824 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10825 TAGS) \
1358ccea
NN
10826 || exit 1
10827
d32ab992 10828@endif indent
1358ccea 10829
d32ab992
PB
10830.PHONY: maybe-install-info-indent install-info-indent
10831maybe-install-info-indent:
10832@if indent
10833maybe-install-info-indent: install-info-indent
1358ccea 10834
d32ab992
PB
10835install-info-indent: \
10836 configure-indent \
10837 info-indent
10838 @[ -f ./indent/Makefile ] || exit 0; \
8c90b13a
L
10839 r=`${PWD_COMMAND}`; export r; \
10840 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 10841 $(SET_LIB_PATH) \
4fc4dd12 10842 $(HOST_EXPORTS) \
d32ab992 10843 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10844 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10845 done; \
d32ab992
PB
10846 echo "Doing install-info in indent" ; \
10847 (cd indent && \
1358ccea
NN
10848 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10849 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10850 "RANLIB=$${RANLIB}" \
10851 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10852 install-info) \
1358ccea
NN
10853 || exit 1
10854
d32ab992 10855@endif indent
1358ccea 10856
d32ab992
PB
10857.PHONY: maybe-installcheck-indent installcheck-indent
10858maybe-installcheck-indent:
10859@if indent
10860maybe-installcheck-indent: installcheck-indent
1358ccea 10861
d32ab992
PB
10862installcheck-indent: \
10863 configure-indent
10864 @[ -f ./indent/Makefile ] || exit 0; \
8c90b13a
L
10865 r=`${PWD_COMMAND}`; export r; \
10866 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 10867 $(SET_LIB_PATH) \
4fc4dd12 10868 $(HOST_EXPORTS) \
d32ab992 10869 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10870 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10871 done; \
d32ab992
PB
10872 echo "Doing installcheck in indent" ; \
10873 (cd indent && \
1358ccea
NN
10874 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10875 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10876 "RANLIB=$${RANLIB}" \
10877 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10878 installcheck) \
1358ccea
NN
10879 || exit 1
10880
d32ab992 10881@endif indent
1358ccea 10882
d32ab992
PB
10883.PHONY: maybe-mostlyclean-indent mostlyclean-indent
10884maybe-mostlyclean-indent:
10885@if indent
10886maybe-mostlyclean-indent: mostlyclean-indent
1358ccea 10887
d32ab992
PB
10888mostlyclean-indent:
10889 @[ -f ./indent/Makefile ] || exit 0; \
8c90b13a
L
10890 r=`${PWD_COMMAND}`; export r; \
10891 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 10892 $(SET_LIB_PATH) \
4fc4dd12 10893 $(HOST_EXPORTS) \
d32ab992 10894 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10895 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10896 done; \
d32ab992
PB
10897 echo "Doing mostlyclean in indent" ; \
10898 (cd indent && \
1358ccea
NN
10899 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10900 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10901 "RANLIB=$${RANLIB}" \
10902 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10903 mostlyclean) \
1358ccea
NN
10904 || exit 1
10905
d32ab992 10906@endif indent
1358ccea 10907
d32ab992
PB
10908.PHONY: maybe-clean-indent clean-indent
10909maybe-clean-indent:
10910@if indent
10911maybe-clean-indent: clean-indent
1358ccea 10912
d32ab992
PB
10913clean-indent:
10914 @[ -f ./indent/Makefile ] || exit 0; \
8c90b13a
L
10915 r=`${PWD_COMMAND}`; export r; \
10916 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 10917 $(SET_LIB_PATH) \
4fc4dd12 10918 $(HOST_EXPORTS) \
d32ab992 10919 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10920 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10921 done; \
d32ab992
PB
10922 echo "Doing clean in indent" ; \
10923 (cd indent && \
1358ccea
NN
10924 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10925 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10926 "RANLIB=$${RANLIB}" \
10927 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10928 clean) \
1358ccea
NN
10929 || exit 1
10930
d32ab992 10931@endif indent
1358ccea 10932
d32ab992
PB
10933.PHONY: maybe-distclean-indent distclean-indent
10934maybe-distclean-indent:
10935@if indent
10936maybe-distclean-indent: distclean-indent
1358ccea 10937
d32ab992
PB
10938distclean-indent:
10939 @[ -f ./indent/Makefile ] || exit 0; \
8c90b13a
L
10940 r=`${PWD_COMMAND}`; export r; \
10941 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 10942 $(SET_LIB_PATH) \
4fc4dd12 10943 $(HOST_EXPORTS) \
d32ab992 10944 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10945 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10946 done; \
d32ab992
PB
10947 echo "Doing distclean in indent" ; \
10948 (cd indent && \
1358ccea
NN
10949 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10950 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10951 "RANLIB=$${RANLIB}" \
10952 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10953 distclean) \
1358ccea
NN
10954 || exit 1
10955
d32ab992 10956@endif indent
1358ccea 10957
d32ab992
PB
10958.PHONY: maybe-maintainer-clean-indent maintainer-clean-indent
10959maybe-maintainer-clean-indent:
10960@if indent
10961maybe-maintainer-clean-indent: maintainer-clean-indent
1358ccea 10962
d32ab992
PB
10963maintainer-clean-indent:
10964 @[ -f ./indent/Makefile ] || exit 0; \
8c90b13a
L
10965 r=`${PWD_COMMAND}`; export r; \
10966 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 10967 $(SET_LIB_PATH) \
4fc4dd12 10968 $(HOST_EXPORTS) \
d32ab992 10969 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10970 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10971 done; \
d32ab992
PB
10972 echo "Doing maintainer-clean in indent" ; \
10973 (cd indent && \
1358ccea
NN
10974 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10975 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10976 "RANLIB=$${RANLIB}" \
10977 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10978 maintainer-clean) \
1358ccea
NN
10979 || exit 1
10980
d32ab992 10981@endif indent
1358ccea 10982
1358ccea 10983
d32ab992
PB
10984.PHONY: configure-intl maybe-configure-intl
10985maybe-configure-intl:
10986@if intl
10987maybe-configure-intl: configure-intl
10988configure-intl:
7c27e184
PB
10989 @test -f stage_last && exit 0; \
10990 test ! -f intl/Makefile || exit 0; \
d32ab992 10991 [ -d intl ] || mkdir intl; \
8c90b13a
L
10992 r=`${PWD_COMMAND}`; export r; \
10993 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10994 $(HOST_EXPORTS) \
d32ab992
PB
10995 echo Configuring in intl; \
10996 cd intl || exit 1; \
295f4e42
NN
10997 case $(srcdir) in \
10998 \.) \
10999 srcdiroption="--srcdir=."; \
11000 libsrcdir=".";; \
11001 /* | [A-Za-z]:[\\/]*) \
d32ab992
PB
11002 srcdiroption="--srcdir=$(srcdir)/intl"; \
11003 libsrcdir="$$s/intl";; \
295f4e42 11004 *) \
d32ab992
PB
11005 srcdiroption="--srcdir=../$(srcdir)/intl"; \
11006 libsrcdir="$$s/intl";; \
295f4e42
NN
11007 esac; \
11008 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 11009 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 11010 || exit 1
d32ab992 11011@endif intl
1358ccea 11012
d32ab992
PB
11013.PHONY: all-intl maybe-all-intl
11014maybe-all-intl:
11015@if intl
11016maybe-all-intl: all-intl
11017all-intl: configure-intl
7c27e184
PB
11018 @test -f stage_last && exit 0; \
11019 r=`${PWD_COMMAND}`; export r; \
295f4e42
NN
11020 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11021 $(SET_LIB_PATH) \
4fc4dd12 11022 $(HOST_EXPORTS) \
d32ab992
PB
11023 (cd intl && $(MAKE) $(FLAGS_TO_PASS) all)
11024@endif intl
295f4e42 11025
d32ab992
PB
11026.PHONY: check-intl maybe-check-intl
11027maybe-check-intl:
11028@if intl
11029maybe-check-intl: check-intl
295f4e42 11030
d32ab992 11031check-intl:
295f4e42
NN
11032 @r=`${PWD_COMMAND}`; export r; \
11033 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11034 $(SET_LIB_PATH) \
4fc4dd12 11035 $(HOST_EXPORTS) \
7c27e184 11036 (cd intl && $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 11037
d32ab992 11038@endif intl
1358ccea 11039
d32ab992
PB
11040.PHONY: install-intl maybe-install-intl
11041maybe-install-intl:
11042@if intl
11043maybe-install-intl: install-intl
295f4e42 11044
d32ab992 11045install-intl: installdirs
295f4e42 11046 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 11047 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 11048 $(SET_LIB_PATH) \
4fc4dd12 11049 $(HOST_EXPORTS) \
7c27e184 11050 (cd intl && $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 11051
d32ab992 11052@endif intl
1358ccea 11053
295f4e42 11054# Other targets (info, dvi, etc.)
1358ccea 11055
d32ab992
PB
11056.PHONY: maybe-info-intl info-intl
11057maybe-info-intl:
11058@if intl
11059maybe-info-intl: info-intl
295f4e42 11060
d32ab992
PB
11061info-intl: \
11062 configure-intl
11063 @[ -f ./intl/Makefile ] || exit 0; \
8c90b13a
L
11064 r=`${PWD_COMMAND}`; export r; \
11065 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 11066 $(SET_LIB_PATH) \
4fc4dd12 11067 $(HOST_EXPORTS) \
d32ab992 11068 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11069 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11070 done; \
d32ab992
PB
11071 echo "Doing info in intl" ; \
11072 (cd intl && \
1358ccea
NN
11073 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11074 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11075 "RANLIB=$${RANLIB}" \
11076 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 11077 info) \
1358ccea
NN
11078 || exit 1
11079
d32ab992 11080@endif intl
1358ccea 11081
d32ab992
PB
11082.PHONY: maybe-dvi-intl dvi-intl
11083maybe-dvi-intl:
11084@if intl
11085maybe-dvi-intl: dvi-intl
1358ccea 11086
d32ab992
PB
11087dvi-intl: \
11088 configure-intl
11089 @[ -f ./intl/Makefile ] || exit 0; \
11090 r=`${PWD_COMMAND}`; export r; \
8c90b13a 11091 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 11092 $(SET_LIB_PATH) \
4fc4dd12 11093 $(HOST_EXPORTS) \
d32ab992 11094 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11095 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11096 done; \
d32ab992
PB
11097 echo "Doing dvi in intl" ; \
11098 (cd intl && \
1358ccea
NN
11099 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11100 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11101 "RANLIB=$${RANLIB}" \
11102 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 11103 dvi) \
1358ccea
NN
11104 || exit 1
11105
d32ab992 11106@endif intl
1358ccea 11107
d32ab992
PB
11108.PHONY: maybe-TAGS-intl TAGS-intl
11109maybe-TAGS-intl:
11110@if intl
11111maybe-TAGS-intl: TAGS-intl
1358ccea 11112
d32ab992
PB
11113TAGS-intl: \
11114 configure-intl
11115 @[ -f ./intl/Makefile ] || exit 0; \
8c90b13a
L
11116 r=`${PWD_COMMAND}`; export r; \
11117 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 11118 $(SET_LIB_PATH) \
4fc4dd12 11119 $(HOST_EXPORTS) \
d32ab992 11120 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11121 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11122 done; \
d32ab992
PB
11123 echo "Doing TAGS in intl" ; \
11124 (cd intl && \
1358ccea
NN
11125 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11126 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11127 "RANLIB=$${RANLIB}" \
11128 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 11129 TAGS) \
1358ccea
NN
11130 || exit 1
11131
d32ab992 11132@endif intl
1358ccea 11133
d32ab992
PB
11134.PHONY: maybe-install-info-intl install-info-intl
11135maybe-install-info-intl:
11136@if intl
11137maybe-install-info-intl: install-info-intl
1358ccea 11138
d32ab992
PB
11139install-info-intl: \
11140 configure-intl \
11141 info-intl
11142 @[ -f ./intl/Makefile ] || exit 0; \
8c90b13a
L
11143 r=`${PWD_COMMAND}`; export r; \
11144 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 11145 $(SET_LIB_PATH) \
4fc4dd12 11146 $(HOST_EXPORTS) \
d32ab992 11147 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11148 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11149 done; \
d32ab992
PB
11150 echo "Doing install-info in intl" ; \
11151 (cd intl && \
1358ccea
NN
11152 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11153 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11154 "RANLIB=$${RANLIB}" \
11155 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 11156 install-info) \
1358ccea
NN
11157 || exit 1
11158
d32ab992 11159@endif intl
1358ccea 11160
d32ab992
PB
11161.PHONY: maybe-installcheck-intl installcheck-intl
11162maybe-installcheck-intl:
11163@if intl
11164maybe-installcheck-intl: installcheck-intl
1358ccea 11165
d32ab992
PB
11166installcheck-intl: \
11167 configure-intl
11168 @[ -f ./intl/Makefile ] || exit 0; \
8c90b13a
L
11169 r=`${PWD_COMMAND}`; export r; \
11170 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 11171 $(SET_LIB_PATH) \
4fc4dd12 11172 $(HOST_EXPORTS) \
d32ab992 11173 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11174 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11175 done; \
d32ab992
PB
11176 echo "Doing installcheck in intl" ; \
11177 (cd intl && \
1358ccea
NN
11178 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11179 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11180 "RANLIB=$${RANLIB}" \
11181 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 11182 installcheck) \
1358ccea
NN
11183 || exit 1
11184
d32ab992 11185@endif intl
1358ccea 11186
d32ab992
PB
11187.PHONY: maybe-mostlyclean-intl mostlyclean-intl
11188maybe-mostlyclean-intl:
11189@if intl
11190maybe-mostlyclean-intl: mostlyclean-intl
1358ccea 11191
d32ab992
PB
11192mostlyclean-intl:
11193 @[ -f ./intl/Makefile ] || exit 0; \
11194 r=`${PWD_COMMAND}`; export r; \
11195 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11196 $(SET_LIB_PATH) \
11197 $(HOST_EXPORTS) \
11198 for flag in $(EXTRA_HOST_FLAGS) ; do \
11199 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11200 done; \
11201 echo "Doing mostlyclean in intl" ; \
11202 (cd intl && \
11203 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11204 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11205 "RANLIB=$${RANLIB}" \
11206 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11207 mostlyclean) \
11208 || exit 1
295f4e42 11209
d32ab992 11210@endif intl
295f4e42 11211
d32ab992
PB
11212.PHONY: maybe-clean-intl clean-intl
11213maybe-clean-intl:
11214@if intl
11215maybe-clean-intl: clean-intl
295f4e42 11216
d32ab992
PB
11217clean-intl:
11218 @[ -f ./intl/Makefile ] || exit 0; \
8c90b13a
L
11219 r=`${PWD_COMMAND}`; export r; \
11220 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 11221 $(SET_LIB_PATH) \
4fc4dd12 11222 $(HOST_EXPORTS) \
d32ab992 11223 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11224 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11225 done; \
d32ab992
PB
11226 echo "Doing clean in intl" ; \
11227 (cd intl && \
1358ccea
NN
11228 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11229 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11230 "RANLIB=$${RANLIB}" \
11231 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 11232 clean) \
1358ccea
NN
11233 || exit 1
11234
d32ab992 11235@endif intl
1358ccea 11236
d32ab992
PB
11237.PHONY: maybe-distclean-intl distclean-intl
11238maybe-distclean-intl:
11239@if intl
11240maybe-distclean-intl: distclean-intl
1358ccea 11241
d32ab992
PB
11242distclean-intl:
11243 @[ -f ./intl/Makefile ] || exit 0; \
8c90b13a
L
11244 r=`${PWD_COMMAND}`; export r; \
11245 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 11246 $(SET_LIB_PATH) \
4fc4dd12 11247 $(HOST_EXPORTS) \
d32ab992 11248 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11249 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11250 done; \
d32ab992
PB
11251 echo "Doing distclean in intl" ; \
11252 (cd intl && \
1358ccea
NN
11253 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11254 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11255 "RANLIB=$${RANLIB}" \
11256 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 11257 distclean) \
1358ccea
NN
11258 || exit 1
11259
d32ab992 11260@endif intl
1358ccea 11261
d32ab992
PB
11262.PHONY: maybe-maintainer-clean-intl maintainer-clean-intl
11263maybe-maintainer-clean-intl:
11264@if intl
11265maybe-maintainer-clean-intl: maintainer-clean-intl
1358ccea 11266
d32ab992
PB
11267maintainer-clean-intl:
11268 @[ -f ./intl/Makefile ] || exit 0; \
8c90b13a
L
11269 r=`${PWD_COMMAND}`; export r; \
11270 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 11271 $(SET_LIB_PATH) \
4fc4dd12 11272 $(HOST_EXPORTS) \
d32ab992 11273 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11274 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11275 done; \
d32ab992
PB
11276 echo "Doing maintainer-clean in intl" ; \
11277 (cd intl && \
1358ccea
NN
11278 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11279 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11280 "RANLIB=$${RANLIB}" \
11281 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 11282 maintainer-clean) \
1358ccea
NN
11283 || exit 1
11284
d32ab992 11285@endif intl
1358ccea 11286
1358ccea 11287
d32ab992
PB
11288.PHONY: configure-tcl maybe-configure-tcl
11289maybe-configure-tcl:
11290@if tcl
11291maybe-configure-tcl: configure-tcl
11292configure-tcl:
11293 @test ! -f tcl/Makefile || exit 0; \
11294 [ -d tcl ] || mkdir tcl; \
8c90b13a
L
11295 r=`${PWD_COMMAND}`; export r; \
11296 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11297 $(HOST_EXPORTS) \
d32ab992
PB
11298 echo Configuring in tcl; \
11299 cd tcl || exit 1; \
295f4e42
NN
11300 case $(srcdir) in \
11301 \.) \
11302 srcdiroption="--srcdir=."; \
11303 libsrcdir=".";; \
11304 /* | [A-Za-z]:[\\/]*) \
d32ab992
PB
11305 srcdiroption="--srcdir=$(srcdir)/tcl"; \
11306 libsrcdir="$$s/tcl";; \
295f4e42 11307 *) \
d32ab992
PB
11308 srcdiroption="--srcdir=../$(srcdir)/tcl"; \
11309 libsrcdir="$$s/tcl";; \
295f4e42
NN
11310 esac; \
11311 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 11312 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 11313 || exit 1
d32ab992 11314@endif tcl
1358ccea 11315
d32ab992
PB
11316.PHONY: all-tcl maybe-all-tcl
11317maybe-all-tcl:
11318@if tcl
11319maybe-all-tcl: all-tcl
11320all-tcl: configure-tcl
295f4e42
NN
11321 @r=`${PWD_COMMAND}`; export r; \
11322 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11323 $(SET_LIB_PATH) \
4fc4dd12 11324 $(HOST_EXPORTS) \
d32ab992
PB
11325 (cd tcl && $(MAKE) $(FLAGS_TO_PASS) all)
11326@endif tcl
1358ccea 11327
d32ab992
PB
11328.PHONY: check-tcl maybe-check-tcl
11329maybe-check-tcl:
11330@if tcl
11331maybe-check-tcl: check-tcl
d9cdb878 11332
d32ab992 11333check-tcl:
295f4e42 11334 @r=`${PWD_COMMAND}`; export r; \
d9cdb878
AC
11335 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11336 $(SET_LIB_PATH) \
4fc4dd12 11337 $(HOST_EXPORTS) \
7c27e184 11338 (cd tcl && $(MAKE) $(FLAGS_TO_PASS) check)
d9cdb878 11339
d32ab992 11340@endif tcl
d9cdb878 11341
d32ab992
PB
11342.PHONY: install-tcl maybe-install-tcl
11343maybe-install-tcl:
11344@if tcl
11345maybe-install-tcl: install-tcl
1358ccea 11346
d32ab992 11347install-tcl: installdirs
295f4e42
NN
11348 @r=`${PWD_COMMAND}`; export r; \
11349 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11350 $(SET_LIB_PATH) \
4fc4dd12 11351 $(HOST_EXPORTS) \
7c27e184 11352 (cd tcl && $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 11353
d32ab992 11354@endif tcl
1358ccea 11355
295f4e42 11356# Other targets (info, dvi, etc.)
1358ccea 11357
d32ab992
PB
11358.PHONY: maybe-info-tcl info-tcl
11359maybe-info-tcl:
11360@if tcl
11361maybe-info-tcl: info-tcl
295f4e42 11362
d32ab992
PB
11363info-tcl: \
11364 configure-tcl
11365 @[ -f ./tcl/Makefile ] || exit 0; \
8c90b13a
L
11366 r=`${PWD_COMMAND}`; export r; \
11367 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 11368 $(SET_LIB_PATH) \
4fc4dd12 11369 $(HOST_EXPORTS) \
d32ab992 11370 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11371 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11372 done; \
d32ab992
PB
11373 echo "Doing info in tcl" ; \
11374 (cd tcl && \
1358ccea
NN
11375 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11376 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11377 "RANLIB=$${RANLIB}" \
11378 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 11379 info) \
1358ccea
NN
11380 || exit 1
11381
d32ab992 11382@endif tcl
1358ccea 11383
d32ab992
PB
11384.PHONY: maybe-dvi-tcl dvi-tcl
11385maybe-dvi-tcl:
11386@if tcl
11387maybe-dvi-tcl: dvi-tcl
1358ccea 11388
d32ab992
PB
11389dvi-tcl: \
11390 configure-tcl
11391 @[ -f ./tcl/Makefile ] || exit 0; \
8c90b13a
L
11392 r=`${PWD_COMMAND}`; export r; \
11393 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 11394 $(SET_LIB_PATH) \
4fc4dd12 11395 $(HOST_EXPORTS) \
d32ab992 11396 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11397 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11398 done; \
d32ab992
PB
11399 echo "Doing dvi in tcl" ; \
11400 (cd tcl && \
1358ccea
NN
11401 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11402 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11403 "RANLIB=$${RANLIB}" \
11404 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 11405 dvi) \
1358ccea
NN
11406 || exit 1
11407
d32ab992 11408@endif tcl
1358ccea 11409
d32ab992
PB
11410.PHONY: maybe-TAGS-tcl TAGS-tcl
11411maybe-TAGS-tcl:
11412@if tcl
11413maybe-TAGS-tcl: TAGS-tcl
1358ccea 11414
d32ab992
PB
11415TAGS-tcl: \
11416 configure-tcl
11417 @[ -f ./tcl/Makefile ] || exit 0; \
8c90b13a
L
11418 r=`${PWD_COMMAND}`; export r; \
11419 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 11420 $(SET_LIB_PATH) \
4fc4dd12 11421 $(HOST_EXPORTS) \
d32ab992 11422 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11423 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11424 done; \
d32ab992
PB
11425 echo "Doing TAGS in tcl" ; \
11426 (cd tcl && \
1358ccea
NN
11427 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11428 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11429 "RANLIB=$${RANLIB}" \
11430 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 11431 TAGS) \
1358ccea
NN
11432 || exit 1
11433
d32ab992 11434@endif tcl
1358ccea 11435
d32ab992
PB
11436.PHONY: maybe-install-info-tcl install-info-tcl
11437maybe-install-info-tcl:
11438@if tcl
11439maybe-install-info-tcl: install-info-tcl
1358ccea 11440
d32ab992
PB
11441install-info-tcl: \
11442 configure-tcl \
11443 info-tcl
11444 @[ -f ./tcl/Makefile ] || exit 0; \
8c90b13a
L
11445 r=`${PWD_COMMAND}`; export r; \
11446 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 11447 $(SET_LIB_PATH) \
4fc4dd12 11448 $(HOST_EXPORTS) \
d32ab992 11449 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11450 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11451 done; \
d32ab992
PB
11452 echo "Doing install-info in tcl" ; \
11453 (cd tcl && \
1358ccea
NN
11454 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11455 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11456 "RANLIB=$${RANLIB}" \
11457 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 11458 install-info) \
1358ccea
NN
11459 || exit 1
11460
d32ab992 11461@endif tcl
1358ccea 11462
d32ab992
PB
11463.PHONY: maybe-installcheck-tcl installcheck-tcl
11464maybe-installcheck-tcl:
11465@if tcl
11466maybe-installcheck-tcl: installcheck-tcl
1358ccea 11467
d32ab992
PB
11468installcheck-tcl: \
11469 configure-tcl
11470 @[ -f ./tcl/Makefile ] || exit 0; \
8c90b13a
L
11471 r=`${PWD_COMMAND}`; export r; \
11472 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 11473 $(SET_LIB_PATH) \
4fc4dd12 11474 $(HOST_EXPORTS) \
d32ab992 11475 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11476 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11477 done; \
d32ab992
PB
11478 echo "Doing installcheck in tcl" ; \
11479 (cd tcl && \
1358ccea
NN
11480 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11481 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11482 "RANLIB=$${RANLIB}" \
11483 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 11484 installcheck) \
1358ccea
NN
11485 || exit 1
11486
d32ab992 11487@endif tcl
1358ccea 11488
d32ab992
PB
11489.PHONY: maybe-mostlyclean-tcl mostlyclean-tcl
11490maybe-mostlyclean-tcl:
11491@if tcl
11492maybe-mostlyclean-tcl: mostlyclean-tcl
1358ccea 11493
d32ab992
PB
11494# tcl doesn't support mostlyclean.
11495mostlyclean-tcl:
1358ccea 11496
d32ab992 11497@endif tcl
1358ccea 11498
d32ab992
PB
11499.PHONY: maybe-clean-tcl clean-tcl
11500maybe-clean-tcl:
11501@if tcl
11502maybe-clean-tcl: clean-tcl
1358ccea 11503
d32ab992
PB
11504clean-tcl:
11505 @[ -f ./tcl/Makefile ] || exit 0; \
8c90b13a
L
11506 r=`${PWD_COMMAND}`; export r; \
11507 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 11508 $(SET_LIB_PATH) \
4fc4dd12 11509 $(HOST_EXPORTS) \
d32ab992 11510 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11511 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11512 done; \
d32ab992
PB
11513 echo "Doing clean in tcl" ; \
11514 (cd tcl && \
1358ccea
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}" \
d32ab992 11519 clean) \
1358ccea
NN
11520 || exit 1
11521
d32ab992 11522@endif tcl
1358ccea 11523
d32ab992
PB
11524.PHONY: maybe-distclean-tcl distclean-tcl
11525maybe-distclean-tcl:
11526@if tcl
11527maybe-distclean-tcl: distclean-tcl
1358ccea 11528
d32ab992
PB
11529distclean-tcl:
11530 @[ -f ./tcl/Makefile ] || exit 0; \
8c90b13a
L
11531 r=`${PWD_COMMAND}`; export r; \
11532 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 11533 $(SET_LIB_PATH) \
4fc4dd12 11534 $(HOST_EXPORTS) \
d32ab992 11535 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11536 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11537 done; \
d32ab992
PB
11538 echo "Doing distclean in tcl" ; \
11539 (cd tcl && \
1358ccea
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}" \
d32ab992 11544 distclean) \
1358ccea
NN
11545 || exit 1
11546
d32ab992 11547@endif tcl
1358ccea 11548
d32ab992
PB
11549.PHONY: maybe-maintainer-clean-tcl maintainer-clean-tcl
11550maybe-maintainer-clean-tcl:
11551@if tcl
11552maybe-maintainer-clean-tcl: maintainer-clean-tcl
1358ccea 11553
d32ab992
PB
11554maintainer-clean-tcl:
11555 @[ -f ./tcl/Makefile ] || exit 0; \
8c90b13a
L
11556 r=`${PWD_COMMAND}`; export r; \
11557 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 11558 $(SET_LIB_PATH) \
4fc4dd12 11559 $(HOST_EXPORTS) \
d32ab992 11560 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11561 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11562 done; \
d32ab992
PB
11563 echo "Doing maintainer-clean in tcl" ; \
11564 (cd tcl && \
1358ccea
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}" \
d32ab992 11569 maintainer-clean) \
1358ccea
NN
11570 || exit 1
11571
d32ab992 11572@endif tcl
295f4e42
NN
11573
11574
d32ab992
PB
11575.PHONY: configure-itcl maybe-configure-itcl
11576maybe-configure-itcl:
11577@if itcl
11578maybe-configure-itcl: configure-itcl
11579configure-itcl:
11580 @test ! -f itcl/Makefile || exit 0; \
11581 [ -d itcl ] || mkdir itcl; \
295f4e42
NN
11582 r=`${PWD_COMMAND}`; export r; \
11583 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11584 $(HOST_EXPORTS) \
d32ab992
PB
11585 echo Configuring in itcl; \
11586 cd itcl || exit 1; \
295f4e42
NN
11587 case $(srcdir) in \
11588 \.) \
11589 srcdiroption="--srcdir=."; \
11590 libsrcdir=".";; \
11591 /* | [A-Za-z]:[\\/]*) \
d32ab992
PB
11592 srcdiroption="--srcdir=$(srcdir)/itcl"; \
11593 libsrcdir="$$s/itcl";; \
295f4e42 11594 *) \
d32ab992
PB
11595 srcdiroption="--srcdir=../$(srcdir)/itcl"; \
11596 libsrcdir="$$s/itcl";; \
295f4e42
NN
11597 esac; \
11598 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 11599 $(HOST_CONFIGARGS) $${srcdiroption} \
295f4e42 11600 || exit 1
d32ab992 11601@endif itcl
295f4e42 11602
d32ab992
PB
11603.PHONY: all-itcl maybe-all-itcl
11604maybe-all-itcl:
11605@if itcl
11606maybe-all-itcl: all-itcl
11607all-itcl: configure-itcl
295f4e42 11608 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 11609 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 11610 $(SET_LIB_PATH) \
4fc4dd12 11611 $(HOST_EXPORTS) \
d32ab992
PB
11612 (cd itcl && $(MAKE) $(FLAGS_TO_PASS) all)
11613@endif itcl
1358ccea 11614
d32ab992
PB
11615.PHONY: check-itcl maybe-check-itcl
11616maybe-check-itcl:
11617@if itcl
11618maybe-check-itcl: check-itcl
1358ccea 11619
d32ab992 11620check-itcl:
295f4e42 11621 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 11622 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 11623 $(SET_LIB_PATH) \
4fc4dd12 11624 $(HOST_EXPORTS) \
7c27e184 11625 (cd itcl && $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 11626
d32ab992 11627@endif itcl
1358ccea 11628
d32ab992
PB
11629.PHONY: install-itcl maybe-install-itcl
11630maybe-install-itcl:
11631@if itcl
11632maybe-install-itcl: install-itcl
1358ccea 11633
d32ab992 11634install-itcl: installdirs
295f4e42 11635 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 11636 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 11637 $(SET_LIB_PATH) \
4fc4dd12 11638 $(HOST_EXPORTS) \
7c27e184 11639 (cd itcl && $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 11640
d32ab992 11641@endif itcl
1358ccea 11642
295f4e42 11643# Other targets (info, dvi, etc.)
1358ccea 11644
d32ab992
PB
11645.PHONY: maybe-info-itcl info-itcl
11646maybe-info-itcl:
11647@if itcl
11648maybe-info-itcl: info-itcl
295f4e42 11649
d32ab992
PB
11650info-itcl: \
11651 configure-itcl
11652 @[ -f ./itcl/Makefile ] || exit 0; \
8c90b13a
L
11653 r=`${PWD_COMMAND}`; export r; \
11654 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 11655 $(SET_LIB_PATH) \
4fc4dd12 11656 $(HOST_EXPORTS) \
d32ab992 11657 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11658 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11659 done; \
d32ab992
PB
11660 echo "Doing info in itcl" ; \
11661 (cd itcl && \
1358ccea
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}" \
d32ab992 11666 info) \
1358ccea
NN
11667 || exit 1
11668
d32ab992 11669@endif itcl
1358ccea 11670
d32ab992
PB
11671.PHONY: maybe-dvi-itcl dvi-itcl
11672maybe-dvi-itcl:
11673@if itcl
11674maybe-dvi-itcl: dvi-itcl
1358ccea 11675
d32ab992
PB
11676dvi-itcl: \
11677 configure-itcl
11678 @[ -f ./itcl/Makefile ] || exit 0; \
8c90b13a
L
11679 r=`${PWD_COMMAND}`; export r; \
11680 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 11681 $(SET_LIB_PATH) \
4fc4dd12 11682 $(HOST_EXPORTS) \
d32ab992 11683 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11684 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11685 done; \
d32ab992
PB
11686 echo "Doing dvi in itcl" ; \
11687 (cd itcl && \
1358ccea
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}" \
d32ab992 11692 dvi) \
1358ccea
NN
11693 || exit 1
11694
d32ab992 11695@endif itcl
1358ccea 11696
d32ab992
PB
11697.PHONY: maybe-TAGS-itcl TAGS-itcl
11698maybe-TAGS-itcl:
11699@if itcl
11700maybe-TAGS-itcl: TAGS-itcl
1358ccea 11701
d32ab992
PB
11702TAGS-itcl: \
11703 configure-itcl
11704 @[ -f ./itcl/Makefile ] || exit 0; \
8c90b13a
L
11705 r=`${PWD_COMMAND}`; export r; \
11706 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 11707 $(SET_LIB_PATH) \
4fc4dd12 11708 $(HOST_EXPORTS) \
d32ab992 11709 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11710 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11711 done; \
d32ab992
PB
11712 echo "Doing TAGS in itcl" ; \
11713 (cd itcl && \
1358ccea
NN
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}" \
d32ab992 11718 TAGS) \
1358ccea
NN
11719 || exit 1
11720
d32ab992 11721@endif itcl
1358ccea 11722
d32ab992
PB
11723.PHONY: maybe-install-info-itcl install-info-itcl
11724maybe-install-info-itcl:
11725@if itcl
11726maybe-install-info-itcl: install-info-itcl
1358ccea 11727
d32ab992
PB
11728install-info-itcl: \
11729 configure-itcl \
11730 info-itcl
11731 @[ -f ./itcl/Makefile ] || exit 0; \
8c90b13a
L
11732 r=`${PWD_COMMAND}`; export r; \
11733 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 11734 $(SET_LIB_PATH) \
4fc4dd12 11735 $(HOST_EXPORTS) \
d32ab992 11736 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11737 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11738 done; \
d32ab992
PB
11739 echo "Doing install-info in itcl" ; \
11740 (cd itcl && \
1358ccea
NN
11741 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11742 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11743 "RANLIB=$${RANLIB}" \
11744 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 11745 install-info) \
1358ccea
NN
11746 || exit 1
11747
d32ab992 11748@endif itcl
1358ccea 11749
d32ab992
PB
11750.PHONY: maybe-installcheck-itcl installcheck-itcl
11751maybe-installcheck-itcl:
11752@if itcl
11753maybe-installcheck-itcl: installcheck-itcl
1358ccea 11754
d32ab992
PB
11755installcheck-itcl: \
11756 configure-itcl
11757 @[ -f ./itcl/Makefile ] || exit 0; \
8c90b13a
L
11758 r=`${PWD_COMMAND}`; export r; \
11759 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 11760 $(SET_LIB_PATH) \
4fc4dd12 11761 $(HOST_EXPORTS) \
d32ab992 11762 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11763 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11764 done; \
d32ab992
PB
11765 echo "Doing installcheck in itcl" ; \
11766 (cd itcl && \
1358ccea
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}" \
d32ab992 11771 installcheck) \
1358ccea
NN
11772 || exit 1
11773
d32ab992 11774@endif itcl
1358ccea 11775
d32ab992
PB
11776.PHONY: maybe-mostlyclean-itcl mostlyclean-itcl
11777maybe-mostlyclean-itcl:
11778@if itcl
11779maybe-mostlyclean-itcl: mostlyclean-itcl
1358ccea 11780
d32ab992
PB
11781mostlyclean-itcl:
11782 @[ -f ./itcl/Makefile ] || exit 0; \
8c90b13a
L
11783 r=`${PWD_COMMAND}`; export r; \
11784 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 11785 $(SET_LIB_PATH) \
4fc4dd12 11786 $(HOST_EXPORTS) \
d32ab992 11787 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11788 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11789 done; \
d32ab992
PB
11790 echo "Doing mostlyclean in itcl" ; \
11791 (cd itcl && \
1358ccea
NN
11792 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11793 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11794 "RANLIB=$${RANLIB}" \
11795 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 11796 mostlyclean) \
1358ccea
NN
11797 || exit 1
11798
d32ab992 11799@endif itcl
1358ccea 11800
d32ab992
PB
11801.PHONY: maybe-clean-itcl clean-itcl
11802maybe-clean-itcl:
11803@if itcl
11804maybe-clean-itcl: clean-itcl
1358ccea 11805
d32ab992
PB
11806clean-itcl:
11807 @[ -f ./itcl/Makefile ] || exit 0; \
8c90b13a
L
11808 r=`${PWD_COMMAND}`; export r; \
11809 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 11810 $(SET_LIB_PATH) \
4fc4dd12 11811 $(HOST_EXPORTS) \
d32ab992 11812 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11813 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11814 done; \
d32ab992
PB
11815 echo "Doing clean in itcl" ; \
11816 (cd itcl && \
1358ccea
NN
11817 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11818 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11819 "RANLIB=$${RANLIB}" \
11820 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 11821 clean) \
1358ccea
NN
11822 || exit 1
11823
d32ab992 11824@endif itcl
1358ccea 11825
d32ab992
PB
11826.PHONY: maybe-distclean-itcl distclean-itcl
11827maybe-distclean-itcl:
11828@if itcl
11829maybe-distclean-itcl: distclean-itcl
1358ccea 11830
d32ab992
PB
11831distclean-itcl:
11832 @[ -f ./itcl/Makefile ] || exit 0; \
8c90b13a
L
11833 r=`${PWD_COMMAND}`; export r; \
11834 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 11835 $(SET_LIB_PATH) \
4fc4dd12 11836 $(HOST_EXPORTS) \
d32ab992 11837 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11838 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11839 done; \
d32ab992
PB
11840 echo "Doing distclean in itcl" ; \
11841 (cd itcl && \
1358ccea
NN
11842 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11843 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11844 "RANLIB=$${RANLIB}" \
11845 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 11846 distclean) \
1358ccea
NN
11847 || exit 1
11848
d32ab992 11849@endif itcl
1358ccea 11850
d32ab992
PB
11851.PHONY: maybe-maintainer-clean-itcl maintainer-clean-itcl
11852maybe-maintainer-clean-itcl:
11853@if itcl
11854maybe-maintainer-clean-itcl: maintainer-clean-itcl
1358ccea 11855
d32ab992
PB
11856maintainer-clean-itcl:
11857 @[ -f ./itcl/Makefile ] || exit 0; \
8c90b13a
L
11858 r=`${PWD_COMMAND}`; export r; \
11859 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 11860 $(SET_LIB_PATH) \
4fc4dd12 11861 $(HOST_EXPORTS) \
d32ab992 11862 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11863 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11864 done; \
d32ab992
PB
11865 echo "Doing maintainer-clean in itcl" ; \
11866 (cd itcl && \
1358ccea
NN
11867 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11868 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11869 "RANLIB=$${RANLIB}" \
11870 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 11871 maintainer-clean) \
1358ccea
NN
11872 || exit 1
11873
d32ab992 11874@endif itcl
1358ccea 11875
1358ccea 11876
d32ab992
PB
11877.PHONY: configure-ld maybe-configure-ld
11878maybe-configure-ld:
11879@if ld
11880maybe-configure-ld: configure-ld
11881configure-ld:
7c27e184
PB
11882 @test -f stage_last && exit 0; \
11883 test ! -f ld/Makefile || exit 0; \
d32ab992 11884 [ -d ld ] || mkdir ld; \
4f4e53dd
PB
11885 r=`${PWD_COMMAND}`; export r; \
11886 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11887 $(HOST_EXPORTS) \
d32ab992
PB
11888 echo Configuring in ld; \
11889 cd ld || exit 1; \
4f4e53dd
PB
11890 case $(srcdir) in \
11891 \.) \
11892 srcdiroption="--srcdir=."; \
11893 libsrcdir=".";; \
11894 /* | [A-Za-z]:[\\/]*) \
d32ab992
PB
11895 srcdiroption="--srcdir=$(srcdir)/ld"; \
11896 libsrcdir="$$s/ld";; \
4f4e53dd 11897 *) \
d32ab992
PB
11898 srcdiroption="--srcdir=../$(srcdir)/ld"; \
11899 libsrcdir="$$s/ld";; \
4f4e53dd
PB
11900 esac; \
11901 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 11902 $(HOST_CONFIGARGS) $${srcdiroption} \
4f4e53dd 11903 || exit 1
d32ab992 11904@endif ld
4f4e53dd 11905
d32ab992
PB
11906.PHONY: all-ld maybe-all-ld
11907maybe-all-ld:
11908@if ld
11909maybe-all-ld: all-ld
11910all-ld: configure-ld
7c27e184
PB
11911 @test -f stage_last && exit 0; \
11912 r=`${PWD_COMMAND}`; export r; \
4f4e53dd
PB
11913 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11914 $(SET_LIB_PATH) \
4fc4dd12 11915 $(HOST_EXPORTS) \
d32ab992
PB
11916 (cd ld && $(MAKE) $(FLAGS_TO_PASS) all)
11917@endif ld
4f4e53dd 11918
d32ab992
PB
11919.PHONY: check-ld maybe-check-ld
11920maybe-check-ld:
11921@if ld
11922maybe-check-ld: check-ld
4f4e53dd 11923
d32ab992 11924check-ld:
4f4e53dd
PB
11925 @r=`${PWD_COMMAND}`; export r; \
11926 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11927 $(SET_LIB_PATH) \
4fc4dd12 11928 $(HOST_EXPORTS) \
7c27e184 11929 (cd ld && $(MAKE) $(FLAGS_TO_PASS) check)
4f4e53dd 11930
d32ab992 11931@endif ld
4f4e53dd 11932
d32ab992
PB
11933.PHONY: install-ld maybe-install-ld
11934maybe-install-ld:
11935@if ld
11936maybe-install-ld: install-ld
4f4e53dd 11937
d32ab992 11938install-ld: installdirs
4f4e53dd
PB
11939 @r=`${PWD_COMMAND}`; export r; \
11940 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11941 $(SET_LIB_PATH) \
4fc4dd12 11942 $(HOST_EXPORTS) \
7c27e184 11943 (cd ld && $(MAKE) $(FLAGS_TO_PASS) install)
4f4e53dd 11944
d32ab992 11945@endif ld
4f4e53dd
PB
11946
11947# Other targets (info, dvi, etc.)
11948
d32ab992
PB
11949.PHONY: maybe-info-ld info-ld
11950maybe-info-ld:
11951@if ld
11952maybe-info-ld: info-ld
4f4e53dd 11953
d32ab992
PB
11954info-ld: \
11955 configure-ld
11956 @[ -f ./ld/Makefile ] || exit 0; \
4f4e53dd
PB
11957 r=`${PWD_COMMAND}`; export r; \
11958 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11959 $(SET_LIB_PATH) \
4fc4dd12 11960 $(HOST_EXPORTS) \
d32ab992 11961 for flag in $(EXTRA_HOST_FLAGS) ; do \
4f4e53dd
PB
11962 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11963 done; \
d32ab992
PB
11964 echo "Doing info in ld" ; \
11965 (cd ld && \
4f4e53dd
PB
11966 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11967 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11968 "RANLIB=$${RANLIB}" \
11969 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 11970 info) \
4f4e53dd
PB
11971 || exit 1
11972
d32ab992 11973@endif ld
4f4e53dd 11974
d32ab992
PB
11975.PHONY: maybe-dvi-ld dvi-ld
11976maybe-dvi-ld:
11977@if ld
11978maybe-dvi-ld: dvi-ld
4f4e53dd 11979
d32ab992
PB
11980dvi-ld: \
11981 configure-ld
11982 @[ -f ./ld/Makefile ] || exit 0; \
4f4e53dd
PB
11983 r=`${PWD_COMMAND}`; export r; \
11984 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11985 $(SET_LIB_PATH) \
4fc4dd12 11986 $(HOST_EXPORTS) \
d32ab992 11987 for flag in $(EXTRA_HOST_FLAGS) ; do \
4f4e53dd
PB
11988 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11989 done; \
d32ab992
PB
11990 echo "Doing dvi in ld" ; \
11991 (cd ld && \
4f4e53dd
PB
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}" \
d32ab992 11996 dvi) \
4f4e53dd
PB
11997 || exit 1
11998
d32ab992 11999@endif ld
4f4e53dd 12000
d32ab992
PB
12001.PHONY: maybe-TAGS-ld TAGS-ld
12002maybe-TAGS-ld:
12003@if ld
12004maybe-TAGS-ld: TAGS-ld
4f4e53dd 12005
d32ab992
PB
12006TAGS-ld: \
12007 configure-ld
12008 @[ -f ./ld/Makefile ] || exit 0; \
4f4e53dd
PB
12009 r=`${PWD_COMMAND}`; export r; \
12010 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12011 $(SET_LIB_PATH) \
4fc4dd12 12012 $(HOST_EXPORTS) \
d32ab992 12013 for flag in $(EXTRA_HOST_FLAGS) ; do \
4f4e53dd
PB
12014 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12015 done; \
d32ab992
PB
12016 echo "Doing TAGS in ld" ; \
12017 (cd ld && \
4f4e53dd
PB
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}" \
d32ab992 12022 TAGS) \
4f4e53dd
PB
12023 || exit 1
12024
d32ab992 12025@endif ld
4f4e53dd 12026
d32ab992
PB
12027.PHONY: maybe-install-info-ld install-info-ld
12028maybe-install-info-ld:
12029@if ld
12030maybe-install-info-ld: install-info-ld
4f4e53dd 12031
d32ab992
PB
12032install-info-ld: \
12033 configure-ld \
12034 info-ld
12035 @[ -f ./ld/Makefile ] || exit 0; \
4f4e53dd
PB
12036 r=`${PWD_COMMAND}`; export r; \
12037 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12038 $(SET_LIB_PATH) \
4fc4dd12 12039 $(HOST_EXPORTS) \
d32ab992 12040 for flag in $(EXTRA_HOST_FLAGS) ; do \
4f4e53dd
PB
12041 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12042 done; \
d32ab992
PB
12043 echo "Doing install-info in ld" ; \
12044 (cd ld && \
4f4e53dd
PB
12045 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12046 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12047 "RANLIB=$${RANLIB}" \
12048 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12049 install-info) \
4f4e53dd
PB
12050 || exit 1
12051
d32ab992 12052@endif ld
4f4e53dd 12053
d32ab992
PB
12054.PHONY: maybe-installcheck-ld installcheck-ld
12055maybe-installcheck-ld:
12056@if ld
12057maybe-installcheck-ld: installcheck-ld
4f4e53dd 12058
d32ab992
PB
12059installcheck-ld: \
12060 configure-ld
12061 @[ -f ./ld/Makefile ] || exit 0; \
4f4e53dd
PB
12062 r=`${PWD_COMMAND}`; export r; \
12063 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12064 $(SET_LIB_PATH) \
4fc4dd12 12065 $(HOST_EXPORTS) \
d32ab992 12066 for flag in $(EXTRA_HOST_FLAGS) ; do \
4f4e53dd
PB
12067 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12068 done; \
d32ab992
PB
12069 echo "Doing installcheck in ld" ; \
12070 (cd ld && \
4f4e53dd
PB
12071 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12072 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12073 "RANLIB=$${RANLIB}" \
12074 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12075 installcheck) \
4f4e53dd
PB
12076 || exit 1
12077
d32ab992 12078@endif ld
4f4e53dd 12079
d32ab992
PB
12080.PHONY: maybe-mostlyclean-ld mostlyclean-ld
12081maybe-mostlyclean-ld:
12082@if ld
12083maybe-mostlyclean-ld: mostlyclean-ld
4f4e53dd 12084
d32ab992
PB
12085mostlyclean-ld:
12086 @[ -f ./ld/Makefile ] || exit 0; \
4f4e53dd
PB
12087 r=`${PWD_COMMAND}`; export r; \
12088 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12089 $(SET_LIB_PATH) \
4fc4dd12 12090 $(HOST_EXPORTS) \
d32ab992 12091 for flag in $(EXTRA_HOST_FLAGS) ; do \
4f4e53dd
PB
12092 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12093 done; \
d32ab992
PB
12094 echo "Doing mostlyclean in ld" ; \
12095 (cd ld && \
4f4e53dd
PB
12096 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12097 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12098 "RANLIB=$${RANLIB}" \
12099 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12100 mostlyclean) \
4f4e53dd
PB
12101 || exit 1
12102
d32ab992 12103@endif ld
4f4e53dd 12104
d32ab992
PB
12105.PHONY: maybe-clean-ld clean-ld
12106maybe-clean-ld:
12107@if ld
12108maybe-clean-ld: clean-ld
4f4e53dd 12109
d32ab992
PB
12110clean-ld:
12111 @[ -f ./ld/Makefile ] || exit 0; \
4f4e53dd
PB
12112 r=`${PWD_COMMAND}`; export r; \
12113 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12114 $(SET_LIB_PATH) \
4fc4dd12 12115 $(HOST_EXPORTS) \
d32ab992 12116 for flag in $(EXTRA_HOST_FLAGS) ; do \
4f4e53dd
PB
12117 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12118 done; \
d32ab992
PB
12119 echo "Doing clean in ld" ; \
12120 (cd ld && \
4f4e53dd
PB
12121 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12122 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12123 "RANLIB=$${RANLIB}" \
12124 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12125 clean) \
4f4e53dd
PB
12126 || exit 1
12127
d32ab992 12128@endif ld
4f4e53dd 12129
d32ab992
PB
12130.PHONY: maybe-distclean-ld distclean-ld
12131maybe-distclean-ld:
12132@if ld
12133maybe-distclean-ld: distclean-ld
4f4e53dd 12134
d32ab992
PB
12135distclean-ld:
12136 @[ -f ./ld/Makefile ] || exit 0; \
4f4e53dd
PB
12137 r=`${PWD_COMMAND}`; export r; \
12138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12139 $(SET_LIB_PATH) \
4fc4dd12 12140 $(HOST_EXPORTS) \
d32ab992 12141 for flag in $(EXTRA_HOST_FLAGS) ; do \
4f4e53dd
PB
12142 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12143 done; \
d32ab992
PB
12144 echo "Doing distclean in ld" ; \
12145 (cd ld && \
4f4e53dd
PB
12146 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12147 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12148 "RANLIB=$${RANLIB}" \
12149 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12150 distclean) \
4f4e53dd
PB
12151 || exit 1
12152
d32ab992 12153@endif ld
4f4e53dd 12154
d32ab992
PB
12155.PHONY: maybe-maintainer-clean-ld maintainer-clean-ld
12156maybe-maintainer-clean-ld:
12157@if ld
12158maybe-maintainer-clean-ld: maintainer-clean-ld
4f4e53dd 12159
d32ab992
PB
12160maintainer-clean-ld:
12161 @[ -f ./ld/Makefile ] || exit 0; \
4f4e53dd
PB
12162 r=`${PWD_COMMAND}`; export r; \
12163 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12164 $(SET_LIB_PATH) \
4fc4dd12 12165 $(HOST_EXPORTS) \
d32ab992 12166 for flag in $(EXTRA_HOST_FLAGS) ; do \
4f4e53dd
PB
12167 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12168 done; \
d32ab992
PB
12169 echo "Doing maintainer-clean in ld" ; \
12170 (cd ld && \
4f4e53dd
PB
12171 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12172 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12173 "RANLIB=$${RANLIB}" \
12174 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12175 maintainer-clean) \
4f4e53dd
PB
12176 || exit 1
12177
d32ab992 12178@endif ld
4f4e53dd
PB
12179
12180
d32ab992
PB
12181.PHONY: configure-libcpp maybe-configure-libcpp
12182maybe-configure-libcpp:
12183@if libcpp
12184maybe-configure-libcpp: configure-libcpp
12185configure-libcpp:
7c27e184
PB
12186 @test -f stage_last && exit 0; \
12187 test ! -f libcpp/Makefile || exit 0; \
d32ab992 12188 [ -d libcpp ] || mkdir libcpp; \
8c90b13a
L
12189 r=`${PWD_COMMAND}`; export r; \
12190 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12191 $(HOST_EXPORTS) \
d32ab992
PB
12192 echo Configuring in libcpp; \
12193 cd libcpp || exit 1; \
295f4e42
NN
12194 case $(srcdir) in \
12195 \.) \
12196 srcdiroption="--srcdir=."; \
12197 libsrcdir=".";; \
12198 /* | [A-Za-z]:[\\/]*) \
d32ab992
PB
12199 srcdiroption="--srcdir=$(srcdir)/libcpp"; \
12200 libsrcdir="$$s/libcpp";; \
295f4e42 12201 *) \
d32ab992
PB
12202 srcdiroption="--srcdir=../$(srcdir)/libcpp"; \
12203 libsrcdir="$$s/libcpp";; \
295f4e42
NN
12204 esac; \
12205 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 12206 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 12207 || exit 1
d32ab992 12208@endif libcpp
1358ccea 12209
d32ab992
PB
12210.PHONY: all-libcpp maybe-all-libcpp
12211maybe-all-libcpp:
12212@if libcpp
12213maybe-all-libcpp: all-libcpp
12214all-libcpp: configure-libcpp
7c27e184
PB
12215 @test -f stage_last && exit 0; \
12216 r=`${PWD_COMMAND}`; export r; \
295f4e42
NN
12217 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12218 $(SET_LIB_PATH) \
4fc4dd12 12219 $(HOST_EXPORTS) \
d32ab992
PB
12220 (cd libcpp && $(MAKE) $(FLAGS_TO_PASS) all)
12221@endif libcpp
1358ccea 12222
d32ab992
PB
12223.PHONY: check-libcpp maybe-check-libcpp
12224maybe-check-libcpp:
12225@if libcpp
12226maybe-check-libcpp: check-libcpp
1358ccea 12227
d32ab992 12228check-libcpp:
295f4e42 12229 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 12230 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 12231 $(SET_LIB_PATH) \
4fc4dd12 12232 $(HOST_EXPORTS) \
7c27e184 12233 (cd libcpp && $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 12234
d32ab992 12235@endif libcpp
1358ccea 12236
d32ab992
PB
12237.PHONY: install-libcpp maybe-install-libcpp
12238maybe-install-libcpp:
12239@if libcpp
12240maybe-install-libcpp: install-libcpp
12241
12242install-libcpp: installdirs
295f4e42 12243 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 12244 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 12245 $(SET_LIB_PATH) \
4fc4dd12 12246 $(HOST_EXPORTS) \
7c27e184 12247 (cd libcpp && $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 12248
d32ab992 12249@endif libcpp
1358ccea 12250
295f4e42 12251# Other targets (info, dvi, etc.)
1358ccea 12252
d32ab992
PB
12253.PHONY: maybe-info-libcpp info-libcpp
12254maybe-info-libcpp:
12255@if libcpp
12256maybe-info-libcpp: info-libcpp
295f4e42 12257
d32ab992
PB
12258info-libcpp: \
12259 configure-libcpp
12260 @[ -f ./libcpp/Makefile ] || exit 0; \
8c90b13a
L
12261 r=`${PWD_COMMAND}`; export r; \
12262 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 12263 $(SET_LIB_PATH) \
4fc4dd12 12264 $(HOST_EXPORTS) \
d32ab992 12265 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
12266 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12267 done; \
d32ab992
PB
12268 echo "Doing info in libcpp" ; \
12269 (cd libcpp && \
1358ccea
NN
12270 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12271 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12272 "RANLIB=$${RANLIB}" \
12273 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12274 info) \
1358ccea
NN
12275 || exit 1
12276
d32ab992 12277@endif libcpp
1358ccea 12278
d32ab992
PB
12279.PHONY: maybe-dvi-libcpp dvi-libcpp
12280maybe-dvi-libcpp:
12281@if libcpp
12282maybe-dvi-libcpp: dvi-libcpp
1358ccea 12283
d32ab992
PB
12284dvi-libcpp: \
12285 configure-libcpp
12286 @[ -f ./libcpp/Makefile ] || exit 0; \
8c90b13a
L
12287 r=`${PWD_COMMAND}`; export r; \
12288 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 12289 $(SET_LIB_PATH) \
4fc4dd12 12290 $(HOST_EXPORTS) \
d32ab992 12291 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
12292 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12293 done; \
d32ab992
PB
12294 echo "Doing dvi in libcpp" ; \
12295 (cd libcpp && \
1358ccea
NN
12296 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12297 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12298 "RANLIB=$${RANLIB}" \
12299 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12300 dvi) \
1358ccea
NN
12301 || exit 1
12302
d32ab992 12303@endif libcpp
1358ccea 12304
d32ab992
PB
12305.PHONY: maybe-TAGS-libcpp TAGS-libcpp
12306maybe-TAGS-libcpp:
12307@if libcpp
12308maybe-TAGS-libcpp: TAGS-libcpp
1358ccea 12309
d32ab992
PB
12310TAGS-libcpp: \
12311 configure-libcpp
12312 @[ -f ./libcpp/Makefile ] || exit 0; \
8c90b13a
L
12313 r=`${PWD_COMMAND}`; export r; \
12314 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 12315 $(SET_LIB_PATH) \
4fc4dd12 12316 $(HOST_EXPORTS) \
d32ab992 12317 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
12318 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12319 done; \
d32ab992
PB
12320 echo "Doing TAGS in libcpp" ; \
12321 (cd libcpp && \
1358ccea
NN
12322 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12323 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12324 "RANLIB=$${RANLIB}" \
12325 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12326 TAGS) \
1358ccea
NN
12327 || exit 1
12328
d32ab992 12329@endif libcpp
1358ccea 12330
d32ab992
PB
12331.PHONY: maybe-install-info-libcpp install-info-libcpp
12332maybe-install-info-libcpp:
12333@if libcpp
12334maybe-install-info-libcpp: install-info-libcpp
1358ccea 12335
d32ab992
PB
12336install-info-libcpp: \
12337 configure-libcpp \
12338 info-libcpp
12339 @[ -f ./libcpp/Makefile ] || exit 0; \
8c90b13a
L
12340 r=`${PWD_COMMAND}`; export r; \
12341 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 12342 $(SET_LIB_PATH) \
4fc4dd12 12343 $(HOST_EXPORTS) \
d32ab992 12344 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
12345 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12346 done; \
d32ab992
PB
12347 echo "Doing install-info in libcpp" ; \
12348 (cd libcpp && \
1358ccea
NN
12349 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12350 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12351 "RANLIB=$${RANLIB}" \
12352 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12353 install-info) \
1358ccea
NN
12354 || exit 1
12355
d32ab992 12356@endif libcpp
1358ccea 12357
d32ab992
PB
12358.PHONY: maybe-installcheck-libcpp installcheck-libcpp
12359maybe-installcheck-libcpp:
12360@if libcpp
12361maybe-installcheck-libcpp: installcheck-libcpp
1358ccea 12362
d32ab992
PB
12363installcheck-libcpp: \
12364 configure-libcpp
12365 @[ -f ./libcpp/Makefile ] || exit 0; \
8c90b13a
L
12366 r=`${PWD_COMMAND}`; export r; \
12367 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 12368 $(SET_LIB_PATH) \
4fc4dd12 12369 $(HOST_EXPORTS) \
d32ab992 12370 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
12371 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12372 done; \
d32ab992
PB
12373 echo "Doing installcheck in libcpp" ; \
12374 (cd libcpp && \
1358ccea
NN
12375 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12376 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12377 "RANLIB=$${RANLIB}" \
12378 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12379 installcheck) \
1358ccea
NN
12380 || exit 1
12381
d32ab992 12382@endif libcpp
1358ccea 12383
d32ab992
PB
12384.PHONY: maybe-mostlyclean-libcpp mostlyclean-libcpp
12385maybe-mostlyclean-libcpp:
12386@if libcpp
12387maybe-mostlyclean-libcpp: mostlyclean-libcpp
1358ccea 12388
d32ab992
PB
12389mostlyclean-libcpp:
12390 @[ -f ./libcpp/Makefile ] || exit 0; \
8c90b13a
L
12391 r=`${PWD_COMMAND}`; export r; \
12392 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 12393 $(SET_LIB_PATH) \
4fc4dd12 12394 $(HOST_EXPORTS) \
d32ab992 12395 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
12396 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12397 done; \
d32ab992
PB
12398 echo "Doing mostlyclean in libcpp" ; \
12399 (cd libcpp && \
1358ccea
NN
12400 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12401 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12402 "RANLIB=$${RANLIB}" \
12403 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12404 mostlyclean) \
1358ccea
NN
12405 || exit 1
12406
d32ab992 12407@endif libcpp
1358ccea 12408
d32ab992
PB
12409.PHONY: maybe-clean-libcpp clean-libcpp
12410maybe-clean-libcpp:
12411@if libcpp
12412maybe-clean-libcpp: clean-libcpp
1358ccea 12413
d32ab992
PB
12414clean-libcpp:
12415 @[ -f ./libcpp/Makefile ] || exit 0; \
8c90b13a
L
12416 r=`${PWD_COMMAND}`; export r; \
12417 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 12418 $(SET_LIB_PATH) \
4fc4dd12 12419 $(HOST_EXPORTS) \
d32ab992 12420 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
12421 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12422 done; \
d32ab992
PB
12423 echo "Doing clean in libcpp" ; \
12424 (cd libcpp && \
1358ccea
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}" \
d32ab992 12429 clean) \
1358ccea
NN
12430 || exit 1
12431
d32ab992 12432@endif libcpp
1358ccea 12433
d32ab992
PB
12434.PHONY: maybe-distclean-libcpp distclean-libcpp
12435maybe-distclean-libcpp:
12436@if libcpp
12437maybe-distclean-libcpp: distclean-libcpp
1358ccea 12438
d32ab992
PB
12439distclean-libcpp:
12440 @[ -f ./libcpp/Makefile ] || exit 0; \
8c90b13a
L
12441 r=`${PWD_COMMAND}`; export r; \
12442 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 12443 $(SET_LIB_PATH) \
4fc4dd12 12444 $(HOST_EXPORTS) \
d32ab992 12445 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
12446 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12447 done; \
d32ab992
PB
12448 echo "Doing distclean in libcpp" ; \
12449 (cd libcpp && \
1358ccea
NN
12450 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12451 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12452 "RANLIB=$${RANLIB}" \
12453 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12454 distclean) \
1358ccea
NN
12455 || exit 1
12456
d32ab992 12457@endif libcpp
1358ccea 12458
d32ab992
PB
12459.PHONY: maybe-maintainer-clean-libcpp maintainer-clean-libcpp
12460maybe-maintainer-clean-libcpp:
12461@if libcpp
12462maybe-maintainer-clean-libcpp: maintainer-clean-libcpp
1358ccea 12463
d32ab992
PB
12464maintainer-clean-libcpp:
12465 @[ -f ./libcpp/Makefile ] || exit 0; \
8c90b13a
L
12466 r=`${PWD_COMMAND}`; export r; \
12467 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 12468 $(SET_LIB_PATH) \
4fc4dd12 12469 $(HOST_EXPORTS) \
d32ab992 12470 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
12471 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12472 done; \
d32ab992
PB
12473 echo "Doing maintainer-clean in libcpp" ; \
12474 (cd libcpp && \
1358ccea
NN
12475 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12476 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12477 "RANLIB=$${RANLIB}" \
12478 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12479 maintainer-clean) \
1358ccea
NN
12480 || exit 1
12481
d32ab992 12482@endif libcpp
1358ccea 12483
1358ccea 12484
d32ab992
PB
12485.PHONY: configure-libgui maybe-configure-libgui
12486maybe-configure-libgui:
12487@if libgui
12488maybe-configure-libgui: configure-libgui
12489configure-libgui:
12490 @test ! -f libgui/Makefile || exit 0; \
12491 [ -d libgui ] || mkdir libgui; \
6de9cd9a
DN
12492 r=`${PWD_COMMAND}`; export r; \
12493 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12494 $(HOST_EXPORTS) \
d32ab992
PB
12495 echo Configuring in libgui; \
12496 cd libgui || exit 1; \
6de9cd9a
DN
12497 case $(srcdir) in \
12498 \.) \
12499 srcdiroption="--srcdir=."; \
12500 libsrcdir=".";; \
12501 /* | [A-Za-z]:[\\/]*) \
d32ab992
PB
12502 srcdiroption="--srcdir=$(srcdir)/libgui"; \
12503 libsrcdir="$$s/libgui";; \
6de9cd9a 12504 *) \
d32ab992
PB
12505 srcdiroption="--srcdir=../$(srcdir)/libgui"; \
12506 libsrcdir="$$s/libgui";; \
6de9cd9a
DN
12507 esac; \
12508 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 12509 $(HOST_CONFIGARGS) $${srcdiroption} \
6de9cd9a 12510 || exit 1
d32ab992 12511@endif libgui
6de9cd9a 12512
d32ab992
PB
12513.PHONY: all-libgui maybe-all-libgui
12514maybe-all-libgui:
12515@if libgui
12516maybe-all-libgui: all-libgui
12517all-libgui: configure-libgui
6de9cd9a
DN
12518 @r=`${PWD_COMMAND}`; export r; \
12519 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12520 $(SET_LIB_PATH) \
4fc4dd12 12521 $(HOST_EXPORTS) \
d32ab992
PB
12522 (cd libgui && $(MAKE) $(FLAGS_TO_PASS) all)
12523@endif libgui
6de9cd9a 12524
d32ab992
PB
12525.PHONY: check-libgui maybe-check-libgui
12526maybe-check-libgui:
12527@if libgui
12528maybe-check-libgui: check-libgui
6de9cd9a 12529
d32ab992 12530check-libgui:
6de9cd9a
DN
12531 @r=`${PWD_COMMAND}`; export r; \
12532 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12533 $(SET_LIB_PATH) \
4fc4dd12 12534 $(HOST_EXPORTS) \
7c27e184 12535 (cd libgui && $(MAKE) $(FLAGS_TO_PASS) check)
6de9cd9a 12536
d32ab992 12537@endif libgui
6de9cd9a 12538
d32ab992
PB
12539.PHONY: install-libgui maybe-install-libgui
12540maybe-install-libgui:
12541@if libgui
12542maybe-install-libgui: install-libgui
6de9cd9a 12543
d32ab992
PB
12544install-libgui: installdirs
12545 @r=`${PWD_COMMAND}`; export r; \
12546 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12547 $(SET_LIB_PATH) \
12548 $(HOST_EXPORTS) \
7c27e184 12549 (cd libgui && $(MAKE) $(FLAGS_TO_PASS) install)
6de9cd9a 12550
d32ab992 12551@endif libgui
6de9cd9a
DN
12552
12553# Other targets (info, dvi, etc.)
12554
d32ab992
PB
12555.PHONY: maybe-info-libgui info-libgui
12556maybe-info-libgui:
12557@if libgui
12558maybe-info-libgui: info-libgui
6de9cd9a 12559
d32ab992
PB
12560info-libgui: \
12561 configure-libgui
12562 @[ -f ./libgui/Makefile ] || exit 0; \
6de9cd9a
DN
12563 r=`${PWD_COMMAND}`; export r; \
12564 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12565 $(SET_LIB_PATH) \
4fc4dd12 12566 $(HOST_EXPORTS) \
d32ab992 12567 for flag in $(EXTRA_HOST_FLAGS) ; do \
6de9cd9a
DN
12568 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12569 done; \
d32ab992
PB
12570 echo "Doing info in libgui" ; \
12571 (cd libgui && \
6de9cd9a
DN
12572 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12573 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12574 "RANLIB=$${RANLIB}" \
12575 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12576 info) \
6de9cd9a
DN
12577 || exit 1
12578
d32ab992 12579@endif libgui
6de9cd9a 12580
d32ab992
PB
12581.PHONY: maybe-dvi-libgui dvi-libgui
12582maybe-dvi-libgui:
12583@if libgui
12584maybe-dvi-libgui: dvi-libgui
6de9cd9a 12585
d32ab992
PB
12586dvi-libgui: \
12587 configure-libgui
12588 @[ -f ./libgui/Makefile ] || exit 0; \
6de9cd9a
DN
12589 r=`${PWD_COMMAND}`; export r; \
12590 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12591 $(SET_LIB_PATH) \
4fc4dd12 12592 $(HOST_EXPORTS) \
d32ab992 12593 for flag in $(EXTRA_HOST_FLAGS) ; do \
6de9cd9a
DN
12594 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12595 done; \
d32ab992
PB
12596 echo "Doing dvi in libgui" ; \
12597 (cd libgui && \
6de9cd9a
DN
12598 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12599 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12600 "RANLIB=$${RANLIB}" \
12601 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12602 dvi) \
6de9cd9a
DN
12603 || exit 1
12604
d32ab992 12605@endif libgui
6de9cd9a 12606
d32ab992
PB
12607.PHONY: maybe-TAGS-libgui TAGS-libgui
12608maybe-TAGS-libgui:
12609@if libgui
12610maybe-TAGS-libgui: TAGS-libgui
6de9cd9a 12611
d32ab992
PB
12612TAGS-libgui: \
12613 configure-libgui
12614 @[ -f ./libgui/Makefile ] || exit 0; \
6de9cd9a
DN
12615 r=`${PWD_COMMAND}`; export r; \
12616 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12617 $(SET_LIB_PATH) \
4fc4dd12 12618 $(HOST_EXPORTS) \
d32ab992 12619 for flag in $(EXTRA_HOST_FLAGS) ; do \
6de9cd9a
DN
12620 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12621 done; \
d32ab992
PB
12622 echo "Doing TAGS in libgui" ; \
12623 (cd libgui && \
6de9cd9a
DN
12624 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12625 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12626 "RANLIB=$${RANLIB}" \
12627 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12628 TAGS) \
6de9cd9a
DN
12629 || exit 1
12630
d32ab992 12631@endif libgui
6de9cd9a 12632
d32ab992
PB
12633.PHONY: maybe-install-info-libgui install-info-libgui
12634maybe-install-info-libgui:
12635@if libgui
12636maybe-install-info-libgui: install-info-libgui
6de9cd9a 12637
d32ab992
PB
12638install-info-libgui: \
12639 configure-libgui \
12640 info-libgui
12641 @[ -f ./libgui/Makefile ] || exit 0; \
6de9cd9a
DN
12642 r=`${PWD_COMMAND}`; export r; \
12643 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12644 $(SET_LIB_PATH) \
4fc4dd12 12645 $(HOST_EXPORTS) \
d32ab992 12646 for flag in $(EXTRA_HOST_FLAGS) ; do \
6de9cd9a
DN
12647 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12648 done; \
d32ab992
PB
12649 echo "Doing install-info in libgui" ; \
12650 (cd libgui && \
6de9cd9a
DN
12651 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12652 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12653 "RANLIB=$${RANLIB}" \
12654 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12655 install-info) \
6de9cd9a
DN
12656 || exit 1
12657
d32ab992 12658@endif libgui
6de9cd9a 12659
d32ab992
PB
12660.PHONY: maybe-installcheck-libgui installcheck-libgui
12661maybe-installcheck-libgui:
12662@if libgui
12663maybe-installcheck-libgui: installcheck-libgui
6de9cd9a 12664
d32ab992
PB
12665installcheck-libgui: \
12666 configure-libgui
12667 @[ -f ./libgui/Makefile ] || exit 0; \
6de9cd9a
DN
12668 r=`${PWD_COMMAND}`; export r; \
12669 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12670 $(SET_LIB_PATH) \
4fc4dd12 12671 $(HOST_EXPORTS) \
d32ab992 12672 for flag in $(EXTRA_HOST_FLAGS) ; do \
6de9cd9a
DN
12673 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12674 done; \
d32ab992
PB
12675 echo "Doing installcheck in libgui" ; \
12676 (cd libgui && \
6de9cd9a
DN
12677 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12678 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12679 "RANLIB=$${RANLIB}" \
12680 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12681 installcheck) \
6de9cd9a
DN
12682 || exit 1
12683
d32ab992 12684@endif libgui
6de9cd9a 12685
d32ab992
PB
12686.PHONY: maybe-mostlyclean-libgui mostlyclean-libgui
12687maybe-mostlyclean-libgui:
12688@if libgui
12689maybe-mostlyclean-libgui: mostlyclean-libgui
6de9cd9a 12690
d32ab992
PB
12691mostlyclean-libgui:
12692 @[ -f ./libgui/Makefile ] || exit 0; \
6de9cd9a
DN
12693 r=`${PWD_COMMAND}`; export r; \
12694 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12695 $(SET_LIB_PATH) \
4fc4dd12 12696 $(HOST_EXPORTS) \
d32ab992 12697 for flag in $(EXTRA_HOST_FLAGS) ; do \
6de9cd9a
DN
12698 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12699 done; \
d32ab992
PB
12700 echo "Doing mostlyclean in libgui" ; \
12701 (cd libgui && \
6de9cd9a
DN
12702 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12703 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12704 "RANLIB=$${RANLIB}" \
12705 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12706 mostlyclean) \
6de9cd9a
DN
12707 || exit 1
12708
d32ab992 12709@endif libgui
6de9cd9a 12710
d32ab992
PB
12711.PHONY: maybe-clean-libgui clean-libgui
12712maybe-clean-libgui:
12713@if libgui
12714maybe-clean-libgui: clean-libgui
6de9cd9a 12715
d32ab992
PB
12716clean-libgui:
12717 @[ -f ./libgui/Makefile ] || exit 0; \
6de9cd9a
DN
12718 r=`${PWD_COMMAND}`; export r; \
12719 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12720 $(SET_LIB_PATH) \
4fc4dd12 12721 $(HOST_EXPORTS) \
d32ab992 12722 for flag in $(EXTRA_HOST_FLAGS) ; do \
6de9cd9a
DN
12723 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12724 done; \
d32ab992
PB
12725 echo "Doing clean in libgui" ; \
12726 (cd libgui && \
6de9cd9a
DN
12727 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12728 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12729 "RANLIB=$${RANLIB}" \
12730 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12731 clean) \
6de9cd9a
DN
12732 || exit 1
12733
d32ab992 12734@endif libgui
6de9cd9a 12735
d32ab992
PB
12736.PHONY: maybe-distclean-libgui distclean-libgui
12737maybe-distclean-libgui:
12738@if libgui
12739maybe-distclean-libgui: distclean-libgui
6de9cd9a 12740
d32ab992
PB
12741distclean-libgui:
12742 @[ -f ./libgui/Makefile ] || exit 0; \
6de9cd9a
DN
12743 r=`${PWD_COMMAND}`; export r; \
12744 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12745 $(SET_LIB_PATH) \
4fc4dd12 12746 $(HOST_EXPORTS) \
d32ab992 12747 for flag in $(EXTRA_HOST_FLAGS) ; do \
6de9cd9a
DN
12748 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12749 done; \
d32ab992
PB
12750 echo "Doing distclean in libgui" ; \
12751 (cd libgui && \
6de9cd9a
DN
12752 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12753 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12754 "RANLIB=$${RANLIB}" \
12755 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12756 distclean) \
6de9cd9a
DN
12757 || exit 1
12758
d32ab992 12759@endif libgui
6de9cd9a 12760
d32ab992
PB
12761.PHONY: maybe-maintainer-clean-libgui maintainer-clean-libgui
12762maybe-maintainer-clean-libgui:
12763@if libgui
12764maybe-maintainer-clean-libgui: maintainer-clean-libgui
6de9cd9a 12765
d32ab992
PB
12766maintainer-clean-libgui:
12767 @[ -f ./libgui/Makefile ] || exit 0; \
6de9cd9a
DN
12768 r=`${PWD_COMMAND}`; export r; \
12769 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12770 $(SET_LIB_PATH) \
4fc4dd12 12771 $(HOST_EXPORTS) \
d32ab992 12772 for flag in $(EXTRA_HOST_FLAGS) ; do \
6de9cd9a
DN
12773 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12774 done; \
d32ab992
PB
12775 echo "Doing maintainer-clean in libgui" ; \
12776 (cd libgui && \
6de9cd9a
DN
12777 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12778 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12779 "RANLIB=$${RANLIB}" \
12780 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12781 maintainer-clean) \
6de9cd9a
DN
12782 || exit 1
12783
d32ab992 12784@endif libgui
6de9cd9a
DN
12785
12786
d32ab992
PB
12787.PHONY: configure-libiberty maybe-configure-libiberty
12788maybe-configure-libiberty:
12789@if libiberty
12790maybe-configure-libiberty: configure-libiberty
12791configure-libiberty:
7c27e184
PB
12792 @test -f stage_last && exit 0; \
12793 test ! -f libiberty/Makefile || exit 0; \
d32ab992 12794 [ -d libiberty ] || mkdir libiberty; \
8c90b13a
L
12795 r=`${PWD_COMMAND}`; export r; \
12796 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12797 $(HOST_EXPORTS) \
d32ab992
PB
12798 echo Configuring in libiberty; \
12799 cd libiberty || exit 1; \
295f4e42
NN
12800 case $(srcdir) in \
12801 \.) \
12802 srcdiroption="--srcdir=."; \
12803 libsrcdir=".";; \
12804 /* | [A-Za-z]:[\\/]*) \
d32ab992
PB
12805 srcdiroption="--srcdir=$(srcdir)/libiberty"; \
12806 libsrcdir="$$s/libiberty";; \
295f4e42 12807 *) \
d32ab992
PB
12808 srcdiroption="--srcdir=../$(srcdir)/libiberty"; \
12809 libsrcdir="$$s/libiberty";; \
295f4e42
NN
12810 esac; \
12811 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 12812 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 12813 || exit 1
d32ab992 12814@endif libiberty
1358ccea 12815
d32ab992
PB
12816.PHONY: all-libiberty maybe-all-libiberty
12817maybe-all-libiberty:
12818@if libiberty
12819maybe-all-libiberty: all-libiberty
12820all-libiberty: configure-libiberty
7c27e184
PB
12821 @test -f stage_last && exit 0; \
12822 r=`${PWD_COMMAND}`; export r; \
d32ab992
PB
12823 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12824 $(SET_LIB_PATH) \
4fc4dd12 12825 $(HOST_EXPORTS) \
d32ab992
PB
12826 (cd libiberty && $(MAKE) $(FLAGS_TO_PASS) all)
12827@endif libiberty
1358ccea 12828
d32ab992
PB
12829.PHONY: check-libiberty maybe-check-libiberty
12830maybe-check-libiberty:
12831@if libiberty
12832maybe-check-libiberty: check-libiberty
1358ccea 12833
d32ab992 12834check-libiberty:
295f4e42 12835 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 12836 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 12837 $(SET_LIB_PATH) \
4fc4dd12 12838 $(HOST_EXPORTS) \
7c27e184 12839 (cd libiberty && $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 12840
d32ab992 12841@endif libiberty
1358ccea 12842
d32ab992
PB
12843.PHONY: install-libiberty maybe-install-libiberty
12844maybe-install-libiberty:
12845@if libiberty
12846maybe-install-libiberty: install-libiberty
1358ccea 12847
d32ab992 12848install-libiberty: installdirs
295f4e42 12849 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 12850 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 12851 $(SET_LIB_PATH) \
4fc4dd12 12852 $(HOST_EXPORTS) \
7c27e184 12853 (cd libiberty && $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 12854
d32ab992 12855@endif libiberty
1358ccea 12856
295f4e42 12857# Other targets (info, dvi, etc.)
1358ccea 12858
d32ab992
PB
12859.PHONY: maybe-info-libiberty info-libiberty
12860maybe-info-libiberty:
12861@if libiberty
12862maybe-info-libiberty: info-libiberty
295f4e42 12863
d32ab992
PB
12864info-libiberty: \
12865 configure-libiberty
12866 @[ -f ./libiberty/Makefile ] || exit 0; \
8c90b13a
L
12867 r=`${PWD_COMMAND}`; export r; \
12868 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 12869 $(SET_LIB_PATH) \
4fc4dd12 12870 $(HOST_EXPORTS) \
d32ab992 12871 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
12872 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12873 done; \
d32ab992
PB
12874 echo "Doing info in libiberty" ; \
12875 (cd libiberty && \
1358ccea
NN
12876 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12877 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12878 "RANLIB=$${RANLIB}" \
12879 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12880 info) \
1358ccea
NN
12881 || exit 1
12882
d32ab992 12883@endif libiberty
1358ccea 12884
d32ab992
PB
12885.PHONY: maybe-dvi-libiberty dvi-libiberty
12886maybe-dvi-libiberty:
12887@if libiberty
12888maybe-dvi-libiberty: dvi-libiberty
1358ccea 12889
d32ab992
PB
12890dvi-libiberty: \
12891 configure-libiberty
12892 @[ -f ./libiberty/Makefile ] || exit 0; \
8c90b13a
L
12893 r=`${PWD_COMMAND}`; export r; \
12894 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 12895 $(SET_LIB_PATH) \
4fc4dd12 12896 $(HOST_EXPORTS) \
d32ab992 12897 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
12898 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12899 done; \
d32ab992
PB
12900 echo "Doing dvi in libiberty" ; \
12901 (cd libiberty && \
1358ccea
NN
12902 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12903 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12904 "RANLIB=$${RANLIB}" \
12905 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12906 dvi) \
1358ccea
NN
12907 || exit 1
12908
d32ab992 12909@endif libiberty
1358ccea 12910
d32ab992
PB
12911.PHONY: maybe-TAGS-libiberty TAGS-libiberty
12912maybe-TAGS-libiberty:
12913@if libiberty
12914maybe-TAGS-libiberty: TAGS-libiberty
1358ccea 12915
d32ab992
PB
12916TAGS-libiberty: \
12917 configure-libiberty
12918 @[ -f ./libiberty/Makefile ] || exit 0; \
8c90b13a
L
12919 r=`${PWD_COMMAND}`; export r; \
12920 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 12921 $(SET_LIB_PATH) \
4fc4dd12 12922 $(HOST_EXPORTS) \
d32ab992 12923 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
12924 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12925 done; \
d32ab992
PB
12926 echo "Doing TAGS in libiberty" ; \
12927 (cd libiberty && \
1358ccea
NN
12928 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12929 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12930 "RANLIB=$${RANLIB}" \
12931 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12932 TAGS) \
1358ccea
NN
12933 || exit 1
12934
d32ab992 12935@endif libiberty
1358ccea 12936
d32ab992
PB
12937.PHONY: maybe-install-info-libiberty install-info-libiberty
12938maybe-install-info-libiberty:
12939@if libiberty
12940maybe-install-info-libiberty: install-info-libiberty
1358ccea 12941
d32ab992
PB
12942install-info-libiberty: \
12943 configure-libiberty \
12944 info-libiberty
12945 @[ -f ./libiberty/Makefile ] || exit 0; \
8c90b13a
L
12946 r=`${PWD_COMMAND}`; export r; \
12947 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 12948 $(SET_LIB_PATH) \
4fc4dd12 12949 $(HOST_EXPORTS) \
d32ab992 12950 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
12951 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12952 done; \
d32ab992
PB
12953 echo "Doing install-info in libiberty" ; \
12954 (cd libiberty && \
1358ccea
NN
12955 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12956 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12957 "RANLIB=$${RANLIB}" \
12958 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12959 install-info) \
1358ccea
NN
12960 || exit 1
12961
d32ab992 12962@endif libiberty
1358ccea 12963
d32ab992
PB
12964.PHONY: maybe-installcheck-libiberty installcheck-libiberty
12965maybe-installcheck-libiberty:
12966@if libiberty
12967maybe-installcheck-libiberty: installcheck-libiberty
1358ccea 12968
d32ab992
PB
12969installcheck-libiberty: \
12970 configure-libiberty
12971 @[ -f ./libiberty/Makefile ] || exit 0; \
8c90b13a
L
12972 r=`${PWD_COMMAND}`; export r; \
12973 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 12974 $(SET_LIB_PATH) \
4fc4dd12 12975 $(HOST_EXPORTS) \
d32ab992 12976 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
12977 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12978 done; \
d32ab992
PB
12979 echo "Doing installcheck in libiberty" ; \
12980 (cd libiberty && \
1358ccea
NN
12981 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12982 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12983 "RANLIB=$${RANLIB}" \
12984 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12985 installcheck) \
1358ccea
NN
12986 || exit 1
12987
d32ab992 12988@endif libiberty
1358ccea 12989
d32ab992
PB
12990.PHONY: maybe-mostlyclean-libiberty mostlyclean-libiberty
12991maybe-mostlyclean-libiberty:
12992@if libiberty
12993maybe-mostlyclean-libiberty: mostlyclean-libiberty
1358ccea 12994
d32ab992
PB
12995mostlyclean-libiberty:
12996 @[ -f ./libiberty/Makefile ] || exit 0; \
8c90b13a
L
12997 r=`${PWD_COMMAND}`; export r; \
12998 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 12999 $(SET_LIB_PATH) \
4fc4dd12 13000 $(HOST_EXPORTS) \
d32ab992 13001 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13002 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13003 done; \
d32ab992
PB
13004 echo "Doing mostlyclean in libiberty" ; \
13005 (cd libiberty && \
1358ccea
NN
13006 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13007 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13008 "RANLIB=$${RANLIB}" \
13009 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13010 mostlyclean) \
1358ccea
NN
13011 || exit 1
13012
d32ab992 13013@endif libiberty
1358ccea 13014
d32ab992
PB
13015.PHONY: maybe-clean-libiberty clean-libiberty
13016maybe-clean-libiberty:
13017@if libiberty
13018maybe-clean-libiberty: clean-libiberty
1358ccea 13019
d32ab992
PB
13020clean-libiberty:
13021 @[ -f ./libiberty/Makefile ] || exit 0; \
8c90b13a
L
13022 r=`${PWD_COMMAND}`; export r; \
13023 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 13024 $(SET_LIB_PATH) \
4fc4dd12 13025 $(HOST_EXPORTS) \
d32ab992 13026 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13027 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13028 done; \
d32ab992
PB
13029 echo "Doing clean in libiberty" ; \
13030 (cd libiberty && \
1358ccea
NN
13031 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13032 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13033 "RANLIB=$${RANLIB}" \
13034 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13035 clean) \
1358ccea
NN
13036 || exit 1
13037
d32ab992 13038@endif libiberty
1358ccea 13039
d32ab992
PB
13040.PHONY: maybe-distclean-libiberty distclean-libiberty
13041maybe-distclean-libiberty:
13042@if libiberty
13043maybe-distclean-libiberty: distclean-libiberty
1358ccea 13044
d32ab992
PB
13045distclean-libiberty:
13046 @[ -f ./libiberty/Makefile ] || exit 0; \
8c90b13a
L
13047 r=`${PWD_COMMAND}`; export r; \
13048 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 13049 $(SET_LIB_PATH) \
4fc4dd12 13050 $(HOST_EXPORTS) \
d32ab992 13051 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13052 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13053 done; \
d32ab992
PB
13054 echo "Doing distclean in libiberty" ; \
13055 (cd libiberty && \
1358ccea
NN
13056 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13057 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13058 "RANLIB=$${RANLIB}" \
13059 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13060 distclean) \
1358ccea
NN
13061 || exit 1
13062
d32ab992 13063@endif libiberty
1358ccea 13064
d32ab992
PB
13065.PHONY: maybe-maintainer-clean-libiberty maintainer-clean-libiberty
13066maybe-maintainer-clean-libiberty:
13067@if libiberty
13068maybe-maintainer-clean-libiberty: maintainer-clean-libiberty
1358ccea 13069
d32ab992
PB
13070maintainer-clean-libiberty:
13071 @[ -f ./libiberty/Makefile ] || exit 0; \
8c90b13a
L
13072 r=`${PWD_COMMAND}`; export r; \
13073 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 13074 $(SET_LIB_PATH) \
4fc4dd12 13075 $(HOST_EXPORTS) \
d32ab992 13076 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13077 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13078 done; \
d32ab992
PB
13079 echo "Doing maintainer-clean in libiberty" ; \
13080 (cd libiberty && \
1358ccea
NN
13081 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13082 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13083 "RANLIB=$${RANLIB}" \
13084 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13085 maintainer-clean) \
1358ccea
NN
13086 || exit 1
13087
d32ab992 13088@endif libiberty
1358ccea 13089
1358ccea 13090
d32ab992
PB
13091.PHONY: configure-libtool maybe-configure-libtool
13092maybe-configure-libtool:
13093@if libtool
13094maybe-configure-libtool: configure-libtool
13095configure-libtool:
13096 @test ! -f libtool/Makefile || exit 0; \
13097 [ -d libtool ] || mkdir libtool; \
8c90b13a
L
13098 r=`${PWD_COMMAND}`; export r; \
13099 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13100 $(HOST_EXPORTS) \
d32ab992
PB
13101 echo Configuring in libtool; \
13102 cd libtool || exit 1; \
295f4e42
NN
13103 case $(srcdir) in \
13104 \.) \
13105 srcdiroption="--srcdir=."; \
13106 libsrcdir=".";; \
13107 /* | [A-Za-z]:[\\/]*) \
d32ab992
PB
13108 srcdiroption="--srcdir=$(srcdir)/libtool"; \
13109 libsrcdir="$$s/libtool";; \
295f4e42 13110 *) \
d32ab992
PB
13111 srcdiroption="--srcdir=../$(srcdir)/libtool"; \
13112 libsrcdir="$$s/libtool";; \
295f4e42
NN
13113 esac; \
13114 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 13115 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 13116 || exit 1
d32ab992 13117@endif libtool
1358ccea 13118
d32ab992
PB
13119.PHONY: all-libtool maybe-all-libtool
13120maybe-all-libtool:
13121@if libtool
13122maybe-all-libtool: all-libtool
13123all-libtool: configure-libtool
295f4e42
NN
13124 @r=`${PWD_COMMAND}`; export r; \
13125 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13126 $(SET_LIB_PATH) \
4fc4dd12 13127 $(HOST_EXPORTS) \
d32ab992
PB
13128 (cd libtool && $(MAKE) $(FLAGS_TO_PASS) all)
13129@endif libtool
1358ccea 13130
d32ab992
PB
13131.PHONY: check-libtool maybe-check-libtool
13132maybe-check-libtool:
13133@if libtool
13134maybe-check-libtool: check-libtool
1358ccea 13135
d32ab992 13136check-libtool:
295f4e42 13137 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 13138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 13139 $(SET_LIB_PATH) \
4fc4dd12 13140 $(HOST_EXPORTS) \
7c27e184 13141 (cd libtool && $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 13142
d32ab992 13143@endif libtool
1358ccea 13144
d32ab992
PB
13145.PHONY: install-libtool maybe-install-libtool
13146maybe-install-libtool:
13147@if libtool
13148maybe-install-libtool: install-libtool
1358ccea 13149
d32ab992 13150install-libtool: installdirs
295f4e42 13151 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 13152 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 13153 $(SET_LIB_PATH) \
4fc4dd12 13154 $(HOST_EXPORTS) \
7c27e184 13155 (cd libtool && $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 13156
d32ab992 13157@endif libtool
1358ccea 13158
295f4e42 13159# Other targets (info, dvi, etc.)
1358ccea 13160
d32ab992
PB
13161.PHONY: maybe-info-libtool info-libtool
13162maybe-info-libtool:
13163@if libtool
13164maybe-info-libtool: info-libtool
295f4e42 13165
d32ab992
PB
13166info-libtool: \
13167 configure-libtool
13168 @[ -f ./libtool/Makefile ] || exit 0; \
8c90b13a
L
13169 r=`${PWD_COMMAND}`; export r; \
13170 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 13171 $(SET_LIB_PATH) \
4fc4dd12 13172 $(HOST_EXPORTS) \
d32ab992 13173 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13174 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13175 done; \
d32ab992
PB
13176 echo "Doing info in libtool" ; \
13177 (cd libtool && \
1358ccea
NN
13178 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13179 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13180 "RANLIB=$${RANLIB}" \
13181 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13182 info) \
1358ccea
NN
13183 || exit 1
13184
d32ab992 13185@endif libtool
1358ccea 13186
d32ab992
PB
13187.PHONY: maybe-dvi-libtool dvi-libtool
13188maybe-dvi-libtool:
13189@if libtool
13190maybe-dvi-libtool: dvi-libtool
1358ccea 13191
d32ab992
PB
13192dvi-libtool: \
13193 configure-libtool
13194 @[ -f ./libtool/Makefile ] || exit 0; \
8c90b13a
L
13195 r=`${PWD_COMMAND}`; export r; \
13196 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 13197 $(SET_LIB_PATH) \
4fc4dd12 13198 $(HOST_EXPORTS) \
d32ab992 13199 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13200 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13201 done; \
d32ab992
PB
13202 echo "Doing dvi in libtool" ; \
13203 (cd libtool && \
1358ccea
NN
13204 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13205 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13206 "RANLIB=$${RANLIB}" \
13207 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13208 dvi) \
1358ccea
NN
13209 || exit 1
13210
d32ab992 13211@endif libtool
1358ccea 13212
d32ab992
PB
13213.PHONY: maybe-TAGS-libtool TAGS-libtool
13214maybe-TAGS-libtool:
13215@if libtool
13216maybe-TAGS-libtool: TAGS-libtool
1358ccea 13217
d32ab992
PB
13218TAGS-libtool: \
13219 configure-libtool
13220 @[ -f ./libtool/Makefile ] || exit 0; \
8c90b13a
L
13221 r=`${PWD_COMMAND}`; export r; \
13222 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 13223 $(SET_LIB_PATH) \
4fc4dd12 13224 $(HOST_EXPORTS) \
d32ab992 13225 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13226 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13227 done; \
d32ab992
PB
13228 echo "Doing TAGS in libtool" ; \
13229 (cd libtool && \
1358ccea
NN
13230 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13231 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13232 "RANLIB=$${RANLIB}" \
13233 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13234 TAGS) \
1358ccea
NN
13235 || exit 1
13236
d32ab992 13237@endif libtool
1358ccea 13238
d32ab992
PB
13239.PHONY: maybe-install-info-libtool install-info-libtool
13240maybe-install-info-libtool:
13241@if libtool
13242maybe-install-info-libtool: install-info-libtool
1358ccea 13243
d32ab992
PB
13244install-info-libtool: \
13245 configure-libtool \
13246 info-libtool
13247 @[ -f ./libtool/Makefile ] || exit 0; \
8c90b13a
L
13248 r=`${PWD_COMMAND}`; export r; \
13249 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 13250 $(SET_LIB_PATH) \
4fc4dd12 13251 $(HOST_EXPORTS) \
d32ab992 13252 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13253 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13254 done; \
d32ab992
PB
13255 echo "Doing install-info in libtool" ; \
13256 (cd libtool && \
1358ccea
NN
13257 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13258 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13259 "RANLIB=$${RANLIB}" \
13260 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13261 install-info) \
1358ccea
NN
13262 || exit 1
13263
d32ab992 13264@endif libtool
1358ccea 13265
d32ab992
PB
13266.PHONY: maybe-installcheck-libtool installcheck-libtool
13267maybe-installcheck-libtool:
13268@if libtool
13269maybe-installcheck-libtool: installcheck-libtool
1358ccea 13270
d32ab992
PB
13271installcheck-libtool: \
13272 configure-libtool
13273 @[ -f ./libtool/Makefile ] || exit 0; \
8c90b13a
L
13274 r=`${PWD_COMMAND}`; export r; \
13275 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 13276 $(SET_LIB_PATH) \
4fc4dd12 13277 $(HOST_EXPORTS) \
d32ab992 13278 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13279 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13280 done; \
d32ab992
PB
13281 echo "Doing installcheck in libtool" ; \
13282 (cd libtool && \
1358ccea
NN
13283 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13284 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13285 "RANLIB=$${RANLIB}" \
13286 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13287 installcheck) \
1358ccea
NN
13288 || exit 1
13289
d32ab992 13290@endif libtool
1358ccea 13291
d32ab992
PB
13292.PHONY: maybe-mostlyclean-libtool mostlyclean-libtool
13293maybe-mostlyclean-libtool:
13294@if libtool
13295maybe-mostlyclean-libtool: mostlyclean-libtool
1358ccea 13296
d32ab992
PB
13297mostlyclean-libtool:
13298 @[ -f ./libtool/Makefile ] || exit 0; \
8c90b13a
L
13299 r=`${PWD_COMMAND}`; export r; \
13300 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 13301 $(SET_LIB_PATH) \
4fc4dd12 13302 $(HOST_EXPORTS) \
d32ab992 13303 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13304 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13305 done; \
d32ab992
PB
13306 echo "Doing mostlyclean in libtool" ; \
13307 (cd libtool && \
1358ccea
NN
13308 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13309 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13310 "RANLIB=$${RANLIB}" \
13311 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13312 mostlyclean) \
1358ccea
NN
13313 || exit 1
13314
d32ab992 13315@endif libtool
1358ccea 13316
d32ab992
PB
13317.PHONY: maybe-clean-libtool clean-libtool
13318maybe-clean-libtool:
13319@if libtool
13320maybe-clean-libtool: clean-libtool
1358ccea 13321
d32ab992
PB
13322clean-libtool:
13323 @[ -f ./libtool/Makefile ] || exit 0; \
8c90b13a
L
13324 r=`${PWD_COMMAND}`; export r; \
13325 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 13326 $(SET_LIB_PATH) \
4fc4dd12 13327 $(HOST_EXPORTS) \
d32ab992 13328 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13329 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13330 done; \
d32ab992
PB
13331 echo "Doing clean in libtool" ; \
13332 (cd libtool && \
1358ccea
NN
13333 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13334 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13335 "RANLIB=$${RANLIB}" \
13336 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13337 clean) \
1358ccea
NN
13338 || exit 1
13339
d32ab992 13340@endif libtool
1358ccea 13341
d32ab992
PB
13342.PHONY: maybe-distclean-libtool distclean-libtool
13343maybe-distclean-libtool:
13344@if libtool
13345maybe-distclean-libtool: distclean-libtool
1358ccea 13346
d32ab992
PB
13347distclean-libtool:
13348 @[ -f ./libtool/Makefile ] || exit 0; \
8c90b13a
L
13349 r=`${PWD_COMMAND}`; export r; \
13350 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 13351 $(SET_LIB_PATH) \
4fc4dd12 13352 $(HOST_EXPORTS) \
d32ab992 13353 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13354 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13355 done; \
d32ab992
PB
13356 echo "Doing distclean in libtool" ; \
13357 (cd libtool && \
1358ccea
NN
13358 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13359 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13360 "RANLIB=$${RANLIB}" \
13361 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13362 distclean) \
1358ccea
NN
13363 || exit 1
13364
d32ab992 13365@endif libtool
1358ccea 13366
d32ab992
PB
13367.PHONY: maybe-maintainer-clean-libtool maintainer-clean-libtool
13368maybe-maintainer-clean-libtool:
13369@if libtool
13370maybe-maintainer-clean-libtool: maintainer-clean-libtool
1358ccea 13371
d32ab992
PB
13372maintainer-clean-libtool:
13373 @[ -f ./libtool/Makefile ] || exit 0; \
8c90b13a
L
13374 r=`${PWD_COMMAND}`; export r; \
13375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 13376 $(SET_LIB_PATH) \
4fc4dd12 13377 $(HOST_EXPORTS) \
d32ab992 13378 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13379 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13380 done; \
d32ab992
PB
13381 echo "Doing maintainer-clean in libtool" ; \
13382 (cd libtool && \
1358ccea
NN
13383 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13384 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13385 "RANLIB=$${RANLIB}" \
13386 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13387 maintainer-clean) \
1358ccea
NN
13388 || exit 1
13389
d32ab992 13390@endif libtool
1358ccea 13391
1358ccea 13392
d32ab992
PB
13393.PHONY: configure-m4 maybe-configure-m4
13394maybe-configure-m4:
13395@if m4
13396maybe-configure-m4: configure-m4
13397configure-m4:
13398 @test ! -f m4/Makefile || exit 0; \
13399 [ -d m4 ] || mkdir m4; \
8c90b13a
L
13400 r=`${PWD_COMMAND}`; export r; \
13401 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13402 $(HOST_EXPORTS) \
d32ab992
PB
13403 echo Configuring in m4; \
13404 cd m4 || exit 1; \
295f4e42
NN
13405 case $(srcdir) in \
13406 \.) \
13407 srcdiroption="--srcdir=."; \
13408 libsrcdir=".";; \
13409 /* | [A-Za-z]:[\\/]*) \
d32ab992
PB
13410 srcdiroption="--srcdir=$(srcdir)/m4"; \
13411 libsrcdir="$$s/m4";; \
295f4e42 13412 *) \
d32ab992
PB
13413 srcdiroption="--srcdir=../$(srcdir)/m4"; \
13414 libsrcdir="$$s/m4";; \
295f4e42
NN
13415 esac; \
13416 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 13417 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 13418 || exit 1
d32ab992 13419@endif m4
1358ccea 13420
d32ab992
PB
13421.PHONY: all-m4 maybe-all-m4
13422maybe-all-m4:
13423@if m4
13424maybe-all-m4: all-m4
13425all-m4: configure-m4
295f4e42
NN
13426 @r=`${PWD_COMMAND}`; export r; \
13427 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13428 $(SET_LIB_PATH) \
4fc4dd12 13429 $(HOST_EXPORTS) \
d32ab992
PB
13430 (cd m4 && $(MAKE) $(FLAGS_TO_PASS) all)
13431@endif m4
295f4e42 13432
d32ab992
PB
13433.PHONY: check-m4 maybe-check-m4
13434maybe-check-m4:
13435@if m4
13436maybe-check-m4: check-m4
1358ccea 13437
d32ab992 13438check-m4:
295f4e42
NN
13439 @r=`${PWD_COMMAND}`; export r; \
13440 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13441 $(SET_LIB_PATH) \
4fc4dd12 13442 $(HOST_EXPORTS) \
7c27e184 13443 (cd m4 && $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 13444
d32ab992 13445@endif m4
295f4e42 13446
d32ab992
PB
13447.PHONY: install-m4 maybe-install-m4
13448maybe-install-m4:
13449@if m4
13450maybe-install-m4: install-m4
295f4e42 13451
d32ab992 13452install-m4: installdirs
295f4e42
NN
13453 @r=`${PWD_COMMAND}`; export r; \
13454 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13455 $(SET_LIB_PATH) \
4fc4dd12 13456 $(HOST_EXPORTS) \
7c27e184 13457 (cd m4 && $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 13458
d32ab992 13459@endif m4
295f4e42
NN
13460
13461# Other targets (info, dvi, etc.)
13462
d32ab992
PB
13463.PHONY: maybe-info-m4 info-m4
13464maybe-info-m4:
13465@if m4
13466maybe-info-m4: info-m4
295f4e42 13467
d32ab992
PB
13468info-m4: \
13469 configure-m4
13470 @[ -f ./m4/Makefile ] || exit 0; \
8c90b13a
L
13471 r=`${PWD_COMMAND}`; export r; \
13472 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 13473 $(SET_LIB_PATH) \
4fc4dd12 13474 $(HOST_EXPORTS) \
d32ab992 13475 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13476 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13477 done; \
d32ab992
PB
13478 echo "Doing info in m4" ; \
13479 (cd m4 && \
1358ccea
NN
13480 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13481 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13482 "RANLIB=$${RANLIB}" \
13483 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13484 info) \
1358ccea
NN
13485 || exit 1
13486
d32ab992 13487@endif m4
1358ccea 13488
d32ab992
PB
13489.PHONY: maybe-dvi-m4 dvi-m4
13490maybe-dvi-m4:
13491@if m4
13492maybe-dvi-m4: dvi-m4
1358ccea 13493
d32ab992
PB
13494dvi-m4: \
13495 configure-m4
13496 @[ -f ./m4/Makefile ] || exit 0; \
8c90b13a
L
13497 r=`${PWD_COMMAND}`; export r; \
13498 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 13499 $(SET_LIB_PATH) \
4fc4dd12 13500 $(HOST_EXPORTS) \
d32ab992 13501 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13502 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13503 done; \
d32ab992
PB
13504 echo "Doing dvi in m4" ; \
13505 (cd m4 && \
1358ccea
NN
13506 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13507 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13508 "RANLIB=$${RANLIB}" \
13509 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13510 dvi) \
1358ccea
NN
13511 || exit 1
13512
d32ab992 13513@endif m4
1358ccea 13514
d32ab992
PB
13515.PHONY: maybe-TAGS-m4 TAGS-m4
13516maybe-TAGS-m4:
13517@if m4
13518maybe-TAGS-m4: TAGS-m4
1358ccea 13519
d32ab992
PB
13520TAGS-m4: \
13521 configure-m4
13522 @[ -f ./m4/Makefile ] || exit 0; \
8c90b13a
L
13523 r=`${PWD_COMMAND}`; export r; \
13524 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 13525 $(SET_LIB_PATH) \
4fc4dd12 13526 $(HOST_EXPORTS) \
d32ab992 13527 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13528 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13529 done; \
d32ab992
PB
13530 echo "Doing TAGS in m4" ; \
13531 (cd m4 && \
1358ccea
NN
13532 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13533 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13534 "RANLIB=$${RANLIB}" \
13535 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13536 TAGS) \
1358ccea
NN
13537 || exit 1
13538
d32ab992 13539@endif m4
1358ccea 13540
d32ab992
PB
13541.PHONY: maybe-install-info-m4 install-info-m4
13542maybe-install-info-m4:
13543@if m4
13544maybe-install-info-m4: install-info-m4
1358ccea 13545
d32ab992
PB
13546install-info-m4: \
13547 configure-m4 \
13548 info-m4
13549 @[ -f ./m4/Makefile ] || exit 0; \
8c90b13a
L
13550 r=`${PWD_COMMAND}`; export r; \
13551 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 13552 $(SET_LIB_PATH) \
4fc4dd12 13553 $(HOST_EXPORTS) \
d32ab992 13554 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13555 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13556 done; \
d32ab992
PB
13557 echo "Doing install-info in m4" ; \
13558 (cd m4 && \
1358ccea
NN
13559 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13560 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13561 "RANLIB=$${RANLIB}" \
13562 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13563 install-info) \
1358ccea
NN
13564 || exit 1
13565
d32ab992 13566@endif m4
1358ccea 13567
d32ab992
PB
13568.PHONY: maybe-installcheck-m4 installcheck-m4
13569maybe-installcheck-m4:
13570@if m4
13571maybe-installcheck-m4: installcheck-m4
1358ccea 13572
d32ab992
PB
13573installcheck-m4: \
13574 configure-m4
13575 @[ -f ./m4/Makefile ] || exit 0; \
8c90b13a
L
13576 r=`${PWD_COMMAND}`; export r; \
13577 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 13578 $(SET_LIB_PATH) \
4fc4dd12 13579 $(HOST_EXPORTS) \
d32ab992 13580 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13581 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13582 done; \
d32ab992
PB
13583 echo "Doing installcheck in m4" ; \
13584 (cd m4 && \
1358ccea
NN
13585 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13586 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13587 "RANLIB=$${RANLIB}" \
13588 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13589 installcheck) \
1358ccea
NN
13590 || exit 1
13591
d32ab992 13592@endif m4
1358ccea 13593
d32ab992
PB
13594.PHONY: maybe-mostlyclean-m4 mostlyclean-m4
13595maybe-mostlyclean-m4:
13596@if m4
13597maybe-mostlyclean-m4: mostlyclean-m4
1358ccea 13598
d32ab992
PB
13599mostlyclean-m4:
13600 @[ -f ./m4/Makefile ] || exit 0; \
8c90b13a
L
13601 r=`${PWD_COMMAND}`; export r; \
13602 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 13603 $(SET_LIB_PATH) \
4fc4dd12 13604 $(HOST_EXPORTS) \
d32ab992 13605 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13606 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13607 done; \
d32ab992
PB
13608 echo "Doing mostlyclean in m4" ; \
13609 (cd m4 && \
1358ccea
NN
13610 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13611 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13612 "RANLIB=$${RANLIB}" \
13613 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13614 mostlyclean) \
1358ccea
NN
13615 || exit 1
13616
d32ab992 13617@endif m4
1358ccea 13618
d32ab992
PB
13619.PHONY: maybe-clean-m4 clean-m4
13620maybe-clean-m4:
13621@if m4
13622maybe-clean-m4: clean-m4
1358ccea 13623
d32ab992
PB
13624clean-m4:
13625 @[ -f ./m4/Makefile ] || exit 0; \
8c90b13a
L
13626 r=`${PWD_COMMAND}`; export r; \
13627 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1358ccea 13628 $(SET_LIB_PATH) \
4fc4dd12 13629 $(HOST_EXPORTS) \
d32ab992 13630 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13631 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13632 done; \
d32ab992
PB
13633 echo "Doing clean in m4" ; \
13634 (cd m4 && \
1358ccea
NN
13635 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13636 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13637 "RANLIB=$${RANLIB}" \
13638 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13639 clean) \
1358ccea
NN
13640 || exit 1
13641
d32ab992 13642@endif m4
1358ccea 13643
d32ab992
PB
13644.PHONY: maybe-distclean-m4 distclean-m4
13645maybe-distclean-m4:
13646@if m4
13647maybe-distclean-m4: distclean-m4
d9cdb878 13648
d32ab992
PB
13649distclean-m4:
13650 @[ -f ./m4/Makefile ] || exit 0; \
d9cdb878
AC
13651 r=`${PWD_COMMAND}`; export r; \
13652 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13653 $(SET_LIB_PATH) \
4fc4dd12 13654 $(HOST_EXPORTS) \
d32ab992 13655 for flag in $(EXTRA_HOST_FLAGS) ; do \
d9cdb878
AC
13656 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13657 done; \
d32ab992
PB
13658 echo "Doing distclean in m4" ; \
13659 (cd m4 && \
d9cdb878
AC
13660 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13661 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
295f4e42
NN
13662 "RANLIB=$${RANLIB}" \
13663 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13664 distclean) \
295f4e42 13665 || exit 1
6599da04 13666
d32ab992 13667@endif m4
c4137c50 13668
d32ab992
PB
13669.PHONY: maybe-maintainer-clean-m4 maintainer-clean-m4
13670maybe-maintainer-clean-m4:
13671@if m4
13672maybe-maintainer-clean-m4: maintainer-clean-m4
c4137c50 13673
d32ab992
PB
13674maintainer-clean-m4:
13675 @[ -f ./m4/Makefile ] || exit 0; \
295f4e42
NN
13676 r=`${PWD_COMMAND}`; export r; \
13677 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13678 $(SET_LIB_PATH) \
4fc4dd12 13679 $(HOST_EXPORTS) \
d32ab992 13680 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
13681 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13682 done; \
d32ab992
PB
13683 echo "Doing maintainer-clean in m4" ; \
13684 (cd m4 && \
295f4e42
NN
13685 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13686 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13687 "RANLIB=$${RANLIB}" \
13688 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13689 maintainer-clean) \
295f4e42 13690 || exit 1
c4137c50 13691
d32ab992 13692@endif m4
c4137c50 13693
6599da04 13694
d32ab992
PB
13695.PHONY: configure-make maybe-configure-make
13696maybe-configure-make:
13697@if make
13698maybe-configure-make: configure-make
13699configure-make:
13700 @test ! -f make/Makefile || exit 0; \
13701 [ -d make ] || mkdir make; \
13702 r=`${PWD_COMMAND}`; export r; \
13703 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13704 $(HOST_EXPORTS) \
13705 echo Configuring in make; \
13706 cd make || exit 1; \
295f4e42
NN
13707 case $(srcdir) in \
13708 \.) \
13709 srcdiroption="--srcdir=."; \
13710 libsrcdir=".";; \
13711 /* | [A-Za-z]:[\\/]*) \
d32ab992
PB
13712 srcdiroption="--srcdir=$(srcdir)/make"; \
13713 libsrcdir="$$s/make";; \
295f4e42 13714 *) \
d32ab992
PB
13715 srcdiroption="--srcdir=../$(srcdir)/make"; \
13716 libsrcdir="$$s/make";; \
295f4e42
NN
13717 esac; \
13718 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 13719 $(HOST_CONFIGARGS) $${srcdiroption} \
295f4e42 13720 || exit 1
d32ab992 13721@endif make
8b87bb96 13722
d32ab992
PB
13723.PHONY: all-make maybe-all-make
13724maybe-all-make:
13725@if make
13726maybe-all-make: all-make
13727all-make: configure-make
295f4e42
NN
13728 @r=`${PWD_COMMAND}`; export r; \
13729 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13730 $(SET_LIB_PATH) \
4fc4dd12 13731 $(HOST_EXPORTS) \
d32ab992
PB
13732 (cd make && $(MAKE) $(FLAGS_TO_PASS) all)
13733@endif make
7e2dbcef 13734
d32ab992
PB
13735.PHONY: check-make maybe-check-make
13736maybe-check-make:
13737@if make
13738maybe-check-make: check-make
295f4e42 13739
d32ab992
PB
13740check-make:
13741 @r=`${PWD_COMMAND}`; export r; \
13742 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13743 $(SET_LIB_PATH) \
13744 $(HOST_EXPORTS) \
7c27e184 13745 (cd make && $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 13746
d32ab992 13747@endif make
295f4e42 13748
d32ab992
PB
13749.PHONY: install-make maybe-install-make
13750maybe-install-make:
13751@if make
13752maybe-install-make: install-make
295f4e42 13753
d32ab992 13754install-make: installdirs
295f4e42
NN
13755 @r=`${PWD_COMMAND}`; export r; \
13756 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13757 $(SET_LIB_PATH) \
4fc4dd12 13758 $(HOST_EXPORTS) \
7c27e184 13759 (cd make && $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 13760
d32ab992 13761@endif make
295f4e42
NN
13762
13763# Other targets (info, dvi, etc.)
13764
d32ab992
PB
13765.PHONY: maybe-info-make info-make
13766maybe-info-make:
13767@if make
13768maybe-info-make: info-make
295f4e42 13769
d32ab992
PB
13770info-make: \
13771 configure-make
13772 @[ -f ./make/Makefile ] || exit 0; \
295f4e42
NN
13773 r=`${PWD_COMMAND}`; export r; \
13774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13775 $(SET_LIB_PATH) \
4fc4dd12 13776 $(HOST_EXPORTS) \
d32ab992 13777 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
13778 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13779 done; \
d32ab992
PB
13780 echo "Doing info in make" ; \
13781 (cd make && \
295f4e42
NN
13782 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13783 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13784 "RANLIB=$${RANLIB}" \
13785 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13786 info) \
295f4e42 13787 || exit 1
7e2dbcef 13788
d32ab992 13789@endif make
6599da04 13790
d32ab992
PB
13791.PHONY: maybe-dvi-make dvi-make
13792maybe-dvi-make:
13793@if make
13794maybe-dvi-make: dvi-make
6599da04 13795
d32ab992
PB
13796dvi-make: \
13797 configure-make
13798 @[ -f ./make/Makefile ] || exit 0; \
295f4e42
NN
13799 r=`${PWD_COMMAND}`; export r; \
13800 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13801 $(SET_LIB_PATH) \
4fc4dd12 13802 $(HOST_EXPORTS) \
d32ab992 13803 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
13804 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13805 done; \
d32ab992
PB
13806 echo "Doing dvi in make" ; \
13807 (cd make && \
295f4e42
NN
13808 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13809 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13810 "RANLIB=$${RANLIB}" \
13811 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13812 dvi) \
295f4e42 13813 || exit 1
6599da04 13814
d32ab992 13815@endif make
6599da04 13816
d32ab992
PB
13817.PHONY: maybe-TAGS-make TAGS-make
13818maybe-TAGS-make:
13819@if make
13820maybe-TAGS-make: TAGS-make
4977bab6 13821
d32ab992
PB
13822TAGS-make: \
13823 configure-make
13824 @[ -f ./make/Makefile ] || exit 0; \
295f4e42
NN
13825 r=`${PWD_COMMAND}`; export r; \
13826 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13827 $(SET_LIB_PATH) \
4fc4dd12 13828 $(HOST_EXPORTS) \
d32ab992 13829 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
13830 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13831 done; \
d32ab992
PB
13832 echo "Doing TAGS in make" ; \
13833 (cd make && \
295f4e42
NN
13834 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13835 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13836 "RANLIB=$${RANLIB}" \
13837 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13838 TAGS) \
295f4e42 13839 || exit 1
4977bab6 13840
d32ab992 13841@endif make
4977bab6 13842
d32ab992
PB
13843.PHONY: maybe-install-info-make install-info-make
13844maybe-install-info-make:
13845@if make
13846maybe-install-info-make: install-info-make
4977bab6 13847
d32ab992
PB
13848install-info-make: \
13849 configure-make \
13850 info-make
13851 @[ -f ./make/Makefile ] || exit 0; \
295f4e42
NN
13852 r=`${PWD_COMMAND}`; export r; \
13853 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13854 $(SET_LIB_PATH) \
4fc4dd12 13855 $(HOST_EXPORTS) \
d32ab992 13856 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
13857 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13858 done; \
d32ab992
PB
13859 echo "Doing install-info in make" ; \
13860 (cd make && \
295f4e42
NN
13861 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13862 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13863 "RANLIB=$${RANLIB}" \
13864 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13865 install-info) \
295f4e42 13866 || exit 1
4977bab6 13867
d32ab992 13868@endif make
4977bab6 13869
d32ab992
PB
13870.PHONY: maybe-installcheck-make installcheck-make
13871maybe-installcheck-make:
13872@if make
13873maybe-installcheck-make: installcheck-make
4977bab6 13874
d32ab992
PB
13875installcheck-make: \
13876 configure-make
13877 @[ -f ./make/Makefile ] || exit 0; \
8c90b13a
L
13878 r=`${PWD_COMMAND}`; export r; \
13879 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
295f4e42 13880 $(SET_LIB_PATH) \
4fc4dd12 13881 $(HOST_EXPORTS) \
d32ab992 13882 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
13883 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13884 done; \
d32ab992
PB
13885 echo "Doing installcheck in make" ; \
13886 (cd make && \
295f4e42
NN
13887 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13888 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13889 "RANLIB=$${RANLIB}" \
13890 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13891 installcheck) \
295f4e42
NN
13892 || exit 1
13893
d32ab992 13894@endif make
295f4e42 13895
d32ab992
PB
13896.PHONY: maybe-mostlyclean-make mostlyclean-make
13897maybe-mostlyclean-make:
13898@if make
13899maybe-mostlyclean-make: mostlyclean-make
295f4e42 13900
d32ab992
PB
13901mostlyclean-make:
13902 @[ -f ./make/Makefile ] || exit 0; \
295f4e42
NN
13903 r=`${PWD_COMMAND}`; export r; \
13904 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13905 $(SET_LIB_PATH) \
4fc4dd12 13906 $(HOST_EXPORTS) \
d32ab992 13907 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
13908 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13909 done; \
d32ab992
PB
13910 echo "Doing mostlyclean in make" ; \
13911 (cd make && \
295f4e42
NN
13912 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13913 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13914 "RANLIB=$${RANLIB}" \
13915 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13916 mostlyclean) \
295f4e42
NN
13917 || exit 1
13918
d32ab992 13919@endif make
295f4e42 13920
d32ab992
PB
13921.PHONY: maybe-clean-make clean-make
13922maybe-clean-make:
13923@if make
13924maybe-clean-make: clean-make
295f4e42 13925
d32ab992
PB
13926clean-make:
13927 @[ -f ./make/Makefile ] || exit 0; \
295f4e42
NN
13928 r=`${PWD_COMMAND}`; export r; \
13929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13930 $(SET_LIB_PATH) \
4fc4dd12 13931 $(HOST_EXPORTS) \
d32ab992 13932 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
13933 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13934 done; \
d32ab992
PB
13935 echo "Doing clean in make" ; \
13936 (cd make && \
295f4e42
NN
13937 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13938 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13939 "RANLIB=$${RANLIB}" \
13940 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13941 clean) \
295f4e42
NN
13942 || exit 1
13943
d32ab992 13944@endif make
295f4e42 13945
d32ab992
PB
13946.PHONY: maybe-distclean-make distclean-make
13947maybe-distclean-make:
13948@if make
13949maybe-distclean-make: distclean-make
295f4e42 13950
d32ab992
PB
13951distclean-make:
13952 @[ -f ./make/Makefile ] || exit 0; \
295f4e42
NN
13953 r=`${PWD_COMMAND}`; export r; \
13954 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13955 $(SET_LIB_PATH) \
4fc4dd12 13956 $(HOST_EXPORTS) \
d32ab992 13957 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
13958 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13959 done; \
d32ab992
PB
13960 echo "Doing distclean in make" ; \
13961 (cd make && \
295f4e42
NN
13962 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13963 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13964 "RANLIB=$${RANLIB}" \
13965 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13966 distclean) \
3aa83176 13967 || exit 1
4977bab6 13968
d32ab992 13969@endif make
295f4e42 13970
d32ab992
PB
13971.PHONY: maybe-maintainer-clean-make maintainer-clean-make
13972maybe-maintainer-clean-make:
13973@if make
13974maybe-maintainer-clean-make: maintainer-clean-make
295f4e42 13975
d32ab992
PB
13976maintainer-clean-make:
13977 @[ -f ./make/Makefile ] || exit 0; \
295f4e42 13978 r=`${PWD_COMMAND}`; export r; \
8c90b13a 13979 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
295f4e42 13980 $(SET_LIB_PATH) \
4fc4dd12 13981 $(HOST_EXPORTS) \
d32ab992 13982 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
13983 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13984 done; \
d32ab992
PB
13985 echo "Doing maintainer-clean in make" ; \
13986 (cd make && \
295f4e42
NN
13987 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13988 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13989 "RANLIB=$${RANLIB}" \
13990 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13991 maintainer-clean) \
295f4e42 13992 || exit 1
4977bab6 13993
d32ab992 13994@endif make
4977bab6 13995
4977bab6 13996
d32ab992
PB
13997.PHONY: configure-mmalloc maybe-configure-mmalloc
13998maybe-configure-mmalloc:
13999@if mmalloc
14000maybe-configure-mmalloc: configure-mmalloc
14001configure-mmalloc:
14002 @test ! -f mmalloc/Makefile || exit 0; \
14003 [ -d mmalloc ] || mkdir mmalloc; \
8c90b13a
L
14004 r=`${PWD_COMMAND}`; export r; \
14005 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14006 $(HOST_EXPORTS) \
d32ab992
PB
14007 echo Configuring in mmalloc; \
14008 cd mmalloc || exit 1; \
4977bab6
ZW
14009 case $(srcdir) in \
14010 \.) \
14011 srcdiroption="--srcdir=."; \
14012 libsrcdir=".";; \
14013 /* | [A-Za-z]:[\\/]*) \
d32ab992
PB
14014 srcdiroption="--srcdir=$(srcdir)/mmalloc"; \
14015 libsrcdir="$$s/mmalloc";; \
4977bab6 14016 *) \
d32ab992
PB
14017 srcdiroption="--srcdir=../$(srcdir)/mmalloc"; \
14018 libsrcdir="$$s/mmalloc";; \
4977bab6
ZW
14019 esac; \
14020 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 14021 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 14022 || exit 1
d32ab992 14023@endif mmalloc
4977bab6 14024
d32ab992
PB
14025.PHONY: all-mmalloc maybe-all-mmalloc
14026maybe-all-mmalloc:
14027@if mmalloc
14028maybe-all-mmalloc: all-mmalloc
14029all-mmalloc: configure-mmalloc
8c90b13a
L
14030 @r=`${PWD_COMMAND}`; export r; \
14031 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 14032 $(SET_LIB_PATH) \
4fc4dd12 14033 $(HOST_EXPORTS) \
d32ab992
PB
14034 (cd mmalloc && $(MAKE) $(FLAGS_TO_PASS) all)
14035@endif mmalloc
4977bab6 14036
d32ab992
PB
14037.PHONY: check-mmalloc maybe-check-mmalloc
14038maybe-check-mmalloc:
14039@if mmalloc
14040maybe-check-mmalloc: check-mmalloc
4977bab6 14041
d32ab992 14042check-mmalloc:
4977bab6 14043
d32ab992 14044@endif mmalloc
4977bab6 14045
d32ab992
PB
14046.PHONY: install-mmalloc maybe-install-mmalloc
14047maybe-install-mmalloc:
14048@if mmalloc
14049maybe-install-mmalloc: install-mmalloc
7e2dbcef 14050
d32ab992 14051install-mmalloc: installdirs
8c90b13a
L
14052 @r=`${PWD_COMMAND}`; export r; \
14053 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 14054 $(SET_LIB_PATH) \
4fc4dd12 14055 $(HOST_EXPORTS) \
7c27e184 14056 (cd mmalloc && $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 14057
d32ab992 14058@endif mmalloc
295f4e42
NN
14059
14060# Other targets (info, dvi, etc.)
14061
d32ab992
PB
14062.PHONY: maybe-info-mmalloc info-mmalloc
14063maybe-info-mmalloc:
14064@if mmalloc
14065maybe-info-mmalloc: info-mmalloc
295f4e42 14066
d32ab992
PB
14067info-mmalloc: \
14068 configure-mmalloc
14069 @[ -f ./mmalloc/Makefile ] || exit 0; \
295f4e42
NN
14070 r=`${PWD_COMMAND}`; export r; \
14071 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14072 $(SET_LIB_PATH) \
4fc4dd12 14073 $(HOST_EXPORTS) \
d32ab992 14074 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
14075 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14076 done; \
d32ab992
PB
14077 echo "Doing info in mmalloc" ; \
14078 (cd mmalloc && \
295f4e42
NN
14079 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14080 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14081 "RANLIB=$${RANLIB}" \
14082 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14083 info) \
295f4e42
NN
14084 || exit 1
14085
d32ab992 14086@endif mmalloc
295f4e42 14087
d32ab992
PB
14088.PHONY: maybe-dvi-mmalloc dvi-mmalloc
14089maybe-dvi-mmalloc:
14090@if mmalloc
14091maybe-dvi-mmalloc: dvi-mmalloc
295f4e42 14092
d32ab992
PB
14093dvi-mmalloc: \
14094 configure-mmalloc
14095 @[ -f ./mmalloc/Makefile ] || exit 0; \
295f4e42
NN
14096 r=`${PWD_COMMAND}`; export r; \
14097 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14098 $(SET_LIB_PATH) \
4fc4dd12 14099 $(HOST_EXPORTS) \
d32ab992 14100 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
14101 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14102 done; \
d32ab992
PB
14103 echo "Doing dvi in mmalloc" ; \
14104 (cd mmalloc && \
295f4e42
NN
14105 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14106 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14107 "RANLIB=$${RANLIB}" \
14108 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14109 dvi) \
295f4e42
NN
14110 || exit 1
14111
d32ab992 14112@endif mmalloc
295f4e42 14113
d32ab992
PB
14114.PHONY: maybe-TAGS-mmalloc TAGS-mmalloc
14115maybe-TAGS-mmalloc:
14116@if mmalloc
14117maybe-TAGS-mmalloc: TAGS-mmalloc
295f4e42 14118
d32ab992
PB
14119TAGS-mmalloc: \
14120 configure-mmalloc
14121 @[ -f ./mmalloc/Makefile ] || exit 0; \
295f4e42
NN
14122 r=`${PWD_COMMAND}`; export r; \
14123 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14124 $(SET_LIB_PATH) \
4fc4dd12 14125 $(HOST_EXPORTS) \
d32ab992 14126 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
14127 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14128 done; \
d32ab992
PB
14129 echo "Doing TAGS in mmalloc" ; \
14130 (cd mmalloc && \
295f4e42
NN
14131 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14132 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14133 "RANLIB=$${RANLIB}" \
14134 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14135 TAGS) \
295f4e42
NN
14136 || exit 1
14137
d32ab992 14138@endif mmalloc
295f4e42 14139
d32ab992
PB
14140.PHONY: maybe-install-info-mmalloc install-info-mmalloc
14141maybe-install-info-mmalloc:
14142@if mmalloc
14143maybe-install-info-mmalloc: install-info-mmalloc
295f4e42 14144
d32ab992
PB
14145install-info-mmalloc: \
14146 configure-mmalloc \
14147 info-mmalloc
14148 @[ -f ./mmalloc/Makefile ] || exit 0; \
295f4e42
NN
14149 r=`${PWD_COMMAND}`; export r; \
14150 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14151 $(SET_LIB_PATH) \
4fc4dd12 14152 $(HOST_EXPORTS) \
d32ab992 14153 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
14154 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14155 done; \
d32ab992
PB
14156 echo "Doing install-info in mmalloc" ; \
14157 (cd mmalloc && \
295f4e42
NN
14158 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14159 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14160 "RANLIB=$${RANLIB}" \
14161 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14162 install-info) \
295f4e42
NN
14163 || exit 1
14164
d32ab992 14165@endif mmalloc
295f4e42 14166
d32ab992
PB
14167.PHONY: maybe-installcheck-mmalloc installcheck-mmalloc
14168maybe-installcheck-mmalloc:
14169@if mmalloc
14170maybe-installcheck-mmalloc: installcheck-mmalloc
295f4e42 14171
d32ab992
PB
14172installcheck-mmalloc: \
14173 configure-mmalloc
14174 @[ -f ./mmalloc/Makefile ] || exit 0; \
295f4e42
NN
14175 r=`${PWD_COMMAND}`; export r; \
14176 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14177 $(SET_LIB_PATH) \
4fc4dd12 14178 $(HOST_EXPORTS) \
d32ab992 14179 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
14180 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14181 done; \
d32ab992
PB
14182 echo "Doing installcheck in mmalloc" ; \
14183 (cd mmalloc && \
295f4e42
NN
14184 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14185 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14186 "RANLIB=$${RANLIB}" \
14187 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14188 installcheck) \
295f4e42
NN
14189 || exit 1
14190
d32ab992 14191@endif mmalloc
295f4e42 14192
d32ab992
PB
14193.PHONY: maybe-mostlyclean-mmalloc mostlyclean-mmalloc
14194maybe-mostlyclean-mmalloc:
14195@if mmalloc
14196maybe-mostlyclean-mmalloc: mostlyclean-mmalloc
295f4e42 14197
d32ab992
PB
14198mostlyclean-mmalloc:
14199 @[ -f ./mmalloc/Makefile ] || exit 0; \
295f4e42
NN
14200 r=`${PWD_COMMAND}`; export r; \
14201 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14202 $(SET_LIB_PATH) \
4fc4dd12 14203 $(HOST_EXPORTS) \
d32ab992 14204 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
14205 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14206 done; \
d32ab992
PB
14207 echo "Doing mostlyclean in mmalloc" ; \
14208 (cd mmalloc && \
295f4e42
NN
14209 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14210 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14211 "RANLIB=$${RANLIB}" \
14212 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14213 mostlyclean) \
295f4e42
NN
14214 || exit 1
14215
d32ab992 14216@endif mmalloc
295f4e42 14217
d32ab992
PB
14218.PHONY: maybe-clean-mmalloc clean-mmalloc
14219maybe-clean-mmalloc:
14220@if mmalloc
14221maybe-clean-mmalloc: clean-mmalloc
295f4e42 14222
d32ab992
PB
14223clean-mmalloc:
14224 @[ -f ./mmalloc/Makefile ] || exit 0; \
295f4e42
NN
14225 r=`${PWD_COMMAND}`; export r; \
14226 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14227 $(SET_LIB_PATH) \
4fc4dd12 14228 $(HOST_EXPORTS) \
d32ab992 14229 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
14230 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14231 done; \
d32ab992
PB
14232 echo "Doing clean in mmalloc" ; \
14233 (cd mmalloc && \
295f4e42
NN
14234 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14235 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14236 "RANLIB=$${RANLIB}" \
14237 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14238 clean) \
295f4e42
NN
14239 || exit 1
14240
d32ab992 14241@endif mmalloc
295f4e42 14242
d32ab992
PB
14243.PHONY: maybe-distclean-mmalloc distclean-mmalloc
14244maybe-distclean-mmalloc:
14245@if mmalloc
14246maybe-distclean-mmalloc: distclean-mmalloc
295f4e42 14247
d32ab992
PB
14248distclean-mmalloc:
14249 @[ -f ./mmalloc/Makefile ] || exit 0; \
295f4e42
NN
14250 r=`${PWD_COMMAND}`; export r; \
14251 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14252 $(SET_LIB_PATH) \
4fc4dd12 14253 $(HOST_EXPORTS) \
d32ab992 14254 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
14255 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14256 done; \
d32ab992
PB
14257 echo "Doing distclean in mmalloc" ; \
14258 (cd mmalloc && \
295f4e42
NN
14259 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14260 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14261 "RANLIB=$${RANLIB}" \
14262 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14263 distclean) \
295f4e42
NN
14264 || exit 1
14265
d32ab992 14266@endif mmalloc
295f4e42 14267
d32ab992
PB
14268.PHONY: maybe-maintainer-clean-mmalloc maintainer-clean-mmalloc
14269maybe-maintainer-clean-mmalloc:
14270@if mmalloc
14271maybe-maintainer-clean-mmalloc: maintainer-clean-mmalloc
295f4e42 14272
d32ab992
PB
14273maintainer-clean-mmalloc:
14274 @[ -f ./mmalloc/Makefile ] || exit 0; \
295f4e42
NN
14275 r=`${PWD_COMMAND}`; export r; \
14276 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14277 $(SET_LIB_PATH) \
4fc4dd12 14278 $(HOST_EXPORTS) \
d32ab992 14279 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
14280 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14281 done; \
d32ab992
PB
14282 echo "Doing maintainer-clean in mmalloc" ; \
14283 (cd mmalloc && \
295f4e42
NN
14284 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14285 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14286 "RANLIB=$${RANLIB}" \
14287 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14288 maintainer-clean) \
295f4e42 14289 || exit 1
4977bab6 14290
d32ab992 14291@endif mmalloc
4977bab6 14292
295f4e42 14293
d32ab992
PB
14294.PHONY: configure-patch maybe-configure-patch
14295maybe-configure-patch:
14296@if patch
14297maybe-configure-patch: configure-patch
14298configure-patch:
14299 @test ! -f patch/Makefile || exit 0; \
14300 [ -d patch ] || mkdir patch; \
8c90b13a
L
14301 r=`${PWD_COMMAND}`; export r; \
14302 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14303 $(HOST_EXPORTS) \
d32ab992
PB
14304 echo Configuring in patch; \
14305 cd patch || exit 1; \
4977bab6
ZW
14306 case $(srcdir) in \
14307 \.) \
14308 srcdiroption="--srcdir=."; \
14309 libsrcdir=".";; \
14310 /* | [A-Za-z]:[\\/]*) \
d32ab992
PB
14311 srcdiroption="--srcdir=$(srcdir)/patch"; \
14312 libsrcdir="$$s/patch";; \
4977bab6 14313 *) \
d32ab992
PB
14314 srcdiroption="--srcdir=../$(srcdir)/patch"; \
14315 libsrcdir="$$s/patch";; \
4977bab6
ZW
14316 esac; \
14317 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 14318 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 14319 || exit 1
d32ab992 14320@endif patch
4977bab6 14321
d32ab992
PB
14322.PHONY: all-patch maybe-all-patch
14323maybe-all-patch:
14324@if patch
14325maybe-all-patch: all-patch
14326all-patch: configure-patch
8c90b13a
L
14327 @r=`${PWD_COMMAND}`; export r; \
14328 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 14329 $(SET_LIB_PATH) \
4fc4dd12 14330 $(HOST_EXPORTS) \
d32ab992
PB
14331 (cd patch && $(MAKE) $(FLAGS_TO_PASS) all)
14332@endif patch
4977bab6 14333
d32ab992
PB
14334.PHONY: check-patch maybe-check-patch
14335maybe-check-patch:
14336@if patch
14337maybe-check-patch: check-patch
4977bab6 14338
d32ab992 14339check-patch:
8c90b13a
L
14340 @r=`${PWD_COMMAND}`; export r; \
14341 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 14342 $(SET_LIB_PATH) \
4fc4dd12 14343 $(HOST_EXPORTS) \
7c27e184 14344 (cd patch && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 14345
d32ab992 14346@endif patch
4977bab6 14347
d32ab992
PB
14348.PHONY: install-patch maybe-install-patch
14349maybe-install-patch:
14350@if patch
14351maybe-install-patch: install-patch
295f4e42 14352
d32ab992 14353install-patch: installdirs
295f4e42
NN
14354 @r=`${PWD_COMMAND}`; export r; \
14355 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14356 $(SET_LIB_PATH) \
4fc4dd12 14357 $(HOST_EXPORTS) \
7c27e184 14358 (cd patch && $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 14359
d32ab992 14360@endif patch
295f4e42
NN
14361
14362# Other targets (info, dvi, etc.)
14363
d32ab992
PB
14364.PHONY: maybe-info-patch info-patch
14365maybe-info-patch:
14366@if patch
14367maybe-info-patch: info-patch
295f4e42 14368
d32ab992
PB
14369info-patch: \
14370 configure-patch
14371 @[ -f ./patch/Makefile ] || exit 0; \
295f4e42
NN
14372 r=`${PWD_COMMAND}`; export r; \
14373 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14374 $(SET_LIB_PATH) \
4fc4dd12 14375 $(HOST_EXPORTS) \
d32ab992 14376 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
14377 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14378 done; \
d32ab992
PB
14379 echo "Doing info in patch" ; \
14380 (cd patch && \
295f4e42
NN
14381 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14382 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14383 "RANLIB=$${RANLIB}" \
14384 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14385 info) \
295f4e42
NN
14386 || exit 1
14387
d32ab992 14388@endif patch
295f4e42 14389
d32ab992
PB
14390.PHONY: maybe-dvi-patch dvi-patch
14391maybe-dvi-patch:
14392@if patch
14393maybe-dvi-patch: dvi-patch
295f4e42 14394
d32ab992
PB
14395dvi-patch: \
14396 configure-patch
14397 @[ -f ./patch/Makefile ] || exit 0; \
295f4e42
NN
14398 r=`${PWD_COMMAND}`; export r; \
14399 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14400 $(SET_LIB_PATH) \
4fc4dd12 14401 $(HOST_EXPORTS) \
d32ab992 14402 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
14403 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14404 done; \
d32ab992
PB
14405 echo "Doing dvi in patch" ; \
14406 (cd patch && \
295f4e42
NN
14407 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14408 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14409 "RANLIB=$${RANLIB}" \
14410 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14411 dvi) \
295f4e42
NN
14412 || exit 1
14413
d32ab992 14414@endif patch
295f4e42 14415
d32ab992
PB
14416.PHONY: maybe-TAGS-patch TAGS-patch
14417maybe-TAGS-patch:
14418@if patch
14419maybe-TAGS-patch: TAGS-patch
295f4e42 14420
d32ab992
PB
14421TAGS-patch: \
14422 configure-patch
14423 @[ -f ./patch/Makefile ] || exit 0; \
295f4e42
NN
14424 r=`${PWD_COMMAND}`; export r; \
14425 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14426 $(SET_LIB_PATH) \
4fc4dd12 14427 $(HOST_EXPORTS) \
d32ab992 14428 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
14429 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14430 done; \
d32ab992
PB
14431 echo "Doing TAGS in patch" ; \
14432 (cd patch && \
295f4e42
NN
14433 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14434 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14435 "RANLIB=$${RANLIB}" \
14436 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14437 TAGS) \
295f4e42
NN
14438 || exit 1
14439
d32ab992 14440@endif patch
295f4e42 14441
d32ab992
PB
14442.PHONY: maybe-install-info-patch install-info-patch
14443maybe-install-info-patch:
14444@if patch
14445maybe-install-info-patch: install-info-patch
295f4e42 14446
d32ab992
PB
14447install-info-patch: \
14448 configure-patch \
14449 info-patch
14450 @[ -f ./patch/Makefile ] || exit 0; \
295f4e42
NN
14451 r=`${PWD_COMMAND}`; export r; \
14452 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14453 $(SET_LIB_PATH) \
4fc4dd12 14454 $(HOST_EXPORTS) \
d32ab992 14455 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
14456 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14457 done; \
d32ab992
PB
14458 echo "Doing install-info in patch" ; \
14459 (cd patch && \
295f4e42
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}" \
d32ab992 14464 install-info) \
295f4e42
NN
14465 || exit 1
14466
d32ab992 14467@endif patch
295f4e42 14468
d32ab992
PB
14469.PHONY: maybe-installcheck-patch installcheck-patch
14470maybe-installcheck-patch:
14471@if patch
14472maybe-installcheck-patch: installcheck-patch
295f4e42 14473
d32ab992
PB
14474installcheck-patch: \
14475 configure-patch
14476 @[ -f ./patch/Makefile ] || exit 0; \
295f4e42
NN
14477 r=`${PWD_COMMAND}`; export r; \
14478 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14479 $(SET_LIB_PATH) \
4fc4dd12 14480 $(HOST_EXPORTS) \
d32ab992 14481 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
14482 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14483 done; \
d32ab992
PB
14484 echo "Doing installcheck in patch" ; \
14485 (cd patch && \
295f4e42
NN
14486 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14487 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14488 "RANLIB=$${RANLIB}" \
14489 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14490 installcheck) \
295f4e42
NN
14491 || exit 1
14492
d32ab992 14493@endif patch
295f4e42 14494
d32ab992
PB
14495.PHONY: maybe-mostlyclean-patch mostlyclean-patch
14496maybe-mostlyclean-patch:
14497@if patch
14498maybe-mostlyclean-patch: mostlyclean-patch
295f4e42 14499
d32ab992
PB
14500mostlyclean-patch:
14501 @[ -f ./patch/Makefile ] || exit 0; \
295f4e42
NN
14502 r=`${PWD_COMMAND}`; export r; \
14503 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14504 $(SET_LIB_PATH) \
4fc4dd12 14505 $(HOST_EXPORTS) \
d32ab992 14506 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
14507 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14508 done; \
d32ab992
PB
14509 echo "Doing mostlyclean in patch" ; \
14510 (cd patch && \
295f4e42
NN
14511 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14512 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14513 "RANLIB=$${RANLIB}" \
14514 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14515 mostlyclean) \
295f4e42
NN
14516 || exit 1
14517
d32ab992 14518@endif patch
295f4e42 14519
d32ab992
PB
14520.PHONY: maybe-clean-patch clean-patch
14521maybe-clean-patch:
14522@if patch
14523maybe-clean-patch: clean-patch
295f4e42 14524
d32ab992
PB
14525clean-patch:
14526 @[ -f ./patch/Makefile ] || exit 0; \
295f4e42
NN
14527 r=`${PWD_COMMAND}`; export r; \
14528 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14529 $(SET_LIB_PATH) \
4fc4dd12 14530 $(HOST_EXPORTS) \
d32ab992 14531 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
14532 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14533 done; \
d32ab992
PB
14534 echo "Doing clean in patch" ; \
14535 (cd patch && \
295f4e42
NN
14536 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14537 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14538 "RANLIB=$${RANLIB}" \
14539 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14540 clean) \
295f4e42
NN
14541 || exit 1
14542
d32ab992 14543@endif patch
295f4e42 14544
d32ab992
PB
14545.PHONY: maybe-distclean-patch distclean-patch
14546maybe-distclean-patch:
14547@if patch
14548maybe-distclean-patch: distclean-patch
295f4e42 14549
d32ab992
PB
14550distclean-patch:
14551 @[ -f ./patch/Makefile ] || exit 0; \
295f4e42
NN
14552 r=`${PWD_COMMAND}`; export r; \
14553 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14554 $(SET_LIB_PATH) \
4fc4dd12 14555 $(HOST_EXPORTS) \
d32ab992 14556 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
14557 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14558 done; \
d32ab992
PB
14559 echo "Doing distclean in patch" ; \
14560 (cd patch && \
295f4e42
NN
14561 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14562 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14563 "RANLIB=$${RANLIB}" \
14564 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14565 distclean) \
295f4e42
NN
14566 || exit 1
14567
d32ab992 14568@endif patch
295f4e42 14569
d32ab992
PB
14570.PHONY: maybe-maintainer-clean-patch maintainer-clean-patch
14571maybe-maintainer-clean-patch:
14572@if patch
14573maybe-maintainer-clean-patch: maintainer-clean-patch
295f4e42 14574
d32ab992
PB
14575maintainer-clean-patch:
14576 @[ -f ./patch/Makefile ] || exit 0; \
295f4e42
NN
14577 r=`${PWD_COMMAND}`; export r; \
14578 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14579 $(SET_LIB_PATH) \
4fc4dd12 14580 $(HOST_EXPORTS) \
d32ab992 14581 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
14582 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14583 done; \
d32ab992
PB
14584 echo "Doing maintainer-clean in patch" ; \
14585 (cd patch && \
295f4e42
NN
14586 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14587 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14588 "RANLIB=$${RANLIB}" \
14589 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14590 maintainer-clean) \
295f4e42 14591 || exit 1
7e2dbcef 14592
d32ab992 14593@endif patch
4977bab6
ZW
14594
14595
d32ab992
PB
14596.PHONY: configure-perl maybe-configure-perl
14597maybe-configure-perl:
14598@if perl
14599maybe-configure-perl: configure-perl
14600configure-perl:
14601 @test ! -f perl/Makefile || exit 0; \
14602 [ -d perl ] || mkdir perl; \
8c90b13a
L
14603 r=`${PWD_COMMAND}`; export r; \
14604 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14605 $(HOST_EXPORTS) \
d32ab992
PB
14606 echo Configuring in perl; \
14607 cd perl || exit 1; \
4977bab6
ZW
14608 case $(srcdir) in \
14609 \.) \
14610 srcdiroption="--srcdir=."; \
14611 libsrcdir=".";; \
14612 /* | [A-Za-z]:[\\/]*) \
d32ab992
PB
14613 srcdiroption="--srcdir=$(srcdir)/perl"; \
14614 libsrcdir="$$s/perl";; \
4977bab6 14615 *) \
d32ab992
PB
14616 srcdiroption="--srcdir=../$(srcdir)/perl"; \
14617 libsrcdir="$$s/perl";; \
4977bab6
ZW
14618 esac; \
14619 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 14620 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 14621 || exit 1
d32ab992 14622@endif perl
4977bab6 14623
d32ab992
PB
14624.PHONY: all-perl maybe-all-perl
14625maybe-all-perl:
14626@if perl
14627maybe-all-perl: all-perl
14628all-perl: configure-perl
8c90b13a
L
14629 @r=`${PWD_COMMAND}`; export r; \
14630 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 14631 $(SET_LIB_PATH) \
4fc4dd12 14632 $(HOST_EXPORTS) \
d32ab992
PB
14633 (cd perl && $(MAKE) $(FLAGS_TO_PASS) all)
14634@endif perl
4977bab6 14635
d32ab992
PB
14636.PHONY: check-perl maybe-check-perl
14637maybe-check-perl:
14638@if perl
14639maybe-check-perl: check-perl
4977bab6 14640
d32ab992 14641check-perl:
8c90b13a
L
14642 @r=`${PWD_COMMAND}`; export r; \
14643 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 14644 $(SET_LIB_PATH) \
4fc4dd12 14645 $(HOST_EXPORTS) \
7c27e184 14646 (cd perl && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 14647
d32ab992 14648@endif perl
4977bab6 14649
d32ab992
PB
14650.PHONY: install-perl maybe-install-perl
14651maybe-install-perl:
14652@if perl
14653maybe-install-perl: install-perl
7e2dbcef 14654
d32ab992 14655install-perl: installdirs
8c90b13a
L
14656 @r=`${PWD_COMMAND}`; export r; \
14657 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 14658 $(SET_LIB_PATH) \
4fc4dd12 14659 $(HOST_EXPORTS) \
7c27e184 14660 (cd perl && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6 14661
d32ab992 14662@endif perl
4977bab6 14663
295f4e42
NN
14664# Other targets (info, dvi, etc.)
14665
d32ab992
PB
14666.PHONY: maybe-info-perl info-perl
14667maybe-info-perl:
14668@if perl
14669maybe-info-perl: info-perl
295f4e42 14670
d32ab992
PB
14671info-perl: \
14672 configure-perl
14673 @[ -f ./perl/Makefile ] || exit 0; \
295f4e42
NN
14674 r=`${PWD_COMMAND}`; export r; \
14675 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14676 $(SET_LIB_PATH) \
4fc4dd12 14677 $(HOST_EXPORTS) \
d32ab992 14678 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
14679 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14680 done; \
d32ab992
PB
14681 echo "Doing info in perl" ; \
14682 (cd perl && \
295f4e42
NN
14683 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14684 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14685 "RANLIB=$${RANLIB}" \
14686 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14687 info) \
295f4e42
NN
14688 || exit 1
14689
d32ab992 14690@endif perl
295f4e42 14691
d32ab992
PB
14692.PHONY: maybe-dvi-perl dvi-perl
14693maybe-dvi-perl:
14694@if perl
14695maybe-dvi-perl: dvi-perl
295f4e42 14696
d32ab992
PB
14697dvi-perl: \
14698 configure-perl
14699 @[ -f ./perl/Makefile ] || exit 0; \
295f4e42
NN
14700 r=`${PWD_COMMAND}`; export r; \
14701 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14702 $(SET_LIB_PATH) \
4fc4dd12 14703 $(HOST_EXPORTS) \
d32ab992 14704 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
14705 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14706 done; \
d32ab992
PB
14707 echo "Doing dvi in perl" ; \
14708 (cd perl && \
295f4e42
NN
14709 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14710 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14711 "RANLIB=$${RANLIB}" \
14712 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14713 dvi) \
295f4e42
NN
14714 || exit 1
14715
d32ab992 14716@endif perl
295f4e42 14717
d32ab992
PB
14718.PHONY: maybe-TAGS-perl TAGS-perl
14719maybe-TAGS-perl:
14720@if perl
14721maybe-TAGS-perl: TAGS-perl
295f4e42 14722
d32ab992
PB
14723TAGS-perl: \
14724 configure-perl
14725 @[ -f ./perl/Makefile ] || exit 0; \
295f4e42
NN
14726 r=`${PWD_COMMAND}`; export r; \
14727 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14728 $(SET_LIB_PATH) \
4fc4dd12 14729 $(HOST_EXPORTS) \
d32ab992 14730 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
14731 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14732 done; \
d32ab992
PB
14733 echo "Doing TAGS in perl" ; \
14734 (cd perl && \
295f4e42
NN
14735 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14736 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14737 "RANLIB=$${RANLIB}" \
14738 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14739 TAGS) \
295f4e42
NN
14740 || exit 1
14741
d32ab992 14742@endif perl
295f4e42 14743
d32ab992
PB
14744.PHONY: maybe-install-info-perl install-info-perl
14745maybe-install-info-perl:
14746@if perl
14747maybe-install-info-perl: install-info-perl
295f4e42 14748
d32ab992
PB
14749install-info-perl: \
14750 configure-perl \
14751 info-perl
14752 @[ -f ./perl/Makefile ] || exit 0; \
295f4e42
NN
14753 r=`${PWD_COMMAND}`; export r; \
14754 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14755 $(SET_LIB_PATH) \
4fc4dd12 14756 $(HOST_EXPORTS) \
d32ab992 14757 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
14758 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14759 done; \
d32ab992
PB
14760 echo "Doing install-info in perl" ; \
14761 (cd perl && \
295f4e42
NN
14762 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14763 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14764 "RANLIB=$${RANLIB}" \
14765 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14766 install-info) \
295f4e42
NN
14767 || exit 1
14768
d32ab992 14769@endif perl
295f4e42 14770
d32ab992
PB
14771.PHONY: maybe-installcheck-perl installcheck-perl
14772maybe-installcheck-perl:
14773@if perl
14774maybe-installcheck-perl: installcheck-perl
295f4e42 14775
d32ab992
PB
14776installcheck-perl: \
14777 configure-perl
14778 @[ -f ./perl/Makefile ] || exit 0; \
295f4e42
NN
14779 r=`${PWD_COMMAND}`; export r; \
14780 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14781 $(SET_LIB_PATH) \
4fc4dd12 14782 $(HOST_EXPORTS) \
d32ab992 14783 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
14784 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14785 done; \
d32ab992
PB
14786 echo "Doing installcheck in perl" ; \
14787 (cd perl && \
295f4e42
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}" \
d32ab992 14792 installcheck) \
295f4e42
NN
14793 || exit 1
14794
d32ab992 14795@endif perl
295f4e42 14796
d32ab992
PB
14797.PHONY: maybe-mostlyclean-perl mostlyclean-perl
14798maybe-mostlyclean-perl:
14799@if perl
14800maybe-mostlyclean-perl: mostlyclean-perl
295f4e42 14801
d32ab992
PB
14802mostlyclean-perl:
14803 @[ -f ./perl/Makefile ] || exit 0; \
295f4e42
NN
14804 r=`${PWD_COMMAND}`; export r; \
14805 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14806 $(SET_LIB_PATH) \
4fc4dd12 14807 $(HOST_EXPORTS) \
d32ab992 14808 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
14809 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14810 done; \
d32ab992
PB
14811 echo "Doing mostlyclean in perl" ; \
14812 (cd perl && \
295f4e42
NN
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}" \
d32ab992 14817 mostlyclean) \
295f4e42
NN
14818 || exit 1
14819
d32ab992 14820@endif perl
295f4e42 14821
d32ab992
PB
14822.PHONY: maybe-clean-perl clean-perl
14823maybe-clean-perl:
14824@if perl
14825maybe-clean-perl: clean-perl
295f4e42 14826
d32ab992
PB
14827clean-perl:
14828 @[ -f ./perl/Makefile ] || exit 0; \
295f4e42
NN
14829 r=`${PWD_COMMAND}`; export r; \
14830 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14831 $(SET_LIB_PATH) \
4fc4dd12 14832 $(HOST_EXPORTS) \
d32ab992 14833 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
14834 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14835 done; \
d32ab992
PB
14836 echo "Doing clean in perl" ; \
14837 (cd perl && \
295f4e42
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}" \
d32ab992 14842 clean) \
295f4e42
NN
14843 || exit 1
14844
d32ab992 14845@endif perl
295f4e42 14846
d32ab992
PB
14847.PHONY: maybe-distclean-perl distclean-perl
14848maybe-distclean-perl:
14849@if perl
14850maybe-distclean-perl: distclean-perl
295f4e42 14851
d32ab992
PB
14852distclean-perl:
14853 @[ -f ./perl/Makefile ] || exit 0; \
295f4e42
NN
14854 r=`${PWD_COMMAND}`; export r; \
14855 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14856 $(SET_LIB_PATH) \
4fc4dd12 14857 $(HOST_EXPORTS) \
d32ab992 14858 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
14859 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14860 done; \
d32ab992
PB
14861 echo "Doing distclean in perl" ; \
14862 (cd perl && \
295f4e42
NN
14863 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14864 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14865 "RANLIB=$${RANLIB}" \
14866 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14867 distclean) \
295f4e42
NN
14868 || exit 1
14869
d32ab992 14870@endif perl
295f4e42 14871
d32ab992
PB
14872.PHONY: maybe-maintainer-clean-perl maintainer-clean-perl
14873maybe-maintainer-clean-perl:
14874@if perl
14875maybe-maintainer-clean-perl: maintainer-clean-perl
295f4e42 14876
d32ab992
PB
14877maintainer-clean-perl:
14878 @[ -f ./perl/Makefile ] || exit 0; \
295f4e42
NN
14879 r=`${PWD_COMMAND}`; export r; \
14880 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14881 $(SET_LIB_PATH) \
4fc4dd12 14882 $(HOST_EXPORTS) \
d32ab992 14883 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
14884 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14885 done; \
d32ab992
PB
14886 echo "Doing maintainer-clean in perl" ; \
14887 (cd perl && \
295f4e42
NN
14888 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14889 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14890 "RANLIB=$${RANLIB}" \
14891 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14892 maintainer-clean) \
295f4e42
NN
14893 || exit 1
14894
d32ab992 14895@endif perl
295f4e42
NN
14896
14897
d32ab992
PB
14898.PHONY: configure-prms maybe-configure-prms
14899maybe-configure-prms:
14900@if prms
14901maybe-configure-prms: configure-prms
14902configure-prms:
14903 @test ! -f prms/Makefile || exit 0; \
14904 [ -d prms ] || mkdir prms; \
8c90b13a
L
14905 r=`${PWD_COMMAND}`; export r; \
14906 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14907 $(HOST_EXPORTS) \
d32ab992
PB
14908 echo Configuring in prms; \
14909 cd prms || exit 1; \
4977bab6
ZW
14910 case $(srcdir) in \
14911 \.) \
14912 srcdiroption="--srcdir=."; \
14913 libsrcdir=".";; \
14914 /* | [A-Za-z]:[\\/]*) \
d32ab992
PB
14915 srcdiroption="--srcdir=$(srcdir)/prms"; \
14916 libsrcdir="$$s/prms";; \
4977bab6 14917 *) \
d32ab992
PB
14918 srcdiroption="--srcdir=../$(srcdir)/prms"; \
14919 libsrcdir="$$s/prms";; \
4977bab6
ZW
14920 esac; \
14921 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 14922 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 14923 || exit 1
d32ab992 14924@endif prms
4977bab6 14925
d32ab992
PB
14926.PHONY: all-prms maybe-all-prms
14927maybe-all-prms:
14928@if prms
14929maybe-all-prms: all-prms
14930all-prms: configure-prms
8c90b13a
L
14931 @r=`${PWD_COMMAND}`; export r; \
14932 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 14933 $(SET_LIB_PATH) \
4fc4dd12 14934 $(HOST_EXPORTS) \
d32ab992
PB
14935 (cd prms && $(MAKE) $(FLAGS_TO_PASS) all)
14936@endif prms
4977bab6 14937
d32ab992
PB
14938.PHONY: check-prms maybe-check-prms
14939maybe-check-prms:
14940@if prms
14941maybe-check-prms: check-prms
4977bab6 14942
d32ab992 14943check-prms:
8c90b13a
L
14944 @r=`${PWD_COMMAND}`; export r; \
14945 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 14946 $(SET_LIB_PATH) \
4fc4dd12 14947 $(HOST_EXPORTS) \
7c27e184 14948 (cd prms && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 14949
d32ab992 14950@endif prms
4977bab6 14951
d32ab992
PB
14952.PHONY: install-prms maybe-install-prms
14953maybe-install-prms:
14954@if prms
14955maybe-install-prms: install-prms
7e2dbcef 14956
d32ab992 14957install-prms: installdirs
8c90b13a
L
14958 @r=`${PWD_COMMAND}`; export r; \
14959 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 14960 $(SET_LIB_PATH) \
4fc4dd12 14961 $(HOST_EXPORTS) \
7c27e184 14962 (cd prms && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6 14963
d32ab992 14964@endif prms
4977bab6 14965
295f4e42
NN
14966# Other targets (info, dvi, etc.)
14967
d32ab992
PB
14968.PHONY: maybe-info-prms info-prms
14969maybe-info-prms:
14970@if prms
14971maybe-info-prms: info-prms
295f4e42 14972
d32ab992
PB
14973info-prms: \
14974 configure-prms
14975 @[ -f ./prms/Makefile ] || exit 0; \
8c90b13a
L
14976 r=`${PWD_COMMAND}`; export r; \
14977 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
295f4e42 14978 $(SET_LIB_PATH) \
4fc4dd12 14979 $(HOST_EXPORTS) \
d32ab992 14980 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
14981 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14982 done; \
d32ab992
PB
14983 echo "Doing info in prms" ; \
14984 (cd prms && \
295f4e42
NN
14985 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14986 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14987 "RANLIB=$${RANLIB}" \
14988 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14989 info) \
4977bab6
ZW
14990 || exit 1
14991
d32ab992 14992@endif prms
295f4e42 14993
d32ab992
PB
14994.PHONY: maybe-dvi-prms dvi-prms
14995maybe-dvi-prms:
14996@if prms
14997maybe-dvi-prms: dvi-prms
295f4e42 14998
d32ab992
PB
14999dvi-prms: \
15000 configure-prms
15001 @[ -f ./prms/Makefile ] || exit 0; \
295f4e42 15002 r=`${PWD_COMMAND}`; export r; \
8c90b13a 15003 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 15004 $(SET_LIB_PATH) \
4fc4dd12 15005 $(HOST_EXPORTS) \
d32ab992 15006 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
15007 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15008 done; \
d32ab992
PB
15009 echo "Doing dvi in prms" ; \
15010 (cd prms && \
295f4e42
NN
15011 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15012 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15013 "RANLIB=$${RANLIB}" \
15014 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15015 dvi) \
295f4e42 15016 || exit 1
4977bab6 15017
d32ab992 15018@endif prms
4977bab6 15019
d32ab992
PB
15020.PHONY: maybe-TAGS-prms TAGS-prms
15021maybe-TAGS-prms:
15022@if prms
15023maybe-TAGS-prms: TAGS-prms
295f4e42 15024
d32ab992
PB
15025TAGS-prms: \
15026 configure-prms
15027 @[ -f ./prms/Makefile ] || exit 0; \
295f4e42 15028 r=`${PWD_COMMAND}`; export r; \
8c90b13a 15029 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 15030 $(SET_LIB_PATH) \
4fc4dd12 15031 $(HOST_EXPORTS) \
d32ab992 15032 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
15033 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15034 done; \
d32ab992
PB
15035 echo "Doing TAGS in prms" ; \
15036 (cd prms && \
295f4e42
NN
15037 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15038 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15039 "RANLIB=$${RANLIB}" \
15040 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15041 TAGS) \
295f4e42 15042 || exit 1
4977bab6 15043
d32ab992 15044@endif prms
4977bab6 15045
d32ab992
PB
15046.PHONY: maybe-install-info-prms install-info-prms
15047maybe-install-info-prms:
15048@if prms
15049maybe-install-info-prms: install-info-prms
7e2dbcef 15050
d32ab992
PB
15051install-info-prms: \
15052 configure-prms \
15053 info-prms
15054 @[ -f ./prms/Makefile ] || exit 0; \
295f4e42
NN
15055 r=`${PWD_COMMAND}`; export r; \
15056 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15057 $(SET_LIB_PATH) \
4fc4dd12 15058 $(HOST_EXPORTS) \
d32ab992 15059 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
15060 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15061 done; \
d32ab992
PB
15062 echo "Doing install-info in prms" ; \
15063 (cd prms && \
295f4e42
NN
15064 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15065 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15066 "RANLIB=$${RANLIB}" \
15067 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15068 install-info) \
295f4e42
NN
15069 || exit 1
15070
d32ab992 15071@endif prms
295f4e42 15072
d32ab992
PB
15073.PHONY: maybe-installcheck-prms installcheck-prms
15074maybe-installcheck-prms:
15075@if prms
15076maybe-installcheck-prms: installcheck-prms
295f4e42 15077
d32ab992
PB
15078installcheck-prms: \
15079 configure-prms
15080 @[ -f ./prms/Makefile ] || exit 0; \
295f4e42
NN
15081 r=`${PWD_COMMAND}`; export r; \
15082 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15083 $(SET_LIB_PATH) \
4fc4dd12 15084 $(HOST_EXPORTS) \
d32ab992 15085 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
15086 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15087 done; \
d32ab992
PB
15088 echo "Doing installcheck in prms" ; \
15089 (cd prms && \
295f4e42
NN
15090 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15091 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15092 "RANLIB=$${RANLIB}" \
15093 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15094 installcheck) \
295f4e42
NN
15095 || exit 1
15096
d32ab992 15097@endif prms
295f4e42 15098
d32ab992
PB
15099.PHONY: maybe-mostlyclean-prms mostlyclean-prms
15100maybe-mostlyclean-prms:
15101@if prms
15102maybe-mostlyclean-prms: mostlyclean-prms
295f4e42 15103
d32ab992
PB
15104mostlyclean-prms:
15105 @[ -f ./prms/Makefile ] || exit 0; \
295f4e42
NN
15106 r=`${PWD_COMMAND}`; export r; \
15107 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15108 $(SET_LIB_PATH) \
4fc4dd12 15109 $(HOST_EXPORTS) \
d32ab992 15110 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
15111 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15112 done; \
d32ab992
PB
15113 echo "Doing mostlyclean in prms" ; \
15114 (cd prms && \
295f4e42
NN
15115 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15116 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15117 "RANLIB=$${RANLIB}" \
15118 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15119 mostlyclean) \
295f4e42
NN
15120 || exit 1
15121
d32ab992 15122@endif prms
295f4e42 15123
d32ab992
PB
15124.PHONY: maybe-clean-prms clean-prms
15125maybe-clean-prms:
15126@if prms
15127maybe-clean-prms: clean-prms
295f4e42 15128
d32ab992
PB
15129clean-prms:
15130 @[ -f ./prms/Makefile ] || exit 0; \
295f4e42
NN
15131 r=`${PWD_COMMAND}`; export r; \
15132 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15133 $(SET_LIB_PATH) \
4fc4dd12 15134 $(HOST_EXPORTS) \
d32ab992 15135 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
15136 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15137 done; \
d32ab992
PB
15138 echo "Doing clean in prms" ; \
15139 (cd prms && \
295f4e42
NN
15140 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15141 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15142 "RANLIB=$${RANLIB}" \
15143 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15144 clean) \
295f4e42
NN
15145 || exit 1
15146
d32ab992 15147@endif prms
295f4e42 15148
d32ab992
PB
15149.PHONY: maybe-distclean-prms distclean-prms
15150maybe-distclean-prms:
15151@if prms
15152maybe-distclean-prms: distclean-prms
295f4e42 15153
d32ab992
PB
15154distclean-prms:
15155 @[ -f ./prms/Makefile ] || exit 0; \
295f4e42
NN
15156 r=`${PWD_COMMAND}`; export r; \
15157 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15158 $(SET_LIB_PATH) \
4fc4dd12 15159 $(HOST_EXPORTS) \
d32ab992 15160 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
15161 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15162 done; \
d32ab992
PB
15163 echo "Doing distclean in prms" ; \
15164 (cd prms && \
295f4e42
NN
15165 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15166 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15167 "RANLIB=$${RANLIB}" \
15168 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15169 distclean) \
295f4e42
NN
15170 || exit 1
15171
d32ab992 15172@endif prms
295f4e42 15173
d32ab992
PB
15174.PHONY: maybe-maintainer-clean-prms maintainer-clean-prms
15175maybe-maintainer-clean-prms:
15176@if prms
15177maybe-maintainer-clean-prms: maintainer-clean-prms
295f4e42 15178
d32ab992
PB
15179maintainer-clean-prms:
15180 @[ -f ./prms/Makefile ] || exit 0; \
295f4e42 15181 r=`${PWD_COMMAND}`; export r; \
8c90b13a 15182 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 15183 $(SET_LIB_PATH) \
4fc4dd12 15184 $(HOST_EXPORTS) \
d32ab992 15185 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
15186 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15187 done; \
d32ab992
PB
15188 echo "Doing maintainer-clean in prms" ; \
15189 (cd prms && \
295f4e42
NN
15190 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15191 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15192 "RANLIB=$${RANLIB}" \
15193 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15194 maintainer-clean) \
295f4e42 15195 || exit 1
4977bab6 15196
d32ab992 15197@endif prms
4977bab6 15198
295f4e42 15199
d32ab992
PB
15200.PHONY: configure-rcs maybe-configure-rcs
15201maybe-configure-rcs:
15202@if rcs
15203maybe-configure-rcs: configure-rcs
15204configure-rcs:
15205 @test ! -f rcs/Makefile || exit 0; \
15206 [ -d rcs ] || mkdir rcs; \
8c90b13a
L
15207 r=`${PWD_COMMAND}`; export r; \
15208 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15209 $(HOST_EXPORTS) \
d32ab992
PB
15210 echo Configuring in rcs; \
15211 cd rcs || exit 1; \
4977bab6
ZW
15212 case $(srcdir) in \
15213 \.) \
15214 srcdiroption="--srcdir=."; \
15215 libsrcdir=".";; \
15216 /* | [A-Za-z]:[\\/]*) \
d32ab992
PB
15217 srcdiroption="--srcdir=$(srcdir)/rcs"; \
15218 libsrcdir="$$s/rcs";; \
4977bab6 15219 *) \
d32ab992
PB
15220 srcdiroption="--srcdir=../$(srcdir)/rcs"; \
15221 libsrcdir="$$s/rcs";; \
4977bab6
ZW
15222 esac; \
15223 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 15224 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 15225 || exit 1
d32ab992 15226@endif rcs
4977bab6 15227
d32ab992
PB
15228.PHONY: all-rcs maybe-all-rcs
15229maybe-all-rcs:
15230@if rcs
15231maybe-all-rcs: all-rcs
15232all-rcs: configure-rcs
8c90b13a
L
15233 @r=`${PWD_COMMAND}`; export r; \
15234 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 15235 $(SET_LIB_PATH) \
4fc4dd12 15236 $(HOST_EXPORTS) \
d32ab992
PB
15237 (cd rcs && $(MAKE) $(FLAGS_TO_PASS) all)
15238@endif rcs
4977bab6 15239
d32ab992
PB
15240.PHONY: check-rcs maybe-check-rcs
15241maybe-check-rcs:
15242@if rcs
15243maybe-check-rcs: check-rcs
4977bab6 15244
d32ab992 15245check-rcs:
8c90b13a
L
15246 @r=`${PWD_COMMAND}`; export r; \
15247 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 15248 $(SET_LIB_PATH) \
4fc4dd12 15249 $(HOST_EXPORTS) \
7c27e184 15250 (cd rcs && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 15251
d32ab992 15252@endif rcs
4977bab6 15253
d32ab992
PB
15254.PHONY: install-rcs maybe-install-rcs
15255maybe-install-rcs:
15256@if rcs
15257maybe-install-rcs: install-rcs
295f4e42 15258
d32ab992 15259install-rcs: installdirs
295f4e42
NN
15260 @r=`${PWD_COMMAND}`; export r; \
15261 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15262 $(SET_LIB_PATH) \
4fc4dd12 15263 $(HOST_EXPORTS) \
7c27e184 15264 (cd rcs && $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 15265
d32ab992 15266@endif rcs
295f4e42
NN
15267
15268# Other targets (info, dvi, etc.)
15269
d32ab992
PB
15270.PHONY: maybe-info-rcs info-rcs
15271maybe-info-rcs:
15272@if rcs
15273maybe-info-rcs: info-rcs
295f4e42 15274
d32ab992
PB
15275info-rcs: \
15276 configure-rcs
15277 @[ -f ./rcs/Makefile ] || exit 0; \
295f4e42
NN
15278 r=`${PWD_COMMAND}`; export r; \
15279 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15280 $(SET_LIB_PATH) \
4fc4dd12 15281 $(HOST_EXPORTS) \
d32ab992 15282 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
15283 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15284 done; \
d32ab992
PB
15285 echo "Doing info in rcs" ; \
15286 (cd rcs && \
295f4e42
NN
15287 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15288 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15289 "RANLIB=$${RANLIB}" \
15290 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15291 info) \
295f4e42
NN
15292 || exit 1
15293
d32ab992 15294@endif rcs
295f4e42 15295
d32ab992
PB
15296.PHONY: maybe-dvi-rcs dvi-rcs
15297maybe-dvi-rcs:
15298@if rcs
15299maybe-dvi-rcs: dvi-rcs
295f4e42 15300
d32ab992
PB
15301dvi-rcs: \
15302 configure-rcs
15303 @[ -f ./rcs/Makefile ] || exit 0; \
295f4e42
NN
15304 r=`${PWD_COMMAND}`; export r; \
15305 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15306 $(SET_LIB_PATH) \
4fc4dd12 15307 $(HOST_EXPORTS) \
d32ab992 15308 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
15309 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15310 done; \
d32ab992
PB
15311 echo "Doing dvi in rcs" ; \
15312 (cd rcs && \
295f4e42
NN
15313 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15314 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15315 "RANLIB=$${RANLIB}" \
15316 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15317 dvi) \
295f4e42
NN
15318 || exit 1
15319
d32ab992 15320@endif rcs
295f4e42 15321
d32ab992
PB
15322.PHONY: maybe-TAGS-rcs TAGS-rcs
15323maybe-TAGS-rcs:
15324@if rcs
15325maybe-TAGS-rcs: TAGS-rcs
295f4e42 15326
d32ab992
PB
15327TAGS-rcs: \
15328 configure-rcs
15329 @[ -f ./rcs/Makefile ] || exit 0; \
295f4e42
NN
15330 r=`${PWD_COMMAND}`; export r; \
15331 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15332 $(SET_LIB_PATH) \
4fc4dd12 15333 $(HOST_EXPORTS) \
d32ab992 15334 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
15335 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15336 done; \
d32ab992
PB
15337 echo "Doing TAGS in rcs" ; \
15338 (cd rcs && \
295f4e42
NN
15339 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15340 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15341 "RANLIB=$${RANLIB}" \
15342 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15343 TAGS) \
295f4e42
NN
15344 || exit 1
15345
d32ab992 15346@endif rcs
295f4e42 15347
d32ab992
PB
15348.PHONY: maybe-install-info-rcs install-info-rcs
15349maybe-install-info-rcs:
15350@if rcs
15351maybe-install-info-rcs: install-info-rcs
295f4e42 15352
d32ab992
PB
15353install-info-rcs: \
15354 configure-rcs \
15355 info-rcs
15356 @[ -f ./rcs/Makefile ] || exit 0; \
295f4e42
NN
15357 r=`${PWD_COMMAND}`; export r; \
15358 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15359 $(SET_LIB_PATH) \
4fc4dd12 15360 $(HOST_EXPORTS) \
d32ab992 15361 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
15362 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15363 done; \
d32ab992
PB
15364 echo "Doing install-info in rcs" ; \
15365 (cd rcs && \
295f4e42
NN
15366 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15367 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15368 "RANLIB=$${RANLIB}" \
15369 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15370 install-info) \
295f4e42
NN
15371 || exit 1
15372
d32ab992 15373@endif rcs
295f4e42 15374
d32ab992
PB
15375.PHONY: maybe-installcheck-rcs installcheck-rcs
15376maybe-installcheck-rcs:
15377@if rcs
15378maybe-installcheck-rcs: installcheck-rcs
295f4e42 15379
d32ab992
PB
15380installcheck-rcs: \
15381 configure-rcs
15382 @[ -f ./rcs/Makefile ] || exit 0; \
295f4e42
NN
15383 r=`${PWD_COMMAND}`; export r; \
15384 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15385 $(SET_LIB_PATH) \
4fc4dd12 15386 $(HOST_EXPORTS) \
d32ab992 15387 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
15388 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15389 done; \
d32ab992
PB
15390 echo "Doing installcheck in rcs" ; \
15391 (cd rcs && \
295f4e42
NN
15392 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15393 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15394 "RANLIB=$${RANLIB}" \
15395 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15396 installcheck) \
295f4e42
NN
15397 || exit 1
15398
d32ab992 15399@endif rcs
295f4e42 15400
d32ab992
PB
15401.PHONY: maybe-mostlyclean-rcs mostlyclean-rcs
15402maybe-mostlyclean-rcs:
15403@if rcs
15404maybe-mostlyclean-rcs: mostlyclean-rcs
295f4e42 15405
d32ab992
PB
15406mostlyclean-rcs:
15407 @[ -f ./rcs/Makefile ] || exit 0; \
295f4e42
NN
15408 r=`${PWD_COMMAND}`; export r; \
15409 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15410 $(SET_LIB_PATH) \
4fc4dd12 15411 $(HOST_EXPORTS) \
d32ab992 15412 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
15413 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15414 done; \
d32ab992
PB
15415 echo "Doing mostlyclean in rcs" ; \
15416 (cd rcs && \
295f4e42
NN
15417 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15418 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15419 "RANLIB=$${RANLIB}" \
15420 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15421 mostlyclean) \
295f4e42
NN
15422 || exit 1
15423
d32ab992 15424@endif rcs
295f4e42 15425
d32ab992
PB
15426.PHONY: maybe-clean-rcs clean-rcs
15427maybe-clean-rcs:
15428@if rcs
15429maybe-clean-rcs: clean-rcs
295f4e42 15430
d32ab992
PB
15431clean-rcs:
15432 @[ -f ./rcs/Makefile ] || exit 0; \
295f4e42
NN
15433 r=`${PWD_COMMAND}`; export r; \
15434 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15435 $(SET_LIB_PATH) \
4fc4dd12 15436 $(HOST_EXPORTS) \
d32ab992 15437 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
15438 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15439 done; \
d32ab992
PB
15440 echo "Doing clean in rcs" ; \
15441 (cd rcs && \
295f4e42
NN
15442 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15443 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15444 "RANLIB=$${RANLIB}" \
15445 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15446 clean) \
295f4e42
NN
15447 || exit 1
15448
d32ab992 15449@endif rcs
295f4e42 15450
d32ab992
PB
15451.PHONY: maybe-distclean-rcs distclean-rcs
15452maybe-distclean-rcs:
15453@if rcs
15454maybe-distclean-rcs: distclean-rcs
295f4e42 15455
d32ab992
PB
15456distclean-rcs:
15457 @[ -f ./rcs/Makefile ] || exit 0; \
295f4e42
NN
15458 r=`${PWD_COMMAND}`; export r; \
15459 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15460 $(SET_LIB_PATH) \
4fc4dd12 15461 $(HOST_EXPORTS) \
d32ab992 15462 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
15463 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15464 done; \
d32ab992
PB
15465 echo "Doing distclean in rcs" ; \
15466 (cd rcs && \
295f4e42
NN
15467 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15468 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15469 "RANLIB=$${RANLIB}" \
15470 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15471 distclean) \
295f4e42
NN
15472 || exit 1
15473
d32ab992 15474@endif rcs
295f4e42 15475
d32ab992
PB
15476.PHONY: maybe-maintainer-clean-rcs maintainer-clean-rcs
15477maybe-maintainer-clean-rcs:
15478@if rcs
15479maybe-maintainer-clean-rcs: maintainer-clean-rcs
295f4e42 15480
d32ab992
PB
15481maintainer-clean-rcs:
15482 @[ -f ./rcs/Makefile ] || exit 0; \
295f4e42
NN
15483 r=`${PWD_COMMAND}`; export r; \
15484 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15485 $(SET_LIB_PATH) \
4fc4dd12 15486 $(HOST_EXPORTS) \
d32ab992 15487 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
15488 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15489 done; \
d32ab992
PB
15490 echo "Doing maintainer-clean in rcs" ; \
15491 (cd rcs && \
295f4e42
NN
15492 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15493 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15494 "RANLIB=$${RANLIB}" \
15495 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15496 maintainer-clean) \
295f4e42 15497 || exit 1
7e2dbcef 15498
d32ab992 15499@endif rcs
4977bab6
ZW
15500
15501
d32ab992
PB
15502.PHONY: configure-readline maybe-configure-readline
15503maybe-configure-readline:
15504@if readline
15505maybe-configure-readline: configure-readline
15506configure-readline:
15507 @test ! -f readline/Makefile || exit 0; \
15508 [ -d readline ] || mkdir readline; \
8c90b13a
L
15509 r=`${PWD_COMMAND}`; export r; \
15510 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15511 $(HOST_EXPORTS) \
d32ab992
PB
15512 echo Configuring in readline; \
15513 cd readline || exit 1; \
4977bab6
ZW
15514 case $(srcdir) in \
15515 \.) \
15516 srcdiroption="--srcdir=."; \
15517 libsrcdir=".";; \
15518 /* | [A-Za-z]:[\\/]*) \
d32ab992
PB
15519 srcdiroption="--srcdir=$(srcdir)/readline"; \
15520 libsrcdir="$$s/readline";; \
4977bab6 15521 *) \
d32ab992
PB
15522 srcdiroption="--srcdir=../$(srcdir)/readline"; \
15523 libsrcdir="$$s/readline";; \
4977bab6
ZW
15524 esac; \
15525 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 15526 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 15527 || exit 1
d32ab992 15528@endif readline
4977bab6 15529
d32ab992
PB
15530.PHONY: all-readline maybe-all-readline
15531maybe-all-readline:
15532@if readline
15533maybe-all-readline: all-readline
15534all-readline: configure-readline
8c90b13a
L
15535 @r=`${PWD_COMMAND}`; export r; \
15536 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 15537 $(SET_LIB_PATH) \
4fc4dd12 15538 $(HOST_EXPORTS) \
d32ab992
PB
15539 (cd readline && $(MAKE) $(FLAGS_TO_PASS) all)
15540@endif readline
4977bab6 15541
d32ab992
PB
15542.PHONY: check-readline maybe-check-readline
15543maybe-check-readline:
15544@if readline
15545maybe-check-readline: check-readline
4977bab6 15546
d32ab992
PB
15547check-readline:
15548 @r=`${PWD_COMMAND}`; export r; \
15549 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15550 $(SET_LIB_PATH) \
15551 $(HOST_EXPORTS) \
7c27e184 15552 (cd readline && $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 15553
d32ab992 15554@endif readline
295f4e42 15555
d32ab992
PB
15556.PHONY: install-readline maybe-install-readline
15557maybe-install-readline:
15558@if readline
15559maybe-install-readline: install-readline
295f4e42 15560
d32ab992
PB
15561install-readline: installdirs
15562 @r=`${PWD_COMMAND}`; export r; \
15563 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15564 $(SET_LIB_PATH) \
15565 $(HOST_EXPORTS) \
7c27e184 15566 (cd readline && $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 15567
d32ab992 15568@endif readline
295f4e42
NN
15569
15570# Other targets (info, dvi, etc.)
15571
d32ab992
PB
15572.PHONY: maybe-info-readline info-readline
15573maybe-info-readline:
15574@if readline
15575maybe-info-readline: info-readline
295f4e42 15576
d32ab992
PB
15577info-readline: \
15578 configure-readline
15579 @[ -f ./readline/Makefile ] || exit 0; \
295f4e42 15580 r=`${PWD_COMMAND}`; export r; \
8c90b13a 15581 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 15582 $(SET_LIB_PATH) \
4fc4dd12 15583 $(HOST_EXPORTS) \
d32ab992 15584 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
15585 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15586 done; \
d32ab992
PB
15587 echo "Doing info in readline" ; \
15588 (cd readline && \
295f4e42
NN
15589 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15590 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15591 "RANLIB=$${RANLIB}" \
15592 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15593 info) \
295f4e42 15594 || exit 1
4977bab6 15595
d32ab992 15596@endif readline
4977bab6 15597
d32ab992
PB
15598.PHONY: maybe-dvi-readline dvi-readline
15599maybe-dvi-readline:
15600@if readline
15601maybe-dvi-readline: dvi-readline
7e2dbcef 15602
d32ab992
PB
15603dvi-readline: \
15604 configure-readline
15605 @[ -f ./readline/Makefile ] || exit 0; \
295f4e42 15606 r=`${PWD_COMMAND}`; export r; \
8c90b13a 15607 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 15608 $(SET_LIB_PATH) \
4fc4dd12 15609 $(HOST_EXPORTS) \
d32ab992 15610 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
15611 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15612 done; \
d32ab992
PB
15613 echo "Doing dvi in readline" ; \
15614 (cd readline && \
295f4e42
NN
15615 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15616 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15617 "RANLIB=$${RANLIB}" \
15618 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15619 dvi) \
295f4e42 15620 || exit 1
4977bab6 15621
d32ab992 15622@endif readline
4977bab6 15623
d32ab992
PB
15624.PHONY: maybe-TAGS-readline TAGS-readline
15625maybe-TAGS-readline:
15626@if readline
15627maybe-TAGS-readline: TAGS-readline
295f4e42 15628
d32ab992
PB
15629TAGS-readline: \
15630 configure-readline
15631 @[ -f ./readline/Makefile ] || exit 0; \
295f4e42
NN
15632 r=`${PWD_COMMAND}`; export r; \
15633 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15634 $(SET_LIB_PATH) \
4fc4dd12 15635 $(HOST_EXPORTS) \
d32ab992 15636 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
15637 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15638 done; \
d32ab992
PB
15639 echo "Doing TAGS in readline" ; \
15640 (cd readline && \
295f4e42
NN
15641 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15642 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15643 "RANLIB=$${RANLIB}" \
15644 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15645 TAGS) \
295f4e42
NN
15646 || exit 1
15647
d32ab992 15648@endif readline
295f4e42 15649
d32ab992
PB
15650.PHONY: maybe-install-info-readline install-info-readline
15651maybe-install-info-readline:
15652@if readline
15653maybe-install-info-readline: install-info-readline
295f4e42 15654
d32ab992
PB
15655install-info-readline: \
15656 configure-readline \
15657 info-readline
15658 @[ -f ./readline/Makefile ] || exit 0; \
295f4e42
NN
15659 r=`${PWD_COMMAND}`; export r; \
15660 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15661 $(SET_LIB_PATH) \
4fc4dd12 15662 $(HOST_EXPORTS) \
d32ab992 15663 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
15664 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15665 done; \
d32ab992
PB
15666 echo "Doing install-info in readline" ; \
15667 (cd readline && \
295f4e42
NN
15668 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15669 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15670 "RANLIB=$${RANLIB}" \
15671 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15672 install-info) \
295f4e42
NN
15673 || exit 1
15674
d32ab992 15675@endif readline
295f4e42 15676
d32ab992
PB
15677.PHONY: maybe-installcheck-readline installcheck-readline
15678maybe-installcheck-readline:
15679@if readline
15680maybe-installcheck-readline: installcheck-readline
295f4e42 15681
d32ab992
PB
15682installcheck-readline: \
15683 configure-readline
15684 @[ -f ./readline/Makefile ] || exit 0; \
295f4e42
NN
15685 r=`${PWD_COMMAND}`; export r; \
15686 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15687 $(SET_LIB_PATH) \
4fc4dd12 15688 $(HOST_EXPORTS) \
d32ab992 15689 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
15690 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15691 done; \
d32ab992
PB
15692 echo "Doing installcheck in readline" ; \
15693 (cd readline && \
295f4e42
NN
15694 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15695 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15696 "RANLIB=$${RANLIB}" \
15697 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15698 installcheck) \
295f4e42
NN
15699 || exit 1
15700
d32ab992 15701@endif readline
295f4e42 15702
d32ab992
PB
15703.PHONY: maybe-mostlyclean-readline mostlyclean-readline
15704maybe-mostlyclean-readline:
15705@if readline
15706maybe-mostlyclean-readline: mostlyclean-readline
295f4e42 15707
d32ab992
PB
15708mostlyclean-readline:
15709 @[ -f ./readline/Makefile ] || exit 0; \
295f4e42
NN
15710 r=`${PWD_COMMAND}`; export r; \
15711 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15712 $(SET_LIB_PATH) \
4fc4dd12 15713 $(HOST_EXPORTS) \
d32ab992 15714 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
15715 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15716 done; \
d32ab992
PB
15717 echo "Doing mostlyclean in readline" ; \
15718 (cd readline && \
295f4e42
NN
15719 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15720 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15721 "RANLIB=$${RANLIB}" \
15722 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15723 mostlyclean) \
295f4e42
NN
15724 || exit 1
15725
d32ab992 15726@endif readline
295f4e42 15727
d32ab992
PB
15728.PHONY: maybe-clean-readline clean-readline
15729maybe-clean-readline:
15730@if readline
15731maybe-clean-readline: clean-readline
295f4e42 15732
d32ab992
PB
15733clean-readline:
15734 @[ -f ./readline/Makefile ] || exit 0; \
295f4e42
NN
15735 r=`${PWD_COMMAND}`; export r; \
15736 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15737 $(SET_LIB_PATH) \
4fc4dd12 15738 $(HOST_EXPORTS) \
d32ab992 15739 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
15740 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15741 done; \
d32ab992
PB
15742 echo "Doing clean in readline" ; \
15743 (cd readline && \
295f4e42
NN
15744 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15745 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15746 "RANLIB=$${RANLIB}" \
15747 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15748 clean) \
295f4e42
NN
15749 || exit 1
15750
d32ab992 15751@endif readline
295f4e42 15752
d32ab992
PB
15753.PHONY: maybe-distclean-readline distclean-readline
15754maybe-distclean-readline:
15755@if readline
15756maybe-distclean-readline: distclean-readline
295f4e42 15757
d32ab992
PB
15758distclean-readline:
15759 @[ -f ./readline/Makefile ] || exit 0; \
295f4e42
NN
15760 r=`${PWD_COMMAND}`; export r; \
15761 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15762 $(SET_LIB_PATH) \
4fc4dd12 15763 $(HOST_EXPORTS) \
d32ab992 15764 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
15765 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15766 done; \
d32ab992
PB
15767 echo "Doing distclean in readline" ; \
15768 (cd readline && \
295f4e42
NN
15769 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15770 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15771 "RANLIB=$${RANLIB}" \
15772 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15773 distclean) \
295f4e42
NN
15774 || exit 1
15775
d32ab992 15776@endif readline
295f4e42 15777
d32ab992
PB
15778.PHONY: maybe-maintainer-clean-readline maintainer-clean-readline
15779maybe-maintainer-clean-readline:
15780@if readline
15781maybe-maintainer-clean-readline: maintainer-clean-readline
295f4e42 15782
d32ab992
PB
15783maintainer-clean-readline:
15784 @[ -f ./readline/Makefile ] || exit 0; \
295f4e42
NN
15785 r=`${PWD_COMMAND}`; export r; \
15786 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15787 $(SET_LIB_PATH) \
4fc4dd12 15788 $(HOST_EXPORTS) \
d32ab992 15789 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
15790 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15791 done; \
d32ab992
PB
15792 echo "Doing maintainer-clean in readline" ; \
15793 (cd readline && \
295f4e42
NN
15794 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15795 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15796 "RANLIB=$${RANLIB}" \
15797 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15798 maintainer-clean) \
295f4e42
NN
15799 || exit 1
15800
d32ab992 15801@endif readline
295f4e42
NN
15802
15803
d32ab992
PB
15804.PHONY: configure-release maybe-configure-release
15805maybe-configure-release:
15806@if release
15807maybe-configure-release: configure-release
15808configure-release:
15809 @test ! -f release/Makefile || exit 0; \
15810 [ -d release ] || mkdir release; \
8c90b13a
L
15811 r=`${PWD_COMMAND}`; export r; \
15812 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15813 $(HOST_EXPORTS) \
d32ab992
PB
15814 echo Configuring in release; \
15815 cd release || exit 1; \
4977bab6
ZW
15816 case $(srcdir) in \
15817 \.) \
15818 srcdiroption="--srcdir=."; \
15819 libsrcdir=".";; \
15820 /* | [A-Za-z]:[\\/]*) \
d32ab992
PB
15821 srcdiroption="--srcdir=$(srcdir)/release"; \
15822 libsrcdir="$$s/release";; \
4977bab6 15823 *) \
d32ab992
PB
15824 srcdiroption="--srcdir=../$(srcdir)/release"; \
15825 libsrcdir="$$s/release";; \
4977bab6
ZW
15826 esac; \
15827 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 15828 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 15829 || exit 1
d32ab992 15830@endif release
4977bab6 15831
d32ab992
PB
15832.PHONY: all-release maybe-all-release
15833maybe-all-release:
15834@if release
15835maybe-all-release: all-release
15836all-release: configure-release
8c90b13a
L
15837 @r=`${PWD_COMMAND}`; export r; \
15838 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 15839 $(SET_LIB_PATH) \
4fc4dd12 15840 $(HOST_EXPORTS) \
d32ab992
PB
15841 (cd release && $(MAKE) $(FLAGS_TO_PASS) all)
15842@endif release
4977bab6 15843
d32ab992
PB
15844.PHONY: check-release maybe-check-release
15845maybe-check-release:
15846@if release
15847maybe-check-release: check-release
4977bab6 15848
d32ab992 15849check-release:
4977bab6 15850
d32ab992 15851@endif release
4977bab6 15852
d32ab992
PB
15853.PHONY: install-release maybe-install-release
15854maybe-install-release:
15855@if release
15856maybe-install-release: install-release
7e2dbcef 15857
d32ab992 15858install-release:
4977bab6 15859
d32ab992 15860@endif release
4977bab6 15861
295f4e42
NN
15862# Other targets (info, dvi, etc.)
15863
d32ab992
PB
15864.PHONY: maybe-info-release info-release
15865maybe-info-release:
15866@if release
15867maybe-info-release: info-release
295f4e42 15868
d32ab992
PB
15869info-release: \
15870 configure-release
15871 @[ -f ./release/Makefile ] || exit 0; \
8c90b13a
L
15872 r=`${PWD_COMMAND}`; export r; \
15873 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
295f4e42 15874 $(SET_LIB_PATH) \
4fc4dd12 15875 $(HOST_EXPORTS) \
d32ab992 15876 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
15877 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15878 done; \
d32ab992
PB
15879 echo "Doing info in release" ; \
15880 (cd release && \
295f4e42
NN
15881 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15882 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15883 "RANLIB=$${RANLIB}" \
15884 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15885 info) \
4977bab6
ZW
15886 || exit 1
15887
d32ab992 15888@endif release
295f4e42 15889
d32ab992
PB
15890.PHONY: maybe-dvi-release dvi-release
15891maybe-dvi-release:
15892@if release
15893maybe-dvi-release: dvi-release
295f4e42 15894
d32ab992
PB
15895dvi-release: \
15896 configure-release
15897 @[ -f ./release/Makefile ] || exit 0; \
295f4e42 15898 r=`${PWD_COMMAND}`; export r; \
8c90b13a 15899 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 15900 $(SET_LIB_PATH) \
4fc4dd12 15901 $(HOST_EXPORTS) \
d32ab992 15902 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
15903 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15904 done; \
d32ab992
PB
15905 echo "Doing dvi in release" ; \
15906 (cd release && \
295f4e42
NN
15907 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15908 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15909 "RANLIB=$${RANLIB}" \
15910 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15911 dvi) \
295f4e42 15912 || exit 1
4977bab6 15913
d32ab992 15914@endif release
4977bab6 15915
d32ab992
PB
15916.PHONY: maybe-TAGS-release TAGS-release
15917maybe-TAGS-release:
15918@if release
15919maybe-TAGS-release: TAGS-release
295f4e42 15920
d32ab992
PB
15921TAGS-release: \
15922 configure-release
15923 @[ -f ./release/Makefile ] || exit 0; \
295f4e42
NN
15924 r=`${PWD_COMMAND}`; export r; \
15925 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15926 $(SET_LIB_PATH) \
4fc4dd12 15927 $(HOST_EXPORTS) \
d32ab992 15928 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
15929 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15930 done; \
d32ab992
PB
15931 echo "Doing TAGS in release" ; \
15932 (cd release && \
295f4e42
NN
15933 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15934 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15935 "RANLIB=$${RANLIB}" \
15936 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15937 TAGS) \
295f4e42
NN
15938 || exit 1
15939
d32ab992 15940@endif release
295f4e42 15941
d32ab992
PB
15942.PHONY: maybe-install-info-release install-info-release
15943maybe-install-info-release:
15944@if release
15945maybe-install-info-release: install-info-release
295f4e42 15946
d32ab992
PB
15947install-info-release: \
15948 configure-release \
15949 info-release
15950 @[ -f ./release/Makefile ] || exit 0; \
295f4e42
NN
15951 r=`${PWD_COMMAND}`; export r; \
15952 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15953 $(SET_LIB_PATH) \
4fc4dd12 15954 $(HOST_EXPORTS) \
d32ab992 15955 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
15956 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15957 done; \
d32ab992
PB
15958 echo "Doing install-info in release" ; \
15959 (cd release && \
295f4e42
NN
15960 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15961 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15962 "RANLIB=$${RANLIB}" \
15963 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15964 install-info) \
295f4e42
NN
15965 || exit 1
15966
d32ab992 15967@endif release
295f4e42 15968
d32ab992
PB
15969.PHONY: maybe-installcheck-release installcheck-release
15970maybe-installcheck-release:
15971@if release
15972maybe-installcheck-release: installcheck-release
295f4e42 15973
d32ab992
PB
15974installcheck-release: \
15975 configure-release
15976 @[ -f ./release/Makefile ] || exit 0; \
295f4e42
NN
15977 r=`${PWD_COMMAND}`; export r; \
15978 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15979 $(SET_LIB_PATH) \
4fc4dd12 15980 $(HOST_EXPORTS) \
d32ab992 15981 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
15982 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15983 done; \
d32ab992
PB
15984 echo "Doing installcheck in release" ; \
15985 (cd release && \
295f4e42
NN
15986 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15987 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15988 "RANLIB=$${RANLIB}" \
15989 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15990 installcheck) \
295f4e42
NN
15991 || exit 1
15992
d32ab992 15993@endif release
295f4e42 15994
d32ab992
PB
15995.PHONY: maybe-mostlyclean-release mostlyclean-release
15996maybe-mostlyclean-release:
15997@if release
15998maybe-mostlyclean-release: mostlyclean-release
295f4e42 15999
d32ab992
PB
16000mostlyclean-release:
16001 @[ -f ./release/Makefile ] || exit 0; \
295f4e42
NN
16002 r=`${PWD_COMMAND}`; export r; \
16003 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16004 $(SET_LIB_PATH) \
4fc4dd12 16005 $(HOST_EXPORTS) \
d32ab992 16006 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
16007 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16008 done; \
d32ab992
PB
16009 echo "Doing mostlyclean in release" ; \
16010 (cd release && \
295f4e42
NN
16011 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16012 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16013 "RANLIB=$${RANLIB}" \
16014 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16015 mostlyclean) \
295f4e42
NN
16016 || exit 1
16017
d32ab992 16018@endif release
295f4e42 16019
d32ab992
PB
16020.PHONY: maybe-clean-release clean-release
16021maybe-clean-release:
16022@if release
16023maybe-clean-release: clean-release
295f4e42 16024
d32ab992
PB
16025clean-release:
16026 @[ -f ./release/Makefile ] || exit 0; \
295f4e42
NN
16027 r=`${PWD_COMMAND}`; export r; \
16028 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16029 $(SET_LIB_PATH) \
4fc4dd12 16030 $(HOST_EXPORTS) \
d32ab992 16031 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
16032 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16033 done; \
d32ab992
PB
16034 echo "Doing clean in release" ; \
16035 (cd release && \
295f4e42
NN
16036 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16037 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16038 "RANLIB=$${RANLIB}" \
16039 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16040 clean) \
295f4e42
NN
16041 || exit 1
16042
d32ab992 16043@endif release
295f4e42 16044
d32ab992
PB
16045.PHONY: maybe-distclean-release distclean-release
16046maybe-distclean-release:
16047@if release
16048maybe-distclean-release: distclean-release
295f4e42 16049
d32ab992
PB
16050distclean-release:
16051 @[ -f ./release/Makefile ] || exit 0; \
295f4e42
NN
16052 r=`${PWD_COMMAND}`; export r; \
16053 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16054 $(SET_LIB_PATH) \
4fc4dd12 16055 $(HOST_EXPORTS) \
d32ab992 16056 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
16057 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16058 done; \
d32ab992
PB
16059 echo "Doing distclean in release" ; \
16060 (cd release && \
295f4e42
NN
16061 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16062 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16063 "RANLIB=$${RANLIB}" \
16064 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16065 distclean) \
295f4e42 16066 || exit 1
4977bab6 16067
d32ab992 16068@endif release
4977bab6 16069
d32ab992
PB
16070.PHONY: maybe-maintainer-clean-release maintainer-clean-release
16071maybe-maintainer-clean-release:
16072@if release
16073maybe-maintainer-clean-release: maintainer-clean-release
7e2dbcef 16074
d32ab992
PB
16075maintainer-clean-release:
16076 @[ -f ./release/Makefile ] || exit 0; \
295f4e42 16077 r=`${PWD_COMMAND}`; export r; \
8c90b13a 16078 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 16079 $(SET_LIB_PATH) \
4fc4dd12 16080 $(HOST_EXPORTS) \
d32ab992 16081 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
16082 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16083 done; \
d32ab992
PB
16084 echo "Doing maintainer-clean in release" ; \
16085 (cd release && \
295f4e42
NN
16086 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16087 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16088 "RANLIB=$${RANLIB}" \
16089 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16090 maintainer-clean) \
295f4e42 16091 || exit 1
4977bab6 16092
d32ab992 16093@endif release
4977bab6 16094
295f4e42 16095
d32ab992
PB
16096.PHONY: configure-recode maybe-configure-recode
16097maybe-configure-recode:
16098@if recode
16099maybe-configure-recode: configure-recode
16100configure-recode:
16101 @test ! -f recode/Makefile || exit 0; \
16102 [ -d recode ] || mkdir recode; \
8c90b13a
L
16103 r=`${PWD_COMMAND}`; export r; \
16104 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16105 $(HOST_EXPORTS) \
d32ab992
PB
16106 echo Configuring in recode; \
16107 cd recode || exit 1; \
4977bab6
ZW
16108 case $(srcdir) in \
16109 \.) \
16110 srcdiroption="--srcdir=."; \
16111 libsrcdir=".";; \
16112 /* | [A-Za-z]:[\\/]*) \
d32ab992
PB
16113 srcdiroption="--srcdir=$(srcdir)/recode"; \
16114 libsrcdir="$$s/recode";; \
4977bab6 16115 *) \
d32ab992
PB
16116 srcdiroption="--srcdir=../$(srcdir)/recode"; \
16117 libsrcdir="$$s/recode";; \
4977bab6
ZW
16118 esac; \
16119 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 16120 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 16121 || exit 1
d32ab992 16122@endif recode
4977bab6 16123
d32ab992
PB
16124.PHONY: all-recode maybe-all-recode
16125maybe-all-recode:
16126@if recode
16127maybe-all-recode: all-recode
16128all-recode: configure-recode
8c90b13a
L
16129 @r=`${PWD_COMMAND}`; export r; \
16130 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 16131 $(SET_LIB_PATH) \
4fc4dd12 16132 $(HOST_EXPORTS) \
d32ab992
PB
16133 (cd recode && $(MAKE) $(FLAGS_TO_PASS) all)
16134@endif recode
4977bab6 16135
d32ab992
PB
16136.PHONY: check-recode maybe-check-recode
16137maybe-check-recode:
16138@if recode
16139maybe-check-recode: check-recode
4977bab6 16140
d32ab992 16141check-recode:
8c90b13a
L
16142 @r=`${PWD_COMMAND}`; export r; \
16143 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 16144 $(SET_LIB_PATH) \
4fc4dd12 16145 $(HOST_EXPORTS) \
7c27e184 16146 (cd recode && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 16147
d32ab992 16148@endif recode
4977bab6 16149
d32ab992
PB
16150.PHONY: install-recode maybe-install-recode
16151maybe-install-recode:
16152@if recode
16153maybe-install-recode: install-recode
7e2dbcef 16154
d32ab992 16155install-recode: installdirs
8c90b13a
L
16156 @r=`${PWD_COMMAND}`; export r; \
16157 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 16158 $(SET_LIB_PATH) \
4fc4dd12 16159 $(HOST_EXPORTS) \
7c27e184 16160 (cd recode && $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 16161
d32ab992 16162@endif recode
295f4e42
NN
16163
16164# Other targets (info, dvi, etc.)
16165
d32ab992
PB
16166.PHONY: maybe-info-recode info-recode
16167maybe-info-recode:
16168@if recode
16169maybe-info-recode: info-recode
295f4e42 16170
d32ab992
PB
16171info-recode: \
16172 configure-recode
16173 @[ -f ./recode/Makefile ] || exit 0; \
295f4e42
NN
16174 r=`${PWD_COMMAND}`; export r; \
16175 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16176 $(SET_LIB_PATH) \
4fc4dd12 16177 $(HOST_EXPORTS) \
d32ab992 16178 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
16179 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16180 done; \
d32ab992
PB
16181 echo "Doing info in recode" ; \
16182 (cd recode && \
295f4e42
NN
16183 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16184 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16185 "RANLIB=$${RANLIB}" \
16186 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16187 info) \
295f4e42
NN
16188 || exit 1
16189
d32ab992 16190@endif recode
295f4e42 16191
d32ab992
PB
16192.PHONY: maybe-dvi-recode dvi-recode
16193maybe-dvi-recode:
16194@if recode
16195maybe-dvi-recode: dvi-recode
295f4e42 16196
d32ab992
PB
16197dvi-recode: \
16198 configure-recode
16199 @[ -f ./recode/Makefile ] || exit 0; \
295f4e42
NN
16200 r=`${PWD_COMMAND}`; export r; \
16201 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16202 $(SET_LIB_PATH) \
4fc4dd12 16203 $(HOST_EXPORTS) \
d32ab992 16204 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
16205 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16206 done; \
d32ab992
PB
16207 echo "Doing dvi in recode" ; \
16208 (cd recode && \
295f4e42
NN
16209 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16210 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16211 "RANLIB=$${RANLIB}" \
16212 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16213 dvi) \
295f4e42
NN
16214 || exit 1
16215
d32ab992 16216@endif recode
295f4e42 16217
d32ab992
PB
16218.PHONY: maybe-TAGS-recode TAGS-recode
16219maybe-TAGS-recode:
16220@if recode
16221maybe-TAGS-recode: TAGS-recode
295f4e42 16222
d32ab992
PB
16223TAGS-recode: \
16224 configure-recode
16225 @[ -f ./recode/Makefile ] || exit 0; \
295f4e42
NN
16226 r=`${PWD_COMMAND}`; export r; \
16227 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16228 $(SET_LIB_PATH) \
4fc4dd12 16229 $(HOST_EXPORTS) \
d32ab992 16230 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
16231 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16232 done; \
d32ab992
PB
16233 echo "Doing TAGS in recode" ; \
16234 (cd recode && \
295f4e42
NN
16235 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16236 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16237 "RANLIB=$${RANLIB}" \
16238 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16239 TAGS) \
295f4e42
NN
16240 || exit 1
16241
d32ab992 16242@endif recode
295f4e42 16243
d32ab992
PB
16244.PHONY: maybe-install-info-recode install-info-recode
16245maybe-install-info-recode:
16246@if recode
16247maybe-install-info-recode: install-info-recode
295f4e42 16248
d32ab992
PB
16249install-info-recode: \
16250 configure-recode \
16251 info-recode
16252 @[ -f ./recode/Makefile ] || exit 0; \
295f4e42
NN
16253 r=`${PWD_COMMAND}`; export r; \
16254 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16255 $(SET_LIB_PATH) \
4fc4dd12 16256 $(HOST_EXPORTS) \
d32ab992 16257 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
16258 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16259 done; \
d32ab992
PB
16260 echo "Doing install-info in recode" ; \
16261 (cd recode && \
295f4e42
NN
16262 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16263 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16264 "RANLIB=$${RANLIB}" \
16265 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16266 install-info) \
295f4e42
NN
16267 || exit 1
16268
d32ab992 16269@endif recode
295f4e42 16270
d32ab992
PB
16271.PHONY: maybe-installcheck-recode installcheck-recode
16272maybe-installcheck-recode:
16273@if recode
16274maybe-installcheck-recode: installcheck-recode
295f4e42 16275
d32ab992
PB
16276installcheck-recode: \
16277 configure-recode
16278 @[ -f ./recode/Makefile ] || exit 0; \
295f4e42
NN
16279 r=`${PWD_COMMAND}`; export r; \
16280 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16281 $(SET_LIB_PATH) \
4fc4dd12 16282 $(HOST_EXPORTS) \
d32ab992 16283 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
16284 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16285 done; \
d32ab992
PB
16286 echo "Doing installcheck in recode" ; \
16287 (cd recode && \
295f4e42
NN
16288 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16289 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16290 "RANLIB=$${RANLIB}" \
16291 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16292 installcheck) \
295f4e42
NN
16293 || exit 1
16294
d32ab992 16295@endif recode
295f4e42 16296
d32ab992
PB
16297.PHONY: maybe-mostlyclean-recode mostlyclean-recode
16298maybe-mostlyclean-recode:
16299@if recode
16300maybe-mostlyclean-recode: mostlyclean-recode
295f4e42 16301
d32ab992
PB
16302mostlyclean-recode:
16303 @[ -f ./recode/Makefile ] || exit 0; \
295f4e42
NN
16304 r=`${PWD_COMMAND}`; export r; \
16305 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16306 $(SET_LIB_PATH) \
4fc4dd12 16307 $(HOST_EXPORTS) \
d32ab992 16308 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
16309 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16310 done; \
d32ab992
PB
16311 echo "Doing mostlyclean in recode" ; \
16312 (cd recode && \
295f4e42
NN
16313 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16314 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16315 "RANLIB=$${RANLIB}" \
16316 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16317 mostlyclean) \
295f4e42
NN
16318 || exit 1
16319
d32ab992 16320@endif recode
295f4e42 16321
d32ab992
PB
16322.PHONY: maybe-clean-recode clean-recode
16323maybe-clean-recode:
16324@if recode
16325maybe-clean-recode: clean-recode
295f4e42 16326
d32ab992
PB
16327clean-recode:
16328 @[ -f ./recode/Makefile ] || exit 0; \
295f4e42
NN
16329 r=`${PWD_COMMAND}`; export r; \
16330 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16331 $(SET_LIB_PATH) \
4fc4dd12 16332 $(HOST_EXPORTS) \
d32ab992 16333 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
16334 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16335 done; \
d32ab992
PB
16336 echo "Doing clean in recode" ; \
16337 (cd recode && \
295f4e42
NN
16338 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16339 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16340 "RANLIB=$${RANLIB}" \
16341 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16342 clean) \
295f4e42
NN
16343 || exit 1
16344
d32ab992 16345@endif recode
295f4e42 16346
d32ab992
PB
16347.PHONY: maybe-distclean-recode distclean-recode
16348maybe-distclean-recode:
16349@if recode
16350maybe-distclean-recode: distclean-recode
295f4e42 16351
d32ab992
PB
16352distclean-recode:
16353 @[ -f ./recode/Makefile ] || exit 0; \
295f4e42
NN
16354 r=`${PWD_COMMAND}`; export r; \
16355 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16356 $(SET_LIB_PATH) \
4fc4dd12 16357 $(HOST_EXPORTS) \
d32ab992 16358 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
16359 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16360 done; \
d32ab992
PB
16361 echo "Doing distclean in recode" ; \
16362 (cd recode && \
295f4e42
NN
16363 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16364 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16365 "RANLIB=$${RANLIB}" \
16366 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16367 distclean) \
295f4e42
NN
16368 || exit 1
16369
d32ab992 16370@endif recode
295f4e42 16371
d32ab992
PB
16372.PHONY: maybe-maintainer-clean-recode maintainer-clean-recode
16373maybe-maintainer-clean-recode:
16374@if recode
16375maybe-maintainer-clean-recode: maintainer-clean-recode
295f4e42 16376
d32ab992
PB
16377maintainer-clean-recode:
16378 @[ -f ./recode/Makefile ] || exit 0; \
295f4e42
NN
16379 r=`${PWD_COMMAND}`; export r; \
16380 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16381 $(SET_LIB_PATH) \
4fc4dd12 16382 $(HOST_EXPORTS) \
d32ab992 16383 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
16384 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16385 done; \
d32ab992
PB
16386 echo "Doing maintainer-clean in recode" ; \
16387 (cd recode && \
295f4e42
NN
16388 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16389 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16390 "RANLIB=$${RANLIB}" \
16391 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16392 maintainer-clean) \
295f4e42 16393 || exit 1
4977bab6 16394
d32ab992 16395@endif recode
4977bab6 16396
295f4e42 16397
d32ab992
PB
16398.PHONY: configure-sed maybe-configure-sed
16399maybe-configure-sed:
16400@if sed
16401maybe-configure-sed: configure-sed
16402configure-sed:
16403 @test ! -f sed/Makefile || exit 0; \
16404 [ -d sed ] || mkdir sed; \
8c90b13a
L
16405 r=`${PWD_COMMAND}`; export r; \
16406 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16407 $(HOST_EXPORTS) \
d32ab992
PB
16408 echo Configuring in sed; \
16409 cd sed || exit 1; \
4977bab6
ZW
16410 case $(srcdir) in \
16411 \.) \
16412 srcdiroption="--srcdir=."; \
16413 libsrcdir=".";; \
16414 /* | [A-Za-z]:[\\/]*) \
d32ab992
PB
16415 srcdiroption="--srcdir=$(srcdir)/sed"; \
16416 libsrcdir="$$s/sed";; \
4977bab6 16417 *) \
d32ab992
PB
16418 srcdiroption="--srcdir=../$(srcdir)/sed"; \
16419 libsrcdir="$$s/sed";; \
4977bab6
ZW
16420 esac; \
16421 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 16422 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 16423 || exit 1
d32ab992 16424@endif sed
4977bab6 16425
d32ab992
PB
16426.PHONY: all-sed maybe-all-sed
16427maybe-all-sed:
16428@if sed
16429maybe-all-sed: all-sed
16430all-sed: configure-sed
8c90b13a
L
16431 @r=`${PWD_COMMAND}`; export r; \
16432 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 16433 $(SET_LIB_PATH) \
4fc4dd12 16434 $(HOST_EXPORTS) \
d32ab992
PB
16435 (cd sed && $(MAKE) $(FLAGS_TO_PASS) all)
16436@endif sed
4977bab6 16437
d32ab992
PB
16438.PHONY: check-sed maybe-check-sed
16439maybe-check-sed:
16440@if sed
16441maybe-check-sed: check-sed
4977bab6 16442
d32ab992 16443check-sed:
8c90b13a
L
16444 @r=`${PWD_COMMAND}`; export r; \
16445 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 16446 $(SET_LIB_PATH) \
4fc4dd12 16447 $(HOST_EXPORTS) \
7c27e184 16448 (cd sed && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 16449
d32ab992 16450@endif sed
4977bab6 16451
d32ab992
PB
16452.PHONY: install-sed maybe-install-sed
16453maybe-install-sed:
16454@if sed
16455maybe-install-sed: install-sed
295f4e42 16456
d32ab992 16457install-sed: installdirs
295f4e42
NN
16458 @r=`${PWD_COMMAND}`; export r; \
16459 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16460 $(SET_LIB_PATH) \
4fc4dd12 16461 $(HOST_EXPORTS) \
7c27e184 16462 (cd sed && $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 16463
d32ab992 16464@endif sed
295f4e42
NN
16465
16466# Other targets (info, dvi, etc.)
16467
d32ab992
PB
16468.PHONY: maybe-info-sed info-sed
16469maybe-info-sed:
16470@if sed
16471maybe-info-sed: info-sed
295f4e42 16472
d32ab992
PB
16473info-sed: \
16474 configure-sed
16475 @[ -f ./sed/Makefile ] || exit 0; \
295f4e42
NN
16476 r=`${PWD_COMMAND}`; export r; \
16477 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16478 $(SET_LIB_PATH) \
4fc4dd12 16479 $(HOST_EXPORTS) \
d32ab992 16480 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
16481 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16482 done; \
d32ab992
PB
16483 echo "Doing info in sed" ; \
16484 (cd sed && \
295f4e42
NN
16485 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16486 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16487 "RANLIB=$${RANLIB}" \
16488 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16489 info) \
295f4e42
NN
16490 || exit 1
16491
d32ab992 16492@endif sed
295f4e42 16493
d32ab992
PB
16494.PHONY: maybe-dvi-sed dvi-sed
16495maybe-dvi-sed:
16496@if sed
16497maybe-dvi-sed: dvi-sed
295f4e42 16498
d32ab992
PB
16499dvi-sed: \
16500 configure-sed
16501 @[ -f ./sed/Makefile ] || exit 0; \
295f4e42
NN
16502 r=`${PWD_COMMAND}`; export r; \
16503 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16504 $(SET_LIB_PATH) \
4fc4dd12 16505 $(HOST_EXPORTS) \
d32ab992 16506 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
16507 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16508 done; \
d32ab992
PB
16509 echo "Doing dvi in sed" ; \
16510 (cd sed && \
295f4e42
NN
16511 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16512 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16513 "RANLIB=$${RANLIB}" \
16514 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16515 dvi) \
295f4e42
NN
16516 || exit 1
16517
d32ab992 16518@endif sed
295f4e42 16519
d32ab992
PB
16520.PHONY: maybe-TAGS-sed TAGS-sed
16521maybe-TAGS-sed:
16522@if sed
16523maybe-TAGS-sed: TAGS-sed
295f4e42 16524
d32ab992
PB
16525TAGS-sed: \
16526 configure-sed
16527 @[ -f ./sed/Makefile ] || exit 0; \
295f4e42
NN
16528 r=`${PWD_COMMAND}`; export r; \
16529 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16530 $(SET_LIB_PATH) \
4fc4dd12 16531 $(HOST_EXPORTS) \
d32ab992 16532 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
16533 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16534 done; \
d32ab992
PB
16535 echo "Doing TAGS in sed" ; \
16536 (cd sed && \
295f4e42
NN
16537 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16538 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16539 "RANLIB=$${RANLIB}" \
16540 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16541 TAGS) \
295f4e42
NN
16542 || exit 1
16543
d32ab992 16544@endif sed
295f4e42 16545
d32ab992
PB
16546.PHONY: maybe-install-info-sed install-info-sed
16547maybe-install-info-sed:
16548@if sed
16549maybe-install-info-sed: install-info-sed
295f4e42 16550
d32ab992
PB
16551install-info-sed: \
16552 configure-sed \
16553 info-sed
16554 @[ -f ./sed/Makefile ] || exit 0; \
295f4e42
NN
16555 r=`${PWD_COMMAND}`; export r; \
16556 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16557 $(SET_LIB_PATH) \
4fc4dd12 16558 $(HOST_EXPORTS) \
d32ab992 16559 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
16560 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16561 done; \
d32ab992
PB
16562 echo "Doing install-info in sed" ; \
16563 (cd sed && \
295f4e42
NN
16564 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16565 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16566 "RANLIB=$${RANLIB}" \
16567 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16568 install-info) \
295f4e42
NN
16569 || exit 1
16570
d32ab992 16571@endif sed
295f4e42 16572
d32ab992
PB
16573.PHONY: maybe-installcheck-sed installcheck-sed
16574maybe-installcheck-sed:
16575@if sed
16576maybe-installcheck-sed: installcheck-sed
295f4e42 16577
d32ab992
PB
16578installcheck-sed: \
16579 configure-sed
16580 @[ -f ./sed/Makefile ] || exit 0; \
295f4e42
NN
16581 r=`${PWD_COMMAND}`; export r; \
16582 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16583 $(SET_LIB_PATH) \
4fc4dd12 16584 $(HOST_EXPORTS) \
d32ab992 16585 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
16586 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16587 done; \
d32ab992
PB
16588 echo "Doing installcheck in sed" ; \
16589 (cd sed && \
295f4e42
NN
16590 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16591 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16592 "RANLIB=$${RANLIB}" \
16593 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16594 installcheck) \
295f4e42
NN
16595 || exit 1
16596
d32ab992 16597@endif sed
295f4e42 16598
d32ab992
PB
16599.PHONY: maybe-mostlyclean-sed mostlyclean-sed
16600maybe-mostlyclean-sed:
16601@if sed
16602maybe-mostlyclean-sed: mostlyclean-sed
295f4e42 16603
d32ab992
PB
16604mostlyclean-sed:
16605 @[ -f ./sed/Makefile ] || exit 0; \
295f4e42
NN
16606 r=`${PWD_COMMAND}`; export r; \
16607 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16608 $(SET_LIB_PATH) \
4fc4dd12 16609 $(HOST_EXPORTS) \
d32ab992 16610 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
16611 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16612 done; \
d32ab992
PB
16613 echo "Doing mostlyclean in sed" ; \
16614 (cd sed && \
295f4e42
NN
16615 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16616 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16617 "RANLIB=$${RANLIB}" \
16618 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16619 mostlyclean) \
295f4e42
NN
16620 || exit 1
16621
d32ab992 16622@endif sed
295f4e42 16623
d32ab992
PB
16624.PHONY: maybe-clean-sed clean-sed
16625maybe-clean-sed:
16626@if sed
16627maybe-clean-sed: clean-sed
295f4e42 16628
d32ab992
PB
16629clean-sed:
16630 @[ -f ./sed/Makefile ] || exit 0; \
295f4e42
NN
16631 r=`${PWD_COMMAND}`; export r; \
16632 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16633 $(SET_LIB_PATH) \
4fc4dd12 16634 $(HOST_EXPORTS) \
d32ab992 16635 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
16636 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16637 done; \
d32ab992
PB
16638 echo "Doing clean in sed" ; \
16639 (cd sed && \
295f4e42
NN
16640 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16641 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16642 "RANLIB=$${RANLIB}" \
16643 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16644 clean) \
295f4e42
NN
16645 || exit 1
16646
d32ab992 16647@endif sed
295f4e42 16648
d32ab992
PB
16649.PHONY: maybe-distclean-sed distclean-sed
16650maybe-distclean-sed:
16651@if sed
16652maybe-distclean-sed: distclean-sed
295f4e42 16653
d32ab992
PB
16654distclean-sed:
16655 @[ -f ./sed/Makefile ] || exit 0; \
295f4e42
NN
16656 r=`${PWD_COMMAND}`; export r; \
16657 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16658 $(SET_LIB_PATH) \
4fc4dd12 16659 $(HOST_EXPORTS) \
d32ab992 16660 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
16661 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16662 done; \
d32ab992
PB
16663 echo "Doing distclean in sed" ; \
16664 (cd sed && \
295f4e42
NN
16665 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16666 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16667 "RANLIB=$${RANLIB}" \
16668 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16669 distclean) \
295f4e42
NN
16670 || exit 1
16671
d32ab992 16672@endif sed
295f4e42 16673
d32ab992
PB
16674.PHONY: maybe-maintainer-clean-sed maintainer-clean-sed
16675maybe-maintainer-clean-sed:
16676@if sed
16677maybe-maintainer-clean-sed: maintainer-clean-sed
295f4e42 16678
d32ab992
PB
16679maintainer-clean-sed:
16680 @[ -f ./sed/Makefile ] || exit 0; \
295f4e42
NN
16681 r=`${PWD_COMMAND}`; export r; \
16682 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16683 $(SET_LIB_PATH) \
4fc4dd12 16684 $(HOST_EXPORTS) \
d32ab992 16685 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
16686 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16687 done; \
d32ab992
PB
16688 echo "Doing maintainer-clean in sed" ; \
16689 (cd sed && \
295f4e42
NN
16690 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16691 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16692 "RANLIB=$${RANLIB}" \
16693 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16694 maintainer-clean) \
295f4e42 16695 || exit 1
7e2dbcef 16696
d32ab992 16697@endif sed
4977bab6
ZW
16698
16699
d32ab992
PB
16700.PHONY: configure-send-pr maybe-configure-send-pr
16701maybe-configure-send-pr:
16702@if send-pr
16703maybe-configure-send-pr: configure-send-pr
16704configure-send-pr:
16705 @test ! -f send-pr/Makefile || exit 0; \
16706 [ -d send-pr ] || mkdir send-pr; \
8c90b13a
L
16707 r=`${PWD_COMMAND}`; export r; \
16708 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16709 $(HOST_EXPORTS) \
d32ab992
PB
16710 echo Configuring in send-pr; \
16711 cd send-pr || exit 1; \
4977bab6
ZW
16712 case $(srcdir) in \
16713 \.) \
16714 srcdiroption="--srcdir=."; \
16715 libsrcdir=".";; \
16716 /* | [A-Za-z]:[\\/]*) \
d32ab992
PB
16717 srcdiroption="--srcdir=$(srcdir)/send-pr"; \
16718 libsrcdir="$$s/send-pr";; \
4977bab6 16719 *) \
d32ab992
PB
16720 srcdiroption="--srcdir=../$(srcdir)/send-pr"; \
16721 libsrcdir="$$s/send-pr";; \
4977bab6
ZW
16722 esac; \
16723 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 16724 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 16725 || exit 1
d32ab992 16726@endif send-pr
4977bab6 16727
d32ab992
PB
16728.PHONY: all-send-pr maybe-all-send-pr
16729maybe-all-send-pr:
16730@if send-pr
16731maybe-all-send-pr: all-send-pr
16732all-send-pr: configure-send-pr
8c90b13a
L
16733 @r=`${PWD_COMMAND}`; export r; \
16734 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 16735 $(SET_LIB_PATH) \
4fc4dd12 16736 $(HOST_EXPORTS) \
d32ab992
PB
16737 (cd send-pr && $(MAKE) $(FLAGS_TO_PASS) all)
16738@endif send-pr
4977bab6 16739
d32ab992
PB
16740.PHONY: check-send-pr maybe-check-send-pr
16741maybe-check-send-pr:
16742@if send-pr
16743maybe-check-send-pr: check-send-pr
4977bab6 16744
d32ab992 16745check-send-pr:
8c90b13a
L
16746 @r=`${PWD_COMMAND}`; export r; \
16747 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 16748 $(SET_LIB_PATH) \
4fc4dd12 16749 $(HOST_EXPORTS) \
7c27e184 16750 (cd send-pr && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 16751
d32ab992 16752@endif send-pr
4977bab6 16753
d32ab992
PB
16754.PHONY: install-send-pr maybe-install-send-pr
16755maybe-install-send-pr:
16756@if send-pr
16757maybe-install-send-pr: install-send-pr
7e2dbcef 16758
d32ab992 16759install-send-pr: installdirs
8c90b13a
L
16760 @r=`${PWD_COMMAND}`; export r; \
16761 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 16762 $(SET_LIB_PATH) \
4fc4dd12 16763 $(HOST_EXPORTS) \
7c27e184 16764 (cd send-pr && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6 16765
d32ab992 16766@endif send-pr
4977bab6 16767
295f4e42
NN
16768# Other targets (info, dvi, etc.)
16769
d32ab992
PB
16770.PHONY: maybe-info-send-pr info-send-pr
16771maybe-info-send-pr:
16772@if send-pr
16773maybe-info-send-pr: info-send-pr
295f4e42 16774
d32ab992
PB
16775info-send-pr: \
16776 configure-send-pr
16777 @[ -f ./send-pr/Makefile ] || exit 0; \
295f4e42
NN
16778 r=`${PWD_COMMAND}`; export r; \
16779 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16780 $(SET_LIB_PATH) \
4fc4dd12 16781 $(HOST_EXPORTS) \
d32ab992 16782 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
16783 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16784 done; \
d32ab992
PB
16785 echo "Doing info in send-pr" ; \
16786 (cd send-pr && \
295f4e42
NN
16787 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16788 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16789 "RANLIB=$${RANLIB}" \
16790 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16791 info) \
295f4e42
NN
16792 || exit 1
16793
d32ab992 16794@endif send-pr
295f4e42 16795
d32ab992
PB
16796.PHONY: maybe-dvi-send-pr dvi-send-pr
16797maybe-dvi-send-pr:
16798@if send-pr
16799maybe-dvi-send-pr: dvi-send-pr
295f4e42 16800
d32ab992
PB
16801dvi-send-pr: \
16802 configure-send-pr
16803 @[ -f ./send-pr/Makefile ] || exit 0; \
295f4e42
NN
16804 r=`${PWD_COMMAND}`; export r; \
16805 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16806 $(SET_LIB_PATH) \
4fc4dd12 16807 $(HOST_EXPORTS) \
d32ab992 16808 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
16809 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16810 done; \
d32ab992
PB
16811 echo "Doing dvi in send-pr" ; \
16812 (cd send-pr && \
295f4e42
NN
16813 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16814 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16815 "RANLIB=$${RANLIB}" \
16816 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16817 dvi) \
295f4e42
NN
16818 || exit 1
16819
d32ab992 16820@endif send-pr
295f4e42 16821
d32ab992
PB
16822.PHONY: maybe-TAGS-send-pr TAGS-send-pr
16823maybe-TAGS-send-pr:
16824@if send-pr
16825maybe-TAGS-send-pr: TAGS-send-pr
295f4e42 16826
d32ab992
PB
16827TAGS-send-pr: \
16828 configure-send-pr
16829 @[ -f ./send-pr/Makefile ] || exit 0; \
295f4e42
NN
16830 r=`${PWD_COMMAND}`; export r; \
16831 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16832 $(SET_LIB_PATH) \
4fc4dd12 16833 $(HOST_EXPORTS) \
d32ab992 16834 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
16835 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16836 done; \
d32ab992
PB
16837 echo "Doing TAGS in send-pr" ; \
16838 (cd send-pr && \
295f4e42
NN
16839 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16840 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16841 "RANLIB=$${RANLIB}" \
16842 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16843 TAGS) \
295f4e42
NN
16844 || exit 1
16845
d32ab992 16846@endif send-pr
295f4e42 16847
d32ab992
PB
16848.PHONY: maybe-install-info-send-pr install-info-send-pr
16849maybe-install-info-send-pr:
16850@if send-pr
16851maybe-install-info-send-pr: install-info-send-pr
295f4e42 16852
d32ab992
PB
16853install-info-send-pr: \
16854 configure-send-pr \
16855 info-send-pr
16856 @[ -f ./send-pr/Makefile ] || exit 0; \
295f4e42
NN
16857 r=`${PWD_COMMAND}`; export r; \
16858 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16859 $(SET_LIB_PATH) \
4fc4dd12 16860 $(HOST_EXPORTS) \
d32ab992 16861 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
16862 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16863 done; \
d32ab992
PB
16864 echo "Doing install-info in send-pr" ; \
16865 (cd send-pr && \
295f4e42
NN
16866 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16867 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16868 "RANLIB=$${RANLIB}" \
16869 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16870 install-info) \
295f4e42
NN
16871 || exit 1
16872
d32ab992 16873@endif send-pr
295f4e42 16874
d32ab992
PB
16875.PHONY: maybe-installcheck-send-pr installcheck-send-pr
16876maybe-installcheck-send-pr:
16877@if send-pr
16878maybe-installcheck-send-pr: installcheck-send-pr
295f4e42 16879
d32ab992
PB
16880installcheck-send-pr: \
16881 configure-send-pr
16882 @[ -f ./send-pr/Makefile ] || exit 0; \
295f4e42
NN
16883 r=`${PWD_COMMAND}`; export r; \
16884 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16885 $(SET_LIB_PATH) \
4fc4dd12 16886 $(HOST_EXPORTS) \
d32ab992 16887 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
16888 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16889 done; \
d32ab992
PB
16890 echo "Doing installcheck in send-pr" ; \
16891 (cd send-pr && \
295f4e42
NN
16892 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16893 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16894 "RANLIB=$${RANLIB}" \
16895 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16896 installcheck) \
295f4e42
NN
16897 || exit 1
16898
d32ab992 16899@endif send-pr
295f4e42 16900
d32ab992
PB
16901.PHONY: maybe-mostlyclean-send-pr mostlyclean-send-pr
16902maybe-mostlyclean-send-pr:
16903@if send-pr
16904maybe-mostlyclean-send-pr: mostlyclean-send-pr
295f4e42 16905
d32ab992
PB
16906mostlyclean-send-pr:
16907 @[ -f ./send-pr/Makefile ] || exit 0; \
295f4e42
NN
16908 r=`${PWD_COMMAND}`; export r; \
16909 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16910 $(SET_LIB_PATH) \
4fc4dd12 16911 $(HOST_EXPORTS) \
d32ab992 16912 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
16913 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16914 done; \
d32ab992
PB
16915 echo "Doing mostlyclean in send-pr" ; \
16916 (cd send-pr && \
295f4e42
NN
16917 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16918 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16919 "RANLIB=$${RANLIB}" \
16920 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16921 mostlyclean) \
295f4e42
NN
16922 || exit 1
16923
d32ab992 16924@endif send-pr
295f4e42 16925
d32ab992
PB
16926.PHONY: maybe-clean-send-pr clean-send-pr
16927maybe-clean-send-pr:
16928@if send-pr
16929maybe-clean-send-pr: clean-send-pr
295f4e42 16930
d32ab992
PB
16931clean-send-pr:
16932 @[ -f ./send-pr/Makefile ] || exit 0; \
295f4e42
NN
16933 r=`${PWD_COMMAND}`; export r; \
16934 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16935 $(SET_LIB_PATH) \
4fc4dd12 16936 $(HOST_EXPORTS) \
d32ab992 16937 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
16938 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16939 done; \
d32ab992
PB
16940 echo "Doing clean in send-pr" ; \
16941 (cd send-pr && \
295f4e42
NN
16942 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16943 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16944 "RANLIB=$${RANLIB}" \
16945 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16946 clean) \
295f4e42
NN
16947 || exit 1
16948
d32ab992 16949@endif send-pr
295f4e42 16950
d32ab992
PB
16951.PHONY: maybe-distclean-send-pr distclean-send-pr
16952maybe-distclean-send-pr:
16953@if send-pr
16954maybe-distclean-send-pr: distclean-send-pr
295f4e42 16955
d32ab992
PB
16956distclean-send-pr:
16957 @[ -f ./send-pr/Makefile ] || exit 0; \
295f4e42
NN
16958 r=`${PWD_COMMAND}`; export r; \
16959 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16960 $(SET_LIB_PATH) \
4fc4dd12 16961 $(HOST_EXPORTS) \
d32ab992 16962 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
16963 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16964 done; \
d32ab992
PB
16965 echo "Doing distclean in send-pr" ; \
16966 (cd send-pr && \
295f4e42
NN
16967 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16968 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16969 "RANLIB=$${RANLIB}" \
16970 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16971 distclean) \
295f4e42
NN
16972 || exit 1
16973
d32ab992 16974@endif send-pr
295f4e42 16975
d32ab992
PB
16976.PHONY: maybe-maintainer-clean-send-pr maintainer-clean-send-pr
16977maybe-maintainer-clean-send-pr:
16978@if send-pr
16979maybe-maintainer-clean-send-pr: maintainer-clean-send-pr
295f4e42 16980
d32ab992
PB
16981maintainer-clean-send-pr:
16982 @[ -f ./send-pr/Makefile ] || exit 0; \
295f4e42
NN
16983 r=`${PWD_COMMAND}`; export r; \
16984 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16985 $(SET_LIB_PATH) \
4fc4dd12 16986 $(HOST_EXPORTS) \
d32ab992 16987 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
16988 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16989 done; \
d32ab992
PB
16990 echo "Doing maintainer-clean in send-pr" ; \
16991 (cd send-pr && \
295f4e42
NN
16992 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16993 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16994 "RANLIB=$${RANLIB}" \
16995 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16996 maintainer-clean) \
295f4e42
NN
16997 || exit 1
16998
d32ab992 16999@endif send-pr
295f4e42
NN
17000
17001
d32ab992
PB
17002.PHONY: configure-shellutils maybe-configure-shellutils
17003maybe-configure-shellutils:
17004@if shellutils
17005maybe-configure-shellutils: configure-shellutils
17006configure-shellutils:
17007 @test ! -f shellutils/Makefile || exit 0; \
17008 [ -d shellutils ] || mkdir shellutils; \
8c90b13a
L
17009 r=`${PWD_COMMAND}`; export r; \
17010 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17011 $(HOST_EXPORTS) \
d32ab992
PB
17012 echo Configuring in shellutils; \
17013 cd shellutils || exit 1; \
4977bab6
ZW
17014 case $(srcdir) in \
17015 \.) \
17016 srcdiroption="--srcdir=."; \
17017 libsrcdir=".";; \
17018 /* | [A-Za-z]:[\\/]*) \
d32ab992
PB
17019 srcdiroption="--srcdir=$(srcdir)/shellutils"; \
17020 libsrcdir="$$s/shellutils";; \
4977bab6 17021 *) \
d32ab992
PB
17022 srcdiroption="--srcdir=../$(srcdir)/shellutils"; \
17023 libsrcdir="$$s/shellutils";; \
4977bab6
ZW
17024 esac; \
17025 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 17026 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 17027 || exit 1
d32ab992 17028@endif shellutils
4977bab6 17029
d32ab992
PB
17030.PHONY: all-shellutils maybe-all-shellutils
17031maybe-all-shellutils:
17032@if shellutils
17033maybe-all-shellutils: all-shellutils
17034all-shellutils: configure-shellutils
8c90b13a
L
17035 @r=`${PWD_COMMAND}`; export r; \
17036 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 17037 $(SET_LIB_PATH) \
4fc4dd12 17038 $(HOST_EXPORTS) \
d32ab992
PB
17039 (cd shellutils && $(MAKE) $(FLAGS_TO_PASS) all)
17040@endif shellutils
4977bab6 17041
d32ab992
PB
17042.PHONY: check-shellutils maybe-check-shellutils
17043maybe-check-shellutils:
17044@if shellutils
17045maybe-check-shellutils: check-shellutils
4977bab6 17046
d32ab992 17047check-shellutils:
295f4e42
NN
17048 @r=`${PWD_COMMAND}`; export r; \
17049 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17050 $(SET_LIB_PATH) \
4fc4dd12 17051 $(HOST_EXPORTS) \
7c27e184 17052 (cd shellutils && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 17053
d32ab992 17054@endif shellutils
4977bab6 17055
d32ab992
PB
17056.PHONY: install-shellutils maybe-install-shellutils
17057maybe-install-shellutils:
17058@if shellutils
17059maybe-install-shellutils: install-shellutils
7e2dbcef 17060
d32ab992 17061install-shellutils: installdirs
8c90b13a
L
17062 @r=`${PWD_COMMAND}`; export r; \
17063 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 17064 $(SET_LIB_PATH) \
4fc4dd12 17065 $(HOST_EXPORTS) \
7c27e184 17066 (cd shellutils && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6 17067
d32ab992 17068@endif shellutils
4977bab6 17069
295f4e42
NN
17070# Other targets (info, dvi, etc.)
17071
d32ab992
PB
17072.PHONY: maybe-info-shellutils info-shellutils
17073maybe-info-shellutils:
17074@if shellutils
17075maybe-info-shellutils: info-shellutils
295f4e42 17076
d32ab992
PB
17077info-shellutils: \
17078 configure-shellutils
17079 @[ -f ./shellutils/Makefile ] || exit 0; \
8c90b13a
L
17080 r=`${PWD_COMMAND}`; export r; \
17081 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
295f4e42 17082 $(SET_LIB_PATH) \
4fc4dd12 17083 $(HOST_EXPORTS) \
d32ab992 17084 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
17085 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17086 done; \
d32ab992
PB
17087 echo "Doing info in shellutils" ; \
17088 (cd shellutils && \
295f4e42
NN
17089 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17090 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17091 "RANLIB=$${RANLIB}" \
17092 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17093 info) \
4977bab6
ZW
17094 || exit 1
17095
d32ab992 17096@endif shellutils
295f4e42 17097
d32ab992
PB
17098.PHONY: maybe-dvi-shellutils dvi-shellutils
17099maybe-dvi-shellutils:
17100@if shellutils
17101maybe-dvi-shellutils: dvi-shellutils
295f4e42 17102
d32ab992
PB
17103dvi-shellutils: \
17104 configure-shellutils
17105 @[ -f ./shellutils/Makefile ] || exit 0; \
295f4e42 17106 r=`${PWD_COMMAND}`; export r; \
8c90b13a 17107 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 17108 $(SET_LIB_PATH) \
4fc4dd12 17109 $(HOST_EXPORTS) \
d32ab992 17110 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
17111 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17112 done; \
d32ab992
PB
17113 echo "Doing dvi in shellutils" ; \
17114 (cd shellutils && \
295f4e42
NN
17115 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17116 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17117 "RANLIB=$${RANLIB}" \
17118 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17119 dvi) \
295f4e42 17120 || exit 1
4977bab6 17121
d32ab992 17122@endif shellutils
4977bab6 17123
d32ab992
PB
17124.PHONY: maybe-TAGS-shellutils TAGS-shellutils
17125maybe-TAGS-shellutils:
17126@if shellutils
17127maybe-TAGS-shellutils: TAGS-shellutils
295f4e42 17128
d32ab992
PB
17129TAGS-shellutils: \
17130 configure-shellutils
17131 @[ -f ./shellutils/Makefile ] || exit 0; \
295f4e42 17132 r=`${PWD_COMMAND}`; export r; \
8c90b13a 17133 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 17134 $(SET_LIB_PATH) \
4fc4dd12 17135 $(HOST_EXPORTS) \
d32ab992 17136 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
17137 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17138 done; \
d32ab992
PB
17139 echo "Doing TAGS in shellutils" ; \
17140 (cd shellutils && \
295f4e42
NN
17141 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17142 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17143 "RANLIB=$${RANLIB}" \
17144 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17145 TAGS) \
295f4e42 17146 || exit 1
4977bab6 17147
d32ab992 17148@endif shellutils
4977bab6 17149
d32ab992
PB
17150.PHONY: maybe-install-info-shellutils install-info-shellutils
17151maybe-install-info-shellutils:
17152@if shellutils
17153maybe-install-info-shellutils: install-info-shellutils
7e2dbcef 17154
d32ab992
PB
17155install-info-shellutils: \
17156 configure-shellutils \
17157 info-shellutils
17158 @[ -f ./shellutils/Makefile ] || exit 0; \
295f4e42
NN
17159 r=`${PWD_COMMAND}`; export r; \
17160 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17161 $(SET_LIB_PATH) \
4fc4dd12 17162 $(HOST_EXPORTS) \
d32ab992 17163 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
17164 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17165 done; \
d32ab992
PB
17166 echo "Doing install-info in shellutils" ; \
17167 (cd shellutils && \
295f4e42
NN
17168 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17169 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17170 "RANLIB=$${RANLIB}" \
17171 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17172 install-info) \
295f4e42
NN
17173 || exit 1
17174
d32ab992 17175@endif shellutils
295f4e42 17176
d32ab992
PB
17177.PHONY: maybe-installcheck-shellutils installcheck-shellutils
17178maybe-installcheck-shellutils:
17179@if shellutils
17180maybe-installcheck-shellutils: installcheck-shellutils
295f4e42 17181
d32ab992
PB
17182installcheck-shellutils: \
17183 configure-shellutils
17184 @[ -f ./shellutils/Makefile ] || exit 0; \
295f4e42
NN
17185 r=`${PWD_COMMAND}`; export r; \
17186 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17187 $(SET_LIB_PATH) \
4fc4dd12 17188 $(HOST_EXPORTS) \
d32ab992 17189 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
17190 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17191 done; \
d32ab992
PB
17192 echo "Doing installcheck in shellutils" ; \
17193 (cd shellutils && \
295f4e42
NN
17194 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17195 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17196 "RANLIB=$${RANLIB}" \
17197 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17198 installcheck) \
295f4e42
NN
17199 || exit 1
17200
d32ab992 17201@endif shellutils
295f4e42 17202
d32ab992
PB
17203.PHONY: maybe-mostlyclean-shellutils mostlyclean-shellutils
17204maybe-mostlyclean-shellutils:
17205@if shellutils
17206maybe-mostlyclean-shellutils: mostlyclean-shellutils
295f4e42 17207
d32ab992
PB
17208mostlyclean-shellutils:
17209 @[ -f ./shellutils/Makefile ] || exit 0; \
295f4e42
NN
17210 r=`${PWD_COMMAND}`; export r; \
17211 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17212 $(SET_LIB_PATH) \
4fc4dd12 17213 $(HOST_EXPORTS) \
d32ab992 17214 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
17215 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17216 done; \
d32ab992
PB
17217 echo "Doing mostlyclean in shellutils" ; \
17218 (cd shellutils && \
295f4e42
NN
17219 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17220 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17221 "RANLIB=$${RANLIB}" \
17222 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17223 mostlyclean) \
295f4e42
NN
17224 || exit 1
17225
d32ab992 17226@endif shellutils
295f4e42 17227
d32ab992
PB
17228.PHONY: maybe-clean-shellutils clean-shellutils
17229maybe-clean-shellutils:
17230@if shellutils
17231maybe-clean-shellutils: clean-shellutils
295f4e42 17232
d32ab992
PB
17233clean-shellutils:
17234 @[ -f ./shellutils/Makefile ] || exit 0; \
295f4e42
NN
17235 r=`${PWD_COMMAND}`; export r; \
17236 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17237 $(SET_LIB_PATH) \
4fc4dd12 17238 $(HOST_EXPORTS) \
d32ab992 17239 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
17240 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17241 done; \
d32ab992
PB
17242 echo "Doing clean in shellutils" ; \
17243 (cd shellutils && \
295f4e42
NN
17244 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17245 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17246 "RANLIB=$${RANLIB}" \
17247 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17248 clean) \
295f4e42
NN
17249 || exit 1
17250
d32ab992 17251@endif shellutils
295f4e42 17252
d32ab992
PB
17253.PHONY: maybe-distclean-shellutils distclean-shellutils
17254maybe-distclean-shellutils:
17255@if shellutils
17256maybe-distclean-shellutils: distclean-shellutils
295f4e42 17257
d32ab992
PB
17258distclean-shellutils:
17259 @[ -f ./shellutils/Makefile ] || exit 0; \
295f4e42
NN
17260 r=`${PWD_COMMAND}`; export r; \
17261 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17262 $(SET_LIB_PATH) \
4fc4dd12 17263 $(HOST_EXPORTS) \
d32ab992 17264 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
17265 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17266 done; \
d32ab992
PB
17267 echo "Doing distclean in shellutils" ; \
17268 (cd shellutils && \
295f4e42
NN
17269 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17270 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17271 "RANLIB=$${RANLIB}" \
17272 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17273 distclean) \
295f4e42
NN
17274 || exit 1
17275
d32ab992 17276@endif shellutils
295f4e42 17277
d32ab992
PB
17278.PHONY: maybe-maintainer-clean-shellutils maintainer-clean-shellutils
17279maybe-maintainer-clean-shellutils:
17280@if shellutils
17281maybe-maintainer-clean-shellutils: maintainer-clean-shellutils
295f4e42 17282
d32ab992
PB
17283maintainer-clean-shellutils:
17284 @[ -f ./shellutils/Makefile ] || exit 0; \
295f4e42 17285 r=`${PWD_COMMAND}`; export r; \
8c90b13a 17286 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 17287 $(SET_LIB_PATH) \
4fc4dd12 17288 $(HOST_EXPORTS) \
d32ab992 17289 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
17290 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17291 done; \
d32ab992
PB
17292 echo "Doing maintainer-clean in shellutils" ; \
17293 (cd shellutils && \
295f4e42
NN
17294 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17295 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17296 "RANLIB=$${RANLIB}" \
17297 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17298 maintainer-clean) \
295f4e42 17299 || exit 1
4977bab6 17300
d32ab992 17301@endif shellutils
4977bab6 17302
295f4e42 17303
d32ab992
PB
17304.PHONY: configure-sid maybe-configure-sid
17305maybe-configure-sid:
17306@if sid
17307maybe-configure-sid: configure-sid
17308configure-sid:
17309 @test ! -f sid/Makefile || exit 0; \
17310 [ -d sid ] || mkdir sid; \
8c90b13a
L
17311 r=`${PWD_COMMAND}`; export r; \
17312 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17313 $(HOST_EXPORTS) \
d32ab992
PB
17314 echo Configuring in sid; \
17315 cd sid || exit 1; \
4977bab6
ZW
17316 case $(srcdir) in \
17317 \.) \
17318 srcdiroption="--srcdir=."; \
17319 libsrcdir=".";; \
17320 /* | [A-Za-z]:[\\/]*) \
d32ab992
PB
17321 srcdiroption="--srcdir=$(srcdir)/sid"; \
17322 libsrcdir="$$s/sid";; \
4977bab6 17323 *) \
d32ab992
PB
17324 srcdiroption="--srcdir=../$(srcdir)/sid"; \
17325 libsrcdir="$$s/sid";; \
4977bab6
ZW
17326 esac; \
17327 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 17328 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 17329 || exit 1
d32ab992 17330@endif sid
4977bab6 17331
d32ab992
PB
17332.PHONY: all-sid maybe-all-sid
17333maybe-all-sid:
17334@if sid
17335maybe-all-sid: all-sid
17336all-sid: configure-sid
8c90b13a
L
17337 @r=`${PWD_COMMAND}`; export r; \
17338 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 17339 $(SET_LIB_PATH) \
4fc4dd12 17340 $(HOST_EXPORTS) \
d32ab992
PB
17341 (cd sid && $(MAKE) $(FLAGS_TO_PASS) all)
17342@endif sid
4977bab6 17343
d32ab992
PB
17344.PHONY: check-sid maybe-check-sid
17345maybe-check-sid:
17346@if sid
17347maybe-check-sid: check-sid
4977bab6 17348
d32ab992 17349check-sid:
295f4e42
NN
17350 @r=`${PWD_COMMAND}`; export r; \
17351 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17352 $(SET_LIB_PATH) \
4fc4dd12 17353 $(HOST_EXPORTS) \
7c27e184 17354 (cd sid && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 17355
d32ab992 17356@endif sid
4977bab6 17357
d32ab992
PB
17358.PHONY: install-sid maybe-install-sid
17359maybe-install-sid:
17360@if sid
17361maybe-install-sid: install-sid
7e2dbcef 17362
d32ab992 17363install-sid: installdirs
8c90b13a
L
17364 @r=`${PWD_COMMAND}`; export r; \
17365 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 17366 $(SET_LIB_PATH) \
4fc4dd12 17367 $(HOST_EXPORTS) \
7c27e184 17368 (cd sid && $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 17369
d32ab992 17370@endif sid
295f4e42
NN
17371
17372# Other targets (info, dvi, etc.)
17373
d32ab992
PB
17374.PHONY: maybe-info-sid info-sid
17375maybe-info-sid:
17376@if sid
17377maybe-info-sid: info-sid
295f4e42 17378
d32ab992
PB
17379info-sid: \
17380 configure-sid
17381 @[ -f ./sid/Makefile ] || exit 0; \
295f4e42
NN
17382 r=`${PWD_COMMAND}`; export r; \
17383 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17384 $(SET_LIB_PATH) \
4fc4dd12 17385 $(HOST_EXPORTS) \
d32ab992 17386 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
17387 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17388 done; \
d32ab992
PB
17389 echo "Doing info in sid" ; \
17390 (cd sid && \
295f4e42
NN
17391 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17392 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17393 "RANLIB=$${RANLIB}" \
17394 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17395 info) \
295f4e42
NN
17396 || exit 1
17397
d32ab992 17398@endif sid
295f4e42 17399
d32ab992
PB
17400.PHONY: maybe-dvi-sid dvi-sid
17401maybe-dvi-sid:
17402@if sid
17403maybe-dvi-sid: dvi-sid
295f4e42 17404
d32ab992
PB
17405dvi-sid: \
17406 configure-sid
17407 @[ -f ./sid/Makefile ] || exit 0; \
295f4e42
NN
17408 r=`${PWD_COMMAND}`; export r; \
17409 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17410 $(SET_LIB_PATH) \
4fc4dd12 17411 $(HOST_EXPORTS) \
d32ab992 17412 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
17413 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17414 done; \
d32ab992
PB
17415 echo "Doing dvi in sid" ; \
17416 (cd sid && \
295f4e42
NN
17417 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17418 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17419 "RANLIB=$${RANLIB}" \
17420 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17421 dvi) \
295f4e42
NN
17422 || exit 1
17423
d32ab992 17424@endif sid
295f4e42 17425
d32ab992
PB
17426.PHONY: maybe-TAGS-sid TAGS-sid
17427maybe-TAGS-sid:
17428@if sid
17429maybe-TAGS-sid: TAGS-sid
295f4e42 17430
d32ab992
PB
17431TAGS-sid: \
17432 configure-sid
17433 @[ -f ./sid/Makefile ] || exit 0; \
295f4e42
NN
17434 r=`${PWD_COMMAND}`; export r; \
17435 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17436 $(SET_LIB_PATH) \
4fc4dd12 17437 $(HOST_EXPORTS) \
d32ab992 17438 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
17439 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17440 done; \
d32ab992
PB
17441 echo "Doing TAGS in sid" ; \
17442 (cd sid && \
295f4e42
NN
17443 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17444 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17445 "RANLIB=$${RANLIB}" \
17446 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17447 TAGS) \
295f4e42
NN
17448 || exit 1
17449
d32ab992 17450@endif sid
295f4e42 17451
d32ab992
PB
17452.PHONY: maybe-install-info-sid install-info-sid
17453maybe-install-info-sid:
17454@if sid
17455maybe-install-info-sid: install-info-sid
295f4e42 17456
d32ab992
PB
17457install-info-sid: \
17458 configure-sid \
17459 info-sid
17460 @[ -f ./sid/Makefile ] || exit 0; \
295f4e42
NN
17461 r=`${PWD_COMMAND}`; export r; \
17462 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17463 $(SET_LIB_PATH) \
4fc4dd12 17464 $(HOST_EXPORTS) \
d32ab992 17465 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
17466 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17467 done; \
d32ab992
PB
17468 echo "Doing install-info in sid" ; \
17469 (cd sid && \
295f4e42
NN
17470 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17471 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17472 "RANLIB=$${RANLIB}" \
17473 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17474 install-info) \
295f4e42
NN
17475 || exit 1
17476
d32ab992 17477@endif sid
295f4e42 17478
d32ab992
PB
17479.PHONY: maybe-installcheck-sid installcheck-sid
17480maybe-installcheck-sid:
17481@if sid
17482maybe-installcheck-sid: installcheck-sid
295f4e42 17483
d32ab992
PB
17484installcheck-sid: \
17485 configure-sid
17486 @[ -f ./sid/Makefile ] || exit 0; \
17487 r=`${PWD_COMMAND}`; export r; \
295f4e42
NN
17488 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17489 $(SET_LIB_PATH) \
4fc4dd12 17490 $(HOST_EXPORTS) \
d32ab992 17491 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
17492 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17493 done; \
d32ab992
PB
17494 echo "Doing installcheck in sid" ; \
17495 (cd sid && \
295f4e42
NN
17496 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17497 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17498 "RANLIB=$${RANLIB}" \
17499 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17500 installcheck) \
295f4e42
NN
17501 || exit 1
17502
d32ab992 17503@endif sid
295f4e42 17504
d32ab992
PB
17505.PHONY: maybe-mostlyclean-sid mostlyclean-sid
17506maybe-mostlyclean-sid:
17507@if sid
17508maybe-mostlyclean-sid: mostlyclean-sid
295f4e42 17509
d32ab992
PB
17510mostlyclean-sid:
17511 @[ -f ./sid/Makefile ] || exit 0; \
295f4e42
NN
17512 r=`${PWD_COMMAND}`; export r; \
17513 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17514 $(SET_LIB_PATH) \
4fc4dd12 17515 $(HOST_EXPORTS) \
d32ab992 17516 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
17517 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17518 done; \
d32ab992
PB
17519 echo "Doing mostlyclean in sid" ; \
17520 (cd sid && \
295f4e42
NN
17521 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17522 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17523 "RANLIB=$${RANLIB}" \
17524 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17525 mostlyclean) \
295f4e42
NN
17526 || exit 1
17527
d32ab992 17528@endif sid
295f4e42 17529
d32ab992
PB
17530.PHONY: maybe-clean-sid clean-sid
17531maybe-clean-sid:
17532@if sid
17533maybe-clean-sid: clean-sid
295f4e42 17534
d32ab992
PB
17535clean-sid:
17536 @[ -f ./sid/Makefile ] || exit 0; \
295f4e42
NN
17537 r=`${PWD_COMMAND}`; export r; \
17538 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17539 $(SET_LIB_PATH) \
4fc4dd12 17540 $(HOST_EXPORTS) \
d32ab992 17541 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
17542 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17543 done; \
d32ab992
PB
17544 echo "Doing clean in sid" ; \
17545 (cd sid && \
295f4e42
NN
17546 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17547 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17548 "RANLIB=$${RANLIB}" \
17549 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17550 clean) \
295f4e42
NN
17551 || exit 1
17552
d32ab992 17553@endif sid
295f4e42 17554
d32ab992
PB
17555.PHONY: maybe-distclean-sid distclean-sid
17556maybe-distclean-sid:
17557@if sid
17558maybe-distclean-sid: distclean-sid
295f4e42 17559
d32ab992
PB
17560distclean-sid:
17561 @[ -f ./sid/Makefile ] || exit 0; \
295f4e42
NN
17562 r=`${PWD_COMMAND}`; export r; \
17563 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17564 $(SET_LIB_PATH) \
4fc4dd12 17565 $(HOST_EXPORTS) \
d32ab992 17566 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
17567 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17568 done; \
d32ab992
PB
17569 echo "Doing distclean in sid" ; \
17570 (cd sid && \
295f4e42
NN
17571 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17572 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17573 "RANLIB=$${RANLIB}" \
17574 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17575 distclean) \
295f4e42
NN
17576 || exit 1
17577
d32ab992 17578@endif sid
295f4e42 17579
d32ab992
PB
17580.PHONY: maybe-maintainer-clean-sid maintainer-clean-sid
17581maybe-maintainer-clean-sid:
17582@if sid
17583maybe-maintainer-clean-sid: maintainer-clean-sid
295f4e42 17584
d32ab992
PB
17585maintainer-clean-sid:
17586 @[ -f ./sid/Makefile ] || exit 0; \
295f4e42
NN
17587 r=`${PWD_COMMAND}`; export r; \
17588 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17589 $(SET_LIB_PATH) \
4fc4dd12 17590 $(HOST_EXPORTS) \
d32ab992 17591 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
17592 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17593 done; \
d32ab992
PB
17594 echo "Doing maintainer-clean in sid" ; \
17595 (cd sid && \
295f4e42
NN
17596 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17597 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17598 "RANLIB=$${RANLIB}" \
17599 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17600 maintainer-clean) \
295f4e42 17601 || exit 1
4977bab6 17602
d32ab992 17603@endif sid
4977bab6 17604
295f4e42 17605
d32ab992
PB
17606.PHONY: configure-sim maybe-configure-sim
17607maybe-configure-sim:
17608@if sim
17609maybe-configure-sim: configure-sim
17610configure-sim:
17611 @test ! -f sim/Makefile || exit 0; \
17612 [ -d sim ] || mkdir sim; \
8c90b13a
L
17613 r=`${PWD_COMMAND}`; export r; \
17614 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17615 $(HOST_EXPORTS) \
d32ab992
PB
17616 echo Configuring in sim; \
17617 cd sim || exit 1; \
4977bab6
ZW
17618 case $(srcdir) in \
17619 \.) \
17620 srcdiroption="--srcdir=."; \
17621 libsrcdir=".";; \
17622 /* | [A-Za-z]:[\\/]*) \
d32ab992
PB
17623 srcdiroption="--srcdir=$(srcdir)/sim"; \
17624 libsrcdir="$$s/sim";; \
4977bab6 17625 *) \
d32ab992
PB
17626 srcdiroption="--srcdir=../$(srcdir)/sim"; \
17627 libsrcdir="$$s/sim";; \
4977bab6
ZW
17628 esac; \
17629 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 17630 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 17631 || exit 1
d32ab992 17632@endif sim
4977bab6 17633
d32ab992
PB
17634.PHONY: all-sim maybe-all-sim
17635maybe-all-sim:
17636@if sim
17637maybe-all-sim: all-sim
17638all-sim: configure-sim
8c90b13a
L
17639 @r=`${PWD_COMMAND}`; export r; \
17640 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 17641 $(SET_LIB_PATH) \
4fc4dd12 17642 $(HOST_EXPORTS) \
d32ab992
PB
17643 (cd sim && $(MAKE) $(FLAGS_TO_PASS) all)
17644@endif sim
4977bab6 17645
d32ab992
PB
17646.PHONY: check-sim maybe-check-sim
17647maybe-check-sim:
17648@if sim
17649maybe-check-sim: check-sim
4977bab6 17650
d32ab992 17651check-sim:
8c90b13a
L
17652 @r=`${PWD_COMMAND}`; export r; \
17653 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 17654 $(SET_LIB_PATH) \
4fc4dd12 17655 $(HOST_EXPORTS) \
7c27e184 17656 (cd sim && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 17657
d32ab992 17658@endif sim
4977bab6 17659
d32ab992
PB
17660.PHONY: install-sim maybe-install-sim
17661maybe-install-sim:
17662@if sim
17663maybe-install-sim: install-sim
7e2dbcef 17664
d32ab992 17665install-sim: installdirs
8c90b13a
L
17666 @r=`${PWD_COMMAND}`; export r; \
17667 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 17668 $(SET_LIB_PATH) \
4fc4dd12 17669 $(HOST_EXPORTS) \
7c27e184 17670 (cd sim && $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 17671
d32ab992 17672@endif sim
295f4e42
NN
17673
17674# Other targets (info, dvi, etc.)
17675
d32ab992
PB
17676.PHONY: maybe-info-sim info-sim
17677maybe-info-sim:
17678@if sim
17679maybe-info-sim: info-sim
295f4e42 17680
d32ab992
PB
17681info-sim: \
17682 configure-sim
17683 @[ -f ./sim/Makefile ] || exit 0; \
295f4e42
NN
17684 r=`${PWD_COMMAND}`; export r; \
17685 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17686 $(SET_LIB_PATH) \
4fc4dd12 17687 $(HOST_EXPORTS) \
d32ab992 17688 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
17689 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17690 done; \
d32ab992
PB
17691 echo "Doing info in sim" ; \
17692 (cd sim && \
295f4e42
NN
17693 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17694 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17695 "RANLIB=$${RANLIB}" \
17696 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17697 info) \
295f4e42
NN
17698 || exit 1
17699
d32ab992 17700@endif sim
295f4e42 17701
d32ab992
PB
17702.PHONY: maybe-dvi-sim dvi-sim
17703maybe-dvi-sim:
17704@if sim
17705maybe-dvi-sim: dvi-sim
295f4e42 17706
d32ab992
PB
17707dvi-sim: \
17708 configure-sim
17709 @[ -f ./sim/Makefile ] || exit 0; \
295f4e42
NN
17710 r=`${PWD_COMMAND}`; export r; \
17711 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17712 $(SET_LIB_PATH) \
4fc4dd12 17713 $(HOST_EXPORTS) \
d32ab992 17714 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
17715 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17716 done; \
d32ab992
PB
17717 echo "Doing dvi in sim" ; \
17718 (cd sim && \
295f4e42
NN
17719 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17720 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17721 "RANLIB=$${RANLIB}" \
17722 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17723 dvi) \
295f4e42
NN
17724 || exit 1
17725
d32ab992 17726@endif sim
295f4e42 17727
d32ab992
PB
17728.PHONY: maybe-TAGS-sim TAGS-sim
17729maybe-TAGS-sim:
17730@if sim
17731maybe-TAGS-sim: TAGS-sim
295f4e42 17732
d32ab992
PB
17733TAGS-sim: \
17734 configure-sim
17735 @[ -f ./sim/Makefile ] || exit 0; \
295f4e42
NN
17736 r=`${PWD_COMMAND}`; export r; \
17737 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17738 $(SET_LIB_PATH) \
4fc4dd12 17739 $(HOST_EXPORTS) \
d32ab992 17740 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
17741 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17742 done; \
d32ab992
PB
17743 echo "Doing TAGS in sim" ; \
17744 (cd sim && \
295f4e42
NN
17745 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17746 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17747 "RANLIB=$${RANLIB}" \
17748 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17749 TAGS) \
295f4e42
NN
17750 || exit 1
17751
d32ab992 17752@endif sim
295f4e42 17753
d32ab992
PB
17754.PHONY: maybe-install-info-sim install-info-sim
17755maybe-install-info-sim:
17756@if sim
17757maybe-install-info-sim: install-info-sim
295f4e42 17758
d32ab992
PB
17759install-info-sim: \
17760 configure-sim \
17761 info-sim
17762 @[ -f ./sim/Makefile ] || exit 0; \
295f4e42
NN
17763 r=`${PWD_COMMAND}`; export r; \
17764 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17765 $(SET_LIB_PATH) \
4fc4dd12 17766 $(HOST_EXPORTS) \
d32ab992 17767 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
17768 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17769 done; \
d32ab992
PB
17770 echo "Doing install-info in sim" ; \
17771 (cd sim && \
295f4e42
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}" \
d32ab992 17776 install-info) \
295f4e42
NN
17777 || exit 1
17778
d32ab992 17779@endif sim
295f4e42 17780
d32ab992
PB
17781.PHONY: maybe-installcheck-sim installcheck-sim
17782maybe-installcheck-sim:
17783@if sim
17784maybe-installcheck-sim: installcheck-sim
295f4e42 17785
d32ab992
PB
17786installcheck-sim: \
17787 configure-sim
17788 @[ -f ./sim/Makefile ] || exit 0; \
295f4e42
NN
17789 r=`${PWD_COMMAND}`; export r; \
17790 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17791 $(SET_LIB_PATH) \
4fc4dd12 17792 $(HOST_EXPORTS) \
d32ab992 17793 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
17794 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17795 done; \
d32ab992
PB
17796 echo "Doing installcheck in sim" ; \
17797 (cd sim && \
295f4e42
NN
17798 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17799 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17800 "RANLIB=$${RANLIB}" \
17801 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17802 installcheck) \
295f4e42
NN
17803 || exit 1
17804
d32ab992 17805@endif sim
295f4e42 17806
d32ab992
PB
17807.PHONY: maybe-mostlyclean-sim mostlyclean-sim
17808maybe-mostlyclean-sim:
17809@if sim
17810maybe-mostlyclean-sim: mostlyclean-sim
295f4e42 17811
d32ab992
PB
17812mostlyclean-sim:
17813 @[ -f ./sim/Makefile ] || exit 0; \
295f4e42
NN
17814 r=`${PWD_COMMAND}`; export r; \
17815 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17816 $(SET_LIB_PATH) \
4fc4dd12 17817 $(HOST_EXPORTS) \
d32ab992 17818 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
17819 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17820 done; \
d32ab992
PB
17821 echo "Doing mostlyclean in sim" ; \
17822 (cd sim && \
295f4e42
NN
17823 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17824 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17825 "RANLIB=$${RANLIB}" \
17826 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17827 mostlyclean) \
295f4e42
NN
17828 || exit 1
17829
d32ab992 17830@endif sim
295f4e42 17831
d32ab992
PB
17832.PHONY: maybe-clean-sim clean-sim
17833maybe-clean-sim:
17834@if sim
17835maybe-clean-sim: clean-sim
295f4e42 17836
d32ab992
PB
17837clean-sim:
17838 @[ -f ./sim/Makefile ] || exit 0; \
295f4e42
NN
17839 r=`${PWD_COMMAND}`; export r; \
17840 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17841 $(SET_LIB_PATH) \
4fc4dd12 17842 $(HOST_EXPORTS) \
d32ab992 17843 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
17844 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17845 done; \
d32ab992
PB
17846 echo "Doing clean in sim" ; \
17847 (cd sim && \
295f4e42
NN
17848 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17849 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17850 "RANLIB=$${RANLIB}" \
17851 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17852 clean) \
295f4e42
NN
17853 || exit 1
17854
d32ab992 17855@endif sim
295f4e42 17856
d32ab992
PB
17857.PHONY: maybe-distclean-sim distclean-sim
17858maybe-distclean-sim:
17859@if sim
17860maybe-distclean-sim: distclean-sim
295f4e42 17861
d32ab992
PB
17862distclean-sim:
17863 @[ -f ./sim/Makefile ] || exit 0; \
295f4e42
NN
17864 r=`${PWD_COMMAND}`; export r; \
17865 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17866 $(SET_LIB_PATH) \
4fc4dd12 17867 $(HOST_EXPORTS) \
d32ab992 17868 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
17869 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17870 done; \
d32ab992
PB
17871 echo "Doing distclean in sim" ; \
17872 (cd sim && \
295f4e42
NN
17873 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17874 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17875 "RANLIB=$${RANLIB}" \
17876 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17877 distclean) \
295f4e42
NN
17878 || exit 1
17879
d32ab992 17880@endif sim
295f4e42 17881
d32ab992
PB
17882.PHONY: maybe-maintainer-clean-sim maintainer-clean-sim
17883maybe-maintainer-clean-sim:
17884@if sim
17885maybe-maintainer-clean-sim: maintainer-clean-sim
295f4e42 17886
d32ab992
PB
17887maintainer-clean-sim:
17888 @[ -f ./sim/Makefile ] || exit 0; \
295f4e42
NN
17889 r=`${PWD_COMMAND}`; export r; \
17890 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17891 $(SET_LIB_PATH) \
4fc4dd12 17892 $(HOST_EXPORTS) \
d32ab992 17893 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
17894 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17895 done; \
d32ab992
PB
17896 echo "Doing maintainer-clean in sim" ; \
17897 (cd sim && \
295f4e42
NN
17898 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17899 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17900 "RANLIB=$${RANLIB}" \
17901 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17902 maintainer-clean) \
295f4e42
NN
17903 || exit 1
17904
d32ab992 17905@endif sim
4977bab6
ZW
17906
17907
d32ab992
PB
17908.PHONY: configure-tar maybe-configure-tar
17909maybe-configure-tar:
17910@if tar
17911maybe-configure-tar: configure-tar
17912configure-tar:
17913 @test ! -f tar/Makefile || exit 0; \
17914 [ -d tar ] || mkdir tar; \
8c90b13a
L
17915 r=`${PWD_COMMAND}`; export r; \
17916 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17917 $(HOST_EXPORTS) \
d32ab992
PB
17918 echo Configuring in tar; \
17919 cd tar || exit 1; \
4977bab6
ZW
17920 case $(srcdir) in \
17921 \.) \
17922 srcdiroption="--srcdir=."; \
17923 libsrcdir=".";; \
17924 /* | [A-Za-z]:[\\/]*) \
d32ab992
PB
17925 srcdiroption="--srcdir=$(srcdir)/tar"; \
17926 libsrcdir="$$s/tar";; \
4977bab6 17927 *) \
d32ab992
PB
17928 srcdiroption="--srcdir=../$(srcdir)/tar"; \
17929 libsrcdir="$$s/tar";; \
4977bab6
ZW
17930 esac; \
17931 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 17932 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 17933 || exit 1
d32ab992 17934@endif tar
4977bab6 17935
d32ab992
PB
17936.PHONY: all-tar maybe-all-tar
17937maybe-all-tar:
17938@if tar
17939maybe-all-tar: all-tar
17940all-tar: configure-tar
8c90b13a
L
17941 @r=`${PWD_COMMAND}`; export r; \
17942 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 17943 $(SET_LIB_PATH) \
4fc4dd12 17944 $(HOST_EXPORTS) \
d32ab992
PB
17945 (cd tar && $(MAKE) $(FLAGS_TO_PASS) all)
17946@endif tar
4977bab6 17947
d32ab992
PB
17948.PHONY: check-tar maybe-check-tar
17949maybe-check-tar:
17950@if tar
17951maybe-check-tar: check-tar
4977bab6 17952
d32ab992 17953check-tar:
8c90b13a
L
17954 @r=`${PWD_COMMAND}`; export r; \
17955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 17956 $(SET_LIB_PATH) \
4fc4dd12 17957 $(HOST_EXPORTS) \
7c27e184 17958 (cd tar && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 17959
d32ab992 17960@endif tar
4977bab6 17961
d32ab992
PB
17962.PHONY: install-tar maybe-install-tar
17963maybe-install-tar:
17964@if tar
17965maybe-install-tar: install-tar
7e2dbcef 17966
d32ab992
PB
17967install-tar: installdirs
17968 @r=`${PWD_COMMAND}`; export r; \
17969 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17970 $(SET_LIB_PATH) \
17971 $(HOST_EXPORTS) \
7c27e184 17972 (cd tar && $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 17973
d32ab992 17974@endif tar
295f4e42
NN
17975
17976# Other targets (info, dvi, etc.)
17977
d32ab992
PB
17978.PHONY: maybe-info-tar info-tar
17979maybe-info-tar:
17980@if tar
17981maybe-info-tar: info-tar
295f4e42 17982
d32ab992
PB
17983info-tar: \
17984 configure-tar
17985 @[ -f ./tar/Makefile ] || exit 0; \
295f4e42 17986 r=`${PWD_COMMAND}`; export r; \
8c90b13a 17987 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 17988 $(SET_LIB_PATH) \
4fc4dd12 17989 $(HOST_EXPORTS) \
d32ab992 17990 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
17991 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17992 done; \
d32ab992
PB
17993 echo "Doing info in tar" ; \
17994 (cd tar && \
295f4e42
NN
17995 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17996 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17997 "RANLIB=$${RANLIB}" \
17998 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17999 info) \
295f4e42 18000 || exit 1
4977bab6 18001
d32ab992 18002@endif tar
4977bab6 18003
d32ab992
PB
18004.PHONY: maybe-dvi-tar dvi-tar
18005maybe-dvi-tar:
18006@if tar
18007maybe-dvi-tar: dvi-tar
295f4e42 18008
d32ab992
PB
18009dvi-tar: \
18010 configure-tar
18011 @[ -f ./tar/Makefile ] || exit 0; \
8c90b13a
L
18012 r=`${PWD_COMMAND}`; export r; \
18013 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
295f4e42 18014 $(SET_LIB_PATH) \
4fc4dd12 18015 $(HOST_EXPORTS) \
d32ab992 18016 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
18017 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18018 done; \
d32ab992
PB
18019 echo "Doing dvi in tar" ; \
18020 (cd tar && \
295f4e42
NN
18021 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18022 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18023 "RANLIB=$${RANLIB}" \
18024 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18025 dvi) \
4977bab6
ZW
18026 || exit 1
18027
d32ab992 18028@endif tar
295f4e42 18029
d32ab992
PB
18030.PHONY: maybe-TAGS-tar TAGS-tar
18031maybe-TAGS-tar:
18032@if tar
18033maybe-TAGS-tar: TAGS-tar
295f4e42 18034
d32ab992
PB
18035TAGS-tar: \
18036 configure-tar
18037 @[ -f ./tar/Makefile ] || exit 0; \
295f4e42 18038 r=`${PWD_COMMAND}`; export r; \
8c90b13a 18039 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 18040 $(SET_LIB_PATH) \
4fc4dd12 18041 $(HOST_EXPORTS) \
d32ab992 18042 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
18043 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18044 done; \
d32ab992
PB
18045 echo "Doing TAGS in tar" ; \
18046 (cd tar && \
295f4e42
NN
18047 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18048 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18049 "RANLIB=$${RANLIB}" \
18050 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18051 TAGS) \
295f4e42 18052 || exit 1
4977bab6 18053
d32ab992 18054@endif tar
4977bab6 18055
d32ab992
PB
18056.PHONY: maybe-install-info-tar install-info-tar
18057maybe-install-info-tar:
18058@if tar
18059maybe-install-info-tar: install-info-tar
295f4e42 18060
d32ab992
PB
18061install-info-tar: \
18062 configure-tar \
18063 info-tar
18064 @[ -f ./tar/Makefile ] || exit 0; \
295f4e42 18065 r=`${PWD_COMMAND}`; export r; \
8c90b13a 18066 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 18067 $(SET_LIB_PATH) \
4fc4dd12 18068 $(HOST_EXPORTS) \
d32ab992 18069 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
18070 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18071 done; \
d32ab992
PB
18072 echo "Doing install-info in tar" ; \
18073 (cd tar && \
18074 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
295f4e42
NN
18075 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18076 "RANLIB=$${RANLIB}" \
18077 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18078 install-info) \
295f4e42 18079 || exit 1
4977bab6 18080
d32ab992 18081@endif tar
4977bab6 18082
d32ab992
PB
18083.PHONY: maybe-installcheck-tar installcheck-tar
18084maybe-installcheck-tar:
18085@if tar
18086maybe-installcheck-tar: installcheck-tar
295f4e42 18087
d32ab992
PB
18088installcheck-tar: \
18089 configure-tar
18090 @[ -f ./tar/Makefile ] || exit 0; \
295f4e42
NN
18091 r=`${PWD_COMMAND}`; export r; \
18092 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18093 $(SET_LIB_PATH) \
4fc4dd12 18094 $(HOST_EXPORTS) \
d32ab992 18095 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
18096 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18097 done; \
d32ab992
PB
18098 echo "Doing installcheck in tar" ; \
18099 (cd tar && \
295f4e42
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}" \
d32ab992 18104 installcheck) \
295f4e42
NN
18105 || exit 1
18106
d32ab992 18107@endif tar
295f4e42 18108
d32ab992
PB
18109.PHONY: maybe-mostlyclean-tar mostlyclean-tar
18110maybe-mostlyclean-tar:
18111@if tar
18112maybe-mostlyclean-tar: mostlyclean-tar
295f4e42 18113
d32ab992
PB
18114mostlyclean-tar:
18115 @[ -f ./tar/Makefile ] || exit 0; \
295f4e42
NN
18116 r=`${PWD_COMMAND}`; export r; \
18117 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18118 $(SET_LIB_PATH) \
4fc4dd12 18119 $(HOST_EXPORTS) \
d32ab992 18120 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
18121 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18122 done; \
d32ab992
PB
18123 echo "Doing mostlyclean in tar" ; \
18124 (cd tar && \
295f4e42
NN
18125 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18126 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18127 "RANLIB=$${RANLIB}" \
18128 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18129 mostlyclean) \
295f4e42
NN
18130 || exit 1
18131
d32ab992 18132@endif tar
295f4e42 18133
d32ab992
PB
18134.PHONY: maybe-clean-tar clean-tar
18135maybe-clean-tar:
18136@if tar
18137maybe-clean-tar: clean-tar
295f4e42 18138
d32ab992
PB
18139clean-tar:
18140 @[ -f ./tar/Makefile ] || exit 0; \
295f4e42
NN
18141 r=`${PWD_COMMAND}`; export r; \
18142 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18143 $(SET_LIB_PATH) \
4fc4dd12 18144 $(HOST_EXPORTS) \
d32ab992 18145 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
18146 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18147 done; \
d32ab992
PB
18148 echo "Doing clean in tar" ; \
18149 (cd tar && \
295f4e42
NN
18150 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18151 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18152 "RANLIB=$${RANLIB}" \
18153 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18154 clean) \
295f4e42
NN
18155 || exit 1
18156
d32ab992 18157@endif tar
295f4e42 18158
d32ab992
PB
18159.PHONY: maybe-distclean-tar distclean-tar
18160maybe-distclean-tar:
18161@if tar
18162maybe-distclean-tar: distclean-tar
295f4e42 18163
d32ab992
PB
18164distclean-tar:
18165 @[ -f ./tar/Makefile ] || exit 0; \
295f4e42
NN
18166 r=`${PWD_COMMAND}`; export r; \
18167 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18168 $(SET_LIB_PATH) \
4fc4dd12 18169 $(HOST_EXPORTS) \
d32ab992 18170 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
18171 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18172 done; \
d32ab992
PB
18173 echo "Doing distclean in tar" ; \
18174 (cd tar && \
295f4e42
NN
18175 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18176 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18177 "RANLIB=$${RANLIB}" \
18178 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18179 distclean) \
295f4e42
NN
18180 || exit 1
18181
d32ab992 18182@endif tar
295f4e42 18183
d32ab992
PB
18184.PHONY: maybe-maintainer-clean-tar maintainer-clean-tar
18185maybe-maintainer-clean-tar:
18186@if tar
18187maybe-maintainer-clean-tar: maintainer-clean-tar
7e2dbcef 18188
d32ab992
PB
18189maintainer-clean-tar:
18190 @[ -f ./tar/Makefile ] || exit 0; \
295f4e42 18191 r=`${PWD_COMMAND}`; export r; \
8c90b13a 18192 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 18193 $(SET_LIB_PATH) \
4fc4dd12 18194 $(HOST_EXPORTS) \
d32ab992 18195 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
18196 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18197 done; \
d32ab992
PB
18198 echo "Doing maintainer-clean in tar" ; \
18199 (cd tar && \
295f4e42
NN
18200 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18201 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18202 "RANLIB=$${RANLIB}" \
18203 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18204 maintainer-clean) \
295f4e42 18205 || exit 1
4977bab6 18206
d32ab992 18207@endif tar
4977bab6 18208
295f4e42 18209
d32ab992
PB
18210.PHONY: configure-texinfo maybe-configure-texinfo
18211maybe-configure-texinfo:
18212@if texinfo
18213maybe-configure-texinfo: configure-texinfo
18214configure-texinfo:
18215 @test ! -f texinfo/Makefile || exit 0; \
18216 [ -d texinfo ] || mkdir texinfo; \
4fc4dd12
DJ
18217 r=`${PWD_COMMAND}`; export r; \
18218 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18219 $(HOST_EXPORTS) \
d32ab992
PB
18220 echo Configuring in texinfo; \
18221 cd texinfo || exit 1; \
4977bab6
ZW
18222 case $(srcdir) in \
18223 \.) \
18224 srcdiroption="--srcdir=."; \
18225 libsrcdir=".";; \
18226 /* | [A-Za-z]:[\\/]*) \
d32ab992
PB
18227 srcdiroption="--srcdir=$(srcdir)/texinfo"; \
18228 libsrcdir="$$s/texinfo";; \
4977bab6 18229 *) \
d32ab992
PB
18230 srcdiroption="--srcdir=../$(srcdir)/texinfo"; \
18231 libsrcdir="$$s/texinfo";; \
4977bab6
ZW
18232 esac; \
18233 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 18234 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 18235 || exit 1
d32ab992 18236@endif texinfo
4977bab6 18237
d32ab992
PB
18238.PHONY: all-texinfo maybe-all-texinfo
18239maybe-all-texinfo:
18240@if texinfo
18241maybe-all-texinfo: all-texinfo
18242all-texinfo: configure-texinfo
8c90b13a
L
18243 @r=`${PWD_COMMAND}`; export r; \
18244 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 18245 $(SET_LIB_PATH) \
4fc4dd12 18246 $(HOST_EXPORTS) \
d32ab992
PB
18247 (cd texinfo && $(MAKE) $(FLAGS_TO_PASS) all)
18248@endif texinfo
4977bab6 18249
d32ab992
PB
18250.PHONY: check-texinfo maybe-check-texinfo
18251maybe-check-texinfo:
18252@if texinfo
18253maybe-check-texinfo: check-texinfo
4977bab6 18254
d32ab992 18255check-texinfo:
295f4e42
NN
18256 @r=`${PWD_COMMAND}`; export r; \
18257 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18258 $(SET_LIB_PATH) \
4fc4dd12 18259 $(HOST_EXPORTS) \
7c27e184 18260 (cd texinfo && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 18261
d32ab992 18262@endif texinfo
4977bab6 18263
d32ab992
PB
18264.PHONY: install-texinfo maybe-install-texinfo
18265maybe-install-texinfo:
18266@if texinfo
18267maybe-install-texinfo: install-texinfo
7e2dbcef 18268
d32ab992 18269install-texinfo:
295f4e42 18270
d32ab992 18271@endif texinfo
295f4e42
NN
18272
18273# Other targets (info, dvi, etc.)
18274
d32ab992
PB
18275.PHONY: maybe-info-texinfo info-texinfo
18276maybe-info-texinfo:
18277@if texinfo
18278maybe-info-texinfo: info-texinfo
295f4e42 18279
d32ab992
PB
18280info-texinfo: \
18281 configure-texinfo
18282 @[ -f ./texinfo/Makefile ] || exit 0; \
295f4e42
NN
18283 r=`${PWD_COMMAND}`; export r; \
18284 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18285 $(SET_LIB_PATH) \
4fc4dd12 18286 $(HOST_EXPORTS) \
d32ab992 18287 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
18288 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18289 done; \
d32ab992
PB
18290 echo "Doing info in texinfo" ; \
18291 (cd texinfo && \
295f4e42
NN
18292 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18293 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18294 "RANLIB=$${RANLIB}" \
18295 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18296 info) \
295f4e42
NN
18297 || exit 1
18298
d32ab992 18299@endif texinfo
295f4e42 18300
d32ab992
PB
18301.PHONY: maybe-dvi-texinfo dvi-texinfo
18302maybe-dvi-texinfo:
18303@if texinfo
18304maybe-dvi-texinfo: dvi-texinfo
295f4e42 18305
d32ab992
PB
18306dvi-texinfo: \
18307 configure-texinfo
18308 @[ -f ./texinfo/Makefile ] || exit 0; \
295f4e42
NN
18309 r=`${PWD_COMMAND}`; export r; \
18310 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18311 $(SET_LIB_PATH) \
4fc4dd12 18312 $(HOST_EXPORTS) \
d32ab992 18313 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
18314 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18315 done; \
d32ab992
PB
18316 echo "Doing dvi in texinfo" ; \
18317 (cd texinfo && \
295f4e42
NN
18318 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18319 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18320 "RANLIB=$${RANLIB}" \
18321 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18322 dvi) \
295f4e42
NN
18323 || exit 1
18324
d32ab992 18325@endif texinfo
295f4e42 18326
d32ab992
PB
18327.PHONY: maybe-TAGS-texinfo TAGS-texinfo
18328maybe-TAGS-texinfo:
18329@if texinfo
18330maybe-TAGS-texinfo: TAGS-texinfo
295f4e42 18331
d32ab992
PB
18332TAGS-texinfo: \
18333 configure-texinfo
18334 @[ -f ./texinfo/Makefile ] || exit 0; \
295f4e42
NN
18335 r=`${PWD_COMMAND}`; export r; \
18336 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18337 $(SET_LIB_PATH) \
4fc4dd12 18338 $(HOST_EXPORTS) \
d32ab992 18339 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
18340 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18341 done; \
d32ab992
PB
18342 echo "Doing TAGS in texinfo" ; \
18343 (cd texinfo && \
295f4e42
NN
18344 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18345 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18346 "RANLIB=$${RANLIB}" \
18347 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18348 TAGS) \
295f4e42
NN
18349 || exit 1
18350
d32ab992 18351@endif texinfo
295f4e42 18352
d32ab992
PB
18353.PHONY: maybe-install-info-texinfo install-info-texinfo
18354maybe-install-info-texinfo:
18355@if texinfo
18356maybe-install-info-texinfo: install-info-texinfo
295f4e42 18357
d32ab992
PB
18358install-info-texinfo: \
18359 configure-texinfo \
18360 info-texinfo
18361 @[ -f ./texinfo/Makefile ] || exit 0; \
295f4e42
NN
18362 r=`${PWD_COMMAND}`; export r; \
18363 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18364 $(SET_LIB_PATH) \
4fc4dd12 18365 $(HOST_EXPORTS) \
d32ab992 18366 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
18367 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18368 done; \
d32ab992
PB
18369 echo "Doing install-info in texinfo" ; \
18370 (cd texinfo && \
295f4e42
NN
18371 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18372 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18373 "RANLIB=$${RANLIB}" \
18374 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18375 install-info) \
295f4e42
NN
18376 || exit 1
18377
d32ab992 18378@endif texinfo
295f4e42 18379
d32ab992
PB
18380.PHONY: maybe-installcheck-texinfo installcheck-texinfo
18381maybe-installcheck-texinfo:
18382@if texinfo
18383maybe-installcheck-texinfo: installcheck-texinfo
295f4e42 18384
d32ab992
PB
18385installcheck-texinfo: \
18386 configure-texinfo
18387 @[ -f ./texinfo/Makefile ] || exit 0; \
295f4e42
NN
18388 r=`${PWD_COMMAND}`; export r; \
18389 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18390 $(SET_LIB_PATH) \
4fc4dd12 18391 $(HOST_EXPORTS) \
d32ab992 18392 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
18393 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18394 done; \
d32ab992
PB
18395 echo "Doing installcheck in texinfo" ; \
18396 (cd texinfo && \
295f4e42
NN
18397 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18398 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18399 "RANLIB=$${RANLIB}" \
18400 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18401 installcheck) \
295f4e42
NN
18402 || exit 1
18403
d32ab992 18404@endif texinfo
295f4e42 18405
d32ab992
PB
18406.PHONY: maybe-mostlyclean-texinfo mostlyclean-texinfo
18407maybe-mostlyclean-texinfo:
18408@if texinfo
18409maybe-mostlyclean-texinfo: mostlyclean-texinfo
295f4e42 18410
d32ab992
PB
18411mostlyclean-texinfo:
18412 @[ -f ./texinfo/Makefile ] || exit 0; \
295f4e42
NN
18413 r=`${PWD_COMMAND}`; export r; \
18414 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18415 $(SET_LIB_PATH) \
4fc4dd12 18416 $(HOST_EXPORTS) \
d32ab992 18417 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
18418 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18419 done; \
d32ab992
PB
18420 echo "Doing mostlyclean in texinfo" ; \
18421 (cd texinfo && \
295f4e42
NN
18422 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18423 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18424 "RANLIB=$${RANLIB}" \
18425 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18426 mostlyclean) \
295f4e42
NN
18427 || exit 1
18428
d32ab992 18429@endif texinfo
295f4e42 18430
d32ab992
PB
18431.PHONY: maybe-clean-texinfo clean-texinfo
18432maybe-clean-texinfo:
18433@if texinfo
18434maybe-clean-texinfo: clean-texinfo
295f4e42 18435
d32ab992
PB
18436clean-texinfo:
18437 @[ -f ./texinfo/Makefile ] || exit 0; \
295f4e42
NN
18438 r=`${PWD_COMMAND}`; export r; \
18439 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18440 $(SET_LIB_PATH) \
4fc4dd12 18441 $(HOST_EXPORTS) \
d32ab992 18442 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
18443 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18444 done; \
d32ab992
PB
18445 echo "Doing clean in texinfo" ; \
18446 (cd texinfo && \
295f4e42
NN
18447 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18448 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18449 "RANLIB=$${RANLIB}" \
18450 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18451 clean) \
295f4e42
NN
18452 || exit 1
18453
d32ab992 18454@endif texinfo
295f4e42 18455
d32ab992
PB
18456.PHONY: maybe-distclean-texinfo distclean-texinfo
18457maybe-distclean-texinfo:
18458@if texinfo
18459maybe-distclean-texinfo: distclean-texinfo
295f4e42 18460
d32ab992
PB
18461distclean-texinfo:
18462 @[ -f ./texinfo/Makefile ] || exit 0; \
295f4e42
NN
18463 r=`${PWD_COMMAND}`; export r; \
18464 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18465 $(SET_LIB_PATH) \
4fc4dd12 18466 $(HOST_EXPORTS) \
d32ab992 18467 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
18468 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18469 done; \
d32ab992
PB
18470 echo "Doing distclean in texinfo" ; \
18471 (cd texinfo && \
295f4e42
NN
18472 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18473 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18474 "RANLIB=$${RANLIB}" \
18475 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18476 distclean) \
295f4e42
NN
18477 || exit 1
18478
d32ab992 18479@endif texinfo
295f4e42 18480
d32ab992
PB
18481.PHONY: maybe-maintainer-clean-texinfo maintainer-clean-texinfo
18482maybe-maintainer-clean-texinfo:
18483@if texinfo
18484maybe-maintainer-clean-texinfo: maintainer-clean-texinfo
295f4e42 18485
d32ab992
PB
18486maintainer-clean-texinfo:
18487 @[ -f ./texinfo/Makefile ] || exit 0; \
295f4e42
NN
18488 r=`${PWD_COMMAND}`; export r; \
18489 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18490 $(SET_LIB_PATH) \
4fc4dd12 18491 $(HOST_EXPORTS) \
d32ab992 18492 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
18493 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18494 done; \
d32ab992
PB
18495 echo "Doing maintainer-clean in texinfo" ; \
18496 (cd texinfo && \
295f4e42
NN
18497 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18498 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18499 "RANLIB=$${RANLIB}" \
18500 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18501 maintainer-clean) \
295f4e42 18502 || exit 1
4977bab6 18503
d32ab992 18504@endif texinfo
4977bab6 18505
295f4e42 18506
d32ab992
PB
18507.PHONY: configure-textutils maybe-configure-textutils
18508maybe-configure-textutils:
18509@if textutils
18510maybe-configure-textutils: configure-textutils
18511configure-textutils:
18512 @test ! -f textutils/Makefile || exit 0; \
18513 [ -d textutils ] || mkdir textutils; \
8c90b13a
L
18514 r=`${PWD_COMMAND}`; export r; \
18515 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 18516 $(HOST_EXPORTS) \
d32ab992
PB
18517 echo Configuring in textutils; \
18518 cd textutils || exit 1; \
4977bab6
ZW
18519 case $(srcdir) in \
18520 \.) \
18521 srcdiroption="--srcdir=."; \
18522 libsrcdir=".";; \
18523 /* | [A-Za-z]:[\\/]*) \
d32ab992
PB
18524 srcdiroption="--srcdir=$(srcdir)/textutils"; \
18525 libsrcdir="$$s/textutils";; \
4977bab6 18526 *) \
d32ab992
PB
18527 srcdiroption="--srcdir=../$(srcdir)/textutils"; \
18528 libsrcdir="$$s/textutils";; \
4977bab6
ZW
18529 esac; \
18530 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 18531 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 18532 || exit 1
d32ab992 18533@endif textutils
4977bab6 18534
d32ab992
PB
18535.PHONY: all-textutils maybe-all-textutils
18536maybe-all-textutils:
18537@if textutils
18538maybe-all-textutils: all-textutils
18539all-textutils: configure-textutils
8c90b13a
L
18540 @r=`${PWD_COMMAND}`; export r; \
18541 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 18542 $(SET_LIB_PATH) \
4fc4dd12 18543 $(HOST_EXPORTS) \
d32ab992
PB
18544 (cd textutils && $(MAKE) $(FLAGS_TO_PASS) all)
18545@endif textutils
4977bab6 18546
d32ab992
PB
18547.PHONY: check-textutils maybe-check-textutils
18548maybe-check-textutils:
18549@if textutils
18550maybe-check-textutils: check-textutils
4977bab6 18551
d32ab992 18552check-textutils:
8c90b13a
L
18553 @r=`${PWD_COMMAND}`; export r; \
18554 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 18555 $(SET_LIB_PATH) \
4fc4dd12 18556 $(HOST_EXPORTS) \
7c27e184 18557 (cd textutils && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 18558
d32ab992 18559@endif textutils
4977bab6 18560
d32ab992
PB
18561.PHONY: install-textutils maybe-install-textutils
18562maybe-install-textutils:
18563@if textutils
18564maybe-install-textutils: install-textutils
295f4e42 18565
d32ab992 18566install-textutils: installdirs
295f4e42
NN
18567 @r=`${PWD_COMMAND}`; export r; \
18568 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18569 $(SET_LIB_PATH) \
4fc4dd12 18570 $(HOST_EXPORTS) \
7c27e184 18571 (cd textutils && $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 18572
d32ab992 18573@endif textutils
295f4e42
NN
18574
18575# Other targets (info, dvi, etc.)
18576
d32ab992
PB
18577.PHONY: maybe-info-textutils info-textutils
18578maybe-info-textutils:
18579@if textutils
18580maybe-info-textutils: info-textutils
295f4e42 18581
d32ab992
PB
18582info-textutils: \
18583 configure-textutils
18584 @[ -f ./textutils/Makefile ] || exit 0; \
295f4e42
NN
18585 r=`${PWD_COMMAND}`; export r; \
18586 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18587 $(SET_LIB_PATH) \
4fc4dd12 18588 $(HOST_EXPORTS) \
d32ab992 18589 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
18590 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18591 done; \
d32ab992
PB
18592 echo "Doing info in textutils" ; \
18593 (cd textutils && \
295f4e42
NN
18594 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18595 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18596 "RANLIB=$${RANLIB}" \
18597 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18598 info) \
295f4e42
NN
18599 || exit 1
18600
d32ab992 18601@endif textutils
295f4e42 18602
d32ab992
PB
18603.PHONY: maybe-dvi-textutils dvi-textutils
18604maybe-dvi-textutils:
18605@if textutils
18606maybe-dvi-textutils: dvi-textutils
295f4e42 18607
d32ab992
PB
18608dvi-textutils: \
18609 configure-textutils
18610 @[ -f ./textutils/Makefile ] || exit 0; \
295f4e42
NN
18611 r=`${PWD_COMMAND}`; export r; \
18612 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18613 $(SET_LIB_PATH) \
4fc4dd12 18614 $(HOST_EXPORTS) \
d32ab992 18615 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
18616 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18617 done; \
d32ab992
PB
18618 echo "Doing dvi in textutils" ; \
18619 (cd textutils && \
295f4e42
NN
18620 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18621 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18622 "RANLIB=$${RANLIB}" \
18623 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18624 dvi) \
295f4e42
NN
18625 || exit 1
18626
d32ab992 18627@endif textutils
295f4e42 18628
d32ab992
PB
18629.PHONY: maybe-TAGS-textutils TAGS-textutils
18630maybe-TAGS-textutils:
18631@if textutils
18632maybe-TAGS-textutils: TAGS-textutils
295f4e42 18633
d32ab992
PB
18634TAGS-textutils: \
18635 configure-textutils
18636 @[ -f ./textutils/Makefile ] || exit 0; \
295f4e42
NN
18637 r=`${PWD_COMMAND}`; export r; \
18638 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18639 $(SET_LIB_PATH) \
4fc4dd12 18640 $(HOST_EXPORTS) \
d32ab992 18641 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
18642 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18643 done; \
d32ab992
PB
18644 echo "Doing TAGS in textutils" ; \
18645 (cd textutils && \
295f4e42
NN
18646 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18647 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18648 "RANLIB=$${RANLIB}" \
18649 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18650 TAGS) \
295f4e42
NN
18651 || exit 1
18652
d32ab992 18653@endif textutils
295f4e42 18654
d32ab992
PB
18655.PHONY: maybe-install-info-textutils install-info-textutils
18656maybe-install-info-textutils:
18657@if textutils
18658maybe-install-info-textutils: install-info-textutils
295f4e42 18659
d32ab992
PB
18660install-info-textutils: \
18661 configure-textutils \
18662 info-textutils
18663 @[ -f ./textutils/Makefile ] || exit 0; \
295f4e42
NN
18664 r=`${PWD_COMMAND}`; export r; \
18665 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18666 $(SET_LIB_PATH) \
4fc4dd12 18667 $(HOST_EXPORTS) \
d32ab992 18668 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
18669 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18670 done; \
d32ab992
PB
18671 echo "Doing install-info in textutils" ; \
18672 (cd textutils && \
295f4e42
NN
18673 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18674 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18675 "RANLIB=$${RANLIB}" \
18676 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18677 install-info) \
295f4e42
NN
18678 || exit 1
18679
d32ab992 18680@endif textutils
295f4e42 18681
d32ab992
PB
18682.PHONY: maybe-installcheck-textutils installcheck-textutils
18683maybe-installcheck-textutils:
18684@if textutils
18685maybe-installcheck-textutils: installcheck-textutils
295f4e42 18686
d32ab992
PB
18687installcheck-textutils: \
18688 configure-textutils
18689 @[ -f ./textutils/Makefile ] || exit 0; \
295f4e42
NN
18690 r=`${PWD_COMMAND}`; export r; \
18691 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18692 $(SET_LIB_PATH) \
4fc4dd12 18693 $(HOST_EXPORTS) \
d32ab992 18694 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
18695 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18696 done; \
d32ab992
PB
18697 echo "Doing installcheck in textutils" ; \
18698 (cd textutils && \
295f4e42
NN
18699 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18700 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18701 "RANLIB=$${RANLIB}" \
18702 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18703 installcheck) \
295f4e42
NN
18704 || exit 1
18705
d32ab992 18706@endif textutils
295f4e42 18707
d32ab992
PB
18708.PHONY: maybe-mostlyclean-textutils mostlyclean-textutils
18709maybe-mostlyclean-textutils:
18710@if textutils
18711maybe-mostlyclean-textutils: mostlyclean-textutils
295f4e42 18712
d32ab992
PB
18713mostlyclean-textutils:
18714 @[ -f ./textutils/Makefile ] || exit 0; \
295f4e42
NN
18715 r=`${PWD_COMMAND}`; export r; \
18716 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18717 $(SET_LIB_PATH) \
4fc4dd12 18718 $(HOST_EXPORTS) \
d32ab992 18719 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
18720 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18721 done; \
d32ab992
PB
18722 echo "Doing mostlyclean in textutils" ; \
18723 (cd textutils && \
295f4e42
NN
18724 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18725 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18726 "RANLIB=$${RANLIB}" \
18727 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18728 mostlyclean) \
295f4e42
NN
18729 || exit 1
18730
d32ab992 18731@endif textutils
295f4e42 18732
d32ab992
PB
18733.PHONY: maybe-clean-textutils clean-textutils
18734maybe-clean-textutils:
18735@if textutils
18736maybe-clean-textutils: clean-textutils
295f4e42 18737
d32ab992
PB
18738clean-textutils:
18739 @[ -f ./textutils/Makefile ] || exit 0; \
295f4e42
NN
18740 r=`${PWD_COMMAND}`; export r; \
18741 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18742 $(SET_LIB_PATH) \
4fc4dd12 18743 $(HOST_EXPORTS) \
d32ab992 18744 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
18745 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18746 done; \
d32ab992
PB
18747 echo "Doing clean in textutils" ; \
18748 (cd textutils && \
295f4e42
NN
18749 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18750 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18751 "RANLIB=$${RANLIB}" \
18752 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18753 clean) \
295f4e42
NN
18754 || exit 1
18755
d32ab992 18756@endif textutils
295f4e42 18757
d32ab992
PB
18758.PHONY: maybe-distclean-textutils distclean-textutils
18759maybe-distclean-textutils:
18760@if textutils
18761maybe-distclean-textutils: distclean-textutils
295f4e42 18762
d32ab992
PB
18763distclean-textutils:
18764 @[ -f ./textutils/Makefile ] || exit 0; \
295f4e42
NN
18765 r=`${PWD_COMMAND}`; export r; \
18766 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18767 $(SET_LIB_PATH) \
4fc4dd12 18768 $(HOST_EXPORTS) \
d32ab992 18769 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
18770 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18771 done; \
d32ab992
PB
18772 echo "Doing distclean in textutils" ; \
18773 (cd textutils && \
295f4e42
NN
18774 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18775 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18776 "RANLIB=$${RANLIB}" \
18777 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18778 distclean) \
295f4e42
NN
18779 || exit 1
18780
d32ab992 18781@endif textutils
295f4e42 18782
d32ab992
PB
18783.PHONY: maybe-maintainer-clean-textutils maintainer-clean-textutils
18784maybe-maintainer-clean-textutils:
18785@if textutils
18786maybe-maintainer-clean-textutils: maintainer-clean-textutils
295f4e42 18787
d32ab992
PB
18788maintainer-clean-textutils:
18789 @[ -f ./textutils/Makefile ] || exit 0; \
295f4e42
NN
18790 r=`${PWD_COMMAND}`; export r; \
18791 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18792 $(SET_LIB_PATH) \
4fc4dd12 18793 $(HOST_EXPORTS) \
d32ab992 18794 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
18795 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18796 done; \
d32ab992
PB
18797 echo "Doing maintainer-clean in textutils" ; \
18798 (cd textutils && \
295f4e42
NN
18799 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18800 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18801 "RANLIB=$${RANLIB}" \
18802 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18803 maintainer-clean) \
295f4e42 18804 || exit 1
7e2dbcef 18805
d32ab992 18806@endif textutils
4977bab6
ZW
18807
18808
d32ab992
PB
18809.PHONY: configure-time maybe-configure-time
18810maybe-configure-time:
18811@if time
18812maybe-configure-time: configure-time
18813configure-time:
18814 @test ! -f time/Makefile || exit 0; \
18815 [ -d time ] || mkdir time; \
8c90b13a
L
18816 r=`${PWD_COMMAND}`; export r; \
18817 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 18818 $(HOST_EXPORTS) \
d32ab992
PB
18819 echo Configuring in time; \
18820 cd time || exit 1; \
4977bab6
ZW
18821 case $(srcdir) in \
18822 \.) \
18823 srcdiroption="--srcdir=."; \
18824 libsrcdir=".";; \
18825 /* | [A-Za-z]:[\\/]*) \
d32ab992
PB
18826 srcdiroption="--srcdir=$(srcdir)/time"; \
18827 libsrcdir="$$s/time";; \
4977bab6 18828 *) \
d32ab992
PB
18829 srcdiroption="--srcdir=../$(srcdir)/time"; \
18830 libsrcdir="$$s/time";; \
4977bab6
ZW
18831 esac; \
18832 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 18833 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 18834 || exit 1
d32ab992 18835@endif time
4977bab6 18836
d32ab992
PB
18837.PHONY: all-time maybe-all-time
18838maybe-all-time:
18839@if time
18840maybe-all-time: all-time
18841all-time: configure-time
8c90b13a
L
18842 @r=`${PWD_COMMAND}`; export r; \
18843 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 18844 $(SET_LIB_PATH) \
4fc4dd12 18845 $(HOST_EXPORTS) \
d32ab992
PB
18846 (cd time && $(MAKE) $(FLAGS_TO_PASS) all)
18847@endif time
4977bab6 18848
d32ab992
PB
18849.PHONY: check-time maybe-check-time
18850maybe-check-time:
18851@if time
18852maybe-check-time: check-time
4977bab6 18853
d32ab992 18854check-time:
8c90b13a
L
18855 @r=`${PWD_COMMAND}`; export r; \
18856 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 18857 $(SET_LIB_PATH) \
4fc4dd12 18858 $(HOST_EXPORTS) \
7c27e184 18859 (cd time && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 18860
d32ab992 18861@endif time
4977bab6 18862
d32ab992
PB
18863.PHONY: install-time maybe-install-time
18864maybe-install-time:
18865@if time
18866maybe-install-time: install-time
7e2dbcef 18867
d32ab992 18868install-time: installdirs
8c90b13a
L
18869 @r=`${PWD_COMMAND}`; export r; \
18870 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 18871 $(SET_LIB_PATH) \
4fc4dd12 18872 $(HOST_EXPORTS) \
7c27e184 18873 (cd time && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6 18874
d32ab992 18875@endif time
4977bab6 18876
295f4e42
NN
18877# Other targets (info, dvi, etc.)
18878
d32ab992
PB
18879.PHONY: maybe-info-time info-time
18880maybe-info-time:
18881@if time
18882maybe-info-time: info-time
295f4e42 18883
d32ab992
PB
18884info-time: \
18885 configure-time
18886 @[ -f ./time/Makefile ] || exit 0; \
295f4e42
NN
18887 r=`${PWD_COMMAND}`; export r; \
18888 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18889 $(SET_LIB_PATH) \
4fc4dd12 18890 $(HOST_EXPORTS) \
d32ab992 18891 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
18892 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18893 done; \
d32ab992
PB
18894 echo "Doing info in time" ; \
18895 (cd time && \
295f4e42
NN
18896 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18897 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18898 "RANLIB=$${RANLIB}" \
18899 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18900 info) \
295f4e42
NN
18901 || exit 1
18902
d32ab992 18903@endif time
295f4e42 18904
d32ab992
PB
18905.PHONY: maybe-dvi-time dvi-time
18906maybe-dvi-time:
18907@if time
18908maybe-dvi-time: dvi-time
295f4e42 18909
d32ab992
PB
18910dvi-time: \
18911 configure-time
18912 @[ -f ./time/Makefile ] || exit 0; \
295f4e42
NN
18913 r=`${PWD_COMMAND}`; export r; \
18914 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18915 $(SET_LIB_PATH) \
4fc4dd12 18916 $(HOST_EXPORTS) \
d32ab992 18917 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
18918 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18919 done; \
d32ab992
PB
18920 echo "Doing dvi in time" ; \
18921 (cd time && \
295f4e42
NN
18922 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18923 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18924 "RANLIB=$${RANLIB}" \
18925 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18926 dvi) \
295f4e42
NN
18927 || exit 1
18928
d32ab992 18929@endif time
295f4e42 18930
d32ab992
PB
18931.PHONY: maybe-TAGS-time TAGS-time
18932maybe-TAGS-time:
18933@if time
18934maybe-TAGS-time: TAGS-time
295f4e42 18935
d32ab992
PB
18936TAGS-time: \
18937 configure-time
18938 @[ -f ./time/Makefile ] || exit 0; \
295f4e42
NN
18939 r=`${PWD_COMMAND}`; export r; \
18940 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18941 $(SET_LIB_PATH) \
4fc4dd12 18942 $(HOST_EXPORTS) \
d32ab992 18943 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
18944 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18945 done; \
d32ab992
PB
18946 echo "Doing TAGS in time" ; \
18947 (cd time && \
295f4e42
NN
18948 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18949 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18950 "RANLIB=$${RANLIB}" \
18951 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18952 TAGS) \
295f4e42
NN
18953 || exit 1
18954
d32ab992 18955@endif time
295f4e42 18956
d32ab992
PB
18957.PHONY: maybe-install-info-time install-info-time
18958maybe-install-info-time:
18959@if time
18960maybe-install-info-time: install-info-time
295f4e42 18961
d32ab992
PB
18962install-info-time: \
18963 configure-time \
18964 info-time
18965 @[ -f ./time/Makefile ] || exit 0; \
295f4e42
NN
18966 r=`${PWD_COMMAND}`; export r; \
18967 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18968 $(SET_LIB_PATH) \
4fc4dd12 18969 $(HOST_EXPORTS) \
d32ab992 18970 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
18971 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18972 done; \
d32ab992
PB
18973 echo "Doing install-info in time" ; \
18974 (cd time && \
295f4e42
NN
18975 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18976 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18977 "RANLIB=$${RANLIB}" \
18978 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18979 install-info) \
295f4e42
NN
18980 || exit 1
18981
d32ab992 18982@endif time
295f4e42 18983
d32ab992
PB
18984.PHONY: maybe-installcheck-time installcheck-time
18985maybe-installcheck-time:
18986@if time
18987maybe-installcheck-time: installcheck-time
295f4e42 18988
d32ab992
PB
18989installcheck-time: \
18990 configure-time
18991 @[ -f ./time/Makefile ] || exit 0; \
295f4e42
NN
18992 r=`${PWD_COMMAND}`; export r; \
18993 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18994 $(SET_LIB_PATH) \
4fc4dd12 18995 $(HOST_EXPORTS) \
d32ab992 18996 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
18997 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18998 done; \
d32ab992
PB
18999 echo "Doing installcheck in time" ; \
19000 (cd time && \
295f4e42
NN
19001 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19002 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19003 "RANLIB=$${RANLIB}" \
19004 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19005 installcheck) \
295f4e42
NN
19006 || exit 1
19007
d32ab992 19008@endif time
295f4e42 19009
d32ab992
PB
19010.PHONY: maybe-mostlyclean-time mostlyclean-time
19011maybe-mostlyclean-time:
19012@if time
19013maybe-mostlyclean-time: mostlyclean-time
295f4e42 19014
d32ab992
PB
19015mostlyclean-time:
19016 @[ -f ./time/Makefile ] || exit 0; \
295f4e42
NN
19017 r=`${PWD_COMMAND}`; export r; \
19018 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19019 $(SET_LIB_PATH) \
4fc4dd12 19020 $(HOST_EXPORTS) \
d32ab992 19021 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
19022 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19023 done; \
d32ab992
PB
19024 echo "Doing mostlyclean in time" ; \
19025 (cd time && \
295f4e42
NN
19026 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19027 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19028 "RANLIB=$${RANLIB}" \
19029 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19030 mostlyclean) \
295f4e42
NN
19031 || exit 1
19032
d32ab992 19033@endif time
295f4e42 19034
d32ab992
PB
19035.PHONY: maybe-clean-time clean-time
19036maybe-clean-time:
19037@if time
19038maybe-clean-time: clean-time
295f4e42 19039
d32ab992
PB
19040clean-time:
19041 @[ -f ./time/Makefile ] || exit 0; \
295f4e42
NN
19042 r=`${PWD_COMMAND}`; export r; \
19043 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19044 $(SET_LIB_PATH) \
4fc4dd12 19045 $(HOST_EXPORTS) \
d32ab992 19046 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
19047 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19048 done; \
d32ab992
PB
19049 echo "Doing clean in time" ; \
19050 (cd time && \
295f4e42
NN
19051 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19052 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19053 "RANLIB=$${RANLIB}" \
19054 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19055 clean) \
295f4e42
NN
19056 || exit 1
19057
d32ab992 19058@endif time
295f4e42 19059
d32ab992
PB
19060.PHONY: maybe-distclean-time distclean-time
19061maybe-distclean-time:
19062@if time
19063maybe-distclean-time: distclean-time
295f4e42 19064
d32ab992
PB
19065distclean-time:
19066 @[ -f ./time/Makefile ] || exit 0; \
295f4e42
NN
19067 r=`${PWD_COMMAND}`; export r; \
19068 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19069 $(SET_LIB_PATH) \
4fc4dd12 19070 $(HOST_EXPORTS) \
d32ab992 19071 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
19072 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19073 done; \
d32ab992
PB
19074 echo "Doing distclean in time" ; \
19075 (cd time && \
295f4e42
NN
19076 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19077 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19078 "RANLIB=$${RANLIB}" \
19079 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19080 distclean) \
295f4e42
NN
19081 || exit 1
19082
d32ab992 19083@endif time
295f4e42 19084
d32ab992
PB
19085.PHONY: maybe-maintainer-clean-time maintainer-clean-time
19086maybe-maintainer-clean-time:
19087@if time
19088maybe-maintainer-clean-time: maintainer-clean-time
295f4e42 19089
d32ab992
PB
19090maintainer-clean-time:
19091 @[ -f ./time/Makefile ] || exit 0; \
295f4e42
NN
19092 r=`${PWD_COMMAND}`; export r; \
19093 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19094 $(SET_LIB_PATH) \
4fc4dd12 19095 $(HOST_EXPORTS) \
d32ab992 19096 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
19097 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19098 done; \
d32ab992
PB
19099 echo "Doing maintainer-clean in time" ; \
19100 (cd time && \
295f4e42
NN
19101 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19102 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19103 "RANLIB=$${RANLIB}" \
19104 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19105 maintainer-clean) \
295f4e42
NN
19106 || exit 1
19107
d32ab992 19108@endif time
295f4e42
NN
19109
19110
d32ab992
PB
19111.PHONY: configure-uudecode maybe-configure-uudecode
19112maybe-configure-uudecode:
19113@if uudecode
19114maybe-configure-uudecode: configure-uudecode
19115configure-uudecode:
19116 @test ! -f uudecode/Makefile || exit 0; \
19117 [ -d uudecode ] || mkdir uudecode; \
8c90b13a
L
19118 r=`${PWD_COMMAND}`; export r; \
19119 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 19120 $(HOST_EXPORTS) \
d32ab992
PB
19121 echo Configuring in uudecode; \
19122 cd uudecode || exit 1; \
4977bab6
ZW
19123 case $(srcdir) in \
19124 \.) \
19125 srcdiroption="--srcdir=."; \
19126 libsrcdir=".";; \
19127 /* | [A-Za-z]:[\\/]*) \
d32ab992
PB
19128 srcdiroption="--srcdir=$(srcdir)/uudecode"; \
19129 libsrcdir="$$s/uudecode";; \
4977bab6 19130 *) \
d32ab992
PB
19131 srcdiroption="--srcdir=../$(srcdir)/uudecode"; \
19132 libsrcdir="$$s/uudecode";; \
4977bab6
ZW
19133 esac; \
19134 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 19135 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 19136 || exit 1
d32ab992 19137@endif uudecode
4977bab6 19138
d32ab992
PB
19139.PHONY: all-uudecode maybe-all-uudecode
19140maybe-all-uudecode:
19141@if uudecode
19142maybe-all-uudecode: all-uudecode
19143all-uudecode: configure-uudecode
8c90b13a
L
19144 @r=`${PWD_COMMAND}`; export r; \
19145 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 19146 $(SET_LIB_PATH) \
4fc4dd12 19147 $(HOST_EXPORTS) \
d32ab992
PB
19148 (cd uudecode && $(MAKE) $(FLAGS_TO_PASS) all)
19149@endif uudecode
4977bab6 19150
d32ab992
PB
19151.PHONY: check-uudecode maybe-check-uudecode
19152maybe-check-uudecode:
19153@if uudecode
19154maybe-check-uudecode: check-uudecode
4977bab6 19155
d32ab992 19156check-uudecode:
8c90b13a
L
19157 @r=`${PWD_COMMAND}`; export r; \
19158 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 19159 $(SET_LIB_PATH) \
4fc4dd12 19160 $(HOST_EXPORTS) \
7c27e184 19161 (cd uudecode && $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 19162
d32ab992 19163@endif uudecode
4977bab6 19164
d32ab992
PB
19165.PHONY: install-uudecode maybe-install-uudecode
19166maybe-install-uudecode:
19167@if uudecode
19168maybe-install-uudecode: install-uudecode
7e2dbcef 19169
d32ab992 19170install-uudecode: installdirs
8c90b13a
L
19171 @r=`${PWD_COMMAND}`; export r; \
19172 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 19173 $(SET_LIB_PATH) \
4fc4dd12 19174 $(HOST_EXPORTS) \
7c27e184 19175 (cd uudecode && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6 19176
d32ab992 19177@endif uudecode
4977bab6 19178
295f4e42
NN
19179# Other targets (info, dvi, etc.)
19180
d32ab992
PB
19181.PHONY: maybe-info-uudecode info-uudecode
19182maybe-info-uudecode:
19183@if uudecode
19184maybe-info-uudecode: info-uudecode
295f4e42 19185
d32ab992
PB
19186info-uudecode: \
19187 configure-uudecode
19188 @[ -f ./uudecode/Makefile ] || exit 0; \
8c90b13a
L
19189 r=`${PWD_COMMAND}`; export r; \
19190 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
295f4e42 19191 $(SET_LIB_PATH) \
4fc4dd12 19192 $(HOST_EXPORTS) \
d32ab992 19193 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
19194 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19195 done; \
d32ab992
PB
19196 echo "Doing info in uudecode" ; \
19197 (cd uudecode && \
295f4e42
NN
19198 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19199 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19200 "RANLIB=$${RANLIB}" \
19201 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19202 info) \
4977bab6
ZW
19203 || exit 1
19204
d32ab992 19205@endif uudecode
295f4e42 19206
d32ab992
PB
19207.PHONY: maybe-dvi-uudecode dvi-uudecode
19208maybe-dvi-uudecode:
19209@if uudecode
19210maybe-dvi-uudecode: dvi-uudecode
295f4e42 19211
d32ab992
PB
19212dvi-uudecode: \
19213 configure-uudecode
19214 @[ -f ./uudecode/Makefile ] || exit 0; \
295f4e42 19215 r=`${PWD_COMMAND}`; export r; \
8c90b13a 19216 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 19217 $(SET_LIB_PATH) \
4fc4dd12 19218 $(HOST_EXPORTS) \
d32ab992 19219 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
19220 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19221 done; \
d32ab992
PB
19222 echo "Doing dvi in uudecode" ; \
19223 (cd uudecode && \
295f4e42
NN
19224 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19225 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19226 "RANLIB=$${RANLIB}" \
19227 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19228 dvi) \
295f4e42 19229 || exit 1
4977bab6 19230
d32ab992 19231@endif uudecode
4977bab6 19232
d32ab992
PB
19233.PHONY: maybe-TAGS-uudecode TAGS-uudecode
19234maybe-TAGS-uudecode:
19235@if uudecode
19236maybe-TAGS-uudecode: TAGS-uudecode
295f4e42 19237
d32ab992
PB
19238TAGS-uudecode: \
19239 configure-uudecode
19240 @[ -f ./uudecode/Makefile ] || exit 0; \
19241 r=`${PWD_COMMAND}`; export r; \
8c90b13a 19242 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 19243 $(SET_LIB_PATH) \
4fc4dd12 19244 $(HOST_EXPORTS) \
d32ab992 19245 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
19246 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19247 done; \
d32ab992
PB
19248 echo "Doing TAGS in uudecode" ; \
19249 (cd uudecode && \
295f4e42
NN
19250 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19251 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19252 "RANLIB=$${RANLIB}" \
19253 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19254 TAGS) \
295f4e42 19255 || exit 1
4977bab6 19256
d32ab992 19257@endif uudecode
4977bab6 19258
d32ab992
PB
19259.PHONY: maybe-install-info-uudecode install-info-uudecode
19260maybe-install-info-uudecode:
19261@if uudecode
19262maybe-install-info-uudecode: install-info-uudecode
7e2dbcef 19263
d32ab992
PB
19264install-info-uudecode: \
19265 configure-uudecode \
19266 info-uudecode
19267 @[ -f ./uudecode/Makefile ] || exit 0; \
295f4e42
NN
19268 r=`${PWD_COMMAND}`; export r; \
19269 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19270 $(SET_LIB_PATH) \
4fc4dd12 19271 $(HOST_EXPORTS) \
d32ab992 19272 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
19273 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19274 done; \
d32ab992
PB
19275 echo "Doing install-info in uudecode" ; \
19276 (cd uudecode && \
295f4e42
NN
19277 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19278 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19279 "RANLIB=$${RANLIB}" \
19280 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19281 install-info) \
295f4e42
NN
19282 || exit 1
19283
d32ab992 19284@endif uudecode
295f4e42 19285
d32ab992
PB
19286.PHONY: maybe-installcheck-uudecode installcheck-uudecode
19287maybe-installcheck-uudecode:
19288@if uudecode
19289maybe-installcheck-uudecode: installcheck-uudecode
295f4e42 19290
d32ab992
PB
19291installcheck-uudecode: \
19292 configure-uudecode
19293 @[ -f ./uudecode/Makefile ] || exit 0; \
295f4e42
NN
19294 r=`${PWD_COMMAND}`; export r; \
19295 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19296 $(SET_LIB_PATH) \
4fc4dd12 19297 $(HOST_EXPORTS) \
d32ab992 19298 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
19299 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19300 done; \
d32ab992
PB
19301 echo "Doing installcheck in uudecode" ; \
19302 (cd uudecode && \
295f4e42
NN
19303 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19304 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19305 "RANLIB=$${RANLIB}" \
19306 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19307 installcheck) \
295f4e42
NN
19308 || exit 1
19309
d32ab992 19310@endif uudecode
295f4e42 19311
d32ab992
PB
19312.PHONY: maybe-mostlyclean-uudecode mostlyclean-uudecode
19313maybe-mostlyclean-uudecode:
19314@if uudecode
19315maybe-mostlyclean-uudecode: mostlyclean-uudecode
295f4e42 19316
d32ab992
PB
19317mostlyclean-uudecode:
19318 @[ -f ./uudecode/Makefile ] || exit 0; \
295f4e42
NN
19319 r=`${PWD_COMMAND}`; export r; \
19320 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19321 $(SET_LIB_PATH) \
4fc4dd12 19322 $(HOST_EXPORTS) \
d32ab992 19323 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
19324 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19325 done; \
d32ab992
PB
19326 echo "Doing mostlyclean in uudecode" ; \
19327 (cd uudecode && \
295f4e42
NN
19328 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19329 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19330 "RANLIB=$${RANLIB}" \
19331 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19332 mostlyclean) \
295f4e42
NN
19333 || exit 1
19334
d32ab992 19335@endif uudecode
295f4e42 19336
d32ab992
PB
19337.PHONY: maybe-clean-uudecode clean-uudecode
19338maybe-clean-uudecode:
19339@if uudecode
19340maybe-clean-uudecode: clean-uudecode
295f4e42 19341
d32ab992
PB
19342clean-uudecode:
19343 @[ -f ./uudecode/Makefile ] || exit 0; \
295f4e42
NN
19344 r=`${PWD_COMMAND}`; export r; \
19345 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19346 $(SET_LIB_PATH) \
4fc4dd12 19347 $(HOST_EXPORTS) \
d32ab992 19348 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
19349 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19350 done; \
d32ab992
PB
19351 echo "Doing clean in uudecode" ; \
19352 (cd uudecode && \
295f4e42
NN
19353 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19354 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19355 "RANLIB=$${RANLIB}" \
19356 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19357 clean) \
295f4e42
NN
19358 || exit 1
19359
d32ab992 19360@endif uudecode
295f4e42 19361
d32ab992
PB
19362.PHONY: maybe-distclean-uudecode distclean-uudecode
19363maybe-distclean-uudecode:
19364@if uudecode
19365maybe-distclean-uudecode: distclean-uudecode
295f4e42 19366
d32ab992
PB
19367distclean-uudecode:
19368 @[ -f ./uudecode/Makefile ] || exit 0; \
295f4e42
NN
19369 r=`${PWD_COMMAND}`; export r; \
19370 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19371 $(SET_LIB_PATH) \
4fc4dd12 19372 $(HOST_EXPORTS) \
d32ab992 19373 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
19374 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19375 done; \
d32ab992
PB
19376 echo "Doing distclean in uudecode" ; \
19377 (cd uudecode && \
295f4e42
NN
19378 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19379 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19380 "RANLIB=$${RANLIB}" \
19381 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19382 distclean) \
295f4e42
NN
19383 || exit 1
19384
d32ab992 19385@endif uudecode
295f4e42 19386
d32ab992
PB
19387.PHONY: maybe-maintainer-clean-uudecode maintainer-clean-uudecode
19388maybe-maintainer-clean-uudecode:
19389@if uudecode
19390maybe-maintainer-clean-uudecode: maintainer-clean-uudecode
295f4e42 19391
d32ab992
PB
19392maintainer-clean-uudecode:
19393 @[ -f ./uudecode/Makefile ] || exit 0; \
295f4e42 19394 r=`${PWD_COMMAND}`; export r; \
8c90b13a 19395 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 19396 $(SET_LIB_PATH) \
4fc4dd12 19397 $(HOST_EXPORTS) \
d32ab992 19398 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
19399 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19400 done; \
d32ab992
PB
19401 echo "Doing maintainer-clean in uudecode" ; \
19402 (cd uudecode && \
295f4e42
NN
19403 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19404 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19405 "RANLIB=$${RANLIB}" \
19406 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19407 maintainer-clean) \
295f4e42 19408 || exit 1
4977bab6 19409
d32ab992 19410@endif uudecode
4977bab6 19411
295f4e42 19412
d32ab992
PB
19413.PHONY: configure-wdiff maybe-configure-wdiff
19414maybe-configure-wdiff:
19415@if wdiff
19416maybe-configure-wdiff: configure-wdiff
19417configure-wdiff:
19418 @test ! -f wdiff/Makefile || exit 0; \
19419 [ -d wdiff ] || mkdir wdiff; \
8c90b13a
L
19420 r=`${PWD_COMMAND}`; export r; \
19421 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 19422 $(HOST_EXPORTS) \
d32ab992
PB
19423 echo Configuring in wdiff; \
19424 cd wdiff || exit 1; \
4977bab6
ZW
19425 case $(srcdir) in \
19426 \.) \
19427 srcdiroption="--srcdir=."; \
19428 libsrcdir=".";; \
19429 /* | [A-Za-z]:[\\/]*) \
d32ab992
PB
19430 srcdiroption="--srcdir=$(srcdir)/wdiff"; \
19431 libsrcdir="$$s/wdiff";; \
4977bab6 19432 *) \
d32ab992
PB
19433 srcdiroption="--srcdir=../$(srcdir)/wdiff"; \
19434 libsrcdir="$$s/wdiff";; \
4977bab6
ZW
19435 esac; \
19436 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 19437 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 19438 || exit 1
d32ab992 19439@endif wdiff
4977bab6 19440
d32ab992
PB
19441.PHONY: all-wdiff maybe-all-wdiff
19442maybe-all-wdiff:
19443@if wdiff
19444maybe-all-wdiff: all-wdiff
19445all-wdiff: configure-wdiff
8c90b13a
L
19446 @r=`${PWD_COMMAND}`; export r; \
19447 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 19448 $(SET_LIB_PATH) \
4fc4dd12 19449 $(HOST_EXPORTS) \
d32ab992
PB
19450 (cd wdiff && $(MAKE) $(FLAGS_TO_PASS) all)
19451@endif wdiff
4977bab6 19452
d32ab992
PB
19453.PHONY: check-wdiff maybe-check-wdiff
19454maybe-check-wdiff:
19455@if wdiff
19456maybe-check-wdiff: check-wdiff
4977bab6 19457
d32ab992
PB
19458check-wdiff:
19459 @r=`${PWD_COMMAND}`; export r; \
19460 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19461 $(SET_LIB_PATH) \
19462 $(HOST_EXPORTS) \
7c27e184 19463 (cd wdiff && $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 19464
d32ab992 19465@endif wdiff
295f4e42 19466
d32ab992
PB
19467.PHONY: install-wdiff maybe-install-wdiff
19468maybe-install-wdiff:
19469@if wdiff
19470maybe-install-wdiff: install-wdiff
295f4e42 19471
d32ab992 19472install-wdiff: installdirs
8c90b13a
L
19473 @r=`${PWD_COMMAND}`; export r; \
19474 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 19475 $(SET_LIB_PATH) \
4fc4dd12 19476 $(HOST_EXPORTS) \
7c27e184 19477 (cd wdiff && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6 19478
d32ab992 19479@endif wdiff
4977bab6 19480
295f4e42
NN
19481# Other targets (info, dvi, etc.)
19482
d32ab992
PB
19483.PHONY: maybe-info-wdiff info-wdiff
19484maybe-info-wdiff:
19485@if wdiff
19486maybe-info-wdiff: info-wdiff
295f4e42 19487
d32ab992
PB
19488info-wdiff: \
19489 configure-wdiff
19490 @[ -f ./wdiff/Makefile ] || exit 0; \
295f4e42
NN
19491 r=`${PWD_COMMAND}`; export r; \
19492 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19493 $(SET_LIB_PATH) \
4fc4dd12 19494 $(HOST_EXPORTS) \
d32ab992 19495 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
19496 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19497 done; \
d32ab992
PB
19498 echo "Doing info in wdiff" ; \
19499 (cd wdiff && \
295f4e42
NN
19500 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19501 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19502 "RANLIB=$${RANLIB}" \
19503 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19504 info) \
295f4e42
NN
19505 || exit 1
19506
d32ab992 19507@endif wdiff
295f4e42 19508
d32ab992
PB
19509.PHONY: maybe-dvi-wdiff dvi-wdiff
19510maybe-dvi-wdiff:
19511@if wdiff
19512maybe-dvi-wdiff: dvi-wdiff
295f4e42 19513
d32ab992
PB
19514dvi-wdiff: \
19515 configure-wdiff
19516 @[ -f ./wdiff/Makefile ] || exit 0; \
295f4e42
NN
19517 r=`${PWD_COMMAND}`; export r; \
19518 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19519 $(SET_LIB_PATH) \
4fc4dd12 19520 $(HOST_EXPORTS) \
d32ab992 19521 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
19522 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19523 done; \
d32ab992
PB
19524 echo "Doing dvi in wdiff" ; \
19525 (cd wdiff && \
295f4e42
NN
19526 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19527 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19528 "RANLIB=$${RANLIB}" \
19529 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19530 dvi) \
295f4e42
NN
19531 || exit 1
19532
d32ab992 19533@endif wdiff
295f4e42 19534
d32ab992
PB
19535.PHONY: maybe-TAGS-wdiff TAGS-wdiff
19536maybe-TAGS-wdiff:
19537@if wdiff
19538maybe-TAGS-wdiff: TAGS-wdiff
295f4e42 19539
d32ab992
PB
19540TAGS-wdiff: \
19541 configure-wdiff
19542 @[ -f ./wdiff/Makefile ] || exit 0; \
295f4e42
NN
19543 r=`${PWD_COMMAND}`; export r; \
19544 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19545 $(SET_LIB_PATH) \
4fc4dd12 19546 $(HOST_EXPORTS) \
d32ab992 19547 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
19548 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19549 done; \
d32ab992
PB
19550 echo "Doing TAGS in wdiff" ; \
19551 (cd wdiff && \
295f4e42
NN
19552 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19553 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19554 "RANLIB=$${RANLIB}" \
19555 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19556 TAGS) \
295f4e42
NN
19557 || exit 1
19558
d32ab992 19559@endif wdiff
295f4e42 19560
d32ab992
PB
19561.PHONY: maybe-install-info-wdiff install-info-wdiff
19562maybe-install-info-wdiff:
19563@if wdiff
19564maybe-install-info-wdiff: install-info-wdiff
295f4e42 19565
d32ab992
PB
19566install-info-wdiff: \
19567 configure-wdiff \
19568 info-wdiff
19569 @[ -f ./wdiff/Makefile ] || exit 0; \
295f4e42
NN
19570 r=`${PWD_COMMAND}`; export r; \
19571 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19572 $(SET_LIB_PATH) \
4fc4dd12 19573 $(HOST_EXPORTS) \
d32ab992 19574 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
19575 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19576 done; \
d32ab992
PB
19577 echo "Doing install-info in wdiff" ; \
19578 (cd wdiff && \
295f4e42
NN
19579 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19580 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19581 "RANLIB=$${RANLIB}" \
19582 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19583 install-info) \
295f4e42
NN
19584 || exit 1
19585
d32ab992 19586@endif wdiff
295f4e42 19587
d32ab992
PB
19588.PHONY: maybe-installcheck-wdiff installcheck-wdiff
19589maybe-installcheck-wdiff:
19590@if wdiff
19591maybe-installcheck-wdiff: installcheck-wdiff
295f4e42 19592
d32ab992
PB
19593installcheck-wdiff: \
19594 configure-wdiff
19595 @[ -f ./wdiff/Makefile ] || exit 0; \
295f4e42
NN
19596 r=`${PWD_COMMAND}`; export r; \
19597 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19598 $(SET_LIB_PATH) \
4fc4dd12 19599 $(HOST_EXPORTS) \
d32ab992 19600 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
19601 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19602 done; \
d32ab992
PB
19603 echo "Doing installcheck in wdiff" ; \
19604 (cd wdiff && \
295f4e42
NN
19605 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19606 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19607 "RANLIB=$${RANLIB}" \
19608 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19609 installcheck) \
295f4e42
NN
19610 || exit 1
19611
d32ab992 19612@endif wdiff
295f4e42 19613
d32ab992
PB
19614.PHONY: maybe-mostlyclean-wdiff mostlyclean-wdiff
19615maybe-mostlyclean-wdiff:
19616@if wdiff
19617maybe-mostlyclean-wdiff: mostlyclean-wdiff
295f4e42 19618
d32ab992
PB
19619mostlyclean-wdiff:
19620 @[ -f ./wdiff/Makefile ] || exit 0; \
295f4e42
NN
19621 r=`${PWD_COMMAND}`; export r; \
19622 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19623 $(SET_LIB_PATH) \
4fc4dd12 19624 $(HOST_EXPORTS) \
d32ab992 19625 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
19626 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19627 done; \
d32ab992
PB
19628 echo "Doing mostlyclean in wdiff" ; \
19629 (cd wdiff && \
295f4e42
NN
19630 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19631 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19632 "RANLIB=$${RANLIB}" \
19633 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19634 mostlyclean) \
295f4e42
NN
19635 || exit 1
19636
d32ab992 19637@endif wdiff
295f4e42 19638
d32ab992
PB
19639.PHONY: maybe-clean-wdiff clean-wdiff
19640maybe-clean-wdiff:
19641@if wdiff
19642maybe-clean-wdiff: clean-wdiff
295f4e42 19643
d32ab992
PB
19644clean-wdiff:
19645 @[ -f ./wdiff/Makefile ] || exit 0; \
295f4e42
NN
19646 r=`${PWD_COMMAND}`; export r; \
19647 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19648 $(SET_LIB_PATH) \
4fc4dd12 19649 $(HOST_EXPORTS) \
d32ab992 19650 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
19651 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19652 done; \
d32ab992
PB
19653 echo "Doing clean in wdiff" ; \
19654 (cd wdiff && \
295f4e42
NN
19655 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19656 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19657 "RANLIB=$${RANLIB}" \
19658 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19659 clean) \
295f4e42
NN
19660 || exit 1
19661
d32ab992 19662@endif wdiff
295f4e42 19663
d32ab992
PB
19664.PHONY: maybe-distclean-wdiff distclean-wdiff
19665maybe-distclean-wdiff:
19666@if wdiff
19667maybe-distclean-wdiff: distclean-wdiff
295f4e42 19668
d32ab992
PB
19669distclean-wdiff:
19670 @[ -f ./wdiff/Makefile ] || exit 0; \
295f4e42
NN
19671 r=`${PWD_COMMAND}`; export r; \
19672 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19673 $(SET_LIB_PATH) \
4fc4dd12 19674 $(HOST_EXPORTS) \
d32ab992 19675 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
19676 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19677 done; \
d32ab992
PB
19678 echo "Doing distclean in wdiff" ; \
19679 (cd wdiff && \
295f4e42
NN
19680 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19681 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19682 "RANLIB=$${RANLIB}" \
19683 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19684 distclean) \
295f4e42
NN
19685 || exit 1
19686
d32ab992 19687@endif wdiff
295f4e42 19688
d32ab992
PB
19689.PHONY: maybe-maintainer-clean-wdiff maintainer-clean-wdiff
19690maybe-maintainer-clean-wdiff:
19691@if wdiff
19692maybe-maintainer-clean-wdiff: maintainer-clean-wdiff
295f4e42 19693
d32ab992
PB
19694maintainer-clean-wdiff:
19695 @[ -f ./wdiff/Makefile ] || exit 0; \
295f4e42
NN
19696 r=`${PWD_COMMAND}`; export r; \
19697 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19698 $(SET_LIB_PATH) \
4fc4dd12 19699 $(HOST_EXPORTS) \
d32ab992 19700 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
19701 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19702 done; \
d32ab992
PB
19703 echo "Doing maintainer-clean in wdiff" ; \
19704 (cd wdiff && \
295f4e42
NN
19705 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19706 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19707 "RANLIB=$${RANLIB}" \
19708 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19709 maintainer-clean) \
295f4e42 19710 || exit 1
7e2dbcef 19711
d32ab992 19712@endif wdiff
4977bab6
ZW
19713
19714
d32ab992
PB
19715.PHONY: configure-zip maybe-configure-zip
19716maybe-configure-zip:
19717@if zip
19718maybe-configure-zip: configure-zip
19719configure-zip:
19720 @test ! -f zip/Makefile || exit 0; \
19721 [ -d zip ] || mkdir zip; \
8c90b13a
L
19722 r=`${PWD_COMMAND}`; export r; \
19723 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 19724 $(HOST_EXPORTS) \
d32ab992
PB
19725 echo Configuring in zip; \
19726 cd zip || exit 1; \
4977bab6
ZW
19727 case $(srcdir) in \
19728 \.) \
19729 srcdiroption="--srcdir=."; \
19730 libsrcdir=".";; \
19731 /* | [A-Za-z]:[\\/]*) \
d32ab992
PB
19732 srcdiroption="--srcdir=$(srcdir)/zip"; \
19733 libsrcdir="$$s/zip";; \
4977bab6 19734 *) \
d32ab992
PB
19735 srcdiroption="--srcdir=../$(srcdir)/zip"; \
19736 libsrcdir="$$s/zip";; \
4977bab6
ZW
19737 esac; \
19738 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 19739 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 19740 || exit 1
d32ab992 19741@endif zip
4977bab6 19742
d32ab992
PB
19743.PHONY: all-zip maybe-all-zip
19744maybe-all-zip:
19745@if zip
19746maybe-all-zip: all-zip
19747all-zip: configure-zip
8c90b13a
L
19748 @r=`${PWD_COMMAND}`; export r; \
19749 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 19750 $(SET_LIB_PATH) \
4fc4dd12 19751 $(HOST_EXPORTS) \
d32ab992
PB
19752 (cd zip && $(MAKE) $(FLAGS_TO_PASS) all)
19753@endif zip
4977bab6 19754
d32ab992
PB
19755.PHONY: check-zip maybe-check-zip
19756maybe-check-zip:
19757@if zip
19758maybe-check-zip: check-zip
4977bab6 19759
d32ab992
PB
19760# This module is only tested in a native toolchain.
19761check-zip:
19762 @if [ '$(host)' = '$(target)' ] ; then \
19763 r=`${PWD_COMMAND}`; export r; \
19764 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19765 $(SET_LIB_PATH) \
19766 $(HOST_EXPORTS) \
19767 (cd zip && $(MAKE) $(FLAGS_TO_PASS) check); \
19768 fi
295f4e42 19769
d32ab992 19770@endif zip
295f4e42 19771
d32ab992
PB
19772.PHONY: install-zip maybe-install-zip
19773maybe-install-zip:
19774@if zip
19775maybe-install-zip: install-zip
295f4e42 19776
d32ab992
PB
19777install-zip: installdirs
19778 @r=`${PWD_COMMAND}`; export r; \
19779 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19780 $(SET_LIB_PATH) \
19781 $(HOST_EXPORTS) \
7c27e184 19782 (cd zip && $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 19783
d32ab992 19784@endif zip
295f4e42
NN
19785
19786# Other targets (info, dvi, etc.)
19787
d32ab992
PB
19788.PHONY: maybe-info-zip info-zip
19789maybe-info-zip:
19790@if zip
19791maybe-info-zip: info-zip
295f4e42 19792
d32ab992
PB
19793info-zip: \
19794 configure-zip
19795 @[ -f ./zip/Makefile ] || exit 0; \
295f4e42 19796 r=`${PWD_COMMAND}`; export r; \
8c90b13a 19797 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 19798 $(SET_LIB_PATH) \
4fc4dd12 19799 $(HOST_EXPORTS) \
d32ab992 19800 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
19801 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19802 done; \
d32ab992
PB
19803 echo "Doing info in zip" ; \
19804 (cd zip && \
295f4e42
NN
19805 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19806 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19807 "RANLIB=$${RANLIB}" \
19808 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19809 info) \
295f4e42 19810 || exit 1
4977bab6 19811
d32ab992 19812@endif zip
4977bab6 19813
d32ab992
PB
19814.PHONY: maybe-dvi-zip dvi-zip
19815maybe-dvi-zip:
19816@if zip
19817maybe-dvi-zip: dvi-zip
7e2dbcef 19818
d32ab992
PB
19819dvi-zip: \
19820 configure-zip
19821 @[ -f ./zip/Makefile ] || exit 0; \
295f4e42 19822 r=`${PWD_COMMAND}`; export r; \
8c90b13a 19823 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 19824 $(SET_LIB_PATH) \
4fc4dd12 19825 $(HOST_EXPORTS) \
d32ab992 19826 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
19827 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19828 done; \
d32ab992
PB
19829 echo "Doing dvi in zip" ; \
19830 (cd zip && \
295f4e42
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}" \
d32ab992 19835 dvi) \
295f4e42 19836 || exit 1
4977bab6 19837
d32ab992 19838@endif zip
4977bab6 19839
d32ab992
PB
19840.PHONY: maybe-TAGS-zip TAGS-zip
19841maybe-TAGS-zip:
19842@if zip
19843maybe-TAGS-zip: TAGS-zip
295f4e42 19844
d32ab992
PB
19845TAGS-zip: \
19846 configure-zip
19847 @[ -f ./zip/Makefile ] || exit 0; \
295f4e42
NN
19848 r=`${PWD_COMMAND}`; export r; \
19849 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19850 $(SET_LIB_PATH) \
4fc4dd12 19851 $(HOST_EXPORTS) \
d32ab992 19852 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
19853 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19854 done; \
d32ab992
PB
19855 echo "Doing TAGS in zip" ; \
19856 (cd zip && \
295f4e42
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}" \
d32ab992 19861 TAGS) \
295f4e42
NN
19862 || exit 1
19863
d32ab992 19864@endif zip
295f4e42 19865
d32ab992
PB
19866.PHONY: maybe-install-info-zip install-info-zip
19867maybe-install-info-zip:
19868@if zip
19869maybe-install-info-zip: install-info-zip
295f4e42 19870
d32ab992
PB
19871install-info-zip: \
19872 configure-zip \
19873 info-zip
19874 @[ -f ./zip/Makefile ] || exit 0; \
295f4e42
NN
19875 r=`${PWD_COMMAND}`; export r; \
19876 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19877 $(SET_LIB_PATH) \
4fc4dd12 19878 $(HOST_EXPORTS) \
d32ab992 19879 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
19880 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19881 done; \
d32ab992
PB
19882 echo "Doing install-info in zip" ; \
19883 (cd zip && \
295f4e42
NN
19884 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19885 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19886 "RANLIB=$${RANLIB}" \
19887 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19888 install-info) \
295f4e42
NN
19889 || exit 1
19890
d32ab992 19891@endif zip
295f4e42 19892
d32ab992
PB
19893.PHONY: maybe-installcheck-zip installcheck-zip
19894maybe-installcheck-zip:
19895@if zip
19896maybe-installcheck-zip: installcheck-zip
295f4e42 19897
d32ab992
PB
19898installcheck-zip: \
19899 configure-zip
19900 @[ -f ./zip/Makefile ] || exit 0; \
295f4e42
NN
19901 r=`${PWD_COMMAND}`; export r; \
19902 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19903 $(SET_LIB_PATH) \
4fc4dd12 19904 $(HOST_EXPORTS) \
d32ab992 19905 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
19906 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19907 done; \
d32ab992
PB
19908 echo "Doing installcheck in zip" ; \
19909 (cd zip && \
295f4e42
NN
19910 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19911 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19912 "RANLIB=$${RANLIB}" \
19913 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19914 installcheck) \
295f4e42
NN
19915 || exit 1
19916
d32ab992 19917@endif zip
295f4e42 19918
d32ab992
PB
19919.PHONY: maybe-mostlyclean-zip mostlyclean-zip
19920maybe-mostlyclean-zip:
19921@if zip
19922maybe-mostlyclean-zip: mostlyclean-zip
295f4e42 19923
d32ab992
PB
19924mostlyclean-zip:
19925 @[ -f ./zip/Makefile ] || exit 0; \
295f4e42
NN
19926 r=`${PWD_COMMAND}`; export r; \
19927 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19928 $(SET_LIB_PATH) \
4fc4dd12 19929 $(HOST_EXPORTS) \
d32ab992 19930 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
19931 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19932 done; \
d32ab992
PB
19933 echo "Doing mostlyclean in zip" ; \
19934 (cd zip && \
295f4e42
NN
19935 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19936 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19937 "RANLIB=$${RANLIB}" \
19938 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19939 mostlyclean) \
295f4e42
NN
19940 || exit 1
19941
d32ab992 19942@endif zip
295f4e42 19943
d32ab992
PB
19944.PHONY: maybe-clean-zip clean-zip
19945maybe-clean-zip:
19946@if zip
19947maybe-clean-zip: clean-zip
295f4e42 19948
d32ab992
PB
19949clean-zip:
19950 @[ -f ./zip/Makefile ] || exit 0; \
295f4e42
NN
19951 r=`${PWD_COMMAND}`; export r; \
19952 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19953 $(SET_LIB_PATH) \
4fc4dd12 19954 $(HOST_EXPORTS) \
d32ab992 19955 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
19956 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19957 done; \
d32ab992
PB
19958 echo "Doing clean in zip" ; \
19959 (cd zip && \
295f4e42
NN
19960 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19961 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19962 "RANLIB=$${RANLIB}" \
19963 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19964 clean) \
295f4e42
NN
19965 || exit 1
19966
d32ab992 19967@endif zip
295f4e42 19968
d32ab992
PB
19969.PHONY: maybe-distclean-zip distclean-zip
19970maybe-distclean-zip:
19971@if zip
19972maybe-distclean-zip: distclean-zip
295f4e42 19973
d32ab992
PB
19974distclean-zip:
19975 @[ -f ./zip/Makefile ] || exit 0; \
295f4e42
NN
19976 r=`${PWD_COMMAND}`; export r; \
19977 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19978 $(SET_LIB_PATH) \
4fc4dd12 19979 $(HOST_EXPORTS) \
d32ab992 19980 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
19981 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19982 done; \
d32ab992
PB
19983 echo "Doing distclean in zip" ; \
19984 (cd zip && \
295f4e42
NN
19985 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19986 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19987 "RANLIB=$${RANLIB}" \
19988 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19989 distclean) \
295f4e42
NN
19990 || exit 1
19991
d32ab992 19992@endif zip
295f4e42 19993
d32ab992
PB
19994.PHONY: maybe-maintainer-clean-zip maintainer-clean-zip
19995maybe-maintainer-clean-zip:
19996@if zip
19997maybe-maintainer-clean-zip: maintainer-clean-zip
295f4e42 19998
d32ab992
PB
19999maintainer-clean-zip:
20000 @[ -f ./zip/Makefile ] || exit 0; \
295f4e42
NN
20001 r=`${PWD_COMMAND}`; export r; \
20002 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20003 $(SET_LIB_PATH) \
4fc4dd12 20004 $(HOST_EXPORTS) \
d32ab992 20005 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
20006 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20007 done; \
d32ab992
PB
20008 echo "Doing maintainer-clean in zip" ; \
20009 (cd zip && \
295f4e42
NN
20010 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20011 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20012 "RANLIB=$${RANLIB}" \
20013 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20014 maintainer-clean) \
295f4e42
NN
20015 || exit 1
20016
d32ab992 20017@endif zip
295f4e42
NN
20018
20019
d32ab992
PB
20020.PHONY: configure-zlib maybe-configure-zlib
20021maybe-configure-zlib:
20022@if zlib
20023maybe-configure-zlib: configure-zlib
20024configure-zlib:
7c27e184
PB
20025 @test -f stage_last && exit 0; \
20026 test ! -f zlib/Makefile || exit 0; \
d32ab992 20027 [ -d zlib ] || mkdir zlib; \
8c90b13a
L
20028 r=`${PWD_COMMAND}`; export r; \
20029 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20030 $(HOST_EXPORTS) \
d32ab992
PB
20031 echo Configuring in zlib; \
20032 cd zlib || exit 1; \
4977bab6
ZW
20033 case $(srcdir) in \
20034 \.) \
20035 srcdiroption="--srcdir=."; \
20036 libsrcdir=".";; \
20037 /* | [A-Za-z]:[\\/]*) \
d32ab992
PB
20038 srcdiroption="--srcdir=$(srcdir)/zlib"; \
20039 libsrcdir="$$s/zlib";; \
4977bab6 20040 *) \
d32ab992
PB
20041 srcdiroption="--srcdir=../$(srcdir)/zlib"; \
20042 libsrcdir="$$s/zlib";; \
4977bab6
ZW
20043 esac; \
20044 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 20045 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 20046 || exit 1
d32ab992 20047@endif zlib
4977bab6 20048
d32ab992
PB
20049.PHONY: all-zlib maybe-all-zlib
20050maybe-all-zlib:
20051@if zlib
20052maybe-all-zlib: all-zlib
20053all-zlib: configure-zlib
7c27e184
PB
20054 @test -f stage_last && exit 0; \
20055 r=`${PWD_COMMAND}`; export r; \
8c90b13a 20056 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 20057 $(SET_LIB_PATH) \
4fc4dd12 20058 $(HOST_EXPORTS) \
d32ab992
PB
20059 (cd zlib && $(MAKE) $(FLAGS_TO_PASS) all)
20060@endif zlib
4977bab6 20061
d32ab992
PB
20062.PHONY: check-zlib maybe-check-zlib
20063maybe-check-zlib:
20064@if zlib
20065maybe-check-zlib: check-zlib
4977bab6 20066
d32ab992 20067check-zlib:
4977bab6 20068
d32ab992 20069@endif zlib
4977bab6 20070
d32ab992
PB
20071.PHONY: install-zlib maybe-install-zlib
20072maybe-install-zlib:
20073@if zlib
20074maybe-install-zlib: install-zlib
7e2dbcef 20075
d32ab992 20076install-zlib:
4977bab6 20077
d32ab992 20078@endif zlib
4977bab6 20079
295f4e42
NN
20080# Other targets (info, dvi, etc.)
20081
d32ab992
PB
20082.PHONY: maybe-info-zlib info-zlib
20083maybe-info-zlib:
20084@if zlib
20085maybe-info-zlib: info-zlib
295f4e42 20086
d32ab992
PB
20087info-zlib: \
20088 configure-zlib
20089 @[ -f ./zlib/Makefile ] || exit 0; \
8c90b13a
L
20090 r=`${PWD_COMMAND}`; export r; \
20091 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
295f4e42 20092 $(SET_LIB_PATH) \
4fc4dd12 20093 $(HOST_EXPORTS) \
d32ab992 20094 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
20095 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20096 done; \
d32ab992
PB
20097 echo "Doing info in zlib" ; \
20098 (cd zlib && \
295f4e42
NN
20099 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20100 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20101 "RANLIB=$${RANLIB}" \
20102 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20103 info) \
4977bab6
ZW
20104 || exit 1
20105
d32ab992 20106@endif zlib
295f4e42 20107
d32ab992
PB
20108.PHONY: maybe-dvi-zlib dvi-zlib
20109maybe-dvi-zlib:
20110@if zlib
20111maybe-dvi-zlib: dvi-zlib
295f4e42 20112
d32ab992
PB
20113dvi-zlib: \
20114 configure-zlib
20115 @[ -f ./zlib/Makefile ] || exit 0; \
295f4e42 20116 r=`${PWD_COMMAND}`; export r; \
8c90b13a 20117 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 20118 $(SET_LIB_PATH) \
4fc4dd12 20119 $(HOST_EXPORTS) \
d32ab992 20120 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
20121 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20122 done; \
d32ab992
PB
20123 echo "Doing dvi in zlib" ; \
20124 (cd zlib && \
295f4e42
NN
20125 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20126 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20127 "RANLIB=$${RANLIB}" \
20128 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20129 dvi) \
295f4e42 20130 || exit 1
4977bab6 20131
d32ab992 20132@endif zlib
4977bab6 20133
d32ab992
PB
20134.PHONY: maybe-TAGS-zlib TAGS-zlib
20135maybe-TAGS-zlib:
20136@if zlib
20137maybe-TAGS-zlib: TAGS-zlib
295f4e42 20138
d32ab992
PB
20139TAGS-zlib: \
20140 configure-zlib
20141 @[ -f ./zlib/Makefile ] || exit 0; \
295f4e42 20142 r=`${PWD_COMMAND}`; export r; \
8c90b13a 20143 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 20144 $(SET_LIB_PATH) \
4fc4dd12 20145 $(HOST_EXPORTS) \
d32ab992 20146 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
20147 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20148 done; \
d32ab992
PB
20149 echo "Doing TAGS in zlib" ; \
20150 (cd zlib && \
295f4e42
NN
20151 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20152 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20153 "RANLIB=$${RANLIB}" \
20154 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20155 TAGS) \
295f4e42 20156 || exit 1
4977bab6 20157
d32ab992 20158@endif zlib
4977bab6 20159
d32ab992
PB
20160.PHONY: maybe-install-info-zlib install-info-zlib
20161maybe-install-info-zlib:
20162@if zlib
20163maybe-install-info-zlib: install-info-zlib
7e2dbcef 20164
d32ab992
PB
20165install-info-zlib: \
20166 configure-zlib \
20167 info-zlib
20168 @[ -f ./zlib/Makefile ] || exit 0; \
295f4e42
NN
20169 r=`${PWD_COMMAND}`; export r; \
20170 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20171 $(SET_LIB_PATH) \
4fc4dd12 20172 $(HOST_EXPORTS) \
d32ab992 20173 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
20174 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20175 done; \
d32ab992
PB
20176 echo "Doing install-info in zlib" ; \
20177 (cd zlib && \
295f4e42
NN
20178 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20179 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20180 "RANLIB=$${RANLIB}" \
20181 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20182 install-info) \
295f4e42
NN
20183 || exit 1
20184
d32ab992 20185@endif zlib
295f4e42 20186
d32ab992
PB
20187.PHONY: maybe-installcheck-zlib installcheck-zlib
20188maybe-installcheck-zlib:
20189@if zlib
20190maybe-installcheck-zlib: installcheck-zlib
295f4e42 20191
d32ab992
PB
20192installcheck-zlib: \
20193 configure-zlib
20194 @[ -f ./zlib/Makefile ] || exit 0; \
295f4e42
NN
20195 r=`${PWD_COMMAND}`; export r; \
20196 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20197 $(SET_LIB_PATH) \
4fc4dd12 20198 $(HOST_EXPORTS) \
d32ab992 20199 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
20200 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20201 done; \
d32ab992
PB
20202 echo "Doing installcheck in zlib" ; \
20203 (cd zlib && \
295f4e42
NN
20204 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20205 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20206 "RANLIB=$${RANLIB}" \
20207 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20208 installcheck) \
295f4e42
NN
20209 || exit 1
20210
d32ab992 20211@endif zlib
295f4e42 20212
d32ab992
PB
20213.PHONY: maybe-mostlyclean-zlib mostlyclean-zlib
20214maybe-mostlyclean-zlib:
20215@if zlib
20216maybe-mostlyclean-zlib: mostlyclean-zlib
295f4e42 20217
d32ab992
PB
20218mostlyclean-zlib:
20219 @[ -f ./zlib/Makefile ] || exit 0; \
295f4e42
NN
20220 r=`${PWD_COMMAND}`; export r; \
20221 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20222 $(SET_LIB_PATH) \
4fc4dd12 20223 $(HOST_EXPORTS) \
d32ab992 20224 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
20225 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20226 done; \
d32ab992
PB
20227 echo "Doing mostlyclean in zlib" ; \
20228 (cd zlib && \
295f4e42
NN
20229 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20230 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20231 "RANLIB=$${RANLIB}" \
20232 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20233 mostlyclean) \
295f4e42
NN
20234 || exit 1
20235
d32ab992 20236@endif zlib
295f4e42 20237
d32ab992
PB
20238.PHONY: maybe-clean-zlib clean-zlib
20239maybe-clean-zlib:
20240@if zlib
20241maybe-clean-zlib: clean-zlib
295f4e42 20242
d32ab992
PB
20243clean-zlib:
20244 @[ -f ./zlib/Makefile ] || exit 0; \
295f4e42
NN
20245 r=`${PWD_COMMAND}`; export r; \
20246 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20247 $(SET_LIB_PATH) \
4fc4dd12 20248 $(HOST_EXPORTS) \
d32ab992 20249 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
20250 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20251 done; \
d32ab992
PB
20252 echo "Doing clean in zlib" ; \
20253 (cd zlib && \
295f4e42
NN
20254 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20255 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20256 "RANLIB=$${RANLIB}" \
20257 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20258 clean) \
295f4e42
NN
20259 || exit 1
20260
d32ab992 20261@endif zlib
295f4e42 20262
d32ab992
PB
20263.PHONY: maybe-distclean-zlib distclean-zlib
20264maybe-distclean-zlib:
20265@if zlib
20266maybe-distclean-zlib: distclean-zlib
295f4e42 20267
d32ab992
PB
20268distclean-zlib:
20269 @[ -f ./zlib/Makefile ] || exit 0; \
295f4e42
NN
20270 r=`${PWD_COMMAND}`; export r; \
20271 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20272 $(SET_LIB_PATH) \
4fc4dd12 20273 $(HOST_EXPORTS) \
d32ab992 20274 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
20275 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20276 done; \
d32ab992
PB
20277 echo "Doing distclean in zlib" ; \
20278 (cd zlib && \
295f4e42
NN
20279 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20280 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20281 "RANLIB=$${RANLIB}" \
20282 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20283 distclean) \
295f4e42
NN
20284 || exit 1
20285
d32ab992 20286@endif zlib
295f4e42 20287
d32ab992
PB
20288.PHONY: maybe-maintainer-clean-zlib maintainer-clean-zlib
20289maybe-maintainer-clean-zlib:
20290@if zlib
20291maybe-maintainer-clean-zlib: maintainer-clean-zlib
295f4e42 20292
d32ab992
PB
20293maintainer-clean-zlib:
20294 @[ -f ./zlib/Makefile ] || exit 0; \
295f4e42 20295 r=`${PWD_COMMAND}`; export r; \
8c90b13a 20296 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 20297 $(SET_LIB_PATH) \
4fc4dd12 20298 $(HOST_EXPORTS) \
d32ab992 20299 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
20300 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20301 done; \
d32ab992
PB
20302 echo "Doing maintainer-clean in zlib" ; \
20303 (cd zlib && \
295f4e42
NN
20304 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20305 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20306 "RANLIB=$${RANLIB}" \
20307 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20308 maintainer-clean) \
295f4e42 20309 || exit 1
4977bab6 20310
d32ab992 20311@endif zlib
4977bab6 20312
295f4e42 20313
d32ab992
PB
20314.PHONY: configure-gdb maybe-configure-gdb
20315maybe-configure-gdb:
20316@if gdb
20317maybe-configure-gdb: configure-gdb
20318configure-gdb:
20319 @test ! -f gdb/Makefile || exit 0; \
20320 [ -d gdb ] || mkdir gdb; \
8c90b13a
L
20321 r=`${PWD_COMMAND}`; export r; \
20322 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20323 $(HOST_EXPORTS) \
d32ab992
PB
20324 echo Configuring in gdb; \
20325 cd gdb || exit 1; \
4977bab6
ZW
20326 case $(srcdir) in \
20327 \.) \
20328 srcdiroption="--srcdir=."; \
20329 libsrcdir=".";; \
20330 /* | [A-Za-z]:[\\/]*) \
d32ab992
PB
20331 srcdiroption="--srcdir=$(srcdir)/gdb"; \
20332 libsrcdir="$$s/gdb";; \
4977bab6 20333 *) \
d32ab992
PB
20334 srcdiroption="--srcdir=../$(srcdir)/gdb"; \
20335 libsrcdir="$$s/gdb";; \
4977bab6
ZW
20336 esac; \
20337 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 20338 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 20339 || exit 1
d32ab992 20340@endif gdb
4977bab6 20341
d32ab992
PB
20342.PHONY: all-gdb maybe-all-gdb
20343maybe-all-gdb:
20344@if gdb
20345maybe-all-gdb: all-gdb
20346all-gdb: configure-gdb
8c90b13a
L
20347 @r=`${PWD_COMMAND}`; export r; \
20348 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 20349 $(SET_LIB_PATH) \
4fc4dd12 20350 $(HOST_EXPORTS) \
7c27e184 20351 (cd gdb && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
d32ab992 20352@endif gdb
4977bab6 20353
d32ab992
PB
20354.PHONY: check-gdb maybe-check-gdb
20355maybe-check-gdb:
20356@if gdb
20357maybe-check-gdb: check-gdb
4977bab6 20358
d32ab992 20359check-gdb:
8c90b13a
L
20360 @r=`${PWD_COMMAND}`; export r; \
20361 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 20362 $(SET_LIB_PATH) \
4fc4dd12 20363 $(HOST_EXPORTS) \
7c27e184 20364 (cd gdb && $(MAKE) $(FLAGS_TO_PASS)$(X11_FLAGS_TO_PASS) check)
4977bab6 20365
d32ab992 20366@endif gdb
4977bab6 20367
d32ab992
PB
20368.PHONY: install-gdb maybe-install-gdb
20369maybe-install-gdb:
20370@if gdb
20371maybe-install-gdb: install-gdb
295f4e42 20372
d32ab992 20373install-gdb: installdirs
295f4e42
NN
20374 @r=`${PWD_COMMAND}`; export r; \
20375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20376 $(SET_LIB_PATH) \
4fc4dd12 20377 $(HOST_EXPORTS) \
7c27e184 20378 (cd gdb && $(MAKE) $(FLAGS_TO_PASS)$(X11_FLAGS_TO_PASS) install)
295f4e42 20379
d32ab992 20380@endif gdb
295f4e42
NN
20381
20382# Other targets (info, dvi, etc.)
20383
d32ab992
PB
20384.PHONY: maybe-info-gdb info-gdb
20385maybe-info-gdb:
20386@if gdb
20387maybe-info-gdb: info-gdb
295f4e42 20388
d32ab992
PB
20389info-gdb: \
20390 configure-gdb
20391 @[ -f ./gdb/Makefile ] || exit 0; \
295f4e42
NN
20392 r=`${PWD_COMMAND}`; export r; \
20393 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20394 $(SET_LIB_PATH) \
4fc4dd12 20395 $(HOST_EXPORTS) \
7c27e184 20396 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
20397 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20398 done; \
d32ab992
PB
20399 echo "Doing info in gdb" ; \
20400 (cd gdb && \
295f4e42
NN
20401 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20402 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20403 "RANLIB=$${RANLIB}" \
20404 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20405 info) \
295f4e42
NN
20406 || exit 1
20407
d32ab992 20408@endif gdb
295f4e42 20409
d32ab992
PB
20410.PHONY: maybe-dvi-gdb dvi-gdb
20411maybe-dvi-gdb:
20412@if gdb
20413maybe-dvi-gdb: dvi-gdb
295f4e42 20414
d32ab992
PB
20415dvi-gdb: \
20416 configure-gdb
20417 @[ -f ./gdb/Makefile ] || exit 0; \
295f4e42
NN
20418 r=`${PWD_COMMAND}`; export r; \
20419 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20420 $(SET_LIB_PATH) \
4fc4dd12 20421 $(HOST_EXPORTS) \
7c27e184 20422 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
20423 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20424 done; \
d32ab992
PB
20425 echo "Doing dvi in gdb" ; \
20426 (cd gdb && \
295f4e42
NN
20427 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20428 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20429 "RANLIB=$${RANLIB}" \
20430 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20431 dvi) \
295f4e42
NN
20432 || exit 1
20433
d32ab992 20434@endif gdb
295f4e42 20435
d32ab992
PB
20436.PHONY: maybe-TAGS-gdb TAGS-gdb
20437maybe-TAGS-gdb:
20438@if gdb
20439maybe-TAGS-gdb: TAGS-gdb
295f4e42 20440
d32ab992
PB
20441TAGS-gdb: \
20442 configure-gdb
20443 @[ -f ./gdb/Makefile ] || exit 0; \
295f4e42
NN
20444 r=`${PWD_COMMAND}`; export r; \
20445 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20446 $(SET_LIB_PATH) \
4fc4dd12 20447 $(HOST_EXPORTS) \
7c27e184 20448 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
20449 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20450 done; \
d32ab992
PB
20451 echo "Doing TAGS in gdb" ; \
20452 (cd gdb && \
295f4e42
NN
20453 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20454 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20455 "RANLIB=$${RANLIB}" \
20456 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20457 TAGS) \
295f4e42
NN
20458 || exit 1
20459
d32ab992 20460@endif gdb
295f4e42 20461
d32ab992
PB
20462.PHONY: maybe-install-info-gdb install-info-gdb
20463maybe-install-info-gdb:
20464@if gdb
20465maybe-install-info-gdb: install-info-gdb
295f4e42 20466
d32ab992
PB
20467install-info-gdb: \
20468 configure-gdb \
20469 info-gdb
20470 @[ -f ./gdb/Makefile ] || exit 0; \
295f4e42
NN
20471 r=`${PWD_COMMAND}`; export r; \
20472 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20473 $(SET_LIB_PATH) \
4fc4dd12 20474 $(HOST_EXPORTS) \
7c27e184 20475 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
20476 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20477 done; \
d32ab992
PB
20478 echo "Doing install-info in gdb" ; \
20479 (cd gdb && \
295f4e42
NN
20480 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20481 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20482 "RANLIB=$${RANLIB}" \
20483 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20484 install-info) \
295f4e42
NN
20485 || exit 1
20486
d32ab992 20487@endif gdb
295f4e42 20488
d32ab992
PB
20489.PHONY: maybe-installcheck-gdb installcheck-gdb
20490maybe-installcheck-gdb:
20491@if gdb
20492maybe-installcheck-gdb: installcheck-gdb
295f4e42 20493
d32ab992
PB
20494installcheck-gdb: \
20495 configure-gdb
20496 @[ -f ./gdb/Makefile ] || exit 0; \
295f4e42
NN
20497 r=`${PWD_COMMAND}`; export r; \
20498 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20499 $(SET_LIB_PATH) \
4fc4dd12 20500 $(HOST_EXPORTS) \
7c27e184 20501 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
20502 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20503 done; \
d32ab992
PB
20504 echo "Doing installcheck in gdb" ; \
20505 (cd gdb && \
295f4e42
NN
20506 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20507 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20508 "RANLIB=$${RANLIB}" \
20509 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20510 installcheck) \
295f4e42
NN
20511 || exit 1
20512
d32ab992 20513@endif gdb
295f4e42 20514
d32ab992
PB
20515.PHONY: maybe-mostlyclean-gdb mostlyclean-gdb
20516maybe-mostlyclean-gdb:
20517@if gdb
20518maybe-mostlyclean-gdb: mostlyclean-gdb
295f4e42 20519
d32ab992
PB
20520mostlyclean-gdb:
20521 @[ -f ./gdb/Makefile ] || exit 0; \
295f4e42
NN
20522 r=`${PWD_COMMAND}`; export r; \
20523 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20524 $(SET_LIB_PATH) \
4fc4dd12 20525 $(HOST_EXPORTS) \
7c27e184 20526 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
20527 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20528 done; \
d32ab992
PB
20529 echo "Doing mostlyclean in gdb" ; \
20530 (cd gdb && \
295f4e42
NN
20531 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20532 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20533 "RANLIB=$${RANLIB}" \
20534 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20535 mostlyclean) \
295f4e42
NN
20536 || exit 1
20537
d32ab992 20538@endif gdb
295f4e42 20539
d32ab992
PB
20540.PHONY: maybe-clean-gdb clean-gdb
20541maybe-clean-gdb:
20542@if gdb
20543maybe-clean-gdb: clean-gdb
295f4e42 20544
d32ab992
PB
20545clean-gdb:
20546 @[ -f ./gdb/Makefile ] || exit 0; \
295f4e42
NN
20547 r=`${PWD_COMMAND}`; export r; \
20548 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20549 $(SET_LIB_PATH) \
4fc4dd12 20550 $(HOST_EXPORTS) \
7c27e184 20551 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
20552 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20553 done; \
d32ab992
PB
20554 echo "Doing clean in gdb" ; \
20555 (cd gdb && \
295f4e42
NN
20556 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20557 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20558 "RANLIB=$${RANLIB}" \
20559 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20560 clean) \
295f4e42
NN
20561 || exit 1
20562
d32ab992 20563@endif gdb
295f4e42 20564
d32ab992
PB
20565.PHONY: maybe-distclean-gdb distclean-gdb
20566maybe-distclean-gdb:
20567@if gdb
20568maybe-distclean-gdb: distclean-gdb
295f4e42 20569
d32ab992
PB
20570distclean-gdb:
20571 @[ -f ./gdb/Makefile ] || exit 0; \
295f4e42
NN
20572 r=`${PWD_COMMAND}`; export r; \
20573 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20574 $(SET_LIB_PATH) \
4fc4dd12 20575 $(HOST_EXPORTS) \
7c27e184 20576 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
20577 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20578 done; \
d32ab992
PB
20579 echo "Doing distclean in gdb" ; \
20580 (cd gdb && \
295f4e42
NN
20581 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20582 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20583 "RANLIB=$${RANLIB}" \
20584 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20585 distclean) \
295f4e42
NN
20586 || exit 1
20587
d32ab992 20588@endif gdb
295f4e42 20589
d32ab992
PB
20590.PHONY: maybe-maintainer-clean-gdb maintainer-clean-gdb
20591maybe-maintainer-clean-gdb:
20592@if gdb
20593maybe-maintainer-clean-gdb: maintainer-clean-gdb
295f4e42 20594
d32ab992
PB
20595maintainer-clean-gdb:
20596 @[ -f ./gdb/Makefile ] || exit 0; \
295f4e42
NN
20597 r=`${PWD_COMMAND}`; export r; \
20598 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20599 $(SET_LIB_PATH) \
4fc4dd12 20600 $(HOST_EXPORTS) \
7c27e184 20601 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
20602 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20603 done; \
d32ab992
PB
20604 echo "Doing maintainer-clean in gdb" ; \
20605 (cd gdb && \
295f4e42
NN
20606 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20607 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20608 "RANLIB=$${RANLIB}" \
20609 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20610 maintainer-clean) \
295f4e42 20611 || exit 1
7e2dbcef 20612
d32ab992 20613@endif gdb
4977bab6
ZW
20614
20615
d32ab992
PB
20616.PHONY: configure-expect maybe-configure-expect
20617maybe-configure-expect:
20618@if expect
20619maybe-configure-expect: configure-expect
20620configure-expect:
20621 @test ! -f expect/Makefile || exit 0; \
20622 [ -d expect ] || mkdir expect; \
8c90b13a
L
20623 r=`${PWD_COMMAND}`; export r; \
20624 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20625 $(HOST_EXPORTS) \
d32ab992
PB
20626 echo Configuring in expect; \
20627 cd expect || exit 1; \
4977bab6
ZW
20628 case $(srcdir) in \
20629 \.) \
20630 srcdiroption="--srcdir=."; \
20631 libsrcdir=".";; \
20632 /* | [A-Za-z]:[\\/]*) \
d32ab992
PB
20633 srcdiroption="--srcdir=$(srcdir)/expect"; \
20634 libsrcdir="$$s/expect";; \
4977bab6 20635 *) \
d32ab992
PB
20636 srcdiroption="--srcdir=../$(srcdir)/expect"; \
20637 libsrcdir="$$s/expect";; \
4977bab6
ZW
20638 esac; \
20639 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 20640 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 20641 || exit 1
d32ab992 20642@endif expect
4977bab6 20643
d32ab992
PB
20644.PHONY: all-expect maybe-all-expect
20645maybe-all-expect:
20646@if expect
20647maybe-all-expect: all-expect
20648all-expect: configure-expect
8c90b13a
L
20649 @r=`${PWD_COMMAND}`; export r; \
20650 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 20651 $(SET_LIB_PATH) \
4fc4dd12 20652 $(HOST_EXPORTS) \
7c27e184 20653 (cd expect && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
d32ab992 20654@endif expect
4977bab6 20655
d32ab992
PB
20656.PHONY: check-expect maybe-check-expect
20657maybe-check-expect:
20658@if expect
20659maybe-check-expect: check-expect
4977bab6 20660
d32ab992 20661check-expect:
8c90b13a
L
20662 @r=`${PWD_COMMAND}`; export r; \
20663 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 20664 $(SET_LIB_PATH) \
4fc4dd12 20665 $(HOST_EXPORTS) \
7c27e184 20666 (cd expect && $(MAKE) $(FLAGS_TO_PASS)$(X11_FLAGS_TO_PASS) check)
4977bab6 20667
d32ab992 20668@endif expect
4977bab6 20669
d32ab992
PB
20670.PHONY: install-expect maybe-install-expect
20671maybe-install-expect:
20672@if expect
20673maybe-install-expect: install-expect
7e2dbcef 20674
d32ab992 20675install-expect: installdirs
8c90b13a
L
20676 @r=`${PWD_COMMAND}`; export r; \
20677 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 20678 $(SET_LIB_PATH) \
4fc4dd12 20679 $(HOST_EXPORTS) \
7c27e184 20680 (cd expect && $(MAKE) $(FLAGS_TO_PASS)$(X11_FLAGS_TO_PASS) install)
4977bab6 20681
d32ab992 20682@endif expect
4977bab6 20683
295f4e42
NN
20684# Other targets (info, dvi, etc.)
20685
d32ab992
PB
20686.PHONY: maybe-info-expect info-expect
20687maybe-info-expect:
20688@if expect
20689maybe-info-expect: info-expect
295f4e42 20690
d32ab992
PB
20691info-expect: \
20692 configure-expect
20693 @[ -f ./expect/Makefile ] || exit 0; \
295f4e42
NN
20694 r=`${PWD_COMMAND}`; export r; \
20695 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20696 $(SET_LIB_PATH) \
4fc4dd12 20697 $(HOST_EXPORTS) \
7c27e184 20698 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
20699 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20700 done; \
d32ab992
PB
20701 echo "Doing info in expect" ; \
20702 (cd expect && \
295f4e42
NN
20703 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20704 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20705 "RANLIB=$${RANLIB}" \
20706 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20707 info) \
295f4e42
NN
20708 || exit 1
20709
d32ab992 20710@endif expect
295f4e42 20711
d32ab992
PB
20712.PHONY: maybe-dvi-expect dvi-expect
20713maybe-dvi-expect:
20714@if expect
20715maybe-dvi-expect: dvi-expect
295f4e42 20716
d32ab992
PB
20717dvi-expect: \
20718 configure-expect
20719 @[ -f ./expect/Makefile ] || exit 0; \
295f4e42
NN
20720 r=`${PWD_COMMAND}`; export r; \
20721 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20722 $(SET_LIB_PATH) \
4fc4dd12 20723 $(HOST_EXPORTS) \
7c27e184 20724 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
20725 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20726 done; \
d32ab992
PB
20727 echo "Doing dvi in expect" ; \
20728 (cd expect && \
295f4e42
NN
20729 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20730 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20731 "RANLIB=$${RANLIB}" \
20732 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20733 dvi) \
295f4e42
NN
20734 || exit 1
20735
d32ab992 20736@endif expect
295f4e42 20737
d32ab992
PB
20738.PHONY: maybe-TAGS-expect TAGS-expect
20739maybe-TAGS-expect:
20740@if expect
20741maybe-TAGS-expect: TAGS-expect
295f4e42 20742
d32ab992
PB
20743TAGS-expect: \
20744 configure-expect
20745 @[ -f ./expect/Makefile ] || exit 0; \
295f4e42
NN
20746 r=`${PWD_COMMAND}`; export r; \
20747 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20748 $(SET_LIB_PATH) \
4fc4dd12 20749 $(HOST_EXPORTS) \
7c27e184 20750 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
20751 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20752 done; \
d32ab992
PB
20753 echo "Doing TAGS in expect" ; \
20754 (cd expect && \
295f4e42
NN
20755 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20756 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20757 "RANLIB=$${RANLIB}" \
20758 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20759 TAGS) \
295f4e42
NN
20760 || exit 1
20761
d32ab992 20762@endif expect
295f4e42 20763
d32ab992
PB
20764.PHONY: maybe-install-info-expect install-info-expect
20765maybe-install-info-expect:
20766@if expect
20767maybe-install-info-expect: install-info-expect
295f4e42 20768
d32ab992
PB
20769install-info-expect: \
20770 configure-expect \
20771 info-expect
20772 @[ -f ./expect/Makefile ] || exit 0; \
295f4e42
NN
20773 r=`${PWD_COMMAND}`; export r; \
20774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20775 $(SET_LIB_PATH) \
4fc4dd12 20776 $(HOST_EXPORTS) \
7c27e184 20777 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
20778 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20779 done; \
d32ab992
PB
20780 echo "Doing install-info in expect" ; \
20781 (cd expect && \
295f4e42
NN
20782 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20783 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20784 "RANLIB=$${RANLIB}" \
20785 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20786 install-info) \
295f4e42
NN
20787 || exit 1
20788
d32ab992 20789@endif expect
295f4e42 20790
d32ab992
PB
20791.PHONY: maybe-installcheck-expect installcheck-expect
20792maybe-installcheck-expect:
20793@if expect
20794maybe-installcheck-expect: installcheck-expect
295f4e42 20795
d32ab992
PB
20796installcheck-expect: \
20797 configure-expect
20798 @[ -f ./expect/Makefile ] || exit 0; \
295f4e42
NN
20799 r=`${PWD_COMMAND}`; export r; \
20800 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20801 $(SET_LIB_PATH) \
4fc4dd12 20802 $(HOST_EXPORTS) \
7c27e184 20803 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
20804 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20805 done; \
d32ab992
PB
20806 echo "Doing installcheck in expect" ; \
20807 (cd expect && \
295f4e42
NN
20808 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20809 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20810 "RANLIB=$${RANLIB}" \
20811 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20812 installcheck) \
295f4e42
NN
20813 || exit 1
20814
d32ab992 20815@endif expect
295f4e42 20816
d32ab992
PB
20817.PHONY: maybe-mostlyclean-expect mostlyclean-expect
20818maybe-mostlyclean-expect:
20819@if expect
20820maybe-mostlyclean-expect: mostlyclean-expect
295f4e42 20821
d32ab992
PB
20822mostlyclean-expect:
20823 @[ -f ./expect/Makefile ] || exit 0; \
295f4e42
NN
20824 r=`${PWD_COMMAND}`; export r; \
20825 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20826 $(SET_LIB_PATH) \
4fc4dd12 20827 $(HOST_EXPORTS) \
7c27e184 20828 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
20829 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20830 done; \
d32ab992
PB
20831 echo "Doing mostlyclean in expect" ; \
20832 (cd expect && \
295f4e42
NN
20833 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20834 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20835 "RANLIB=$${RANLIB}" \
20836 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20837 mostlyclean) \
295f4e42
NN
20838 || exit 1
20839
d32ab992 20840@endif expect
295f4e42 20841
d32ab992
PB
20842.PHONY: maybe-clean-expect clean-expect
20843maybe-clean-expect:
20844@if expect
20845maybe-clean-expect: clean-expect
295f4e42 20846
d32ab992
PB
20847clean-expect:
20848 @[ -f ./expect/Makefile ] || exit 0; \
295f4e42
NN
20849 r=`${PWD_COMMAND}`; export r; \
20850 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20851 $(SET_LIB_PATH) \
4fc4dd12 20852 $(HOST_EXPORTS) \
7c27e184 20853 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
20854 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20855 done; \
d32ab992
PB
20856 echo "Doing clean in expect" ; \
20857 (cd expect && \
295f4e42
NN
20858 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20859 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20860 "RANLIB=$${RANLIB}" \
20861 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20862 clean) \
295f4e42
NN
20863 || exit 1
20864
d32ab992 20865@endif expect
295f4e42 20866
d32ab992
PB
20867.PHONY: maybe-distclean-expect distclean-expect
20868maybe-distclean-expect:
20869@if expect
20870maybe-distclean-expect: distclean-expect
295f4e42 20871
d32ab992
PB
20872distclean-expect:
20873 @[ -f ./expect/Makefile ] || exit 0; \
295f4e42
NN
20874 r=`${PWD_COMMAND}`; export r; \
20875 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20876 $(SET_LIB_PATH) \
4fc4dd12 20877 $(HOST_EXPORTS) \
7c27e184 20878 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
20879 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20880 done; \
d32ab992
PB
20881 echo "Doing distclean in expect" ; \
20882 (cd expect && \
295f4e42
NN
20883 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20884 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20885 "RANLIB=$${RANLIB}" \
20886 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20887 distclean) \
295f4e42
NN
20888 || exit 1
20889
d32ab992 20890@endif expect
295f4e42 20891
d32ab992
PB
20892.PHONY: maybe-maintainer-clean-expect maintainer-clean-expect
20893maybe-maintainer-clean-expect:
20894@if expect
20895maybe-maintainer-clean-expect: maintainer-clean-expect
295f4e42 20896
d32ab992
PB
20897maintainer-clean-expect:
20898 @[ -f ./expect/Makefile ] || exit 0; \
295f4e42
NN
20899 r=`${PWD_COMMAND}`; export r; \
20900 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20901 $(SET_LIB_PATH) \
4fc4dd12 20902 $(HOST_EXPORTS) \
7c27e184 20903 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
20904 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20905 done; \
d32ab992
PB
20906 echo "Doing maintainer-clean in expect" ; \
20907 (cd expect && \
295f4e42
NN
20908 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20909 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20910 "RANLIB=$${RANLIB}" \
20911 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20912 maintainer-clean) \
295f4e42
NN
20913 || exit 1
20914
d32ab992 20915@endif expect
295f4e42
NN
20916
20917
d32ab992
PB
20918.PHONY: configure-guile maybe-configure-guile
20919maybe-configure-guile:
20920@if guile
20921maybe-configure-guile: configure-guile
20922configure-guile:
20923 @test ! -f guile/Makefile || exit 0; \
20924 [ -d guile ] || mkdir guile; \
8c90b13a
L
20925 r=`${PWD_COMMAND}`; export r; \
20926 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20927 $(HOST_EXPORTS) \
d32ab992
PB
20928 echo Configuring in guile; \
20929 cd guile || exit 1; \
4977bab6
ZW
20930 case $(srcdir) in \
20931 \.) \
20932 srcdiroption="--srcdir=."; \
20933 libsrcdir=".";; \
20934 /* | [A-Za-z]:[\\/]*) \
d32ab992
PB
20935 srcdiroption="--srcdir=$(srcdir)/guile"; \
20936 libsrcdir="$$s/guile";; \
4977bab6 20937 *) \
d32ab992
PB
20938 srcdiroption="--srcdir=../$(srcdir)/guile"; \
20939 libsrcdir="$$s/guile";; \
4977bab6
ZW
20940 esac; \
20941 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 20942 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 20943 || exit 1
d32ab992 20944@endif guile
4977bab6 20945
d32ab992
PB
20946.PHONY: all-guile maybe-all-guile
20947maybe-all-guile:
20948@if guile
20949maybe-all-guile: all-guile
20950all-guile: configure-guile
8c90b13a
L
20951 @r=`${PWD_COMMAND}`; export r; \
20952 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 20953 $(SET_LIB_PATH) \
4fc4dd12 20954 $(HOST_EXPORTS) \
7c27e184 20955 (cd guile && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
d32ab992 20956@endif guile
4977bab6 20957
d32ab992
PB
20958.PHONY: check-guile maybe-check-guile
20959maybe-check-guile:
20960@if guile
20961maybe-check-guile: check-guile
4977bab6 20962
d32ab992 20963check-guile:
8c90b13a
L
20964 @r=`${PWD_COMMAND}`; export r; \
20965 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 20966 $(SET_LIB_PATH) \
4fc4dd12 20967 $(HOST_EXPORTS) \
7c27e184 20968 (cd guile && $(MAKE) $(FLAGS_TO_PASS)$(X11_FLAGS_TO_PASS) check)
4977bab6 20969
d32ab992 20970@endif guile
7e2dbcef 20971
d32ab992
PB
20972.PHONY: install-guile maybe-install-guile
20973maybe-install-guile:
20974@if guile
20975maybe-install-guile: install-guile
20976
20977install-guile: installdirs
8c90b13a
L
20978 @r=`${PWD_COMMAND}`; export r; \
20979 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 20980 $(SET_LIB_PATH) \
4fc4dd12 20981 $(HOST_EXPORTS) \
7c27e184 20982 (cd guile && $(MAKE) $(FLAGS_TO_PASS)$(X11_FLAGS_TO_PASS) install)
4977bab6 20983
d32ab992 20984@endif guile
4977bab6 20985
295f4e42
NN
20986# Other targets (info, dvi, etc.)
20987
d32ab992
PB
20988.PHONY: maybe-info-guile info-guile
20989maybe-info-guile:
20990@if guile
20991maybe-info-guile: info-guile
295f4e42 20992
d32ab992
PB
20993info-guile: \
20994 configure-guile
20995 @[ -f ./guile/Makefile ] || exit 0; \
8c90b13a
L
20996 r=`${PWD_COMMAND}`; export r; \
20997 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
295f4e42 20998 $(SET_LIB_PATH) \
4fc4dd12 20999 $(HOST_EXPORTS) \
7c27e184 21000 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
21001 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21002 done; \
d32ab992
PB
21003 echo "Doing info in guile" ; \
21004 (cd guile && \
295f4e42
NN
21005 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21006 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21007 "RANLIB=$${RANLIB}" \
21008 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21009 info) \
4977bab6
ZW
21010 || exit 1
21011
d32ab992 21012@endif guile
295f4e42 21013
d32ab992
PB
21014.PHONY: maybe-dvi-guile dvi-guile
21015maybe-dvi-guile:
21016@if guile
21017maybe-dvi-guile: dvi-guile
295f4e42 21018
d32ab992
PB
21019dvi-guile: \
21020 configure-guile
21021 @[ -f ./guile/Makefile ] || exit 0; \
295f4e42 21022 r=`${PWD_COMMAND}`; export r; \
8c90b13a 21023 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 21024 $(SET_LIB_PATH) \
4fc4dd12 21025 $(HOST_EXPORTS) \
7c27e184 21026 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
21027 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21028 done; \
d32ab992
PB
21029 echo "Doing dvi in guile" ; \
21030 (cd guile && \
295f4e42
NN
21031 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21032 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21033 "RANLIB=$${RANLIB}" \
21034 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21035 dvi) \
295f4e42 21036 || exit 1
4977bab6 21037
d32ab992 21038@endif guile
4977bab6 21039
d32ab992
PB
21040.PHONY: maybe-TAGS-guile TAGS-guile
21041maybe-TAGS-guile:
21042@if guile
21043maybe-TAGS-guile: TAGS-guile
295f4e42 21044
d32ab992
PB
21045TAGS-guile: \
21046 configure-guile
21047 @[ -f ./guile/Makefile ] || exit 0; \
295f4e42 21048 r=`${PWD_COMMAND}`; export r; \
8c90b13a 21049 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 21050 $(SET_LIB_PATH) \
4fc4dd12 21051 $(HOST_EXPORTS) \
7c27e184 21052 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
21053 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21054 done; \
d32ab992
PB
21055 echo "Doing TAGS in guile" ; \
21056 (cd guile && \
295f4e42
NN
21057 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21058 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21059 "RANLIB=$${RANLIB}" \
21060 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21061 TAGS) \
295f4e42 21062 || exit 1
4977bab6 21063
d32ab992 21064@endif guile
4977bab6 21065
d32ab992
PB
21066.PHONY: maybe-install-info-guile install-info-guile
21067maybe-install-info-guile:
21068@if guile
21069maybe-install-info-guile: install-info-guile
7e2dbcef 21070
d32ab992
PB
21071install-info-guile: \
21072 configure-guile \
21073 info-guile
21074 @[ -f ./guile/Makefile ] || exit 0; \
295f4e42
NN
21075 r=`${PWD_COMMAND}`; export r; \
21076 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21077 $(SET_LIB_PATH) \
4fc4dd12 21078 $(HOST_EXPORTS) \
7c27e184 21079 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
21080 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21081 done; \
d32ab992
PB
21082 echo "Doing install-info in guile" ; \
21083 (cd guile && \
295f4e42
NN
21084 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21085 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21086 "RANLIB=$${RANLIB}" \
21087 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21088 install-info) \
295f4e42
NN
21089 || exit 1
21090
d32ab992 21091@endif guile
295f4e42 21092
d32ab992
PB
21093.PHONY: maybe-installcheck-guile installcheck-guile
21094maybe-installcheck-guile:
21095@if guile
21096maybe-installcheck-guile: installcheck-guile
295f4e42 21097
d32ab992
PB
21098installcheck-guile: \
21099 configure-guile
21100 @[ -f ./guile/Makefile ] || exit 0; \
295f4e42
NN
21101 r=`${PWD_COMMAND}`; export r; \
21102 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21103 $(SET_LIB_PATH) \
4fc4dd12 21104 $(HOST_EXPORTS) \
7c27e184 21105 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
21106 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21107 done; \
d32ab992
PB
21108 echo "Doing installcheck in guile" ; \
21109 (cd guile && \
295f4e42
NN
21110 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21111 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21112 "RANLIB=$${RANLIB}" \
21113 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21114 installcheck) \
295f4e42
NN
21115 || exit 1
21116
d32ab992 21117@endif guile
295f4e42 21118
d32ab992
PB
21119.PHONY: maybe-mostlyclean-guile mostlyclean-guile
21120maybe-mostlyclean-guile:
21121@if guile
21122maybe-mostlyclean-guile: mostlyclean-guile
295f4e42 21123
d32ab992
PB
21124mostlyclean-guile:
21125 @[ -f ./guile/Makefile ] || exit 0; \
295f4e42
NN
21126 r=`${PWD_COMMAND}`; export r; \
21127 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21128 $(SET_LIB_PATH) \
4fc4dd12 21129 $(HOST_EXPORTS) \
7c27e184 21130 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
21131 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21132 done; \
d32ab992
PB
21133 echo "Doing mostlyclean in guile" ; \
21134 (cd guile && \
295f4e42
NN
21135 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21136 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21137 "RANLIB=$${RANLIB}" \
21138 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21139 mostlyclean) \
295f4e42
NN
21140 || exit 1
21141
d32ab992 21142@endif guile
295f4e42 21143
d32ab992
PB
21144.PHONY: maybe-clean-guile clean-guile
21145maybe-clean-guile:
21146@if guile
21147maybe-clean-guile: clean-guile
295f4e42 21148
d32ab992
PB
21149clean-guile:
21150 @[ -f ./guile/Makefile ] || exit 0; \
295f4e42
NN
21151 r=`${PWD_COMMAND}`; export r; \
21152 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21153 $(SET_LIB_PATH) \
4fc4dd12 21154 $(HOST_EXPORTS) \
7c27e184 21155 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
21156 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21157 done; \
d32ab992
PB
21158 echo "Doing clean in guile" ; \
21159 (cd guile && \
295f4e42
NN
21160 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21161 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21162 "RANLIB=$${RANLIB}" \
21163 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21164 clean) \
295f4e42
NN
21165 || exit 1
21166
d32ab992 21167@endif guile
295f4e42 21168
d32ab992
PB
21169.PHONY: maybe-distclean-guile distclean-guile
21170maybe-distclean-guile:
21171@if guile
21172maybe-distclean-guile: distclean-guile
295f4e42 21173
d32ab992
PB
21174distclean-guile:
21175 @[ -f ./guile/Makefile ] || exit 0; \
295f4e42
NN
21176 r=`${PWD_COMMAND}`; export r; \
21177 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21178 $(SET_LIB_PATH) \
4fc4dd12 21179 $(HOST_EXPORTS) \
7c27e184 21180 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
21181 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21182 done; \
d32ab992
PB
21183 echo "Doing distclean in guile" ; \
21184 (cd guile && \
295f4e42
NN
21185 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21186 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21187 "RANLIB=$${RANLIB}" \
21188 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21189 distclean) \
295f4e42
NN
21190 || exit 1
21191
d32ab992 21192@endif guile
295f4e42 21193
d32ab992
PB
21194.PHONY: maybe-maintainer-clean-guile maintainer-clean-guile
21195maybe-maintainer-clean-guile:
21196@if guile
21197maybe-maintainer-clean-guile: maintainer-clean-guile
295f4e42 21198
d32ab992
PB
21199maintainer-clean-guile:
21200 @[ -f ./guile/Makefile ] || exit 0; \
295f4e42 21201 r=`${PWD_COMMAND}`; export r; \
8c90b13a 21202 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 21203 $(SET_LIB_PATH) \
4fc4dd12 21204 $(HOST_EXPORTS) \
7c27e184 21205 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
21206 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21207 done; \
d32ab992
PB
21208 echo "Doing maintainer-clean in guile" ; \
21209 (cd guile && \
295f4e42
NN
21210 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21211 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21212 "RANLIB=$${RANLIB}" \
21213 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21214 maintainer-clean) \
295f4e42 21215 || exit 1
4977bab6 21216
d32ab992 21217@endif guile
4977bab6 21218
295f4e42 21219
d32ab992
PB
21220.PHONY: configure-tk maybe-configure-tk
21221maybe-configure-tk:
21222@if tk
21223maybe-configure-tk: configure-tk
21224configure-tk:
21225 @test ! -f tk/Makefile || exit 0; \
21226 [ -d tk ] || mkdir tk; \
8c90b13a
L
21227 r=`${PWD_COMMAND}`; export r; \
21228 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21229 $(HOST_EXPORTS) \
d32ab992
PB
21230 echo Configuring in tk; \
21231 cd tk || exit 1; \
4977bab6
ZW
21232 case $(srcdir) in \
21233 \.) \
21234 srcdiroption="--srcdir=."; \
21235 libsrcdir=".";; \
21236 /* | [A-Za-z]:[\\/]*) \
d32ab992
PB
21237 srcdiroption="--srcdir=$(srcdir)/tk"; \
21238 libsrcdir="$$s/tk";; \
4977bab6 21239 *) \
d32ab992
PB
21240 srcdiroption="--srcdir=../$(srcdir)/tk"; \
21241 libsrcdir="$$s/tk";; \
4977bab6
ZW
21242 esac; \
21243 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 21244 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 21245 || exit 1
d32ab992 21246@endif tk
4977bab6 21247
d32ab992
PB
21248.PHONY: all-tk maybe-all-tk
21249maybe-all-tk:
21250@if tk
21251maybe-all-tk: all-tk
21252all-tk: configure-tk
8c90b13a
L
21253 @r=`${PWD_COMMAND}`; export r; \
21254 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 21255 $(SET_LIB_PATH) \
4fc4dd12 21256 $(HOST_EXPORTS) \
7c27e184 21257 (cd tk && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
d32ab992 21258@endif tk
4977bab6 21259
d32ab992
PB
21260.PHONY: check-tk maybe-check-tk
21261maybe-check-tk:
21262@if tk
21263maybe-check-tk: check-tk
4977bab6 21264
d32ab992 21265check-tk:
8c90b13a
L
21266 @r=`${PWD_COMMAND}`; export r; \
21267 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 21268 $(SET_LIB_PATH) \
4fc4dd12 21269 $(HOST_EXPORTS) \
7c27e184 21270 (cd tk && $(MAKE) $(FLAGS_TO_PASS)$(X11_FLAGS_TO_PASS) check)
4977bab6 21271
d32ab992 21272@endif tk
4977bab6 21273
d32ab992
PB
21274.PHONY: install-tk maybe-install-tk
21275maybe-install-tk:
21276@if tk
21277maybe-install-tk: install-tk
7e2dbcef 21278
d32ab992 21279install-tk: installdirs
8c90b13a
L
21280 @r=`${PWD_COMMAND}`; export r; \
21281 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 21282 $(SET_LIB_PATH) \
4fc4dd12 21283 $(HOST_EXPORTS) \
7c27e184 21284 (cd tk && $(MAKE) $(FLAGS_TO_PASS)$(X11_FLAGS_TO_PASS) install)
295f4e42 21285
d32ab992 21286@endif tk
295f4e42
NN
21287
21288# Other targets (info, dvi, etc.)
21289
d32ab992
PB
21290.PHONY: maybe-info-tk info-tk
21291maybe-info-tk:
21292@if tk
21293maybe-info-tk: info-tk
295f4e42 21294
d32ab992
PB
21295info-tk: \
21296 configure-tk
21297 @[ -f ./tk/Makefile ] || exit 0; \
295f4e42
NN
21298 r=`${PWD_COMMAND}`; export r; \
21299 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21300 $(SET_LIB_PATH) \
4fc4dd12 21301 $(HOST_EXPORTS) \
7c27e184 21302 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
21303 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21304 done; \
d32ab992
PB
21305 echo "Doing info in tk" ; \
21306 (cd tk && \
295f4e42
NN
21307 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21308 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21309 "RANLIB=$${RANLIB}" \
21310 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21311 info) \
295f4e42
NN
21312 || exit 1
21313
d32ab992 21314@endif tk
295f4e42 21315
d32ab992
PB
21316.PHONY: maybe-dvi-tk dvi-tk
21317maybe-dvi-tk:
21318@if tk
21319maybe-dvi-tk: dvi-tk
295f4e42 21320
d32ab992
PB
21321dvi-tk: \
21322 configure-tk
21323 @[ -f ./tk/Makefile ] || exit 0; \
295f4e42
NN
21324 r=`${PWD_COMMAND}`; export r; \
21325 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21326 $(SET_LIB_PATH) \
4fc4dd12 21327 $(HOST_EXPORTS) \
7c27e184 21328 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
21329 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21330 done; \
d32ab992
PB
21331 echo "Doing dvi in tk" ; \
21332 (cd tk && \
295f4e42
NN
21333 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21334 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21335 "RANLIB=$${RANLIB}" \
21336 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21337 dvi) \
295f4e42
NN
21338 || exit 1
21339
d32ab992 21340@endif tk
295f4e42 21341
d32ab992
PB
21342.PHONY: maybe-TAGS-tk TAGS-tk
21343maybe-TAGS-tk:
21344@if tk
21345maybe-TAGS-tk: TAGS-tk
295f4e42 21346
d32ab992
PB
21347TAGS-tk: \
21348 configure-tk
21349 @[ -f ./tk/Makefile ] || exit 0; \
295f4e42
NN
21350 r=`${PWD_COMMAND}`; export r; \
21351 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21352 $(SET_LIB_PATH) \
4fc4dd12 21353 $(HOST_EXPORTS) \
7c27e184 21354 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
21355 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21356 done; \
d32ab992
PB
21357 echo "Doing TAGS in tk" ; \
21358 (cd tk && \
295f4e42
NN
21359 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21360 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21361 "RANLIB=$${RANLIB}" \
21362 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21363 TAGS) \
295f4e42
NN
21364 || exit 1
21365
d32ab992 21366@endif tk
295f4e42 21367
d32ab992
PB
21368.PHONY: maybe-install-info-tk install-info-tk
21369maybe-install-info-tk:
21370@if tk
21371maybe-install-info-tk: install-info-tk
295f4e42 21372
d32ab992
PB
21373install-info-tk: \
21374 configure-tk \
21375 info-tk
21376 @[ -f ./tk/Makefile ] || exit 0; \
295f4e42
NN
21377 r=`${PWD_COMMAND}`; export r; \
21378 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21379 $(SET_LIB_PATH) \
4fc4dd12 21380 $(HOST_EXPORTS) \
7c27e184 21381 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
21382 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21383 done; \
d32ab992
PB
21384 echo "Doing install-info in tk" ; \
21385 (cd tk && \
295f4e42
NN
21386 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21387 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21388 "RANLIB=$${RANLIB}" \
21389 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21390 install-info) \
295f4e42
NN
21391 || exit 1
21392
d32ab992 21393@endif tk
295f4e42 21394
d32ab992
PB
21395.PHONY: maybe-installcheck-tk installcheck-tk
21396maybe-installcheck-tk:
21397@if tk
21398maybe-installcheck-tk: installcheck-tk
295f4e42 21399
d32ab992
PB
21400installcheck-tk: \
21401 configure-tk
21402 @[ -f ./tk/Makefile ] || exit 0; \
295f4e42
NN
21403 r=`${PWD_COMMAND}`; export r; \
21404 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21405 $(SET_LIB_PATH) \
4fc4dd12 21406 $(HOST_EXPORTS) \
7c27e184 21407 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
21408 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21409 done; \
d32ab992
PB
21410 echo "Doing installcheck in tk" ; \
21411 (cd tk && \
295f4e42
NN
21412 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21413 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21414 "RANLIB=$${RANLIB}" \
21415 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21416 installcheck) \
295f4e42
NN
21417 || exit 1
21418
d32ab992 21419@endif tk
295f4e42 21420
d32ab992
PB
21421.PHONY: maybe-mostlyclean-tk mostlyclean-tk
21422maybe-mostlyclean-tk:
21423@if tk
21424maybe-mostlyclean-tk: mostlyclean-tk
295f4e42 21425
d32ab992
PB
21426mostlyclean-tk:
21427 @[ -f ./tk/Makefile ] || exit 0; \
295f4e42
NN
21428 r=`${PWD_COMMAND}`; export r; \
21429 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21430 $(SET_LIB_PATH) \
4fc4dd12 21431 $(HOST_EXPORTS) \
7c27e184 21432 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
21433 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21434 done; \
d32ab992
PB
21435 echo "Doing mostlyclean in tk" ; \
21436 (cd tk && \
295f4e42
NN
21437 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21438 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21439 "RANLIB=$${RANLIB}" \
21440 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21441 mostlyclean) \
295f4e42
NN
21442 || exit 1
21443
d32ab992 21444@endif tk
295f4e42 21445
d32ab992
PB
21446.PHONY: maybe-clean-tk clean-tk
21447maybe-clean-tk:
21448@if tk
21449maybe-clean-tk: clean-tk
295f4e42 21450
d32ab992
PB
21451clean-tk:
21452 @[ -f ./tk/Makefile ] || exit 0; \
295f4e42
NN
21453 r=`${PWD_COMMAND}`; export r; \
21454 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21455 $(SET_LIB_PATH) \
4fc4dd12 21456 $(HOST_EXPORTS) \
7c27e184 21457 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
21458 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21459 done; \
d32ab992
PB
21460 echo "Doing clean in tk" ; \
21461 (cd tk && \
295f4e42
NN
21462 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21463 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21464 "RANLIB=$${RANLIB}" \
21465 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21466 clean) \
295f4e42
NN
21467 || exit 1
21468
d32ab992 21469@endif tk
295f4e42 21470
d32ab992
PB
21471.PHONY: maybe-distclean-tk distclean-tk
21472maybe-distclean-tk:
21473@if tk
21474maybe-distclean-tk: distclean-tk
295f4e42 21475
d32ab992
PB
21476distclean-tk:
21477 @[ -f ./tk/Makefile ] || exit 0; \
295f4e42
NN
21478 r=`${PWD_COMMAND}`; export r; \
21479 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21480 $(SET_LIB_PATH) \
4fc4dd12 21481 $(HOST_EXPORTS) \
7c27e184 21482 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
21483 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21484 done; \
d32ab992
PB
21485 echo "Doing distclean in tk" ; \
21486 (cd tk && \
295f4e42
NN
21487 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21488 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21489 "RANLIB=$${RANLIB}" \
21490 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21491 distclean) \
295f4e42
NN
21492 || exit 1
21493
d32ab992 21494@endif tk
295f4e42 21495
d32ab992
PB
21496.PHONY: maybe-maintainer-clean-tk maintainer-clean-tk
21497maybe-maintainer-clean-tk:
21498@if tk
21499maybe-maintainer-clean-tk: maintainer-clean-tk
295f4e42 21500
d32ab992
PB
21501maintainer-clean-tk:
21502 @[ -f ./tk/Makefile ] || exit 0; \
295f4e42
NN
21503 r=`${PWD_COMMAND}`; export r; \
21504 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21505 $(SET_LIB_PATH) \
4fc4dd12 21506 $(HOST_EXPORTS) \
7c27e184 21507 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
21508 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21509 done; \
d32ab992
PB
21510 echo "Doing maintainer-clean in tk" ; \
21511 (cd tk && \
295f4e42
NN
21512 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21513 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21514 "RANLIB=$${RANLIB}" \
21515 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21516 maintainer-clean) \
295f4e42
NN
21517 || exit 1
21518
d32ab992 21519@endif tk
4977bab6
ZW
21520
21521
d32ab992
PB
21522.PHONY: configure-libtermcap maybe-configure-libtermcap
21523maybe-configure-libtermcap:
21524@if libtermcap
21525maybe-configure-libtermcap: configure-libtermcap
21526configure-libtermcap:
21527 @test ! -f libtermcap/Makefile || exit 0; \
21528 [ -d libtermcap ] || mkdir libtermcap; \
21529 r=`${PWD_COMMAND}`; export r; \
21530 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21531 $(HOST_EXPORTS) \
21532 echo Configuring in libtermcap; \
21533 cd libtermcap || exit 1; \
21534 case $(srcdir) in \
21535 \.) \
21536 srcdiroption="--srcdir=."; \
21537 libsrcdir=".";; \
21538 /* | [A-Za-z]:[\\/]*) \
21539 srcdiroption="--srcdir=$(srcdir)/libtermcap"; \
21540 libsrcdir="$$s/libtermcap";; \
21541 *) \
21542 srcdiroption="--srcdir=../$(srcdir)/libtermcap"; \
21543 libsrcdir="$$s/libtermcap";; \
21544 esac; \
21545 $(SHELL) $${libsrcdir}/configure \
21546 $(HOST_CONFIGARGS) $${srcdiroption} \
21547 || exit 1
21548@endif libtermcap
21549
21550.PHONY: all-libtermcap maybe-all-libtermcap
21551maybe-all-libtermcap:
21552@if libtermcap
21553maybe-all-libtermcap: all-libtermcap
21554all-libtermcap: configure-libtermcap
21555 @r=`${PWD_COMMAND}`; export r; \
21556 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21557 $(SET_LIB_PATH) \
21558 $(HOST_EXPORTS) \
21559 (cd libtermcap && $(MAKE) $(FLAGS_TO_PASS) all)
21560@endif libtermcap
21561
21562.PHONY: check-libtermcap maybe-check-libtermcap
21563maybe-check-libtermcap:
21564@if libtermcap
21565maybe-check-libtermcap: check-libtermcap
21566
21567check-libtermcap:
4977bab6 21568
60975492 21569@endif libtermcap
4977bab6 21570
295f4e42
NN
21571.PHONY: install-libtermcap maybe-install-libtermcap
21572maybe-install-libtermcap:
60975492
PB
21573@if libtermcap
21574maybe-install-libtermcap: install-libtermcap
7e2dbcef 21575
295f4e42 21576install-libtermcap: installdirs
8c90b13a
L
21577 @r=`${PWD_COMMAND}`; export r; \
21578 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 21579 $(SET_LIB_PATH) \
4fc4dd12 21580 $(HOST_EXPORTS) \
7c27e184 21581 (cd libtermcap && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6 21582
60975492 21583@endif libtermcap
4977bab6 21584
295f4e42
NN
21585# Other targets (info, dvi, etc.)
21586
21587.PHONY: maybe-info-libtermcap info-libtermcap
21588maybe-info-libtermcap:
60975492
PB
21589@if libtermcap
21590maybe-info-libtermcap: info-libtermcap
295f4e42
NN
21591
21592info-libtermcap: \
21593 configure-libtermcap
21594 @[ -f ./libtermcap/Makefile ] || exit 0; \
8c90b13a
L
21595 r=`${PWD_COMMAND}`; export r; \
21596 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
295f4e42 21597 $(SET_LIB_PATH) \
4fc4dd12 21598 $(HOST_EXPORTS) \
d32ab992 21599 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21600 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21601 done; \
21602 echo "Doing info in libtermcap" ; \
21603 (cd libtermcap && \
21604 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21605 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21606 "RANLIB=$${RANLIB}" \
21607 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21608 info) \
4977bab6
ZW
21609 || exit 1
21610
60975492 21611@endif libtermcap
4977bab6 21612
295f4e42
NN
21613.PHONY: maybe-dvi-libtermcap dvi-libtermcap
21614maybe-dvi-libtermcap:
60975492
PB
21615@if libtermcap
21616maybe-dvi-libtermcap: dvi-libtermcap
4977bab6 21617
295f4e42
NN
21618dvi-libtermcap: \
21619 configure-libtermcap
21620 @[ -f ./libtermcap/Makefile ] || exit 0; \
21621 r=`${PWD_COMMAND}`; export r; \
8c90b13a 21622 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 21623 $(SET_LIB_PATH) \
4fc4dd12 21624 $(HOST_EXPORTS) \
d32ab992 21625 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21626 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21627 done; \
21628 echo "Doing dvi in libtermcap" ; \
21629 (cd libtermcap && \
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}" \
d32ab992 21634 dvi) \
295f4e42 21635 || exit 1
4977bab6 21636
60975492 21637@endif libtermcap
4977bab6 21638
295f4e42
NN
21639.PHONY: maybe-TAGS-libtermcap TAGS-libtermcap
21640maybe-TAGS-libtermcap:
60975492
PB
21641@if libtermcap
21642maybe-TAGS-libtermcap: TAGS-libtermcap
7e2dbcef 21643
295f4e42
NN
21644TAGS-libtermcap: \
21645 configure-libtermcap
21646 @[ -f ./libtermcap/Makefile ] || exit 0; \
21647 r=`${PWD_COMMAND}`; export r; \
8c90b13a 21648 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 21649 $(SET_LIB_PATH) \
4fc4dd12 21650 $(HOST_EXPORTS) \
d32ab992 21651 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21652 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21653 done; \
21654 echo "Doing TAGS in libtermcap" ; \
21655 (cd libtermcap && \
21656 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21657 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21658 "RANLIB=$${RANLIB}" \
21659 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21660 TAGS) \
295f4e42 21661 || exit 1
4977bab6 21662
60975492 21663@endif libtermcap
4977bab6 21664
295f4e42
NN
21665.PHONY: maybe-install-info-libtermcap install-info-libtermcap
21666maybe-install-info-libtermcap:
60975492
PB
21667@if libtermcap
21668maybe-install-info-libtermcap: install-info-libtermcap
295f4e42
NN
21669
21670install-info-libtermcap: \
21671 configure-libtermcap \
21672 info-libtermcap
21673 @[ -f ./libtermcap/Makefile ] || exit 0; \
8c90b13a
L
21674 r=`${PWD_COMMAND}`; export r; \
21675 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
295f4e42 21676 $(SET_LIB_PATH) \
4fc4dd12 21677 $(HOST_EXPORTS) \
d32ab992 21678 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21679 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21680 done; \
21681 echo "Doing install-info in libtermcap" ; \
21682 (cd libtermcap && \
21683 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21684 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21685 "RANLIB=$${RANLIB}" \
21686 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21687 install-info) \
4977bab6
ZW
21688 || exit 1
21689
60975492 21690@endif libtermcap
4977bab6 21691
295f4e42
NN
21692.PHONY: maybe-installcheck-libtermcap installcheck-libtermcap
21693maybe-installcheck-libtermcap:
60975492
PB
21694@if libtermcap
21695maybe-installcheck-libtermcap: installcheck-libtermcap
4977bab6 21696
295f4e42
NN
21697installcheck-libtermcap: \
21698 configure-libtermcap
21699 @[ -f ./libtermcap/Makefile ] || exit 0; \
21700 r=`${PWD_COMMAND}`; export r; \
8c90b13a 21701 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 21702 $(SET_LIB_PATH) \
4fc4dd12 21703 $(HOST_EXPORTS) \
d32ab992 21704 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21705 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21706 done; \
21707 echo "Doing installcheck in libtermcap" ; \
21708 (cd libtermcap && \
21709 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21710 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21711 "RANLIB=$${RANLIB}" \
21712 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21713 installcheck) \
295f4e42
NN
21714 || exit 1
21715
60975492 21716@endif libtermcap
295f4e42
NN
21717
21718.PHONY: maybe-mostlyclean-libtermcap mostlyclean-libtermcap
21719maybe-mostlyclean-libtermcap:
60975492
PB
21720@if libtermcap
21721maybe-mostlyclean-libtermcap: mostlyclean-libtermcap
295f4e42
NN
21722
21723# libtermcap doesn't support mostlyclean.
21724mostlyclean-libtermcap:
21725
60975492 21726@endif libtermcap
295f4e42
NN
21727
21728.PHONY: maybe-clean-libtermcap clean-libtermcap
21729maybe-clean-libtermcap:
60975492
PB
21730@if libtermcap
21731maybe-clean-libtermcap: clean-libtermcap
295f4e42
NN
21732
21733# libtermcap doesn't support clean.
21734clean-libtermcap:
21735
60975492 21736@endif libtermcap
295f4e42
NN
21737
21738.PHONY: maybe-distclean-libtermcap distclean-libtermcap
21739maybe-distclean-libtermcap:
60975492
PB
21740@if libtermcap
21741maybe-distclean-libtermcap: distclean-libtermcap
295f4e42
NN
21742
21743# libtermcap doesn't support distclean.
21744distclean-libtermcap:
21745
60975492 21746@endif libtermcap
4977bab6 21747
295f4e42
NN
21748.PHONY: maybe-maintainer-clean-libtermcap maintainer-clean-libtermcap
21749maybe-maintainer-clean-libtermcap:
60975492
PB
21750@if libtermcap
21751maybe-maintainer-clean-libtermcap: maintainer-clean-libtermcap
4977bab6 21752
295f4e42
NN
21753# libtermcap doesn't support maintainer-clean.
21754maintainer-clean-libtermcap:
7e2dbcef 21755
60975492 21756@endif libtermcap
4977bab6
ZW
21757
21758
295f4e42
NN
21759.PHONY: configure-utils maybe-configure-utils
21760maybe-configure-utils:
60975492
PB
21761@if utils
21762maybe-configure-utils: configure-utils
295f4e42
NN
21763configure-utils:
21764 @test ! -f utils/Makefile || exit 0; \
21765 [ -d utils ] || mkdir utils; \
8c90b13a
L
21766 r=`${PWD_COMMAND}`; export r; \
21767 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21768 $(HOST_EXPORTS) \
295f4e42
NN
21769 echo Configuring in utils; \
21770 cd utils || exit 1; \
4977bab6
ZW
21771 case $(srcdir) in \
21772 \.) \
21773 srcdiroption="--srcdir=."; \
21774 libsrcdir=".";; \
21775 /* | [A-Za-z]:[\\/]*) \
295f4e42
NN
21776 srcdiroption="--srcdir=$(srcdir)/utils"; \
21777 libsrcdir="$$s/utils";; \
4977bab6 21778 *) \
295f4e42
NN
21779 srcdiroption="--srcdir=../$(srcdir)/utils"; \
21780 libsrcdir="$$s/utils";; \
4977bab6
ZW
21781 esac; \
21782 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 21783 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 21784 || exit 1
60975492 21785@endif utils
4977bab6 21786
295f4e42
NN
21787.PHONY: all-utils maybe-all-utils
21788maybe-all-utils:
60975492
PB
21789@if utils
21790maybe-all-utils: all-utils
295f4e42 21791all-utils: configure-utils
8c90b13a
L
21792 @r=`${PWD_COMMAND}`; export r; \
21793 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 21794 $(SET_LIB_PATH) \
4fc4dd12 21795 $(HOST_EXPORTS) \
a52a0a7f 21796 (cd utils && $(MAKE) $(FLAGS_TO_PASS) all)
60975492 21797@endif utils
4977bab6 21798
295f4e42
NN
21799.PHONY: check-utils maybe-check-utils
21800maybe-check-utils:
60975492
PB
21801@if utils
21802maybe-check-utils: check-utils
4977bab6 21803
295f4e42
NN
21804check-utils:
21805
60975492 21806@endif utils
295f4e42
NN
21807
21808.PHONY: install-utils maybe-install-utils
21809maybe-install-utils:
60975492
PB
21810@if utils
21811maybe-install-utils: install-utils
295f4e42
NN
21812
21813install-utils: installdirs
8c90b13a
L
21814 @r=`${PWD_COMMAND}`; export r; \
21815 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 21816 $(SET_LIB_PATH) \
4fc4dd12 21817 $(HOST_EXPORTS) \
7c27e184 21818 (cd utils && $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6 21819
60975492 21820@endif utils
4977bab6 21821
295f4e42 21822# Other targets (info, dvi, etc.)
7e2dbcef 21823
295f4e42
NN
21824.PHONY: maybe-info-utils info-utils
21825maybe-info-utils:
60975492
PB
21826@if utils
21827maybe-info-utils: info-utils
295f4e42
NN
21828
21829info-utils: \
21830 configure-utils
21831 @[ -f ./utils/Makefile ] || exit 0; \
21832 r=`${PWD_COMMAND}`; export r; \
8c90b13a 21833 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 21834 $(SET_LIB_PATH) \
4fc4dd12 21835 $(HOST_EXPORTS) \
d32ab992 21836 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21837 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21838 done; \
21839 echo "Doing info in utils" ; \
21840 (cd utils && \
21841 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21842 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21843 "RANLIB=$${RANLIB}" \
21844 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21845 info) \
295f4e42 21846 || exit 1
4977bab6 21847
60975492 21848@endif utils
4977bab6 21849
295f4e42
NN
21850.PHONY: maybe-dvi-utils dvi-utils
21851maybe-dvi-utils:
60975492
PB
21852@if utils
21853maybe-dvi-utils: dvi-utils
295f4e42
NN
21854
21855dvi-utils: \
21856 configure-utils
21857 @[ -f ./utils/Makefile ] || exit 0; \
8c90b13a
L
21858 r=`${PWD_COMMAND}`; export r; \
21859 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
295f4e42 21860 $(SET_LIB_PATH) \
4fc4dd12 21861 $(HOST_EXPORTS) \
d32ab992 21862 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21863 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21864 done; \
21865 echo "Doing dvi in utils" ; \
21866 (cd utils && \
21867 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21868 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21869 "RANLIB=$${RANLIB}" \
21870 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21871 dvi) \
4977bab6
ZW
21872 || exit 1
21873
60975492 21874@endif utils
295f4e42
NN
21875
21876.PHONY: maybe-TAGS-utils TAGS-utils
21877maybe-TAGS-utils:
60975492
PB
21878@if utils
21879maybe-TAGS-utils: TAGS-utils
295f4e42
NN
21880
21881TAGS-utils: \
21882 configure-utils
21883 @[ -f ./utils/Makefile ] || exit 0; \
21884 r=`${PWD_COMMAND}`; export r; \
8c90b13a 21885 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 21886 $(SET_LIB_PATH) \
4fc4dd12 21887 $(HOST_EXPORTS) \
d32ab992 21888 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21889 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21890 done; \
21891 echo "Doing TAGS in utils" ; \
21892 (cd utils && \
21893 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21894 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21895 "RANLIB=$${RANLIB}" \
21896 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21897 TAGS) \
295f4e42 21898 || exit 1
4977bab6 21899
60975492 21900@endif utils
4977bab6 21901
295f4e42
NN
21902.PHONY: maybe-install-info-utils install-info-utils
21903maybe-install-info-utils:
60975492
PB
21904@if utils
21905maybe-install-info-utils: install-info-utils
295f4e42
NN
21906
21907install-info-utils: \
21908 configure-utils \
21909 info-utils
21910 @[ -f ./utils/Makefile ] || exit 0; \
21911 r=`${PWD_COMMAND}`; export r; \
21912 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21913 $(SET_LIB_PATH) \
4fc4dd12 21914 $(HOST_EXPORTS) \
d32ab992 21915 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21916 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21917 done; \
21918 echo "Doing install-info in utils" ; \
21919 (cd utils && \
21920 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21921 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21922 "RANLIB=$${RANLIB}" \
21923 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21924 install-info) \
295f4e42 21925 || exit 1
4977bab6 21926
60975492 21927@endif utils
4977bab6 21928
295f4e42
NN
21929.PHONY: maybe-installcheck-utils installcheck-utils
21930maybe-installcheck-utils:
60975492
PB
21931@if utils
21932maybe-installcheck-utils: installcheck-utils
7e2dbcef 21933
295f4e42
NN
21934installcheck-utils: \
21935 configure-utils
21936 @[ -f ./utils/Makefile ] || exit 0; \
21937 r=`${PWD_COMMAND}`; export r; \
8c90b13a 21938 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 21939 $(SET_LIB_PATH) \
4fc4dd12 21940 $(HOST_EXPORTS) \
d32ab992 21941 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21942 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21943 done; \
21944 echo "Doing installcheck in utils" ; \
21945 (cd utils && \
21946 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21947 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21948 "RANLIB=$${RANLIB}" \
21949 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21950 installcheck) \
295f4e42 21951 || exit 1
4977bab6 21952
60975492 21953@endif utils
4977bab6 21954
295f4e42
NN
21955.PHONY: maybe-mostlyclean-utils mostlyclean-utils
21956maybe-mostlyclean-utils:
60975492
PB
21957@if utils
21958maybe-mostlyclean-utils: mostlyclean-utils
295f4e42
NN
21959
21960mostlyclean-utils:
21961 @[ -f ./utils/Makefile ] || exit 0; \
8c90b13a
L
21962 r=`${PWD_COMMAND}`; export r; \
21963 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
295f4e42 21964 $(SET_LIB_PATH) \
4fc4dd12 21965 $(HOST_EXPORTS) \
d32ab992 21966 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21967 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21968 done; \
21969 echo "Doing mostlyclean in utils" ; \
21970 (cd utils && \
21971 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21972 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21973 "RANLIB=$${RANLIB}" \
21974 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21975 mostlyclean) \
4977bab6
ZW
21976 || exit 1
21977
60975492 21978@endif utils
295f4e42
NN
21979
21980.PHONY: maybe-clean-utils clean-utils
21981maybe-clean-utils:
60975492
PB
21982@if utils
21983maybe-clean-utils: clean-utils
295f4e42
NN
21984
21985clean-utils:
21986 @[ -f ./utils/Makefile ] || exit 0; \
21987 r=`${PWD_COMMAND}`; export r; \
8c90b13a 21988 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 21989 $(SET_LIB_PATH) \
4fc4dd12 21990 $(HOST_EXPORTS) \
d32ab992 21991 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21992 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21993 done; \
21994 echo "Doing clean in utils" ; \
21995 (cd utils && \
21996 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21997 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21998 "RANLIB=$${RANLIB}" \
21999 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22000 clean) \
295f4e42 22001 || exit 1
4977bab6 22002
60975492 22003@endif utils
4977bab6 22004
295f4e42
NN
22005.PHONY: maybe-distclean-utils distclean-utils
22006maybe-distclean-utils:
60975492
PB
22007@if utils
22008maybe-distclean-utils: distclean-utils
295f4e42
NN
22009
22010distclean-utils:
22011 @[ -f ./utils/Makefile ] || exit 0; \
22012 r=`${PWD_COMMAND}`; export r; \
8c90b13a 22013 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 22014 $(SET_LIB_PATH) \
4fc4dd12 22015 $(HOST_EXPORTS) \
d32ab992 22016 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22017 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22018 done; \
22019 echo "Doing distclean in utils" ; \
22020 (cd utils && \
22021 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22022 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22023 "RANLIB=$${RANLIB}" \
22024 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22025 distclean) \
295f4e42 22026 || exit 1
4977bab6 22027
60975492 22028@endif utils
4977bab6 22029
295f4e42
NN
22030.PHONY: maybe-maintainer-clean-utils maintainer-clean-utils
22031maybe-maintainer-clean-utils:
60975492
PB
22032@if utils
22033maybe-maintainer-clean-utils: maintainer-clean-utils
7e2dbcef 22034
295f4e42
NN
22035maintainer-clean-utils:
22036 @[ -f ./utils/Makefile ] || exit 0; \
22037 r=`${PWD_COMMAND}`; export r; \
8c90b13a 22038 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 22039 $(SET_LIB_PATH) \
4fc4dd12 22040 $(HOST_EXPORTS) \
d32ab992 22041 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22042 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22043 done; \
22044 echo "Doing maintainer-clean in utils" ; \
22045 (cd utils && \
22046 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22047 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22048 "RANLIB=$${RANLIB}" \
22049 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22050 maintainer-clean) \
295f4e42 22051 || exit 1
4977bab6 22052
60975492 22053@endif utils
4977bab6 22054
295f4e42
NN
22055
22056
22057# ---------------------------------------
22058# Modules which run on the target machine
22059# ---------------------------------------
22060
22061.PHONY: configure-target-libstdc++-v3 maybe-configure-target-libstdc++-v3
22062maybe-configure-target-libstdc++-v3:
60975492
PB
22063@if target-libstdc++-v3
22064maybe-configure-target-libstdc++-v3: configure-target-libstdc++-v3
295f4e42
NN
22065
22066# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
22067$(TARGET_SUBDIR)/libstdc++-v3/multilib.out: multilib.out
22068 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
22069 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || : ; \
22070 cp multilib.out $(TARGET_SUBDIR)/libstdc++-v3/multilib.out
22071
22072configure-target-libstdc++-v3: $(TARGET_SUBDIR)/libstdc++-v3/multilib.out
22073 @test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
22074 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
8c90b13a
L
22075 r=`${PWD_COMMAND}`; export r; \
22076 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
295f4e42 22077 $(SET_LIB_PATH) \
4fc4dd12 22078 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
22079 echo Configuring in $(TARGET_SUBDIR)/libstdc++-v3; \
22080 cd "$(TARGET_SUBDIR)/libstdc++-v3" || exit 1; \
4977bab6 22081 case $(srcdir) in \
4977bab6 22082 /* | [A-Za-z]:[\\/]*) \
295f4e42 22083 topdir=$(srcdir) ;; \
4977bab6 22084 *) \
295f4e42
NN
22085 case "$(TARGET_SUBDIR)" in \
22086 .) topdir="../$(srcdir)" ;; \
22087 *) topdir="../../$(srcdir)" ;; \
22088 esac ;; \
4977bab6 22089 esac; \
295f4e42
NN
22090 srcdiroption="--srcdir=$${topdir}/libstdc++-v3"; \
22091 libsrcdir="$$s/libstdc++-v3"; \
22092 rm -f no-such-file || : ; \
22093 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
22094 $(TARGET_CONFIGARGS) $${srcdiroption} \
a52a0a7f 22095 --with-target-subdir="$(TARGET_SUBDIR)" \
4977bab6 22096 || exit 1
60975492 22097@endif target-libstdc++-v3
4977bab6 22098
295f4e42
NN
22099.PHONY: all-target-libstdc++-v3 maybe-all-target-libstdc++-v3
22100maybe-all-target-libstdc++-v3:
60975492 22101@if target-libstdc++-v3
7c27e184 22102TARGET-target-libstdc++-v3=all
60975492 22103maybe-all-target-libstdc++-v3: all-target-libstdc++-v3
295f4e42 22104all-target-libstdc++-v3: configure-target-libstdc++-v3
8c90b13a
L
22105 @r=`${PWD_COMMAND}`; export r; \
22106 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 22107 $(SET_LIB_PATH) \
4fc4dd12 22108 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42 22109 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
7c27e184 22110 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' $(TARGET-target-libstdc++-v3))
60975492 22111@endif target-libstdc++-v3
4977bab6 22112
295f4e42
NN
22113.PHONY: check-target-libstdc++-v3 maybe-check-target-libstdc++-v3
22114maybe-check-target-libstdc++-v3:
60975492
PB
22115@if target-libstdc++-v3
22116maybe-check-target-libstdc++-v3: check-target-libstdc++-v3
4977bab6 22117
295f4e42 22118check-target-libstdc++-v3:
8c90b13a
L
22119 @r=`${PWD_COMMAND}`; export r; \
22120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 22121 $(SET_LIB_PATH) \
4fc4dd12 22122 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42 22123 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
a52a0a7f 22124 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
4977bab6 22125
60975492 22126@endif target-libstdc++-v3
4977bab6 22127
295f4e42
NN
22128.PHONY: install-target-libstdc++-v3 maybe-install-target-libstdc++-v3
22129maybe-install-target-libstdc++-v3:
60975492
PB
22130@if target-libstdc++-v3
22131maybe-install-target-libstdc++-v3: install-target-libstdc++-v3
7e2dbcef 22132
295f4e42 22133install-target-libstdc++-v3: installdirs
8c90b13a
L
22134 @r=`${PWD_COMMAND}`; export r; \
22135 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 22136 $(SET_LIB_PATH) \
4fc4dd12 22137 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42 22138 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
a52a0a7f 22139 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4977bab6 22140
60975492 22141@endif target-libstdc++-v3
4977bab6 22142
295f4e42
NN
22143# Other targets (info, dvi, etc.)
22144
22145.PHONY: maybe-info-target-libstdc++-v3 info-target-libstdc++-v3
22146maybe-info-target-libstdc++-v3:
60975492
PB
22147@if target-libstdc++-v3
22148maybe-info-target-libstdc++-v3: info-target-libstdc++-v3
295f4e42
NN
22149
22150info-target-libstdc++-v3: \
22151 configure-target-libstdc++-v3
22152 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
8c90b13a
L
22153 r=`${PWD_COMMAND}`; export r; \
22154 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
295f4e42 22155 $(SET_LIB_PATH) \
4fc4dd12 22156 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
22157 echo "Doing info in $(TARGET_SUBDIR)/libstdc++-v3" ; \
22158 for flag in $(EXTRA_TARGET_FLAGS); do \
22159 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22160 done; \
22161 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
22162 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22163 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22164 "RANLIB=$${RANLIB}" \
22165 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 22166 info) \
4977bab6
ZW
22167 || exit 1
22168
60975492 22169@endif target-libstdc++-v3
295f4e42
NN
22170
22171.PHONY: maybe-dvi-target-libstdc++-v3 dvi-target-libstdc++-v3
22172maybe-dvi-target-libstdc++-v3:
60975492
PB
22173@if target-libstdc++-v3
22174maybe-dvi-target-libstdc++-v3: dvi-target-libstdc++-v3
295f4e42
NN
22175
22176dvi-target-libstdc++-v3: \
22177 configure-target-libstdc++-v3
22178 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
22179 r=`${PWD_COMMAND}`; export r; \
8c90b13a 22180 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 22181 $(SET_LIB_PATH) \
4fc4dd12 22182 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
22183 echo "Doing dvi in $(TARGET_SUBDIR)/libstdc++-v3" ; \
22184 for flag in $(EXTRA_TARGET_FLAGS); do \
22185 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22186 done; \
22187 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
22188 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22189 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22190 "RANLIB=$${RANLIB}" \
22191 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 22192 dvi) \
295f4e42 22193 || exit 1
4977bab6 22194
60975492 22195@endif target-libstdc++-v3
4977bab6 22196
295f4e42
NN
22197.PHONY: maybe-TAGS-target-libstdc++-v3 TAGS-target-libstdc++-v3
22198maybe-TAGS-target-libstdc++-v3:
60975492
PB
22199@if target-libstdc++-v3
22200maybe-TAGS-target-libstdc++-v3: TAGS-target-libstdc++-v3
295f4e42
NN
22201
22202TAGS-target-libstdc++-v3: \
22203 configure-target-libstdc++-v3
22204 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
22205 r=`${PWD_COMMAND}`; export r; \
8c90b13a 22206 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 22207 $(SET_LIB_PATH) \
4fc4dd12 22208 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
22209 echo "Doing TAGS in $(TARGET_SUBDIR)/libstdc++-v3" ; \
22210 for flag in $(EXTRA_TARGET_FLAGS); do \
22211 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22212 done; \
22213 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
22214 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22215 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22216 "RANLIB=$${RANLIB}" \
22217 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 22218 TAGS) \
295f4e42 22219 || exit 1
4977bab6 22220
60975492 22221@endif target-libstdc++-v3
4977bab6 22222
295f4e42
NN
22223.PHONY: maybe-install-info-target-libstdc++-v3 install-info-target-libstdc++-v3
22224maybe-install-info-target-libstdc++-v3:
60975492
PB
22225@if target-libstdc++-v3
22226maybe-install-info-target-libstdc++-v3: install-info-target-libstdc++-v3
7e2dbcef 22227
295f4e42
NN
22228install-info-target-libstdc++-v3: \
22229 configure-target-libstdc++-v3 \
22230 info-target-libstdc++-v3
22231 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
22232 r=`${PWD_COMMAND}`; export r; \
8c90b13a 22233 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 22234 $(SET_LIB_PATH) \
4fc4dd12 22235 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
22236 echo "Doing install-info in $(TARGET_SUBDIR)/libstdc++-v3" ; \
22237 for flag in $(EXTRA_TARGET_FLAGS); do \
22238 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22239 done; \
22240 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
22241 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22242 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22243 "RANLIB=$${RANLIB}" \
22244 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 22245 install-info) \
295f4e42 22246 || exit 1
4977bab6 22247
60975492 22248@endif target-libstdc++-v3
4977bab6 22249
295f4e42
NN
22250.PHONY: maybe-installcheck-target-libstdc++-v3 installcheck-target-libstdc++-v3
22251maybe-installcheck-target-libstdc++-v3:
60975492
PB
22252@if target-libstdc++-v3
22253maybe-installcheck-target-libstdc++-v3: installcheck-target-libstdc++-v3
295f4e42
NN
22254
22255installcheck-target-libstdc++-v3: \
22256 configure-target-libstdc++-v3
22257 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
8c90b13a
L
22258 r=`${PWD_COMMAND}`; export r; \
22259 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
295f4e42 22260 $(SET_LIB_PATH) \
4fc4dd12 22261 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
22262 echo "Doing installcheck in $(TARGET_SUBDIR)/libstdc++-v3" ; \
22263 for flag in $(EXTRA_TARGET_FLAGS); do \
22264 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22265 done; \
22266 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
22267 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22268 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22269 "RANLIB=$${RANLIB}" \
22270 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 22271 installcheck) \
4977bab6
ZW
22272 || exit 1
22273
60975492 22274@endif target-libstdc++-v3
4977bab6 22275
295f4e42
NN
22276.PHONY: maybe-mostlyclean-target-libstdc++-v3 mostlyclean-target-libstdc++-v3
22277maybe-mostlyclean-target-libstdc++-v3:
60975492
PB
22278@if target-libstdc++-v3
22279maybe-mostlyclean-target-libstdc++-v3: mostlyclean-target-libstdc++-v3
4977bab6 22280
295f4e42
NN
22281mostlyclean-target-libstdc++-v3:
22282 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
22283 r=`${PWD_COMMAND}`; export r; \
8c90b13a 22284 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 22285 $(SET_LIB_PATH) \
4fc4dd12 22286 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
22287 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
22288 for flag in $(EXTRA_TARGET_FLAGS); do \
22289 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22290 done; \
22291 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
22292 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22293 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22294 "RANLIB=$${RANLIB}" \
22295 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 22296 mostlyclean) \
295f4e42 22297 || exit 1
4977bab6 22298
60975492 22299@endif target-libstdc++-v3
4977bab6 22300
295f4e42
NN
22301.PHONY: maybe-clean-target-libstdc++-v3 clean-target-libstdc++-v3
22302maybe-clean-target-libstdc++-v3:
60975492
PB
22303@if target-libstdc++-v3
22304maybe-clean-target-libstdc++-v3: clean-target-libstdc++-v3
7e2dbcef 22305
295f4e42
NN
22306clean-target-libstdc++-v3:
22307 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
22308 r=`${PWD_COMMAND}`; export r; \
8c90b13a 22309 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 22310 $(SET_LIB_PATH) \
4fc4dd12 22311 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
22312 echo "Doing clean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
22313 for flag in $(EXTRA_TARGET_FLAGS); do \
22314 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22315 done; \
22316 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
22317 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22318 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22319 "RANLIB=$${RANLIB}" \
22320 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 22321 clean) \
295f4e42 22322 || exit 1
4977bab6 22323
60975492 22324@endif target-libstdc++-v3
4977bab6 22325
295f4e42
NN
22326.PHONY: maybe-distclean-target-libstdc++-v3 distclean-target-libstdc++-v3
22327maybe-distclean-target-libstdc++-v3:
60975492
PB
22328@if target-libstdc++-v3
22329maybe-distclean-target-libstdc++-v3: distclean-target-libstdc++-v3
295f4e42
NN
22330
22331distclean-target-libstdc++-v3:
22332 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
8c90b13a
L
22333 r=`${PWD_COMMAND}`; export r; \
22334 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
295f4e42 22335 $(SET_LIB_PATH) \
4fc4dd12 22336 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
22337 echo "Doing distclean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
22338 for flag in $(EXTRA_TARGET_FLAGS); do \
22339 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22340 done; \
22341 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
22342 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22343 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22344 "RANLIB=$${RANLIB}" \
22345 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 22346 distclean) \
4977bab6
ZW
22347 || exit 1
22348
60975492 22349@endif target-libstdc++-v3
4977bab6 22350
295f4e42
NN
22351.PHONY: maybe-maintainer-clean-target-libstdc++-v3 maintainer-clean-target-libstdc++-v3
22352maybe-maintainer-clean-target-libstdc++-v3:
60975492
PB
22353@if target-libstdc++-v3
22354maybe-maintainer-clean-target-libstdc++-v3: maintainer-clean-target-libstdc++-v3
4977bab6 22355
295f4e42
NN
22356maintainer-clean-target-libstdc++-v3:
22357 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
22358 r=`${PWD_COMMAND}`; export r; \
8c90b13a 22359 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 22360 $(SET_LIB_PATH) \
4fc4dd12 22361 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
22362 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
22363 for flag in $(EXTRA_TARGET_FLAGS); do \
22364 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22365 done; \
22366 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
22367 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22368 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22369 "RANLIB=$${RANLIB}" \
22370 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 22371 maintainer-clean) \
295f4e42 22372 || exit 1
4977bab6 22373
60975492 22374@endif target-libstdc++-v3
4977bab6 22375
7e2dbcef 22376
6de9cd9a
DN
22377.PHONY: configure-target-libmudflap maybe-configure-target-libmudflap
22378maybe-configure-target-libmudflap:
60975492
PB
22379@if target-libmudflap
22380maybe-configure-target-libmudflap: configure-target-libmudflap
4977bab6 22381
295f4e42 22382# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
6de9cd9a
DN
22383$(TARGET_SUBDIR)/libmudflap/multilib.out: multilib.out
22384 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmudflap ; \
22385 rm -f $(TARGET_SUBDIR)/libmudflap/Makefile || : ; \
22386 cp multilib.out $(TARGET_SUBDIR)/libmudflap/multilib.out
4977bab6 22387
6de9cd9a
DN
22388configure-target-libmudflap: $(TARGET_SUBDIR)/libmudflap/multilib.out
22389 @test ! -f $(TARGET_SUBDIR)/libmudflap/Makefile || exit 0; \
22390 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmudflap ; \
8c90b13a
L
22391 r=`${PWD_COMMAND}`; export r; \
22392 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
295f4e42 22393 $(SET_LIB_PATH) \
4fc4dd12 22394 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
22395 echo Configuring in $(TARGET_SUBDIR)/libmudflap; \
22396 cd "$(TARGET_SUBDIR)/libmudflap" || exit 1; \
4977bab6 22397 case $(srcdir) in \
4977bab6 22398 /* | [A-Za-z]:[\\/]*) \
295f4e42 22399 topdir=$(srcdir) ;; \
4977bab6 22400 *) \
295f4e42
NN
22401 case "$(TARGET_SUBDIR)" in \
22402 .) topdir="../$(srcdir)" ;; \
22403 *) topdir="../../$(srcdir)" ;; \
22404 esac ;; \
4977bab6 22405 esac; \
6de9cd9a
DN
22406 srcdiroption="--srcdir=$${topdir}/libmudflap"; \
22407 libsrcdir="$$s/libmudflap"; \
295f4e42
NN
22408 rm -f no-such-file || : ; \
22409 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
22410 $(TARGET_CONFIGARGS) $${srcdiroption} \
a52a0a7f 22411 --with-target-subdir="$(TARGET_SUBDIR)" \
4977bab6 22412 || exit 1
60975492 22413@endif target-libmudflap
4977bab6 22414
6de9cd9a
DN
22415.PHONY: all-target-libmudflap maybe-all-target-libmudflap
22416maybe-all-target-libmudflap:
60975492 22417@if target-libmudflap
7c27e184 22418TARGET-target-libmudflap=all
60975492 22419maybe-all-target-libmudflap: all-target-libmudflap
6de9cd9a 22420all-target-libmudflap: configure-target-libmudflap
8c90b13a
L
22421 @r=`${PWD_COMMAND}`; export r; \
22422 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 22423 $(SET_LIB_PATH) \
4fc4dd12 22424 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a 22425 (cd $(TARGET_SUBDIR)/libmudflap && \
7c27e184 22426 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libmudflap))
60975492 22427@endif target-libmudflap
4977bab6 22428
6de9cd9a
DN
22429.PHONY: check-target-libmudflap maybe-check-target-libmudflap
22430maybe-check-target-libmudflap:
60975492
PB
22431@if target-libmudflap
22432maybe-check-target-libmudflap: check-target-libmudflap
4977bab6 22433
6de9cd9a
DN
22434check-target-libmudflap:
22435 @r=`${PWD_COMMAND}`; export r; \
22436 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22437 $(SET_LIB_PATH) \
4fc4dd12 22438 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a 22439 (cd $(TARGET_SUBDIR)/libmudflap && \
a52a0a7f 22440 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6de9cd9a 22441
60975492 22442@endif target-libmudflap
6de9cd9a
DN
22443
22444.PHONY: install-target-libmudflap maybe-install-target-libmudflap
22445maybe-install-target-libmudflap:
60975492
PB
22446@if target-libmudflap
22447maybe-install-target-libmudflap: install-target-libmudflap
6de9cd9a
DN
22448
22449install-target-libmudflap: installdirs
22450 @r=`${PWD_COMMAND}`; export r; \
22451 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22452 $(SET_LIB_PATH) \
4fc4dd12 22453 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a 22454 (cd $(TARGET_SUBDIR)/libmudflap && \
a52a0a7f 22455 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6de9cd9a 22456
60975492 22457@endif target-libmudflap
6de9cd9a
DN
22458
22459# Other targets (info, dvi, etc.)
22460
22461.PHONY: maybe-info-target-libmudflap info-target-libmudflap
22462maybe-info-target-libmudflap:
60975492
PB
22463@if target-libmudflap
22464maybe-info-target-libmudflap: info-target-libmudflap
6de9cd9a
DN
22465
22466info-target-libmudflap: \
22467 configure-target-libmudflap
22468 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
22469 r=`${PWD_COMMAND}`; export r; \
22470 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22471 $(SET_LIB_PATH) \
4fc4dd12 22472 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
22473 echo "Doing info in $(TARGET_SUBDIR)/libmudflap" ; \
22474 for flag in $(EXTRA_TARGET_FLAGS); do \
22475 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22476 done; \
22477 (cd $(TARGET_SUBDIR)/libmudflap && \
22478 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22479 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22480 "RANLIB=$${RANLIB}" \
22481 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 22482 info) \
6de9cd9a
DN
22483 || exit 1
22484
60975492 22485@endif target-libmudflap
6de9cd9a
DN
22486
22487.PHONY: maybe-dvi-target-libmudflap dvi-target-libmudflap
22488maybe-dvi-target-libmudflap:
60975492
PB
22489@if target-libmudflap
22490maybe-dvi-target-libmudflap: dvi-target-libmudflap
6de9cd9a
DN
22491
22492dvi-target-libmudflap: \
22493 configure-target-libmudflap
22494 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
22495 r=`${PWD_COMMAND}`; export r; \
22496 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22497 $(SET_LIB_PATH) \
4fc4dd12 22498 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
22499 echo "Doing dvi in $(TARGET_SUBDIR)/libmudflap" ; \
22500 for flag in $(EXTRA_TARGET_FLAGS); do \
22501 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22502 done; \
22503 (cd $(TARGET_SUBDIR)/libmudflap && \
22504 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22505 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22506 "RANLIB=$${RANLIB}" \
22507 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 22508 dvi) \
6de9cd9a
DN
22509 || exit 1
22510
60975492 22511@endif target-libmudflap
6de9cd9a
DN
22512
22513.PHONY: maybe-TAGS-target-libmudflap TAGS-target-libmudflap
22514maybe-TAGS-target-libmudflap:
60975492
PB
22515@if target-libmudflap
22516maybe-TAGS-target-libmudflap: TAGS-target-libmudflap
6de9cd9a
DN
22517
22518TAGS-target-libmudflap: \
22519 configure-target-libmudflap
22520 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
22521 r=`${PWD_COMMAND}`; export r; \
22522 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22523 $(SET_LIB_PATH) \
4fc4dd12 22524 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
22525 echo "Doing TAGS in $(TARGET_SUBDIR)/libmudflap" ; \
22526 for flag in $(EXTRA_TARGET_FLAGS); do \
22527 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22528 done; \
22529 (cd $(TARGET_SUBDIR)/libmudflap && \
22530 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22531 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22532 "RANLIB=$${RANLIB}" \
22533 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 22534 TAGS) \
6de9cd9a
DN
22535 || exit 1
22536
60975492 22537@endif target-libmudflap
6de9cd9a
DN
22538
22539.PHONY: maybe-install-info-target-libmudflap install-info-target-libmudflap
22540maybe-install-info-target-libmudflap:
60975492
PB
22541@if target-libmudflap
22542maybe-install-info-target-libmudflap: install-info-target-libmudflap
6de9cd9a
DN
22543
22544install-info-target-libmudflap: \
22545 configure-target-libmudflap \
22546 info-target-libmudflap
22547 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
22548 r=`${PWD_COMMAND}`; export r; \
22549 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22550 $(SET_LIB_PATH) \
4fc4dd12 22551 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
22552 echo "Doing install-info in $(TARGET_SUBDIR)/libmudflap" ; \
22553 for flag in $(EXTRA_TARGET_FLAGS); do \
22554 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22555 done; \
22556 (cd $(TARGET_SUBDIR)/libmudflap && \
22557 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22558 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22559 "RANLIB=$${RANLIB}" \
22560 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 22561 install-info) \
6de9cd9a
DN
22562 || exit 1
22563
60975492 22564@endif target-libmudflap
6de9cd9a
DN
22565
22566.PHONY: maybe-installcheck-target-libmudflap installcheck-target-libmudflap
22567maybe-installcheck-target-libmudflap:
60975492
PB
22568@if target-libmudflap
22569maybe-installcheck-target-libmudflap: installcheck-target-libmudflap
6de9cd9a
DN
22570
22571installcheck-target-libmudflap: \
22572 configure-target-libmudflap
22573 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
22574 r=`${PWD_COMMAND}`; export r; \
22575 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22576 $(SET_LIB_PATH) \
4fc4dd12 22577 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
22578 echo "Doing installcheck in $(TARGET_SUBDIR)/libmudflap" ; \
22579 for flag in $(EXTRA_TARGET_FLAGS); do \
22580 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22581 done; \
22582 (cd $(TARGET_SUBDIR)/libmudflap && \
22583 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22584 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22585 "RANLIB=$${RANLIB}" \
22586 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 22587 installcheck) \
6de9cd9a
DN
22588 || exit 1
22589
60975492 22590@endif target-libmudflap
6de9cd9a
DN
22591
22592.PHONY: maybe-mostlyclean-target-libmudflap mostlyclean-target-libmudflap
22593maybe-mostlyclean-target-libmudflap:
60975492
PB
22594@if target-libmudflap
22595maybe-mostlyclean-target-libmudflap: mostlyclean-target-libmudflap
6de9cd9a
DN
22596
22597mostlyclean-target-libmudflap:
22598 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
22599 r=`${PWD_COMMAND}`; export r; \
22600 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22601 $(SET_LIB_PATH) \
4fc4dd12 22602 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
22603 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libmudflap" ; \
22604 for flag in $(EXTRA_TARGET_FLAGS); do \
22605 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22606 done; \
22607 (cd $(TARGET_SUBDIR)/libmudflap && \
22608 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22609 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22610 "RANLIB=$${RANLIB}" \
22611 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 22612 mostlyclean) \
6de9cd9a
DN
22613 || exit 1
22614
60975492 22615@endif target-libmudflap
6de9cd9a
DN
22616
22617.PHONY: maybe-clean-target-libmudflap clean-target-libmudflap
22618maybe-clean-target-libmudflap:
60975492
PB
22619@if target-libmudflap
22620maybe-clean-target-libmudflap: clean-target-libmudflap
6de9cd9a
DN
22621
22622clean-target-libmudflap:
22623 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
22624 r=`${PWD_COMMAND}`; export r; \
22625 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22626 $(SET_LIB_PATH) \
4fc4dd12 22627 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
22628 echo "Doing clean in $(TARGET_SUBDIR)/libmudflap" ; \
22629 for flag in $(EXTRA_TARGET_FLAGS); do \
22630 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22631 done; \
22632 (cd $(TARGET_SUBDIR)/libmudflap && \
22633 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22634 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22635 "RANLIB=$${RANLIB}" \
22636 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 22637 clean) \
6de9cd9a
DN
22638 || exit 1
22639
60975492 22640@endif target-libmudflap
6de9cd9a
DN
22641
22642.PHONY: maybe-distclean-target-libmudflap distclean-target-libmudflap
22643maybe-distclean-target-libmudflap:
60975492
PB
22644@if target-libmudflap
22645maybe-distclean-target-libmudflap: distclean-target-libmudflap
6de9cd9a
DN
22646
22647distclean-target-libmudflap:
22648 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
22649 r=`${PWD_COMMAND}`; export r; \
22650 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22651 $(SET_LIB_PATH) \
4fc4dd12 22652 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
22653 echo "Doing distclean in $(TARGET_SUBDIR)/libmudflap" ; \
22654 for flag in $(EXTRA_TARGET_FLAGS); do \
22655 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22656 done; \
22657 (cd $(TARGET_SUBDIR)/libmudflap && \
22658 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22659 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22660 "RANLIB=$${RANLIB}" \
22661 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 22662 distclean) \
6de9cd9a
DN
22663 || exit 1
22664
60975492 22665@endif target-libmudflap
6de9cd9a
DN
22666
22667.PHONY: maybe-maintainer-clean-target-libmudflap maintainer-clean-target-libmudflap
22668maybe-maintainer-clean-target-libmudflap:
60975492
PB
22669@if target-libmudflap
22670maybe-maintainer-clean-target-libmudflap: maintainer-clean-target-libmudflap
6de9cd9a
DN
22671
22672maintainer-clean-target-libmudflap:
22673 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
22674 r=`${PWD_COMMAND}`; export r; \
22675 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22676 $(SET_LIB_PATH) \
4fc4dd12 22677 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
22678 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libmudflap" ; \
22679 for flag in $(EXTRA_TARGET_FLAGS); do \
22680 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22681 done; \
22682 (cd $(TARGET_SUBDIR)/libmudflap && \
22683 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22684 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22685 "RANLIB=$${RANLIB}" \
22686 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 22687 maintainer-clean) \
6de9cd9a
DN
22688 || exit 1
22689
60975492 22690@endif target-libmudflap
6de9cd9a
DN
22691
22692
22693.PHONY: configure-target-newlib maybe-configure-target-newlib
22694maybe-configure-target-newlib:
60975492
PB
22695@if target-newlib
22696maybe-configure-target-newlib: configure-target-newlib
6de9cd9a
DN
22697
22698# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
22699$(TARGET_SUBDIR)/newlib/multilib.out: multilib.out
22700 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib ; \
22701 rm -f $(TARGET_SUBDIR)/newlib/Makefile || : ; \
22702 cp multilib.out $(TARGET_SUBDIR)/newlib/multilib.out
22703
22704configure-target-newlib: $(TARGET_SUBDIR)/newlib/multilib.out
22705 @test ! -f $(TARGET_SUBDIR)/newlib/Makefile || exit 0; \
22706 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib ; \
22707 r=`${PWD_COMMAND}`; export r; \
22708 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22709 $(SET_LIB_PATH) \
4fc4dd12 22710 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
22711 echo Configuring in $(TARGET_SUBDIR)/newlib; \
22712 cd "$(TARGET_SUBDIR)/newlib" || exit 1; \
22713 case $(srcdir) in \
22714 /* | [A-Za-z]:[\\/]*) \
22715 topdir=$(srcdir) ;; \
22716 *) \
22717 case "$(TARGET_SUBDIR)" in \
22718 .) topdir="../$(srcdir)" ;; \
22719 *) topdir="../../$(srcdir)" ;; \
22720 esac ;; \
22721 esac; \
22722 srcdiroption="--srcdir=$${topdir}/newlib"; \
22723 libsrcdir="$$s/newlib"; \
22724 rm -f no-such-file || : ; \
22725 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
22726 $(TARGET_CONFIGARGS) $${srcdiroption} \
a52a0a7f 22727 --with-target-subdir="$(TARGET_SUBDIR)" \
6de9cd9a 22728 || exit 1
60975492 22729@endif target-newlib
6de9cd9a
DN
22730
22731.PHONY: all-target-newlib maybe-all-target-newlib
22732maybe-all-target-newlib:
60975492 22733@if target-newlib
7c27e184 22734TARGET-target-newlib=all
60975492 22735maybe-all-target-newlib: all-target-newlib
6de9cd9a
DN
22736all-target-newlib: configure-target-newlib
22737 @r=`${PWD_COMMAND}`; export r; \
22738 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22739 $(SET_LIB_PATH) \
4fc4dd12 22740 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a 22741 (cd $(TARGET_SUBDIR)/newlib && \
7c27e184 22742 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-newlib))
60975492 22743@endif target-newlib
6de9cd9a
DN
22744
22745.PHONY: check-target-newlib maybe-check-target-newlib
22746maybe-check-target-newlib:
60975492
PB
22747@if target-newlib
22748maybe-check-target-newlib: check-target-newlib
6de9cd9a
DN
22749
22750check-target-newlib:
295f4e42
NN
22751 @r=`${PWD_COMMAND}`; export r; \
22752 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22753 $(SET_LIB_PATH) \
4fc4dd12 22754 $(NORMAL_TARGET_EXPORTS) \
295f4e42 22755 (cd $(TARGET_SUBDIR)/newlib && \
a52a0a7f 22756 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4977bab6 22757
60975492 22758@endif target-newlib
4977bab6 22759
295f4e42
NN
22760.PHONY: install-target-newlib maybe-install-target-newlib
22761maybe-install-target-newlib:
60975492
PB
22762@if target-newlib
22763maybe-install-target-newlib: install-target-newlib
7e2dbcef 22764
295f4e42
NN
22765install-target-newlib: installdirs
22766 @r=`${PWD_COMMAND}`; export r; \
22767 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22768 $(SET_LIB_PATH) \
4fc4dd12 22769 $(NORMAL_TARGET_EXPORTS) \
295f4e42 22770 (cd $(TARGET_SUBDIR)/newlib && \
a52a0a7f 22771 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4977bab6 22772
60975492 22773@endif target-newlib
4977bab6 22774
295f4e42
NN
22775# Other targets (info, dvi, etc.)
22776
22777.PHONY: maybe-info-target-newlib info-target-newlib
22778maybe-info-target-newlib:
60975492
PB
22779@if target-newlib
22780maybe-info-target-newlib: info-target-newlib
295f4e42
NN
22781
22782info-target-newlib: \
22783 configure-target-newlib
22784 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
8c90b13a
L
22785 r=`${PWD_COMMAND}`; export r; \
22786 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
295f4e42 22787 $(SET_LIB_PATH) \
4fc4dd12 22788 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
22789 echo "Doing info in $(TARGET_SUBDIR)/newlib" ; \
22790 for flag in $(EXTRA_TARGET_FLAGS); do \
22791 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22792 done; \
22793 (cd $(TARGET_SUBDIR)/newlib && \
22794 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22795 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22796 "RANLIB=$${RANLIB}" \
22797 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 22798 info) \
4977bab6
ZW
22799 || exit 1
22800
60975492 22801@endif target-newlib
4977bab6 22802
295f4e42
NN
22803.PHONY: maybe-dvi-target-newlib dvi-target-newlib
22804maybe-dvi-target-newlib:
60975492
PB
22805@if target-newlib
22806maybe-dvi-target-newlib: dvi-target-newlib
4977bab6 22807
295f4e42
NN
22808dvi-target-newlib: \
22809 configure-target-newlib
22810 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
22811 r=`${PWD_COMMAND}`; export r; \
8c90b13a 22812 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 22813 $(SET_LIB_PATH) \
4fc4dd12 22814 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
22815 echo "Doing dvi in $(TARGET_SUBDIR)/newlib" ; \
22816 for flag in $(EXTRA_TARGET_FLAGS); do \
22817 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22818 done; \
22819 (cd $(TARGET_SUBDIR)/newlib && \
22820 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22821 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22822 "RANLIB=$${RANLIB}" \
22823 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 22824 dvi) \
295f4e42 22825 || exit 1
4977bab6 22826
60975492 22827@endif target-newlib
4977bab6 22828
295f4e42
NN
22829.PHONY: maybe-TAGS-target-newlib TAGS-target-newlib
22830maybe-TAGS-target-newlib:
60975492
PB
22831@if target-newlib
22832maybe-TAGS-target-newlib: TAGS-target-newlib
7e2dbcef 22833
295f4e42
NN
22834TAGS-target-newlib: \
22835 configure-target-newlib
22836 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
22837 r=`${PWD_COMMAND}`; export r; \
8c90b13a 22838 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 22839 $(SET_LIB_PATH) \
4fc4dd12 22840 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
22841 echo "Doing TAGS in $(TARGET_SUBDIR)/newlib" ; \
22842 for flag in $(EXTRA_TARGET_FLAGS); do \
22843 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22844 done; \
22845 (cd $(TARGET_SUBDIR)/newlib && \
22846 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22847 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22848 "RANLIB=$${RANLIB}" \
22849 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 22850 TAGS) \
295f4e42 22851 || exit 1
4977bab6 22852
60975492 22853@endif target-newlib
4977bab6 22854
295f4e42
NN
22855.PHONY: maybe-install-info-target-newlib install-info-target-newlib
22856maybe-install-info-target-newlib:
60975492
PB
22857@if target-newlib
22858maybe-install-info-target-newlib: install-info-target-newlib
295f4e42
NN
22859
22860install-info-target-newlib: \
22861 configure-target-newlib \
22862 info-target-newlib
22863 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
8c90b13a
L
22864 r=`${PWD_COMMAND}`; export r; \
22865 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
295f4e42 22866 $(SET_LIB_PATH) \
4fc4dd12 22867 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
22868 echo "Doing install-info in $(TARGET_SUBDIR)/newlib" ; \
22869 for flag in $(EXTRA_TARGET_FLAGS); do \
22870 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22871 done; \
22872 (cd $(TARGET_SUBDIR)/newlib && \
22873 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22874 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22875 "RANLIB=$${RANLIB}" \
22876 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 22877 install-info) \
4977bab6
ZW
22878 || exit 1
22879
60975492 22880@endif target-newlib
295f4e42
NN
22881
22882.PHONY: maybe-installcheck-target-newlib installcheck-target-newlib
22883maybe-installcheck-target-newlib:
60975492
PB
22884@if target-newlib
22885maybe-installcheck-target-newlib: installcheck-target-newlib
295f4e42
NN
22886
22887installcheck-target-newlib: \
22888 configure-target-newlib
22889 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
22890 r=`${PWD_COMMAND}`; export r; \
8c90b13a 22891 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 22892 $(SET_LIB_PATH) \
4fc4dd12 22893 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
22894 echo "Doing installcheck in $(TARGET_SUBDIR)/newlib" ; \
22895 for flag in $(EXTRA_TARGET_FLAGS); do \
22896 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22897 done; \
22898 (cd $(TARGET_SUBDIR)/newlib && \
22899 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22900 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22901 "RANLIB=$${RANLIB}" \
22902 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 22903 installcheck) \
295f4e42 22904 || exit 1
4977bab6 22905
60975492 22906@endif target-newlib
4977bab6 22907
295f4e42
NN
22908.PHONY: maybe-mostlyclean-target-newlib mostlyclean-target-newlib
22909maybe-mostlyclean-target-newlib:
60975492
PB
22910@if target-newlib
22911maybe-mostlyclean-target-newlib: mostlyclean-target-newlib
295f4e42
NN
22912
22913mostlyclean-target-newlib:
22914 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
22915 r=`${PWD_COMMAND}`; export r; \
8c90b13a 22916 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 22917 $(SET_LIB_PATH) \
4fc4dd12 22918 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
22919 echo "Doing mostlyclean in $(TARGET_SUBDIR)/newlib" ; \
22920 for flag in $(EXTRA_TARGET_FLAGS); do \
22921 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22922 done; \
22923 (cd $(TARGET_SUBDIR)/newlib && \
22924 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22925 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22926 "RANLIB=$${RANLIB}" \
22927 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 22928 mostlyclean) \
295f4e42 22929 || exit 1
4977bab6 22930
60975492 22931@endif target-newlib
4977bab6 22932
295f4e42
NN
22933.PHONY: maybe-clean-target-newlib clean-target-newlib
22934maybe-clean-target-newlib:
60975492
PB
22935@if target-newlib
22936maybe-clean-target-newlib: clean-target-newlib
7e2dbcef 22937
295f4e42
NN
22938clean-target-newlib:
22939 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
22940 r=`${PWD_COMMAND}`; export r; \
8c90b13a 22941 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 22942 $(SET_LIB_PATH) \
4fc4dd12 22943 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
22944 echo "Doing clean in $(TARGET_SUBDIR)/newlib" ; \
22945 for flag in $(EXTRA_TARGET_FLAGS); do \
22946 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22947 done; \
22948 (cd $(TARGET_SUBDIR)/newlib && \
22949 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22950 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22951 "RANLIB=$${RANLIB}" \
22952 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 22953 clean) \
295f4e42 22954 || exit 1
4977bab6 22955
60975492 22956@endif target-newlib
4977bab6 22957
295f4e42
NN
22958.PHONY: maybe-distclean-target-newlib distclean-target-newlib
22959maybe-distclean-target-newlib:
60975492
PB
22960@if target-newlib
22961maybe-distclean-target-newlib: distclean-target-newlib
295f4e42
NN
22962
22963distclean-target-newlib:
22964 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
8c90b13a
L
22965 r=`${PWD_COMMAND}`; export r; \
22966 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
295f4e42 22967 $(SET_LIB_PATH) \
4fc4dd12 22968 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
22969 echo "Doing distclean in $(TARGET_SUBDIR)/newlib" ; \
22970 for flag in $(EXTRA_TARGET_FLAGS); do \
22971 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22972 done; \
22973 (cd $(TARGET_SUBDIR)/newlib && \
22974 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22975 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22976 "RANLIB=$${RANLIB}" \
22977 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 22978 distclean) \
4977bab6
ZW
22979 || exit 1
22980
60975492 22981@endif target-newlib
4977bab6 22982
295f4e42
NN
22983.PHONY: maybe-maintainer-clean-target-newlib maintainer-clean-target-newlib
22984maybe-maintainer-clean-target-newlib:
60975492
PB
22985@if target-newlib
22986maybe-maintainer-clean-target-newlib: maintainer-clean-target-newlib
4977bab6 22987
295f4e42
NN
22988maintainer-clean-target-newlib:
22989 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
22990 r=`${PWD_COMMAND}`; export r; \
8c90b13a 22991 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 22992 $(SET_LIB_PATH) \
4fc4dd12 22993 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
22994 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/newlib" ; \
22995 for flag in $(EXTRA_TARGET_FLAGS); do \
22996 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22997 done; \
22998 (cd $(TARGET_SUBDIR)/newlib && \
22999 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23000 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23001 "RANLIB=$${RANLIB}" \
23002 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 23003 maintainer-clean) \
295f4e42 23004 || exit 1
4977bab6 23005
60975492 23006@endif target-newlib
4977bab6 23007
7e2dbcef 23008
6de9cd9a
DN
23009.PHONY: configure-target-libgfortran maybe-configure-target-libgfortran
23010maybe-configure-target-libgfortran:
60975492
PB
23011@if target-libgfortran
23012maybe-configure-target-libgfortran: configure-target-libgfortran
6de9cd9a
DN
23013
23014# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
23015$(TARGET_SUBDIR)/libgfortran/multilib.out: multilib.out
23016 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran ; \
23017 rm -f $(TARGET_SUBDIR)/libgfortran/Makefile || : ; \
23018 cp multilib.out $(TARGET_SUBDIR)/libgfortran/multilib.out
23019
23020configure-target-libgfortran: $(TARGET_SUBDIR)/libgfortran/multilib.out
23021 @test ! -f $(TARGET_SUBDIR)/libgfortran/Makefile || exit 0; \
23022 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran ; \
23023 r=`${PWD_COMMAND}`; export r; \
23024 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23025 $(SET_LIB_PATH) \
4fc4dd12 23026 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
23027 echo Configuring in $(TARGET_SUBDIR)/libgfortran; \
23028 cd "$(TARGET_SUBDIR)/libgfortran" || exit 1; \
23029 case $(srcdir) in \
23030 /* | [A-Za-z]:[\\/]*) \
23031 topdir=$(srcdir) ;; \
23032 *) \
23033 case "$(TARGET_SUBDIR)" in \
23034 .) topdir="../$(srcdir)" ;; \
23035 *) topdir="../../$(srcdir)" ;; \
23036 esac ;; \
23037 esac; \
23038 srcdiroption="--srcdir=$${topdir}/libgfortran"; \
23039 libsrcdir="$$s/libgfortran"; \
23040 rm -f no-such-file || : ; \
23041 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
23042 $(TARGET_CONFIGARGS) $${srcdiroption} \
a52a0a7f 23043 --with-target-subdir="$(TARGET_SUBDIR)" \
6de9cd9a 23044 || exit 1
60975492 23045@endif target-libgfortran
6de9cd9a
DN
23046
23047.PHONY: all-target-libgfortran maybe-all-target-libgfortran
23048maybe-all-target-libgfortran:
60975492 23049@if target-libgfortran
7c27e184 23050TARGET-target-libgfortran=all
60975492 23051maybe-all-target-libgfortran: all-target-libgfortran
6de9cd9a
DN
23052all-target-libgfortran: configure-target-libgfortran
23053 @r=`${PWD_COMMAND}`; export r; \
23054 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23055 $(SET_LIB_PATH) \
4fc4dd12 23056 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a 23057 (cd $(TARGET_SUBDIR)/libgfortran && \
7c27e184 23058 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libgfortran))
60975492 23059@endif target-libgfortran
6de9cd9a
DN
23060
23061.PHONY: check-target-libgfortran maybe-check-target-libgfortran
23062maybe-check-target-libgfortran:
60975492
PB
23063@if target-libgfortran
23064maybe-check-target-libgfortran: check-target-libgfortran
6de9cd9a
DN
23065
23066check-target-libgfortran:
23067 @r=`${PWD_COMMAND}`; export r; \
23068 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23069 $(SET_LIB_PATH) \
4fc4dd12 23070 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a 23071 (cd $(TARGET_SUBDIR)/libgfortran && \
a52a0a7f 23072 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6de9cd9a 23073
60975492 23074@endif target-libgfortran
6de9cd9a
DN
23075
23076.PHONY: install-target-libgfortran maybe-install-target-libgfortran
23077maybe-install-target-libgfortran:
60975492
PB
23078@if target-libgfortran
23079maybe-install-target-libgfortran: install-target-libgfortran
6de9cd9a
DN
23080
23081install-target-libgfortran: installdirs
23082 @r=`${PWD_COMMAND}`; export r; \
23083 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23084 $(SET_LIB_PATH) \
4fc4dd12 23085 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a 23086 (cd $(TARGET_SUBDIR)/libgfortran && \
a52a0a7f 23087 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6de9cd9a 23088
60975492 23089@endif target-libgfortran
6de9cd9a
DN
23090
23091# Other targets (info, dvi, etc.)
23092
23093.PHONY: maybe-info-target-libgfortran info-target-libgfortran
23094maybe-info-target-libgfortran:
60975492
PB
23095@if target-libgfortran
23096maybe-info-target-libgfortran: info-target-libgfortran
6de9cd9a
DN
23097
23098info-target-libgfortran: \
23099 configure-target-libgfortran
23100 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
23101 r=`${PWD_COMMAND}`; export r; \
23102 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23103 $(SET_LIB_PATH) \
4fc4dd12 23104 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
23105 echo "Doing info in $(TARGET_SUBDIR)/libgfortran" ; \
23106 for flag in $(EXTRA_TARGET_FLAGS); do \
23107 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23108 done; \
23109 (cd $(TARGET_SUBDIR)/libgfortran && \
23110 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23111 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23112 "RANLIB=$${RANLIB}" \
23113 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 23114 info) \
6de9cd9a
DN
23115 || exit 1
23116
60975492 23117@endif target-libgfortran
6de9cd9a
DN
23118
23119.PHONY: maybe-dvi-target-libgfortran dvi-target-libgfortran
23120maybe-dvi-target-libgfortran:
60975492
PB
23121@if target-libgfortran
23122maybe-dvi-target-libgfortran: dvi-target-libgfortran
6de9cd9a
DN
23123
23124dvi-target-libgfortran: \
23125 configure-target-libgfortran
23126 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
23127 r=`${PWD_COMMAND}`; export r; \
23128 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23129 $(SET_LIB_PATH) \
4fc4dd12 23130 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
23131 echo "Doing dvi in $(TARGET_SUBDIR)/libgfortran" ; \
23132 for flag in $(EXTRA_TARGET_FLAGS); do \
23133 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23134 done; \
23135 (cd $(TARGET_SUBDIR)/libgfortran && \
23136 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23137 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23138 "RANLIB=$${RANLIB}" \
23139 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 23140 dvi) \
6de9cd9a
DN
23141 || exit 1
23142
60975492 23143@endif target-libgfortran
6de9cd9a
DN
23144
23145.PHONY: maybe-TAGS-target-libgfortran TAGS-target-libgfortran
23146maybe-TAGS-target-libgfortran:
60975492
PB
23147@if target-libgfortran
23148maybe-TAGS-target-libgfortran: TAGS-target-libgfortran
6de9cd9a
DN
23149
23150TAGS-target-libgfortran: \
23151 configure-target-libgfortran
23152 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
23153 r=`${PWD_COMMAND}`; export r; \
23154 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23155 $(SET_LIB_PATH) \
4fc4dd12 23156 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
23157 echo "Doing TAGS in $(TARGET_SUBDIR)/libgfortran" ; \
23158 for flag in $(EXTRA_TARGET_FLAGS); do \
23159 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23160 done; \
23161 (cd $(TARGET_SUBDIR)/libgfortran && \
23162 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23163 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23164 "RANLIB=$${RANLIB}" \
23165 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 23166 TAGS) \
6de9cd9a
DN
23167 || exit 1
23168
60975492 23169@endif target-libgfortran
6de9cd9a
DN
23170
23171.PHONY: maybe-install-info-target-libgfortran install-info-target-libgfortran
23172maybe-install-info-target-libgfortran:
60975492
PB
23173@if target-libgfortran
23174maybe-install-info-target-libgfortran: install-info-target-libgfortran
6de9cd9a
DN
23175
23176install-info-target-libgfortran: \
23177 configure-target-libgfortran \
23178 info-target-libgfortran
23179 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
23180 r=`${PWD_COMMAND}`; export r; \
23181 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23182 $(SET_LIB_PATH) \
4fc4dd12 23183 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
23184 echo "Doing install-info in $(TARGET_SUBDIR)/libgfortran" ; \
23185 for flag in $(EXTRA_TARGET_FLAGS); do \
23186 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23187 done; \
23188 (cd $(TARGET_SUBDIR)/libgfortran && \
23189 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23190 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23191 "RANLIB=$${RANLIB}" \
23192 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 23193 install-info) \
6de9cd9a
DN
23194 || exit 1
23195
60975492 23196@endif target-libgfortran
6de9cd9a
DN
23197
23198.PHONY: maybe-installcheck-target-libgfortran installcheck-target-libgfortran
23199maybe-installcheck-target-libgfortran:
60975492
PB
23200@if target-libgfortran
23201maybe-installcheck-target-libgfortran: installcheck-target-libgfortran
6de9cd9a
DN
23202
23203installcheck-target-libgfortran: \
23204 configure-target-libgfortran
23205 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
23206 r=`${PWD_COMMAND}`; export r; \
23207 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23208 $(SET_LIB_PATH) \
4fc4dd12 23209 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
23210 echo "Doing installcheck in $(TARGET_SUBDIR)/libgfortran" ; \
23211 for flag in $(EXTRA_TARGET_FLAGS); do \
23212 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23213 done; \
23214 (cd $(TARGET_SUBDIR)/libgfortran && \
23215 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23216 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23217 "RANLIB=$${RANLIB}" \
23218 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 23219 installcheck) \
6de9cd9a
DN
23220 || exit 1
23221
60975492 23222@endif target-libgfortran
6de9cd9a
DN
23223
23224.PHONY: maybe-mostlyclean-target-libgfortran mostlyclean-target-libgfortran
23225maybe-mostlyclean-target-libgfortran:
60975492
PB
23226@if target-libgfortran
23227maybe-mostlyclean-target-libgfortran: mostlyclean-target-libgfortran
6de9cd9a
DN
23228
23229mostlyclean-target-libgfortran:
23230 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
23231 r=`${PWD_COMMAND}`; export r; \
23232 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23233 $(SET_LIB_PATH) \
4fc4dd12 23234 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
23235 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgfortran" ; \
23236 for flag in $(EXTRA_TARGET_FLAGS); do \
23237 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23238 done; \
23239 (cd $(TARGET_SUBDIR)/libgfortran && \
23240 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23241 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23242 "RANLIB=$${RANLIB}" \
23243 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 23244 mostlyclean) \
6de9cd9a
DN
23245 || exit 1
23246
60975492 23247@endif target-libgfortran
6de9cd9a
DN
23248
23249.PHONY: maybe-clean-target-libgfortran clean-target-libgfortran
23250maybe-clean-target-libgfortran:
60975492
PB
23251@if target-libgfortran
23252maybe-clean-target-libgfortran: clean-target-libgfortran
6de9cd9a
DN
23253
23254clean-target-libgfortran:
23255 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
23256 r=`${PWD_COMMAND}`; export r; \
23257 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23258 $(SET_LIB_PATH) \
4fc4dd12 23259 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
23260 echo "Doing clean in $(TARGET_SUBDIR)/libgfortran" ; \
23261 for flag in $(EXTRA_TARGET_FLAGS); do \
23262 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23263 done; \
23264 (cd $(TARGET_SUBDIR)/libgfortran && \
23265 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23266 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23267 "RANLIB=$${RANLIB}" \
23268 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 23269 clean) \
6de9cd9a
DN
23270 || exit 1
23271
60975492 23272@endif target-libgfortran
6de9cd9a
DN
23273
23274.PHONY: maybe-distclean-target-libgfortran distclean-target-libgfortran
23275maybe-distclean-target-libgfortran:
60975492
PB
23276@if target-libgfortran
23277maybe-distclean-target-libgfortran: distclean-target-libgfortran
6de9cd9a
DN
23278
23279distclean-target-libgfortran:
23280 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
23281 r=`${PWD_COMMAND}`; export r; \
23282 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23283 $(SET_LIB_PATH) \
4fc4dd12 23284 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
23285 echo "Doing distclean in $(TARGET_SUBDIR)/libgfortran" ; \
23286 for flag in $(EXTRA_TARGET_FLAGS); do \
23287 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23288 done; \
23289 (cd $(TARGET_SUBDIR)/libgfortran && \
23290 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23291 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23292 "RANLIB=$${RANLIB}" \
23293 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 23294 distclean) \
6de9cd9a
DN
23295 || exit 1
23296
60975492 23297@endif target-libgfortran
6de9cd9a
DN
23298
23299.PHONY: maybe-maintainer-clean-target-libgfortran maintainer-clean-target-libgfortran
23300maybe-maintainer-clean-target-libgfortran:
60975492
PB
23301@if target-libgfortran
23302maybe-maintainer-clean-target-libgfortran: maintainer-clean-target-libgfortran
6de9cd9a
DN
23303
23304maintainer-clean-target-libgfortran:
23305 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
23306 r=`${PWD_COMMAND}`; export r; \
23307 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23308 $(SET_LIB_PATH) \
4fc4dd12 23309 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
23310 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgfortran" ; \
23311 for flag in $(EXTRA_TARGET_FLAGS); do \
23312 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23313 done; \
23314 (cd $(TARGET_SUBDIR)/libgfortran && \
23315 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23316 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23317 "RANLIB=$${RANLIB}" \
23318 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 23319 maintainer-clean) \
6de9cd9a
DN
23320 || exit 1
23321
60975492 23322@endif target-libgfortran
6de9cd9a
DN
23323
23324
295f4e42
NN
23325.PHONY: configure-target-libobjc maybe-configure-target-libobjc
23326maybe-configure-target-libobjc:
60975492
PB
23327@if target-libobjc
23328maybe-configure-target-libobjc: configure-target-libobjc
4977bab6 23329
295f4e42
NN
23330# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
23331$(TARGET_SUBDIR)/libobjc/multilib.out: multilib.out
23332 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc ; \
23333 rm -f $(TARGET_SUBDIR)/libobjc/Makefile || : ; \
23334 cp multilib.out $(TARGET_SUBDIR)/libobjc/multilib.out
4977bab6 23335
295f4e42
NN
23336configure-target-libobjc: $(TARGET_SUBDIR)/libobjc/multilib.out
23337 @test ! -f $(TARGET_SUBDIR)/libobjc/Makefile || exit 0; \
23338 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc ; \
8c90b13a 23339 r=`${PWD_COMMAND}`; export r; \
4fc4dd12
DJ
23340 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23341 $(SET_LIB_PATH) \
23342 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
23343 echo Configuring in $(TARGET_SUBDIR)/libobjc; \
23344 cd "$(TARGET_SUBDIR)/libobjc" || exit 1; \
4977bab6 23345 case $(srcdir) in \
4977bab6 23346 /* | [A-Za-z]:[\\/]*) \
295f4e42 23347 topdir=$(srcdir) ;; \
4977bab6 23348 *) \
295f4e42
NN
23349 case "$(TARGET_SUBDIR)" in \
23350 .) topdir="../$(srcdir)" ;; \
23351 *) topdir="../../$(srcdir)" ;; \
23352 esac ;; \
4977bab6 23353 esac; \
295f4e42
NN
23354 srcdiroption="--srcdir=$${topdir}/libobjc"; \
23355 libsrcdir="$$s/libobjc"; \
23356 rm -f no-such-file || : ; \
23357 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
23358 $(TARGET_CONFIGARGS) $${srcdiroption} \
a52a0a7f 23359 --with-target-subdir="$(TARGET_SUBDIR)" \
4977bab6 23360 || exit 1
60975492 23361@endif target-libobjc
4977bab6 23362
295f4e42
NN
23363.PHONY: all-target-libobjc maybe-all-target-libobjc
23364maybe-all-target-libobjc:
60975492 23365@if target-libobjc
7c27e184 23366TARGET-target-libobjc=all
60975492 23367maybe-all-target-libobjc: all-target-libobjc
295f4e42 23368all-target-libobjc: configure-target-libobjc
8c90b13a
L
23369 @r=`${PWD_COMMAND}`; export r; \
23370 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 23371 $(SET_LIB_PATH) \
4fc4dd12 23372 $(NORMAL_TARGET_EXPORTS) \
295f4e42 23373 (cd $(TARGET_SUBDIR)/libobjc && \
7c27e184 23374 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libobjc))
60975492 23375@endif target-libobjc
4977bab6 23376
295f4e42
NN
23377.PHONY: check-target-libobjc maybe-check-target-libobjc
23378maybe-check-target-libobjc:
60975492
PB
23379@if target-libobjc
23380maybe-check-target-libobjc: check-target-libobjc
4977bab6 23381
295f4e42 23382check-target-libobjc:
8c90b13a
L
23383 @r=`${PWD_COMMAND}`; export r; \
23384 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 23385 $(SET_LIB_PATH) \
4fc4dd12 23386 $(NORMAL_TARGET_EXPORTS) \
295f4e42 23387 (cd $(TARGET_SUBDIR)/libobjc && \
a52a0a7f 23388 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4977bab6 23389
60975492 23390@endif target-libobjc
4977bab6 23391
295f4e42
NN
23392.PHONY: install-target-libobjc maybe-install-target-libobjc
23393maybe-install-target-libobjc:
60975492
PB
23394@if target-libobjc
23395maybe-install-target-libobjc: install-target-libobjc
4977bab6 23396
295f4e42 23397install-target-libobjc: installdirs
8c90b13a
L
23398 @r=`${PWD_COMMAND}`; export r; \
23399 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 23400 $(SET_LIB_PATH) \
4fc4dd12 23401 $(NORMAL_TARGET_EXPORTS) \
295f4e42 23402 (cd $(TARGET_SUBDIR)/libobjc && \
a52a0a7f 23403 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4977bab6 23404
60975492 23405@endif target-libobjc
4977bab6 23406
295f4e42
NN
23407# Other targets (info, dvi, etc.)
23408
23409.PHONY: maybe-info-target-libobjc info-target-libobjc
23410maybe-info-target-libobjc:
60975492
PB
23411@if target-libobjc
23412maybe-info-target-libobjc: info-target-libobjc
295f4e42
NN
23413
23414info-target-libobjc: \
23415 configure-target-libobjc
23416 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
23417 r=`${PWD_COMMAND}`; export r; \
8c90b13a 23418 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 23419 $(SET_LIB_PATH) \
4fc4dd12 23420 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
23421 echo "Doing info in $(TARGET_SUBDIR)/libobjc" ; \
23422 for flag in $(EXTRA_TARGET_FLAGS); do \
23423 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23424 done; \
23425 (cd $(TARGET_SUBDIR)/libobjc && \
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}" \
a52a0a7f 23430 info) \
295f4e42 23431 || exit 1
4977bab6 23432
60975492 23433@endif target-libobjc
4977bab6 23434
295f4e42
NN
23435.PHONY: maybe-dvi-target-libobjc dvi-target-libobjc
23436maybe-dvi-target-libobjc:
60975492
PB
23437@if target-libobjc
23438maybe-dvi-target-libobjc: dvi-target-libobjc
7e2dbcef 23439
295f4e42
NN
23440dvi-target-libobjc: \
23441 configure-target-libobjc
23442 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
23443 r=`${PWD_COMMAND}`; export r; \
8c90b13a 23444 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 23445 $(SET_LIB_PATH) \
4fc4dd12 23446 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
23447 echo "Doing dvi in $(TARGET_SUBDIR)/libobjc" ; \
23448 for flag in $(EXTRA_TARGET_FLAGS); do \
23449 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23450 done; \
23451 (cd $(TARGET_SUBDIR)/libobjc && \
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}" \
a52a0a7f 23456 dvi) \
295f4e42 23457 || exit 1
4977bab6 23458
60975492 23459@endif target-libobjc
4977bab6 23460
295f4e42
NN
23461.PHONY: maybe-TAGS-target-libobjc TAGS-target-libobjc
23462maybe-TAGS-target-libobjc:
60975492
PB
23463@if target-libobjc
23464maybe-TAGS-target-libobjc: TAGS-target-libobjc
295f4e42
NN
23465
23466TAGS-target-libobjc: \
23467 configure-target-libobjc
23468 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
8c90b13a
L
23469 r=`${PWD_COMMAND}`; export r; \
23470 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
295f4e42 23471 $(SET_LIB_PATH) \
4fc4dd12 23472 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
23473 echo "Doing TAGS in $(TARGET_SUBDIR)/libobjc" ; \
23474 for flag in $(EXTRA_TARGET_FLAGS); do \
23475 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23476 done; \
23477 (cd $(TARGET_SUBDIR)/libobjc && \
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}" \
a52a0a7f 23482 TAGS) \
4977bab6
ZW
23483 || exit 1
23484
60975492 23485@endif target-libobjc
295f4e42
NN
23486
23487.PHONY: maybe-install-info-target-libobjc install-info-target-libobjc
23488maybe-install-info-target-libobjc:
60975492
PB
23489@if target-libobjc
23490maybe-install-info-target-libobjc: install-info-target-libobjc
295f4e42
NN
23491
23492install-info-target-libobjc: \
23493 configure-target-libobjc \
23494 info-target-libobjc
23495 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
23496 r=`${PWD_COMMAND}`; export r; \
8c90b13a 23497 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 23498 $(SET_LIB_PATH) \
4fc4dd12 23499 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
23500 echo "Doing install-info in $(TARGET_SUBDIR)/libobjc" ; \
23501 for flag in $(EXTRA_TARGET_FLAGS); do \
23502 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23503 done; \
23504 (cd $(TARGET_SUBDIR)/libobjc && \
23505 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23506 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23507 "RANLIB=$${RANLIB}" \
23508 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 23509 install-info) \
295f4e42 23510 || exit 1
4977bab6 23511
60975492 23512@endif target-libobjc
4977bab6 23513
295f4e42
NN
23514.PHONY: maybe-installcheck-target-libobjc installcheck-target-libobjc
23515maybe-installcheck-target-libobjc:
60975492
PB
23516@if target-libobjc
23517maybe-installcheck-target-libobjc: installcheck-target-libobjc
295f4e42
NN
23518
23519installcheck-target-libobjc: \
23520 configure-target-libobjc
23521 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
23522 r=`${PWD_COMMAND}`; export r; \
8c90b13a 23523 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 23524 $(SET_LIB_PATH) \
4fc4dd12 23525 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
23526 echo "Doing installcheck in $(TARGET_SUBDIR)/libobjc" ; \
23527 for flag in $(EXTRA_TARGET_FLAGS); do \
23528 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23529 done; \
23530 (cd $(TARGET_SUBDIR)/libobjc && \
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}" \
a52a0a7f 23535 installcheck) \
295f4e42 23536 || exit 1
4977bab6 23537
60975492 23538@endif target-libobjc
4977bab6 23539
295f4e42
NN
23540.PHONY: maybe-mostlyclean-target-libobjc mostlyclean-target-libobjc
23541maybe-mostlyclean-target-libobjc:
60975492
PB
23542@if target-libobjc
23543maybe-mostlyclean-target-libobjc: mostlyclean-target-libobjc
7e2dbcef 23544
295f4e42
NN
23545mostlyclean-target-libobjc:
23546 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
23547 r=`${PWD_COMMAND}`; export r; \
8c90b13a 23548 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 23549 $(SET_LIB_PATH) \
4fc4dd12 23550 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
23551 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libobjc" ; \
23552 for flag in $(EXTRA_TARGET_FLAGS); do \
23553 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23554 done; \
23555 (cd $(TARGET_SUBDIR)/libobjc && \
23556 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23557 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23558 "RANLIB=$${RANLIB}" \
23559 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 23560 mostlyclean) \
295f4e42 23561 || exit 1
4977bab6 23562
60975492 23563@endif target-libobjc
4977bab6 23564
295f4e42
NN
23565.PHONY: maybe-clean-target-libobjc clean-target-libobjc
23566maybe-clean-target-libobjc:
60975492
PB
23567@if target-libobjc
23568maybe-clean-target-libobjc: clean-target-libobjc
295f4e42
NN
23569
23570clean-target-libobjc:
23571 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
8c90b13a
L
23572 r=`${PWD_COMMAND}`; export r; \
23573 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
295f4e42 23574 $(SET_LIB_PATH) \
4fc4dd12 23575 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
23576 echo "Doing clean in $(TARGET_SUBDIR)/libobjc" ; \
23577 for flag in $(EXTRA_TARGET_FLAGS); do \
23578 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23579 done; \
23580 (cd $(TARGET_SUBDIR)/libobjc && \
23581 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23582 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23583 "RANLIB=$${RANLIB}" \
23584 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 23585 clean) \
4977bab6
ZW
23586 || exit 1
23587
60975492 23588@endif target-libobjc
4977bab6 23589
295f4e42
NN
23590.PHONY: maybe-distclean-target-libobjc distclean-target-libobjc
23591maybe-distclean-target-libobjc:
60975492
PB
23592@if target-libobjc
23593maybe-distclean-target-libobjc: distclean-target-libobjc
4977bab6 23594
295f4e42
NN
23595distclean-target-libobjc:
23596 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
23597 r=`${PWD_COMMAND}`; export r; \
8c90b13a 23598 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 23599 $(SET_LIB_PATH) \
4fc4dd12 23600 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
23601 echo "Doing distclean in $(TARGET_SUBDIR)/libobjc" ; \
23602 for flag in $(EXTRA_TARGET_FLAGS); do \
23603 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23604 done; \
23605 (cd $(TARGET_SUBDIR)/libobjc && \
23606 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23607 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23608 "RANLIB=$${RANLIB}" \
23609 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 23610 distclean) \
295f4e42 23611 || exit 1
4977bab6 23612
60975492 23613@endif target-libobjc
4977bab6 23614
295f4e42
NN
23615.PHONY: maybe-maintainer-clean-target-libobjc maintainer-clean-target-libobjc
23616maybe-maintainer-clean-target-libobjc:
60975492
PB
23617@if target-libobjc
23618maybe-maintainer-clean-target-libobjc: maintainer-clean-target-libobjc
7e2dbcef 23619
295f4e42
NN
23620maintainer-clean-target-libobjc:
23621 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
23622 r=`${PWD_COMMAND}`; export r; \
8c90b13a 23623 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 23624 $(SET_LIB_PATH) \
4fc4dd12 23625 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
23626 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libobjc" ; \
23627 for flag in $(EXTRA_TARGET_FLAGS); do \
23628 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23629 done; \
23630 (cd $(TARGET_SUBDIR)/libobjc && \
23631 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23632 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23633 "RANLIB=$${RANLIB}" \
23634 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 23635 maintainer-clean) \
295f4e42 23636 || exit 1
4977bab6 23637
60975492 23638@endif target-libobjc
4977bab6 23639
295f4e42
NN
23640
23641.PHONY: configure-target-libtermcap maybe-configure-target-libtermcap
23642maybe-configure-target-libtermcap:
60975492
PB
23643@if target-libtermcap
23644maybe-configure-target-libtermcap: configure-target-libtermcap
295f4e42
NN
23645
23646# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
23647$(TARGET_SUBDIR)/libtermcap/multilib.out: multilib.out
23648 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap ; \
23649 rm -f $(TARGET_SUBDIR)/libtermcap/Makefile || : ; \
23650 cp multilib.out $(TARGET_SUBDIR)/libtermcap/multilib.out
23651
23652configure-target-libtermcap: $(TARGET_SUBDIR)/libtermcap/multilib.out
23653 @test ! -f $(TARGET_SUBDIR)/libtermcap/Makefile || exit 0; \
23654 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap ; \
8c90b13a
L
23655 r=`${PWD_COMMAND}`; export r; \
23656 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
295f4e42 23657 $(SET_LIB_PATH) \
4fc4dd12 23658 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
23659 echo Configuring in $(TARGET_SUBDIR)/libtermcap; \
23660 cd "$(TARGET_SUBDIR)/libtermcap" || exit 1; \
4977bab6 23661 case $(srcdir) in \
4977bab6 23662 /* | [A-Za-z]:[\\/]*) \
295f4e42 23663 topdir=$(srcdir) ;; \
4977bab6 23664 *) \
295f4e42
NN
23665 case "$(TARGET_SUBDIR)" in \
23666 .) topdir="../$(srcdir)" ;; \
23667 *) topdir="../../$(srcdir)" ;; \
23668 esac ;; \
4977bab6 23669 esac; \
295f4e42
NN
23670 if [ "$(srcdir)" = "." ] ; then \
23671 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
23672 if $(SHELL) $$s/symlink-tree $${topdir}/libtermcap "no-such-file" ; then \
23673 if [ -f Makefile ]; then \
23674 if $(MAKE) distclean; then \
23675 true; \
23676 else \
23677 exit 1; \
23678 fi; \
23679 else \
23680 true; \
23681 fi; \
23682 else \
23683 exit 1; \
23684 fi; \
23685 else \
23686 true; \
23687 fi; \
23688 srcdiroption="--srcdir=."; \
23689 libsrcdir="."; \
23690 else \
23691 srcdiroption="--srcdir=$${topdir}/libtermcap"; \
23692 libsrcdir="$$s/libtermcap"; \
23693 fi; \
23694 rm -f no-such-file || : ; \
23695 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
23696 $(TARGET_CONFIGARGS) $${srcdiroption} \
a52a0a7f 23697 --with-target-subdir="$(TARGET_SUBDIR)" \
4977bab6 23698 || exit 1
60975492 23699@endif target-libtermcap
4977bab6 23700
295f4e42
NN
23701.PHONY: all-target-libtermcap maybe-all-target-libtermcap
23702maybe-all-target-libtermcap:
60975492 23703@if target-libtermcap
7c27e184 23704TARGET-target-libtermcap=all
60975492 23705maybe-all-target-libtermcap: all-target-libtermcap
295f4e42 23706all-target-libtermcap: configure-target-libtermcap
8c90b13a
L
23707 @r=`${PWD_COMMAND}`; export r; \
23708 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 23709 $(SET_LIB_PATH) \
4fc4dd12 23710 $(NORMAL_TARGET_EXPORTS) \
295f4e42 23711 (cd $(TARGET_SUBDIR)/libtermcap && \
7c27e184 23712 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libtermcap))
60975492 23713@endif target-libtermcap
4977bab6 23714
295f4e42
NN
23715.PHONY: check-target-libtermcap maybe-check-target-libtermcap
23716maybe-check-target-libtermcap:
60975492
PB
23717@if target-libtermcap
23718maybe-check-target-libtermcap: check-target-libtermcap
4977bab6 23719
295f4e42
NN
23720# Dummy target for uncheckable module.
23721check-target-libtermcap:
23722
60975492 23723@endif target-libtermcap
295f4e42
NN
23724
23725.PHONY: install-target-libtermcap maybe-install-target-libtermcap
23726maybe-install-target-libtermcap:
60975492
PB
23727@if target-libtermcap
23728maybe-install-target-libtermcap: install-target-libtermcap
295f4e42
NN
23729
23730install-target-libtermcap: installdirs
8c90b13a
L
23731 @r=`${PWD_COMMAND}`; export r; \
23732 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 23733 $(SET_LIB_PATH) \
4fc4dd12 23734 $(NORMAL_TARGET_EXPORTS) \
295f4e42 23735 (cd $(TARGET_SUBDIR)/libtermcap && \
a52a0a7f 23736 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4977bab6 23737
60975492 23738@endif target-libtermcap
4977bab6 23739
295f4e42 23740# Other targets (info, dvi, etc.)
7e2dbcef 23741
295f4e42
NN
23742.PHONY: maybe-info-target-libtermcap info-target-libtermcap
23743maybe-info-target-libtermcap:
60975492
PB
23744@if target-libtermcap
23745maybe-info-target-libtermcap: info-target-libtermcap
295f4e42
NN
23746
23747info-target-libtermcap: \
23748 configure-target-libtermcap
23749 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
23750 r=`${PWD_COMMAND}`; export r; \
8c90b13a 23751 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 23752 $(SET_LIB_PATH) \
4fc4dd12 23753 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
23754 echo "Doing info in $(TARGET_SUBDIR)/libtermcap" ; \
23755 for flag in $(EXTRA_TARGET_FLAGS); do \
23756 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23757 done; \
23758 (cd $(TARGET_SUBDIR)/libtermcap && \
23759 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23760 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23761 "RANLIB=$${RANLIB}" \
23762 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 23763 info) \
295f4e42 23764 || exit 1
4977bab6 23765
60975492 23766@endif target-libtermcap
4977bab6 23767
295f4e42
NN
23768.PHONY: maybe-dvi-target-libtermcap dvi-target-libtermcap
23769maybe-dvi-target-libtermcap:
60975492
PB
23770@if target-libtermcap
23771maybe-dvi-target-libtermcap: dvi-target-libtermcap
295f4e42
NN
23772
23773dvi-target-libtermcap: \
23774 configure-target-libtermcap
23775 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
8c90b13a
L
23776 r=`${PWD_COMMAND}`; export r; \
23777 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
295f4e42 23778 $(SET_LIB_PATH) \
4fc4dd12 23779 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
23780 echo "Doing dvi in $(TARGET_SUBDIR)/libtermcap" ; \
23781 for flag in $(EXTRA_TARGET_FLAGS); do \
23782 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23783 done; \
23784 (cd $(TARGET_SUBDIR)/libtermcap && \
23785 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23786 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23787 "RANLIB=$${RANLIB}" \
23788 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 23789 dvi) \
4977bab6
ZW
23790 || exit 1
23791
60975492 23792@endif target-libtermcap
295f4e42
NN
23793
23794.PHONY: maybe-TAGS-target-libtermcap TAGS-target-libtermcap
23795maybe-TAGS-target-libtermcap:
60975492
PB
23796@if target-libtermcap
23797maybe-TAGS-target-libtermcap: TAGS-target-libtermcap
295f4e42
NN
23798
23799TAGS-target-libtermcap: \
23800 configure-target-libtermcap
23801 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
23802 r=`${PWD_COMMAND}`; export r; \
8c90b13a 23803 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 23804 $(SET_LIB_PATH) \
4fc4dd12 23805 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
23806 echo "Doing TAGS in $(TARGET_SUBDIR)/libtermcap" ; \
23807 for flag in $(EXTRA_TARGET_FLAGS); do \
23808 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23809 done; \
23810 (cd $(TARGET_SUBDIR)/libtermcap && \
23811 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23812 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23813 "RANLIB=$${RANLIB}" \
23814 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 23815 TAGS) \
295f4e42 23816 || exit 1
4977bab6 23817
60975492 23818@endif target-libtermcap
4977bab6 23819
295f4e42
NN
23820.PHONY: maybe-install-info-target-libtermcap install-info-target-libtermcap
23821maybe-install-info-target-libtermcap:
60975492
PB
23822@if target-libtermcap
23823maybe-install-info-target-libtermcap: install-info-target-libtermcap
4977bab6 23824
295f4e42
NN
23825install-info-target-libtermcap: \
23826 configure-target-libtermcap \
23827 info-target-libtermcap
23828 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
23829 r=`${PWD_COMMAND}`; export r; \
23830 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23831 $(SET_LIB_PATH) \
4fc4dd12 23832 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
23833 echo "Doing install-info in $(TARGET_SUBDIR)/libtermcap" ; \
23834 for flag in $(EXTRA_TARGET_FLAGS); do \
23835 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23836 done; \
23837 (cd $(TARGET_SUBDIR)/libtermcap && \
23838 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23839 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23840 "RANLIB=$${RANLIB}" \
23841 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 23842 install-info) \
295f4e42 23843 || exit 1
4977bab6 23844
60975492 23845@endif target-libtermcap
7e2dbcef 23846
295f4e42
NN
23847.PHONY: maybe-installcheck-target-libtermcap installcheck-target-libtermcap
23848maybe-installcheck-target-libtermcap:
60975492
PB
23849@if target-libtermcap
23850maybe-installcheck-target-libtermcap: installcheck-target-libtermcap
295f4e42
NN
23851
23852installcheck-target-libtermcap: \
23853 configure-target-libtermcap
23854 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
23855 r=`${PWD_COMMAND}`; export r; \
8c90b13a 23856 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 23857 $(SET_LIB_PATH) \
4fc4dd12 23858 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
23859 echo "Doing installcheck in $(TARGET_SUBDIR)/libtermcap" ; \
23860 for flag in $(EXTRA_TARGET_FLAGS); do \
23861 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23862 done; \
23863 (cd $(TARGET_SUBDIR)/libtermcap && \
23864 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23865 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23866 "RANLIB=$${RANLIB}" \
23867 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 23868 installcheck) \
295f4e42 23869 || exit 1
4977bab6 23870
60975492 23871@endif target-libtermcap
4977bab6 23872
295f4e42
NN
23873.PHONY: maybe-mostlyclean-target-libtermcap mostlyclean-target-libtermcap
23874maybe-mostlyclean-target-libtermcap:
60975492
PB
23875@if target-libtermcap
23876maybe-mostlyclean-target-libtermcap: mostlyclean-target-libtermcap
295f4e42
NN
23877
23878# libtermcap doesn't support mostlyclean.
23879mostlyclean-target-libtermcap:
23880
60975492 23881@endif target-libtermcap
295f4e42
NN
23882
23883.PHONY: maybe-clean-target-libtermcap clean-target-libtermcap
23884maybe-clean-target-libtermcap:
60975492
PB
23885@if target-libtermcap
23886maybe-clean-target-libtermcap: clean-target-libtermcap
295f4e42
NN
23887
23888# libtermcap doesn't support clean.
23889clean-target-libtermcap:
23890
60975492 23891@endif target-libtermcap
295f4e42
NN
23892
23893.PHONY: maybe-distclean-target-libtermcap distclean-target-libtermcap
23894maybe-distclean-target-libtermcap:
60975492
PB
23895@if target-libtermcap
23896maybe-distclean-target-libtermcap: distclean-target-libtermcap
295f4e42
NN
23897
23898# libtermcap doesn't support distclean.
23899distclean-target-libtermcap:
23900
60975492 23901@endif target-libtermcap
295f4e42
NN
23902
23903.PHONY: maybe-maintainer-clean-target-libtermcap maintainer-clean-target-libtermcap
23904maybe-maintainer-clean-target-libtermcap:
60975492
PB
23905@if target-libtermcap
23906maybe-maintainer-clean-target-libtermcap: maintainer-clean-target-libtermcap
295f4e42
NN
23907
23908# libtermcap doesn't support maintainer-clean.
23909maintainer-clean-target-libtermcap:
23910
60975492 23911@endif target-libtermcap
295f4e42
NN
23912
23913
23914.PHONY: configure-target-winsup maybe-configure-target-winsup
23915maybe-configure-target-winsup:
60975492
PB
23916@if target-winsup
23917maybe-configure-target-winsup: configure-target-winsup
295f4e42
NN
23918
23919# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
23920$(TARGET_SUBDIR)/winsup/multilib.out: multilib.out
23921 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup ; \
23922 rm -f $(TARGET_SUBDIR)/winsup/Makefile || : ; \
23923 cp multilib.out $(TARGET_SUBDIR)/winsup/multilib.out
23924
23925configure-target-winsup: $(TARGET_SUBDIR)/winsup/multilib.out
23926 @test ! -f $(TARGET_SUBDIR)/winsup/Makefile || exit 0; \
23927 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup ; \
8c90b13a
L
23928 r=`${PWD_COMMAND}`; export r; \
23929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
295f4e42 23930 $(SET_LIB_PATH) \
4fc4dd12 23931 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
23932 echo Configuring in $(TARGET_SUBDIR)/winsup; \
23933 cd "$(TARGET_SUBDIR)/winsup" || exit 1; \
4977bab6 23934 case $(srcdir) in \
4977bab6 23935 /* | [A-Za-z]:[\\/]*) \
295f4e42 23936 topdir=$(srcdir) ;; \
4977bab6 23937 *) \
295f4e42
NN
23938 case "$(TARGET_SUBDIR)" in \
23939 .) topdir="../$(srcdir)" ;; \
23940 *) topdir="../../$(srcdir)" ;; \
23941 esac ;; \
4977bab6 23942 esac; \
295f4e42
NN
23943 srcdiroption="--srcdir=$${topdir}/winsup"; \
23944 libsrcdir="$$s/winsup"; \
23945 rm -f no-such-file || : ; \
23946 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
23947 $(TARGET_CONFIGARGS) $${srcdiroption} \
a52a0a7f 23948 --with-target-subdir="$(TARGET_SUBDIR)" \
4977bab6 23949 || exit 1
60975492 23950@endif target-winsup
4977bab6 23951
295f4e42
NN
23952.PHONY: all-target-winsup maybe-all-target-winsup
23953maybe-all-target-winsup:
60975492 23954@if target-winsup
7c27e184 23955TARGET-target-winsup=all
60975492 23956maybe-all-target-winsup: all-target-winsup
295f4e42 23957all-target-winsup: configure-target-winsup
8c90b13a
L
23958 @r=`${PWD_COMMAND}`; export r; \
23959 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 23960 $(SET_LIB_PATH) \
4fc4dd12 23961 $(NORMAL_TARGET_EXPORTS) \
295f4e42 23962 (cd $(TARGET_SUBDIR)/winsup && \
7c27e184 23963 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-winsup))
60975492 23964@endif target-winsup
4977bab6 23965
295f4e42
NN
23966.PHONY: check-target-winsup maybe-check-target-winsup
23967maybe-check-target-winsup:
60975492
PB
23968@if target-winsup
23969maybe-check-target-winsup: check-target-winsup
4977bab6 23970
295f4e42
NN
23971check-target-winsup:
23972 @r=`${PWD_COMMAND}`; export r; \
23973 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23974 $(SET_LIB_PATH) \
4fc4dd12 23975 $(NORMAL_TARGET_EXPORTS) \
295f4e42 23976 (cd $(TARGET_SUBDIR)/winsup && \
a52a0a7f 23977 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4977bab6 23978
60975492 23979@endif target-winsup
4977bab6 23980
295f4e42
NN
23981.PHONY: install-target-winsup maybe-install-target-winsup
23982maybe-install-target-winsup:
60975492
PB
23983@if target-winsup
23984maybe-install-target-winsup: install-target-winsup
7e2dbcef 23985
295f4e42
NN
23986install-target-winsup: installdirs
23987 @r=`${PWD_COMMAND}`; export r; \
23988 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23989 $(SET_LIB_PATH) \
4fc4dd12 23990 $(NORMAL_TARGET_EXPORTS) \
295f4e42 23991 (cd $(TARGET_SUBDIR)/winsup && \
a52a0a7f 23992 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4977bab6 23993
60975492 23994@endif target-winsup
4977bab6 23995
295f4e42
NN
23996# Other targets (info, dvi, etc.)
23997
23998.PHONY: maybe-info-target-winsup info-target-winsup
23999maybe-info-target-winsup:
60975492
PB
24000@if target-winsup
24001maybe-info-target-winsup: info-target-winsup
295f4e42
NN
24002
24003info-target-winsup: \
24004 configure-target-winsup
24005 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
8c90b13a
L
24006 r=`${PWD_COMMAND}`; export r; \
24007 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
295f4e42 24008 $(SET_LIB_PATH) \
4fc4dd12 24009 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
24010 echo "Doing info in $(TARGET_SUBDIR)/winsup" ; \
24011 for flag in $(EXTRA_TARGET_FLAGS); do \
24012 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24013 done; \
24014 (cd $(TARGET_SUBDIR)/winsup && \
24015 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24016 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24017 "RANLIB=$${RANLIB}" \
24018 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 24019 info) \
4977bab6
ZW
24020 || exit 1
24021
60975492 24022@endif target-winsup
4977bab6 24023
295f4e42
NN
24024.PHONY: maybe-dvi-target-winsup dvi-target-winsup
24025maybe-dvi-target-winsup:
60975492
PB
24026@if target-winsup
24027maybe-dvi-target-winsup: dvi-target-winsup
4977bab6 24028
295f4e42
NN
24029dvi-target-winsup: \
24030 configure-target-winsup
24031 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
24032 r=`${PWD_COMMAND}`; export r; \
8c90b13a 24033 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 24034 $(SET_LIB_PATH) \
4fc4dd12 24035 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
24036 echo "Doing dvi in $(TARGET_SUBDIR)/winsup" ; \
24037 for flag in $(EXTRA_TARGET_FLAGS); do \
24038 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24039 done; \
24040 (cd $(TARGET_SUBDIR)/winsup && \
24041 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24042 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24043 "RANLIB=$${RANLIB}" \
24044 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 24045 dvi) \
295f4e42 24046 || exit 1
4977bab6 24047
60975492 24048@endif target-winsup
4977bab6 24049
295f4e42
NN
24050.PHONY: maybe-TAGS-target-winsup TAGS-target-winsup
24051maybe-TAGS-target-winsup:
60975492
PB
24052@if target-winsup
24053maybe-TAGS-target-winsup: TAGS-target-winsup
7e2dbcef 24054
295f4e42
NN
24055TAGS-target-winsup: \
24056 configure-target-winsup
24057 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
24058 r=`${PWD_COMMAND}`; export r; \
8c90b13a 24059 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 24060 $(SET_LIB_PATH) \
4fc4dd12 24061 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
24062 echo "Doing TAGS in $(TARGET_SUBDIR)/winsup" ; \
24063 for flag in $(EXTRA_TARGET_FLAGS); do \
24064 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24065 done; \
24066 (cd $(TARGET_SUBDIR)/winsup && \
24067 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24068 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24069 "RANLIB=$${RANLIB}" \
24070 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 24071 TAGS) \
295f4e42 24072 || exit 1
4977bab6 24073
60975492 24074@endif target-winsup
4977bab6 24075
295f4e42
NN
24076.PHONY: maybe-install-info-target-winsup install-info-target-winsup
24077maybe-install-info-target-winsup:
60975492
PB
24078@if target-winsup
24079maybe-install-info-target-winsup: install-info-target-winsup
295f4e42
NN
24080
24081install-info-target-winsup: \
24082 configure-target-winsup \
24083 info-target-winsup
24084 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
8c90b13a
L
24085 r=`${PWD_COMMAND}`; export r; \
24086 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
295f4e42 24087 $(SET_LIB_PATH) \
4fc4dd12 24088 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
24089 echo "Doing install-info in $(TARGET_SUBDIR)/winsup" ; \
24090 for flag in $(EXTRA_TARGET_FLAGS); do \
24091 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24092 done; \
24093 (cd $(TARGET_SUBDIR)/winsup && \
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}" \
a52a0a7f 24098 install-info) \
4977bab6
ZW
24099 || exit 1
24100
60975492 24101@endif target-winsup
295f4e42
NN
24102
24103.PHONY: maybe-installcheck-target-winsup installcheck-target-winsup
24104maybe-installcheck-target-winsup:
60975492
PB
24105@if target-winsup
24106maybe-installcheck-target-winsup: installcheck-target-winsup
295f4e42
NN
24107
24108installcheck-target-winsup: \
24109 configure-target-winsup
24110 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
24111 r=`${PWD_COMMAND}`; export r; \
8c90b13a 24112 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 24113 $(SET_LIB_PATH) \
4fc4dd12 24114 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
24115 echo "Doing installcheck in $(TARGET_SUBDIR)/winsup" ; \
24116 for flag in $(EXTRA_TARGET_FLAGS); do \
24117 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24118 done; \
24119 (cd $(TARGET_SUBDIR)/winsup && \
24120 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24121 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24122 "RANLIB=$${RANLIB}" \
24123 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 24124 installcheck) \
295f4e42 24125 || exit 1
4977bab6 24126
60975492 24127@endif target-winsup
4977bab6 24128
295f4e42
NN
24129.PHONY: maybe-mostlyclean-target-winsup mostlyclean-target-winsup
24130maybe-mostlyclean-target-winsup:
60975492
PB
24131@if target-winsup
24132maybe-mostlyclean-target-winsup: mostlyclean-target-winsup
295f4e42
NN
24133
24134mostlyclean-target-winsup:
24135 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
24136 r=`${PWD_COMMAND}`; export r; \
8c90b13a 24137 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 24138 $(SET_LIB_PATH) \
4fc4dd12 24139 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
24140 echo "Doing mostlyclean in $(TARGET_SUBDIR)/winsup" ; \
24141 for flag in $(EXTRA_TARGET_FLAGS); do \
24142 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24143 done; \
24144 (cd $(TARGET_SUBDIR)/winsup && \
24145 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24146 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24147 "RANLIB=$${RANLIB}" \
24148 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 24149 mostlyclean) \
295f4e42 24150 || exit 1
4977bab6 24151
60975492 24152@endif target-winsup
4977bab6 24153
295f4e42
NN
24154.PHONY: maybe-clean-target-winsup clean-target-winsup
24155maybe-clean-target-winsup:
60975492
PB
24156@if target-winsup
24157maybe-clean-target-winsup: clean-target-winsup
7e2dbcef 24158
295f4e42
NN
24159clean-target-winsup:
24160 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
24161 r=`${PWD_COMMAND}`; export r; \
8c90b13a 24162 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 24163 $(SET_LIB_PATH) \
4fc4dd12 24164 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
24165 echo "Doing clean in $(TARGET_SUBDIR)/winsup" ; \
24166 for flag in $(EXTRA_TARGET_FLAGS); do \
24167 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24168 done; \
24169 (cd $(TARGET_SUBDIR)/winsup && \
24170 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24171 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24172 "RANLIB=$${RANLIB}" \
24173 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 24174 clean) \
295f4e42 24175 || exit 1
4977bab6 24176
60975492 24177@endif target-winsup
4977bab6 24178
295f4e42
NN
24179.PHONY: maybe-distclean-target-winsup distclean-target-winsup
24180maybe-distclean-target-winsup:
60975492
PB
24181@if target-winsup
24182maybe-distclean-target-winsup: distclean-target-winsup
295f4e42
NN
24183
24184distclean-target-winsup:
24185 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
8c90b13a
L
24186 r=`${PWD_COMMAND}`; export r; \
24187 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
295f4e42 24188 $(SET_LIB_PATH) \
4fc4dd12 24189 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
24190 echo "Doing distclean in $(TARGET_SUBDIR)/winsup" ; \
24191 for flag in $(EXTRA_TARGET_FLAGS); do \
24192 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24193 done; \
24194 (cd $(TARGET_SUBDIR)/winsup && \
24195 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24196 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24197 "RANLIB=$${RANLIB}" \
24198 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 24199 distclean) \
4977bab6
ZW
24200 || exit 1
24201
60975492 24202@endif target-winsup
4977bab6 24203
295f4e42
NN
24204.PHONY: maybe-maintainer-clean-target-winsup maintainer-clean-target-winsup
24205maybe-maintainer-clean-target-winsup:
60975492
PB
24206@if target-winsup
24207maybe-maintainer-clean-target-winsup: maintainer-clean-target-winsup
4977bab6 24208
295f4e42
NN
24209maintainer-clean-target-winsup:
24210 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
24211 r=`${PWD_COMMAND}`; export r; \
8c90b13a 24212 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 24213 $(SET_LIB_PATH) \
4fc4dd12 24214 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
24215 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/winsup" ; \
24216 for flag in $(EXTRA_TARGET_FLAGS); do \
24217 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24218 done; \
24219 (cd $(TARGET_SUBDIR)/winsup && \
24220 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24221 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24222 "RANLIB=$${RANLIB}" \
24223 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 24224 maintainer-clean) \
295f4e42 24225 || exit 1
4977bab6 24226
60975492 24227@endif target-winsup
4977bab6 24228
7e2dbcef 24229
295f4e42
NN
24230.PHONY: configure-target-libgloss maybe-configure-target-libgloss
24231maybe-configure-target-libgloss:
60975492
PB
24232@if target-libgloss
24233maybe-configure-target-libgloss: configure-target-libgloss
4977bab6 24234
295f4e42
NN
24235# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
24236$(TARGET_SUBDIR)/libgloss/multilib.out: multilib.out
24237 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss ; \
24238 rm -f $(TARGET_SUBDIR)/libgloss/Makefile || : ; \
24239 cp multilib.out $(TARGET_SUBDIR)/libgloss/multilib.out
4977bab6 24240
295f4e42
NN
24241configure-target-libgloss: $(TARGET_SUBDIR)/libgloss/multilib.out
24242 @test ! -f $(TARGET_SUBDIR)/libgloss/Makefile || exit 0; \
24243 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss ; \
8c90b13a
L
24244 r=`${PWD_COMMAND}`; export r; \
24245 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
295f4e42 24246 $(SET_LIB_PATH) \
4fc4dd12 24247 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
24248 echo Configuring in $(TARGET_SUBDIR)/libgloss; \
24249 cd "$(TARGET_SUBDIR)/libgloss" || exit 1; \
4977bab6 24250 case $(srcdir) in \
4977bab6 24251 /* | [A-Za-z]:[\\/]*) \
295f4e42 24252 topdir=$(srcdir) ;; \
4977bab6 24253 *) \
295f4e42
NN
24254 case "$(TARGET_SUBDIR)" in \
24255 .) topdir="../$(srcdir)" ;; \
24256 *) topdir="../../$(srcdir)" ;; \
24257 esac ;; \
4977bab6 24258 esac; \
295f4e42
NN
24259 srcdiroption="--srcdir=$${topdir}/libgloss"; \
24260 libsrcdir="$$s/libgloss"; \
24261 rm -f no-such-file || : ; \
24262 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
24263 $(TARGET_CONFIGARGS) $${srcdiroption} \
a52a0a7f 24264 --with-target-subdir="$(TARGET_SUBDIR)" \
4977bab6 24265 || exit 1
60975492 24266@endif target-libgloss
4977bab6 24267
295f4e42
NN
24268.PHONY: all-target-libgloss maybe-all-target-libgloss
24269maybe-all-target-libgloss:
60975492 24270@if target-libgloss
7c27e184 24271TARGET-target-libgloss=all
60975492 24272maybe-all-target-libgloss: all-target-libgloss
295f4e42 24273all-target-libgloss: configure-target-libgloss
8c90b13a
L
24274 @r=`${PWD_COMMAND}`; export r; \
24275 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 24276 $(SET_LIB_PATH) \
4fc4dd12 24277 $(NORMAL_TARGET_EXPORTS) \
295f4e42 24278 (cd $(TARGET_SUBDIR)/libgloss && \
7c27e184 24279 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libgloss))
60975492 24280@endif target-libgloss
4977bab6 24281
295f4e42
NN
24282.PHONY: check-target-libgloss maybe-check-target-libgloss
24283maybe-check-target-libgloss:
60975492
PB
24284@if target-libgloss
24285maybe-check-target-libgloss: check-target-libgloss
4977bab6 24286
295f4e42
NN
24287# Dummy target for uncheckable module.
24288check-target-libgloss:
4977bab6 24289
60975492 24290@endif target-libgloss
4977bab6 24291
295f4e42
NN
24292.PHONY: install-target-libgloss maybe-install-target-libgloss
24293maybe-install-target-libgloss:
60975492
PB
24294@if target-libgloss
24295maybe-install-target-libgloss: install-target-libgloss
7e2dbcef 24296
295f4e42 24297install-target-libgloss: installdirs
8c90b13a
L
24298 @r=`${PWD_COMMAND}`; export r; \
24299 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 24300 $(SET_LIB_PATH) \
4fc4dd12 24301 $(NORMAL_TARGET_EXPORTS) \
295f4e42 24302 (cd $(TARGET_SUBDIR)/libgloss && \
a52a0a7f 24303 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4977bab6 24304
60975492 24305@endif target-libgloss
4977bab6 24306
295f4e42
NN
24307# Other targets (info, dvi, etc.)
24308
24309.PHONY: maybe-info-target-libgloss info-target-libgloss
24310maybe-info-target-libgloss:
60975492
PB
24311@if target-libgloss
24312maybe-info-target-libgloss: info-target-libgloss
295f4e42
NN
24313
24314info-target-libgloss: \
24315 configure-target-libgloss
24316 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
8c90b13a
L
24317 r=`${PWD_COMMAND}`; export r; \
24318 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
295f4e42 24319 $(SET_LIB_PATH) \
4fc4dd12 24320 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
24321 echo "Doing info in $(TARGET_SUBDIR)/libgloss" ; \
24322 for flag in $(EXTRA_TARGET_FLAGS); do \
24323 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24324 done; \
24325 (cd $(TARGET_SUBDIR)/libgloss && \
24326 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24327 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24328 "RANLIB=$${RANLIB}" \
24329 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 24330 info) \
82c34dcb
MC
24331 || exit 1
24332
60975492 24333@endif target-libgloss
82c34dcb 24334
295f4e42
NN
24335.PHONY: maybe-dvi-target-libgloss dvi-target-libgloss
24336maybe-dvi-target-libgloss:
60975492
PB
24337@if target-libgloss
24338maybe-dvi-target-libgloss: dvi-target-libgloss
82c34dcb 24339
295f4e42
NN
24340dvi-target-libgloss: \
24341 configure-target-libgloss
24342 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
24343 r=`${PWD_COMMAND}`; export r; \
8c90b13a 24344 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
82c34dcb 24345 $(SET_LIB_PATH) \
4fc4dd12 24346 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
24347 echo "Doing dvi in $(TARGET_SUBDIR)/libgloss" ; \
24348 for flag in $(EXTRA_TARGET_FLAGS); do \
24349 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24350 done; \
24351 (cd $(TARGET_SUBDIR)/libgloss && \
24352 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24353 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24354 "RANLIB=$${RANLIB}" \
24355 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 24356 dvi) \
295f4e42 24357 || exit 1
82c34dcb 24358
60975492 24359@endif target-libgloss
82c34dcb 24360
295f4e42
NN
24361.PHONY: maybe-TAGS-target-libgloss TAGS-target-libgloss
24362maybe-TAGS-target-libgloss:
60975492
PB
24363@if target-libgloss
24364maybe-TAGS-target-libgloss: TAGS-target-libgloss
7e2dbcef 24365
295f4e42
NN
24366TAGS-target-libgloss: \
24367 configure-target-libgloss
24368 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
24369 r=`${PWD_COMMAND}`; export r; \
8c90b13a 24370 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
82c34dcb 24371 $(SET_LIB_PATH) \
4fc4dd12 24372 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
24373 echo "Doing TAGS in $(TARGET_SUBDIR)/libgloss" ; \
24374 for flag in $(EXTRA_TARGET_FLAGS); do \
24375 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24376 done; \
24377 (cd $(TARGET_SUBDIR)/libgloss && \
24378 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24379 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24380 "RANLIB=$${RANLIB}" \
24381 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 24382 TAGS) \
295f4e42 24383 || exit 1
82c34dcb 24384
60975492 24385@endif target-libgloss
82c34dcb 24386
295f4e42
NN
24387.PHONY: maybe-install-info-target-libgloss install-info-target-libgloss
24388maybe-install-info-target-libgloss:
60975492
PB
24389@if target-libgloss
24390maybe-install-info-target-libgloss: install-info-target-libgloss
295f4e42
NN
24391
24392install-info-target-libgloss: \
24393 configure-target-libgloss \
24394 info-target-libgloss
24395 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
8c90b13a
L
24396 r=`${PWD_COMMAND}`; export r; \
24397 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
295f4e42 24398 $(SET_LIB_PATH) \
4fc4dd12 24399 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
24400 echo "Doing install-info in $(TARGET_SUBDIR)/libgloss" ; \
24401 for flag in $(EXTRA_TARGET_FLAGS); do \
24402 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24403 done; \
24404 (cd $(TARGET_SUBDIR)/libgloss && \
24405 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24406 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24407 "RANLIB=$${RANLIB}" \
24408 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 24409 install-info) \
4977bab6
ZW
24410 || exit 1
24411
60975492 24412@endif target-libgloss
4977bab6 24413
295f4e42
NN
24414.PHONY: maybe-installcheck-target-libgloss installcheck-target-libgloss
24415maybe-installcheck-target-libgloss:
60975492
PB
24416@if target-libgloss
24417maybe-installcheck-target-libgloss: installcheck-target-libgloss
4977bab6 24418
295f4e42
NN
24419installcheck-target-libgloss: \
24420 configure-target-libgloss
24421 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
24422 r=`${PWD_COMMAND}`; export r; \
24423 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24424 $(SET_LIB_PATH) \
4fc4dd12 24425 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
24426 echo "Doing installcheck in $(TARGET_SUBDIR)/libgloss" ; \
24427 for flag in $(EXTRA_TARGET_FLAGS); do \
24428 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24429 done; \
24430 (cd $(TARGET_SUBDIR)/libgloss && \
24431 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24432 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24433 "RANLIB=$${RANLIB}" \
24434 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 24435 installcheck) \
295f4e42 24436 || exit 1
4977bab6 24437
60975492 24438@endif target-libgloss
4977bab6 24439
295f4e42
NN
24440.PHONY: maybe-mostlyclean-target-libgloss mostlyclean-target-libgloss
24441maybe-mostlyclean-target-libgloss:
60975492
PB
24442@if target-libgloss
24443maybe-mostlyclean-target-libgloss: mostlyclean-target-libgloss
7e2dbcef 24444
295f4e42
NN
24445mostlyclean-target-libgloss:
24446 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
24447 r=`${PWD_COMMAND}`; export r; \
8c90b13a 24448 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 24449 $(SET_LIB_PATH) \
4fc4dd12 24450 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
24451 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgloss" ; \
24452 for flag in $(EXTRA_TARGET_FLAGS); do \
24453 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24454 done; \
24455 (cd $(TARGET_SUBDIR)/libgloss && \
24456 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24457 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24458 "RANLIB=$${RANLIB}" \
24459 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 24460 mostlyclean) \
295f4e42 24461 || exit 1
4977bab6 24462
60975492 24463@endif target-libgloss
4977bab6 24464
295f4e42
NN
24465.PHONY: maybe-clean-target-libgloss clean-target-libgloss
24466maybe-clean-target-libgloss:
60975492
PB
24467@if target-libgloss
24468maybe-clean-target-libgloss: clean-target-libgloss
295f4e42
NN
24469
24470clean-target-libgloss:
24471 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
8c90b13a
L
24472 r=`${PWD_COMMAND}`; export r; \
24473 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
295f4e42 24474 $(SET_LIB_PATH) \
4fc4dd12 24475 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
24476 echo "Doing clean in $(TARGET_SUBDIR)/libgloss" ; \
24477 for flag in $(EXTRA_TARGET_FLAGS); do \
24478 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24479 done; \
24480 (cd $(TARGET_SUBDIR)/libgloss && \
24481 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24482 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24483 "RANLIB=$${RANLIB}" \
24484 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 24485 clean) \
4977bab6
ZW
24486 || exit 1
24487
60975492 24488@endif target-libgloss
4977bab6 24489
295f4e42
NN
24490.PHONY: maybe-distclean-target-libgloss distclean-target-libgloss
24491maybe-distclean-target-libgloss:
60975492
PB
24492@if target-libgloss
24493maybe-distclean-target-libgloss: distclean-target-libgloss
4977bab6 24494
295f4e42
NN
24495distclean-target-libgloss:
24496 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
24497 r=`${PWD_COMMAND}`; export r; \
24498 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24499 $(SET_LIB_PATH) \
4fc4dd12 24500 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
24501 echo "Doing distclean in $(TARGET_SUBDIR)/libgloss" ; \
24502 for flag in $(EXTRA_TARGET_FLAGS); do \
24503 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24504 done; \
24505 (cd $(TARGET_SUBDIR)/libgloss && \
24506 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24507 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24508 "RANLIB=$${RANLIB}" \
24509 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 24510 distclean) \
295f4e42 24511 || exit 1
4977bab6 24512
60975492 24513@endif target-libgloss
4977bab6 24514
295f4e42
NN
24515.PHONY: maybe-maintainer-clean-target-libgloss maintainer-clean-target-libgloss
24516maybe-maintainer-clean-target-libgloss:
60975492
PB
24517@if target-libgloss
24518maybe-maintainer-clean-target-libgloss: maintainer-clean-target-libgloss
7e2dbcef 24519
295f4e42
NN
24520maintainer-clean-target-libgloss:
24521 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
24522 r=`${PWD_COMMAND}`; export r; \
8c90b13a 24523 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 24524 $(SET_LIB_PATH) \
4fc4dd12 24525 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
24526 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgloss" ; \
24527 for flag in $(EXTRA_TARGET_FLAGS); do \
24528 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24529 done; \
24530 (cd $(TARGET_SUBDIR)/libgloss && \
24531 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24532 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24533 "RANLIB=$${RANLIB}" \
24534 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 24535 maintainer-clean) \
295f4e42 24536 || exit 1
4977bab6 24537
60975492 24538@endif target-libgloss
4977bab6 24539
4977bab6 24540
295f4e42
NN
24541.PHONY: configure-target-libiberty maybe-configure-target-libiberty
24542maybe-configure-target-libiberty:
60975492
PB
24543@if target-libiberty
24544maybe-configure-target-libiberty: configure-target-libiberty
4977bab6 24545
88b5521b 24546# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
295f4e42
NN
24547$(TARGET_SUBDIR)/libiberty/multilib.out: multilib.out
24548 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libiberty ; \
24549 rm -f $(TARGET_SUBDIR)/libiberty/Makefile || : ; \
24550 cp multilib.out $(TARGET_SUBDIR)/libiberty/multilib.out
4977bab6 24551
295f4e42
NN
24552configure-target-libiberty: $(TARGET_SUBDIR)/libiberty/multilib.out
24553 @test ! -f $(TARGET_SUBDIR)/libiberty/Makefile || exit 0; \
24554 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libiberty ; \
8c90b13a
L
24555 r=`${PWD_COMMAND}`; export r; \
24556 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 24557 $(SET_LIB_PATH) \
4fc4dd12 24558 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
24559 echo Configuring in $(TARGET_SUBDIR)/libiberty; \
24560 cd "$(TARGET_SUBDIR)/libiberty" || exit 1; \
3aa83176
NN
24561 case $(srcdir) in \
24562 /* | [A-Za-z]:[\\/]*) \
24563 topdir=$(srcdir) ;; \
24564 *) \
24565 case "$(TARGET_SUBDIR)" in \
4977bab6
ZW
24566 .) topdir="../$(srcdir)" ;; \
24567 *) topdir="../../$(srcdir)" ;; \
3aa83176
NN
24568 esac ;; \
24569 esac; \
295f4e42
NN
24570 srcdiroption="--srcdir=$${topdir}/libiberty"; \
24571 libsrcdir="$$s/libiberty"; \
3aa83176
NN
24572 rm -f no-such-file || : ; \
24573 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
24574 $(TARGET_CONFIGARGS) $${srcdiroption} \
a52a0a7f 24575 --with-target-subdir="$(TARGET_SUBDIR)" \
3aa83176 24576 || exit 1
60975492 24577@endif target-libiberty
4977bab6 24578
295f4e42
NN
24579.PHONY: all-target-libiberty maybe-all-target-libiberty
24580maybe-all-target-libiberty:
60975492 24581@if target-libiberty
7c27e184 24582TARGET-target-libiberty=all
60975492 24583maybe-all-target-libiberty: all-target-libiberty
295f4e42 24584all-target-libiberty: configure-target-libiberty
8c90b13a
L
24585 @r=`${PWD_COMMAND}`; export r; \
24586 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 24587 $(SET_LIB_PATH) \
4fc4dd12 24588 $(NORMAL_TARGET_EXPORTS) \
295f4e42 24589 (cd $(TARGET_SUBDIR)/libiberty && \
7c27e184 24590 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libiberty))
60975492 24591@endif target-libiberty
4977bab6 24592
295f4e42
NN
24593.PHONY: check-target-libiberty maybe-check-target-libiberty
24594maybe-check-target-libiberty:
60975492
PB
24595@if target-libiberty
24596maybe-check-target-libiberty: check-target-libiberty
7e2dbcef 24597
295f4e42 24598check-target-libiberty:
8c90b13a
L
24599 @r=`${PWD_COMMAND}`; export r; \
24600 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 24601 $(SET_LIB_PATH) \
4fc4dd12 24602 $(NORMAL_TARGET_EXPORTS) \
295f4e42 24603 (cd $(TARGET_SUBDIR)/libiberty && \
a52a0a7f 24604 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4977bab6 24605
60975492 24606@endif target-libiberty
4977bab6 24607
295f4e42
NN
24608.PHONY: install-target-libiberty maybe-install-target-libiberty
24609maybe-install-target-libiberty:
60975492
PB
24610@if target-libiberty
24611maybe-install-target-libiberty: install-target-libiberty
295f4e42
NN
24612
24613install-target-libiberty: installdirs
24614 @r=`${PWD_COMMAND}`; export r; \
24615 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24616 $(SET_LIB_PATH) \
4fc4dd12 24617 $(NORMAL_TARGET_EXPORTS) \
295f4e42 24618 (cd $(TARGET_SUBDIR)/libiberty && \
a52a0a7f 24619 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
295f4e42 24620
60975492 24621@endif target-libiberty
295f4e42
NN
24622
24623# Other targets (info, dvi, etc.)
24624
24625.PHONY: maybe-info-target-libiberty info-target-libiberty
24626maybe-info-target-libiberty:
60975492
PB
24627@if target-libiberty
24628maybe-info-target-libiberty: info-target-libiberty
295f4e42
NN
24629
24630info-target-libiberty: \
24631 configure-target-libiberty
24632 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
24633 r=`${PWD_COMMAND}`; export r; \
24634 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24635 $(SET_LIB_PATH) \
4fc4dd12 24636 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
24637 echo "Doing info in $(TARGET_SUBDIR)/libiberty" ; \
24638 for flag in $(EXTRA_TARGET_FLAGS); do \
24639 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24640 done; \
24641 (cd $(TARGET_SUBDIR)/libiberty && \
24642 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24643 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24644 "RANLIB=$${RANLIB}" \
24645 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 24646 info) \
295f4e42
NN
24647 || exit 1
24648
60975492 24649@endif target-libiberty
295f4e42
NN
24650
24651.PHONY: maybe-dvi-target-libiberty dvi-target-libiberty
24652maybe-dvi-target-libiberty:
60975492
PB
24653@if target-libiberty
24654maybe-dvi-target-libiberty: dvi-target-libiberty
295f4e42
NN
24655
24656dvi-target-libiberty: \
24657 configure-target-libiberty
24658 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
24659 r=`${PWD_COMMAND}`; export r; \
24660 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24661 $(SET_LIB_PATH) \
4fc4dd12 24662 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
24663 echo "Doing dvi in $(TARGET_SUBDIR)/libiberty" ; \
24664 for flag in $(EXTRA_TARGET_FLAGS); do \
24665 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24666 done; \
24667 (cd $(TARGET_SUBDIR)/libiberty && \
24668 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24669 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24670 "RANLIB=$${RANLIB}" \
24671 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 24672 dvi) \
295f4e42
NN
24673 || exit 1
24674
60975492 24675@endif target-libiberty
295f4e42
NN
24676
24677.PHONY: maybe-TAGS-target-libiberty TAGS-target-libiberty
24678maybe-TAGS-target-libiberty:
60975492
PB
24679@if target-libiberty
24680maybe-TAGS-target-libiberty: TAGS-target-libiberty
295f4e42
NN
24681
24682TAGS-target-libiberty: \
24683 configure-target-libiberty
24684 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
24685 r=`${PWD_COMMAND}`; export r; \
24686 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24687 $(SET_LIB_PATH) \
4fc4dd12 24688 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
24689 echo "Doing TAGS in $(TARGET_SUBDIR)/libiberty" ; \
24690 for flag in $(EXTRA_TARGET_FLAGS); do \
24691 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24692 done; \
24693 (cd $(TARGET_SUBDIR)/libiberty && \
24694 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24695 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24696 "RANLIB=$${RANLIB}" \
24697 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 24698 TAGS) \
295f4e42
NN
24699 || exit 1
24700
60975492 24701@endif target-libiberty
295f4e42
NN
24702
24703.PHONY: maybe-install-info-target-libiberty install-info-target-libiberty
24704maybe-install-info-target-libiberty:
60975492
PB
24705@if target-libiberty
24706maybe-install-info-target-libiberty: install-info-target-libiberty
295f4e42
NN
24707
24708install-info-target-libiberty: \
24709 configure-target-libiberty \
24710 info-target-libiberty
24711 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
24712 r=`${PWD_COMMAND}`; export r; \
24713 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24714 $(SET_LIB_PATH) \
4fc4dd12 24715 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
24716 echo "Doing install-info in $(TARGET_SUBDIR)/libiberty" ; \
24717 for flag in $(EXTRA_TARGET_FLAGS); do \
24718 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24719 done; \
24720 (cd $(TARGET_SUBDIR)/libiberty && \
24721 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24722 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24723 "RANLIB=$${RANLIB}" \
24724 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 24725 install-info) \
295f4e42
NN
24726 || exit 1
24727
60975492 24728@endif target-libiberty
295f4e42
NN
24729
24730.PHONY: maybe-installcheck-target-libiberty installcheck-target-libiberty
24731maybe-installcheck-target-libiberty:
60975492
PB
24732@if target-libiberty
24733maybe-installcheck-target-libiberty: installcheck-target-libiberty
295f4e42
NN
24734
24735installcheck-target-libiberty: \
24736 configure-target-libiberty
24737 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
24738 r=`${PWD_COMMAND}`; export r; \
24739 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24740 $(SET_LIB_PATH) \
4fc4dd12 24741 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
24742 echo "Doing installcheck in $(TARGET_SUBDIR)/libiberty" ; \
24743 for flag in $(EXTRA_TARGET_FLAGS); do \
24744 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24745 done; \
24746 (cd $(TARGET_SUBDIR)/libiberty && \
24747 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24748 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24749 "RANLIB=$${RANLIB}" \
24750 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 24751 installcheck) \
295f4e42
NN
24752 || exit 1
24753
60975492 24754@endif target-libiberty
295f4e42
NN
24755
24756.PHONY: maybe-mostlyclean-target-libiberty mostlyclean-target-libiberty
24757maybe-mostlyclean-target-libiberty:
60975492
PB
24758@if target-libiberty
24759maybe-mostlyclean-target-libiberty: mostlyclean-target-libiberty
295f4e42
NN
24760
24761mostlyclean-target-libiberty:
24762 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
24763 r=`${PWD_COMMAND}`; export r; \
24764 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24765 $(SET_LIB_PATH) \
4fc4dd12 24766 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
24767 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libiberty" ; \
24768 for flag in $(EXTRA_TARGET_FLAGS); do \
24769 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24770 done; \
24771 (cd $(TARGET_SUBDIR)/libiberty && \
24772 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24773 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24774 "RANLIB=$${RANLIB}" \
24775 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 24776 mostlyclean) \
295f4e42
NN
24777 || exit 1
24778
60975492 24779@endif target-libiberty
295f4e42
NN
24780
24781.PHONY: maybe-clean-target-libiberty clean-target-libiberty
24782maybe-clean-target-libiberty:
60975492
PB
24783@if target-libiberty
24784maybe-clean-target-libiberty: clean-target-libiberty
295f4e42
NN
24785
24786clean-target-libiberty:
24787 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
24788 r=`${PWD_COMMAND}`; export r; \
24789 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24790 $(SET_LIB_PATH) \
4fc4dd12 24791 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
24792 echo "Doing clean in $(TARGET_SUBDIR)/libiberty" ; \
24793 for flag in $(EXTRA_TARGET_FLAGS); do \
24794 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24795 done; \
24796 (cd $(TARGET_SUBDIR)/libiberty && \
24797 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24798 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24799 "RANLIB=$${RANLIB}" \
24800 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 24801 clean) \
295f4e42
NN
24802 || exit 1
24803
60975492 24804@endif target-libiberty
295f4e42
NN
24805
24806.PHONY: maybe-distclean-target-libiberty distclean-target-libiberty
24807maybe-distclean-target-libiberty:
60975492
PB
24808@if target-libiberty
24809maybe-distclean-target-libiberty: distclean-target-libiberty
295f4e42
NN
24810
24811distclean-target-libiberty:
24812 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
24813 r=`${PWD_COMMAND}`; export r; \
24814 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24815 $(SET_LIB_PATH) \
4fc4dd12 24816 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
24817 echo "Doing distclean in $(TARGET_SUBDIR)/libiberty" ; \
24818 for flag in $(EXTRA_TARGET_FLAGS); do \
24819 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24820 done; \
24821 (cd $(TARGET_SUBDIR)/libiberty && \
24822 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24823 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24824 "RANLIB=$${RANLIB}" \
24825 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 24826 distclean) \
295f4e42
NN
24827 || exit 1
24828
60975492 24829@endif target-libiberty
295f4e42
NN
24830
24831.PHONY: maybe-maintainer-clean-target-libiberty maintainer-clean-target-libiberty
24832maybe-maintainer-clean-target-libiberty:
60975492
PB
24833@if target-libiberty
24834maybe-maintainer-clean-target-libiberty: maintainer-clean-target-libiberty
295f4e42
NN
24835
24836maintainer-clean-target-libiberty:
24837 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
24838 r=`${PWD_COMMAND}`; export r; \
24839 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24840 $(SET_LIB_PATH) \
4fc4dd12 24841 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
24842 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libiberty" ; \
24843 for flag in $(EXTRA_TARGET_FLAGS); do \
24844 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24845 done; \
24846 (cd $(TARGET_SUBDIR)/libiberty && \
24847 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24848 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24849 "RANLIB=$${RANLIB}" \
24850 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 24851 maintainer-clean) \
295f4e42 24852 || exit 1
7e2dbcef 24853
60975492 24854@endif target-libiberty
4977bab6
ZW
24855
24856
295f4e42
NN
24857.PHONY: configure-target-gperf maybe-configure-target-gperf
24858maybe-configure-target-gperf:
60975492
PB
24859@if target-gperf
24860maybe-configure-target-gperf: configure-target-gperf
4977bab6 24861
88b5521b 24862# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
295f4e42
NN
24863$(TARGET_SUBDIR)/gperf/multilib.out: multilib.out
24864 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/gperf ; \
24865 rm -f $(TARGET_SUBDIR)/gperf/Makefile || : ; \
24866 cp multilib.out $(TARGET_SUBDIR)/gperf/multilib.out
4977bab6 24867
295f4e42
NN
24868configure-target-gperf: $(TARGET_SUBDIR)/gperf/multilib.out
24869 @test ! -f $(TARGET_SUBDIR)/gperf/Makefile || exit 0; \
24870 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/gperf ; \
8c90b13a
L
24871 r=`${PWD_COMMAND}`; export r; \
24872 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 24873 $(SET_LIB_PATH) \
4fc4dd12 24874 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
24875 echo Configuring in $(TARGET_SUBDIR)/gperf; \
24876 cd "$(TARGET_SUBDIR)/gperf" || exit 1; \
3aa83176
NN
24877 case $(srcdir) in \
24878 /* | [A-Za-z]:[\\/]*) \
24879 topdir=$(srcdir) ;; \
24880 *) \
24881 case "$(TARGET_SUBDIR)" in \
24882 .) topdir="../$(srcdir)" ;; \
24883 *) topdir="../../$(srcdir)" ;; \
24884 esac ;; \
24885 esac; \
295f4e42
NN
24886 srcdiroption="--srcdir=$${topdir}/gperf"; \
24887 libsrcdir="$$s/gperf"; \
3aa83176
NN
24888 rm -f no-such-file || : ; \
24889 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
24890 $(TARGET_CONFIGARGS) $${srcdiroption} \
a52a0a7f 24891 --with-target-subdir="$(TARGET_SUBDIR)" \
3aa83176 24892 || exit 1
60975492 24893@endif target-gperf
4977bab6 24894
295f4e42
NN
24895.PHONY: all-target-gperf maybe-all-target-gperf
24896maybe-all-target-gperf:
60975492 24897@if target-gperf
7c27e184 24898TARGET-target-gperf=all
60975492 24899maybe-all-target-gperf: all-target-gperf
295f4e42 24900all-target-gperf: configure-target-gperf
8c90b13a
L
24901 @r=`${PWD_COMMAND}`; export r; \
24902 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 24903 $(SET_LIB_PATH) \
4fc4dd12 24904 $(NORMAL_TARGET_EXPORTS) \
295f4e42 24905 (cd $(TARGET_SUBDIR)/gperf && \
7c27e184 24906 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-gperf))
60975492 24907@endif target-gperf
4977bab6 24908
295f4e42
NN
24909.PHONY: check-target-gperf maybe-check-target-gperf
24910maybe-check-target-gperf:
60975492
PB
24911@if target-gperf
24912maybe-check-target-gperf: check-target-gperf
7e2dbcef 24913
295f4e42 24914check-target-gperf:
8c90b13a
L
24915 @r=`${PWD_COMMAND}`; export r; \
24916 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 24917 $(SET_LIB_PATH) \
4fc4dd12 24918 $(NORMAL_TARGET_EXPORTS) \
295f4e42 24919 (cd $(TARGET_SUBDIR)/gperf && \
a52a0a7f 24920 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4977bab6 24921
60975492 24922@endif target-gperf
4977bab6 24923
295f4e42
NN
24924.PHONY: install-target-gperf maybe-install-target-gperf
24925maybe-install-target-gperf:
60975492
PB
24926@if target-gperf
24927maybe-install-target-gperf: install-target-gperf
295f4e42
NN
24928
24929install-target-gperf: installdirs
24930 @r=`${PWD_COMMAND}`; export r; \
24931 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24932 $(SET_LIB_PATH) \
4fc4dd12 24933 $(NORMAL_TARGET_EXPORTS) \
295f4e42 24934 (cd $(TARGET_SUBDIR)/gperf && \
a52a0a7f 24935 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
295f4e42 24936
60975492 24937@endif target-gperf
295f4e42
NN
24938
24939# Other targets (info, dvi, etc.)
24940
24941.PHONY: maybe-info-target-gperf info-target-gperf
24942maybe-info-target-gperf:
60975492
PB
24943@if target-gperf
24944maybe-info-target-gperf: info-target-gperf
295f4e42
NN
24945
24946info-target-gperf: \
24947 configure-target-gperf
24948 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
24949 r=`${PWD_COMMAND}`; export r; \
24950 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24951 $(SET_LIB_PATH) \
4fc4dd12 24952 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
24953 echo "Doing info in $(TARGET_SUBDIR)/gperf" ; \
24954 for flag in $(EXTRA_TARGET_FLAGS); do \
24955 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24956 done; \
24957 (cd $(TARGET_SUBDIR)/gperf && \
24958 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24959 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24960 "RANLIB=$${RANLIB}" \
24961 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 24962 info) \
295f4e42
NN
24963 || exit 1
24964
60975492 24965@endif target-gperf
295f4e42
NN
24966
24967.PHONY: maybe-dvi-target-gperf dvi-target-gperf
24968maybe-dvi-target-gperf:
60975492
PB
24969@if target-gperf
24970maybe-dvi-target-gperf: dvi-target-gperf
295f4e42
NN
24971
24972dvi-target-gperf: \
24973 configure-target-gperf
24974 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
24975 r=`${PWD_COMMAND}`; export r; \
24976 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24977 $(SET_LIB_PATH) \
4fc4dd12 24978 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
24979 echo "Doing dvi in $(TARGET_SUBDIR)/gperf" ; \
24980 for flag in $(EXTRA_TARGET_FLAGS); do \
24981 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24982 done; \
24983 (cd $(TARGET_SUBDIR)/gperf && \
24984 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24985 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24986 "RANLIB=$${RANLIB}" \
24987 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 24988 dvi) \
295f4e42
NN
24989 || exit 1
24990
60975492 24991@endif target-gperf
295f4e42
NN
24992
24993.PHONY: maybe-TAGS-target-gperf TAGS-target-gperf
24994maybe-TAGS-target-gperf:
60975492
PB
24995@if target-gperf
24996maybe-TAGS-target-gperf: TAGS-target-gperf
295f4e42
NN
24997
24998TAGS-target-gperf: \
24999 configure-target-gperf
25000 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
25001 r=`${PWD_COMMAND}`; export r; \
25002 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25003 $(SET_LIB_PATH) \
4fc4dd12 25004 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
25005 echo "Doing TAGS in $(TARGET_SUBDIR)/gperf" ; \
25006 for flag in $(EXTRA_TARGET_FLAGS); do \
25007 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25008 done; \
25009 (cd $(TARGET_SUBDIR)/gperf && \
25010 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25011 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25012 "RANLIB=$${RANLIB}" \
25013 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 25014 TAGS) \
295f4e42
NN
25015 || exit 1
25016
60975492 25017@endif target-gperf
295f4e42
NN
25018
25019.PHONY: maybe-install-info-target-gperf install-info-target-gperf
25020maybe-install-info-target-gperf:
60975492
PB
25021@if target-gperf
25022maybe-install-info-target-gperf: install-info-target-gperf
295f4e42
NN
25023
25024install-info-target-gperf: \
25025 configure-target-gperf \
25026 info-target-gperf
25027 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
25028 r=`${PWD_COMMAND}`; export r; \
25029 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25030 $(SET_LIB_PATH) \
4fc4dd12 25031 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
25032 echo "Doing install-info in $(TARGET_SUBDIR)/gperf" ; \
25033 for flag in $(EXTRA_TARGET_FLAGS); do \
25034 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25035 done; \
25036 (cd $(TARGET_SUBDIR)/gperf && \
25037 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25038 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25039 "RANLIB=$${RANLIB}" \
25040 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 25041 install-info) \
295f4e42
NN
25042 || exit 1
25043
60975492 25044@endif target-gperf
295f4e42
NN
25045
25046.PHONY: maybe-installcheck-target-gperf installcheck-target-gperf
25047maybe-installcheck-target-gperf:
60975492
PB
25048@if target-gperf
25049maybe-installcheck-target-gperf: installcheck-target-gperf
295f4e42
NN
25050
25051installcheck-target-gperf: \
25052 configure-target-gperf
25053 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
25054 r=`${PWD_COMMAND}`; export r; \
25055 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25056 $(SET_LIB_PATH) \
4fc4dd12 25057 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
25058 echo "Doing installcheck in $(TARGET_SUBDIR)/gperf" ; \
25059 for flag in $(EXTRA_TARGET_FLAGS); do \
25060 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25061 done; \
25062 (cd $(TARGET_SUBDIR)/gperf && \
25063 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25064 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25065 "RANLIB=$${RANLIB}" \
25066 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 25067 installcheck) \
295f4e42
NN
25068 || exit 1
25069
60975492 25070@endif target-gperf
295f4e42
NN
25071
25072.PHONY: maybe-mostlyclean-target-gperf mostlyclean-target-gperf
25073maybe-mostlyclean-target-gperf:
60975492
PB
25074@if target-gperf
25075maybe-mostlyclean-target-gperf: mostlyclean-target-gperf
295f4e42
NN
25076
25077mostlyclean-target-gperf:
25078 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
25079 r=`${PWD_COMMAND}`; export r; \
25080 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25081 $(SET_LIB_PATH) \
4fc4dd12 25082 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
25083 echo "Doing mostlyclean in $(TARGET_SUBDIR)/gperf" ; \
25084 for flag in $(EXTRA_TARGET_FLAGS); do \
25085 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25086 done; \
25087 (cd $(TARGET_SUBDIR)/gperf && \
25088 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25089 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25090 "RANLIB=$${RANLIB}" \
25091 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 25092 mostlyclean) \
295f4e42
NN
25093 || exit 1
25094
60975492 25095@endif target-gperf
295f4e42
NN
25096
25097.PHONY: maybe-clean-target-gperf clean-target-gperf
25098maybe-clean-target-gperf:
60975492
PB
25099@if target-gperf
25100maybe-clean-target-gperf: clean-target-gperf
295f4e42
NN
25101
25102clean-target-gperf:
25103 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
25104 r=`${PWD_COMMAND}`; export r; \
25105 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25106 $(SET_LIB_PATH) \
4fc4dd12 25107 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
25108 echo "Doing clean in $(TARGET_SUBDIR)/gperf" ; \
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)/gperf && \
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}" \
a52a0a7f 25117 clean) \
295f4e42
NN
25118 || exit 1
25119
60975492 25120@endif target-gperf
295f4e42
NN
25121
25122.PHONY: maybe-distclean-target-gperf distclean-target-gperf
25123maybe-distclean-target-gperf:
60975492
PB
25124@if target-gperf
25125maybe-distclean-target-gperf: distclean-target-gperf
295f4e42
NN
25126
25127distclean-target-gperf:
25128 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
25129 r=`${PWD_COMMAND}`; export r; \
25130 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25131 $(SET_LIB_PATH) \
4fc4dd12 25132 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
25133 echo "Doing distclean in $(TARGET_SUBDIR)/gperf" ; \
25134 for flag in $(EXTRA_TARGET_FLAGS); do \
25135 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25136 done; \
25137 (cd $(TARGET_SUBDIR)/gperf && \
25138 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25139 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25140 "RANLIB=$${RANLIB}" \
25141 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 25142 distclean) \
295f4e42
NN
25143 || exit 1
25144
60975492 25145@endif target-gperf
295f4e42
NN
25146
25147.PHONY: maybe-maintainer-clean-target-gperf maintainer-clean-target-gperf
25148maybe-maintainer-clean-target-gperf:
60975492
PB
25149@if target-gperf
25150maybe-maintainer-clean-target-gperf: maintainer-clean-target-gperf
295f4e42
NN
25151
25152maintainer-clean-target-gperf:
25153 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
25154 r=`${PWD_COMMAND}`; export r; \
25155 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25156 $(SET_LIB_PATH) \
4fc4dd12 25157 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
25158 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/gperf" ; \
25159 for flag in $(EXTRA_TARGET_FLAGS); do \
25160 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25161 done; \
25162 (cd $(TARGET_SUBDIR)/gperf && \
25163 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25164 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25165 "RANLIB=$${RANLIB}" \
25166 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 25167 maintainer-clean) \
295f4e42 25168 || exit 1
7e2dbcef 25169
60975492 25170@endif target-gperf
4977bab6
ZW
25171
25172
295f4e42
NN
25173.PHONY: configure-target-examples maybe-configure-target-examples
25174maybe-configure-target-examples:
60975492
PB
25175@if target-examples
25176maybe-configure-target-examples: configure-target-examples
4977bab6 25177
88b5521b 25178# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
295f4e42
NN
25179$(TARGET_SUBDIR)/examples/multilib.out: multilib.out
25180 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/examples ; \
25181 rm -f $(TARGET_SUBDIR)/examples/Makefile || : ; \
25182 cp multilib.out $(TARGET_SUBDIR)/examples/multilib.out
4977bab6 25183
295f4e42
NN
25184configure-target-examples: $(TARGET_SUBDIR)/examples/multilib.out
25185 @test ! -f $(TARGET_SUBDIR)/examples/Makefile || exit 0; \
25186 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/examples ; \
8c90b13a
L
25187 r=`${PWD_COMMAND}`; export r; \
25188 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 25189 $(SET_LIB_PATH) \
4fc4dd12 25190 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
25191 echo Configuring in $(TARGET_SUBDIR)/examples; \
25192 cd "$(TARGET_SUBDIR)/examples" || exit 1; \
3aa83176
NN
25193 case $(srcdir) in \
25194 /* | [A-Za-z]:[\\/]*) \
25195 topdir=$(srcdir) ;; \
25196 *) \
25197 case "$(TARGET_SUBDIR)" in \
4977bab6
ZW
25198 .) topdir="../$(srcdir)" ;; \
25199 *) topdir="../../$(srcdir)" ;; \
3aa83176
NN
25200 esac ;; \
25201 esac; \
295f4e42
NN
25202 srcdiroption="--srcdir=$${topdir}/examples"; \
25203 libsrcdir="$$s/examples"; \
3aa83176
NN
25204 rm -f no-such-file || : ; \
25205 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25206 $(TARGET_CONFIGARGS) $${srcdiroption} \
a52a0a7f 25207 --with-target-subdir="$(TARGET_SUBDIR)" \
3aa83176 25208 || exit 1
60975492 25209@endif target-examples
4977bab6 25210
295f4e42
NN
25211.PHONY: all-target-examples maybe-all-target-examples
25212maybe-all-target-examples:
60975492 25213@if target-examples
7c27e184 25214TARGET-target-examples=all
60975492 25215maybe-all-target-examples: all-target-examples
295f4e42 25216all-target-examples: configure-target-examples
8c90b13a
L
25217 @r=`${PWD_COMMAND}`; export r; \
25218 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 25219 $(SET_LIB_PATH) \
4fc4dd12 25220 $(NORMAL_TARGET_EXPORTS) \
295f4e42 25221 (cd $(TARGET_SUBDIR)/examples && \
7c27e184 25222 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-examples))
60975492 25223@endif target-examples
4977bab6 25224
295f4e42
NN
25225.PHONY: check-target-examples maybe-check-target-examples
25226maybe-check-target-examples:
60975492
PB
25227@if target-examples
25228maybe-check-target-examples: check-target-examples
7e2dbcef 25229
295f4e42
NN
25230# Dummy target for uncheckable module.
25231check-target-examples:
25232
60975492 25233@endif target-examples
295f4e42
NN
25234
25235.PHONY: install-target-examples maybe-install-target-examples
25236maybe-install-target-examples:
60975492
PB
25237@if target-examples
25238maybe-install-target-examples: install-target-examples
295f4e42
NN
25239
25240# Dummy target for uninstallable.
25241install-target-examples:
25242
60975492 25243@endif target-examples
295f4e42
NN
25244
25245# Other targets (info, dvi, etc.)
25246
25247.PHONY: maybe-info-target-examples info-target-examples
25248maybe-info-target-examples:
60975492
PB
25249@if target-examples
25250maybe-info-target-examples: info-target-examples
295f4e42
NN
25251
25252info-target-examples: \
25253 configure-target-examples
25254 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
25255 r=`${PWD_COMMAND}`; export r; \
8c90b13a 25256 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 25257 $(SET_LIB_PATH) \
4fc4dd12 25258 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
25259 echo "Doing info in $(TARGET_SUBDIR)/examples" ; \
25260 for flag in $(EXTRA_TARGET_FLAGS); do \
25261 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25262 done; \
25263 (cd $(TARGET_SUBDIR)/examples && \
25264 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25265 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25266 "RANLIB=$${RANLIB}" \
25267 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 25268 info) \
295f4e42 25269 || exit 1
4977bab6 25270
60975492 25271@endif target-examples
4977bab6 25272
295f4e42
NN
25273.PHONY: maybe-dvi-target-examples dvi-target-examples
25274maybe-dvi-target-examples:
60975492
PB
25275@if target-examples
25276maybe-dvi-target-examples: dvi-target-examples
7e2dbcef 25277
295f4e42
NN
25278dvi-target-examples: \
25279 configure-target-examples
25280 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
25281 r=`${PWD_COMMAND}`; export r; \
8c90b13a 25282 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 25283 $(SET_LIB_PATH) \
4fc4dd12 25284 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
25285 echo "Doing dvi in $(TARGET_SUBDIR)/examples" ; \
25286 for flag in $(EXTRA_TARGET_FLAGS); do \
25287 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25288 done; \
25289 (cd $(TARGET_SUBDIR)/examples && \
25290 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25291 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25292 "RANLIB=$${RANLIB}" \
25293 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 25294 dvi) \
295f4e42
NN
25295 || exit 1
25296
60975492 25297@endif target-examples
295f4e42
NN
25298
25299.PHONY: maybe-TAGS-target-examples TAGS-target-examples
25300maybe-TAGS-target-examples:
60975492
PB
25301@if target-examples
25302maybe-TAGS-target-examples: TAGS-target-examples
295f4e42
NN
25303
25304TAGS-target-examples: \
25305 configure-target-examples
25306 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
25307 r=`${PWD_COMMAND}`; export r; \
25308 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25309 $(SET_LIB_PATH) \
4fc4dd12 25310 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
25311 echo "Doing TAGS in $(TARGET_SUBDIR)/examples" ; \
25312 for flag in $(EXTRA_TARGET_FLAGS); do \
25313 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25314 done; \
25315 (cd $(TARGET_SUBDIR)/examples && \
25316 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25317 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25318 "RANLIB=$${RANLIB}" \
25319 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 25320 TAGS) \
295f4e42
NN
25321 || exit 1
25322
60975492 25323@endif target-examples
295f4e42
NN
25324
25325.PHONY: maybe-install-info-target-examples install-info-target-examples
25326maybe-install-info-target-examples:
60975492
PB
25327@if target-examples
25328maybe-install-info-target-examples: install-info-target-examples
295f4e42
NN
25329
25330install-info-target-examples: \
25331 configure-target-examples \
25332 info-target-examples
25333 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
25334 r=`${PWD_COMMAND}`; export r; \
25335 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25336 $(SET_LIB_PATH) \
4fc4dd12 25337 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
25338 echo "Doing install-info in $(TARGET_SUBDIR)/examples" ; \
25339 for flag in $(EXTRA_TARGET_FLAGS); do \
25340 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25341 done; \
25342 (cd $(TARGET_SUBDIR)/examples && \
25343 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25344 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25345 "RANLIB=$${RANLIB}" \
25346 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 25347 install-info) \
295f4e42
NN
25348 || exit 1
25349
60975492 25350@endif target-examples
295f4e42
NN
25351
25352.PHONY: maybe-installcheck-target-examples installcheck-target-examples
25353maybe-installcheck-target-examples:
60975492
PB
25354@if target-examples
25355maybe-installcheck-target-examples: installcheck-target-examples
295f4e42
NN
25356
25357installcheck-target-examples: \
25358 configure-target-examples
25359 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
25360 r=`${PWD_COMMAND}`; export r; \
25361 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25362 $(SET_LIB_PATH) \
4fc4dd12 25363 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
25364 echo "Doing installcheck in $(TARGET_SUBDIR)/examples" ; \
25365 for flag in $(EXTRA_TARGET_FLAGS); do \
25366 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25367 done; \
25368 (cd $(TARGET_SUBDIR)/examples && \
25369 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25370 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25371 "RANLIB=$${RANLIB}" \
25372 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 25373 installcheck) \
295f4e42
NN
25374 || exit 1
25375
60975492 25376@endif target-examples
295f4e42
NN
25377
25378.PHONY: maybe-mostlyclean-target-examples mostlyclean-target-examples
25379maybe-mostlyclean-target-examples:
60975492
PB
25380@if target-examples
25381maybe-mostlyclean-target-examples: mostlyclean-target-examples
295f4e42
NN
25382
25383mostlyclean-target-examples:
25384 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
25385 r=`${PWD_COMMAND}`; export r; \
25386 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25387 $(SET_LIB_PATH) \
4fc4dd12 25388 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
25389 echo "Doing mostlyclean in $(TARGET_SUBDIR)/examples" ; \
25390 for flag in $(EXTRA_TARGET_FLAGS); do \
25391 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25392 done; \
25393 (cd $(TARGET_SUBDIR)/examples && \
25394 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25395 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25396 "RANLIB=$${RANLIB}" \
25397 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 25398 mostlyclean) \
295f4e42
NN
25399 || exit 1
25400
60975492 25401@endif target-examples
295f4e42
NN
25402
25403.PHONY: maybe-clean-target-examples clean-target-examples
25404maybe-clean-target-examples:
60975492
PB
25405@if target-examples
25406maybe-clean-target-examples: clean-target-examples
295f4e42
NN
25407
25408clean-target-examples:
25409 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
25410 r=`${PWD_COMMAND}`; export r; \
25411 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25412 $(SET_LIB_PATH) \
4fc4dd12 25413 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
25414 echo "Doing clean in $(TARGET_SUBDIR)/examples" ; \
25415 for flag in $(EXTRA_TARGET_FLAGS); do \
25416 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25417 done; \
25418 (cd $(TARGET_SUBDIR)/examples && \
25419 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25420 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25421 "RANLIB=$${RANLIB}" \
25422 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 25423 clean) \
295f4e42
NN
25424 || exit 1
25425
60975492 25426@endif target-examples
295f4e42
NN
25427
25428.PHONY: maybe-distclean-target-examples distclean-target-examples
25429maybe-distclean-target-examples:
60975492
PB
25430@if target-examples
25431maybe-distclean-target-examples: distclean-target-examples
295f4e42
NN
25432
25433distclean-target-examples:
25434 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
25435 r=`${PWD_COMMAND}`; export r; \
25436 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25437 $(SET_LIB_PATH) \
4fc4dd12 25438 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
25439 echo "Doing distclean in $(TARGET_SUBDIR)/examples" ; \
25440 for flag in $(EXTRA_TARGET_FLAGS); do \
25441 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25442 done; \
25443 (cd $(TARGET_SUBDIR)/examples && \
25444 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25445 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25446 "RANLIB=$${RANLIB}" \
25447 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 25448 distclean) \
295f4e42
NN
25449 || exit 1
25450
60975492 25451@endif target-examples
295f4e42
NN
25452
25453.PHONY: maybe-maintainer-clean-target-examples maintainer-clean-target-examples
25454maybe-maintainer-clean-target-examples:
60975492
PB
25455@if target-examples
25456maybe-maintainer-clean-target-examples: maintainer-clean-target-examples
295f4e42
NN
25457
25458maintainer-clean-target-examples:
25459 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
25460 r=`${PWD_COMMAND}`; export r; \
25461 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25462 $(SET_LIB_PATH) \
4fc4dd12 25463 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
25464 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/examples" ; \
25465 for flag in $(EXTRA_TARGET_FLAGS); do \
25466 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25467 done; \
25468 (cd $(TARGET_SUBDIR)/examples && \
25469 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25470 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25471 "RANLIB=$${RANLIB}" \
25472 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 25473 maintainer-clean) \
295f4e42 25474 || exit 1
4977bab6 25475
60975492 25476@endif target-examples
4977bab6 25477
295f4e42
NN
25478
25479.PHONY: configure-target-libffi maybe-configure-target-libffi
25480maybe-configure-target-libffi:
60975492
PB
25481@if target-libffi
25482maybe-configure-target-libffi: configure-target-libffi
4977bab6 25483
88b5521b 25484# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
295f4e42
NN
25485$(TARGET_SUBDIR)/libffi/multilib.out: multilib.out
25486 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi ; \
25487 rm -f $(TARGET_SUBDIR)/libffi/Makefile || : ; \
25488 cp multilib.out $(TARGET_SUBDIR)/libffi/multilib.out
4977bab6 25489
295f4e42
NN
25490configure-target-libffi: $(TARGET_SUBDIR)/libffi/multilib.out
25491 @test ! -f $(TARGET_SUBDIR)/libffi/Makefile || exit 0; \
25492 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi ; \
8c90b13a
L
25493 r=`${PWD_COMMAND}`; export r; \
25494 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 25495 $(SET_LIB_PATH) \
4fc4dd12 25496 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
25497 echo Configuring in $(TARGET_SUBDIR)/libffi; \
25498 cd "$(TARGET_SUBDIR)/libffi" || exit 1; \
3aa83176
NN
25499 case $(srcdir) in \
25500 /* | [A-Za-z]:[\\/]*) \
25501 topdir=$(srcdir) ;; \
25502 *) \
25503 case "$(TARGET_SUBDIR)" in \
4977bab6
ZW
25504 .) topdir="../$(srcdir)" ;; \
25505 *) topdir="../../$(srcdir)" ;; \
3aa83176
NN
25506 esac ;; \
25507 esac; \
295f4e42
NN
25508 srcdiroption="--srcdir=$${topdir}/libffi"; \
25509 libsrcdir="$$s/libffi"; \
3aa83176
NN
25510 rm -f no-such-file || : ; \
25511 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25512 $(TARGET_CONFIGARGS) $${srcdiroption} \
a52a0a7f 25513 --with-target-subdir="$(TARGET_SUBDIR)" \
3aa83176 25514 || exit 1
60975492 25515@endif target-libffi
4977bab6 25516
295f4e42
NN
25517.PHONY: all-target-libffi maybe-all-target-libffi
25518maybe-all-target-libffi:
60975492 25519@if target-libffi
7c27e184 25520TARGET-target-libffi=all
60975492 25521maybe-all-target-libffi: all-target-libffi
295f4e42 25522all-target-libffi: configure-target-libffi
8c90b13a
L
25523 @r=`${PWD_COMMAND}`; export r; \
25524 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 25525 $(SET_LIB_PATH) \
4fc4dd12 25526 $(NORMAL_TARGET_EXPORTS) \
295f4e42 25527 (cd $(TARGET_SUBDIR)/libffi && \
7c27e184 25528 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libffi))
60975492 25529@endif target-libffi
4977bab6 25530
295f4e42
NN
25531.PHONY: check-target-libffi maybe-check-target-libffi
25532maybe-check-target-libffi:
60975492
PB
25533@if target-libffi
25534maybe-check-target-libffi: check-target-libffi
7e2dbcef 25535
295f4e42 25536check-target-libffi:
8c90b13a
L
25537 @r=`${PWD_COMMAND}`; export r; \
25538 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 25539 $(SET_LIB_PATH) \
4fc4dd12 25540 $(NORMAL_TARGET_EXPORTS) \
295f4e42 25541 (cd $(TARGET_SUBDIR)/libffi && \
a52a0a7f 25542 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4977bab6 25543
60975492 25544@endif target-libffi
4977bab6 25545
295f4e42
NN
25546.PHONY: install-target-libffi maybe-install-target-libffi
25547maybe-install-target-libffi:
60975492
PB
25548@if target-libffi
25549maybe-install-target-libffi: install-target-libffi
7e2dbcef 25550
295f4e42 25551install-target-libffi: installdirs
8c90b13a
L
25552 @r=`${PWD_COMMAND}`; export r; \
25553 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 25554 $(SET_LIB_PATH) \
4fc4dd12 25555 $(NORMAL_TARGET_EXPORTS) \
295f4e42 25556 (cd $(TARGET_SUBDIR)/libffi && \
a52a0a7f 25557 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4977bab6 25558
60975492 25559@endif target-libffi
4977bab6 25560
295f4e42
NN
25561# Other targets (info, dvi, etc.)
25562
25563.PHONY: maybe-info-target-libffi info-target-libffi
25564maybe-info-target-libffi:
60975492
PB
25565@if target-libffi
25566maybe-info-target-libffi: info-target-libffi
295f4e42
NN
25567
25568info-target-libffi: \
25569 configure-target-libffi
25570 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
25571 r=`${PWD_COMMAND}`; export r; \
25572 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25573 $(SET_LIB_PATH) \
4fc4dd12 25574 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
25575 echo "Doing info in $(TARGET_SUBDIR)/libffi" ; \
25576 for flag in $(EXTRA_TARGET_FLAGS); do \
25577 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25578 done; \
25579 (cd $(TARGET_SUBDIR)/libffi && \
25580 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25581 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25582 "RANLIB=$${RANLIB}" \
25583 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 25584 info) \
295f4e42
NN
25585 || exit 1
25586
60975492 25587@endif target-libffi
295f4e42
NN
25588
25589.PHONY: maybe-dvi-target-libffi dvi-target-libffi
25590maybe-dvi-target-libffi:
60975492
PB
25591@if target-libffi
25592maybe-dvi-target-libffi: dvi-target-libffi
295f4e42
NN
25593
25594dvi-target-libffi: \
25595 configure-target-libffi
25596 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
25597 r=`${PWD_COMMAND}`; export r; \
25598 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25599 $(SET_LIB_PATH) \
4fc4dd12 25600 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
25601 echo "Doing dvi in $(TARGET_SUBDIR)/libffi" ; \
25602 for flag in $(EXTRA_TARGET_FLAGS); do \
25603 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25604 done; \
25605 (cd $(TARGET_SUBDIR)/libffi && \
25606 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25607 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25608 "RANLIB=$${RANLIB}" \
25609 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 25610 dvi) \
295f4e42
NN
25611 || exit 1
25612
60975492 25613@endif target-libffi
295f4e42
NN
25614
25615.PHONY: maybe-TAGS-target-libffi TAGS-target-libffi
25616maybe-TAGS-target-libffi:
60975492
PB
25617@if target-libffi
25618maybe-TAGS-target-libffi: TAGS-target-libffi
295f4e42
NN
25619
25620TAGS-target-libffi: \
25621 configure-target-libffi
25622 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
25623 r=`${PWD_COMMAND}`; export r; \
25624 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25625 $(SET_LIB_PATH) \
4fc4dd12 25626 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
25627 echo "Doing TAGS in $(TARGET_SUBDIR)/libffi" ; \
25628 for flag in $(EXTRA_TARGET_FLAGS); do \
25629 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25630 done; \
25631 (cd $(TARGET_SUBDIR)/libffi && \
25632 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25633 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25634 "RANLIB=$${RANLIB}" \
25635 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 25636 TAGS) \
295f4e42
NN
25637 || exit 1
25638
60975492 25639@endif target-libffi
295f4e42
NN
25640
25641.PHONY: maybe-install-info-target-libffi install-info-target-libffi
25642maybe-install-info-target-libffi:
60975492
PB
25643@if target-libffi
25644maybe-install-info-target-libffi: install-info-target-libffi
295f4e42
NN
25645
25646install-info-target-libffi: \
25647 configure-target-libffi \
25648 info-target-libffi
25649 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
25650 r=`${PWD_COMMAND}`; export r; \
25651 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25652 $(SET_LIB_PATH) \
4fc4dd12 25653 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
25654 echo "Doing install-info in $(TARGET_SUBDIR)/libffi" ; \
25655 for flag in $(EXTRA_TARGET_FLAGS); do \
25656 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25657 done; \
25658 (cd $(TARGET_SUBDIR)/libffi && \
25659 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25660 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25661 "RANLIB=$${RANLIB}" \
25662 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 25663 install-info) \
295f4e42
NN
25664 || exit 1
25665
60975492 25666@endif target-libffi
295f4e42
NN
25667
25668.PHONY: maybe-installcheck-target-libffi installcheck-target-libffi
25669maybe-installcheck-target-libffi:
60975492
PB
25670@if target-libffi
25671maybe-installcheck-target-libffi: installcheck-target-libffi
295f4e42
NN
25672
25673installcheck-target-libffi: \
25674 configure-target-libffi
25675 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
25676 r=`${PWD_COMMAND}`; export r; \
25677 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25678 $(SET_LIB_PATH) \
4fc4dd12 25679 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
25680 echo "Doing installcheck in $(TARGET_SUBDIR)/libffi" ; \
25681 for flag in $(EXTRA_TARGET_FLAGS); do \
25682 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25683 done; \
25684 (cd $(TARGET_SUBDIR)/libffi && \
25685 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25686 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25687 "RANLIB=$${RANLIB}" \
25688 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 25689 installcheck) \
295f4e42
NN
25690 || exit 1
25691
60975492 25692@endif target-libffi
295f4e42
NN
25693
25694.PHONY: maybe-mostlyclean-target-libffi mostlyclean-target-libffi
25695maybe-mostlyclean-target-libffi:
60975492
PB
25696@if target-libffi
25697maybe-mostlyclean-target-libffi: mostlyclean-target-libffi
295f4e42
NN
25698
25699mostlyclean-target-libffi:
25700 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
25701 r=`${PWD_COMMAND}`; export r; \
25702 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25703 $(SET_LIB_PATH) \
4fc4dd12 25704 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
25705 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libffi" ; \
25706 for flag in $(EXTRA_TARGET_FLAGS); do \
25707 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25708 done; \
25709 (cd $(TARGET_SUBDIR)/libffi && \
25710 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25711 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25712 "RANLIB=$${RANLIB}" \
25713 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 25714 mostlyclean) \
295f4e42
NN
25715 || exit 1
25716
60975492 25717@endif target-libffi
295f4e42
NN
25718
25719.PHONY: maybe-clean-target-libffi clean-target-libffi
25720maybe-clean-target-libffi:
60975492
PB
25721@if target-libffi
25722maybe-clean-target-libffi: clean-target-libffi
295f4e42
NN
25723
25724clean-target-libffi:
25725 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
25726 r=`${PWD_COMMAND}`; export r; \
25727 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25728 $(SET_LIB_PATH) \
4fc4dd12 25729 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
25730 echo "Doing clean in $(TARGET_SUBDIR)/libffi" ; \
25731 for flag in $(EXTRA_TARGET_FLAGS); do \
25732 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25733 done; \
25734 (cd $(TARGET_SUBDIR)/libffi && \
25735 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25736 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25737 "RANLIB=$${RANLIB}" \
25738 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 25739 clean) \
295f4e42
NN
25740 || exit 1
25741
60975492 25742@endif target-libffi
295f4e42
NN
25743
25744.PHONY: maybe-distclean-target-libffi distclean-target-libffi
25745maybe-distclean-target-libffi:
60975492
PB
25746@if target-libffi
25747maybe-distclean-target-libffi: distclean-target-libffi
295f4e42
NN
25748
25749distclean-target-libffi:
25750 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
25751 r=`${PWD_COMMAND}`; export r; \
25752 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25753 $(SET_LIB_PATH) \
4fc4dd12 25754 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
25755 echo "Doing distclean in $(TARGET_SUBDIR)/libffi" ; \
25756 for flag in $(EXTRA_TARGET_FLAGS); do \
25757 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25758 done; \
25759 (cd $(TARGET_SUBDIR)/libffi && \
25760 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25761 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25762 "RANLIB=$${RANLIB}" \
25763 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 25764 distclean) \
295f4e42
NN
25765 || exit 1
25766
60975492 25767@endif target-libffi
295f4e42
NN
25768
25769.PHONY: maybe-maintainer-clean-target-libffi maintainer-clean-target-libffi
25770maybe-maintainer-clean-target-libffi:
60975492
PB
25771@if target-libffi
25772maybe-maintainer-clean-target-libffi: maintainer-clean-target-libffi
295f4e42
NN
25773
25774maintainer-clean-target-libffi:
25775 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
25776 r=`${PWD_COMMAND}`; export r; \
25777 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25778 $(SET_LIB_PATH) \
4fc4dd12 25779 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
25780 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libffi" ; \
25781 for flag in $(EXTRA_TARGET_FLAGS); do \
25782 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25783 done; \
25784 (cd $(TARGET_SUBDIR)/libffi && \
25785 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25786 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25787 "RANLIB=$${RANLIB}" \
25788 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 25789 maintainer-clean) \
295f4e42
NN
25790 || exit 1
25791
60975492 25792@endif target-libffi
295f4e42
NN
25793
25794
25795.PHONY: configure-target-libjava maybe-configure-target-libjava
25796maybe-configure-target-libjava:
60975492
PB
25797@if target-libjava
25798maybe-configure-target-libjava: configure-target-libjava
4977bab6 25799
88b5521b 25800# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
295f4e42
NN
25801$(TARGET_SUBDIR)/libjava/multilib.out: multilib.out
25802 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libjava ; \
25803 rm -f $(TARGET_SUBDIR)/libjava/Makefile || : ; \
25804 cp multilib.out $(TARGET_SUBDIR)/libjava/multilib.out
4977bab6 25805
295f4e42
NN
25806configure-target-libjava: $(TARGET_SUBDIR)/libjava/multilib.out
25807 @test ! -f $(TARGET_SUBDIR)/libjava/Makefile || exit 0; \
25808 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libjava ; \
8c90b13a
L
25809 r=`${PWD_COMMAND}`; export r; \
25810 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 25811 $(SET_LIB_PATH) \
4fc4dd12 25812 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
25813 echo Configuring in $(TARGET_SUBDIR)/libjava; \
25814 cd "$(TARGET_SUBDIR)/libjava" || exit 1; \
3aa83176
NN
25815 case $(srcdir) in \
25816 /* | [A-Za-z]:[\\/]*) \
25817 topdir=$(srcdir) ;; \
25818 *) \
25819 case "$(TARGET_SUBDIR)" in \
4977bab6
ZW
25820 .) topdir="../$(srcdir)" ;; \
25821 *) topdir="../../$(srcdir)" ;; \
3aa83176
NN
25822 esac ;; \
25823 esac; \
295f4e42
NN
25824 srcdiroption="--srcdir=$${topdir}/libjava"; \
25825 libsrcdir="$$s/libjava"; \
3aa83176
NN
25826 rm -f no-such-file || : ; \
25827 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25828 $(TARGET_CONFIGARGS) $${srcdiroption} \
a52a0a7f 25829 --with-target-subdir="$(TARGET_SUBDIR)" \
3aa83176 25830 || exit 1
60975492 25831@endif target-libjava
4977bab6 25832
295f4e42
NN
25833.PHONY: all-target-libjava maybe-all-target-libjava
25834maybe-all-target-libjava:
60975492 25835@if target-libjava
7c27e184 25836TARGET-target-libjava=all
60975492 25837maybe-all-target-libjava: all-target-libjava
295f4e42 25838all-target-libjava: configure-target-libjava
8c90b13a
L
25839 @r=`${PWD_COMMAND}`; export r; \
25840 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 25841 $(SET_LIB_PATH) \
4fc4dd12 25842 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42 25843 (cd $(TARGET_SUBDIR)/libjava && \
7c27e184 25844 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' $(TARGET-target-libjava))
60975492 25845@endif target-libjava
4977bab6 25846
295f4e42
NN
25847.PHONY: check-target-libjava maybe-check-target-libjava
25848maybe-check-target-libjava:
60975492
PB
25849@if target-libjava
25850maybe-check-target-libjava: check-target-libjava
7e2dbcef 25851
295f4e42
NN
25852check-target-libjava:
25853 @r=`${PWD_COMMAND}`; export r; \
25854 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25855 $(SET_LIB_PATH) \
4fc4dd12 25856 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42 25857 (cd $(TARGET_SUBDIR)/libjava && \
a52a0a7f 25858 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
4977bab6 25859
60975492 25860@endif target-libjava
4977bab6 25861
295f4e42
NN
25862.PHONY: install-target-libjava maybe-install-target-libjava
25863maybe-install-target-libjava:
60975492
PB
25864@if target-libjava
25865maybe-install-target-libjava: install-target-libjava
7e2dbcef 25866
295f4e42 25867install-target-libjava: installdirs
8c90b13a
L
25868 @r=`${PWD_COMMAND}`; export r; \
25869 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 25870 $(SET_LIB_PATH) \
4fc4dd12 25871 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42 25872 (cd $(TARGET_SUBDIR)/libjava && \
a52a0a7f 25873 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4977bab6 25874
60975492 25875@endif target-libjava
4977bab6 25876
295f4e42 25877# Other targets (info, dvi, etc.)
4977bab6 25878
295f4e42
NN
25879.PHONY: maybe-info-target-libjava info-target-libjava
25880maybe-info-target-libjava:
60975492
PB
25881@if target-libjava
25882maybe-info-target-libjava: info-target-libjava
4977bab6 25883
295f4e42
NN
25884info-target-libjava: \
25885 configure-target-libjava
25886 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
8c90b13a
L
25887 r=`${PWD_COMMAND}`; export r; \
25888 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 25889 $(SET_LIB_PATH) \
4fc4dd12 25890 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
25891 echo "Doing info in $(TARGET_SUBDIR)/libjava" ; \
25892 for flag in $(EXTRA_TARGET_FLAGS); do \
25893 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25894 done; \
25895 (cd $(TARGET_SUBDIR)/libjava && \
25896 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25897 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25898 "RANLIB=$${RANLIB}" \
25899 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 25900 info) \
3aa83176 25901 || exit 1
4977bab6 25902
60975492 25903@endif target-libjava
295f4e42
NN
25904
25905.PHONY: maybe-dvi-target-libjava dvi-target-libjava
25906maybe-dvi-target-libjava:
60975492
PB
25907@if target-libjava
25908maybe-dvi-target-libjava: dvi-target-libjava
295f4e42
NN
25909
25910dvi-target-libjava: \
25911 configure-target-libjava
25912 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
25913 r=`${PWD_COMMAND}`; export r; \
8c90b13a 25914 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 25915 $(SET_LIB_PATH) \
4fc4dd12 25916 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
25917 echo "Doing dvi in $(TARGET_SUBDIR)/libjava" ; \
25918 for flag in $(EXTRA_TARGET_FLAGS); do \
25919 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25920 done; \
25921 (cd $(TARGET_SUBDIR)/libjava && \
25922 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25923 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25924 "RANLIB=$${RANLIB}" \
25925 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 25926 dvi) \
295f4e42 25927 || exit 1
4977bab6 25928
60975492 25929@endif target-libjava
7e2dbcef 25930
295f4e42
NN
25931.PHONY: maybe-TAGS-target-libjava TAGS-target-libjava
25932maybe-TAGS-target-libjava:
60975492
PB
25933@if target-libjava
25934maybe-TAGS-target-libjava: TAGS-target-libjava
295f4e42
NN
25935
25936TAGS-target-libjava: \
25937 configure-target-libjava
25938 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
25939 r=`${PWD_COMMAND}`; export r; \
8c90b13a 25940 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 25941 $(SET_LIB_PATH) \
4fc4dd12 25942 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
25943 echo "Doing TAGS in $(TARGET_SUBDIR)/libjava" ; \
25944 for flag in $(EXTRA_TARGET_FLAGS); do \
25945 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25946 done; \
25947 (cd $(TARGET_SUBDIR)/libjava && \
25948 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25949 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25950 "RANLIB=$${RANLIB}" \
25951 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 25952 TAGS) \
295f4e42 25953 || exit 1
4977bab6 25954
60975492 25955@endif target-libjava
4977bab6 25956
295f4e42
NN
25957.PHONY: maybe-install-info-target-libjava install-info-target-libjava
25958maybe-install-info-target-libjava:
60975492
PB
25959@if target-libjava
25960maybe-install-info-target-libjava: install-info-target-libjava
7e2dbcef 25961
295f4e42
NN
25962install-info-target-libjava: \
25963 configure-target-libjava \
25964 info-target-libjava
25965 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
25966 r=`${PWD_COMMAND}`; export r; \
8c90b13a 25967 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 25968 $(SET_LIB_PATH) \
4fc4dd12 25969 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
25970 echo "Doing install-info in $(TARGET_SUBDIR)/libjava" ; \
25971 for flag in $(EXTRA_TARGET_FLAGS); do \
25972 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25973 done; \
25974 (cd $(TARGET_SUBDIR)/libjava && \
25975 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25976 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25977 "RANLIB=$${RANLIB}" \
25978 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 25979 install-info) \
295f4e42 25980 || exit 1
4977bab6 25981
60975492 25982@endif target-libjava
4977bab6 25983
295f4e42
NN
25984.PHONY: maybe-installcheck-target-libjava installcheck-target-libjava
25985maybe-installcheck-target-libjava:
60975492
PB
25986@if target-libjava
25987maybe-installcheck-target-libjava: installcheck-target-libjava
4977bab6 25988
295f4e42
NN
25989installcheck-target-libjava: \
25990 configure-target-libjava
25991 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
25992 r=`${PWD_COMMAND}`; export r; \
25993 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25994 $(SET_LIB_PATH) \
4fc4dd12 25995 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
25996 echo "Doing installcheck in $(TARGET_SUBDIR)/libjava" ; \
25997 for flag in $(EXTRA_TARGET_FLAGS); do \
25998 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25999 done; \
26000 (cd $(TARGET_SUBDIR)/libjava && \
26001 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26002 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26003 "RANLIB=$${RANLIB}" \
26004 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 26005 installcheck) \
295f4e42 26006 || exit 1
4977bab6 26007
60975492 26008@endif target-libjava
295f4e42
NN
26009
26010.PHONY: maybe-mostlyclean-target-libjava mostlyclean-target-libjava
26011maybe-mostlyclean-target-libjava:
60975492
PB
26012@if target-libjava
26013maybe-mostlyclean-target-libjava: mostlyclean-target-libjava
295f4e42
NN
26014
26015mostlyclean-target-libjava:
26016 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
26017 r=`${PWD_COMMAND}`; export r; \
26018 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26019 $(SET_LIB_PATH) \
4fc4dd12 26020 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
26021 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libjava" ; \
26022 for flag in $(EXTRA_TARGET_FLAGS); do \
26023 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26024 done; \
26025 (cd $(TARGET_SUBDIR)/libjava && \
26026 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26027 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26028 "RANLIB=$${RANLIB}" \
26029 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 26030 mostlyclean) \
295f4e42
NN
26031 || exit 1
26032
60975492 26033@endif target-libjava
295f4e42
NN
26034
26035.PHONY: maybe-clean-target-libjava clean-target-libjava
26036maybe-clean-target-libjava:
60975492
PB
26037@if target-libjava
26038maybe-clean-target-libjava: clean-target-libjava
295f4e42
NN
26039
26040clean-target-libjava:
26041 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
8c90b13a
L
26042 r=`${PWD_COMMAND}`; export r; \
26043 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 26044 $(SET_LIB_PATH) \
4fc4dd12 26045 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
26046 echo "Doing clean in $(TARGET_SUBDIR)/libjava" ; \
26047 for flag in $(EXTRA_TARGET_FLAGS); do \
26048 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26049 done; \
26050 (cd $(TARGET_SUBDIR)/libjava && \
26051 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26052 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26053 "RANLIB=$${RANLIB}" \
26054 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 26055 clean) \
3aa83176 26056 || exit 1
4977bab6 26057
60975492 26058@endif target-libjava
4977bab6 26059
295f4e42
NN
26060.PHONY: maybe-distclean-target-libjava distclean-target-libjava
26061maybe-distclean-target-libjava:
60975492
PB
26062@if target-libjava
26063maybe-distclean-target-libjava: distclean-target-libjava
7e2dbcef 26064
295f4e42
NN
26065distclean-target-libjava:
26066 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
26067 r=`${PWD_COMMAND}`; export r; \
26068 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26069 $(SET_LIB_PATH) \
4fc4dd12 26070 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
26071 echo "Doing distclean in $(TARGET_SUBDIR)/libjava" ; \
26072 for flag in $(EXTRA_TARGET_FLAGS); do \
26073 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26074 done; \
26075 (cd $(TARGET_SUBDIR)/libjava && \
26076 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26077 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26078 "RANLIB=$${RANLIB}" \
26079 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 26080 distclean) \
295f4e42 26081 || exit 1
4977bab6 26082
60975492 26083@endif target-libjava
4977bab6 26084
295f4e42
NN
26085.PHONY: maybe-maintainer-clean-target-libjava maintainer-clean-target-libjava
26086maybe-maintainer-clean-target-libjava:
60975492
PB
26087@if target-libjava
26088maybe-maintainer-clean-target-libjava: maintainer-clean-target-libjava
7e2dbcef 26089
295f4e42
NN
26090maintainer-clean-target-libjava:
26091 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
26092 r=`${PWD_COMMAND}`; export r; \
8c90b13a 26093 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 26094 $(SET_LIB_PATH) \
4fc4dd12 26095 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
26096 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libjava" ; \
26097 for flag in $(EXTRA_TARGET_FLAGS); do \
26098 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26099 done; \
26100 (cd $(TARGET_SUBDIR)/libjava && \
26101 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26102 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26103 "RANLIB=$${RANLIB}" \
26104 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 26105 maintainer-clean) \
295f4e42 26106 || exit 1
4977bab6 26107
60975492 26108@endif target-libjava
4977bab6 26109
295f4e42
NN
26110
26111.PHONY: configure-target-zlib maybe-configure-target-zlib
26112maybe-configure-target-zlib:
60975492
PB
26113@if target-zlib
26114maybe-configure-target-zlib: configure-target-zlib
4977bab6 26115
88b5521b 26116# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
295f4e42
NN
26117$(TARGET_SUBDIR)/zlib/multilib.out: multilib.out
26118 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib ; \
26119 rm -f $(TARGET_SUBDIR)/zlib/Makefile || : ; \
26120 cp multilib.out $(TARGET_SUBDIR)/zlib/multilib.out
4977bab6 26121
295f4e42
NN
26122configure-target-zlib: $(TARGET_SUBDIR)/zlib/multilib.out
26123 @test ! -f $(TARGET_SUBDIR)/zlib/Makefile || exit 0; \
26124 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib ; \
8c90b13a
L
26125 r=`${PWD_COMMAND}`; export r; \
26126 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 26127 $(SET_LIB_PATH) \
4fc4dd12 26128 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
26129 echo Configuring in $(TARGET_SUBDIR)/zlib; \
26130 cd "$(TARGET_SUBDIR)/zlib" || exit 1; \
3aa83176
NN
26131 case $(srcdir) in \
26132 /* | [A-Za-z]:[\\/]*) \
26133 topdir=$(srcdir) ;; \
26134 *) \
26135 case "$(TARGET_SUBDIR)" in \
4977bab6
ZW
26136 .) topdir="../$(srcdir)" ;; \
26137 *) topdir="../../$(srcdir)" ;; \
3aa83176
NN
26138 esac ;; \
26139 esac; \
295f4e42
NN
26140 if [ "$(srcdir)" = "." ] ; then \
26141 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
26142 if $(SHELL) $$s/symlink-tree $${topdir}/zlib "no-such-file" ; then \
26143 if [ -f Makefile ]; then \
26144 if $(MAKE) distclean; then \
26145 true; \
26146 else \
26147 exit 1; \
26148 fi; \
26149 else \
26150 true; \
26151 fi; \
26152 else \
26153 exit 1; \
26154 fi; \
26155 else \
26156 true; \
26157 fi; \
26158 srcdiroption="--srcdir=."; \
26159 libsrcdir="."; \
26160 else \
26161 srcdiroption="--srcdir=$${topdir}/zlib"; \
26162 libsrcdir="$$s/zlib"; \
26163 fi; \
3aa83176
NN
26164 rm -f no-such-file || : ; \
26165 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
26166 $(TARGET_CONFIGARGS) $${srcdiroption} \
a52a0a7f 26167 --with-target-subdir="$(TARGET_SUBDIR)" \
3aa83176 26168 || exit 1
60975492 26169@endif target-zlib
4977bab6 26170
295f4e42
NN
26171.PHONY: all-target-zlib maybe-all-target-zlib
26172maybe-all-target-zlib:
60975492 26173@if target-zlib
7c27e184 26174TARGET-target-zlib=all
60975492 26175maybe-all-target-zlib: all-target-zlib
295f4e42 26176all-target-zlib: configure-target-zlib
8c90b13a
L
26177 @r=`${PWD_COMMAND}`; export r; \
26178 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 26179 $(SET_LIB_PATH) \
4fc4dd12 26180 $(NORMAL_TARGET_EXPORTS) \
295f4e42 26181 (cd $(TARGET_SUBDIR)/zlib && \
7c27e184 26182 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-zlib))
60975492 26183@endif target-zlib
4977bab6 26184
295f4e42
NN
26185.PHONY: check-target-zlib maybe-check-target-zlib
26186maybe-check-target-zlib:
60975492
PB
26187@if target-zlib
26188maybe-check-target-zlib: check-target-zlib
7e2dbcef 26189
295f4e42 26190check-target-zlib:
8c90b13a
L
26191 @r=`${PWD_COMMAND}`; export r; \
26192 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 26193 $(SET_LIB_PATH) \
4fc4dd12 26194 $(NORMAL_TARGET_EXPORTS) \
295f4e42 26195 (cd $(TARGET_SUBDIR)/zlib && \
a52a0a7f 26196 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4977bab6 26197
60975492 26198@endif target-zlib
4977bab6 26199
295f4e42
NN
26200.PHONY: install-target-zlib maybe-install-target-zlib
26201maybe-install-target-zlib:
60975492
PB
26202@if target-zlib
26203maybe-install-target-zlib: install-target-zlib
7e2dbcef 26204
295f4e42 26205install-target-zlib: installdirs
8c90b13a
L
26206 @r=`${PWD_COMMAND}`; export r; \
26207 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 26208 $(SET_LIB_PATH) \
4fc4dd12 26209 $(NORMAL_TARGET_EXPORTS) \
295f4e42 26210 (cd $(TARGET_SUBDIR)/zlib && \
a52a0a7f 26211 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4977bab6 26212
60975492 26213@endif target-zlib
4977bab6 26214
295f4e42 26215# Other targets (info, dvi, etc.)
4977bab6 26216
295f4e42
NN
26217.PHONY: maybe-info-target-zlib info-target-zlib
26218maybe-info-target-zlib:
60975492
PB
26219@if target-zlib
26220maybe-info-target-zlib: info-target-zlib
4977bab6 26221
295f4e42
NN
26222info-target-zlib: \
26223 configure-target-zlib
26224 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
8c90b13a
L
26225 r=`${PWD_COMMAND}`; export r; \
26226 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 26227 $(SET_LIB_PATH) \
4fc4dd12 26228 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
26229 echo "Doing info in $(TARGET_SUBDIR)/zlib" ; \
26230 for flag in $(EXTRA_TARGET_FLAGS); do \
26231 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26232 done; \
26233 (cd $(TARGET_SUBDIR)/zlib && \
26234 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26235 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26236 "RANLIB=$${RANLIB}" \
26237 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 26238 info) \
3aa83176 26239 || exit 1
4977bab6 26240
60975492 26241@endif target-zlib
4977bab6 26242
295f4e42
NN
26243.PHONY: maybe-dvi-target-zlib dvi-target-zlib
26244maybe-dvi-target-zlib:
60975492
PB
26245@if target-zlib
26246maybe-dvi-target-zlib: dvi-target-zlib
7e2dbcef 26247
295f4e42
NN
26248dvi-target-zlib: \
26249 configure-target-zlib
26250 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
26251 r=`${PWD_COMMAND}`; export r; \
8c90b13a 26252 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 26253 $(SET_LIB_PATH) \
4fc4dd12 26254 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
26255 echo "Doing dvi in $(TARGET_SUBDIR)/zlib" ; \
26256 for flag in $(EXTRA_TARGET_FLAGS); do \
26257 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26258 done; \
26259 (cd $(TARGET_SUBDIR)/zlib && \
26260 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26261 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26262 "RANLIB=$${RANLIB}" \
26263 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 26264 dvi) \
295f4e42 26265 || exit 1
4977bab6 26266
60975492 26267@endif target-zlib
4977bab6 26268
295f4e42
NN
26269.PHONY: maybe-TAGS-target-zlib TAGS-target-zlib
26270maybe-TAGS-target-zlib:
60975492
PB
26271@if target-zlib
26272maybe-TAGS-target-zlib: TAGS-target-zlib
7e2dbcef 26273
295f4e42
NN
26274TAGS-target-zlib: \
26275 configure-target-zlib
26276 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
26277 r=`${PWD_COMMAND}`; export r; \
8c90b13a 26278 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 26279 $(SET_LIB_PATH) \
4fc4dd12 26280 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
26281 echo "Doing TAGS in $(TARGET_SUBDIR)/zlib" ; \
26282 for flag in $(EXTRA_TARGET_FLAGS); do \
26283 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26284 done; \
26285 (cd $(TARGET_SUBDIR)/zlib && \
26286 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26287 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26288 "RANLIB=$${RANLIB}" \
26289 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 26290 TAGS) \
295f4e42 26291 || exit 1
4977bab6 26292
60975492 26293@endif target-zlib
4977bab6 26294
295f4e42
NN
26295.PHONY: maybe-install-info-target-zlib install-info-target-zlib
26296maybe-install-info-target-zlib:
60975492
PB
26297@if target-zlib
26298maybe-install-info-target-zlib: install-info-target-zlib
4977bab6 26299
295f4e42
NN
26300install-info-target-zlib: \
26301 configure-target-zlib \
26302 info-target-zlib
26303 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
8c90b13a
L
26304 r=`${PWD_COMMAND}`; export r; \
26305 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 26306 $(SET_LIB_PATH) \
4fc4dd12 26307 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
26308 echo "Doing install-info in $(TARGET_SUBDIR)/zlib" ; \
26309 for flag in $(EXTRA_TARGET_FLAGS); do \
26310 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26311 done; \
26312 (cd $(TARGET_SUBDIR)/zlib && \
26313 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26314 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26315 "RANLIB=$${RANLIB}" \
26316 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 26317 install-info) \
3aa83176 26318 || exit 1
4977bab6 26319
60975492 26320@endif target-zlib
7e2dbcef 26321
295f4e42
NN
26322.PHONY: maybe-installcheck-target-zlib installcheck-target-zlib
26323maybe-installcheck-target-zlib:
60975492
PB
26324@if target-zlib
26325maybe-installcheck-target-zlib: installcheck-target-zlib
4977bab6 26326
295f4e42
NN
26327installcheck-target-zlib: \
26328 configure-target-zlib
26329 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
26330 r=`${PWD_COMMAND}`; export r; \
26331 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26332 $(SET_LIB_PATH) \
4fc4dd12 26333 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
26334 echo "Doing installcheck in $(TARGET_SUBDIR)/zlib" ; \
26335 for flag in $(EXTRA_TARGET_FLAGS); do \
26336 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26337 done; \
26338 (cd $(TARGET_SUBDIR)/zlib && \
26339 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26340 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26341 "RANLIB=$${RANLIB}" \
26342 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 26343 installcheck) \
295f4e42 26344 || exit 1
4977bab6 26345
60975492 26346@endif target-zlib
7e2dbcef 26347
295f4e42
NN
26348.PHONY: maybe-mostlyclean-target-zlib mostlyclean-target-zlib
26349maybe-mostlyclean-target-zlib:
60975492
PB
26350@if target-zlib
26351maybe-mostlyclean-target-zlib: mostlyclean-target-zlib
4977bab6 26352
295f4e42
NN
26353mostlyclean-target-zlib:
26354 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
26355 r=`${PWD_COMMAND}`; export r; \
26356 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26357 $(SET_LIB_PATH) \
4fc4dd12 26358 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
26359 echo "Doing mostlyclean in $(TARGET_SUBDIR)/zlib" ; \
26360 for flag in $(EXTRA_TARGET_FLAGS); do \
26361 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26362 done; \
26363 (cd $(TARGET_SUBDIR)/zlib && \
26364 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26365 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26366 "RANLIB=$${RANLIB}" \
26367 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 26368 mostlyclean) \
295f4e42 26369 || exit 1
4977bab6 26370
60975492 26371@endif target-zlib
4977bab6 26372
295f4e42
NN
26373.PHONY: maybe-clean-target-zlib clean-target-zlib
26374maybe-clean-target-zlib:
60975492
PB
26375@if target-zlib
26376maybe-clean-target-zlib: clean-target-zlib
4977bab6 26377
295f4e42
NN
26378clean-target-zlib:
26379 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
8c90b13a
L
26380 r=`${PWD_COMMAND}`; export r; \
26381 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 26382 $(SET_LIB_PATH) \
4fc4dd12 26383 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
26384 echo "Doing clean in $(TARGET_SUBDIR)/zlib" ; \
26385 for flag in $(EXTRA_TARGET_FLAGS); do \
26386 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26387 done; \
26388 (cd $(TARGET_SUBDIR)/zlib && \
26389 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26390 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26391 "RANLIB=$${RANLIB}" \
26392 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 26393 clean) \
3aa83176 26394 || exit 1
4977bab6 26395
60975492 26396@endif target-zlib
4977bab6 26397
295f4e42
NN
26398.PHONY: maybe-distclean-target-zlib distclean-target-zlib
26399maybe-distclean-target-zlib:
60975492
PB
26400@if target-zlib
26401maybe-distclean-target-zlib: distclean-target-zlib
7e2dbcef 26402
295f4e42
NN
26403distclean-target-zlib:
26404 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
26405 r=`${PWD_COMMAND}`; export r; \
8c90b13a 26406 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 26407 $(SET_LIB_PATH) \
4fc4dd12 26408 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
26409 echo "Doing distclean in $(TARGET_SUBDIR)/zlib" ; \
26410 for flag in $(EXTRA_TARGET_FLAGS); do \
26411 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26412 done; \
26413 (cd $(TARGET_SUBDIR)/zlib && \
26414 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26415 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26416 "RANLIB=$${RANLIB}" \
26417 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 26418 distclean) \
295f4e42 26419 || exit 1
4977bab6 26420
60975492 26421@endif target-zlib
4977bab6 26422
295f4e42
NN
26423.PHONY: maybe-maintainer-clean-target-zlib maintainer-clean-target-zlib
26424maybe-maintainer-clean-target-zlib:
60975492
PB
26425@if target-zlib
26426maybe-maintainer-clean-target-zlib: maintainer-clean-target-zlib
7e2dbcef 26427
295f4e42
NN
26428maintainer-clean-target-zlib:
26429 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
26430 r=`${PWD_COMMAND}`; export r; \
8c90b13a 26431 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 26432 $(SET_LIB_PATH) \
4fc4dd12 26433 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
26434 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/zlib" ; \
26435 for flag in $(EXTRA_TARGET_FLAGS); do \
26436 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26437 done; \
26438 (cd $(TARGET_SUBDIR)/zlib && \
26439 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26440 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26441 "RANLIB=$${RANLIB}" \
26442 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 26443 maintainer-clean) \
295f4e42 26444 || exit 1
4977bab6 26445
60975492 26446@endif target-zlib
4977bab6 26447
4977bab6 26448
295f4e42
NN
26449.PHONY: configure-target-boehm-gc maybe-configure-target-boehm-gc
26450maybe-configure-target-boehm-gc:
60975492
PB
26451@if target-boehm-gc
26452maybe-configure-target-boehm-gc: configure-target-boehm-gc
295f4e42
NN
26453
26454# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
26455$(TARGET_SUBDIR)/boehm-gc/multilib.out: multilib.out
26456 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/boehm-gc ; \
26457 rm -f $(TARGET_SUBDIR)/boehm-gc/Makefile || : ; \
26458 cp multilib.out $(TARGET_SUBDIR)/boehm-gc/multilib.out
4977bab6 26459
295f4e42
NN
26460configure-target-boehm-gc: $(TARGET_SUBDIR)/boehm-gc/multilib.out
26461 @test ! -f $(TARGET_SUBDIR)/boehm-gc/Makefile || exit 0; \
26462 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/boehm-gc ; \
8c90b13a
L
26463 r=`${PWD_COMMAND}`; export r; \
26464 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 26465 $(SET_LIB_PATH) \
4fc4dd12 26466 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
26467 echo Configuring in $(TARGET_SUBDIR)/boehm-gc; \
26468 cd "$(TARGET_SUBDIR)/boehm-gc" || exit 1; \
3aa83176
NN
26469 case $(srcdir) in \
26470 /* | [A-Za-z]:[\\/]*) \
26471 topdir=$(srcdir) ;; \
26472 *) \
26473 case "$(TARGET_SUBDIR)" in \
4977bab6
ZW
26474 .) topdir="../$(srcdir)" ;; \
26475 *) topdir="../../$(srcdir)" ;; \
3aa83176
NN
26476 esac ;; \
26477 esac; \
295f4e42
NN
26478 srcdiroption="--srcdir=$${topdir}/boehm-gc"; \
26479 libsrcdir="$$s/boehm-gc"; \
3aa83176
NN
26480 rm -f no-such-file || : ; \
26481 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
26482 $(TARGET_CONFIGARGS) $${srcdiroption} \
a52a0a7f 26483 --with-target-subdir="$(TARGET_SUBDIR)" \
3aa83176 26484 || exit 1
60975492 26485@endif target-boehm-gc
4977bab6 26486
295f4e42
NN
26487.PHONY: all-target-boehm-gc maybe-all-target-boehm-gc
26488maybe-all-target-boehm-gc:
60975492 26489@if target-boehm-gc
7c27e184 26490TARGET-target-boehm-gc=all
60975492 26491maybe-all-target-boehm-gc: all-target-boehm-gc
295f4e42 26492all-target-boehm-gc: configure-target-boehm-gc
8c90b13a
L
26493 @r=`${PWD_COMMAND}`; export r; \
26494 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 26495 $(SET_LIB_PATH) \
4fc4dd12 26496 $(NORMAL_TARGET_EXPORTS) \
295f4e42 26497 (cd $(TARGET_SUBDIR)/boehm-gc && \
7c27e184 26498 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-boehm-gc))
60975492 26499@endif target-boehm-gc
4977bab6 26500
295f4e42
NN
26501.PHONY: check-target-boehm-gc maybe-check-target-boehm-gc
26502maybe-check-target-boehm-gc:
60975492
PB
26503@if target-boehm-gc
26504maybe-check-target-boehm-gc: check-target-boehm-gc
7e2dbcef 26505
295f4e42 26506check-target-boehm-gc:
8c90b13a
L
26507 @r=`${PWD_COMMAND}`; export r; \
26508 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 26509 $(SET_LIB_PATH) \
4fc4dd12 26510 $(NORMAL_TARGET_EXPORTS) \
295f4e42 26511 (cd $(TARGET_SUBDIR)/boehm-gc && \
a52a0a7f 26512 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4977bab6 26513
60975492 26514@endif target-boehm-gc
4977bab6 26515
295f4e42
NN
26516.PHONY: install-target-boehm-gc maybe-install-target-boehm-gc
26517maybe-install-target-boehm-gc:
60975492
PB
26518@if target-boehm-gc
26519maybe-install-target-boehm-gc: install-target-boehm-gc
7e2dbcef 26520
295f4e42 26521install-target-boehm-gc: installdirs
8c90b13a
L
26522 @r=`${PWD_COMMAND}`; export r; \
26523 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 26524 $(SET_LIB_PATH) \
4fc4dd12 26525 $(NORMAL_TARGET_EXPORTS) \
295f4e42 26526 (cd $(TARGET_SUBDIR)/boehm-gc && \
a52a0a7f 26527 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4977bab6 26528
60975492 26529@endif target-boehm-gc
4977bab6 26530
295f4e42
NN
26531# Other targets (info, dvi, etc.)
26532
26533.PHONY: maybe-info-target-boehm-gc info-target-boehm-gc
26534maybe-info-target-boehm-gc:
60975492
PB
26535@if target-boehm-gc
26536maybe-info-target-boehm-gc: info-target-boehm-gc
295f4e42
NN
26537
26538info-target-boehm-gc: \
26539 configure-target-boehm-gc
26540 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
26541 r=`${PWD_COMMAND}`; export r; \
26542 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26543 $(SET_LIB_PATH) \
4fc4dd12 26544 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
26545 echo "Doing info in $(TARGET_SUBDIR)/boehm-gc" ; \
26546 for flag in $(EXTRA_TARGET_FLAGS); do \
26547 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26548 done; \
26549 (cd $(TARGET_SUBDIR)/boehm-gc && \
26550 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26551 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26552 "RANLIB=$${RANLIB}" \
26553 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 26554 info) \
295f4e42
NN
26555 || exit 1
26556
60975492 26557@endif target-boehm-gc
295f4e42
NN
26558
26559.PHONY: maybe-dvi-target-boehm-gc dvi-target-boehm-gc
26560maybe-dvi-target-boehm-gc:
60975492
PB
26561@if target-boehm-gc
26562maybe-dvi-target-boehm-gc: dvi-target-boehm-gc
295f4e42
NN
26563
26564dvi-target-boehm-gc: \
26565 configure-target-boehm-gc
26566 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
26567 r=`${PWD_COMMAND}`; export r; \
26568 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26569 $(SET_LIB_PATH) \
4fc4dd12 26570 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
26571 echo "Doing dvi in $(TARGET_SUBDIR)/boehm-gc" ; \
26572 for flag in $(EXTRA_TARGET_FLAGS); do \
26573 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26574 done; \
26575 (cd $(TARGET_SUBDIR)/boehm-gc && \
26576 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26577 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26578 "RANLIB=$${RANLIB}" \
26579 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 26580 dvi) \
295f4e42
NN
26581 || exit 1
26582
60975492 26583@endif target-boehm-gc
295f4e42
NN
26584
26585.PHONY: maybe-TAGS-target-boehm-gc TAGS-target-boehm-gc
26586maybe-TAGS-target-boehm-gc:
60975492
PB
26587@if target-boehm-gc
26588maybe-TAGS-target-boehm-gc: TAGS-target-boehm-gc
295f4e42
NN
26589
26590TAGS-target-boehm-gc: \
26591 configure-target-boehm-gc
26592 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
26593 r=`${PWD_COMMAND}`; export r; \
26594 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26595 $(SET_LIB_PATH) \
4fc4dd12 26596 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
26597 echo "Doing TAGS in $(TARGET_SUBDIR)/boehm-gc" ; \
26598 for flag in $(EXTRA_TARGET_FLAGS); do \
26599 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26600 done; \
26601 (cd $(TARGET_SUBDIR)/boehm-gc && \
26602 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26603 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26604 "RANLIB=$${RANLIB}" \
26605 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 26606 TAGS) \
295f4e42
NN
26607 || exit 1
26608
60975492 26609@endif target-boehm-gc
295f4e42
NN
26610
26611.PHONY: maybe-install-info-target-boehm-gc install-info-target-boehm-gc
26612maybe-install-info-target-boehm-gc:
60975492
PB
26613@if target-boehm-gc
26614maybe-install-info-target-boehm-gc: install-info-target-boehm-gc
295f4e42
NN
26615
26616install-info-target-boehm-gc: \
26617 configure-target-boehm-gc \
26618 info-target-boehm-gc
26619 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
26620 r=`${PWD_COMMAND}`; export r; \
26621 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26622 $(SET_LIB_PATH) \
4fc4dd12 26623 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
26624 echo "Doing install-info in $(TARGET_SUBDIR)/boehm-gc" ; \
26625 for flag in $(EXTRA_TARGET_FLAGS); do \
26626 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26627 done; \
26628 (cd $(TARGET_SUBDIR)/boehm-gc && \
26629 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26630 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26631 "RANLIB=$${RANLIB}" \
26632 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 26633 install-info) \
295f4e42
NN
26634 || exit 1
26635
60975492 26636@endif target-boehm-gc
295f4e42
NN
26637
26638.PHONY: maybe-installcheck-target-boehm-gc installcheck-target-boehm-gc
26639maybe-installcheck-target-boehm-gc:
60975492
PB
26640@if target-boehm-gc
26641maybe-installcheck-target-boehm-gc: installcheck-target-boehm-gc
295f4e42
NN
26642
26643installcheck-target-boehm-gc: \
26644 configure-target-boehm-gc
26645 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
26646 r=`${PWD_COMMAND}`; export r; \
26647 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26648 $(SET_LIB_PATH) \
4fc4dd12 26649 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
26650 echo "Doing installcheck in $(TARGET_SUBDIR)/boehm-gc" ; \
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)/boehm-gc && \
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}" \
a52a0a7f 26659 installcheck) \
295f4e42
NN
26660 || exit 1
26661
60975492 26662@endif target-boehm-gc
295f4e42
NN
26663
26664.PHONY: maybe-mostlyclean-target-boehm-gc mostlyclean-target-boehm-gc
26665maybe-mostlyclean-target-boehm-gc:
60975492
PB
26666@if target-boehm-gc
26667maybe-mostlyclean-target-boehm-gc: mostlyclean-target-boehm-gc
295f4e42
NN
26668
26669mostlyclean-target-boehm-gc:
26670 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
26671 r=`${PWD_COMMAND}`; export r; \
26672 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26673 $(SET_LIB_PATH) \
4fc4dd12 26674 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
26675 echo "Doing mostlyclean in $(TARGET_SUBDIR)/boehm-gc" ; \
26676 for flag in $(EXTRA_TARGET_FLAGS); do \
26677 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26678 done; \
26679 (cd $(TARGET_SUBDIR)/boehm-gc && \
26680 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26681 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26682 "RANLIB=$${RANLIB}" \
26683 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 26684 mostlyclean) \
295f4e42
NN
26685 || exit 1
26686
60975492 26687@endif target-boehm-gc
295f4e42
NN
26688
26689.PHONY: maybe-clean-target-boehm-gc clean-target-boehm-gc
26690maybe-clean-target-boehm-gc:
60975492
PB
26691@if target-boehm-gc
26692maybe-clean-target-boehm-gc: clean-target-boehm-gc
295f4e42
NN
26693
26694clean-target-boehm-gc:
26695 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
26696 r=`${PWD_COMMAND}`; export r; \
26697 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26698 $(SET_LIB_PATH) \
4fc4dd12 26699 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
26700 echo "Doing clean in $(TARGET_SUBDIR)/boehm-gc" ; \
26701 for flag in $(EXTRA_TARGET_FLAGS); do \
26702 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26703 done; \
26704 (cd $(TARGET_SUBDIR)/boehm-gc && \
26705 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26706 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26707 "RANLIB=$${RANLIB}" \
26708 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 26709 clean) \
295f4e42
NN
26710 || exit 1
26711
60975492 26712@endif target-boehm-gc
295f4e42
NN
26713
26714.PHONY: maybe-distclean-target-boehm-gc distclean-target-boehm-gc
26715maybe-distclean-target-boehm-gc:
60975492
PB
26716@if target-boehm-gc
26717maybe-distclean-target-boehm-gc: distclean-target-boehm-gc
295f4e42
NN
26718
26719distclean-target-boehm-gc:
26720 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
26721 r=`${PWD_COMMAND}`; export r; \
26722 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26723 $(SET_LIB_PATH) \
4fc4dd12 26724 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
26725 echo "Doing distclean in $(TARGET_SUBDIR)/boehm-gc" ; \
26726 for flag in $(EXTRA_TARGET_FLAGS); do \
26727 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26728 done; \
26729 (cd $(TARGET_SUBDIR)/boehm-gc && \
26730 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26731 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26732 "RANLIB=$${RANLIB}" \
26733 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 26734 distclean) \
295f4e42
NN
26735 || exit 1
26736
60975492 26737@endif target-boehm-gc
295f4e42
NN
26738
26739.PHONY: maybe-maintainer-clean-target-boehm-gc maintainer-clean-target-boehm-gc
26740maybe-maintainer-clean-target-boehm-gc:
60975492
PB
26741@if target-boehm-gc
26742maybe-maintainer-clean-target-boehm-gc: maintainer-clean-target-boehm-gc
295f4e42
NN
26743
26744maintainer-clean-target-boehm-gc:
26745 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
26746 r=`${PWD_COMMAND}`; export r; \
26747 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26748 $(SET_LIB_PATH) \
4fc4dd12 26749 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
26750 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/boehm-gc" ; \
26751 for flag in $(EXTRA_TARGET_FLAGS); do \
26752 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26753 done; \
26754 (cd $(TARGET_SUBDIR)/boehm-gc && \
26755 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26756 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26757 "RANLIB=$${RANLIB}" \
26758 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 26759 maintainer-clean) \
295f4e42
NN
26760 || exit 1
26761
60975492 26762@endif target-boehm-gc
295f4e42
NN
26763
26764
26765.PHONY: configure-target-qthreads maybe-configure-target-qthreads
26766maybe-configure-target-qthreads:
60975492
PB
26767@if target-qthreads
26768maybe-configure-target-qthreads: configure-target-qthreads
4977bab6 26769
88b5521b 26770# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
295f4e42
NN
26771$(TARGET_SUBDIR)/qthreads/multilib.out: multilib.out
26772 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/qthreads ; \
26773 rm -f $(TARGET_SUBDIR)/qthreads/Makefile || : ; \
26774 cp multilib.out $(TARGET_SUBDIR)/qthreads/multilib.out
4977bab6 26775
295f4e42
NN
26776configure-target-qthreads: $(TARGET_SUBDIR)/qthreads/multilib.out
26777 @test ! -f $(TARGET_SUBDIR)/qthreads/Makefile || exit 0; \
26778 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/qthreads ; \
8c90b13a
L
26779 r=`${PWD_COMMAND}`; export r; \
26780 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 26781 $(SET_LIB_PATH) \
4fc4dd12 26782 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
26783 echo Configuring in $(TARGET_SUBDIR)/qthreads; \
26784 cd "$(TARGET_SUBDIR)/qthreads" || exit 1; \
3aa83176
NN
26785 case $(srcdir) in \
26786 /* | [A-Za-z]:[\\/]*) \
26787 topdir=$(srcdir) ;; \
26788 *) \
26789 case "$(TARGET_SUBDIR)" in \
4977bab6
ZW
26790 .) topdir="../$(srcdir)" ;; \
26791 *) topdir="../../$(srcdir)" ;; \
3aa83176
NN
26792 esac ;; \
26793 esac; \
295f4e42
NN
26794 srcdiroption="--srcdir=$${topdir}/qthreads"; \
26795 libsrcdir="$$s/qthreads"; \
3aa83176
NN
26796 rm -f no-such-file || : ; \
26797 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
26798 $(TARGET_CONFIGARGS) $${srcdiroption} \
a52a0a7f 26799 --with-target-subdir="$(TARGET_SUBDIR)" \
3aa83176 26800 || exit 1
60975492 26801@endif target-qthreads
4977bab6 26802
295f4e42
NN
26803.PHONY: all-target-qthreads maybe-all-target-qthreads
26804maybe-all-target-qthreads:
60975492 26805@if target-qthreads
7c27e184 26806TARGET-target-qthreads=all
60975492 26807maybe-all-target-qthreads: all-target-qthreads
295f4e42 26808all-target-qthreads: configure-target-qthreads
8c90b13a
L
26809 @r=`${PWD_COMMAND}`; export r; \
26810 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 26811 $(SET_LIB_PATH) \
4fc4dd12 26812 $(NORMAL_TARGET_EXPORTS) \
295f4e42 26813 (cd $(TARGET_SUBDIR)/qthreads && \
7c27e184 26814 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-qthreads))
60975492 26815@endif target-qthreads
4977bab6 26816
295f4e42
NN
26817.PHONY: check-target-qthreads maybe-check-target-qthreads
26818maybe-check-target-qthreads:
60975492
PB
26819@if target-qthreads
26820maybe-check-target-qthreads: check-target-qthreads
7e2dbcef 26821
295f4e42 26822check-target-qthreads:
8c90b13a
L
26823 @r=`${PWD_COMMAND}`; export r; \
26824 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 26825 $(SET_LIB_PATH) \
4fc4dd12 26826 $(NORMAL_TARGET_EXPORTS) \
295f4e42 26827 (cd $(TARGET_SUBDIR)/qthreads && \
a52a0a7f 26828 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4977bab6 26829
60975492 26830@endif target-qthreads
4977bab6 26831
295f4e42
NN
26832.PHONY: install-target-qthreads maybe-install-target-qthreads
26833maybe-install-target-qthreads:
60975492
PB
26834@if target-qthreads
26835maybe-install-target-qthreads: install-target-qthreads
295f4e42
NN
26836
26837install-target-qthreads: installdirs
26838 @r=`${PWD_COMMAND}`; export r; \
26839 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26840 $(SET_LIB_PATH) \
4fc4dd12 26841 $(NORMAL_TARGET_EXPORTS) \
295f4e42 26842 (cd $(TARGET_SUBDIR)/qthreads && \
a52a0a7f 26843 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
295f4e42 26844
60975492 26845@endif target-qthreads
295f4e42
NN
26846
26847# Other targets (info, dvi, etc.)
26848
26849.PHONY: maybe-info-target-qthreads info-target-qthreads
26850maybe-info-target-qthreads:
60975492
PB
26851@if target-qthreads
26852maybe-info-target-qthreads: info-target-qthreads
295f4e42
NN
26853
26854info-target-qthreads: \
26855 configure-target-qthreads
26856 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
26857 r=`${PWD_COMMAND}`; export r; \
26858 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26859 $(SET_LIB_PATH) \
4fc4dd12 26860 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
26861 echo "Doing info in $(TARGET_SUBDIR)/qthreads" ; \
26862 for flag in $(EXTRA_TARGET_FLAGS); do \
26863 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26864 done; \
26865 (cd $(TARGET_SUBDIR)/qthreads && \
26866 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26867 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26868 "RANLIB=$${RANLIB}" \
26869 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 26870 info) \
295f4e42
NN
26871 || exit 1
26872
60975492 26873@endif target-qthreads
295f4e42
NN
26874
26875.PHONY: maybe-dvi-target-qthreads dvi-target-qthreads
26876maybe-dvi-target-qthreads:
60975492
PB
26877@if target-qthreads
26878maybe-dvi-target-qthreads: dvi-target-qthreads
295f4e42
NN
26879
26880dvi-target-qthreads: \
26881 configure-target-qthreads
26882 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
26883 r=`${PWD_COMMAND}`; export r; \
26884 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26885 $(SET_LIB_PATH) \
4fc4dd12 26886 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
26887 echo "Doing dvi in $(TARGET_SUBDIR)/qthreads" ; \
26888 for flag in $(EXTRA_TARGET_FLAGS); do \
26889 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26890 done; \
26891 (cd $(TARGET_SUBDIR)/qthreads && \
26892 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26893 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26894 "RANLIB=$${RANLIB}" \
26895 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 26896 dvi) \
295f4e42
NN
26897 || exit 1
26898
60975492 26899@endif target-qthreads
295f4e42
NN
26900
26901.PHONY: maybe-TAGS-target-qthreads TAGS-target-qthreads
26902maybe-TAGS-target-qthreads:
60975492
PB
26903@if target-qthreads
26904maybe-TAGS-target-qthreads: TAGS-target-qthreads
295f4e42
NN
26905
26906TAGS-target-qthreads: \
26907 configure-target-qthreads
26908 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
26909 r=`${PWD_COMMAND}`; export r; \
26910 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26911 $(SET_LIB_PATH) \
4fc4dd12 26912 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
26913 echo "Doing TAGS in $(TARGET_SUBDIR)/qthreads" ; \
26914 for flag in $(EXTRA_TARGET_FLAGS); do \
26915 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26916 done; \
26917 (cd $(TARGET_SUBDIR)/qthreads && \
26918 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26919 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26920 "RANLIB=$${RANLIB}" \
26921 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 26922 TAGS) \
295f4e42
NN
26923 || exit 1
26924
60975492 26925@endif target-qthreads
295f4e42
NN
26926
26927.PHONY: maybe-install-info-target-qthreads install-info-target-qthreads
26928maybe-install-info-target-qthreads:
60975492
PB
26929@if target-qthreads
26930maybe-install-info-target-qthreads: install-info-target-qthreads
295f4e42
NN
26931
26932install-info-target-qthreads: \
26933 configure-target-qthreads \
26934 info-target-qthreads
26935 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
26936 r=`${PWD_COMMAND}`; export r; \
26937 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26938 $(SET_LIB_PATH) \
4fc4dd12 26939 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
26940 echo "Doing install-info in $(TARGET_SUBDIR)/qthreads" ; \
26941 for flag in $(EXTRA_TARGET_FLAGS); do \
26942 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26943 done; \
26944 (cd $(TARGET_SUBDIR)/qthreads && \
26945 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26946 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26947 "RANLIB=$${RANLIB}" \
26948 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 26949 install-info) \
295f4e42
NN
26950 || exit 1
26951
60975492 26952@endif target-qthreads
295f4e42
NN
26953
26954.PHONY: maybe-installcheck-target-qthreads installcheck-target-qthreads
26955maybe-installcheck-target-qthreads:
60975492
PB
26956@if target-qthreads
26957maybe-installcheck-target-qthreads: installcheck-target-qthreads
295f4e42
NN
26958
26959installcheck-target-qthreads: \
26960 configure-target-qthreads
26961 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
26962 r=`${PWD_COMMAND}`; export r; \
26963 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26964 $(SET_LIB_PATH) \
4fc4dd12 26965 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
26966 echo "Doing installcheck in $(TARGET_SUBDIR)/qthreads" ; \
26967 for flag in $(EXTRA_TARGET_FLAGS); do \
26968 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26969 done; \
26970 (cd $(TARGET_SUBDIR)/qthreads && \
26971 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26972 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26973 "RANLIB=$${RANLIB}" \
26974 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 26975 installcheck) \
295f4e42
NN
26976 || exit 1
26977
60975492 26978@endif target-qthreads
295f4e42
NN
26979
26980.PHONY: maybe-mostlyclean-target-qthreads mostlyclean-target-qthreads
26981maybe-mostlyclean-target-qthreads:
60975492
PB
26982@if target-qthreads
26983maybe-mostlyclean-target-qthreads: mostlyclean-target-qthreads
295f4e42
NN
26984
26985mostlyclean-target-qthreads:
26986 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
26987 r=`${PWD_COMMAND}`; export r; \
26988 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26989 $(SET_LIB_PATH) \
4fc4dd12 26990 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
26991 echo "Doing mostlyclean in $(TARGET_SUBDIR)/qthreads" ; \
26992 for flag in $(EXTRA_TARGET_FLAGS); do \
26993 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26994 done; \
26995 (cd $(TARGET_SUBDIR)/qthreads && \
26996 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26997 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26998 "RANLIB=$${RANLIB}" \
26999 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 27000 mostlyclean) \
295f4e42
NN
27001 || exit 1
27002
60975492 27003@endif target-qthreads
295f4e42
NN
27004
27005.PHONY: maybe-clean-target-qthreads clean-target-qthreads
27006maybe-clean-target-qthreads:
60975492
PB
27007@if target-qthreads
27008maybe-clean-target-qthreads: clean-target-qthreads
295f4e42
NN
27009
27010clean-target-qthreads:
27011 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
27012 r=`${PWD_COMMAND}`; export r; \
27013 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27014 $(SET_LIB_PATH) \
4fc4dd12 27015 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
27016 echo "Doing clean in $(TARGET_SUBDIR)/qthreads" ; \
27017 for flag in $(EXTRA_TARGET_FLAGS); do \
27018 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27019 done; \
27020 (cd $(TARGET_SUBDIR)/qthreads && \
27021 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27022 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27023 "RANLIB=$${RANLIB}" \
27024 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 27025 clean) \
295f4e42
NN
27026 || exit 1
27027
60975492 27028@endif target-qthreads
295f4e42
NN
27029
27030.PHONY: maybe-distclean-target-qthreads distclean-target-qthreads
27031maybe-distclean-target-qthreads:
60975492
PB
27032@if target-qthreads
27033maybe-distclean-target-qthreads: distclean-target-qthreads
295f4e42
NN
27034
27035distclean-target-qthreads:
27036 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
27037 r=`${PWD_COMMAND}`; export r; \
27038 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27039 $(SET_LIB_PATH) \
4fc4dd12 27040 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
27041 echo "Doing distclean in $(TARGET_SUBDIR)/qthreads" ; \
27042 for flag in $(EXTRA_TARGET_FLAGS); do \
27043 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27044 done; \
27045 (cd $(TARGET_SUBDIR)/qthreads && \
27046 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27047 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27048 "RANLIB=$${RANLIB}" \
27049 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 27050 distclean) \
295f4e42
NN
27051 || exit 1
27052
60975492 27053@endif target-qthreads
295f4e42
NN
27054
27055.PHONY: maybe-maintainer-clean-target-qthreads maintainer-clean-target-qthreads
27056maybe-maintainer-clean-target-qthreads:
60975492
PB
27057@if target-qthreads
27058maybe-maintainer-clean-target-qthreads: maintainer-clean-target-qthreads
295f4e42
NN
27059
27060maintainer-clean-target-qthreads:
27061 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
27062 r=`${PWD_COMMAND}`; export r; \
27063 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27064 $(SET_LIB_PATH) \
4fc4dd12 27065 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
27066 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/qthreads" ; \
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)/qthreads && \
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}" \
a52a0a7f 27075 maintainer-clean) \
295f4e42 27076 || exit 1
7e2dbcef 27077
60975492 27078@endif target-qthreads
4977bab6
ZW
27079
27080
295f4e42
NN
27081.PHONY: configure-target-rda maybe-configure-target-rda
27082maybe-configure-target-rda:
60975492
PB
27083@if target-rda
27084maybe-configure-target-rda: configure-target-rda
4977bab6 27085
88b5521b 27086# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
295f4e42
NN
27087$(TARGET_SUBDIR)/rda/multilib.out: multilib.out
27088 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda ; \
27089 rm -f $(TARGET_SUBDIR)/rda/Makefile || : ; \
27090 cp multilib.out $(TARGET_SUBDIR)/rda/multilib.out
4977bab6 27091
295f4e42
NN
27092configure-target-rda: $(TARGET_SUBDIR)/rda/multilib.out
27093 @test ! -f $(TARGET_SUBDIR)/rda/Makefile || exit 0; \
27094 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda ; \
8c90b13a
L
27095 r=`${PWD_COMMAND}`; export r; \
27096 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 27097 $(SET_LIB_PATH) \
4fc4dd12 27098 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
27099 echo Configuring in $(TARGET_SUBDIR)/rda; \
27100 cd "$(TARGET_SUBDIR)/rda" || exit 1; \
3aa83176
NN
27101 case $(srcdir) in \
27102 /* | [A-Za-z]:[\\/]*) \
27103 topdir=$(srcdir) ;; \
27104 *) \
27105 case "$(TARGET_SUBDIR)" in \
4977bab6
ZW
27106 .) topdir="../$(srcdir)" ;; \
27107 *) topdir="../../$(srcdir)" ;; \
3aa83176
NN
27108 esac ;; \
27109 esac; \
295f4e42
NN
27110 srcdiroption="--srcdir=$${topdir}/rda"; \
27111 libsrcdir="$$s/rda"; \
3aa83176
NN
27112 rm -f no-such-file || : ; \
27113 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
27114 $(TARGET_CONFIGARGS) $${srcdiroption} \
a52a0a7f 27115 --with-target-subdir="$(TARGET_SUBDIR)" \
3aa83176 27116 || exit 1
60975492 27117@endif target-rda
4977bab6 27118
295f4e42
NN
27119.PHONY: all-target-rda maybe-all-target-rda
27120maybe-all-target-rda:
60975492 27121@if target-rda
7c27e184 27122TARGET-target-rda=all
60975492 27123maybe-all-target-rda: all-target-rda
295f4e42 27124all-target-rda: configure-target-rda
8c90b13a
L
27125 @r=`${PWD_COMMAND}`; export r; \
27126 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 27127 $(SET_LIB_PATH) \
4fc4dd12 27128 $(NORMAL_TARGET_EXPORTS) \
295f4e42 27129 (cd $(TARGET_SUBDIR)/rda && \
7c27e184 27130 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-rda))
60975492 27131@endif target-rda
4977bab6 27132
295f4e42
NN
27133.PHONY: check-target-rda maybe-check-target-rda
27134maybe-check-target-rda:
60975492
PB
27135@if target-rda
27136maybe-check-target-rda: check-target-rda
7e2dbcef 27137
295f4e42 27138check-target-rda:
8c90b13a
L
27139 @r=`${PWD_COMMAND}`; export r; \
27140 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 27141 $(SET_LIB_PATH) \
4fc4dd12 27142 $(NORMAL_TARGET_EXPORTS) \
295f4e42 27143 (cd $(TARGET_SUBDIR)/rda && \
a52a0a7f 27144 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6599da04 27145
60975492 27146@endif target-rda
4977bab6 27147
295f4e42
NN
27148.PHONY: install-target-rda maybe-install-target-rda
27149maybe-install-target-rda:
60975492
PB
27150@if target-rda
27151maybe-install-target-rda: install-target-rda
7e2dbcef 27152
295f4e42 27153install-target-rda: installdirs
8c90b13a
L
27154 @r=`${PWD_COMMAND}`; export r; \
27155 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 27156 $(SET_LIB_PATH) \
4fc4dd12 27157 $(NORMAL_TARGET_EXPORTS) \
295f4e42 27158 (cd $(TARGET_SUBDIR)/rda && \
a52a0a7f 27159 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e490616e 27160
60975492 27161@endif target-rda
4977bab6 27162
295f4e42
NN
27163# Other targets (info, dvi, etc.)
27164
27165.PHONY: maybe-info-target-rda info-target-rda
27166maybe-info-target-rda:
60975492
PB
27167@if target-rda
27168maybe-info-target-rda: info-target-rda
295f4e42
NN
27169
27170info-target-rda: \
27171 configure-target-rda
27172 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
27173 r=`${PWD_COMMAND}`; export r; \
27174 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27175 $(SET_LIB_PATH) \
4fc4dd12 27176 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
27177 echo "Doing info in $(TARGET_SUBDIR)/rda" ; \
27178 for flag in $(EXTRA_TARGET_FLAGS); do \
27179 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27180 done; \
27181 (cd $(TARGET_SUBDIR)/rda && \
27182 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27183 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27184 "RANLIB=$${RANLIB}" \
27185 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 27186 info) \
295f4e42
NN
27187 || exit 1
27188
60975492 27189@endif target-rda
295f4e42
NN
27190
27191.PHONY: maybe-dvi-target-rda dvi-target-rda
27192maybe-dvi-target-rda:
60975492
PB
27193@if target-rda
27194maybe-dvi-target-rda: dvi-target-rda
295f4e42
NN
27195
27196dvi-target-rda: \
27197 configure-target-rda
27198 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
27199 r=`${PWD_COMMAND}`; export r; \
27200 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27201 $(SET_LIB_PATH) \
4fc4dd12 27202 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
27203 echo "Doing dvi in $(TARGET_SUBDIR)/rda" ; \
27204 for flag in $(EXTRA_TARGET_FLAGS); do \
27205 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27206 done; \
27207 (cd $(TARGET_SUBDIR)/rda && \
27208 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27209 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27210 "RANLIB=$${RANLIB}" \
27211 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 27212 dvi) \
295f4e42
NN
27213 || exit 1
27214
60975492 27215@endif target-rda
295f4e42
NN
27216
27217.PHONY: maybe-TAGS-target-rda TAGS-target-rda
27218maybe-TAGS-target-rda:
60975492
PB
27219@if target-rda
27220maybe-TAGS-target-rda: TAGS-target-rda
295f4e42
NN
27221
27222TAGS-target-rda: \
27223 configure-target-rda
27224 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
27225 r=`${PWD_COMMAND}`; export r; \
27226 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27227 $(SET_LIB_PATH) \
4fc4dd12 27228 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
27229 echo "Doing TAGS in $(TARGET_SUBDIR)/rda" ; \
27230 for flag in $(EXTRA_TARGET_FLAGS); do \
27231 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27232 done; \
27233 (cd $(TARGET_SUBDIR)/rda && \
27234 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27235 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27236 "RANLIB=$${RANLIB}" \
27237 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 27238 TAGS) \
295f4e42
NN
27239 || exit 1
27240
60975492 27241@endif target-rda
295f4e42
NN
27242
27243.PHONY: maybe-install-info-target-rda install-info-target-rda
27244maybe-install-info-target-rda:
60975492
PB
27245@if target-rda
27246maybe-install-info-target-rda: install-info-target-rda
295f4e42
NN
27247
27248install-info-target-rda: \
27249 configure-target-rda \
27250 info-target-rda
27251 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
27252 r=`${PWD_COMMAND}`; export r; \
27253 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27254 $(SET_LIB_PATH) \
4fc4dd12 27255 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
27256 echo "Doing install-info in $(TARGET_SUBDIR)/rda" ; \
27257 for flag in $(EXTRA_TARGET_FLAGS); do \
27258 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27259 done; \
27260 (cd $(TARGET_SUBDIR)/rda && \
27261 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27262 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27263 "RANLIB=$${RANLIB}" \
27264 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 27265 install-info) \
295f4e42
NN
27266 || exit 1
27267
60975492 27268@endif target-rda
295f4e42
NN
27269
27270.PHONY: maybe-installcheck-target-rda installcheck-target-rda
27271maybe-installcheck-target-rda:
60975492
PB
27272@if target-rda
27273maybe-installcheck-target-rda: installcheck-target-rda
295f4e42
NN
27274
27275installcheck-target-rda: \
27276 configure-target-rda
27277 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
27278 r=`${PWD_COMMAND}`; export r; \
27279 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27280 $(SET_LIB_PATH) \
4fc4dd12 27281 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
27282 echo "Doing installcheck in $(TARGET_SUBDIR)/rda" ; \
27283 for flag in $(EXTRA_TARGET_FLAGS); do \
27284 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27285 done; \
27286 (cd $(TARGET_SUBDIR)/rda && \
27287 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27288 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27289 "RANLIB=$${RANLIB}" \
27290 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 27291 installcheck) \
295f4e42
NN
27292 || exit 1
27293
60975492 27294@endif target-rda
295f4e42
NN
27295
27296.PHONY: maybe-mostlyclean-target-rda mostlyclean-target-rda
27297maybe-mostlyclean-target-rda:
60975492
PB
27298@if target-rda
27299maybe-mostlyclean-target-rda: mostlyclean-target-rda
295f4e42
NN
27300
27301mostlyclean-target-rda:
27302 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
27303 r=`${PWD_COMMAND}`; export r; \
27304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27305 $(SET_LIB_PATH) \
4fc4dd12 27306 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
27307 echo "Doing mostlyclean in $(TARGET_SUBDIR)/rda" ; \
27308 for flag in $(EXTRA_TARGET_FLAGS); do \
27309 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27310 done; \
27311 (cd $(TARGET_SUBDIR)/rda && \
27312 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27313 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27314 "RANLIB=$${RANLIB}" \
27315 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 27316 mostlyclean) \
295f4e42
NN
27317 || exit 1
27318
60975492 27319@endif target-rda
295f4e42
NN
27320
27321.PHONY: maybe-clean-target-rda clean-target-rda
27322maybe-clean-target-rda:
60975492
PB
27323@if target-rda
27324maybe-clean-target-rda: clean-target-rda
295f4e42
NN
27325
27326clean-target-rda:
27327 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
27328 r=`${PWD_COMMAND}`; export r; \
27329 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27330 $(SET_LIB_PATH) \
4fc4dd12 27331 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
27332 echo "Doing clean in $(TARGET_SUBDIR)/rda" ; \
27333 for flag in $(EXTRA_TARGET_FLAGS); do \
27334 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27335 done; \
27336 (cd $(TARGET_SUBDIR)/rda && \
27337 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27338 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27339 "RANLIB=$${RANLIB}" \
27340 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 27341 clean) \
295f4e42
NN
27342 || exit 1
27343
60975492 27344@endif target-rda
295f4e42
NN
27345
27346.PHONY: maybe-distclean-target-rda distclean-target-rda
27347maybe-distclean-target-rda:
60975492
PB
27348@if target-rda
27349maybe-distclean-target-rda: distclean-target-rda
295f4e42
NN
27350
27351distclean-target-rda:
27352 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
27353 r=`${PWD_COMMAND}`; export r; \
27354 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27355 $(SET_LIB_PATH) \
4fc4dd12 27356 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
27357 echo "Doing distclean in $(TARGET_SUBDIR)/rda" ; \
27358 for flag in $(EXTRA_TARGET_FLAGS); do \
27359 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27360 done; \
27361 (cd $(TARGET_SUBDIR)/rda && \
27362 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27363 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27364 "RANLIB=$${RANLIB}" \
27365 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 27366 distclean) \
295f4e42
NN
27367 || exit 1
27368
60975492 27369@endif target-rda
295f4e42
NN
27370
27371.PHONY: maybe-maintainer-clean-target-rda maintainer-clean-target-rda
27372maybe-maintainer-clean-target-rda:
60975492
PB
27373@if target-rda
27374maybe-maintainer-clean-target-rda: maintainer-clean-target-rda
295f4e42
NN
27375
27376maintainer-clean-target-rda:
27377 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
27378 r=`${PWD_COMMAND}`; export r; \
27379 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27380 $(SET_LIB_PATH) \
4fc4dd12 27381 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
27382 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/rda" ; \
27383 for flag in $(EXTRA_TARGET_FLAGS); do \
27384 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27385 done; \
27386 (cd $(TARGET_SUBDIR)/rda && \
27387 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27388 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27389 "RANLIB=$${RANLIB}" \
27390 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 27391 maintainer-clean) \
295f4e42
NN
27392 || exit 1
27393
60975492 27394@endif target-rda
295f4e42
NN
27395
27396
27397.PHONY: configure-target-libada maybe-configure-target-libada
27398maybe-configure-target-libada:
60975492
PB
27399@if target-libada
27400maybe-configure-target-libada: configure-target-libada
4977bab6 27401
88b5521b 27402# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
295f4e42
NN
27403$(TARGET_SUBDIR)/libada/multilib.out: multilib.out
27404 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada ; \
27405 rm -f $(TARGET_SUBDIR)/libada/Makefile || : ; \
27406 cp multilib.out $(TARGET_SUBDIR)/libada/multilib.out
4977bab6 27407
295f4e42
NN
27408configure-target-libada: $(TARGET_SUBDIR)/libada/multilib.out
27409 @test ! -f $(TARGET_SUBDIR)/libada/Makefile || exit 0; \
27410 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada ; \
8c90b13a
L
27411 r=`${PWD_COMMAND}`; export r; \
27412 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 27413 $(SET_LIB_PATH) \
4fc4dd12 27414 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
27415 echo Configuring in $(TARGET_SUBDIR)/libada; \
27416 cd "$(TARGET_SUBDIR)/libada" || exit 1; \
3aa83176
NN
27417 case $(srcdir) in \
27418 /* | [A-Za-z]:[\\/]*) \
27419 topdir=$(srcdir) ;; \
27420 *) \
27421 case "$(TARGET_SUBDIR)" in \
e490616e
ZW
27422 .) topdir="../$(srcdir)" ;; \
27423 *) topdir="../../$(srcdir)" ;; \
3aa83176
NN
27424 esac ;; \
27425 esac; \
295f4e42
NN
27426 srcdiroption="--srcdir=$${topdir}/libada"; \
27427 libsrcdir="$$s/libada"; \
3aa83176
NN
27428 rm -f no-such-file || : ; \
27429 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
27430 $(TARGET_CONFIGARGS) $${srcdiroption} \
a52a0a7f 27431 --with-target-subdir="$(TARGET_SUBDIR)" \
3aa83176 27432 || exit 1
60975492 27433@endif target-libada
4977bab6 27434
295f4e42
NN
27435.PHONY: all-target-libada maybe-all-target-libada
27436maybe-all-target-libada:
60975492 27437@if target-libada
7c27e184 27438TARGET-target-libada=all
60975492 27439maybe-all-target-libada: all-target-libada
295f4e42 27440all-target-libada: configure-target-libada
8c90b13a
L
27441 @r=`${PWD_COMMAND}`; export r; \
27442 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 27443 $(SET_LIB_PATH) \
4fc4dd12 27444 $(NORMAL_TARGET_EXPORTS) \
295f4e42 27445 (cd $(TARGET_SUBDIR)/libada && \
7c27e184 27446 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libada))
60975492 27447@endif target-libada
6599da04 27448
295f4e42
NN
27449.PHONY: check-target-libada maybe-check-target-libada
27450maybe-check-target-libada:
60975492
PB
27451@if target-libada
27452maybe-check-target-libada: check-target-libada
7e2dbcef 27453
295f4e42 27454check-target-libada:
8c90b13a
L
27455 @r=`${PWD_COMMAND}`; export r; \
27456 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 27457 $(SET_LIB_PATH) \
4fc4dd12 27458 $(NORMAL_TARGET_EXPORTS) \
295f4e42 27459 (cd $(TARGET_SUBDIR)/libada && \
a52a0a7f 27460 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6599da04 27461
60975492 27462@endif target-libada
4977bab6 27463
295f4e42
NN
27464.PHONY: install-target-libada maybe-install-target-libada
27465maybe-install-target-libada:
60975492
PB
27466@if target-libada
27467maybe-install-target-libada: install-target-libada
7e2dbcef 27468
295f4e42 27469install-target-libada: installdirs
8c90b13a
L
27470 @r=`${PWD_COMMAND}`; export r; \
27471 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 27472 $(SET_LIB_PATH) \
4fc4dd12 27473 $(NORMAL_TARGET_EXPORTS) \
295f4e42 27474 (cd $(TARGET_SUBDIR)/libada && \
a52a0a7f 27475 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6599da04 27476
60975492 27477@endif target-libada
4977bab6 27478
295f4e42 27479# Other targets (info, dvi, etc.)
4977bab6 27480
295f4e42
NN
27481.PHONY: maybe-info-target-libada info-target-libada
27482maybe-info-target-libada:
60975492
PB
27483@if target-libada
27484maybe-info-target-libada: info-target-libada
4977bab6 27485
295f4e42
NN
27486info-target-libada: \
27487 configure-target-libada
27488 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
8c90b13a
L
27489 r=`${PWD_COMMAND}`; export r; \
27490 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 27491 $(SET_LIB_PATH) \
4fc4dd12 27492 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
27493 echo "Doing info in $(TARGET_SUBDIR)/libada" ; \
27494 for flag in $(EXTRA_TARGET_FLAGS); do \
27495 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27496 done; \
27497 (cd $(TARGET_SUBDIR)/libada && \
27498 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27499 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27500 "RANLIB=$${RANLIB}" \
27501 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 27502 info) \
3aa83176 27503 || exit 1
4977bab6 27504
60975492 27505@endif target-libada
295f4e42
NN
27506
27507.PHONY: maybe-dvi-target-libada dvi-target-libada
27508maybe-dvi-target-libada:
60975492
PB
27509@if target-libada
27510maybe-dvi-target-libada: dvi-target-libada
295f4e42
NN
27511
27512dvi-target-libada: \
27513 configure-target-libada
27514 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
27515 r=`${PWD_COMMAND}`; export r; \
8c90b13a 27516 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 27517 $(SET_LIB_PATH) \
4fc4dd12 27518 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
27519 echo "Doing dvi in $(TARGET_SUBDIR)/libada" ; \
27520 for flag in $(EXTRA_TARGET_FLAGS); do \
27521 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27522 done; \
27523 (cd $(TARGET_SUBDIR)/libada && \
27524 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27525 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27526 "RANLIB=$${RANLIB}" \
27527 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 27528 dvi) \
295f4e42 27529 || exit 1
6599da04 27530
60975492 27531@endif target-libada
7e2dbcef 27532
295f4e42
NN
27533.PHONY: maybe-TAGS-target-libada TAGS-target-libada
27534maybe-TAGS-target-libada:
60975492
PB
27535@if target-libada
27536maybe-TAGS-target-libada: TAGS-target-libada
295f4e42
NN
27537
27538TAGS-target-libada: \
27539 configure-target-libada
27540 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
27541 r=`${PWD_COMMAND}`; export r; \
8c90b13a 27542 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 27543 $(SET_LIB_PATH) \
4fc4dd12 27544 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
27545 echo "Doing TAGS in $(TARGET_SUBDIR)/libada" ; \
27546 for flag in $(EXTRA_TARGET_FLAGS); do \
27547 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27548 done; \
27549 (cd $(TARGET_SUBDIR)/libada && \
27550 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27551 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27552 "RANLIB=$${RANLIB}" \
27553 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 27554 TAGS) \
295f4e42 27555 || exit 1
6599da04 27556
60975492 27557@endif target-libada
6599da04 27558
295f4e42
NN
27559.PHONY: maybe-install-info-target-libada install-info-target-libada
27560maybe-install-info-target-libada:
60975492
PB
27561@if target-libada
27562maybe-install-info-target-libada: install-info-target-libada
7e2dbcef 27563
295f4e42
NN
27564install-info-target-libada: \
27565 configure-target-libada \
27566 info-target-libada
27567 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
27568 r=`${PWD_COMMAND}`; export r; \
8c90b13a 27569 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3aa83176 27570 $(SET_LIB_PATH) \
4fc4dd12 27571 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
27572 echo "Doing install-info in $(TARGET_SUBDIR)/libada" ; \
27573 for flag in $(EXTRA_TARGET_FLAGS); do \
27574 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27575 done; \
27576 (cd $(TARGET_SUBDIR)/libada && \
27577 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27578 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27579 "RANLIB=$${RANLIB}" \
27580 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 27581 install-info) \
295f4e42 27582 || exit 1
6599da04 27583
60975492 27584@endif target-libada
6599da04 27585
295f4e42
NN
27586.PHONY: maybe-installcheck-target-libada installcheck-target-libada
27587maybe-installcheck-target-libada:
60975492
PB
27588@if target-libada
27589maybe-installcheck-target-libada: installcheck-target-libada
d9cdb878 27590
295f4e42
NN
27591installcheck-target-libada: \
27592 configure-target-libada
27593 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
27594 r=`${PWD_COMMAND}`; export r; \
27595 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27596 $(SET_LIB_PATH) \
4fc4dd12 27597 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
27598 echo "Doing installcheck in $(TARGET_SUBDIR)/libada" ; \
27599 for flag in $(EXTRA_TARGET_FLAGS); do \
27600 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27601 done; \
27602 (cd $(TARGET_SUBDIR)/libada && \
27603 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27604 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27605 "RANLIB=$${RANLIB}" \
27606 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 27607 installcheck) \
295f4e42 27608 || exit 1
d9cdb878 27609
60975492 27610@endif target-libada
295f4e42
NN
27611
27612.PHONY: maybe-mostlyclean-target-libada mostlyclean-target-libada
27613maybe-mostlyclean-target-libada:
60975492
PB
27614@if target-libada
27615maybe-mostlyclean-target-libada: mostlyclean-target-libada
295f4e42
NN
27616
27617mostlyclean-target-libada:
27618 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
d9cdb878
AC
27619 r=`${PWD_COMMAND}`; export r; \
27620 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27621 $(SET_LIB_PATH) \
4fc4dd12 27622 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
27623 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libada" ; \
27624 for flag in $(EXTRA_TARGET_FLAGS); do \
27625 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27626 done; \
27627 (cd $(TARGET_SUBDIR)/libada && \
27628 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27629 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27630 "RANLIB=$${RANLIB}" \
27631 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 27632 mostlyclean) \
d9cdb878
AC
27633 || exit 1
27634
60975492 27635@endif target-libada
295f4e42
NN
27636
27637.PHONY: maybe-clean-target-libada clean-target-libada
27638maybe-clean-target-libada:
60975492
PB
27639@if target-libada
27640maybe-clean-target-libada: clean-target-libada
295f4e42
NN
27641
27642clean-target-libada:
27643 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
27644 r=`${PWD_COMMAND}`; export r; \
d9cdb878
AC
27645 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27646 $(SET_LIB_PATH) \
4fc4dd12 27647 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
27648 echo "Doing clean in $(TARGET_SUBDIR)/libada" ; \
27649 for flag in $(EXTRA_TARGET_FLAGS); do \
27650 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27651 done; \
d9cdb878 27652 (cd $(TARGET_SUBDIR)/libada && \
295f4e42
NN
27653 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27654 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27655 "RANLIB=$${RANLIB}" \
27656 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 27657 clean) \
295f4e42 27658 || exit 1
d9cdb878 27659
60975492 27660@endif target-libada
d9cdb878 27661
295f4e42
NN
27662.PHONY: maybe-distclean-target-libada distclean-target-libada
27663maybe-distclean-target-libada:
60975492
PB
27664@if target-libada
27665maybe-distclean-target-libada: distclean-target-libada
295f4e42
NN
27666
27667distclean-target-libada:
27668 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
27669 r=`${PWD_COMMAND}`; export r; \
d9cdb878
AC
27670 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27671 $(SET_LIB_PATH) \
4fc4dd12 27672 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
27673 echo "Doing distclean in $(TARGET_SUBDIR)/libada" ; \
27674 for flag in $(EXTRA_TARGET_FLAGS); do \
27675 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27676 done; \
d9cdb878 27677 (cd $(TARGET_SUBDIR)/libada && \
295f4e42
NN
27678 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27679 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27680 "RANLIB=$${RANLIB}" \
27681 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 27682 distclean) \
295f4e42 27683 || exit 1
d9cdb878 27684
60975492 27685@endif target-libada
d9cdb878 27686
295f4e42
NN
27687.PHONY: maybe-maintainer-clean-target-libada maintainer-clean-target-libada
27688maybe-maintainer-clean-target-libada:
60975492
PB
27689@if target-libada
27690maybe-maintainer-clean-target-libada: maintainer-clean-target-libada
d9cdb878 27691
295f4e42
NN
27692maintainer-clean-target-libada:
27693 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
27694 r=`${PWD_COMMAND}`; export r; \
d9cdb878
AC
27695 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27696 $(SET_LIB_PATH) \
4fc4dd12 27697 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
27698 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libada" ; \
27699 for flag in $(EXTRA_TARGET_FLAGS); do \
27700 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27701 done; \
d9cdb878 27702 (cd $(TARGET_SUBDIR)/libada && \
295f4e42
NN
27703 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27704 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27705 "RANLIB=$${RANLIB}" \
27706 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 27707 maintainer-clean) \
295f4e42
NN
27708 || exit 1
27709
60975492 27710@endif target-libada
d9cdb878
AC
27711
27712
4977bab6
ZW
27713
27714# ----------
27715# GCC module
27716# ----------
27717
f516a7da 27718@if gcc-no-bootstrap
d32ab992
PB
27719# GCC has some more recursive targets, which trigger the old
27720# (but still current, until the toplevel bootstrap project
27721# is finished) compiler bootstrapping rules.
6599da04 27722
1ca4c6e1
PE
27723GCC_STRAP_TARGETS = bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean bubblestrap quickstrap cleanstrap restrap
27724.PHONY: $(GCC_STRAP_TARGETS)
3589b69e 27725$(GCC_STRAP_TARGETS): all-prebootstrap configure-gcc
8c90b13a
L
27726 @r=`${PWD_COMMAND}`; export r; \
27727 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec20b1b9 27728 $(SET_LIB_PATH) \
a52a0a7f 27729 $(HOST_EXPORTS) \
339c9b00 27730 echo "Bootstrapping the compiler"; \
3a4fee66 27731 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $@
8c90b13a
L
27732 @r=`${PWD_COMMAND}`; export r; \
27733 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc71c0ca 27734 case "$@" in \
f0983958 27735 *bootstrap4-lean ) \
3aa83176
NN
27736 msg="Comparing stage3 and stage4 of the compiler"; \
27737 compare=compare3-lean ;; \
27738 *bootstrap4 ) \
27739 msg="Comparing stage3 and stage4 of the compiler"; \
27740 compare=compare3 ;; \
27741 *-lean ) \
27742 msg="Comparing stage2 and stage3 of the compiler"; \
27743 compare=compare-lean ;; \
27744 * ) \
27745 msg="Comparing stage2 and stage3 of the compiler"; \
27746 compare=compare ;; \
cc71c0ca 27747 esac; \
ec20b1b9 27748 $(SET_LIB_PATH) \
a52a0a7f 27749 $(HOST_EXPORTS) \
cc71c0ca 27750 echo "$$msg"; \
3a4fee66 27751 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $$compare
8c90b13a
L
27752 @r=`${PWD_COMMAND}`; export r; \
27753 s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
f6b58262
JW
27754 $(SET_LIB_PATH) \
27755 echo "Building runtime libraries"; \
ad6717df 27756 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all
b1e3ddfd 27757
3589b69e 27758profiledbootstrap: all-prebootstrap configure-gcc
8c90b13a
L
27759 @r=`${PWD_COMMAND}`; export r; \
27760 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8f231b5d 27761 $(SET_LIB_PATH) \
a52a0a7f 27762 $(HOST_EXPORTS) \
3922b216 27763 echo "Bootstrapping training compiler"; \
8f231b5d 27764 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) stageprofile_build
8c90b13a 27765 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 27766 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8f231b5d 27767 $(SET_LIB_PATH) \
a52a0a7f 27768 $(HOST_EXPORTS) \
8f231b5d
JH
27769 echo "Building feedback based compiler"; \
27770 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) stagefeedback_build
3922b216
JDA
27771 @r=`${PWD_COMMAND}`; export r; \
27772 s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
27773 $(SET_LIB_PATH) \
27774 echo "Building runtime libraries"; \
27775 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all
8f231b5d 27776
09f97c1e 27777.PHONY: cross
7c27e184 27778cross: all-build all-gas all-ld
8c90b13a
L
27779 @r=`${PWD_COMMAND}`; export r; \
27780 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
09f97c1e 27781 $(SET_LIB_PATH) \
a52a0a7f 27782 $(HOST_EXPORTS) \
09f97c1e 27783 echo "Building the C and C++ compiler"; \
3a4fee66 27784 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++"
8c90b13a
L
27785 @r=`${PWD_COMMAND}`; export r; \
27786 s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
f6b58262
JW
27787 $(SET_LIB_PATH) \
27788 echo "Building runtime libraries"; \
ad6717df 27789 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LANGUAGES="c c++" all
f516a7da 27790@endif gcc-no-bootstrap
09f97c1e 27791
60975492 27792@if gcc
0edcfdcb
JM
27793.PHONY: check-gcc-c++
27794check-gcc-c++:
f04885d3 27795 @if [ -f ./gcc/Makefile ] ; then \
8c90b13a
L
27796 r=`${PWD_COMMAND}`; export r; \
27797 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f04885d3 27798 $(SET_LIB_PATH) \
a52a0a7f 27799 $(HOST_EXPORTS) \
88b5521b 27800 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++); \
f04885d3
BK
27801 else \
27802 true; \
0edcfdcb
JM
27803 fi
27804
27805.PHONY: check-c++
333a28b4 27806check-c++: check-target-libstdc++-v3 check-gcc-c++
6599da04 27807
4977bab6
ZW
27808# Install the gcc headers files, but not the fixed include files,
27809# which Cygnus is not allowed to distribute. This rule is very
27810# dependent on the workings of the gcc Makefile.in.
27811.PHONY: gcc-no-fixedincludes
27812gcc-no-fixedincludes:
27813 @if [ -f ./gcc/Makefile ]; then \
27814 rm -rf gcc/tmp-include; \
27815 mv gcc/include gcc/tmp-include 2>/dev/null; \
27816 mkdir gcc/include; \
27817 cp $(srcdir)/gcc/gsyslimits.h gcc/include/syslimits.h; \
27818 touch gcc/stmp-fixinc gcc/include/fixed; \
27819 rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \
8c90b13a
L
27820 r=`${PWD_COMMAND}`; export r; \
27821 s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
6599da04 27822 $(SET_LIB_PATH) \
a52a0a7f 27823 $(HOST_EXPORTS) \
88b5521b 27824 (cd ./gcc && \
4977bab6
ZW
27825 $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
27826 rm -rf gcc/include; \
27827 mv gcc/tmp-include gcc/include 2>/dev/null; \
27828 else true; fi
60975492 27829@endif gcc
295f4e42 27830
d32ab992
PB
27831# ---------------------
27832# GCC bootstrap support
27833# ---------------------
295f4e42 27834
d32ab992
PB
27835# We track the current stage (the one in 'gcc') in the stage_current file.
27836# stage_last instead tracks the stage that was built last. These targets
27837# are dummy when toplevel bootstrap is not active.
295f4e42 27838
d32ab992
PB
27839.PHONY: unstage
27840unstage:
27841@if gcc-bootstrap
27842 @[ -f stage_current ] || $(MAKE) `cat stage_last`-start
27843@endif gcc-bootstrap
295f4e42 27844
d32ab992
PB
27845.PHONY: stage
27846stage:
f516a7da 27847@if gcc-bootstrap
d32ab992
PB
27848 @$(MAKE) `cat stage_current`-end
27849@endif gcc-bootstrap
2805b53a 27850
148907ea
PB
27851# We name the build directories for the various stages "stage1-gcc",
27852# "stage2-gcc","stage3-gcc", etc.
27853
27854# Since the 'compare' process will fail (on debugging information) if any
27855# directory names are different, we need to link the gcc directory for
27856# the previous stage to a constant name ('gcc-prev'), and to make the name of
27857# the build directories constant as well. For the latter, we use naked names
27858# like 'gcc', because the scripts in that directory assume it. We use
27859# mv on platforms where symlinks to directories do not work or are not
27860# reliable.
27861
27862# At the end of the bootstrap, a symlink to 'stage3-gcc' named 'gcc' must
27863# be kept, so that libraries can find it. Ick!
27864
27865# It would be best to preinstall gcc into a staging area (and in the
27866# future, gather there all prebootstrap packages). This would allow
27867# assemblers and linkers can be bootstrapped as well as the compiler
27868# (both in a combined tree, or separately). This however requires some
27869# change to the gcc driver, again in order to avoid comparison failures.
2805b53a 27870
45f366ab
PB
27871# Bugs: This is crippled when doing parallel make, the `make all-host'
27872# and `make all-target' phases can be parallelized.
27873
2805b53a
NN
27874
27875# 'touch' doesn't work right on some platforms.
27876STAMP = echo timestamp >
27877
27878# Only build the C compiler for stage1, because that is the only one that
27879# we can guarantee will build with the native compiler, and also it is the
27880# only thing useful for building stage2. STAGE1_CFLAGS (via CFLAGS),
27881# MAKEINFO and MAKEINFOFLAGS are explicitly passed here to make them
27882# overrideable (for a bootstrap build stage1 also builds gcc.info).
27883
27884STAGE1_CFLAGS=@stage1_cflags@
27885STAGE1_LANGUAGES=@stage1_languages@
27886
148907ea
PB
27887# We only want to compare .o files, so set this!
27888objext = .o
27889
148907ea 27890# Flags to pass to stage2 and later makes.
148907ea 27891POSTSTAGE1_FLAGS_TO_PASS = \
ad6717df
PB
27892 CC="$${CC}" CC_FOR_BUILD="$${CC_FOR_BUILD}" \
27893 STAGE_PREFIX=$$r/stage-gcc/ \
148907ea
PB
27894 CFLAGS="$(BOOT_CFLAGS)" \
27895 ADAC="\$$(CC)"
27896
340de83f 27897# For stage 1:
295f4e42
NN
27898# * We force-disable intermodule optimizations, even if
27899# --enable-intermodule was passed, since the installed compiler probably
27900# can't handle them. Luckily, autoconf always respects
27901# the last argument when conflicting --enable arguments are passed.
27902# * Likewise, we force-disable coverage flags, since the installed compiler
27903# probably has never heard of them.
27904# * We build only C (and possibly Ada).
148907ea
PB
27905
27906
f516a7da 27907.PHONY: stage1-start stage1-end
148907ea 27908
ad6717df 27909stage1-start::
ce521a9c 27910 @[ -f stage_current ] && $(MAKE) `cat stage_current`-end || : ; \
d32ab992 27911 echo stage1 > stage_current ; \
7c27e184
PB
27912 echo stage1 > stage_last
27913@if bfd
ce521a9c 27914 @[ -d stage1-bfd ] || mkdir stage1-bfd; \
7c27e184
PB
27915 set stage1-bfd bfd ; @CREATE_LINK_TO_DIR@
27916@endif bfd
27917@if opcodes
ce521a9c 27918 @[ -d stage1-opcodes ] || mkdir stage1-opcodes; \
7c27e184
PB
27919 set stage1-opcodes opcodes ; @CREATE_LINK_TO_DIR@
27920@endif opcodes
27921@if binutils
ce521a9c 27922 @[ -d stage1-binutils ] || mkdir stage1-binutils; \
7c27e184
PB
27923 set stage1-binutils binutils ; @CREATE_LINK_TO_DIR@
27924@endif binutils
27925@if gas
ce521a9c 27926 @[ -d stage1-gas ] || mkdir stage1-gas; \
7c27e184
PB
27927 set stage1-gas gas ; @CREATE_LINK_TO_DIR@
27928@endif gas
27929@if gcc
ce521a9c 27930 @[ -d stage1-gcc ] || mkdir stage1-gcc; \
148907ea 27931 set stage1-gcc gcc ; @CREATE_LINK_TO_DIR@
7c27e184
PB
27932@endif gcc
27933@if intl
ce521a9c 27934 @[ -d stage1-intl ] || mkdir stage1-intl; \
7c27e184
PB
27935 set stage1-intl intl ; @CREATE_LINK_TO_DIR@
27936@endif intl
27937@if ld
ce521a9c 27938 @[ -d stage1-ld ] || mkdir stage1-ld; \
7c27e184
PB
27939 set stage1-ld ld ; @CREATE_LINK_TO_DIR@
27940@endif ld
27941@if libcpp
ce521a9c 27942 @[ -d stage1-libcpp ] || mkdir stage1-libcpp; \
7c27e184
PB
27943 set stage1-libcpp libcpp ; @CREATE_LINK_TO_DIR@
27944@endif libcpp
7c27e184 27945@if libiberty
ce521a9c 27946 @[ -d stage1-libiberty ] || mkdir stage1-libiberty; \
7c27e184
PB
27947 set stage1-libiberty libiberty ; @CREATE_LINK_TO_DIR@
27948@endif libiberty
27949@if zlib
ce521a9c 27950 @[ -d stage1-zlib ] || mkdir stage1-zlib; \
7c27e184
PB
27951 set stage1-zlib zlib ; @CREATE_LINK_TO_DIR@
27952@endif zlib
148907ea 27953
ad6717df 27954stage1-end::
ce521a9c 27955 @rm -f stage_current
7c27e184 27956@if bfd
ce521a9c 27957 @set bfd stage1-bfd ; @UNDO_LINK_TO_DIR@
7c27e184
PB
27958@endif bfd
27959@if opcodes
ce521a9c 27960 @set opcodes stage1-opcodes ; @UNDO_LINK_TO_DIR@
7c27e184
PB
27961@endif opcodes
27962@if binutils
ce521a9c 27963 @set binutils stage1-binutils ; @UNDO_LINK_TO_DIR@
7c27e184
PB
27964@endif binutils
27965@if gas
ce521a9c 27966 @set gas stage1-gas ; @UNDO_LINK_TO_DIR@
7c27e184
PB
27967@endif gas
27968@if gcc
ce521a9c 27969 @set gcc stage1-gcc ; @UNDO_LINK_TO_DIR@
7c27e184
PB
27970@endif gcc
27971@if intl
ce521a9c 27972 @set intl stage1-intl ; @UNDO_LINK_TO_DIR@
7c27e184
PB
27973@endif intl
27974@if ld
ce521a9c 27975 @set ld stage1-ld ; @UNDO_LINK_TO_DIR@
7c27e184
PB
27976@endif ld
27977@if libcpp
ce521a9c 27978 @set libcpp stage1-libcpp ; @UNDO_LINK_TO_DIR@
7c27e184 27979@endif libcpp
7c27e184 27980@if libiberty
ce521a9c 27981 @set libiberty stage1-libiberty ; @UNDO_LINK_TO_DIR@
7c27e184
PB
27982@endif libiberty
27983@if zlib
ce521a9c 27984 @set zlib stage1-zlib ; @UNDO_LINK_TO_DIR@
7c27e184 27985@endif zlib
148907ea
PB
27986
27987# Bubble a bugfix through all the stages up to stage 1. They
27988# are remade, but not reconfigured. The next stage (if any) will not
27989# be reconfigured as well.
f516a7da 27990.PHONY: stage1-bubble
ad6717df 27991stage1-bubble::
ce521a9c
PB
27992 @if test -f stage1-lean ; then \
27993 echo Skipping rebuild of stage1 ; \
27994 else \
45f366ab 27995 $(MAKE) $(RECURSE_FLAGS_TO_PASS) NOTPARALLEL= all-stage1; \
ce521a9c 27996 fi
7c27e184 27997
45f366ab 27998.PHONY: all-stage1 clean-stage1
7c27e184
PB
27999all-stage1: \
28000 maybe-all-stage1-bfd \
28001 maybe-all-stage1-opcodes \
28002 maybe-all-stage1-binutils \
28003 maybe-all-stage1-gas \
28004 maybe-all-stage1-gcc \
28005 maybe-all-stage1-intl \
28006 maybe-all-stage1-ld \
28007 maybe-all-stage1-libcpp \
7c27e184
PB
28008 maybe-all-stage1-libiberty \
28009 maybe-all-stage1-zlib
28010
45f366ab
PB
28011do-clean: clean-stage1
28012clean-stage1: \
28013 maybe-clean-stage1-bfd \
28014 maybe-clean-stage1-opcodes \
28015 maybe-clean-stage1-binutils \
28016 maybe-clean-stage1-gas \
28017 maybe-clean-stage1-gcc \
28018 maybe-clean-stage1-intl \
28019 maybe-clean-stage1-ld \
28020 maybe-clean-stage1-libcpp \
45f366ab
PB
28021 maybe-clean-stage1-libiberty \
28022 maybe-clean-stage1-zlib
28023
7c27e184 28024
ce521a9c
PB
28025.PHONY: configure-stage1-bfd maybe-configure-stage1-bfd
28026.PHONY: all-stage1-bfd maybe-all-stage1-bfd
45f366ab 28027.PHONY: clean-stage1-bfd maybe-clean-stage1-bfd
ce521a9c 28028
7c27e184
PB
28029maybe-configure-stage1-bfd:
28030maybe-all-stage1-bfd:
45f366ab 28031maybe-clean-stage1-bfd:
7c27e184
PB
28032
28033@if bfd-bootstrap
28034maybe-configure-stage1-bfd: configure-stage1-bfd
ce521a9c
PB
28035configure-stage1-bfd:
28036 @$(MAKE) stage1-start
28037 @[ -f bfd/Makefile ] && exit 0 || : ; \
2805b53a 28038 r=`${PWD_COMMAND}`; export r; \
4fc4dd12 28039 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a52a0a7f 28040 $(HOST_EXPORTS) \
7c27e184
PB
28041 echo Configuring stage 1 in bfd ; \
28042 cd bfd || exit 1; \
2805b53a
NN
28043 case $(srcdir) in \
28044 \.) \
28045 srcdiroption="--srcdir=."; \
28046 libsrcdir=".";; \
28047 /* | [A-Za-z]:[\\/]*) \
7c27e184
PB
28048 srcdiroption="--srcdir=$(srcdir)/bfd"; \
28049 libsrcdir="$$s/bfd";; \
2805b53a 28050 *) \
7c27e184
PB
28051 srcdiroption="--srcdir=../$(srcdir)/bfd"; \
28052 libsrcdir="$$s/bfd";; \
2805b53a
NN
28053 esac; \
28054 $(SHELL) $${libsrcdir}/configure \
340de83f 28055 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 28056 --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
2805b53a 28057
7c27e184
PB
28058maybe-all-stage1-bfd: all-stage1-bfd
28059all-stage1-bfd: configure-stage1-bfd
ce521a9c 28060 @$(MAKE) stage1-start
148907ea 28061 @r=`${PWD_COMMAND}`; export r; \
4fc4dd12 28062 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a52a0a7f 28063 $(HOST_EXPORTS) \
7c27e184
PB
28064 cd bfd && \
28065 $(MAKE) $(FLAGS_TO_PASS) \
ce521a9c 28066 CFLAGS="$(STAGE1_CFLAGS)"
45f366ab
PB
28067
28068maybe-clean-stage1-bfd: clean-stage1-bfd
28069clean-stage1-bfd:
28070 @[ -f bfd/Makefile ] || [ -f stage1-bfd/Makefile ] \
28071 || exit 0 ; \
28072 [ -f bfd/Makefile ] || $(MAKE) stage1-start ; \
28073 cd bfd && \
28074 $(MAKE) $(FLAGS_TO_PASS) \
28075 CFLAGS="$(STAGE1_CFLAGS)" clean
7c27e184
PB
28076@endif bfd-bootstrap
28077
45f366ab 28078
ce521a9c
PB
28079.PHONY: configure-stage1-opcodes maybe-configure-stage1-opcodes
28080.PHONY: all-stage1-opcodes maybe-all-stage1-opcodes
45f366ab 28081.PHONY: clean-stage1-opcodes maybe-clean-stage1-opcodes
ce521a9c 28082
7c27e184
PB
28083maybe-configure-stage1-opcodes:
28084maybe-all-stage1-opcodes:
45f366ab 28085maybe-clean-stage1-opcodes:
7c27e184
PB
28086
28087@if opcodes-bootstrap
28088maybe-configure-stage1-opcodes: configure-stage1-opcodes
ce521a9c
PB
28089configure-stage1-opcodes:
28090 @$(MAKE) stage1-start
28091 @[ -f opcodes/Makefile ] && exit 0 || : ; \
2805b53a 28092 r=`${PWD_COMMAND}`; export r; \
4fc4dd12 28093 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7c27e184
PB
28094 $(HOST_EXPORTS) \
28095 echo Configuring stage 1 in opcodes ; \
28096 cd opcodes || exit 1; \
2805b53a
NN
28097 case $(srcdir) in \
28098 \.) \
28099 srcdiroption="--srcdir=."; \
28100 libsrcdir=".";; \
28101 /* | [A-Za-z]:[\\/]*) \
7c27e184
PB
28102 srcdiroption="--srcdir=$(srcdir)/opcodes"; \
28103 libsrcdir="$$s/opcodes";; \
2805b53a 28104 *) \
7c27e184
PB
28105 srcdiroption="--srcdir=../$(srcdir)/opcodes"; \
28106 libsrcdir="$$s/opcodes";; \
2805b53a
NN
28107 esac; \
28108 $(SHELL) $${libsrcdir}/configure \
148907ea 28109 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 28110 --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
2805b53a 28111
7c27e184
PB
28112maybe-all-stage1-opcodes: all-stage1-opcodes
28113all-stage1-opcodes: configure-stage1-opcodes
ce521a9c 28114 @$(MAKE) stage1-start
148907ea 28115 @r=`${PWD_COMMAND}`; export r; \
4fc4dd12 28116 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7c27e184
PB
28117 $(HOST_EXPORTS) \
28118 cd opcodes && \
28119 $(MAKE) $(FLAGS_TO_PASS) \
ce521a9c 28120 CFLAGS="$(STAGE1_CFLAGS)"
45f366ab
PB
28121
28122maybe-clean-stage1-opcodes: clean-stage1-opcodes
28123clean-stage1-opcodes:
28124 @[ -f opcodes/Makefile ] || [ -f stage1-opcodes/Makefile ] \
28125 || exit 0 ; \
28126 [ -f opcodes/Makefile ] || $(MAKE) stage1-start ; \
28127 cd opcodes && \
28128 $(MAKE) $(FLAGS_TO_PASS) \
28129 CFLAGS="$(STAGE1_CFLAGS)" clean
7c27e184
PB
28130@endif opcodes-bootstrap
28131
45f366ab 28132
ce521a9c
PB
28133.PHONY: configure-stage1-binutils maybe-configure-stage1-binutils
28134.PHONY: all-stage1-binutils maybe-all-stage1-binutils
45f366ab 28135.PHONY: clean-stage1-binutils maybe-clean-stage1-binutils
ce521a9c 28136
7c27e184
PB
28137maybe-configure-stage1-binutils:
28138maybe-all-stage1-binutils:
45f366ab 28139maybe-clean-stage1-binutils:
7c27e184
PB
28140
28141@if binutils-bootstrap
28142maybe-configure-stage1-binutils: configure-stage1-binutils
ce521a9c
PB
28143configure-stage1-binutils:
28144 @$(MAKE) stage1-start
28145 @[ -f binutils/Makefile ] && exit 0 || : ; \
7c27e184
PB
28146 r=`${PWD_COMMAND}`; export r; \
28147 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28148 $(HOST_EXPORTS) \
28149 echo Configuring stage 1 in binutils ; \
28150 cd binutils || exit 1; \
28151 case $(srcdir) in \
28152 \.) \
28153 srcdiroption="--srcdir=."; \
28154 libsrcdir=".";; \
28155 /* | [A-Za-z]:[\\/]*) \
28156 srcdiroption="--srcdir=$(srcdir)/binutils"; \
28157 libsrcdir="$$s/binutils";; \
28158 *) \
28159 srcdiroption="--srcdir=../$(srcdir)/binutils"; \
28160 libsrcdir="$$s/binutils";; \
28161 esac; \
28162 $(SHELL) $${libsrcdir}/configure \
28163 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 28164 --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
7c27e184
PB
28165
28166maybe-all-stage1-binutils: all-stage1-binutils
28167all-stage1-binutils: configure-stage1-binutils
ce521a9c 28168 @$(MAKE) stage1-start
7c27e184
PB
28169 @r=`${PWD_COMMAND}`; export r; \
28170 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28171 $(HOST_EXPORTS) \
28172 cd binutils && \
28173 $(MAKE) $(FLAGS_TO_PASS) \
ce521a9c 28174 CFLAGS="$(STAGE1_CFLAGS)"
45f366ab
PB
28175
28176maybe-clean-stage1-binutils: clean-stage1-binutils
28177clean-stage1-binutils:
28178 @[ -f binutils/Makefile ] || [ -f stage1-binutils/Makefile ] \
28179 || exit 0 ; \
28180 [ -f binutils/Makefile ] || $(MAKE) stage1-start ; \
28181 cd binutils && \
28182 $(MAKE) $(FLAGS_TO_PASS) \
28183 CFLAGS="$(STAGE1_CFLAGS)" clean
7c27e184
PB
28184@endif binutils-bootstrap
28185
45f366ab 28186
ce521a9c
PB
28187.PHONY: configure-stage1-gas maybe-configure-stage1-gas
28188.PHONY: all-stage1-gas maybe-all-stage1-gas
45f366ab 28189.PHONY: clean-stage1-gas maybe-clean-stage1-gas
ce521a9c 28190
7c27e184
PB
28191maybe-configure-stage1-gas:
28192maybe-all-stage1-gas:
45f366ab 28193maybe-clean-stage1-gas:
7c27e184
PB
28194
28195@if gas-bootstrap
28196maybe-configure-stage1-gas: configure-stage1-gas
ce521a9c
PB
28197configure-stage1-gas:
28198 @$(MAKE) stage1-start
28199 @[ -f gas/Makefile ] && exit 0 || : ; \
7c27e184
PB
28200 r=`${PWD_COMMAND}`; export r; \
28201 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28202 $(HOST_EXPORTS) \
28203 echo Configuring stage 1 in gas ; \
28204 cd gas || exit 1; \
28205 case $(srcdir) in \
28206 \.) \
28207 srcdiroption="--srcdir=."; \
28208 libsrcdir=".";; \
28209 /* | [A-Za-z]:[\\/]*) \
28210 srcdiroption="--srcdir=$(srcdir)/gas"; \
28211 libsrcdir="$$s/gas";; \
28212 *) \
28213 srcdiroption="--srcdir=../$(srcdir)/gas"; \
28214 libsrcdir="$$s/gas";; \
28215 esac; \
28216 $(SHELL) $${libsrcdir}/configure \
28217 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 28218 --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
7c27e184
PB
28219
28220maybe-all-stage1-gas: all-stage1-gas
28221all-stage1-gas: configure-stage1-gas
ce521a9c 28222 @$(MAKE) stage1-start
7c27e184
PB
28223 @r=`${PWD_COMMAND}`; export r; \
28224 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28225 $(HOST_EXPORTS) \
28226 cd gas && \
28227 $(MAKE) $(FLAGS_TO_PASS) \
ce521a9c 28228 CFLAGS="$(STAGE1_CFLAGS)"
45f366ab
PB
28229
28230maybe-clean-stage1-gas: clean-stage1-gas
28231clean-stage1-gas:
28232 @[ -f gas/Makefile ] || [ -f stage1-gas/Makefile ] \
28233 || exit 0 ; \
28234 [ -f gas/Makefile ] || $(MAKE) stage1-start ; \
28235 cd gas && \
28236 $(MAKE) $(FLAGS_TO_PASS) \
28237 CFLAGS="$(STAGE1_CFLAGS)" clean
7c27e184
PB
28238@endif gas-bootstrap
28239
45f366ab 28240
ce521a9c
PB
28241.PHONY: configure-stage1-gcc maybe-configure-stage1-gcc
28242.PHONY: all-stage1-gcc maybe-all-stage1-gcc
45f366ab 28243.PHONY: clean-stage1-gcc maybe-clean-stage1-gcc
ce521a9c 28244
7c27e184
PB
28245maybe-configure-stage1-gcc:
28246maybe-all-stage1-gcc:
45f366ab 28247maybe-clean-stage1-gcc:
7c27e184
PB
28248
28249@if gcc-bootstrap
28250maybe-configure-stage1-gcc: configure-stage1-gcc
ce521a9c
PB
28251configure-stage1-gcc:
28252 @$(MAKE) stage1-start
28253 @[ -f gcc/Makefile ] && exit 0 || : ; \
7c27e184
PB
28254 r=`${PWD_COMMAND}`; export r; \
28255 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28256 $(HOST_EXPORTS) \
28257 echo Configuring stage 1 in gcc ; \
28258 cd gcc || exit 1; \
28259 case $(srcdir) in \
28260 \.) \
28261 srcdiroption="--srcdir=."; \
28262 libsrcdir=".";; \
28263 /* | [A-Za-z]:[\\/]*) \
28264 srcdiroption="--srcdir=$(srcdir)/gcc"; \
28265 libsrcdir="$$s/gcc";; \
28266 *) \
28267 srcdiroption="--srcdir=../$(srcdir)/gcc"; \
28268 libsrcdir="$$s/gcc";; \
28269 esac; \
28270 $(SHELL) $${libsrcdir}/configure \
28271 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 28272 --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
7c27e184
PB
28273
28274maybe-all-stage1-gcc: all-stage1-gcc
28275all-stage1-gcc: configure-stage1-gcc
ce521a9c 28276 @$(MAKE) stage1-start
7c27e184
PB
28277 @r=`${PWD_COMMAND}`; export r; \
28278 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28279 $(HOST_EXPORTS) \
28280 cd gcc && \
28281 $(MAKE) $(FLAGS_TO_PASS) \
ce521a9c 28282 CFLAGS="$(STAGE1_CFLAGS)" $(EXTRA_GCC_FLAGS)
45f366ab
PB
28283
28284maybe-clean-stage1-gcc: clean-stage1-gcc
28285clean-stage1-gcc:
28286 @[ -f gcc/Makefile ] || [ -f stage1-gcc/Makefile ] \
28287 || exit 0 ; \
28288 [ -f gcc/Makefile ] || $(MAKE) stage1-start ; \
28289 cd gcc && \
28290 $(MAKE) $(FLAGS_TO_PASS) \
28291 CFLAGS="$(STAGE1_CFLAGS)" $(EXTRA_GCC_FLAGS) clean
7c27e184
PB
28292@endif gcc-bootstrap
28293
45f366ab 28294
ce521a9c
PB
28295.PHONY: configure-stage1-intl maybe-configure-stage1-intl
28296.PHONY: all-stage1-intl maybe-all-stage1-intl
45f366ab 28297.PHONY: clean-stage1-intl maybe-clean-stage1-intl
ce521a9c 28298
7c27e184
PB
28299maybe-configure-stage1-intl:
28300maybe-all-stage1-intl:
45f366ab 28301maybe-clean-stage1-intl:
7c27e184
PB
28302
28303@if intl-bootstrap
28304maybe-configure-stage1-intl: configure-stage1-intl
ce521a9c
PB
28305configure-stage1-intl:
28306 @$(MAKE) stage1-start
28307 @[ -f intl/Makefile ] && exit 0 || : ; \
7c27e184
PB
28308 r=`${PWD_COMMAND}`; export r; \
28309 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28310 $(HOST_EXPORTS) \
28311 echo Configuring stage 1 in intl ; \
28312 cd intl || exit 1; \
28313 case $(srcdir) in \
28314 \.) \
28315 srcdiroption="--srcdir=."; \
28316 libsrcdir=".";; \
28317 /* | [A-Za-z]:[\\/]*) \
28318 srcdiroption="--srcdir=$(srcdir)/intl"; \
28319 libsrcdir="$$s/intl";; \
28320 *) \
28321 srcdiroption="--srcdir=../$(srcdir)/intl"; \
28322 libsrcdir="$$s/intl";; \
28323 esac; \
28324 $(SHELL) $${libsrcdir}/configure \
28325 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 28326 --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
7c27e184
PB
28327
28328maybe-all-stage1-intl: all-stage1-intl
28329all-stage1-intl: configure-stage1-intl
ce521a9c 28330 @$(MAKE) stage1-start
7c27e184
PB
28331 @r=`${PWD_COMMAND}`; export r; \
28332 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28333 $(HOST_EXPORTS) \
28334 cd intl && \
28335 $(MAKE) $(FLAGS_TO_PASS) \
ce521a9c 28336 CFLAGS="$(STAGE1_CFLAGS)"
45f366ab
PB
28337
28338maybe-clean-stage1-intl: clean-stage1-intl
28339clean-stage1-intl:
28340 @[ -f intl/Makefile ] || [ -f stage1-intl/Makefile ] \
28341 || exit 0 ; \
28342 [ -f intl/Makefile ] || $(MAKE) stage1-start ; \
28343 cd intl && \
28344 $(MAKE) $(FLAGS_TO_PASS) \
28345 CFLAGS="$(STAGE1_CFLAGS)" clean
7c27e184
PB
28346@endif intl-bootstrap
28347
45f366ab 28348
ce521a9c
PB
28349.PHONY: configure-stage1-ld maybe-configure-stage1-ld
28350.PHONY: all-stage1-ld maybe-all-stage1-ld
45f366ab 28351.PHONY: clean-stage1-ld maybe-clean-stage1-ld
ce521a9c 28352
7c27e184
PB
28353maybe-configure-stage1-ld:
28354maybe-all-stage1-ld:
45f366ab 28355maybe-clean-stage1-ld:
7c27e184
PB
28356
28357@if ld-bootstrap
28358maybe-configure-stage1-ld: configure-stage1-ld
ce521a9c
PB
28359configure-stage1-ld:
28360 @$(MAKE) stage1-start
28361 @[ -f ld/Makefile ] && exit 0 || : ; \
7c27e184
PB
28362 r=`${PWD_COMMAND}`; export r; \
28363 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28364 $(HOST_EXPORTS) \
28365 echo Configuring stage 1 in ld ; \
28366 cd ld || exit 1; \
28367 case $(srcdir) in \
28368 \.) \
28369 srcdiroption="--srcdir=."; \
28370 libsrcdir=".";; \
28371 /* | [A-Za-z]:[\\/]*) \
28372 srcdiroption="--srcdir=$(srcdir)/ld"; \
28373 libsrcdir="$$s/ld";; \
28374 *) \
28375 srcdiroption="--srcdir=../$(srcdir)/ld"; \
28376 libsrcdir="$$s/ld";; \
28377 esac; \
28378 $(SHELL) $${libsrcdir}/configure \
28379 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 28380 --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
7c27e184
PB
28381
28382maybe-all-stage1-ld: all-stage1-ld
28383all-stage1-ld: configure-stage1-ld
ce521a9c 28384 @$(MAKE) stage1-start
7c27e184
PB
28385 @r=`${PWD_COMMAND}`; export r; \
28386 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28387 $(HOST_EXPORTS) \
28388 cd ld && \
28389 $(MAKE) $(FLAGS_TO_PASS) \
ce521a9c 28390 CFLAGS="$(STAGE1_CFLAGS)"
45f366ab
PB
28391
28392maybe-clean-stage1-ld: clean-stage1-ld
28393clean-stage1-ld:
28394 @[ -f ld/Makefile ] || [ -f stage1-ld/Makefile ] \
28395 || exit 0 ; \
28396 [ -f ld/Makefile ] || $(MAKE) stage1-start ; \
28397 cd ld && \
28398 $(MAKE) $(FLAGS_TO_PASS) \
28399 CFLAGS="$(STAGE1_CFLAGS)" clean
7c27e184
PB
28400@endif ld-bootstrap
28401
45f366ab 28402
ce521a9c
PB
28403.PHONY: configure-stage1-libcpp maybe-configure-stage1-libcpp
28404.PHONY: all-stage1-libcpp maybe-all-stage1-libcpp
45f366ab 28405.PHONY: clean-stage1-libcpp maybe-clean-stage1-libcpp
ce521a9c 28406
7c27e184
PB
28407maybe-configure-stage1-libcpp:
28408maybe-all-stage1-libcpp:
45f366ab 28409maybe-clean-stage1-libcpp:
7c27e184
PB
28410
28411@if libcpp-bootstrap
28412maybe-configure-stage1-libcpp: configure-stage1-libcpp
ce521a9c
PB
28413configure-stage1-libcpp:
28414 @$(MAKE) stage1-start
28415 @[ -f libcpp/Makefile ] && exit 0 || : ; \
7c27e184
PB
28416 r=`${PWD_COMMAND}`; export r; \
28417 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28418 $(HOST_EXPORTS) \
28419 echo Configuring stage 1 in libcpp ; \
28420 cd libcpp || exit 1; \
28421 case $(srcdir) in \
28422 \.) \
28423 srcdiroption="--srcdir=."; \
28424 libsrcdir=".";; \
28425 /* | [A-Za-z]:[\\/]*) \
28426 srcdiroption="--srcdir=$(srcdir)/libcpp"; \
28427 libsrcdir="$$s/libcpp";; \
28428 *) \
28429 srcdiroption="--srcdir=../$(srcdir)/libcpp"; \
28430 libsrcdir="$$s/libcpp";; \
28431 esac; \
28432 $(SHELL) $${libsrcdir}/configure \
28433 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 28434 --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
7c27e184
PB
28435
28436maybe-all-stage1-libcpp: all-stage1-libcpp
28437all-stage1-libcpp: configure-stage1-libcpp
ce521a9c 28438 @$(MAKE) stage1-start
7c27e184
PB
28439 @r=`${PWD_COMMAND}`; export r; \
28440 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28441 $(HOST_EXPORTS) \
28442 cd libcpp && \
28443 $(MAKE) $(FLAGS_TO_PASS) \
ce521a9c 28444 CFLAGS="$(STAGE1_CFLAGS)"
45f366ab
PB
28445
28446maybe-clean-stage1-libcpp: clean-stage1-libcpp
28447clean-stage1-libcpp:
28448 @[ -f libcpp/Makefile ] || [ -f stage1-libcpp/Makefile ] \
28449 || exit 0 ; \
28450 [ -f libcpp/Makefile ] || $(MAKE) stage1-start ; \
28451 cd libcpp && \
28452 $(MAKE) $(FLAGS_TO_PASS) \
28453 CFLAGS="$(STAGE1_CFLAGS)" clean
7c27e184
PB
28454@endif libcpp-bootstrap
28455
45f366ab 28456
ce521a9c
PB
28457.PHONY: configure-stage1-libiberty maybe-configure-stage1-libiberty
28458.PHONY: all-stage1-libiberty maybe-all-stage1-libiberty
45f366ab 28459.PHONY: clean-stage1-libiberty maybe-clean-stage1-libiberty
ce521a9c 28460
7c27e184
PB
28461maybe-configure-stage1-libiberty:
28462maybe-all-stage1-libiberty:
45f366ab 28463maybe-clean-stage1-libiberty:
7c27e184
PB
28464
28465@if libiberty-bootstrap
28466maybe-configure-stage1-libiberty: configure-stage1-libiberty
ce521a9c
PB
28467configure-stage1-libiberty:
28468 @$(MAKE) stage1-start
28469 @[ -f libiberty/Makefile ] && exit 0 || : ; \
7c27e184
PB
28470 r=`${PWD_COMMAND}`; export r; \
28471 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28472 $(HOST_EXPORTS) \
28473 echo Configuring stage 1 in libiberty ; \
28474 cd libiberty || exit 1; \
28475 case $(srcdir) in \
28476 \.) \
28477 srcdiroption="--srcdir=."; \
28478 libsrcdir=".";; \
28479 /* | [A-Za-z]:[\\/]*) \
28480 srcdiroption="--srcdir=$(srcdir)/libiberty"; \
28481 libsrcdir="$$s/libiberty";; \
28482 *) \
28483 srcdiroption="--srcdir=../$(srcdir)/libiberty"; \
28484 libsrcdir="$$s/libiberty";; \
28485 esac; \
28486 $(SHELL) $${libsrcdir}/configure \
28487 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 28488 --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
7c27e184
PB
28489
28490maybe-all-stage1-libiberty: all-stage1-libiberty
28491all-stage1-libiberty: configure-stage1-libiberty
ce521a9c 28492 @$(MAKE) stage1-start
7c27e184
PB
28493 @r=`${PWD_COMMAND}`; export r; \
28494 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28495 $(HOST_EXPORTS) \
28496 cd libiberty && \
28497 $(MAKE) $(FLAGS_TO_PASS) \
ce521a9c 28498 CFLAGS="$(STAGE1_CFLAGS)"
45f366ab
PB
28499
28500maybe-clean-stage1-libiberty: clean-stage1-libiberty
28501clean-stage1-libiberty:
28502 @[ -f libiberty/Makefile ] || [ -f stage1-libiberty/Makefile ] \
28503 || exit 0 ; \
28504 [ -f libiberty/Makefile ] || $(MAKE) stage1-start ; \
28505 cd libiberty && \
28506 $(MAKE) $(FLAGS_TO_PASS) \
28507 CFLAGS="$(STAGE1_CFLAGS)" clean
7c27e184
PB
28508@endif libiberty-bootstrap
28509
45f366ab 28510
ce521a9c
PB
28511.PHONY: configure-stage1-zlib maybe-configure-stage1-zlib
28512.PHONY: all-stage1-zlib maybe-all-stage1-zlib
45f366ab 28513.PHONY: clean-stage1-zlib maybe-clean-stage1-zlib
ce521a9c 28514
7c27e184
PB
28515maybe-configure-stage1-zlib:
28516maybe-all-stage1-zlib:
45f366ab 28517maybe-clean-stage1-zlib:
7c27e184
PB
28518
28519@if zlib-bootstrap
28520maybe-configure-stage1-zlib: configure-stage1-zlib
ce521a9c
PB
28521configure-stage1-zlib:
28522 @$(MAKE) stage1-start
28523 @[ -f zlib/Makefile ] && exit 0 || : ; \
7c27e184
PB
28524 r=`${PWD_COMMAND}`; export r; \
28525 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28526 $(HOST_EXPORTS) \
28527 echo Configuring stage 1 in zlib ; \
28528 cd zlib || exit 1; \
28529 case $(srcdir) in \
28530 \.) \
28531 srcdiroption="--srcdir=."; \
28532 libsrcdir=".";; \
28533 /* | [A-Za-z]:[\\/]*) \
28534 srcdiroption="--srcdir=$(srcdir)/zlib"; \
28535 libsrcdir="$$s/zlib";; \
28536 *) \
28537 srcdiroption="--srcdir=../$(srcdir)/zlib"; \
28538 libsrcdir="$$s/zlib";; \
28539 esac; \
28540 $(SHELL) $${libsrcdir}/configure \
28541 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 28542 --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
7c27e184
PB
28543
28544maybe-all-stage1-zlib: all-stage1-zlib
28545all-stage1-zlib: configure-stage1-zlib
ce521a9c 28546 @$(MAKE) stage1-start
7c27e184
PB
28547 @r=`${PWD_COMMAND}`; export r; \
28548 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28549 $(HOST_EXPORTS) \
28550 cd zlib && \
28551 $(MAKE) $(FLAGS_TO_PASS) \
ce521a9c 28552 CFLAGS="$(STAGE1_CFLAGS)"
45f366ab
PB
28553
28554maybe-clean-stage1-zlib: clean-stage1-zlib
28555clean-stage1-zlib:
28556 @[ -f zlib/Makefile ] || [ -f stage1-zlib/Makefile ] \
28557 || exit 0 ; \
28558 [ -f zlib/Makefile ] || $(MAKE) stage1-start ; \
28559 cd zlib && \
28560 $(MAKE) $(FLAGS_TO_PASS) \
28561 CFLAGS="$(STAGE1_CFLAGS)" clean
7c27e184
PB
28562@endif zlib-bootstrap
28563
28564
45f366ab 28565
7c27e184
PB
28566# FIXME: Will not need to be conditional when toplevel bootstrap is the
28567# only possibility, but now it conflicts with no-bootstrap rules
28568@if gcc-bootstrap
28569
28570
28571
28572
45f366ab 28573# Rules to wipe a stage and all the following ones, also used for cleanstrap
7c27e184 28574
45f366ab 28575.PHONY: distclean-stage1
7c27e184
PB
28576distclean-stage1::
28577 [ -f stage_current ] && $(MAKE) `cat stage_current`-end || :
ce521a9c 28578 rm -rf stage1-*
7c27e184
PB
28579
28580
28581@endif gcc-bootstrap
28582
28583
28584.PHONY: stage2-start stage2-end
28585
28586stage2-start::
ce521a9c 28587 @[ -f stage_current ] && $(MAKE) `cat stage_current`-end || : ; \
7c27e184
PB
28588 echo stage2 > stage_current ; \
28589 echo stage2 > stage_last
28590@if bfd
ce521a9c 28591 @[ -d stage2-bfd ] || mkdir stage2-bfd; \
7c27e184
PB
28592 set stage2-bfd bfd ; @CREATE_LINK_TO_DIR@ ; \
28593 set stage1-bfd prev-bfd ; @CREATE_LINK_TO_DIR@
28594@endif bfd
28595@if opcodes
ce521a9c 28596 @[ -d stage2-opcodes ] || mkdir stage2-opcodes; \
7c27e184
PB
28597 set stage2-opcodes opcodes ; @CREATE_LINK_TO_DIR@ ; \
28598 set stage1-opcodes prev-opcodes ; @CREATE_LINK_TO_DIR@
28599@endif opcodes
28600@if binutils
ce521a9c 28601 @[ -d stage2-binutils ] || mkdir stage2-binutils; \
7c27e184
PB
28602 set stage2-binutils binutils ; @CREATE_LINK_TO_DIR@ ; \
28603 set stage1-binutils prev-binutils ; @CREATE_LINK_TO_DIR@
28604@endif binutils
28605@if gas
ce521a9c 28606 @[ -d stage2-gas ] || mkdir stage2-gas; \
7c27e184
PB
28607 set stage2-gas gas ; @CREATE_LINK_TO_DIR@ ; \
28608 set stage1-gas prev-gas ; @CREATE_LINK_TO_DIR@
28609@endif gas
28610@if gcc
ce521a9c 28611 @[ -d stage2-gcc ] || mkdir stage2-gcc; \
7c27e184
PB
28612 set stage2-gcc gcc ; @CREATE_LINK_TO_DIR@ ; \
28613 set stage1-gcc prev-gcc ; @CREATE_LINK_TO_DIR@
28614@endif gcc
28615@if intl
ce521a9c 28616 @[ -d stage2-intl ] || mkdir stage2-intl; \
7c27e184
PB
28617 set stage2-intl intl ; @CREATE_LINK_TO_DIR@ ; \
28618 set stage1-intl prev-intl ; @CREATE_LINK_TO_DIR@
28619@endif intl
28620@if ld
ce521a9c 28621 @[ -d stage2-ld ] || mkdir stage2-ld; \
7c27e184
PB
28622 set stage2-ld ld ; @CREATE_LINK_TO_DIR@ ; \
28623 set stage1-ld prev-ld ; @CREATE_LINK_TO_DIR@
28624@endif ld
28625@if libcpp
ce521a9c 28626 @[ -d stage2-libcpp ] || mkdir stage2-libcpp; \
7c27e184
PB
28627 set stage2-libcpp libcpp ; @CREATE_LINK_TO_DIR@ ; \
28628 set stage1-libcpp prev-libcpp ; @CREATE_LINK_TO_DIR@
28629@endif libcpp
7c27e184 28630@if libiberty
ce521a9c 28631 @[ -d stage2-libiberty ] || mkdir stage2-libiberty; \
7c27e184
PB
28632 set stage2-libiberty libiberty ; @CREATE_LINK_TO_DIR@ ; \
28633 set stage1-libiberty prev-libiberty ; @CREATE_LINK_TO_DIR@
28634@endif libiberty
28635@if zlib
ce521a9c 28636 @[ -d stage2-zlib ] || mkdir stage2-zlib; \
7c27e184
PB
28637 set stage2-zlib zlib ; @CREATE_LINK_TO_DIR@ ; \
28638 set stage1-zlib prev-zlib ; @CREATE_LINK_TO_DIR@
28639@endif zlib
28640
28641stage2-end::
ce521a9c 28642 @rm -f stage_current
7c27e184 28643@if bfd
ce521a9c 28644 @set bfd stage2-bfd ; @UNDO_LINK_TO_DIR@ ; \
7c27e184
PB
28645 set prev-bfd stage1-bfd ; @UNDO_LINK_TO_DIR@
28646@endif bfd
28647@if opcodes
ce521a9c 28648 @set opcodes stage2-opcodes ; @UNDO_LINK_TO_DIR@ ; \
7c27e184
PB
28649 set prev-opcodes stage1-opcodes ; @UNDO_LINK_TO_DIR@
28650@endif opcodes
28651@if binutils
ce521a9c 28652 @set binutils stage2-binutils ; @UNDO_LINK_TO_DIR@ ; \
7c27e184
PB
28653 set prev-binutils stage1-binutils ; @UNDO_LINK_TO_DIR@
28654@endif binutils
28655@if gas
ce521a9c 28656 @set gas stage2-gas ; @UNDO_LINK_TO_DIR@ ; \
7c27e184
PB
28657 set prev-gas stage1-gas ; @UNDO_LINK_TO_DIR@
28658@endif gas
28659@if gcc
ce521a9c 28660 @set gcc stage2-gcc ; @UNDO_LINK_TO_DIR@ ; \
7c27e184
PB
28661 set prev-gcc stage1-gcc ; @UNDO_LINK_TO_DIR@
28662@endif gcc
28663@if intl
ce521a9c 28664 @set intl stage2-intl ; @UNDO_LINK_TO_DIR@ ; \
7c27e184
PB
28665 set prev-intl stage1-intl ; @UNDO_LINK_TO_DIR@
28666@endif intl
28667@if ld
ce521a9c 28668 @set ld stage2-ld ; @UNDO_LINK_TO_DIR@ ; \
7c27e184
PB
28669 set prev-ld stage1-ld ; @UNDO_LINK_TO_DIR@
28670@endif ld
28671@if libcpp
ce521a9c 28672 @set libcpp stage2-libcpp ; @UNDO_LINK_TO_DIR@ ; \
7c27e184
PB
28673 set prev-libcpp stage1-libcpp ; @UNDO_LINK_TO_DIR@
28674@endif libcpp
7c27e184 28675@if libiberty
ce521a9c 28676 @set libiberty stage2-libiberty ; @UNDO_LINK_TO_DIR@ ; \
7c27e184
PB
28677 set prev-libiberty stage1-libiberty ; @UNDO_LINK_TO_DIR@
28678@endif libiberty
28679@if zlib
ce521a9c 28680 @set zlib stage2-zlib ; @UNDO_LINK_TO_DIR@ ; \
7c27e184
PB
28681 set prev-zlib stage1-zlib ; @UNDO_LINK_TO_DIR@
28682@endif zlib
28683
28684# Bubble a bugfix through all the stages up to stage 2. They
28685# are remade, but not reconfigured. The next stage (if any) will not
28686# be reconfigured as well.
28687.PHONY: stage2-bubble
28688stage2-bubble:: stage1-bubble
ce521a9c
PB
28689 @if test -f stage2-lean || test -f stage1-lean ; then \
28690 echo Skipping rebuild of stage2 ; \
28691 else \
45f366ab 28692 $(MAKE) $(RECURSE_FLAGS_TO_PASS) NOTPARALLEL= all-stage2; \
ce521a9c 28693 fi
7c27e184 28694
45f366ab 28695.PHONY: all-stage2 clean-stage2
7c27e184
PB
28696all-stage2: \
28697 maybe-all-stage2-bfd \
28698 maybe-all-stage2-opcodes \
28699 maybe-all-stage2-binutils \
28700 maybe-all-stage2-gas \
28701 maybe-all-stage2-gcc \
28702 maybe-all-stage2-intl \
28703 maybe-all-stage2-ld \
28704 maybe-all-stage2-libcpp \
7c27e184
PB
28705 maybe-all-stage2-libiberty \
28706 maybe-all-stage2-zlib
28707
45f366ab
PB
28708do-clean: clean-stage2
28709clean-stage2: \
28710 maybe-clean-stage2-bfd \
28711 maybe-clean-stage2-opcodes \
28712 maybe-clean-stage2-binutils \
28713 maybe-clean-stage2-gas \
28714 maybe-clean-stage2-gcc \
28715 maybe-clean-stage2-intl \
28716 maybe-clean-stage2-ld \
28717 maybe-clean-stage2-libcpp \
45f366ab
PB
28718 maybe-clean-stage2-libiberty \
28719 maybe-clean-stage2-zlib
28720
7c27e184 28721
ce521a9c
PB
28722.PHONY: configure-stage2-bfd maybe-configure-stage2-bfd
28723.PHONY: all-stage2-bfd maybe-all-stage2-bfd
45f366ab 28724.PHONY: clean-stage2-bfd maybe-clean-stage2-bfd
ce521a9c 28725
7c27e184
PB
28726maybe-configure-stage2-bfd:
28727maybe-all-stage2-bfd:
45f366ab 28728maybe-clean-stage2-bfd:
7c27e184
PB
28729
28730@if bfd-bootstrap
28731maybe-configure-stage2-bfd: configure-stage2-bfd
ce521a9c
PB
28732configure-stage2-bfd:
28733 @$(MAKE) stage2-start
28734 @[ -f bfd/Makefile ] && exit 0 || : ; \
7c27e184
PB
28735 r=`${PWD_COMMAND}`; export r; \
28736 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28737 $(STAGE_HOST_EXPORTS) \
28738 echo Configuring stage 2 in bfd ; \
28739 cd bfd || exit 1; \
28740 case $(srcdir) in \
28741 \.) \
28742 srcdiroption="--srcdir=."; \
28743 libsrcdir=".";; \
28744 /* | [A-Za-z]:[\\/]*) \
28745 srcdiroption="--srcdir=$(srcdir)/bfd"; \
28746 libsrcdir="$$s/bfd";; \
28747 *) \
28748 srcdiroption="--srcdir=../$(srcdir)/bfd"; \
28749 libsrcdir="$$s/bfd";; \
28750 esac; \
28751 $(SHELL) $${libsrcdir}/configure \
28752 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 28753 @stage2_werror_flag@
7c27e184
PB
28754
28755maybe-all-stage2-bfd: all-stage2-bfd
28756all-stage2-bfd: configure-stage2-bfd
ce521a9c 28757 @$(MAKE) stage2-start
7c27e184
PB
28758 @r=`${PWD_COMMAND}`; export r; \
28759 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28760 $(STAGE_HOST_EXPORTS) \
28761 cd bfd && \
28762 $(MAKE) $(FLAGS_TO_PASS) \
28763 $(POSTSTAGE1_FLAGS_TO_PASS) \
ce521a9c 28764
45f366ab
PB
28765
28766maybe-clean-stage2-bfd: clean-stage2-bfd
28767clean-stage2-bfd:
28768 @[ -f bfd/Makefile ] || [ -f stage2-bfd/Makefile ] \
28769 || exit 0 ; \
28770 [ -f bfd/Makefile ] || $(MAKE) stage2-start ; \
28771 cd bfd && \
28772 $(MAKE) $(FLAGS_TO_PASS) \
28773 $(POSTSTAGE1_FLAGS_TO_PASS) \
28774 clean
7c27e184
PB
28775@endif bfd-bootstrap
28776
45f366ab 28777
ce521a9c
PB
28778.PHONY: configure-stage2-opcodes maybe-configure-stage2-opcodes
28779.PHONY: all-stage2-opcodes maybe-all-stage2-opcodes
45f366ab 28780.PHONY: clean-stage2-opcodes maybe-clean-stage2-opcodes
ce521a9c 28781
7c27e184
PB
28782maybe-configure-stage2-opcodes:
28783maybe-all-stage2-opcodes:
45f366ab 28784maybe-clean-stage2-opcodes:
7c27e184
PB
28785
28786@if opcodes-bootstrap
28787maybe-configure-stage2-opcodes: configure-stage2-opcodes
ce521a9c
PB
28788configure-stage2-opcodes:
28789 @$(MAKE) stage2-start
28790 @[ -f opcodes/Makefile ] && exit 0 || : ; \
7c27e184
PB
28791 r=`${PWD_COMMAND}`; export r; \
28792 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28793 $(STAGE_HOST_EXPORTS) \
28794 echo Configuring stage 2 in opcodes ; \
28795 cd opcodes || exit 1; \
28796 case $(srcdir) in \
28797 \.) \
28798 srcdiroption="--srcdir=."; \
28799 libsrcdir=".";; \
28800 /* | [A-Za-z]:[\\/]*) \
28801 srcdiroption="--srcdir=$(srcdir)/opcodes"; \
28802 libsrcdir="$$s/opcodes";; \
28803 *) \
28804 srcdiroption="--srcdir=../$(srcdir)/opcodes"; \
28805 libsrcdir="$$s/opcodes";; \
28806 esac; \
28807 $(SHELL) $${libsrcdir}/configure \
28808 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 28809 @stage2_werror_flag@
7c27e184
PB
28810
28811maybe-all-stage2-opcodes: all-stage2-opcodes
28812all-stage2-opcodes: configure-stage2-opcodes
ce521a9c 28813 @$(MAKE) stage2-start
7c27e184
PB
28814 @r=`${PWD_COMMAND}`; export r; \
28815 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28816 $(STAGE_HOST_EXPORTS) \
28817 cd opcodes && \
28818 $(MAKE) $(FLAGS_TO_PASS) \
28819 $(POSTSTAGE1_FLAGS_TO_PASS) \
ce521a9c 28820
45f366ab
PB
28821
28822maybe-clean-stage2-opcodes: clean-stage2-opcodes
28823clean-stage2-opcodes:
28824 @[ -f opcodes/Makefile ] || [ -f stage2-opcodes/Makefile ] \
28825 || exit 0 ; \
28826 [ -f opcodes/Makefile ] || $(MAKE) stage2-start ; \
28827 cd opcodes && \
28828 $(MAKE) $(FLAGS_TO_PASS) \
28829 $(POSTSTAGE1_FLAGS_TO_PASS) \
28830 clean
7c27e184
PB
28831@endif opcodes-bootstrap
28832
45f366ab 28833
ce521a9c
PB
28834.PHONY: configure-stage2-binutils maybe-configure-stage2-binutils
28835.PHONY: all-stage2-binutils maybe-all-stage2-binutils
45f366ab 28836.PHONY: clean-stage2-binutils maybe-clean-stage2-binutils
ce521a9c 28837
7c27e184
PB
28838maybe-configure-stage2-binutils:
28839maybe-all-stage2-binutils:
45f366ab 28840maybe-clean-stage2-binutils:
7c27e184
PB
28841
28842@if binutils-bootstrap
28843maybe-configure-stage2-binutils: configure-stage2-binutils
ce521a9c
PB
28844configure-stage2-binutils:
28845 @$(MAKE) stage2-start
28846 @[ -f binutils/Makefile ] && exit 0 || : ; \
7c27e184
PB
28847 r=`${PWD_COMMAND}`; export r; \
28848 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28849 $(STAGE_HOST_EXPORTS) \
28850 echo Configuring stage 2 in binutils ; \
28851 cd binutils || exit 1; \
28852 case $(srcdir) in \
28853 \.) \
28854 srcdiroption="--srcdir=."; \
28855 libsrcdir=".";; \
28856 /* | [A-Za-z]:[\\/]*) \
28857 srcdiroption="--srcdir=$(srcdir)/binutils"; \
28858 libsrcdir="$$s/binutils";; \
28859 *) \
28860 srcdiroption="--srcdir=../$(srcdir)/binutils"; \
28861 libsrcdir="$$s/binutils";; \
28862 esac; \
28863 $(SHELL) $${libsrcdir}/configure \
28864 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 28865 @stage2_werror_flag@
7c27e184
PB
28866
28867maybe-all-stage2-binutils: all-stage2-binutils
28868all-stage2-binutils: configure-stage2-binutils
ce521a9c 28869 @$(MAKE) stage2-start
7c27e184
PB
28870 @r=`${PWD_COMMAND}`; export r; \
28871 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28872 $(STAGE_HOST_EXPORTS) \
28873 cd binutils && \
28874 $(MAKE) $(FLAGS_TO_PASS) \
28875 $(POSTSTAGE1_FLAGS_TO_PASS) \
ce521a9c 28876
45f366ab
PB
28877
28878maybe-clean-stage2-binutils: clean-stage2-binutils
28879clean-stage2-binutils:
28880 @[ -f binutils/Makefile ] || [ -f stage2-binutils/Makefile ] \
28881 || exit 0 ; \
28882 [ -f binutils/Makefile ] || $(MAKE) stage2-start ; \
28883 cd binutils && \
28884 $(MAKE) $(FLAGS_TO_PASS) \
28885 $(POSTSTAGE1_FLAGS_TO_PASS) \
28886 clean
7c27e184
PB
28887@endif binutils-bootstrap
28888
45f366ab 28889
ce521a9c
PB
28890.PHONY: configure-stage2-gas maybe-configure-stage2-gas
28891.PHONY: all-stage2-gas maybe-all-stage2-gas
45f366ab 28892.PHONY: clean-stage2-gas maybe-clean-stage2-gas
ce521a9c 28893
7c27e184
PB
28894maybe-configure-stage2-gas:
28895maybe-all-stage2-gas:
45f366ab 28896maybe-clean-stage2-gas:
7c27e184
PB
28897
28898@if gas-bootstrap
28899maybe-configure-stage2-gas: configure-stage2-gas
ce521a9c
PB
28900configure-stage2-gas:
28901 @$(MAKE) stage2-start
28902 @[ -f gas/Makefile ] && exit 0 || : ; \
7c27e184
PB
28903 r=`${PWD_COMMAND}`; export r; \
28904 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28905 $(STAGE_HOST_EXPORTS) \
28906 echo Configuring stage 2 in gas ; \
28907 cd gas || exit 1; \
28908 case $(srcdir) in \
28909 \.) \
28910 srcdiroption="--srcdir=."; \
28911 libsrcdir=".";; \
28912 /* | [A-Za-z]:[\\/]*) \
28913 srcdiroption="--srcdir=$(srcdir)/gas"; \
28914 libsrcdir="$$s/gas";; \
28915 *) \
28916 srcdiroption="--srcdir=../$(srcdir)/gas"; \
28917 libsrcdir="$$s/gas";; \
28918 esac; \
28919 $(SHELL) $${libsrcdir}/configure \
28920 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 28921 @stage2_werror_flag@
7c27e184
PB
28922
28923maybe-all-stage2-gas: all-stage2-gas
28924all-stage2-gas: configure-stage2-gas
ce521a9c 28925 @$(MAKE) stage2-start
7c27e184
PB
28926 @r=`${PWD_COMMAND}`; export r; \
28927 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28928 $(STAGE_HOST_EXPORTS) \
28929 cd gas && \
28930 $(MAKE) $(FLAGS_TO_PASS) \
28931 $(POSTSTAGE1_FLAGS_TO_PASS) \
ce521a9c 28932
45f366ab
PB
28933
28934maybe-clean-stage2-gas: clean-stage2-gas
28935clean-stage2-gas:
28936 @[ -f gas/Makefile ] || [ -f stage2-gas/Makefile ] \
28937 || exit 0 ; \
28938 [ -f gas/Makefile ] || $(MAKE) stage2-start ; \
28939 cd gas && \
28940 $(MAKE) $(FLAGS_TO_PASS) \
28941 $(POSTSTAGE1_FLAGS_TO_PASS) \
28942 clean
7c27e184
PB
28943@endif gas-bootstrap
28944
45f366ab 28945
ce521a9c
PB
28946.PHONY: configure-stage2-gcc maybe-configure-stage2-gcc
28947.PHONY: all-stage2-gcc maybe-all-stage2-gcc
45f366ab 28948.PHONY: clean-stage2-gcc maybe-clean-stage2-gcc
ce521a9c 28949
7c27e184
PB
28950maybe-configure-stage2-gcc:
28951maybe-all-stage2-gcc:
45f366ab 28952maybe-clean-stage2-gcc:
7c27e184
PB
28953
28954@if gcc-bootstrap
28955maybe-configure-stage2-gcc: configure-stage2-gcc
ce521a9c
PB
28956configure-stage2-gcc:
28957 @$(MAKE) stage2-start
28958 @[ -f gcc/Makefile ] && exit 0 || : ; \
7c27e184
PB
28959 r=`${PWD_COMMAND}`; export r; \
28960 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28961 $(STAGE_HOST_EXPORTS) \
28962 echo Configuring stage 2 in gcc ; \
28963 cd gcc || exit 1; \
28964 case $(srcdir) in \
28965 \.) \
28966 srcdiroption="--srcdir=."; \
28967 libsrcdir=".";; \
28968 /* | [A-Za-z]:[\\/]*) \
28969 srcdiroption="--srcdir=$(srcdir)/gcc"; \
28970 libsrcdir="$$s/gcc";; \
28971 *) \
28972 srcdiroption="--srcdir=../$(srcdir)/gcc"; \
28973 libsrcdir="$$s/gcc";; \
28974 esac; \
28975 $(SHELL) $${libsrcdir}/configure \
28976 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 28977 @stage2_werror_flag@
7c27e184
PB
28978
28979maybe-all-stage2-gcc: all-stage2-gcc
28980all-stage2-gcc: configure-stage2-gcc
ce521a9c 28981 @$(MAKE) stage2-start
7c27e184
PB
28982 @r=`${PWD_COMMAND}`; export r; \
28983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28984 $(STAGE_HOST_EXPORTS) \
28985 cd gcc && \
28986 $(MAKE) $(FLAGS_TO_PASS) \
28987 $(POSTSTAGE1_FLAGS_TO_PASS) \
ce521a9c 28988 $(EXTRA_GCC_FLAGS)
45f366ab
PB
28989
28990maybe-clean-stage2-gcc: clean-stage2-gcc
28991clean-stage2-gcc:
28992 @[ -f gcc/Makefile ] || [ -f stage2-gcc/Makefile ] \
28993 || exit 0 ; \
28994 [ -f gcc/Makefile ] || $(MAKE) stage2-start ; \
28995 cd gcc && \
28996 $(MAKE) $(FLAGS_TO_PASS) \
28997 $(POSTSTAGE1_FLAGS_TO_PASS) \
28998 $(EXTRA_GCC_FLAGS) clean
7c27e184
PB
28999@endif gcc-bootstrap
29000
45f366ab 29001
ce521a9c
PB
29002.PHONY: configure-stage2-intl maybe-configure-stage2-intl
29003.PHONY: all-stage2-intl maybe-all-stage2-intl
45f366ab 29004.PHONY: clean-stage2-intl maybe-clean-stage2-intl
ce521a9c 29005
7c27e184
PB
29006maybe-configure-stage2-intl:
29007maybe-all-stage2-intl:
45f366ab 29008maybe-clean-stage2-intl:
7c27e184
PB
29009
29010@if intl-bootstrap
29011maybe-configure-stage2-intl: configure-stage2-intl
ce521a9c
PB
29012configure-stage2-intl:
29013 @$(MAKE) stage2-start
29014 @[ -f intl/Makefile ] && exit 0 || : ; \
7c27e184
PB
29015 r=`${PWD_COMMAND}`; export r; \
29016 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29017 $(STAGE_HOST_EXPORTS) \
29018 echo Configuring stage 2 in intl ; \
29019 cd intl || exit 1; \
29020 case $(srcdir) in \
29021 \.) \
29022 srcdiroption="--srcdir=."; \
29023 libsrcdir=".";; \
29024 /* | [A-Za-z]:[\\/]*) \
29025 srcdiroption="--srcdir=$(srcdir)/intl"; \
29026 libsrcdir="$$s/intl";; \
29027 *) \
29028 srcdiroption="--srcdir=../$(srcdir)/intl"; \
29029 libsrcdir="$$s/intl";; \
29030 esac; \
29031 $(SHELL) $${libsrcdir}/configure \
29032 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 29033 @stage2_werror_flag@
7c27e184
PB
29034
29035maybe-all-stage2-intl: all-stage2-intl
29036all-stage2-intl: configure-stage2-intl
ce521a9c 29037 @$(MAKE) stage2-start
7c27e184
PB
29038 @r=`${PWD_COMMAND}`; export r; \
29039 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29040 $(STAGE_HOST_EXPORTS) \
29041 cd intl && \
29042 $(MAKE) $(FLAGS_TO_PASS) \
29043 $(POSTSTAGE1_FLAGS_TO_PASS) \
ce521a9c 29044
45f366ab
PB
29045
29046maybe-clean-stage2-intl: clean-stage2-intl
29047clean-stage2-intl:
29048 @[ -f intl/Makefile ] || [ -f stage2-intl/Makefile ] \
29049 || exit 0 ; \
29050 [ -f intl/Makefile ] || $(MAKE) stage2-start ; \
29051 cd intl && \
29052 $(MAKE) $(FLAGS_TO_PASS) \
29053 $(POSTSTAGE1_FLAGS_TO_PASS) \
29054 clean
7c27e184
PB
29055@endif intl-bootstrap
29056
45f366ab 29057
ce521a9c
PB
29058.PHONY: configure-stage2-ld maybe-configure-stage2-ld
29059.PHONY: all-stage2-ld maybe-all-stage2-ld
45f366ab 29060.PHONY: clean-stage2-ld maybe-clean-stage2-ld
ce521a9c 29061
7c27e184
PB
29062maybe-configure-stage2-ld:
29063maybe-all-stage2-ld:
45f366ab 29064maybe-clean-stage2-ld:
7c27e184
PB
29065
29066@if ld-bootstrap
29067maybe-configure-stage2-ld: configure-stage2-ld
ce521a9c
PB
29068configure-stage2-ld:
29069 @$(MAKE) stage2-start
29070 @[ -f ld/Makefile ] && exit 0 || : ; \
7c27e184
PB
29071 r=`${PWD_COMMAND}`; export r; \
29072 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29073 $(STAGE_HOST_EXPORTS) \
29074 echo Configuring stage 2 in ld ; \
29075 cd ld || exit 1; \
29076 case $(srcdir) in \
29077 \.) \
29078 srcdiroption="--srcdir=."; \
29079 libsrcdir=".";; \
29080 /* | [A-Za-z]:[\\/]*) \
29081 srcdiroption="--srcdir=$(srcdir)/ld"; \
29082 libsrcdir="$$s/ld";; \
29083 *) \
29084 srcdiroption="--srcdir=../$(srcdir)/ld"; \
29085 libsrcdir="$$s/ld";; \
29086 esac; \
29087 $(SHELL) $${libsrcdir}/configure \
29088 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 29089 @stage2_werror_flag@
7c27e184
PB
29090
29091maybe-all-stage2-ld: all-stage2-ld
29092all-stage2-ld: configure-stage2-ld
ce521a9c 29093 @$(MAKE) stage2-start
7c27e184
PB
29094 @r=`${PWD_COMMAND}`; export r; \
29095 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29096 $(STAGE_HOST_EXPORTS) \
29097 cd ld && \
29098 $(MAKE) $(FLAGS_TO_PASS) \
29099 $(POSTSTAGE1_FLAGS_TO_PASS) \
ce521a9c 29100
45f366ab
PB
29101
29102maybe-clean-stage2-ld: clean-stage2-ld
29103clean-stage2-ld:
29104 @[ -f ld/Makefile ] || [ -f stage2-ld/Makefile ] \
29105 || exit 0 ; \
29106 [ -f ld/Makefile ] || $(MAKE) stage2-start ; \
29107 cd ld && \
29108 $(MAKE) $(FLAGS_TO_PASS) \
29109 $(POSTSTAGE1_FLAGS_TO_PASS) \
29110 clean
7c27e184
PB
29111@endif ld-bootstrap
29112
45f366ab 29113
ce521a9c
PB
29114.PHONY: configure-stage2-libcpp maybe-configure-stage2-libcpp
29115.PHONY: all-stage2-libcpp maybe-all-stage2-libcpp
45f366ab 29116.PHONY: clean-stage2-libcpp maybe-clean-stage2-libcpp
ce521a9c 29117
7c27e184
PB
29118maybe-configure-stage2-libcpp:
29119maybe-all-stage2-libcpp:
45f366ab 29120maybe-clean-stage2-libcpp:
7c27e184
PB
29121
29122@if libcpp-bootstrap
29123maybe-configure-stage2-libcpp: configure-stage2-libcpp
ce521a9c
PB
29124configure-stage2-libcpp:
29125 @$(MAKE) stage2-start
29126 @[ -f libcpp/Makefile ] && exit 0 || : ; \
7c27e184
PB
29127 r=`${PWD_COMMAND}`; export r; \
29128 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29129 $(STAGE_HOST_EXPORTS) \
29130 echo Configuring stage 2 in libcpp ; \
29131 cd libcpp || exit 1; \
29132 case $(srcdir) in \
29133 \.) \
29134 srcdiroption="--srcdir=."; \
29135 libsrcdir=".";; \
29136 /* | [A-Za-z]:[\\/]*) \
29137 srcdiroption="--srcdir=$(srcdir)/libcpp"; \
29138 libsrcdir="$$s/libcpp";; \
29139 *) \
29140 srcdiroption="--srcdir=../$(srcdir)/libcpp"; \
29141 libsrcdir="$$s/libcpp";; \
29142 esac; \
29143 $(SHELL) $${libsrcdir}/configure \
29144 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 29145 @stage2_werror_flag@
7c27e184
PB
29146
29147maybe-all-stage2-libcpp: all-stage2-libcpp
29148all-stage2-libcpp: configure-stage2-libcpp
ce521a9c 29149 @$(MAKE) stage2-start
7c27e184
PB
29150 @r=`${PWD_COMMAND}`; export r; \
29151 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29152 $(STAGE_HOST_EXPORTS) \
29153 cd libcpp && \
29154 $(MAKE) $(FLAGS_TO_PASS) \
29155 $(POSTSTAGE1_FLAGS_TO_PASS) \
ce521a9c 29156
45f366ab
PB
29157
29158maybe-clean-stage2-libcpp: clean-stage2-libcpp
29159clean-stage2-libcpp:
29160 @[ -f libcpp/Makefile ] || [ -f stage2-libcpp/Makefile ] \
29161 || exit 0 ; \
29162 [ -f libcpp/Makefile ] || $(MAKE) stage2-start ; \
29163 cd libcpp && \
29164 $(MAKE) $(FLAGS_TO_PASS) \
29165 $(POSTSTAGE1_FLAGS_TO_PASS) \
29166 clean
7c27e184
PB
29167@endif libcpp-bootstrap
29168
45f366ab 29169
ce521a9c
PB
29170.PHONY: configure-stage2-libiberty maybe-configure-stage2-libiberty
29171.PHONY: all-stage2-libiberty maybe-all-stage2-libiberty
45f366ab 29172.PHONY: clean-stage2-libiberty maybe-clean-stage2-libiberty
ce521a9c 29173
7c27e184
PB
29174maybe-configure-stage2-libiberty:
29175maybe-all-stage2-libiberty:
45f366ab 29176maybe-clean-stage2-libiberty:
7c27e184
PB
29177
29178@if libiberty-bootstrap
29179maybe-configure-stage2-libiberty: configure-stage2-libiberty
ce521a9c
PB
29180configure-stage2-libiberty:
29181 @$(MAKE) stage2-start
29182 @[ -f libiberty/Makefile ] && exit 0 || : ; \
7c27e184
PB
29183 r=`${PWD_COMMAND}`; export r; \
29184 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29185 $(STAGE_HOST_EXPORTS) \
29186 echo Configuring stage 2 in libiberty ; \
29187 cd libiberty || exit 1; \
29188 case $(srcdir) in \
29189 \.) \
29190 srcdiroption="--srcdir=."; \
29191 libsrcdir=".";; \
29192 /* | [A-Za-z]:[\\/]*) \
29193 srcdiroption="--srcdir=$(srcdir)/libiberty"; \
29194 libsrcdir="$$s/libiberty";; \
29195 *) \
29196 srcdiroption="--srcdir=../$(srcdir)/libiberty"; \
29197 libsrcdir="$$s/libiberty";; \
29198 esac; \
29199 $(SHELL) $${libsrcdir}/configure \
29200 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 29201 @stage2_werror_flag@
7c27e184
PB
29202
29203maybe-all-stage2-libiberty: all-stage2-libiberty
29204all-stage2-libiberty: configure-stage2-libiberty
ce521a9c 29205 @$(MAKE) stage2-start
7c27e184
PB
29206 @r=`${PWD_COMMAND}`; export r; \
29207 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29208 $(STAGE_HOST_EXPORTS) \
29209 cd libiberty && \
29210 $(MAKE) $(FLAGS_TO_PASS) \
29211 $(POSTSTAGE1_FLAGS_TO_PASS) \
ce521a9c 29212
45f366ab
PB
29213
29214maybe-clean-stage2-libiberty: clean-stage2-libiberty
29215clean-stage2-libiberty:
29216 @[ -f libiberty/Makefile ] || [ -f stage2-libiberty/Makefile ] \
29217 || exit 0 ; \
29218 [ -f libiberty/Makefile ] || $(MAKE) stage2-start ; \
29219 cd libiberty && \
29220 $(MAKE) $(FLAGS_TO_PASS) \
29221 $(POSTSTAGE1_FLAGS_TO_PASS) \
29222 clean
7c27e184
PB
29223@endif libiberty-bootstrap
29224
45f366ab 29225
ce521a9c
PB
29226.PHONY: configure-stage2-zlib maybe-configure-stage2-zlib
29227.PHONY: all-stage2-zlib maybe-all-stage2-zlib
45f366ab 29228.PHONY: clean-stage2-zlib maybe-clean-stage2-zlib
ce521a9c 29229
7c27e184
PB
29230maybe-configure-stage2-zlib:
29231maybe-all-stage2-zlib:
45f366ab 29232maybe-clean-stage2-zlib:
7c27e184
PB
29233
29234@if zlib-bootstrap
29235maybe-configure-stage2-zlib: configure-stage2-zlib
ce521a9c
PB
29236configure-stage2-zlib:
29237 @$(MAKE) stage2-start
29238 @[ -f zlib/Makefile ] && exit 0 || : ; \
7c27e184
PB
29239 r=`${PWD_COMMAND}`; export r; \
29240 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29241 $(STAGE_HOST_EXPORTS) \
29242 echo Configuring stage 2 in zlib ; \
29243 cd zlib || exit 1; \
29244 case $(srcdir) in \
29245 \.) \
29246 srcdiroption="--srcdir=."; \
29247 libsrcdir=".";; \
29248 /* | [A-Za-z]:[\\/]*) \
29249 srcdiroption="--srcdir=$(srcdir)/zlib"; \
29250 libsrcdir="$$s/zlib";; \
29251 *) \
29252 srcdiroption="--srcdir=../$(srcdir)/zlib"; \
29253 libsrcdir="$$s/zlib";; \
29254 esac; \
29255 $(SHELL) $${libsrcdir}/configure \
29256 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 29257 @stage2_werror_flag@
7c27e184
PB
29258
29259maybe-all-stage2-zlib: all-stage2-zlib
29260all-stage2-zlib: configure-stage2-zlib
ce521a9c 29261 @$(MAKE) stage2-start
7c27e184
PB
29262 @r=`${PWD_COMMAND}`; export r; \
29263 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29264 $(STAGE_HOST_EXPORTS) \
29265 cd zlib && \
29266 $(MAKE) $(FLAGS_TO_PASS) \
29267 $(POSTSTAGE1_FLAGS_TO_PASS) \
ce521a9c 29268
45f366ab
PB
29269
29270maybe-clean-stage2-zlib: clean-stage2-zlib
29271clean-stage2-zlib:
29272 @[ -f zlib/Makefile ] || [ -f stage2-zlib/Makefile ] \
29273 || exit 0 ; \
29274 [ -f zlib/Makefile ] || $(MAKE) stage2-start ; \
29275 cd zlib && \
29276 $(MAKE) $(FLAGS_TO_PASS) \
29277 $(POSTSTAGE1_FLAGS_TO_PASS) \
29278 clean
7c27e184
PB
29279@endif zlib-bootstrap
29280
29281
45f366ab 29282
7c27e184
PB
29283# FIXME: Will not need to be conditional when toplevel bootstrap is the
29284# only possibility, but now it conflicts with no-bootstrap rules
29285@if gcc-bootstrap
29286
29287
29288
29289.PHONY: bootstrap2
29290bootstrap2: stage2-bubble all
29291
29292
45f366ab 29293# Rules to wipe a stage and all the following ones, also used for cleanstrap
7c27e184 29294distclean-stage1:: distclean-stage2
45f366ab 29295.PHONY: distclean-stage2
7c27e184
PB
29296distclean-stage2::
29297 [ -f stage_current ] && $(MAKE) `cat stage_current`-end || :
ce521a9c 29298 rm -rf stage2-*
7c27e184
PB
29299
29300
29301@endif gcc-bootstrap
29302
29303
29304.PHONY: stage3-start stage3-end
29305
29306stage3-start::
ce521a9c 29307 @[ -f stage_current ] && $(MAKE) `cat stage_current`-end || : ; \
7c27e184
PB
29308 echo stage3 > stage_current ; \
29309 echo stage3 > stage_last
29310@if bfd
ce521a9c 29311 @[ -d stage3-bfd ] || mkdir stage3-bfd; \
7c27e184
PB
29312 set stage3-bfd bfd ; @CREATE_LINK_TO_DIR@ ; \
29313 set stage2-bfd prev-bfd ; @CREATE_LINK_TO_DIR@
29314@endif bfd
29315@if opcodes
ce521a9c 29316 @[ -d stage3-opcodes ] || mkdir stage3-opcodes; \
7c27e184
PB
29317 set stage3-opcodes opcodes ; @CREATE_LINK_TO_DIR@ ; \
29318 set stage2-opcodes prev-opcodes ; @CREATE_LINK_TO_DIR@
29319@endif opcodes
29320@if binutils
ce521a9c 29321 @[ -d stage3-binutils ] || mkdir stage3-binutils; \
7c27e184
PB
29322 set stage3-binutils binutils ; @CREATE_LINK_TO_DIR@ ; \
29323 set stage2-binutils prev-binutils ; @CREATE_LINK_TO_DIR@
29324@endif binutils
29325@if gas
ce521a9c 29326 @[ -d stage3-gas ] || mkdir stage3-gas; \
7c27e184
PB
29327 set stage3-gas gas ; @CREATE_LINK_TO_DIR@ ; \
29328 set stage2-gas prev-gas ; @CREATE_LINK_TO_DIR@
29329@endif gas
29330@if gcc
ce521a9c 29331 @[ -d stage3-gcc ] || mkdir stage3-gcc; \
7c27e184
PB
29332 set stage3-gcc gcc ; @CREATE_LINK_TO_DIR@ ; \
29333 set stage2-gcc prev-gcc ; @CREATE_LINK_TO_DIR@
29334@endif gcc
29335@if intl
ce521a9c 29336 @[ -d stage3-intl ] || mkdir stage3-intl; \
7c27e184
PB
29337 set stage3-intl intl ; @CREATE_LINK_TO_DIR@ ; \
29338 set stage2-intl prev-intl ; @CREATE_LINK_TO_DIR@
29339@endif intl
29340@if ld
ce521a9c 29341 @[ -d stage3-ld ] || mkdir stage3-ld; \
7c27e184
PB
29342 set stage3-ld ld ; @CREATE_LINK_TO_DIR@ ; \
29343 set stage2-ld prev-ld ; @CREATE_LINK_TO_DIR@
29344@endif ld
29345@if libcpp
ce521a9c 29346 @[ -d stage3-libcpp ] || mkdir stage3-libcpp; \
7c27e184
PB
29347 set stage3-libcpp libcpp ; @CREATE_LINK_TO_DIR@ ; \
29348 set stage2-libcpp prev-libcpp ; @CREATE_LINK_TO_DIR@
29349@endif libcpp
7c27e184 29350@if libiberty
ce521a9c 29351 @[ -d stage3-libiberty ] || mkdir stage3-libiberty; \
7c27e184
PB
29352 set stage3-libiberty libiberty ; @CREATE_LINK_TO_DIR@ ; \
29353 set stage2-libiberty prev-libiberty ; @CREATE_LINK_TO_DIR@
29354@endif libiberty
29355@if zlib
ce521a9c 29356 @[ -d stage3-zlib ] || mkdir stage3-zlib; \
7c27e184
PB
29357 set stage3-zlib zlib ; @CREATE_LINK_TO_DIR@ ; \
29358 set stage2-zlib prev-zlib ; @CREATE_LINK_TO_DIR@
29359@endif zlib
29360
29361stage3-end::
ce521a9c 29362 @rm -f stage_current
7c27e184 29363@if bfd
ce521a9c 29364 @set bfd stage3-bfd ; @UNDO_LINK_TO_DIR@ ; \
7c27e184
PB
29365 set prev-bfd stage2-bfd ; @UNDO_LINK_TO_DIR@
29366@endif bfd
29367@if opcodes
ce521a9c 29368 @set opcodes stage3-opcodes ; @UNDO_LINK_TO_DIR@ ; \
7c27e184
PB
29369 set prev-opcodes stage2-opcodes ; @UNDO_LINK_TO_DIR@
29370@endif opcodes
29371@if binutils
ce521a9c 29372 @set binutils stage3-binutils ; @UNDO_LINK_TO_DIR@ ; \
7c27e184
PB
29373 set prev-binutils stage2-binutils ; @UNDO_LINK_TO_DIR@
29374@endif binutils
29375@if gas
ce521a9c 29376 @set gas stage3-gas ; @UNDO_LINK_TO_DIR@ ; \
7c27e184
PB
29377 set prev-gas stage2-gas ; @UNDO_LINK_TO_DIR@
29378@endif gas
29379@if gcc
ce521a9c 29380 @set gcc stage3-gcc ; @UNDO_LINK_TO_DIR@ ; \
7c27e184
PB
29381 set prev-gcc stage2-gcc ; @UNDO_LINK_TO_DIR@
29382@endif gcc
29383@if intl
ce521a9c 29384 @set intl stage3-intl ; @UNDO_LINK_TO_DIR@ ; \
7c27e184
PB
29385 set prev-intl stage2-intl ; @UNDO_LINK_TO_DIR@
29386@endif intl
29387@if ld
ce521a9c 29388 @set ld stage3-ld ; @UNDO_LINK_TO_DIR@ ; \
7c27e184
PB
29389 set prev-ld stage2-ld ; @UNDO_LINK_TO_DIR@
29390@endif ld
29391@if libcpp
ce521a9c 29392 @set libcpp stage3-libcpp ; @UNDO_LINK_TO_DIR@ ; \
7c27e184
PB
29393 set prev-libcpp stage2-libcpp ; @UNDO_LINK_TO_DIR@
29394@endif libcpp
7c27e184 29395@if libiberty
ce521a9c 29396 @set libiberty stage3-libiberty ; @UNDO_LINK_TO_DIR@ ; \
7c27e184
PB
29397 set prev-libiberty stage2-libiberty ; @UNDO_LINK_TO_DIR@
29398@endif libiberty
29399@if zlib
ce521a9c 29400 @set zlib stage3-zlib ; @UNDO_LINK_TO_DIR@ ; \
7c27e184
PB
29401 set prev-zlib stage2-zlib ; @UNDO_LINK_TO_DIR@
29402@endif zlib
29403
29404# Bubble a bugfix through all the stages up to stage 3. They
29405# are remade, but not reconfigured. The next stage (if any) will not
29406# be reconfigured as well.
29407.PHONY: stage3-bubble
29408stage3-bubble:: stage2-bubble
ce521a9c
PB
29409 @bootstrap_lean@-rm -rf stage1-* ; $(STAMP) stage1-lean
29410 @if test -f stage3-lean || test -f stage2-lean ; then \
29411 echo Skipping rebuild of stage3 ; \
29412 else \
45f366ab 29413 $(MAKE) $(RECURSE_FLAGS_TO_PASS) NOTPARALLEL= all-stage3; \
ce521a9c 29414 fi
7c27e184 29415
45f366ab 29416.PHONY: all-stage3 clean-stage3
7c27e184
PB
29417all-stage3: \
29418 maybe-all-stage3-bfd \
29419 maybe-all-stage3-opcodes \
29420 maybe-all-stage3-binutils \
29421 maybe-all-stage3-gas \
29422 maybe-all-stage3-gcc \
29423 maybe-all-stage3-intl \
29424 maybe-all-stage3-ld \
29425 maybe-all-stage3-libcpp \
7c27e184
PB
29426 maybe-all-stage3-libiberty \
29427 maybe-all-stage3-zlib
29428
45f366ab
PB
29429do-clean: clean-stage3
29430clean-stage3: \
29431 maybe-clean-stage3-bfd \
29432 maybe-clean-stage3-opcodes \
29433 maybe-clean-stage3-binutils \
29434 maybe-clean-stage3-gas \
29435 maybe-clean-stage3-gcc \
29436 maybe-clean-stage3-intl \
29437 maybe-clean-stage3-ld \
29438 maybe-clean-stage3-libcpp \
45f366ab
PB
29439 maybe-clean-stage3-libiberty \
29440 maybe-clean-stage3-zlib
29441
7c27e184 29442
ce521a9c
PB
29443.PHONY: configure-stage3-bfd maybe-configure-stage3-bfd
29444.PHONY: all-stage3-bfd maybe-all-stage3-bfd
45f366ab 29445.PHONY: clean-stage3-bfd maybe-clean-stage3-bfd
ce521a9c 29446
7c27e184
PB
29447maybe-configure-stage3-bfd:
29448maybe-all-stage3-bfd:
45f366ab 29449maybe-clean-stage3-bfd:
7c27e184
PB
29450
29451@if bfd-bootstrap
29452maybe-configure-stage3-bfd: configure-stage3-bfd
ce521a9c
PB
29453configure-stage3-bfd:
29454 @$(MAKE) stage3-start
29455 @[ -f bfd/Makefile ] && exit 0 || : ; \
7c27e184
PB
29456 r=`${PWD_COMMAND}`; export r; \
29457 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29458 $(STAGE_HOST_EXPORTS) \
29459 echo Configuring stage 3 in bfd ; \
29460 cd bfd || exit 1; \
29461 case $(srcdir) in \
29462 \.) \
29463 srcdiroption="--srcdir=."; \
29464 libsrcdir=".";; \
29465 /* | [A-Za-z]:[\\/]*) \
29466 srcdiroption="--srcdir=$(srcdir)/bfd"; \
29467 libsrcdir="$$s/bfd";; \
29468 *) \
29469 srcdiroption="--srcdir=../$(srcdir)/bfd"; \
29470 libsrcdir="$$s/bfd";; \
29471 esac; \
29472 $(SHELL) $${libsrcdir}/configure \
29473 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 29474 @stage2_werror_flag@
7c27e184
PB
29475
29476maybe-all-stage3-bfd: all-stage3-bfd
29477all-stage3-bfd: configure-stage3-bfd
ce521a9c 29478 @$(MAKE) stage3-start
7c27e184
PB
29479 @r=`${PWD_COMMAND}`; export r; \
29480 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29481 $(STAGE_HOST_EXPORTS) \
29482 cd bfd && \
29483 $(MAKE) $(FLAGS_TO_PASS) \
29484 $(POSTSTAGE1_FLAGS_TO_PASS) \
ce521a9c 29485
45f366ab
PB
29486
29487maybe-clean-stage3-bfd: clean-stage3-bfd
29488clean-stage3-bfd:
29489 @[ -f bfd/Makefile ] || [ -f stage3-bfd/Makefile ] \
29490 || exit 0 ; \
29491 [ -f bfd/Makefile ] || $(MAKE) stage3-start ; \
29492 cd bfd && \
29493 $(MAKE) $(FLAGS_TO_PASS) \
29494 $(POSTSTAGE1_FLAGS_TO_PASS) \
29495 clean
7c27e184
PB
29496@endif bfd-bootstrap
29497
45f366ab 29498
ce521a9c
PB
29499.PHONY: configure-stage3-opcodes maybe-configure-stage3-opcodes
29500.PHONY: all-stage3-opcodes maybe-all-stage3-opcodes
45f366ab 29501.PHONY: clean-stage3-opcodes maybe-clean-stage3-opcodes
ce521a9c 29502
7c27e184
PB
29503maybe-configure-stage3-opcodes:
29504maybe-all-stage3-opcodes:
45f366ab 29505maybe-clean-stage3-opcodes:
7c27e184
PB
29506
29507@if opcodes-bootstrap
29508maybe-configure-stage3-opcodes: configure-stage3-opcodes
ce521a9c
PB
29509configure-stage3-opcodes:
29510 @$(MAKE) stage3-start
29511 @[ -f opcodes/Makefile ] && exit 0 || : ; \
7c27e184
PB
29512 r=`${PWD_COMMAND}`; export r; \
29513 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29514 $(STAGE_HOST_EXPORTS) \
29515 echo Configuring stage 3 in opcodes ; \
29516 cd opcodes || exit 1; \
29517 case $(srcdir) in \
29518 \.) \
29519 srcdiroption="--srcdir=."; \
29520 libsrcdir=".";; \
29521 /* | [A-Za-z]:[\\/]*) \
29522 srcdiroption="--srcdir=$(srcdir)/opcodes"; \
29523 libsrcdir="$$s/opcodes";; \
29524 *) \
29525 srcdiroption="--srcdir=../$(srcdir)/opcodes"; \
29526 libsrcdir="$$s/opcodes";; \
29527 esac; \
29528 $(SHELL) $${libsrcdir}/configure \
29529 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 29530 @stage2_werror_flag@
7c27e184
PB
29531
29532maybe-all-stage3-opcodes: all-stage3-opcodes
29533all-stage3-opcodes: configure-stage3-opcodes
ce521a9c 29534 @$(MAKE) stage3-start
7c27e184
PB
29535 @r=`${PWD_COMMAND}`; export r; \
29536 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29537 $(STAGE_HOST_EXPORTS) \
29538 cd opcodes && \
29539 $(MAKE) $(FLAGS_TO_PASS) \
29540 $(POSTSTAGE1_FLAGS_TO_PASS) \
ce521a9c 29541
45f366ab
PB
29542
29543maybe-clean-stage3-opcodes: clean-stage3-opcodes
29544clean-stage3-opcodes:
29545 @[ -f opcodes/Makefile ] || [ -f stage3-opcodes/Makefile ] \
29546 || exit 0 ; \
29547 [ -f opcodes/Makefile ] || $(MAKE) stage3-start ; \
29548 cd opcodes && \
29549 $(MAKE) $(FLAGS_TO_PASS) \
29550 $(POSTSTAGE1_FLAGS_TO_PASS) \
29551 clean
7c27e184
PB
29552@endif opcodes-bootstrap
29553
45f366ab 29554
ce521a9c
PB
29555.PHONY: configure-stage3-binutils maybe-configure-stage3-binutils
29556.PHONY: all-stage3-binutils maybe-all-stage3-binutils
45f366ab 29557.PHONY: clean-stage3-binutils maybe-clean-stage3-binutils
ce521a9c 29558
7c27e184
PB
29559maybe-configure-stage3-binutils:
29560maybe-all-stage3-binutils:
45f366ab 29561maybe-clean-stage3-binutils:
7c27e184
PB
29562
29563@if binutils-bootstrap
29564maybe-configure-stage3-binutils: configure-stage3-binutils
ce521a9c
PB
29565configure-stage3-binutils:
29566 @$(MAKE) stage3-start
29567 @[ -f binutils/Makefile ] && exit 0 || : ; \
7c27e184
PB
29568 r=`${PWD_COMMAND}`; export r; \
29569 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29570 $(STAGE_HOST_EXPORTS) \
29571 echo Configuring stage 3 in binutils ; \
29572 cd binutils || exit 1; \
29573 case $(srcdir) in \
29574 \.) \
29575 srcdiroption="--srcdir=."; \
29576 libsrcdir=".";; \
29577 /* | [A-Za-z]:[\\/]*) \
29578 srcdiroption="--srcdir=$(srcdir)/binutils"; \
29579 libsrcdir="$$s/binutils";; \
29580 *) \
29581 srcdiroption="--srcdir=../$(srcdir)/binutils"; \
29582 libsrcdir="$$s/binutils";; \
29583 esac; \
29584 $(SHELL) $${libsrcdir}/configure \
29585 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 29586 @stage2_werror_flag@
7c27e184
PB
29587
29588maybe-all-stage3-binutils: all-stage3-binutils
29589all-stage3-binutils: configure-stage3-binutils
ce521a9c 29590 @$(MAKE) stage3-start
7c27e184
PB
29591 @r=`${PWD_COMMAND}`; export r; \
29592 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29593 $(STAGE_HOST_EXPORTS) \
29594 cd binutils && \
29595 $(MAKE) $(FLAGS_TO_PASS) \
29596 $(POSTSTAGE1_FLAGS_TO_PASS) \
ce521a9c 29597
45f366ab
PB
29598
29599maybe-clean-stage3-binutils: clean-stage3-binutils
29600clean-stage3-binutils:
29601 @[ -f binutils/Makefile ] || [ -f stage3-binutils/Makefile ] \
29602 || exit 0 ; \
29603 [ -f binutils/Makefile ] || $(MAKE) stage3-start ; \
29604 cd binutils && \
29605 $(MAKE) $(FLAGS_TO_PASS) \
29606 $(POSTSTAGE1_FLAGS_TO_PASS) \
29607 clean
7c27e184
PB
29608@endif binutils-bootstrap
29609
45f366ab 29610
ce521a9c
PB
29611.PHONY: configure-stage3-gas maybe-configure-stage3-gas
29612.PHONY: all-stage3-gas maybe-all-stage3-gas
45f366ab 29613.PHONY: clean-stage3-gas maybe-clean-stage3-gas
ce521a9c 29614
7c27e184
PB
29615maybe-configure-stage3-gas:
29616maybe-all-stage3-gas:
45f366ab 29617maybe-clean-stage3-gas:
7c27e184
PB
29618
29619@if gas-bootstrap
29620maybe-configure-stage3-gas: configure-stage3-gas
ce521a9c
PB
29621configure-stage3-gas:
29622 @$(MAKE) stage3-start
29623 @[ -f gas/Makefile ] && exit 0 || : ; \
7c27e184
PB
29624 r=`${PWD_COMMAND}`; export r; \
29625 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29626 $(STAGE_HOST_EXPORTS) \
29627 echo Configuring stage 3 in gas ; \
29628 cd gas || exit 1; \
29629 case $(srcdir) in \
29630 \.) \
29631 srcdiroption="--srcdir=."; \
29632 libsrcdir=".";; \
29633 /* | [A-Za-z]:[\\/]*) \
29634 srcdiroption="--srcdir=$(srcdir)/gas"; \
29635 libsrcdir="$$s/gas";; \
29636 *) \
29637 srcdiroption="--srcdir=../$(srcdir)/gas"; \
29638 libsrcdir="$$s/gas";; \
29639 esac; \
29640 $(SHELL) $${libsrcdir}/configure \
29641 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 29642 @stage2_werror_flag@
7c27e184
PB
29643
29644maybe-all-stage3-gas: all-stage3-gas
29645all-stage3-gas: configure-stage3-gas
ce521a9c 29646 @$(MAKE) stage3-start
7c27e184
PB
29647 @r=`${PWD_COMMAND}`; export r; \
29648 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29649 $(STAGE_HOST_EXPORTS) \
29650 cd gas && \
29651 $(MAKE) $(FLAGS_TO_PASS) \
29652 $(POSTSTAGE1_FLAGS_TO_PASS) \
ce521a9c 29653
45f366ab
PB
29654
29655maybe-clean-stage3-gas: clean-stage3-gas
29656clean-stage3-gas:
29657 @[ -f gas/Makefile ] || [ -f stage3-gas/Makefile ] \
29658 || exit 0 ; \
29659 [ -f gas/Makefile ] || $(MAKE) stage3-start ; \
29660 cd gas && \
29661 $(MAKE) $(FLAGS_TO_PASS) \
29662 $(POSTSTAGE1_FLAGS_TO_PASS) \
29663 clean
7c27e184
PB
29664@endif gas-bootstrap
29665
45f366ab 29666
ce521a9c
PB
29667.PHONY: configure-stage3-gcc maybe-configure-stage3-gcc
29668.PHONY: all-stage3-gcc maybe-all-stage3-gcc
45f366ab 29669.PHONY: clean-stage3-gcc maybe-clean-stage3-gcc
ce521a9c 29670
7c27e184
PB
29671maybe-configure-stage3-gcc:
29672maybe-all-stage3-gcc:
45f366ab 29673maybe-clean-stage3-gcc:
7c27e184
PB
29674
29675@if gcc-bootstrap
29676maybe-configure-stage3-gcc: configure-stage3-gcc
ce521a9c
PB
29677configure-stage3-gcc:
29678 @$(MAKE) stage3-start
29679 @[ -f gcc/Makefile ] && exit 0 || : ; \
7c27e184
PB
29680 r=`${PWD_COMMAND}`; export r; \
29681 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29682 $(STAGE_HOST_EXPORTS) \
29683 echo Configuring stage 3 in gcc ; \
29684 cd gcc || exit 1; \
29685 case $(srcdir) in \
29686 \.) \
29687 srcdiroption="--srcdir=."; \
29688 libsrcdir=".";; \
29689 /* | [A-Za-z]:[\\/]*) \
29690 srcdiroption="--srcdir=$(srcdir)/gcc"; \
29691 libsrcdir="$$s/gcc";; \
29692 *) \
29693 srcdiroption="--srcdir=../$(srcdir)/gcc"; \
29694 libsrcdir="$$s/gcc";; \
29695 esac; \
29696 $(SHELL) $${libsrcdir}/configure \
29697 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 29698 @stage2_werror_flag@
7c27e184
PB
29699
29700maybe-all-stage3-gcc: all-stage3-gcc
29701all-stage3-gcc: configure-stage3-gcc
ce521a9c 29702 @$(MAKE) stage3-start
7c27e184
PB
29703 @r=`${PWD_COMMAND}`; export r; \
29704 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29705 $(STAGE_HOST_EXPORTS) \
29706 cd gcc && \
29707 $(MAKE) $(FLAGS_TO_PASS) \
29708 $(POSTSTAGE1_FLAGS_TO_PASS) \
ce521a9c 29709 $(EXTRA_GCC_FLAGS)
45f366ab
PB
29710
29711maybe-clean-stage3-gcc: clean-stage3-gcc
29712clean-stage3-gcc:
29713 @[ -f gcc/Makefile ] || [ -f stage3-gcc/Makefile ] \
29714 || exit 0 ; \
29715 [ -f gcc/Makefile ] || $(MAKE) stage3-start ; \
29716 cd gcc && \
29717 $(MAKE) $(FLAGS_TO_PASS) \
29718 $(POSTSTAGE1_FLAGS_TO_PASS) \
29719 $(EXTRA_GCC_FLAGS) clean
7c27e184
PB
29720@endif gcc-bootstrap
29721
45f366ab 29722
ce521a9c
PB
29723.PHONY: configure-stage3-intl maybe-configure-stage3-intl
29724.PHONY: all-stage3-intl maybe-all-stage3-intl
45f366ab 29725.PHONY: clean-stage3-intl maybe-clean-stage3-intl
ce521a9c 29726
7c27e184
PB
29727maybe-configure-stage3-intl:
29728maybe-all-stage3-intl:
45f366ab 29729maybe-clean-stage3-intl:
7c27e184
PB
29730
29731@if intl-bootstrap
29732maybe-configure-stage3-intl: configure-stage3-intl
ce521a9c
PB
29733configure-stage3-intl:
29734 @$(MAKE) stage3-start
29735 @[ -f intl/Makefile ] && exit 0 || : ; \
7c27e184
PB
29736 r=`${PWD_COMMAND}`; export r; \
29737 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29738 $(STAGE_HOST_EXPORTS) \
29739 echo Configuring stage 3 in intl ; \
29740 cd intl || exit 1; \
29741 case $(srcdir) in \
29742 \.) \
29743 srcdiroption="--srcdir=."; \
29744 libsrcdir=".";; \
29745 /* | [A-Za-z]:[\\/]*) \
29746 srcdiroption="--srcdir=$(srcdir)/intl"; \
29747 libsrcdir="$$s/intl";; \
29748 *) \
29749 srcdiroption="--srcdir=../$(srcdir)/intl"; \
29750 libsrcdir="$$s/intl";; \
29751 esac; \
29752 $(SHELL) $${libsrcdir}/configure \
29753 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 29754 @stage2_werror_flag@
7c27e184
PB
29755
29756maybe-all-stage3-intl: all-stage3-intl
29757all-stage3-intl: configure-stage3-intl
ce521a9c 29758 @$(MAKE) stage3-start
7c27e184
PB
29759 @r=`${PWD_COMMAND}`; export r; \
29760 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29761 $(STAGE_HOST_EXPORTS) \
29762 cd intl && \
29763 $(MAKE) $(FLAGS_TO_PASS) \
29764 $(POSTSTAGE1_FLAGS_TO_PASS) \
ce521a9c 29765
45f366ab
PB
29766
29767maybe-clean-stage3-intl: clean-stage3-intl
29768clean-stage3-intl:
29769 @[ -f intl/Makefile ] || [ -f stage3-intl/Makefile ] \
29770 || exit 0 ; \
29771 [ -f intl/Makefile ] || $(MAKE) stage3-start ; \
29772 cd intl && \
29773 $(MAKE) $(FLAGS_TO_PASS) \
29774 $(POSTSTAGE1_FLAGS_TO_PASS) \
29775 clean
7c27e184
PB
29776@endif intl-bootstrap
29777
45f366ab 29778
ce521a9c
PB
29779.PHONY: configure-stage3-ld maybe-configure-stage3-ld
29780.PHONY: all-stage3-ld maybe-all-stage3-ld
45f366ab 29781.PHONY: clean-stage3-ld maybe-clean-stage3-ld
ce521a9c 29782
7c27e184
PB
29783maybe-configure-stage3-ld:
29784maybe-all-stage3-ld:
45f366ab 29785maybe-clean-stage3-ld:
7c27e184
PB
29786
29787@if ld-bootstrap
29788maybe-configure-stage3-ld: configure-stage3-ld
ce521a9c
PB
29789configure-stage3-ld:
29790 @$(MAKE) stage3-start
29791 @[ -f ld/Makefile ] && exit 0 || : ; \
7c27e184
PB
29792 r=`${PWD_COMMAND}`; export r; \
29793 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29794 $(STAGE_HOST_EXPORTS) \
29795 echo Configuring stage 3 in ld ; \
29796 cd ld || exit 1; \
29797 case $(srcdir) in \
29798 \.) \
29799 srcdiroption="--srcdir=."; \
29800 libsrcdir=".";; \
29801 /* | [A-Za-z]:[\\/]*) \
29802 srcdiroption="--srcdir=$(srcdir)/ld"; \
29803 libsrcdir="$$s/ld";; \
29804 *) \
29805 srcdiroption="--srcdir=../$(srcdir)/ld"; \
29806 libsrcdir="$$s/ld";; \
29807 esac; \
29808 $(SHELL) $${libsrcdir}/configure \
29809 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 29810 @stage2_werror_flag@
7c27e184
PB
29811
29812maybe-all-stage3-ld: all-stage3-ld
29813all-stage3-ld: configure-stage3-ld
ce521a9c 29814 @$(MAKE) stage3-start
7c27e184
PB
29815 @r=`${PWD_COMMAND}`; export r; \
29816 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29817 $(STAGE_HOST_EXPORTS) \
29818 cd ld && \
29819 $(MAKE) $(FLAGS_TO_PASS) \
29820 $(POSTSTAGE1_FLAGS_TO_PASS) \
ce521a9c 29821
45f366ab
PB
29822
29823maybe-clean-stage3-ld: clean-stage3-ld
29824clean-stage3-ld:
29825 @[ -f ld/Makefile ] || [ -f stage3-ld/Makefile ] \
29826 || exit 0 ; \
29827 [ -f ld/Makefile ] || $(MAKE) stage3-start ; \
29828 cd ld && \
29829 $(MAKE) $(FLAGS_TO_PASS) \
29830 $(POSTSTAGE1_FLAGS_TO_PASS) \
29831 clean
7c27e184
PB
29832@endif ld-bootstrap
29833
45f366ab 29834
ce521a9c
PB
29835.PHONY: configure-stage3-libcpp maybe-configure-stage3-libcpp
29836.PHONY: all-stage3-libcpp maybe-all-stage3-libcpp
45f366ab 29837.PHONY: clean-stage3-libcpp maybe-clean-stage3-libcpp
ce521a9c 29838
7c27e184
PB
29839maybe-configure-stage3-libcpp:
29840maybe-all-stage3-libcpp:
45f366ab 29841maybe-clean-stage3-libcpp:
7c27e184
PB
29842
29843@if libcpp-bootstrap
29844maybe-configure-stage3-libcpp: configure-stage3-libcpp
ce521a9c
PB
29845configure-stage3-libcpp:
29846 @$(MAKE) stage3-start
29847 @[ -f libcpp/Makefile ] && exit 0 || : ; \
7c27e184
PB
29848 r=`${PWD_COMMAND}`; export r; \
29849 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29850 $(STAGE_HOST_EXPORTS) \
29851 echo Configuring stage 3 in libcpp ; \
29852 cd libcpp || exit 1; \
29853 case $(srcdir) in \
29854 \.) \
29855 srcdiroption="--srcdir=."; \
29856 libsrcdir=".";; \
29857 /* | [A-Za-z]:[\\/]*) \
29858 srcdiroption="--srcdir=$(srcdir)/libcpp"; \
29859 libsrcdir="$$s/libcpp";; \
29860 *) \
29861 srcdiroption="--srcdir=../$(srcdir)/libcpp"; \
29862 libsrcdir="$$s/libcpp";; \
29863 esac; \
29864 $(SHELL) $${libsrcdir}/configure \
29865 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 29866 @stage2_werror_flag@
7c27e184
PB
29867
29868maybe-all-stage3-libcpp: all-stage3-libcpp
29869all-stage3-libcpp: configure-stage3-libcpp
ce521a9c 29870 @$(MAKE) stage3-start
7c27e184
PB
29871 @r=`${PWD_COMMAND}`; export r; \
29872 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29873 $(STAGE_HOST_EXPORTS) \
29874 cd libcpp && \
29875 $(MAKE) $(FLAGS_TO_PASS) \
29876 $(POSTSTAGE1_FLAGS_TO_PASS) \
ce521a9c 29877
45f366ab
PB
29878
29879maybe-clean-stage3-libcpp: clean-stage3-libcpp
29880clean-stage3-libcpp:
29881 @[ -f libcpp/Makefile ] || [ -f stage3-libcpp/Makefile ] \
29882 || exit 0 ; \
29883 [ -f libcpp/Makefile ] || $(MAKE) stage3-start ; \
29884 cd libcpp && \
29885 $(MAKE) $(FLAGS_TO_PASS) \
29886 $(POSTSTAGE1_FLAGS_TO_PASS) \
29887 clean
7c27e184
PB
29888@endif libcpp-bootstrap
29889
45f366ab 29890
ce521a9c
PB
29891.PHONY: configure-stage3-libiberty maybe-configure-stage3-libiberty
29892.PHONY: all-stage3-libiberty maybe-all-stage3-libiberty
45f366ab 29893.PHONY: clean-stage3-libiberty maybe-clean-stage3-libiberty
ce521a9c 29894
7c27e184
PB
29895maybe-configure-stage3-libiberty:
29896maybe-all-stage3-libiberty:
45f366ab 29897maybe-clean-stage3-libiberty:
7c27e184
PB
29898
29899@if libiberty-bootstrap
29900maybe-configure-stage3-libiberty: configure-stage3-libiberty
ce521a9c
PB
29901configure-stage3-libiberty:
29902 @$(MAKE) stage3-start
29903 @[ -f libiberty/Makefile ] && exit 0 || : ; \
7c27e184
PB
29904 r=`${PWD_COMMAND}`; export r; \
29905 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29906 $(STAGE_HOST_EXPORTS) \
29907 echo Configuring stage 3 in libiberty ; \
29908 cd libiberty || exit 1; \
29909 case $(srcdir) in \
29910 \.) \
29911 srcdiroption="--srcdir=."; \
29912 libsrcdir=".";; \
29913 /* | [A-Za-z]:[\\/]*) \
29914 srcdiroption="--srcdir=$(srcdir)/libiberty"; \
29915 libsrcdir="$$s/libiberty";; \
29916 *) \
29917 srcdiroption="--srcdir=../$(srcdir)/libiberty"; \
29918 libsrcdir="$$s/libiberty";; \
29919 esac; \
29920 $(SHELL) $${libsrcdir}/configure \
29921 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 29922 @stage2_werror_flag@
7c27e184
PB
29923
29924maybe-all-stage3-libiberty: all-stage3-libiberty
29925all-stage3-libiberty: configure-stage3-libiberty
ce521a9c 29926 @$(MAKE) stage3-start
7c27e184
PB
29927 @r=`${PWD_COMMAND}`; export r; \
29928 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29929 $(STAGE_HOST_EXPORTS) \
29930 cd libiberty && \
29931 $(MAKE) $(FLAGS_TO_PASS) \
29932 $(POSTSTAGE1_FLAGS_TO_PASS) \
ce521a9c 29933
45f366ab
PB
29934
29935maybe-clean-stage3-libiberty: clean-stage3-libiberty
29936clean-stage3-libiberty:
29937 @[ -f libiberty/Makefile ] || [ -f stage3-libiberty/Makefile ] \
29938 || exit 0 ; \
29939 [ -f libiberty/Makefile ] || $(MAKE) stage3-start ; \
29940 cd libiberty && \
29941 $(MAKE) $(FLAGS_TO_PASS) \
29942 $(POSTSTAGE1_FLAGS_TO_PASS) \
29943 clean
7c27e184
PB
29944@endif libiberty-bootstrap
29945
45f366ab 29946
ce521a9c
PB
29947.PHONY: configure-stage3-zlib maybe-configure-stage3-zlib
29948.PHONY: all-stage3-zlib maybe-all-stage3-zlib
45f366ab 29949.PHONY: clean-stage3-zlib maybe-clean-stage3-zlib
ce521a9c 29950
7c27e184
PB
29951maybe-configure-stage3-zlib:
29952maybe-all-stage3-zlib:
45f366ab 29953maybe-clean-stage3-zlib:
7c27e184
PB
29954
29955@if zlib-bootstrap
29956maybe-configure-stage3-zlib: configure-stage3-zlib
ce521a9c
PB
29957configure-stage3-zlib:
29958 @$(MAKE) stage3-start
29959 @[ -f zlib/Makefile ] && exit 0 || : ; \
7c27e184
PB
29960 r=`${PWD_COMMAND}`; export r; \
29961 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29962 $(STAGE_HOST_EXPORTS) \
29963 echo Configuring stage 3 in zlib ; \
29964 cd zlib || exit 1; \
29965 case $(srcdir) in \
29966 \.) \
29967 srcdiroption="--srcdir=."; \
29968 libsrcdir=".";; \
29969 /* | [A-Za-z]:[\\/]*) \
29970 srcdiroption="--srcdir=$(srcdir)/zlib"; \
29971 libsrcdir="$$s/zlib";; \
29972 *) \
29973 srcdiroption="--srcdir=../$(srcdir)/zlib"; \
29974 libsrcdir="$$s/zlib";; \
29975 esac; \
29976 $(SHELL) $${libsrcdir}/configure \
29977 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 29978 @stage2_werror_flag@
7c27e184
PB
29979
29980maybe-all-stage3-zlib: all-stage3-zlib
29981all-stage3-zlib: configure-stage3-zlib
ce521a9c 29982 @$(MAKE) stage3-start
7c27e184
PB
29983 @r=`${PWD_COMMAND}`; export r; \
29984 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29985 $(STAGE_HOST_EXPORTS) \
29986 cd zlib && \
29987 $(MAKE) $(FLAGS_TO_PASS) \
29988 $(POSTSTAGE1_FLAGS_TO_PASS) \
ce521a9c 29989
45f366ab
PB
29990
29991maybe-clean-stage3-zlib: clean-stage3-zlib
29992clean-stage3-zlib:
29993 @[ -f zlib/Makefile ] || [ -f stage3-zlib/Makefile ] \
29994 || exit 0 ; \
29995 [ -f zlib/Makefile ] || $(MAKE) stage3-start ; \
29996 cd zlib && \
29997 $(MAKE) $(FLAGS_TO_PASS) \
29998 $(POSTSTAGE1_FLAGS_TO_PASS) \
29999 clean
7c27e184
PB
30000@endif zlib-bootstrap
30001
30002
45f366ab 30003
7c27e184
PB
30004# FIXME: Will not need to be conditional when toplevel bootstrap is the
30005# only possibility, but now it conflicts with no-bootstrap rules
30006@if gcc-bootstrap
30007
ce521a9c
PB
30008compare:
30009 @if test -f stage2-lean; then \
30010 echo Cannot compare object files as stage 2 was deleted. ; \
30011 exit 0 ; \
30012 fi; \
30013 [ -f stage_current ] && $(MAKE) `cat stage_current`-end || : ; \
7c27e184
PB
30014 @r=`${PWD_COMMAND}`; export r; \
30015 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30016 rm -f .bad_compare ; \
30017 cd stage3-gcc; \
30018 files=`find . -name "*$(objext)" -print` ; \
30019 cd .. ; \
30020 for file in $${files} ; do \
30021 f1=$$r/stage2-gcc/$$file; f2=$$r/stage3-gcc/$$file; \
30022 @do_compare@ > /dev/null 2>&1; \
30023 test $$? -eq 1 && echo $$file differs >> .bad_compare || true; \
30024 done ; \
30025 if [ -f .bad_compare ]; then \
30026 echo "Bootstrap comparison failure!"; \
30027 cat .bad_compare; \
30028 exit 1; \
30029 else \
30030 true; \
30031 fi ; \
30032 $(STAMP) compare
ce521a9c 30033 @bootstrap_lean@-rm -rf stage2-* ; $(STAMP) stage2-lean
7c27e184
PB
30034
30035
30036
30037.PHONY: bootstrap
ce521a9c 30038bootstrap: stage3-bubble compare all
7c27e184
PB
30039
30040
45f366ab 30041# Rules to wipe a stage and all the following ones, also used for cleanstrap
7c27e184 30042distclean-stage2:: distclean-stage3
45f366ab 30043.PHONY: distclean-stage3
7c27e184
PB
30044distclean-stage3::
30045 [ -f stage_current ] && $(MAKE) `cat stage_current`-end || :
ce521a9c 30046 rm -rf stage3-* compare
7c27e184
PB
30047
30048
30049.PHONY: cleanstrap
45f366ab 30050cleanstrap: distclean bootstrap
7c27e184
PB
30051
30052@endif gcc-bootstrap
30053
30054
30055.PHONY: stage4-start stage4-end
30056
30057stage4-start::
ce521a9c 30058 @[ -f stage_current ] && $(MAKE) `cat stage_current`-end || : ; \
7c27e184
PB
30059 echo stage4 > stage_current ; \
30060 echo stage4 > stage_last
30061@if bfd
ce521a9c 30062 @[ -d stage4-bfd ] || mkdir stage4-bfd; \
7c27e184
PB
30063 set stage4-bfd bfd ; @CREATE_LINK_TO_DIR@ ; \
30064 set stage3-bfd prev-bfd ; @CREATE_LINK_TO_DIR@
30065@endif bfd
30066@if opcodes
ce521a9c 30067 @[ -d stage4-opcodes ] || mkdir stage4-opcodes; \
7c27e184
PB
30068 set stage4-opcodes opcodes ; @CREATE_LINK_TO_DIR@ ; \
30069 set stage3-opcodes prev-opcodes ; @CREATE_LINK_TO_DIR@
30070@endif opcodes
30071@if binutils
ce521a9c 30072 @[ -d stage4-binutils ] || mkdir stage4-binutils; \
7c27e184
PB
30073 set stage4-binutils binutils ; @CREATE_LINK_TO_DIR@ ; \
30074 set stage3-binutils prev-binutils ; @CREATE_LINK_TO_DIR@
30075@endif binutils
30076@if gas
ce521a9c 30077 @[ -d stage4-gas ] || mkdir stage4-gas; \
7c27e184
PB
30078 set stage4-gas gas ; @CREATE_LINK_TO_DIR@ ; \
30079 set stage3-gas prev-gas ; @CREATE_LINK_TO_DIR@
30080@endif gas
30081@if gcc
ce521a9c 30082 @[ -d stage4-gcc ] || mkdir stage4-gcc; \
7c27e184
PB
30083 set stage4-gcc gcc ; @CREATE_LINK_TO_DIR@ ; \
30084 set stage3-gcc prev-gcc ; @CREATE_LINK_TO_DIR@
30085@endif gcc
30086@if intl
ce521a9c 30087 @[ -d stage4-intl ] || mkdir stage4-intl; \
7c27e184
PB
30088 set stage4-intl intl ; @CREATE_LINK_TO_DIR@ ; \
30089 set stage3-intl prev-intl ; @CREATE_LINK_TO_DIR@
30090@endif intl
30091@if ld
ce521a9c 30092 @[ -d stage4-ld ] || mkdir stage4-ld; \
7c27e184
PB
30093 set stage4-ld ld ; @CREATE_LINK_TO_DIR@ ; \
30094 set stage3-ld prev-ld ; @CREATE_LINK_TO_DIR@
30095@endif ld
30096@if libcpp
ce521a9c 30097 @[ -d stage4-libcpp ] || mkdir stage4-libcpp; \
7c27e184
PB
30098 set stage4-libcpp libcpp ; @CREATE_LINK_TO_DIR@ ; \
30099 set stage3-libcpp prev-libcpp ; @CREATE_LINK_TO_DIR@
30100@endif libcpp
7c27e184 30101@if libiberty
ce521a9c 30102 @[ -d stage4-libiberty ] || mkdir stage4-libiberty; \
7c27e184
PB
30103 set stage4-libiberty libiberty ; @CREATE_LINK_TO_DIR@ ; \
30104 set stage3-libiberty prev-libiberty ; @CREATE_LINK_TO_DIR@
30105@endif libiberty
30106@if zlib
ce521a9c 30107 @[ -d stage4-zlib ] || mkdir stage4-zlib; \
7c27e184
PB
30108 set stage4-zlib zlib ; @CREATE_LINK_TO_DIR@ ; \
30109 set stage3-zlib prev-zlib ; @CREATE_LINK_TO_DIR@
30110@endif zlib
30111
30112stage4-end::
ce521a9c 30113 @rm -f stage_current
7c27e184 30114@if bfd
ce521a9c 30115 @set bfd stage4-bfd ; @UNDO_LINK_TO_DIR@ ; \
7c27e184
PB
30116 set prev-bfd stage3-bfd ; @UNDO_LINK_TO_DIR@
30117@endif bfd
30118@if opcodes
ce521a9c 30119 @set opcodes stage4-opcodes ; @UNDO_LINK_TO_DIR@ ; \
7c27e184
PB
30120 set prev-opcodes stage3-opcodes ; @UNDO_LINK_TO_DIR@
30121@endif opcodes
30122@if binutils
ce521a9c 30123 @set binutils stage4-binutils ; @UNDO_LINK_TO_DIR@ ; \
7c27e184
PB
30124 set prev-binutils stage3-binutils ; @UNDO_LINK_TO_DIR@
30125@endif binutils
30126@if gas
ce521a9c 30127 @set gas stage4-gas ; @UNDO_LINK_TO_DIR@ ; \
7c27e184
PB
30128 set prev-gas stage3-gas ; @UNDO_LINK_TO_DIR@
30129@endif gas
30130@if gcc
ce521a9c 30131 @set gcc stage4-gcc ; @UNDO_LINK_TO_DIR@ ; \
7c27e184
PB
30132 set prev-gcc stage3-gcc ; @UNDO_LINK_TO_DIR@
30133@endif gcc
30134@if intl
ce521a9c 30135 @set intl stage4-intl ; @UNDO_LINK_TO_DIR@ ; \
7c27e184
PB
30136 set prev-intl stage3-intl ; @UNDO_LINK_TO_DIR@
30137@endif intl
30138@if ld
ce521a9c 30139 @set ld stage4-ld ; @UNDO_LINK_TO_DIR@ ; \
7c27e184
PB
30140 set prev-ld stage3-ld ; @UNDO_LINK_TO_DIR@
30141@endif ld
30142@if libcpp
ce521a9c 30143 @set libcpp stage4-libcpp ; @UNDO_LINK_TO_DIR@ ; \
7c27e184
PB
30144 set prev-libcpp stage3-libcpp ; @UNDO_LINK_TO_DIR@
30145@endif libcpp
7c27e184 30146@if libiberty
ce521a9c 30147 @set libiberty stage4-libiberty ; @UNDO_LINK_TO_DIR@ ; \
7c27e184
PB
30148 set prev-libiberty stage3-libiberty ; @UNDO_LINK_TO_DIR@
30149@endif libiberty
30150@if zlib
ce521a9c 30151 @set zlib stage4-zlib ; @UNDO_LINK_TO_DIR@ ; \
7c27e184
PB
30152 set prev-zlib stage3-zlib ; @UNDO_LINK_TO_DIR@
30153@endif zlib
30154
30155# Bubble a bugfix through all the stages up to stage 4. They
30156# are remade, but not reconfigured. The next stage (if any) will not
30157# be reconfigured as well.
30158.PHONY: stage4-bubble
30159stage4-bubble:: stage3-bubble
ce521a9c
PB
30160 @bootstrap_lean@-rm -rf stage2-* ; $(STAMP) stage2-lean
30161 @if test -f stage4-lean || test -f stage3-lean ; then \
30162 echo Skipping rebuild of stage4 ; \
30163 else \
45f366ab 30164 $(MAKE) $(RECURSE_FLAGS_TO_PASS) NOTPARALLEL= all-stage4; \
ce521a9c 30165 fi
7c27e184 30166
45f366ab 30167.PHONY: all-stage4 clean-stage4
7c27e184
PB
30168all-stage4: \
30169 maybe-all-stage4-bfd \
30170 maybe-all-stage4-opcodes \
30171 maybe-all-stage4-binutils \
30172 maybe-all-stage4-gas \
30173 maybe-all-stage4-gcc \
30174 maybe-all-stage4-intl \
30175 maybe-all-stage4-ld \
30176 maybe-all-stage4-libcpp \
7c27e184
PB
30177 maybe-all-stage4-libiberty \
30178 maybe-all-stage4-zlib
30179
45f366ab
PB
30180do-clean: clean-stage4
30181clean-stage4: \
30182 maybe-clean-stage4-bfd \
30183 maybe-clean-stage4-opcodes \
30184 maybe-clean-stage4-binutils \
30185 maybe-clean-stage4-gas \
30186 maybe-clean-stage4-gcc \
30187 maybe-clean-stage4-intl \
30188 maybe-clean-stage4-ld \
30189 maybe-clean-stage4-libcpp \
45f366ab
PB
30190 maybe-clean-stage4-libiberty \
30191 maybe-clean-stage4-zlib
30192
7c27e184 30193
ce521a9c
PB
30194.PHONY: configure-stage4-bfd maybe-configure-stage4-bfd
30195.PHONY: all-stage4-bfd maybe-all-stage4-bfd
45f366ab 30196.PHONY: clean-stage4-bfd maybe-clean-stage4-bfd
ce521a9c 30197
7c27e184
PB
30198maybe-configure-stage4-bfd:
30199maybe-all-stage4-bfd:
45f366ab 30200maybe-clean-stage4-bfd:
7c27e184
PB
30201
30202@if bfd-bootstrap
30203maybe-configure-stage4-bfd: configure-stage4-bfd
ce521a9c
PB
30204configure-stage4-bfd:
30205 @$(MAKE) stage4-start
30206 @[ -f bfd/Makefile ] && exit 0 || : ; \
7c27e184
PB
30207 r=`${PWD_COMMAND}`; export r; \
30208 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30209 $(STAGE_HOST_EXPORTS) \
30210 echo Configuring stage 4 in bfd ; \
30211 cd bfd || exit 1; \
30212 case $(srcdir) in \
30213 \.) \
30214 srcdiroption="--srcdir=."; \
30215 libsrcdir=".";; \
30216 /* | [A-Za-z]:[\\/]*) \
30217 srcdiroption="--srcdir=$(srcdir)/bfd"; \
30218 libsrcdir="$$s/bfd";; \
30219 *) \
30220 srcdiroption="--srcdir=../$(srcdir)/bfd"; \
30221 libsrcdir="$$s/bfd";; \
30222 esac; \
30223 $(SHELL) $${libsrcdir}/configure \
30224 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 30225 @stage2_werror_flag@
7c27e184
PB
30226
30227maybe-all-stage4-bfd: all-stage4-bfd
30228all-stage4-bfd: configure-stage4-bfd
ce521a9c 30229 @$(MAKE) stage4-start
7c27e184
PB
30230 @r=`${PWD_COMMAND}`; export r; \
30231 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30232 $(STAGE_HOST_EXPORTS) \
30233 cd bfd && \
30234 $(MAKE) $(FLAGS_TO_PASS) \
30235 $(POSTSTAGE1_FLAGS_TO_PASS) \
ce521a9c 30236
45f366ab
PB
30237
30238maybe-clean-stage4-bfd: clean-stage4-bfd
30239clean-stage4-bfd:
30240 @[ -f bfd/Makefile ] || [ -f stage4-bfd/Makefile ] \
30241 || exit 0 ; \
30242 [ -f bfd/Makefile ] || $(MAKE) stage4-start ; \
30243 cd bfd && \
30244 $(MAKE) $(FLAGS_TO_PASS) \
30245 $(POSTSTAGE1_FLAGS_TO_PASS) \
30246 clean
7c27e184
PB
30247@endif bfd-bootstrap
30248
45f366ab 30249
ce521a9c
PB
30250.PHONY: configure-stage4-opcodes maybe-configure-stage4-opcodes
30251.PHONY: all-stage4-opcodes maybe-all-stage4-opcodes
45f366ab 30252.PHONY: clean-stage4-opcodes maybe-clean-stage4-opcodes
ce521a9c 30253
7c27e184
PB
30254maybe-configure-stage4-opcodes:
30255maybe-all-stage4-opcodes:
45f366ab 30256maybe-clean-stage4-opcodes:
7c27e184
PB
30257
30258@if opcodes-bootstrap
30259maybe-configure-stage4-opcodes: configure-stage4-opcodes
ce521a9c
PB
30260configure-stage4-opcodes:
30261 @$(MAKE) stage4-start
30262 @[ -f opcodes/Makefile ] && exit 0 || : ; \
7c27e184
PB
30263 r=`${PWD_COMMAND}`; export r; \
30264 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30265 $(STAGE_HOST_EXPORTS) \
30266 echo Configuring stage 4 in opcodes ; \
30267 cd opcodes || exit 1; \
30268 case $(srcdir) in \
30269 \.) \
30270 srcdiroption="--srcdir=."; \
30271 libsrcdir=".";; \
30272 /* | [A-Za-z]:[\\/]*) \
30273 srcdiroption="--srcdir=$(srcdir)/opcodes"; \
30274 libsrcdir="$$s/opcodes";; \
30275 *) \
30276 srcdiroption="--srcdir=../$(srcdir)/opcodes"; \
30277 libsrcdir="$$s/opcodes";; \
30278 esac; \
30279 $(SHELL) $${libsrcdir}/configure \
30280 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 30281 @stage2_werror_flag@
7c27e184
PB
30282
30283maybe-all-stage4-opcodes: all-stage4-opcodes
30284all-stage4-opcodes: configure-stage4-opcodes
ce521a9c 30285 @$(MAKE) stage4-start
7c27e184
PB
30286 @r=`${PWD_COMMAND}`; export r; \
30287 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30288 $(STAGE_HOST_EXPORTS) \
30289 cd opcodes && \
30290 $(MAKE) $(FLAGS_TO_PASS) \
30291 $(POSTSTAGE1_FLAGS_TO_PASS) \
ce521a9c 30292
45f366ab
PB
30293
30294maybe-clean-stage4-opcodes: clean-stage4-opcodes
30295clean-stage4-opcodes:
30296 @[ -f opcodes/Makefile ] || [ -f stage4-opcodes/Makefile ] \
30297 || exit 0 ; \
30298 [ -f opcodes/Makefile ] || $(MAKE) stage4-start ; \
30299 cd opcodes && \
30300 $(MAKE) $(FLAGS_TO_PASS) \
30301 $(POSTSTAGE1_FLAGS_TO_PASS) \
30302 clean
7c27e184
PB
30303@endif opcodes-bootstrap
30304
45f366ab 30305
ce521a9c
PB
30306.PHONY: configure-stage4-binutils maybe-configure-stage4-binutils
30307.PHONY: all-stage4-binutils maybe-all-stage4-binutils
45f366ab 30308.PHONY: clean-stage4-binutils maybe-clean-stage4-binutils
ce521a9c 30309
7c27e184
PB
30310maybe-configure-stage4-binutils:
30311maybe-all-stage4-binutils:
45f366ab 30312maybe-clean-stage4-binutils:
7c27e184
PB
30313
30314@if binutils-bootstrap
30315maybe-configure-stage4-binutils: configure-stage4-binutils
ce521a9c
PB
30316configure-stage4-binutils:
30317 @$(MAKE) stage4-start
30318 @[ -f binutils/Makefile ] && exit 0 || : ; \
7c27e184
PB
30319 r=`${PWD_COMMAND}`; export r; \
30320 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30321 $(STAGE_HOST_EXPORTS) \
30322 echo Configuring stage 4 in binutils ; \
30323 cd binutils || exit 1; \
30324 case $(srcdir) in \
30325 \.) \
30326 srcdiroption="--srcdir=."; \
30327 libsrcdir=".";; \
30328 /* | [A-Za-z]:[\\/]*) \
30329 srcdiroption="--srcdir=$(srcdir)/binutils"; \
30330 libsrcdir="$$s/binutils";; \
30331 *) \
30332 srcdiroption="--srcdir=../$(srcdir)/binutils"; \
30333 libsrcdir="$$s/binutils";; \
30334 esac; \
30335 $(SHELL) $${libsrcdir}/configure \
30336 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 30337 @stage2_werror_flag@
7c27e184
PB
30338
30339maybe-all-stage4-binutils: all-stage4-binutils
30340all-stage4-binutils: configure-stage4-binutils
ce521a9c 30341 @$(MAKE) stage4-start
7c27e184
PB
30342 @r=`${PWD_COMMAND}`; export r; \
30343 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30344 $(STAGE_HOST_EXPORTS) \
30345 cd binutils && \
30346 $(MAKE) $(FLAGS_TO_PASS) \
30347 $(POSTSTAGE1_FLAGS_TO_PASS) \
ce521a9c 30348
45f366ab
PB
30349
30350maybe-clean-stage4-binutils: clean-stage4-binutils
30351clean-stage4-binutils:
30352 @[ -f binutils/Makefile ] || [ -f stage4-binutils/Makefile ] \
30353 || exit 0 ; \
30354 [ -f binutils/Makefile ] || $(MAKE) stage4-start ; \
30355 cd binutils && \
30356 $(MAKE) $(FLAGS_TO_PASS) \
30357 $(POSTSTAGE1_FLAGS_TO_PASS) \
30358 clean
7c27e184
PB
30359@endif binutils-bootstrap
30360
45f366ab 30361
ce521a9c
PB
30362.PHONY: configure-stage4-gas maybe-configure-stage4-gas
30363.PHONY: all-stage4-gas maybe-all-stage4-gas
45f366ab 30364.PHONY: clean-stage4-gas maybe-clean-stage4-gas
ce521a9c 30365
7c27e184
PB
30366maybe-configure-stage4-gas:
30367maybe-all-stage4-gas:
45f366ab 30368maybe-clean-stage4-gas:
7c27e184
PB
30369
30370@if gas-bootstrap
30371maybe-configure-stage4-gas: configure-stage4-gas
ce521a9c
PB
30372configure-stage4-gas:
30373 @$(MAKE) stage4-start
30374 @[ -f gas/Makefile ] && exit 0 || : ; \
7c27e184
PB
30375 r=`${PWD_COMMAND}`; export r; \
30376 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30377 $(STAGE_HOST_EXPORTS) \
30378 echo Configuring stage 4 in gas ; \
30379 cd gas || exit 1; \
30380 case $(srcdir) in \
30381 \.) \
30382 srcdiroption="--srcdir=."; \
30383 libsrcdir=".";; \
30384 /* | [A-Za-z]:[\\/]*) \
30385 srcdiroption="--srcdir=$(srcdir)/gas"; \
30386 libsrcdir="$$s/gas";; \
30387 *) \
30388 srcdiroption="--srcdir=../$(srcdir)/gas"; \
30389 libsrcdir="$$s/gas";; \
30390 esac; \
30391 $(SHELL) $${libsrcdir}/configure \
30392 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 30393 @stage2_werror_flag@
7c27e184
PB
30394
30395maybe-all-stage4-gas: all-stage4-gas
30396all-stage4-gas: configure-stage4-gas
ce521a9c 30397 @$(MAKE) stage4-start
7c27e184
PB
30398 @r=`${PWD_COMMAND}`; export r; \
30399 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30400 $(STAGE_HOST_EXPORTS) \
30401 cd gas && \
30402 $(MAKE) $(FLAGS_TO_PASS) \
30403 $(POSTSTAGE1_FLAGS_TO_PASS) \
ce521a9c 30404
45f366ab
PB
30405
30406maybe-clean-stage4-gas: clean-stage4-gas
30407clean-stage4-gas:
30408 @[ -f gas/Makefile ] || [ -f stage4-gas/Makefile ] \
30409 || exit 0 ; \
30410 [ -f gas/Makefile ] || $(MAKE) stage4-start ; \
30411 cd gas && \
30412 $(MAKE) $(FLAGS_TO_PASS) \
30413 $(POSTSTAGE1_FLAGS_TO_PASS) \
30414 clean
7c27e184
PB
30415@endif gas-bootstrap
30416
45f366ab 30417
ce521a9c
PB
30418.PHONY: configure-stage4-gcc maybe-configure-stage4-gcc
30419.PHONY: all-stage4-gcc maybe-all-stage4-gcc
45f366ab 30420.PHONY: clean-stage4-gcc maybe-clean-stage4-gcc
ce521a9c 30421
7c27e184
PB
30422maybe-configure-stage4-gcc:
30423maybe-all-stage4-gcc:
45f366ab 30424maybe-clean-stage4-gcc:
7c27e184
PB
30425
30426@if gcc-bootstrap
30427maybe-configure-stage4-gcc: configure-stage4-gcc
ce521a9c
PB
30428configure-stage4-gcc:
30429 @$(MAKE) stage4-start
30430 @[ -f gcc/Makefile ] && exit 0 || : ; \
7c27e184
PB
30431 r=`${PWD_COMMAND}`; export r; \
30432 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30433 $(STAGE_HOST_EXPORTS) \
30434 echo Configuring stage 4 in gcc ; \
30435 cd gcc || exit 1; \
30436 case $(srcdir) in \
30437 \.) \
30438 srcdiroption="--srcdir=."; \
30439 libsrcdir=".";; \
30440 /* | [A-Za-z]:[\\/]*) \
30441 srcdiroption="--srcdir=$(srcdir)/gcc"; \
30442 libsrcdir="$$s/gcc";; \
30443 *) \
30444 srcdiroption="--srcdir=../$(srcdir)/gcc"; \
30445 libsrcdir="$$s/gcc";; \
30446 esac; \
30447 $(SHELL) $${libsrcdir}/configure \
30448 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 30449 @stage2_werror_flag@
7c27e184
PB
30450
30451maybe-all-stage4-gcc: all-stage4-gcc
30452all-stage4-gcc: configure-stage4-gcc
ce521a9c 30453 @$(MAKE) stage4-start
7c27e184
PB
30454 @r=`${PWD_COMMAND}`; export r; \
30455 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30456 $(STAGE_HOST_EXPORTS) \
30457 cd gcc && \
30458 $(MAKE) $(FLAGS_TO_PASS) \
30459 $(POSTSTAGE1_FLAGS_TO_PASS) \
ce521a9c 30460 $(EXTRA_GCC_FLAGS)
45f366ab
PB
30461
30462maybe-clean-stage4-gcc: clean-stage4-gcc
30463clean-stage4-gcc:
30464 @[ -f gcc/Makefile ] || [ -f stage4-gcc/Makefile ] \
30465 || exit 0 ; \
30466 [ -f gcc/Makefile ] || $(MAKE) stage4-start ; \
30467 cd gcc && \
30468 $(MAKE) $(FLAGS_TO_PASS) \
30469 $(POSTSTAGE1_FLAGS_TO_PASS) \
30470 $(EXTRA_GCC_FLAGS) clean
7c27e184
PB
30471@endif gcc-bootstrap
30472
45f366ab 30473
ce521a9c
PB
30474.PHONY: configure-stage4-intl maybe-configure-stage4-intl
30475.PHONY: all-stage4-intl maybe-all-stage4-intl
45f366ab 30476.PHONY: clean-stage4-intl maybe-clean-stage4-intl
ce521a9c 30477
7c27e184
PB
30478maybe-configure-stage4-intl:
30479maybe-all-stage4-intl:
45f366ab 30480maybe-clean-stage4-intl:
7c27e184
PB
30481
30482@if intl-bootstrap
30483maybe-configure-stage4-intl: configure-stage4-intl
ce521a9c
PB
30484configure-stage4-intl:
30485 @$(MAKE) stage4-start
30486 @[ -f intl/Makefile ] && exit 0 || : ; \
7c27e184
PB
30487 r=`${PWD_COMMAND}`; export r; \
30488 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30489 $(STAGE_HOST_EXPORTS) \
30490 echo Configuring stage 4 in intl ; \
30491 cd intl || exit 1; \
30492 case $(srcdir) in \
30493 \.) \
30494 srcdiroption="--srcdir=."; \
30495 libsrcdir=".";; \
30496 /* | [A-Za-z]:[\\/]*) \
30497 srcdiroption="--srcdir=$(srcdir)/intl"; \
30498 libsrcdir="$$s/intl";; \
30499 *) \
30500 srcdiroption="--srcdir=../$(srcdir)/intl"; \
30501 libsrcdir="$$s/intl";; \
30502 esac; \
30503 $(SHELL) $${libsrcdir}/configure \
30504 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 30505 @stage2_werror_flag@
7c27e184
PB
30506
30507maybe-all-stage4-intl: all-stage4-intl
30508all-stage4-intl: configure-stage4-intl
ce521a9c 30509 @$(MAKE) stage4-start
7c27e184
PB
30510 @r=`${PWD_COMMAND}`; export r; \
30511 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30512 $(STAGE_HOST_EXPORTS) \
30513 cd intl && \
30514 $(MAKE) $(FLAGS_TO_PASS) \
30515 $(POSTSTAGE1_FLAGS_TO_PASS) \
ce521a9c 30516
45f366ab
PB
30517
30518maybe-clean-stage4-intl: clean-stage4-intl
30519clean-stage4-intl:
30520 @[ -f intl/Makefile ] || [ -f stage4-intl/Makefile ] \
30521 || exit 0 ; \
30522 [ -f intl/Makefile ] || $(MAKE) stage4-start ; \
30523 cd intl && \
30524 $(MAKE) $(FLAGS_TO_PASS) \
30525 $(POSTSTAGE1_FLAGS_TO_PASS) \
30526 clean
7c27e184
PB
30527@endif intl-bootstrap
30528
45f366ab 30529
ce521a9c
PB
30530.PHONY: configure-stage4-ld maybe-configure-stage4-ld
30531.PHONY: all-stage4-ld maybe-all-stage4-ld
45f366ab 30532.PHONY: clean-stage4-ld maybe-clean-stage4-ld
ce521a9c 30533
7c27e184
PB
30534maybe-configure-stage4-ld:
30535maybe-all-stage4-ld:
45f366ab 30536maybe-clean-stage4-ld:
7c27e184
PB
30537
30538@if ld-bootstrap
30539maybe-configure-stage4-ld: configure-stage4-ld
ce521a9c
PB
30540configure-stage4-ld:
30541 @$(MAKE) stage4-start
30542 @[ -f ld/Makefile ] && exit 0 || : ; \
7c27e184
PB
30543 r=`${PWD_COMMAND}`; export r; \
30544 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30545 $(STAGE_HOST_EXPORTS) \
30546 echo Configuring stage 4 in ld ; \
30547 cd ld || exit 1; \
30548 case $(srcdir) in \
30549 \.) \
30550 srcdiroption="--srcdir=."; \
30551 libsrcdir=".";; \
30552 /* | [A-Za-z]:[\\/]*) \
30553 srcdiroption="--srcdir=$(srcdir)/ld"; \
30554 libsrcdir="$$s/ld";; \
30555 *) \
30556 srcdiroption="--srcdir=../$(srcdir)/ld"; \
30557 libsrcdir="$$s/ld";; \
30558 esac; \
30559 $(SHELL) $${libsrcdir}/configure \
30560 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 30561 @stage2_werror_flag@
7c27e184
PB
30562
30563maybe-all-stage4-ld: all-stage4-ld
30564all-stage4-ld: configure-stage4-ld
ce521a9c 30565 @$(MAKE) stage4-start
7c27e184
PB
30566 @r=`${PWD_COMMAND}`; export r; \
30567 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30568 $(STAGE_HOST_EXPORTS) \
30569 cd ld && \
30570 $(MAKE) $(FLAGS_TO_PASS) \
30571 $(POSTSTAGE1_FLAGS_TO_PASS) \
ce521a9c 30572
45f366ab
PB
30573
30574maybe-clean-stage4-ld: clean-stage4-ld
30575clean-stage4-ld:
30576 @[ -f ld/Makefile ] || [ -f stage4-ld/Makefile ] \
30577 || exit 0 ; \
30578 [ -f ld/Makefile ] || $(MAKE) stage4-start ; \
30579 cd ld && \
30580 $(MAKE) $(FLAGS_TO_PASS) \
30581 $(POSTSTAGE1_FLAGS_TO_PASS) \
30582 clean
7c27e184
PB
30583@endif ld-bootstrap
30584
45f366ab 30585
ce521a9c
PB
30586.PHONY: configure-stage4-libcpp maybe-configure-stage4-libcpp
30587.PHONY: all-stage4-libcpp maybe-all-stage4-libcpp
45f366ab 30588.PHONY: clean-stage4-libcpp maybe-clean-stage4-libcpp
ce521a9c 30589
7c27e184
PB
30590maybe-configure-stage4-libcpp:
30591maybe-all-stage4-libcpp:
45f366ab 30592maybe-clean-stage4-libcpp:
7c27e184
PB
30593
30594@if libcpp-bootstrap
30595maybe-configure-stage4-libcpp: configure-stage4-libcpp
ce521a9c
PB
30596configure-stage4-libcpp:
30597 @$(MAKE) stage4-start
30598 @[ -f libcpp/Makefile ] && exit 0 || : ; \
7c27e184
PB
30599 r=`${PWD_COMMAND}`; export r; \
30600 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30601 $(STAGE_HOST_EXPORTS) \
30602 echo Configuring stage 4 in libcpp ; \
30603 cd libcpp || exit 1; \
30604 case $(srcdir) in \
30605 \.) \
30606 srcdiroption="--srcdir=."; \
30607 libsrcdir=".";; \
30608 /* | [A-Za-z]:[\\/]*) \
30609 srcdiroption="--srcdir=$(srcdir)/libcpp"; \
30610 libsrcdir="$$s/libcpp";; \
30611 *) \
30612 srcdiroption="--srcdir=../$(srcdir)/libcpp"; \
30613 libsrcdir="$$s/libcpp";; \
30614 esac; \
30615 $(SHELL) $${libsrcdir}/configure \
30616 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 30617 @stage2_werror_flag@
7c27e184
PB
30618
30619maybe-all-stage4-libcpp: all-stage4-libcpp
30620all-stage4-libcpp: configure-stage4-libcpp
ce521a9c 30621 @$(MAKE) stage4-start
7c27e184
PB
30622 @r=`${PWD_COMMAND}`; export r; \
30623 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30624 $(STAGE_HOST_EXPORTS) \
30625 cd libcpp && \
30626 $(MAKE) $(FLAGS_TO_PASS) \
30627 $(POSTSTAGE1_FLAGS_TO_PASS) \
ce521a9c 30628
45f366ab
PB
30629
30630maybe-clean-stage4-libcpp: clean-stage4-libcpp
30631clean-stage4-libcpp:
30632 @[ -f libcpp/Makefile ] || [ -f stage4-libcpp/Makefile ] \
30633 || exit 0 ; \
30634 [ -f libcpp/Makefile ] || $(MAKE) stage4-start ; \
30635 cd libcpp && \
30636 $(MAKE) $(FLAGS_TO_PASS) \
30637 $(POSTSTAGE1_FLAGS_TO_PASS) \
30638 clean
7c27e184
PB
30639@endif libcpp-bootstrap
30640
45f366ab 30641
ce521a9c
PB
30642.PHONY: configure-stage4-libiberty maybe-configure-stage4-libiberty
30643.PHONY: all-stage4-libiberty maybe-all-stage4-libiberty
45f366ab 30644.PHONY: clean-stage4-libiberty maybe-clean-stage4-libiberty
ce521a9c 30645
7c27e184
PB
30646maybe-configure-stage4-libiberty:
30647maybe-all-stage4-libiberty:
45f366ab 30648maybe-clean-stage4-libiberty:
7c27e184
PB
30649
30650@if libiberty-bootstrap
30651maybe-configure-stage4-libiberty: configure-stage4-libiberty
ce521a9c
PB
30652configure-stage4-libiberty:
30653 @$(MAKE) stage4-start
30654 @[ -f libiberty/Makefile ] && exit 0 || : ; \
7c27e184
PB
30655 r=`${PWD_COMMAND}`; export r; \
30656 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30657 $(STAGE_HOST_EXPORTS) \
30658 echo Configuring stage 4 in libiberty ; \
30659 cd libiberty || exit 1; \
30660 case $(srcdir) in \
30661 \.) \
30662 srcdiroption="--srcdir=."; \
30663 libsrcdir=".";; \
30664 /* | [A-Za-z]:[\\/]*) \
30665 srcdiroption="--srcdir=$(srcdir)/libiberty"; \
30666 libsrcdir="$$s/libiberty";; \
30667 *) \
30668 srcdiroption="--srcdir=../$(srcdir)/libiberty"; \
30669 libsrcdir="$$s/libiberty";; \
30670 esac; \
30671 $(SHELL) $${libsrcdir}/configure \
30672 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 30673 @stage2_werror_flag@
7c27e184
PB
30674
30675maybe-all-stage4-libiberty: all-stage4-libiberty
30676all-stage4-libiberty: configure-stage4-libiberty
ce521a9c 30677 @$(MAKE) stage4-start
7c27e184
PB
30678 @r=`${PWD_COMMAND}`; export r; \
30679 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30680 $(STAGE_HOST_EXPORTS) \
30681 cd libiberty && \
30682 $(MAKE) $(FLAGS_TO_PASS) \
30683 $(POSTSTAGE1_FLAGS_TO_PASS) \
ce521a9c 30684
45f366ab
PB
30685
30686maybe-clean-stage4-libiberty: clean-stage4-libiberty
30687clean-stage4-libiberty:
30688 @[ -f libiberty/Makefile ] || [ -f stage4-libiberty/Makefile ] \
30689 || exit 0 ; \
30690 [ -f libiberty/Makefile ] || $(MAKE) stage4-start ; \
30691 cd libiberty && \
30692 $(MAKE) $(FLAGS_TO_PASS) \
30693 $(POSTSTAGE1_FLAGS_TO_PASS) \
30694 clean
7c27e184
PB
30695@endif libiberty-bootstrap
30696
45f366ab 30697
ce521a9c
PB
30698.PHONY: configure-stage4-zlib maybe-configure-stage4-zlib
30699.PHONY: all-stage4-zlib maybe-all-stage4-zlib
45f366ab 30700.PHONY: clean-stage4-zlib maybe-clean-stage4-zlib
ce521a9c 30701
7c27e184
PB
30702maybe-configure-stage4-zlib:
30703maybe-all-stage4-zlib:
45f366ab 30704maybe-clean-stage4-zlib:
7c27e184
PB
30705
30706@if zlib-bootstrap
30707maybe-configure-stage4-zlib: configure-stage4-zlib
ce521a9c
PB
30708configure-stage4-zlib:
30709 @$(MAKE) stage4-start
30710 @[ -f zlib/Makefile ] && exit 0 || : ; \
7c27e184
PB
30711 r=`${PWD_COMMAND}`; export r; \
30712 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30713 $(STAGE_HOST_EXPORTS) \
30714 echo Configuring stage 4 in zlib ; \
30715 cd zlib || exit 1; \
30716 case $(srcdir) in \
30717 \.) \
30718 srcdiroption="--srcdir=."; \
30719 libsrcdir=".";; \
30720 /* | [A-Za-z]:[\\/]*) \
30721 srcdiroption="--srcdir=$(srcdir)/zlib"; \
30722 libsrcdir="$$s/zlib";; \
30723 *) \
30724 srcdiroption="--srcdir=../$(srcdir)/zlib"; \
30725 libsrcdir="$$s/zlib";; \
30726 esac; \
30727 $(SHELL) $${libsrcdir}/configure \
30728 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 30729 @stage2_werror_flag@
7c27e184
PB
30730
30731maybe-all-stage4-zlib: all-stage4-zlib
30732all-stage4-zlib: configure-stage4-zlib
ce521a9c 30733 @$(MAKE) stage4-start
7c27e184
PB
30734 @r=`${PWD_COMMAND}`; export r; \
30735 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30736 $(STAGE_HOST_EXPORTS) \
30737 cd zlib && \
30738 $(MAKE) $(FLAGS_TO_PASS) \
30739 $(POSTSTAGE1_FLAGS_TO_PASS) \
ce521a9c 30740
45f366ab
PB
30741
30742maybe-clean-stage4-zlib: clean-stage4-zlib
30743clean-stage4-zlib:
30744 @[ -f zlib/Makefile ] || [ -f stage4-zlib/Makefile ] \
30745 || exit 0 ; \
30746 [ -f zlib/Makefile ] || $(MAKE) stage4-start ; \
30747 cd zlib && \
30748 $(MAKE) $(FLAGS_TO_PASS) \
30749 $(POSTSTAGE1_FLAGS_TO_PASS) \
30750 clean
7c27e184
PB
30751@endif zlib-bootstrap
30752
30753
45f366ab 30754
7c27e184
PB
30755# FIXME: Will not need to be conditional when toplevel bootstrap is the
30756# only possibility, but now it conflicts with no-bootstrap rules
30757@if gcc-bootstrap
30758
ce521a9c
PB
30759compare3:
30760 @if test -f stage3-lean; then \
30761 echo Cannot compare object files as stage 3 was deleted. ; \
30762 exit 0 ; \
30763 fi; \
30764 [ -f stage_current ] && $(MAKE) `cat stage_current`-end || : ; \
7c27e184
PB
30765 @r=`${PWD_COMMAND}`; export r; \
30766 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30767 rm -f .bad_compare ; \
30768 cd stage4-gcc; \
30769 files=`find . -name "*$(objext)" -print` ; \
30770 cd .. ; \
30771 for file in $${files} ; do \
30772 f1=$$r/stage3-gcc/$$file; f2=$$r/stage4-gcc/$$file; \
30773 @do_compare@ > /dev/null 2>&1; \
30774 test $$? -eq 1 && echo $$file differs >> .bad_compare || true; \
30775 done ; \
30776 if [ -f .bad_compare ]; then \
30777 echo "Bootstrap comparison failure!"; \
30778 cat .bad_compare; \
30779 exit 1; \
30780 else \
30781 true; \
30782 fi ; \
30783 $(STAMP) compare3
ce521a9c 30784 @bootstrap_lean@-rm -rf stage3-* ; $(STAMP) stage3-lean
7c27e184
PB
30785
30786
30787
30788.PHONY: bootstrap4
ce521a9c 30789bootstrap4: stage4-bubble compare3 all
7c27e184
PB
30790
30791
45f366ab 30792# Rules to wipe a stage and all the following ones, also used for cleanstrap
7c27e184 30793distclean-stage3:: distclean-stage4
45f366ab 30794.PHONY: distclean-stage4
7c27e184
PB
30795distclean-stage4::
30796 [ -f stage_current ] && $(MAKE) `cat stage_current`-end || :
ce521a9c 30797 rm -rf stage4-* compare3
7c27e184
PB
30798
30799
30800@endif gcc-bootstrap
30801
30802
30803.PHONY: stageprofile-start stageprofile-end
30804
30805stageprofile-start::
ce521a9c 30806 @[ -f stage_current ] && $(MAKE) `cat stage_current`-end || : ; \
7c27e184
PB
30807 echo stageprofile > stage_current ; \
30808 echo stageprofile > stage_last
30809@if bfd
ce521a9c 30810 @[ -d stageprofile-bfd ] || mkdir stageprofile-bfd; \
7c27e184
PB
30811 set stageprofile-bfd bfd ; @CREATE_LINK_TO_DIR@ ; \
30812 set stage1-bfd prev-bfd ; @CREATE_LINK_TO_DIR@
30813@endif bfd
30814@if opcodes
ce521a9c 30815 @[ -d stageprofile-opcodes ] || mkdir stageprofile-opcodes; \
7c27e184
PB
30816 set stageprofile-opcodes opcodes ; @CREATE_LINK_TO_DIR@ ; \
30817 set stage1-opcodes prev-opcodes ; @CREATE_LINK_TO_DIR@
30818@endif opcodes
30819@if binutils
ce521a9c 30820 @[ -d stageprofile-binutils ] || mkdir stageprofile-binutils; \
7c27e184
PB
30821 set stageprofile-binutils binutils ; @CREATE_LINK_TO_DIR@ ; \
30822 set stage1-binutils prev-binutils ; @CREATE_LINK_TO_DIR@
30823@endif binutils
30824@if gas
ce521a9c 30825 @[ -d stageprofile-gas ] || mkdir stageprofile-gas; \
7c27e184
PB
30826 set stageprofile-gas gas ; @CREATE_LINK_TO_DIR@ ; \
30827 set stage1-gas prev-gas ; @CREATE_LINK_TO_DIR@
30828@endif gas
30829@if gcc
ce521a9c 30830 @[ -d stageprofile-gcc ] || mkdir stageprofile-gcc; \
7c27e184
PB
30831 set stageprofile-gcc gcc ; @CREATE_LINK_TO_DIR@ ; \
30832 set stage1-gcc prev-gcc ; @CREATE_LINK_TO_DIR@
30833@endif gcc
30834@if intl
ce521a9c 30835 @[ -d stageprofile-intl ] || mkdir stageprofile-intl; \
7c27e184
PB
30836 set stageprofile-intl intl ; @CREATE_LINK_TO_DIR@ ; \
30837 set stage1-intl prev-intl ; @CREATE_LINK_TO_DIR@
30838@endif intl
30839@if ld
ce521a9c 30840 @[ -d stageprofile-ld ] || mkdir stageprofile-ld; \
7c27e184
PB
30841 set stageprofile-ld ld ; @CREATE_LINK_TO_DIR@ ; \
30842 set stage1-ld prev-ld ; @CREATE_LINK_TO_DIR@
30843@endif ld
30844@if libcpp
ce521a9c 30845 @[ -d stageprofile-libcpp ] || mkdir stageprofile-libcpp; \
7c27e184
PB
30846 set stageprofile-libcpp libcpp ; @CREATE_LINK_TO_DIR@ ; \
30847 set stage1-libcpp prev-libcpp ; @CREATE_LINK_TO_DIR@
30848@endif libcpp
7c27e184 30849@if libiberty
ce521a9c 30850 @[ -d stageprofile-libiberty ] || mkdir stageprofile-libiberty; \
7c27e184
PB
30851 set stageprofile-libiberty libiberty ; @CREATE_LINK_TO_DIR@ ; \
30852 set stage1-libiberty prev-libiberty ; @CREATE_LINK_TO_DIR@
30853@endif libiberty
30854@if zlib
ce521a9c 30855 @[ -d stageprofile-zlib ] || mkdir stageprofile-zlib; \
7c27e184
PB
30856 set stageprofile-zlib zlib ; @CREATE_LINK_TO_DIR@ ; \
30857 set stage1-zlib prev-zlib ; @CREATE_LINK_TO_DIR@
30858@endif zlib
30859
30860stageprofile-end::
ce521a9c 30861 @rm -f stage_current
7c27e184 30862@if bfd
ce521a9c 30863 @set bfd stageprofile-bfd ; @UNDO_LINK_TO_DIR@ ; \
7c27e184
PB
30864 set prev-bfd stage1-bfd ; @UNDO_LINK_TO_DIR@
30865@endif bfd
30866@if opcodes
ce521a9c 30867 @set opcodes stageprofile-opcodes ; @UNDO_LINK_TO_DIR@ ; \
7c27e184
PB
30868 set prev-opcodes stage1-opcodes ; @UNDO_LINK_TO_DIR@
30869@endif opcodes
30870@if binutils
ce521a9c 30871 @set binutils stageprofile-binutils ; @UNDO_LINK_TO_DIR@ ; \
7c27e184
PB
30872 set prev-binutils stage1-binutils ; @UNDO_LINK_TO_DIR@
30873@endif binutils
30874@if gas
ce521a9c 30875 @set gas stageprofile-gas ; @UNDO_LINK_TO_DIR@ ; \
7c27e184
PB
30876 set prev-gas stage1-gas ; @UNDO_LINK_TO_DIR@
30877@endif gas
30878@if gcc
ce521a9c 30879 @set gcc stageprofile-gcc ; @UNDO_LINK_TO_DIR@ ; \
7c27e184
PB
30880 set prev-gcc stage1-gcc ; @UNDO_LINK_TO_DIR@
30881@endif gcc
30882@if intl
ce521a9c 30883 @set intl stageprofile-intl ; @UNDO_LINK_TO_DIR@ ; \
7c27e184
PB
30884 set prev-intl stage1-intl ; @UNDO_LINK_TO_DIR@
30885@endif intl
30886@if ld
ce521a9c 30887 @set ld stageprofile-ld ; @UNDO_LINK_TO_DIR@ ; \
7c27e184
PB
30888 set prev-ld stage1-ld ; @UNDO_LINK_TO_DIR@
30889@endif ld
30890@if libcpp
ce521a9c 30891 @set libcpp stageprofile-libcpp ; @UNDO_LINK_TO_DIR@ ; \
7c27e184
PB
30892 set prev-libcpp stage1-libcpp ; @UNDO_LINK_TO_DIR@
30893@endif libcpp
7c27e184 30894@if libiberty
ce521a9c 30895 @set libiberty stageprofile-libiberty ; @UNDO_LINK_TO_DIR@ ; \
7c27e184
PB
30896 set prev-libiberty stage1-libiberty ; @UNDO_LINK_TO_DIR@
30897@endif libiberty
30898@if zlib
ce521a9c 30899 @set zlib stageprofile-zlib ; @UNDO_LINK_TO_DIR@ ; \
7c27e184
PB
30900 set prev-zlib stage1-zlib ; @UNDO_LINK_TO_DIR@
30901@endif zlib
30902
30903# Bubble a bugfix through all the stages up to stage profile. They
30904# are remade, but not reconfigured. The next stage (if any) will not
30905# be reconfigured as well.
30906.PHONY: stageprofile-bubble
30907stageprofile-bubble:: stage1-bubble
ce521a9c
PB
30908 @if test -f stageprofile-lean || test -f stage1-lean ; then \
30909 echo Skipping rebuild of stageprofile ; \
30910 else \
45f366ab 30911 $(MAKE) $(RECURSE_FLAGS_TO_PASS) NOTPARALLEL= all-stageprofile; \
ce521a9c 30912 fi
7c27e184 30913
45f366ab 30914.PHONY: all-stageprofile clean-stageprofile
7c27e184
PB
30915all-stageprofile: \
30916 maybe-all-stageprofile-bfd \
30917 maybe-all-stageprofile-opcodes \
30918 maybe-all-stageprofile-binutils \
30919 maybe-all-stageprofile-gas \
30920 maybe-all-stageprofile-gcc \
30921 maybe-all-stageprofile-intl \
30922 maybe-all-stageprofile-ld \
30923 maybe-all-stageprofile-libcpp \
7c27e184
PB
30924 maybe-all-stageprofile-libiberty \
30925 maybe-all-stageprofile-zlib
30926
45f366ab
PB
30927do-clean: clean-stageprofile
30928clean-stageprofile: \
30929 maybe-clean-stageprofile-bfd \
30930 maybe-clean-stageprofile-opcodes \
30931 maybe-clean-stageprofile-binutils \
30932 maybe-clean-stageprofile-gas \
30933 maybe-clean-stageprofile-gcc \
30934 maybe-clean-stageprofile-intl \
30935 maybe-clean-stageprofile-ld \
30936 maybe-clean-stageprofile-libcpp \
45f366ab
PB
30937 maybe-clean-stageprofile-libiberty \
30938 maybe-clean-stageprofile-zlib
30939
7c27e184 30940
ce521a9c
PB
30941.PHONY: configure-stageprofile-bfd maybe-configure-stageprofile-bfd
30942.PHONY: all-stageprofile-bfd maybe-all-stageprofile-bfd
45f366ab 30943.PHONY: clean-stageprofile-bfd maybe-clean-stageprofile-bfd
ce521a9c 30944
7c27e184
PB
30945maybe-configure-stageprofile-bfd:
30946maybe-all-stageprofile-bfd:
45f366ab 30947maybe-clean-stageprofile-bfd:
7c27e184
PB
30948
30949@if bfd-bootstrap
30950maybe-configure-stageprofile-bfd: configure-stageprofile-bfd
ce521a9c
PB
30951configure-stageprofile-bfd:
30952 @$(MAKE) stageprofile-start
30953 @[ -f bfd/Makefile ] && exit 0 || : ; \
7c27e184
PB
30954 r=`${PWD_COMMAND}`; export r; \
30955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30956 $(STAGE_HOST_EXPORTS) \
30957 echo Configuring stage profile in bfd ; \
30958 cd bfd || exit 1; \
30959 case $(srcdir) in \
30960 \.) \
30961 srcdiroption="--srcdir=."; \
30962 libsrcdir=".";; \
30963 /* | [A-Za-z]:[\\/]*) \
30964 srcdiroption="--srcdir=$(srcdir)/bfd"; \
30965 libsrcdir="$$s/bfd";; \
30966 *) \
30967 srcdiroption="--srcdir=../$(srcdir)/bfd"; \
30968 libsrcdir="$$s/bfd";; \
30969 esac; \
30970 $(SHELL) $${libsrcdir}/configure \
30971 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 30972 @stage2_werror_flag@
7c27e184
PB
30973
30974maybe-all-stageprofile-bfd: all-stageprofile-bfd
30975all-stageprofile-bfd: configure-stageprofile-bfd
ce521a9c 30976 @$(MAKE) stageprofile-start
7c27e184
PB
30977 @r=`${PWD_COMMAND}`; export r; \
30978 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30979 $(STAGE_HOST_EXPORTS) \
30980 cd bfd && \
30981 $(MAKE) $(FLAGS_TO_PASS) \
30982 $(POSTSTAGE1_FLAGS_TO_PASS) \
ce521a9c 30983 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate"
45f366ab
PB
30984
30985maybe-clean-stageprofile-bfd: clean-stageprofile-bfd
30986clean-stageprofile-bfd:
30987 @[ -f bfd/Makefile ] || [ -f stageprofile-bfd/Makefile ] \
30988 || exit 0 ; \
30989 [ -f bfd/Makefile ] || $(MAKE) stageprofile-start ; \
30990 cd bfd && \
30991 $(MAKE) $(FLAGS_TO_PASS) \
30992 $(POSTSTAGE1_FLAGS_TO_PASS) \
30993 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
7c27e184
PB
30994@endif bfd-bootstrap
30995
45f366ab 30996
ce521a9c
PB
30997.PHONY: configure-stageprofile-opcodes maybe-configure-stageprofile-opcodes
30998.PHONY: all-stageprofile-opcodes maybe-all-stageprofile-opcodes
45f366ab 30999.PHONY: clean-stageprofile-opcodes maybe-clean-stageprofile-opcodes
ce521a9c 31000
7c27e184
PB
31001maybe-configure-stageprofile-opcodes:
31002maybe-all-stageprofile-opcodes:
45f366ab 31003maybe-clean-stageprofile-opcodes:
7c27e184
PB
31004
31005@if opcodes-bootstrap
31006maybe-configure-stageprofile-opcodes: configure-stageprofile-opcodes
ce521a9c
PB
31007configure-stageprofile-opcodes:
31008 @$(MAKE) stageprofile-start
31009 @[ -f opcodes/Makefile ] && exit 0 || : ; \
7c27e184
PB
31010 r=`${PWD_COMMAND}`; export r; \
31011 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31012 $(STAGE_HOST_EXPORTS) \
31013 echo Configuring stage profile in opcodes ; \
31014 cd opcodes || exit 1; \
31015 case $(srcdir) in \
31016 \.) \
31017 srcdiroption="--srcdir=."; \
31018 libsrcdir=".";; \
31019 /* | [A-Za-z]:[\\/]*) \
31020 srcdiroption="--srcdir=$(srcdir)/opcodes"; \
31021 libsrcdir="$$s/opcodes";; \
31022 *) \
31023 srcdiroption="--srcdir=../$(srcdir)/opcodes"; \
31024 libsrcdir="$$s/opcodes";; \
31025 esac; \
31026 $(SHELL) $${libsrcdir}/configure \
31027 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 31028 @stage2_werror_flag@
7c27e184
PB
31029
31030maybe-all-stageprofile-opcodes: all-stageprofile-opcodes
31031all-stageprofile-opcodes: configure-stageprofile-opcodes
ce521a9c 31032 @$(MAKE) stageprofile-start
7c27e184
PB
31033 @r=`${PWD_COMMAND}`; export r; \
31034 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31035 $(STAGE_HOST_EXPORTS) \
31036 cd opcodes && \
31037 $(MAKE) $(FLAGS_TO_PASS) \
31038 $(POSTSTAGE1_FLAGS_TO_PASS) \
ce521a9c 31039 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate"
45f366ab
PB
31040
31041maybe-clean-stageprofile-opcodes: clean-stageprofile-opcodes
31042clean-stageprofile-opcodes:
31043 @[ -f opcodes/Makefile ] || [ -f stageprofile-opcodes/Makefile ] \
31044 || exit 0 ; \
31045 [ -f opcodes/Makefile ] || $(MAKE) stageprofile-start ; \
31046 cd opcodes && \
31047 $(MAKE) $(FLAGS_TO_PASS) \
31048 $(POSTSTAGE1_FLAGS_TO_PASS) \
31049 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
7c27e184
PB
31050@endif opcodes-bootstrap
31051
45f366ab 31052
ce521a9c
PB
31053.PHONY: configure-stageprofile-binutils maybe-configure-stageprofile-binutils
31054.PHONY: all-stageprofile-binutils maybe-all-stageprofile-binutils
45f366ab 31055.PHONY: clean-stageprofile-binutils maybe-clean-stageprofile-binutils
ce521a9c 31056
7c27e184
PB
31057maybe-configure-stageprofile-binutils:
31058maybe-all-stageprofile-binutils:
45f366ab 31059maybe-clean-stageprofile-binutils:
7c27e184
PB
31060
31061@if binutils-bootstrap
31062maybe-configure-stageprofile-binutils: configure-stageprofile-binutils
ce521a9c
PB
31063configure-stageprofile-binutils:
31064 @$(MAKE) stageprofile-start
31065 @[ -f binutils/Makefile ] && exit 0 || : ; \
7c27e184
PB
31066 r=`${PWD_COMMAND}`; export r; \
31067 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31068 $(STAGE_HOST_EXPORTS) \
31069 echo Configuring stage profile in binutils ; \
31070 cd binutils || exit 1; \
31071 case $(srcdir) in \
31072 \.) \
31073 srcdiroption="--srcdir=."; \
31074 libsrcdir=".";; \
31075 /* | [A-Za-z]:[\\/]*) \
31076 srcdiroption="--srcdir=$(srcdir)/binutils"; \
31077 libsrcdir="$$s/binutils";; \
31078 *) \
31079 srcdiroption="--srcdir=../$(srcdir)/binutils"; \
31080 libsrcdir="$$s/binutils";; \
31081 esac; \
31082 $(SHELL) $${libsrcdir}/configure \
31083 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 31084 @stage2_werror_flag@
7c27e184
PB
31085
31086maybe-all-stageprofile-binutils: all-stageprofile-binutils
31087all-stageprofile-binutils: configure-stageprofile-binutils
ce521a9c 31088 @$(MAKE) stageprofile-start
7c27e184
PB
31089 @r=`${PWD_COMMAND}`; export r; \
31090 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31091 $(STAGE_HOST_EXPORTS) \
31092 cd binutils && \
31093 $(MAKE) $(FLAGS_TO_PASS) \
31094 $(POSTSTAGE1_FLAGS_TO_PASS) \
ce521a9c 31095 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate"
45f366ab
PB
31096
31097maybe-clean-stageprofile-binutils: clean-stageprofile-binutils
31098clean-stageprofile-binutils:
31099 @[ -f binutils/Makefile ] || [ -f stageprofile-binutils/Makefile ] \
31100 || exit 0 ; \
31101 [ -f binutils/Makefile ] || $(MAKE) stageprofile-start ; \
31102 cd binutils && \
31103 $(MAKE) $(FLAGS_TO_PASS) \
31104 $(POSTSTAGE1_FLAGS_TO_PASS) \
31105 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
7c27e184
PB
31106@endif binutils-bootstrap
31107
45f366ab 31108
ce521a9c
PB
31109.PHONY: configure-stageprofile-gas maybe-configure-stageprofile-gas
31110.PHONY: all-stageprofile-gas maybe-all-stageprofile-gas
45f366ab 31111.PHONY: clean-stageprofile-gas maybe-clean-stageprofile-gas
ce521a9c 31112
7c27e184
PB
31113maybe-configure-stageprofile-gas:
31114maybe-all-stageprofile-gas:
45f366ab 31115maybe-clean-stageprofile-gas:
7c27e184
PB
31116
31117@if gas-bootstrap
31118maybe-configure-stageprofile-gas: configure-stageprofile-gas
ce521a9c
PB
31119configure-stageprofile-gas:
31120 @$(MAKE) stageprofile-start
31121 @[ -f gas/Makefile ] && exit 0 || : ; \
7c27e184
PB
31122 r=`${PWD_COMMAND}`; export r; \
31123 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31124 $(STAGE_HOST_EXPORTS) \
31125 echo Configuring stage profile in gas ; \
31126 cd gas || exit 1; \
31127 case $(srcdir) in \
31128 \.) \
31129 srcdiroption="--srcdir=."; \
31130 libsrcdir=".";; \
31131 /* | [A-Za-z]:[\\/]*) \
31132 srcdiroption="--srcdir=$(srcdir)/gas"; \
31133 libsrcdir="$$s/gas";; \
31134 *) \
31135 srcdiroption="--srcdir=../$(srcdir)/gas"; \
31136 libsrcdir="$$s/gas";; \
31137 esac; \
31138 $(SHELL) $${libsrcdir}/configure \
31139 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 31140 @stage2_werror_flag@
7c27e184
PB
31141
31142maybe-all-stageprofile-gas: all-stageprofile-gas
31143all-stageprofile-gas: configure-stageprofile-gas
ce521a9c 31144 @$(MAKE) stageprofile-start
7c27e184
PB
31145 @r=`${PWD_COMMAND}`; export r; \
31146 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31147 $(STAGE_HOST_EXPORTS) \
31148 cd gas && \
31149 $(MAKE) $(FLAGS_TO_PASS) \
31150 $(POSTSTAGE1_FLAGS_TO_PASS) \
ce521a9c 31151 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate"
45f366ab
PB
31152
31153maybe-clean-stageprofile-gas: clean-stageprofile-gas
31154clean-stageprofile-gas:
31155 @[ -f gas/Makefile ] || [ -f stageprofile-gas/Makefile ] \
31156 || exit 0 ; \
31157 [ -f gas/Makefile ] || $(MAKE) stageprofile-start ; \
31158 cd gas && \
31159 $(MAKE) $(FLAGS_TO_PASS) \
31160 $(POSTSTAGE1_FLAGS_TO_PASS) \
31161 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
7c27e184
PB
31162@endif gas-bootstrap
31163
45f366ab 31164
ce521a9c
PB
31165.PHONY: configure-stageprofile-gcc maybe-configure-stageprofile-gcc
31166.PHONY: all-stageprofile-gcc maybe-all-stageprofile-gcc
45f366ab 31167.PHONY: clean-stageprofile-gcc maybe-clean-stageprofile-gcc
ce521a9c 31168
7c27e184
PB
31169maybe-configure-stageprofile-gcc:
31170maybe-all-stageprofile-gcc:
45f366ab 31171maybe-clean-stageprofile-gcc:
7c27e184
PB
31172
31173@if gcc-bootstrap
31174maybe-configure-stageprofile-gcc: configure-stageprofile-gcc
ce521a9c
PB
31175configure-stageprofile-gcc:
31176 @$(MAKE) stageprofile-start
31177 @[ -f gcc/Makefile ] && exit 0 || : ; \
7c27e184
PB
31178 r=`${PWD_COMMAND}`; export r; \
31179 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31180 $(STAGE_HOST_EXPORTS) \
31181 echo Configuring stage profile in gcc ; \
31182 cd gcc || exit 1; \
31183 case $(srcdir) in \
31184 \.) \
31185 srcdiroption="--srcdir=."; \
31186 libsrcdir=".";; \
31187 /* | [A-Za-z]:[\\/]*) \
31188 srcdiroption="--srcdir=$(srcdir)/gcc"; \
31189 libsrcdir="$$s/gcc";; \
31190 *) \
31191 srcdiroption="--srcdir=../$(srcdir)/gcc"; \
31192 libsrcdir="$$s/gcc";; \
31193 esac; \
31194 $(SHELL) $${libsrcdir}/configure \
31195 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 31196 @stage2_werror_flag@
7c27e184
PB
31197
31198maybe-all-stageprofile-gcc: all-stageprofile-gcc
31199all-stageprofile-gcc: configure-stageprofile-gcc
ce521a9c 31200 @$(MAKE) stageprofile-start
7c27e184
PB
31201 @r=`${PWD_COMMAND}`; export r; \
31202 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31203 $(STAGE_HOST_EXPORTS) \
31204 cd gcc && \
31205 $(MAKE) $(FLAGS_TO_PASS) \
31206 $(POSTSTAGE1_FLAGS_TO_PASS) \
ce521a9c 31207 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" $(EXTRA_GCC_FLAGS)
45f366ab
PB
31208
31209maybe-clean-stageprofile-gcc: clean-stageprofile-gcc
31210clean-stageprofile-gcc:
31211 @[ -f gcc/Makefile ] || [ -f stageprofile-gcc/Makefile ] \
31212 || exit 0 ; \
31213 [ -f gcc/Makefile ] || $(MAKE) stageprofile-start ; \
31214 cd gcc && \
31215 $(MAKE) $(FLAGS_TO_PASS) \
31216 $(POSTSTAGE1_FLAGS_TO_PASS) \
31217 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" $(EXTRA_GCC_FLAGS) clean
7c27e184
PB
31218@endif gcc-bootstrap
31219
45f366ab 31220
ce521a9c
PB
31221.PHONY: configure-stageprofile-intl maybe-configure-stageprofile-intl
31222.PHONY: all-stageprofile-intl maybe-all-stageprofile-intl
45f366ab 31223.PHONY: clean-stageprofile-intl maybe-clean-stageprofile-intl
ce521a9c 31224
7c27e184
PB
31225maybe-configure-stageprofile-intl:
31226maybe-all-stageprofile-intl:
45f366ab 31227maybe-clean-stageprofile-intl:
7c27e184
PB
31228
31229@if intl-bootstrap
31230maybe-configure-stageprofile-intl: configure-stageprofile-intl
ce521a9c
PB
31231configure-stageprofile-intl:
31232 @$(MAKE) stageprofile-start
31233 @[ -f intl/Makefile ] && exit 0 || : ; \
7c27e184
PB
31234 r=`${PWD_COMMAND}`; export r; \
31235 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31236 $(STAGE_HOST_EXPORTS) \
31237 echo Configuring stage profile in intl ; \
31238 cd intl || exit 1; \
31239 case $(srcdir) in \
31240 \.) \
31241 srcdiroption="--srcdir=."; \
31242 libsrcdir=".";; \
31243 /* | [A-Za-z]:[\\/]*) \
31244 srcdiroption="--srcdir=$(srcdir)/intl"; \
31245 libsrcdir="$$s/intl";; \
31246 *) \
31247 srcdiroption="--srcdir=../$(srcdir)/intl"; \
31248 libsrcdir="$$s/intl";; \
31249 esac; \
31250 $(SHELL) $${libsrcdir}/configure \
31251 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 31252 @stage2_werror_flag@
7c27e184
PB
31253
31254maybe-all-stageprofile-intl: all-stageprofile-intl
31255all-stageprofile-intl: configure-stageprofile-intl
ce521a9c 31256 @$(MAKE) stageprofile-start
7c27e184
PB
31257 @r=`${PWD_COMMAND}`; export r; \
31258 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31259 $(STAGE_HOST_EXPORTS) \
31260 cd intl && \
31261 $(MAKE) $(FLAGS_TO_PASS) \
31262 $(POSTSTAGE1_FLAGS_TO_PASS) \
ce521a9c 31263 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate"
45f366ab
PB
31264
31265maybe-clean-stageprofile-intl: clean-stageprofile-intl
31266clean-stageprofile-intl:
31267 @[ -f intl/Makefile ] || [ -f stageprofile-intl/Makefile ] \
31268 || exit 0 ; \
31269 [ -f intl/Makefile ] || $(MAKE) stageprofile-start ; \
31270 cd intl && \
31271 $(MAKE) $(FLAGS_TO_PASS) \
31272 $(POSTSTAGE1_FLAGS_TO_PASS) \
31273 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
7c27e184
PB
31274@endif intl-bootstrap
31275
45f366ab 31276
ce521a9c
PB
31277.PHONY: configure-stageprofile-ld maybe-configure-stageprofile-ld
31278.PHONY: all-stageprofile-ld maybe-all-stageprofile-ld
45f366ab 31279.PHONY: clean-stageprofile-ld maybe-clean-stageprofile-ld
ce521a9c 31280
7c27e184
PB
31281maybe-configure-stageprofile-ld:
31282maybe-all-stageprofile-ld:
45f366ab 31283maybe-clean-stageprofile-ld:
7c27e184
PB
31284
31285@if ld-bootstrap
31286maybe-configure-stageprofile-ld: configure-stageprofile-ld
ce521a9c
PB
31287configure-stageprofile-ld:
31288 @$(MAKE) stageprofile-start
31289 @[ -f ld/Makefile ] && exit 0 || : ; \
7c27e184
PB
31290 r=`${PWD_COMMAND}`; export r; \
31291 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31292 $(STAGE_HOST_EXPORTS) \
31293 echo Configuring stage profile in ld ; \
31294 cd ld || exit 1; \
31295 case $(srcdir) in \
31296 \.) \
31297 srcdiroption="--srcdir=."; \
31298 libsrcdir=".";; \
31299 /* | [A-Za-z]:[\\/]*) \
31300 srcdiroption="--srcdir=$(srcdir)/ld"; \
31301 libsrcdir="$$s/ld";; \
31302 *) \
31303 srcdiroption="--srcdir=../$(srcdir)/ld"; \
31304 libsrcdir="$$s/ld";; \
31305 esac; \
31306 $(SHELL) $${libsrcdir}/configure \
31307 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 31308 @stage2_werror_flag@
7c27e184
PB
31309
31310maybe-all-stageprofile-ld: all-stageprofile-ld
31311all-stageprofile-ld: configure-stageprofile-ld
ce521a9c 31312 @$(MAKE) stageprofile-start
7c27e184
PB
31313 @r=`${PWD_COMMAND}`; export r; \
31314 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31315 $(STAGE_HOST_EXPORTS) \
31316 cd ld && \
31317 $(MAKE) $(FLAGS_TO_PASS) \
31318 $(POSTSTAGE1_FLAGS_TO_PASS) \
ce521a9c 31319 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate"
45f366ab
PB
31320
31321maybe-clean-stageprofile-ld: clean-stageprofile-ld
31322clean-stageprofile-ld:
31323 @[ -f ld/Makefile ] || [ -f stageprofile-ld/Makefile ] \
31324 || exit 0 ; \
31325 [ -f ld/Makefile ] || $(MAKE) stageprofile-start ; \
31326 cd ld && \
31327 $(MAKE) $(FLAGS_TO_PASS) \
31328 $(POSTSTAGE1_FLAGS_TO_PASS) \
31329 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
7c27e184
PB
31330@endif ld-bootstrap
31331
45f366ab 31332
ce521a9c
PB
31333.PHONY: configure-stageprofile-libcpp maybe-configure-stageprofile-libcpp
31334.PHONY: all-stageprofile-libcpp maybe-all-stageprofile-libcpp
45f366ab 31335.PHONY: clean-stageprofile-libcpp maybe-clean-stageprofile-libcpp
ce521a9c 31336
7c27e184
PB
31337maybe-configure-stageprofile-libcpp:
31338maybe-all-stageprofile-libcpp:
45f366ab 31339maybe-clean-stageprofile-libcpp:
7c27e184
PB
31340
31341@if libcpp-bootstrap
31342maybe-configure-stageprofile-libcpp: configure-stageprofile-libcpp
ce521a9c
PB
31343configure-stageprofile-libcpp:
31344 @$(MAKE) stageprofile-start
31345 @[ -f libcpp/Makefile ] && exit 0 || : ; \
7c27e184
PB
31346 r=`${PWD_COMMAND}`; export r; \
31347 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31348 $(STAGE_HOST_EXPORTS) \
31349 echo Configuring stage profile in libcpp ; \
31350 cd libcpp || exit 1; \
31351 case $(srcdir) in \
31352 \.) \
31353 srcdiroption="--srcdir=."; \
31354 libsrcdir=".";; \
31355 /* | [A-Za-z]:[\\/]*) \
31356 srcdiroption="--srcdir=$(srcdir)/libcpp"; \
31357 libsrcdir="$$s/libcpp";; \
31358 *) \
31359 srcdiroption="--srcdir=../$(srcdir)/libcpp"; \
31360 libsrcdir="$$s/libcpp";; \
31361 esac; \
31362 $(SHELL) $${libsrcdir}/configure \
31363 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 31364 @stage2_werror_flag@
7c27e184
PB
31365
31366maybe-all-stageprofile-libcpp: all-stageprofile-libcpp
31367all-stageprofile-libcpp: configure-stageprofile-libcpp
ce521a9c 31368 @$(MAKE) stageprofile-start
7c27e184
PB
31369 @r=`${PWD_COMMAND}`; export r; \
31370 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31371 $(STAGE_HOST_EXPORTS) \
31372 cd libcpp && \
31373 $(MAKE) $(FLAGS_TO_PASS) \
31374 $(POSTSTAGE1_FLAGS_TO_PASS) \
ce521a9c 31375 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate"
45f366ab
PB
31376
31377maybe-clean-stageprofile-libcpp: clean-stageprofile-libcpp
31378clean-stageprofile-libcpp:
31379 @[ -f libcpp/Makefile ] || [ -f stageprofile-libcpp/Makefile ] \
31380 || exit 0 ; \
31381 [ -f libcpp/Makefile ] || $(MAKE) stageprofile-start ; \
31382 cd libcpp && \
31383 $(MAKE) $(FLAGS_TO_PASS) \
31384 $(POSTSTAGE1_FLAGS_TO_PASS) \
31385 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
7c27e184
PB
31386@endif libcpp-bootstrap
31387
45f366ab 31388
ce521a9c
PB
31389.PHONY: configure-stageprofile-libiberty maybe-configure-stageprofile-libiberty
31390.PHONY: all-stageprofile-libiberty maybe-all-stageprofile-libiberty
45f366ab 31391.PHONY: clean-stageprofile-libiberty maybe-clean-stageprofile-libiberty
ce521a9c 31392
7c27e184
PB
31393maybe-configure-stageprofile-libiberty:
31394maybe-all-stageprofile-libiberty:
45f366ab 31395maybe-clean-stageprofile-libiberty:
7c27e184
PB
31396
31397@if libiberty-bootstrap
31398maybe-configure-stageprofile-libiberty: configure-stageprofile-libiberty
ce521a9c
PB
31399configure-stageprofile-libiberty:
31400 @$(MAKE) stageprofile-start
31401 @[ -f libiberty/Makefile ] && exit 0 || : ; \
7c27e184
PB
31402 r=`${PWD_COMMAND}`; export r; \
31403 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31404 $(STAGE_HOST_EXPORTS) \
31405 echo Configuring stage profile in libiberty ; \
31406 cd libiberty || exit 1; \
31407 case $(srcdir) in \
31408 \.) \
31409 srcdiroption="--srcdir=."; \
31410 libsrcdir=".";; \
31411 /* | [A-Za-z]:[\\/]*) \
31412 srcdiroption="--srcdir=$(srcdir)/libiberty"; \
31413 libsrcdir="$$s/libiberty";; \
31414 *) \
31415 srcdiroption="--srcdir=../$(srcdir)/libiberty"; \
31416 libsrcdir="$$s/libiberty";; \
31417 esac; \
31418 $(SHELL) $${libsrcdir}/configure \
31419 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 31420 @stage2_werror_flag@
7c27e184
PB
31421
31422maybe-all-stageprofile-libiberty: all-stageprofile-libiberty
31423all-stageprofile-libiberty: configure-stageprofile-libiberty
ce521a9c 31424 @$(MAKE) stageprofile-start
7c27e184
PB
31425 @r=`${PWD_COMMAND}`; export r; \
31426 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31427 $(STAGE_HOST_EXPORTS) \
31428 cd libiberty && \
31429 $(MAKE) $(FLAGS_TO_PASS) \
31430 $(POSTSTAGE1_FLAGS_TO_PASS) \
ce521a9c 31431 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate"
45f366ab
PB
31432
31433maybe-clean-stageprofile-libiberty: clean-stageprofile-libiberty
31434clean-stageprofile-libiberty:
31435 @[ -f libiberty/Makefile ] || [ -f stageprofile-libiberty/Makefile ] \
31436 || exit 0 ; \
31437 [ -f libiberty/Makefile ] || $(MAKE) stageprofile-start ; \
31438 cd libiberty && \
31439 $(MAKE) $(FLAGS_TO_PASS) \
31440 $(POSTSTAGE1_FLAGS_TO_PASS) \
31441 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
7c27e184
PB
31442@endif libiberty-bootstrap
31443
45f366ab 31444
ce521a9c
PB
31445.PHONY: configure-stageprofile-zlib maybe-configure-stageprofile-zlib
31446.PHONY: all-stageprofile-zlib maybe-all-stageprofile-zlib
45f366ab 31447.PHONY: clean-stageprofile-zlib maybe-clean-stageprofile-zlib
ce521a9c 31448
7c27e184
PB
31449maybe-configure-stageprofile-zlib:
31450maybe-all-stageprofile-zlib:
45f366ab 31451maybe-clean-stageprofile-zlib:
7c27e184
PB
31452
31453@if zlib-bootstrap
31454maybe-configure-stageprofile-zlib: configure-stageprofile-zlib
ce521a9c
PB
31455configure-stageprofile-zlib:
31456 @$(MAKE) stageprofile-start
31457 @[ -f zlib/Makefile ] && exit 0 || : ; \
7c27e184
PB
31458 r=`${PWD_COMMAND}`; export r; \
31459 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31460 $(STAGE_HOST_EXPORTS) \
31461 echo Configuring stage profile in zlib ; \
31462 cd zlib || exit 1; \
31463 case $(srcdir) in \
31464 \.) \
31465 srcdiroption="--srcdir=."; \
31466 libsrcdir=".";; \
31467 /* | [A-Za-z]:[\\/]*) \
31468 srcdiroption="--srcdir=$(srcdir)/zlib"; \
31469 libsrcdir="$$s/zlib";; \
31470 *) \
31471 srcdiroption="--srcdir=../$(srcdir)/zlib"; \
31472 libsrcdir="$$s/zlib";; \
31473 esac; \
31474 $(SHELL) $${libsrcdir}/configure \
31475 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 31476 @stage2_werror_flag@
7c27e184
PB
31477
31478maybe-all-stageprofile-zlib: all-stageprofile-zlib
31479all-stageprofile-zlib: configure-stageprofile-zlib
ce521a9c 31480 @$(MAKE) stageprofile-start
7c27e184
PB
31481 @r=`${PWD_COMMAND}`; export r; \
31482 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31483 $(STAGE_HOST_EXPORTS) \
31484 cd zlib && \
31485 $(MAKE) $(FLAGS_TO_PASS) \
31486 $(POSTSTAGE1_FLAGS_TO_PASS) \
ce521a9c 31487 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate"
45f366ab
PB
31488
31489maybe-clean-stageprofile-zlib: clean-stageprofile-zlib
31490clean-stageprofile-zlib:
31491 @[ -f zlib/Makefile ] || [ -f stageprofile-zlib/Makefile ] \
31492 || exit 0 ; \
31493 [ -f zlib/Makefile ] || $(MAKE) stageprofile-start ; \
31494 cd zlib && \
31495 $(MAKE) $(FLAGS_TO_PASS) \
31496 $(POSTSTAGE1_FLAGS_TO_PASS) \
31497 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
7c27e184
PB
31498@endif zlib-bootstrap
31499
31500
45f366ab 31501
7c27e184
PB
31502# FIXME: Will not need to be conditional when toplevel bootstrap is the
31503# only possibility, but now it conflicts with no-bootstrap rules
31504@if gcc-bootstrap
31505
31506
31507
31508
45f366ab 31509# Rules to wipe a stage and all the following ones, also used for cleanstrap
7c27e184 31510distclean-stage1:: distclean-stageprofile
45f366ab 31511.PHONY: distclean-stageprofile
7c27e184
PB
31512distclean-stageprofile::
31513 [ -f stage_current ] && $(MAKE) `cat stage_current`-end || :
ce521a9c 31514 rm -rf stageprofile-*
148907ea
PB
31515
31516
7c27e184 31517@endif gcc-bootstrap
148907ea
PB
31518
31519
7c27e184 31520.PHONY: stagefeedback-start stagefeedback-end
148907ea 31521
7c27e184 31522stagefeedback-start::
ce521a9c 31523 @[ -f stage_current ] && $(MAKE) `cat stage_current`-end || : ; \
7c27e184
PB
31524 echo stagefeedback > stage_current ; \
31525 echo stagefeedback > stage_last
31526@if bfd
ce521a9c 31527 @[ -d stagefeedback-bfd ] || mkdir stagefeedback-bfd; \
7c27e184
PB
31528 set stagefeedback-bfd bfd ; @CREATE_LINK_TO_DIR@ ; \
31529 set stage1-bfd prev-bfd ; @CREATE_LINK_TO_DIR@
31530@endif bfd
31531@if opcodes
ce521a9c 31532 @[ -d stagefeedback-opcodes ] || mkdir stagefeedback-opcodes; \
7c27e184
PB
31533 set stagefeedback-opcodes opcodes ; @CREATE_LINK_TO_DIR@ ; \
31534 set stage1-opcodes prev-opcodes ; @CREATE_LINK_TO_DIR@
31535@endif opcodes
31536@if binutils
ce521a9c 31537 @[ -d stagefeedback-binutils ] || mkdir stagefeedback-binutils; \
7c27e184
PB
31538 set stagefeedback-binutils binutils ; @CREATE_LINK_TO_DIR@ ; \
31539 set stage1-binutils prev-binutils ; @CREATE_LINK_TO_DIR@
31540@endif binutils
31541@if gas
ce521a9c 31542 @[ -d stagefeedback-gas ] || mkdir stagefeedback-gas; \
7c27e184
PB
31543 set stagefeedback-gas gas ; @CREATE_LINK_TO_DIR@ ; \
31544 set stage1-gas prev-gas ; @CREATE_LINK_TO_DIR@
31545@endif gas
31546@if gcc
ce521a9c 31547 @[ -d stagefeedback-gcc ] || mkdir stagefeedback-gcc; \
7c27e184
PB
31548 set stagefeedback-gcc gcc ; @CREATE_LINK_TO_DIR@ ; \
31549 set stage1-gcc prev-gcc ; @CREATE_LINK_TO_DIR@
31550@endif gcc
31551@if intl
ce521a9c 31552 @[ -d stagefeedback-intl ] || mkdir stagefeedback-intl; \
7c27e184
PB
31553 set stagefeedback-intl intl ; @CREATE_LINK_TO_DIR@ ; \
31554 set stage1-intl prev-intl ; @CREATE_LINK_TO_DIR@
31555@endif intl
31556@if ld
ce521a9c 31557 @[ -d stagefeedback-ld ] || mkdir stagefeedback-ld; \
7c27e184
PB
31558 set stagefeedback-ld ld ; @CREATE_LINK_TO_DIR@ ; \
31559 set stage1-ld prev-ld ; @CREATE_LINK_TO_DIR@
31560@endif ld
31561@if libcpp
ce521a9c 31562 @[ -d stagefeedback-libcpp ] || mkdir stagefeedback-libcpp; \
7c27e184
PB
31563 set stagefeedback-libcpp libcpp ; @CREATE_LINK_TO_DIR@ ; \
31564 set stage1-libcpp prev-libcpp ; @CREATE_LINK_TO_DIR@
31565@endif libcpp
7c27e184 31566@if libiberty
ce521a9c 31567 @[ -d stagefeedback-libiberty ] || mkdir stagefeedback-libiberty; \
7c27e184
PB
31568 set stagefeedback-libiberty libiberty ; @CREATE_LINK_TO_DIR@ ; \
31569 set stage1-libiberty prev-libiberty ; @CREATE_LINK_TO_DIR@
31570@endif libiberty
31571@if zlib
ce521a9c 31572 @[ -d stagefeedback-zlib ] || mkdir stagefeedback-zlib; \
7c27e184
PB
31573 set stagefeedback-zlib zlib ; @CREATE_LINK_TO_DIR@ ; \
31574 set stage1-zlib prev-zlib ; @CREATE_LINK_TO_DIR@
31575@endif zlib
148907ea 31576
7c27e184 31577stagefeedback-end::
ce521a9c 31578 @rm -f stage_current
7c27e184 31579@if bfd
ce521a9c 31580 @set bfd stagefeedback-bfd ; @UNDO_LINK_TO_DIR@ ; \
7c27e184
PB
31581 set prev-bfd stage1-bfd ; @UNDO_LINK_TO_DIR@
31582@endif bfd
31583@if opcodes
ce521a9c 31584 @set opcodes stagefeedback-opcodes ; @UNDO_LINK_TO_DIR@ ; \
7c27e184
PB
31585 set prev-opcodes stage1-opcodes ; @UNDO_LINK_TO_DIR@
31586@endif opcodes
31587@if binutils
ce521a9c 31588 @set binutils stagefeedback-binutils ; @UNDO_LINK_TO_DIR@ ; \
7c27e184
PB
31589 set prev-binutils stage1-binutils ; @UNDO_LINK_TO_DIR@
31590@endif binutils
31591@if gas
ce521a9c 31592 @set gas stagefeedback-gas ; @UNDO_LINK_TO_DIR@ ; \
7c27e184
PB
31593 set prev-gas stage1-gas ; @UNDO_LINK_TO_DIR@
31594@endif gas
31595@if gcc
ce521a9c 31596 @set gcc stagefeedback-gcc ; @UNDO_LINK_TO_DIR@ ; \
7c27e184
PB
31597 set prev-gcc stage1-gcc ; @UNDO_LINK_TO_DIR@
31598@endif gcc
31599@if intl
ce521a9c 31600 @set intl stagefeedback-intl ; @UNDO_LINK_TO_DIR@ ; \
7c27e184
PB
31601 set prev-intl stage1-intl ; @UNDO_LINK_TO_DIR@
31602@endif intl
31603@if ld
ce521a9c 31604 @set ld stagefeedback-ld ; @UNDO_LINK_TO_DIR@ ; \
7c27e184
PB
31605 set prev-ld stage1-ld ; @UNDO_LINK_TO_DIR@
31606@endif ld
31607@if libcpp
ce521a9c 31608 @set libcpp stagefeedback-libcpp ; @UNDO_LINK_TO_DIR@ ; \
7c27e184
PB
31609 set prev-libcpp stage1-libcpp ; @UNDO_LINK_TO_DIR@
31610@endif libcpp
7c27e184 31611@if libiberty
ce521a9c 31612 @set libiberty stagefeedback-libiberty ; @UNDO_LINK_TO_DIR@ ; \
7c27e184
PB
31613 set prev-libiberty stage1-libiberty ; @UNDO_LINK_TO_DIR@
31614@endif libiberty
31615@if zlib
ce521a9c 31616 @set zlib stagefeedback-zlib ; @UNDO_LINK_TO_DIR@ ; \
7c27e184
PB
31617 set prev-zlib stage1-zlib ; @UNDO_LINK_TO_DIR@
31618@endif zlib
148907ea 31619
7c27e184 31620# Bubble a bugfix through all the stages up to stage feedback. They
148907ea
PB
31621# are remade, but not reconfigured. The next stage (if any) will not
31622# be reconfigured as well.
7c27e184
PB
31623.PHONY: stagefeedback-bubble
31624stagefeedback-bubble:: stage1-bubble
ce521a9c
PB
31625 @if test -f stagefeedback-lean || test -f stage1-lean ; then \
31626 echo Skipping rebuild of stagefeedback ; \
31627 else \
45f366ab 31628 $(MAKE) $(RECURSE_FLAGS_TO_PASS) NOTPARALLEL= all-stagefeedback; \
ce521a9c 31629 fi
7c27e184 31630
45f366ab 31631.PHONY: all-stagefeedback clean-stagefeedback
7c27e184
PB
31632all-stagefeedback: \
31633 maybe-all-stagefeedback-bfd \
31634 maybe-all-stagefeedback-opcodes \
31635 maybe-all-stagefeedback-binutils \
31636 maybe-all-stagefeedback-gas \
31637 maybe-all-stagefeedback-gcc \
31638 maybe-all-stagefeedback-intl \
31639 maybe-all-stagefeedback-ld \
31640 maybe-all-stagefeedback-libcpp \
7c27e184
PB
31641 maybe-all-stagefeedback-libiberty \
31642 maybe-all-stagefeedback-zlib
31643
45f366ab
PB
31644do-clean: clean-stagefeedback
31645clean-stagefeedback: \
31646 maybe-clean-stagefeedback-bfd \
31647 maybe-clean-stagefeedback-opcodes \
31648 maybe-clean-stagefeedback-binutils \
31649 maybe-clean-stagefeedback-gas \
31650 maybe-clean-stagefeedback-gcc \
31651 maybe-clean-stagefeedback-intl \
31652 maybe-clean-stagefeedback-ld \
31653 maybe-clean-stagefeedback-libcpp \
45f366ab
PB
31654 maybe-clean-stagefeedback-libiberty \
31655 maybe-clean-stagefeedback-zlib
31656
7c27e184 31657
ce521a9c
PB
31658.PHONY: configure-stagefeedback-bfd maybe-configure-stagefeedback-bfd
31659.PHONY: all-stagefeedback-bfd maybe-all-stagefeedback-bfd
45f366ab 31660.PHONY: clean-stagefeedback-bfd maybe-clean-stagefeedback-bfd
ce521a9c 31661
7c27e184
PB
31662maybe-configure-stagefeedback-bfd:
31663maybe-all-stagefeedback-bfd:
45f366ab 31664maybe-clean-stagefeedback-bfd:
7c27e184
PB
31665
31666@if bfd-bootstrap
31667maybe-configure-stagefeedback-bfd: configure-stagefeedback-bfd
ce521a9c
PB
31668configure-stagefeedback-bfd:
31669 @$(MAKE) stagefeedback-start
31670 @[ -f bfd/Makefile ] && exit 0 || : ; \
7c27e184
PB
31671 r=`${PWD_COMMAND}`; export r; \
31672 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31673 $(STAGE_HOST_EXPORTS) \
31674 echo Configuring stage feedback in bfd ; \
31675 cd bfd || exit 1; \
31676 case $(srcdir) in \
31677 \.) \
31678 srcdiroption="--srcdir=."; \
31679 libsrcdir=".";; \
31680 /* | [A-Za-z]:[\\/]*) \
31681 srcdiroption="--srcdir=$(srcdir)/bfd"; \
31682 libsrcdir="$$s/bfd";; \
31683 *) \
31684 srcdiroption="--srcdir=../$(srcdir)/bfd"; \
31685 libsrcdir="$$s/bfd";; \
31686 esac; \
31687 $(SHELL) $${libsrcdir}/configure \
31688 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 31689 @stage2_werror_flag@
ad6717df 31690
7c27e184
PB
31691maybe-all-stagefeedback-bfd: all-stagefeedback-bfd
31692all-stagefeedback-bfd: configure-stagefeedback-bfd
ce521a9c 31693 @$(MAKE) stagefeedback-start
7c27e184
PB
31694 @r=`${PWD_COMMAND}`; export r; \
31695 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31696 $(STAGE_HOST_EXPORTS) \
31697 cd bfd && \
31698 $(MAKE) $(FLAGS_TO_PASS) \
31699 $(POSTSTAGE1_FLAGS_TO_PASS) \
ce521a9c 31700 CFLAGS="$(BOOT_CFLAGS) -fprofile-use"
45f366ab
PB
31701
31702maybe-clean-stagefeedback-bfd: clean-stagefeedback-bfd
31703clean-stagefeedback-bfd:
31704 @[ -f bfd/Makefile ] || [ -f stagefeedback-bfd/Makefile ] \
31705 || exit 0 ; \
31706 [ -f bfd/Makefile ] || $(MAKE) stagefeedback-start ; \
31707 cd bfd && \
31708 $(MAKE) $(FLAGS_TO_PASS) \
31709 $(POSTSTAGE1_FLAGS_TO_PASS) \
31710 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
7c27e184 31711@endif bfd-bootstrap
148907ea 31712
45f366ab 31713
ce521a9c
PB
31714.PHONY: configure-stagefeedback-opcodes maybe-configure-stagefeedback-opcodes
31715.PHONY: all-stagefeedback-opcodes maybe-all-stagefeedback-opcodes
45f366ab 31716.PHONY: clean-stagefeedback-opcodes maybe-clean-stagefeedback-opcodes
ce521a9c 31717
7c27e184
PB
31718maybe-configure-stagefeedback-opcodes:
31719maybe-all-stagefeedback-opcodes:
45f366ab 31720maybe-clean-stagefeedback-opcodes:
ad6717df 31721
7c27e184
PB
31722@if opcodes-bootstrap
31723maybe-configure-stagefeedback-opcodes: configure-stagefeedback-opcodes
ce521a9c
PB
31724configure-stagefeedback-opcodes:
31725 @$(MAKE) stagefeedback-start
31726 @[ -f opcodes/Makefile ] && exit 0 || : ; \
2805b53a 31727 r=`${PWD_COMMAND}`; export r; \
4fc4dd12
DJ
31728 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31729 $(STAGE_HOST_EXPORTS) \
7c27e184
PB
31730 echo Configuring stage feedback in opcodes ; \
31731 cd opcodes || exit 1; \
2805b53a
NN
31732 case $(srcdir) in \
31733 \.) \
31734 srcdiroption="--srcdir=."; \
31735 libsrcdir=".";; \
31736 /* | [A-Za-z]:[\\/]*) \
7c27e184
PB
31737 srcdiroption="--srcdir=$(srcdir)/opcodes"; \
31738 libsrcdir="$$s/opcodes";; \
2805b53a 31739 *) \
7c27e184
PB
31740 srcdiroption="--srcdir=../$(srcdir)/opcodes"; \
31741 libsrcdir="$$s/opcodes";; \
2805b53a
NN
31742 esac; \
31743 $(SHELL) $${libsrcdir}/configure \
148907ea 31744 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 31745 @stage2_werror_flag@
2805b53a 31746
7c27e184
PB
31747maybe-all-stagefeedback-opcodes: all-stagefeedback-opcodes
31748all-stagefeedback-opcodes: configure-stagefeedback-opcodes
ce521a9c 31749 @$(MAKE) stagefeedback-start
148907ea 31750 @r=`${PWD_COMMAND}`; export r; \
4fc4dd12
DJ
31751 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31752 $(STAGE_HOST_EXPORTS) \
7c27e184
PB
31753 cd opcodes && \
31754 $(MAKE) $(FLAGS_TO_PASS) \
ad6717df 31755 $(POSTSTAGE1_FLAGS_TO_PASS) \
ce521a9c 31756 CFLAGS="$(BOOT_CFLAGS) -fprofile-use"
45f366ab
PB
31757
31758maybe-clean-stagefeedback-opcodes: clean-stagefeedback-opcodes
31759clean-stagefeedback-opcodes:
31760 @[ -f opcodes/Makefile ] || [ -f stagefeedback-opcodes/Makefile ] \
31761 || exit 0 ; \
31762 [ -f opcodes/Makefile ] || $(MAKE) stagefeedback-start ; \
31763 cd opcodes && \
31764 $(MAKE) $(FLAGS_TO_PASS) \
31765 $(POSTSTAGE1_FLAGS_TO_PASS) \
31766 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
7c27e184 31767@endif opcodes-bootstrap
2805b53a 31768
45f366ab 31769
ce521a9c
PB
31770.PHONY: configure-stagefeedback-binutils maybe-configure-stagefeedback-binutils
31771.PHONY: all-stagefeedback-binutils maybe-all-stagefeedback-binutils
45f366ab 31772.PHONY: clean-stagefeedback-binutils maybe-clean-stagefeedback-binutils
ce521a9c 31773
7c27e184
PB
31774maybe-configure-stagefeedback-binutils:
31775maybe-all-stagefeedback-binutils:
45f366ab 31776maybe-clean-stagefeedback-binutils:
2805b53a 31777
7c27e184
PB
31778@if binutils-bootstrap
31779maybe-configure-stagefeedback-binutils: configure-stagefeedback-binutils
ce521a9c
PB
31780configure-stagefeedback-binutils:
31781 @$(MAKE) stagefeedback-start
31782 @[ -f binutils/Makefile ] && exit 0 || : ; \
7c27e184
PB
31783 r=`${PWD_COMMAND}`; export r; \
31784 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31785 $(STAGE_HOST_EXPORTS) \
31786 echo Configuring stage feedback in binutils ; \
31787 cd binutils || exit 1; \
31788 case $(srcdir) in \
31789 \.) \
31790 srcdiroption="--srcdir=."; \
31791 libsrcdir=".";; \
31792 /* | [A-Za-z]:[\\/]*) \
31793 srcdiroption="--srcdir=$(srcdir)/binutils"; \
31794 libsrcdir="$$s/binutils";; \
31795 *) \
31796 srcdiroption="--srcdir=../$(srcdir)/binutils"; \
31797 libsrcdir="$$s/binutils";; \
31798 esac; \
31799 $(SHELL) $${libsrcdir}/configure \
31800 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 31801 @stage2_werror_flag@
f516a7da 31802
7c27e184
PB
31803maybe-all-stagefeedback-binutils: all-stagefeedback-binutils
31804all-stagefeedback-binutils: configure-stagefeedback-binutils
ce521a9c 31805 @$(MAKE) stagefeedback-start
7c27e184
PB
31806 @r=`${PWD_COMMAND}`; export r; \
31807 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31808 $(STAGE_HOST_EXPORTS) \
31809 cd binutils && \
31810 $(MAKE) $(FLAGS_TO_PASS) \
31811 $(POSTSTAGE1_FLAGS_TO_PASS) \
ce521a9c 31812 CFLAGS="$(BOOT_CFLAGS) -fprofile-use"
45f366ab
PB
31813
31814maybe-clean-stagefeedback-binutils: clean-stagefeedback-binutils
31815clean-stagefeedback-binutils:
31816 @[ -f binutils/Makefile ] || [ -f stagefeedback-binutils/Makefile ] \
31817 || exit 0 ; \
31818 [ -f binutils/Makefile ] || $(MAKE) stagefeedback-start ; \
31819 cd binutils && \
31820 $(MAKE) $(FLAGS_TO_PASS) \
31821 $(POSTSTAGE1_FLAGS_TO_PASS) \
31822 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
7c27e184 31823@endif binutils-bootstrap
f516a7da 31824
45f366ab 31825
ce521a9c
PB
31826.PHONY: configure-stagefeedback-gas maybe-configure-stagefeedback-gas
31827.PHONY: all-stagefeedback-gas maybe-all-stagefeedback-gas
45f366ab 31828.PHONY: clean-stagefeedback-gas maybe-clean-stagefeedback-gas
ce521a9c 31829
7c27e184
PB
31830maybe-configure-stagefeedback-gas:
31831maybe-all-stagefeedback-gas:
45f366ab 31832maybe-clean-stagefeedback-gas:
f516a7da 31833
7c27e184
PB
31834@if gas-bootstrap
31835maybe-configure-stagefeedback-gas: configure-stagefeedback-gas
ce521a9c
PB
31836configure-stagefeedback-gas:
31837 @$(MAKE) stagefeedback-start
31838 @[ -f gas/Makefile ] && exit 0 || : ; \
7c27e184
PB
31839 r=`${PWD_COMMAND}`; export r; \
31840 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31841 $(STAGE_HOST_EXPORTS) \
31842 echo Configuring stage feedback in gas ; \
31843 cd gas || exit 1; \
31844 case $(srcdir) in \
31845 \.) \
31846 srcdiroption="--srcdir=."; \
31847 libsrcdir=".";; \
31848 /* | [A-Za-z]:[\\/]*) \
31849 srcdiroption="--srcdir=$(srcdir)/gas"; \
31850 libsrcdir="$$s/gas";; \
31851 *) \
31852 srcdiroption="--srcdir=../$(srcdir)/gas"; \
31853 libsrcdir="$$s/gas";; \
31854 esac; \
31855 $(SHELL) $${libsrcdir}/configure \
31856 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 31857 @stage2_werror_flag@
f516a7da 31858
7c27e184
PB
31859maybe-all-stagefeedback-gas: all-stagefeedback-gas
31860all-stagefeedback-gas: configure-stagefeedback-gas
ce521a9c 31861 @$(MAKE) stagefeedback-start
7c27e184
PB
31862 @r=`${PWD_COMMAND}`; export r; \
31863 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31864 $(STAGE_HOST_EXPORTS) \
31865 cd gas && \
31866 $(MAKE) $(FLAGS_TO_PASS) \
31867 $(POSTSTAGE1_FLAGS_TO_PASS) \
ce521a9c 31868 CFLAGS="$(BOOT_CFLAGS) -fprofile-use"
45f366ab
PB
31869
31870maybe-clean-stagefeedback-gas: clean-stagefeedback-gas
31871clean-stagefeedback-gas:
31872 @[ -f gas/Makefile ] || [ -f stagefeedback-gas/Makefile ] \
31873 || exit 0 ; \
31874 [ -f gas/Makefile ] || $(MAKE) stagefeedback-start ; \
31875 cd gas && \
31876 $(MAKE) $(FLAGS_TO_PASS) \
31877 $(POSTSTAGE1_FLAGS_TO_PASS) \
31878 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
7c27e184 31879@endif gas-bootstrap
f516a7da 31880
45f366ab 31881
ce521a9c
PB
31882.PHONY: configure-stagefeedback-gcc maybe-configure-stagefeedback-gcc
31883.PHONY: all-stagefeedback-gcc maybe-all-stagefeedback-gcc
45f366ab 31884.PHONY: clean-stagefeedback-gcc maybe-clean-stagefeedback-gcc
ce521a9c 31885
7c27e184
PB
31886maybe-configure-stagefeedback-gcc:
31887maybe-all-stagefeedback-gcc:
45f366ab 31888maybe-clean-stagefeedback-gcc:
f516a7da 31889
7c27e184
PB
31890@if gcc-bootstrap
31891maybe-configure-stagefeedback-gcc: configure-stagefeedback-gcc
ce521a9c
PB
31892configure-stagefeedback-gcc:
31893 @$(MAKE) stagefeedback-start
31894 @[ -f gcc/Makefile ] && exit 0 || : ; \
7c27e184
PB
31895 r=`${PWD_COMMAND}`; export r; \
31896 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31897 $(STAGE_HOST_EXPORTS) \
31898 echo Configuring stage feedback in gcc ; \
31899 cd gcc || exit 1; \
31900 case $(srcdir) in \
31901 \.) \
31902 srcdiroption="--srcdir=."; \
31903 libsrcdir=".";; \
31904 /* | [A-Za-z]:[\\/]*) \
31905 srcdiroption="--srcdir=$(srcdir)/gcc"; \
31906 libsrcdir="$$s/gcc";; \
31907 *) \
31908 srcdiroption="--srcdir=../$(srcdir)/gcc"; \
31909 libsrcdir="$$s/gcc";; \
31910 esac; \
31911 $(SHELL) $${libsrcdir}/configure \
31912 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 31913 @stage2_werror_flag@
ad6717df 31914
7c27e184
PB
31915maybe-all-stagefeedback-gcc: all-stagefeedback-gcc
31916all-stagefeedback-gcc: configure-stagefeedback-gcc
ce521a9c 31917 @$(MAKE) stagefeedback-start
7c27e184
PB
31918 @r=`${PWD_COMMAND}`; export r; \
31919 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31920 $(STAGE_HOST_EXPORTS) \
31921 cd gcc && \
31922 $(MAKE) $(FLAGS_TO_PASS) \
31923 $(POSTSTAGE1_FLAGS_TO_PASS) \
ce521a9c 31924 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" $(EXTRA_GCC_FLAGS)
45f366ab
PB
31925
31926maybe-clean-stagefeedback-gcc: clean-stagefeedback-gcc
31927clean-stagefeedback-gcc:
31928 @[ -f gcc/Makefile ] || [ -f stagefeedback-gcc/Makefile ] \
31929 || exit 0 ; \
31930 [ -f gcc/Makefile ] || $(MAKE) stagefeedback-start ; \
31931 cd gcc && \
31932 $(MAKE) $(FLAGS_TO_PASS) \
31933 $(POSTSTAGE1_FLAGS_TO_PASS) \
31934 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" $(EXTRA_GCC_FLAGS) clean
7c27e184 31935@endif gcc-bootstrap
f516a7da 31936
45f366ab 31937
ce521a9c
PB
31938.PHONY: configure-stagefeedback-intl maybe-configure-stagefeedback-intl
31939.PHONY: all-stagefeedback-intl maybe-all-stagefeedback-intl
45f366ab 31940.PHONY: clean-stagefeedback-intl maybe-clean-stagefeedback-intl
ce521a9c 31941
7c27e184
PB
31942maybe-configure-stagefeedback-intl:
31943maybe-all-stagefeedback-intl:
45f366ab 31944maybe-clean-stagefeedback-intl:
ad6717df 31945
7c27e184
PB
31946@if intl-bootstrap
31947maybe-configure-stagefeedback-intl: configure-stagefeedback-intl
ce521a9c
PB
31948configure-stagefeedback-intl:
31949 @$(MAKE) stagefeedback-start
31950 @[ -f intl/Makefile ] && exit 0 || : ; \
f516a7da
PB
31951 r=`${PWD_COMMAND}`; export r; \
31952 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31953 $(STAGE_HOST_EXPORTS) \
7c27e184
PB
31954 echo Configuring stage feedback in intl ; \
31955 cd intl || exit 1; \
f516a7da
PB
31956 case $(srcdir) in \
31957 \.) \
31958 srcdiroption="--srcdir=."; \
31959 libsrcdir=".";; \
31960 /* | [A-Za-z]:[\\/]*) \
7c27e184
PB
31961 srcdiroption="--srcdir=$(srcdir)/intl"; \
31962 libsrcdir="$$s/intl";; \
f516a7da 31963 *) \
7c27e184
PB
31964 srcdiroption="--srcdir=../$(srcdir)/intl"; \
31965 libsrcdir="$$s/intl";; \
f516a7da
PB
31966 esac; \
31967 $(SHELL) $${libsrcdir}/configure \
31968 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 31969 @stage2_werror_flag@
f516a7da 31970
7c27e184
PB
31971maybe-all-stagefeedback-intl: all-stagefeedback-intl
31972all-stagefeedback-intl: configure-stagefeedback-intl
ce521a9c 31973 @$(MAKE) stagefeedback-start
f516a7da
PB
31974 @r=`${PWD_COMMAND}`; export r; \
31975 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31976 $(STAGE_HOST_EXPORTS) \
7c27e184
PB
31977 cd intl && \
31978 $(MAKE) $(FLAGS_TO_PASS) \
ad6717df 31979 $(POSTSTAGE1_FLAGS_TO_PASS) \
ce521a9c 31980 CFLAGS="$(BOOT_CFLAGS) -fprofile-use"
45f366ab
PB
31981
31982maybe-clean-stagefeedback-intl: clean-stagefeedback-intl
31983clean-stagefeedback-intl:
31984 @[ -f intl/Makefile ] || [ -f stagefeedback-intl/Makefile ] \
31985 || exit 0 ; \
31986 [ -f intl/Makefile ] || $(MAKE) stagefeedback-start ; \
31987 cd intl && \
31988 $(MAKE) $(FLAGS_TO_PASS) \
31989 $(POSTSTAGE1_FLAGS_TO_PASS) \
31990 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
7c27e184 31991@endif intl-bootstrap
f516a7da 31992
45f366ab 31993
ce521a9c
PB
31994.PHONY: configure-stagefeedback-ld maybe-configure-stagefeedback-ld
31995.PHONY: all-stagefeedback-ld maybe-all-stagefeedback-ld
45f366ab 31996.PHONY: clean-stagefeedback-ld maybe-clean-stagefeedback-ld
ce521a9c 31997
7c27e184
PB
31998maybe-configure-stagefeedback-ld:
31999maybe-all-stagefeedback-ld:
45f366ab 32000maybe-clean-stagefeedback-ld:
f516a7da 32001
7c27e184
PB
32002@if ld-bootstrap
32003maybe-configure-stagefeedback-ld: configure-stagefeedback-ld
ce521a9c
PB
32004configure-stagefeedback-ld:
32005 @$(MAKE) stagefeedback-start
32006 @[ -f ld/Makefile ] && exit 0 || : ; \
7c27e184
PB
32007 r=`${PWD_COMMAND}`; export r; \
32008 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32009 $(STAGE_HOST_EXPORTS) \
32010 echo Configuring stage feedback in ld ; \
32011 cd ld || exit 1; \
32012 case $(srcdir) in \
32013 \.) \
32014 srcdiroption="--srcdir=."; \
32015 libsrcdir=".";; \
32016 /* | [A-Za-z]:[\\/]*) \
32017 srcdiroption="--srcdir=$(srcdir)/ld"; \
32018 libsrcdir="$$s/ld";; \
32019 *) \
32020 srcdiroption="--srcdir=../$(srcdir)/ld"; \
32021 libsrcdir="$$s/ld";; \
32022 esac; \
32023 $(SHELL) $${libsrcdir}/configure \
32024 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 32025 @stage2_werror_flag@
ad6717df 32026
7c27e184
PB
32027maybe-all-stagefeedback-ld: all-stagefeedback-ld
32028all-stagefeedback-ld: configure-stagefeedback-ld
ce521a9c 32029 @$(MAKE) stagefeedback-start
7c27e184
PB
32030 @r=`${PWD_COMMAND}`; export r; \
32031 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32032 $(STAGE_HOST_EXPORTS) \
32033 cd ld && \
32034 $(MAKE) $(FLAGS_TO_PASS) \
32035 $(POSTSTAGE1_FLAGS_TO_PASS) \
ce521a9c 32036 CFLAGS="$(BOOT_CFLAGS) -fprofile-use"
45f366ab
PB
32037
32038maybe-clean-stagefeedback-ld: clean-stagefeedback-ld
32039clean-stagefeedback-ld:
32040 @[ -f ld/Makefile ] || [ -f stagefeedback-ld/Makefile ] \
32041 || exit 0 ; \
32042 [ -f ld/Makefile ] || $(MAKE) stagefeedback-start ; \
32043 cd ld && \
32044 $(MAKE) $(FLAGS_TO_PASS) \
32045 $(POSTSTAGE1_FLAGS_TO_PASS) \
32046 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
7c27e184 32047@endif ld-bootstrap
ad6717df 32048
45f366ab 32049
ce521a9c
PB
32050.PHONY: configure-stagefeedback-libcpp maybe-configure-stagefeedback-libcpp
32051.PHONY: all-stagefeedback-libcpp maybe-all-stagefeedback-libcpp
45f366ab 32052.PHONY: clean-stagefeedback-libcpp maybe-clean-stagefeedback-libcpp
ce521a9c 32053
7c27e184
PB
32054maybe-configure-stagefeedback-libcpp:
32055maybe-all-stagefeedback-libcpp:
45f366ab 32056maybe-clean-stagefeedback-libcpp:
ad6717df 32057
7c27e184
PB
32058@if libcpp-bootstrap
32059maybe-configure-stagefeedback-libcpp: configure-stagefeedback-libcpp
ce521a9c
PB
32060configure-stagefeedback-libcpp:
32061 @$(MAKE) stagefeedback-start
32062 @[ -f libcpp/Makefile ] && exit 0 || : ; \
7c27e184
PB
32063 r=`${PWD_COMMAND}`; export r; \
32064 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32065 $(STAGE_HOST_EXPORTS) \
32066 echo Configuring stage feedback in libcpp ; \
32067 cd libcpp || exit 1; \
32068 case $(srcdir) in \
32069 \.) \
32070 srcdiroption="--srcdir=."; \
32071 libsrcdir=".";; \
32072 /* | [A-Za-z]:[\\/]*) \
32073 srcdiroption="--srcdir=$(srcdir)/libcpp"; \
32074 libsrcdir="$$s/libcpp";; \
32075 *) \
32076 srcdiroption="--srcdir=../$(srcdir)/libcpp"; \
32077 libsrcdir="$$s/libcpp";; \
32078 esac; \
32079 $(SHELL) $${libsrcdir}/configure \
32080 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 32081 @stage2_werror_flag@
ad6717df 32082
7c27e184
PB
32083maybe-all-stagefeedback-libcpp: all-stagefeedback-libcpp
32084all-stagefeedback-libcpp: configure-stagefeedback-libcpp
ce521a9c 32085 @$(MAKE) stagefeedback-start
7c27e184
PB
32086 @r=`${PWD_COMMAND}`; export r; \
32087 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32088 $(STAGE_HOST_EXPORTS) \
32089 cd libcpp && \
32090 $(MAKE) $(FLAGS_TO_PASS) \
32091 $(POSTSTAGE1_FLAGS_TO_PASS) \
ce521a9c 32092 CFLAGS="$(BOOT_CFLAGS) -fprofile-use"
45f366ab
PB
32093
32094maybe-clean-stagefeedback-libcpp: clean-stagefeedback-libcpp
32095clean-stagefeedback-libcpp:
32096 @[ -f libcpp/Makefile ] || [ -f stagefeedback-libcpp/Makefile ] \
32097 || exit 0 ; \
32098 [ -f libcpp/Makefile ] || $(MAKE) stagefeedback-start ; \
32099 cd libcpp && \
32100 $(MAKE) $(FLAGS_TO_PASS) \
32101 $(POSTSTAGE1_FLAGS_TO_PASS) \
32102 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
7c27e184 32103@endif libcpp-bootstrap
148907ea 32104
45f366ab 32105
ce521a9c
PB
32106.PHONY: configure-stagefeedback-libiberty maybe-configure-stagefeedback-libiberty
32107.PHONY: all-stagefeedback-libiberty maybe-all-stagefeedback-libiberty
45f366ab 32108.PHONY: clean-stagefeedback-libiberty maybe-clean-stagefeedback-libiberty
ce521a9c 32109
7c27e184
PB
32110maybe-configure-stagefeedback-libiberty:
32111maybe-all-stagefeedback-libiberty:
45f366ab 32112maybe-clean-stagefeedback-libiberty:
ad6717df 32113
7c27e184
PB
32114@if libiberty-bootstrap
32115maybe-configure-stagefeedback-libiberty: configure-stagefeedback-libiberty
ce521a9c
PB
32116configure-stagefeedback-libiberty:
32117 @$(MAKE) stagefeedback-start
32118 @[ -f libiberty/Makefile ] && exit 0 || : ; \
7c27e184
PB
32119 r=`${PWD_COMMAND}`; export r; \
32120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32121 $(STAGE_HOST_EXPORTS) \
32122 echo Configuring stage feedback in libiberty ; \
32123 cd libiberty || exit 1; \
32124 case $(srcdir) in \
32125 \.) \
32126 srcdiroption="--srcdir=."; \
32127 libsrcdir=".";; \
32128 /* | [A-Za-z]:[\\/]*) \
32129 srcdiroption="--srcdir=$(srcdir)/libiberty"; \
32130 libsrcdir="$$s/libiberty";; \
32131 *) \
32132 srcdiroption="--srcdir=../$(srcdir)/libiberty"; \
32133 libsrcdir="$$s/libiberty";; \
32134 esac; \
32135 $(SHELL) $${libsrcdir}/configure \
32136 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 32137 @stage2_werror_flag@
ad6717df 32138
7c27e184
PB
32139maybe-all-stagefeedback-libiberty: all-stagefeedback-libiberty
32140all-stagefeedback-libiberty: configure-stagefeedback-libiberty
ce521a9c 32141 @$(MAKE) stagefeedback-start
7c27e184
PB
32142 @r=`${PWD_COMMAND}`; export r; \
32143 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32144 $(STAGE_HOST_EXPORTS) \
32145 cd libiberty && \
32146 $(MAKE) $(FLAGS_TO_PASS) \
32147 $(POSTSTAGE1_FLAGS_TO_PASS) \
ce521a9c 32148 CFLAGS="$(BOOT_CFLAGS) -fprofile-use"
45f366ab
PB
32149
32150maybe-clean-stagefeedback-libiberty: clean-stagefeedback-libiberty
32151clean-stagefeedback-libiberty:
32152 @[ -f libiberty/Makefile ] || [ -f stagefeedback-libiberty/Makefile ] \
32153 || exit 0 ; \
32154 [ -f libiberty/Makefile ] || $(MAKE) stagefeedback-start ; \
32155 cd libiberty && \
32156 $(MAKE) $(FLAGS_TO_PASS) \
32157 $(POSTSTAGE1_FLAGS_TO_PASS) \
32158 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
7c27e184 32159@endif libiberty-bootstrap
ad6717df 32160
45f366ab 32161
ce521a9c
PB
32162.PHONY: configure-stagefeedback-zlib maybe-configure-stagefeedback-zlib
32163.PHONY: all-stagefeedback-zlib maybe-all-stagefeedback-zlib
45f366ab 32164.PHONY: clean-stagefeedback-zlib maybe-clean-stagefeedback-zlib
ce521a9c 32165
7c27e184
PB
32166maybe-configure-stagefeedback-zlib:
32167maybe-all-stagefeedback-zlib:
45f366ab 32168maybe-clean-stagefeedback-zlib:
ad6717df 32169
7c27e184
PB
32170@if zlib-bootstrap
32171maybe-configure-stagefeedback-zlib: configure-stagefeedback-zlib
ce521a9c
PB
32172configure-stagefeedback-zlib:
32173 @$(MAKE) stagefeedback-start
32174 @[ -f zlib/Makefile ] && exit 0 || : ; \
ad6717df
PB
32175 r=`${PWD_COMMAND}`; export r; \
32176 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32177 $(STAGE_HOST_EXPORTS) \
7c27e184
PB
32178 echo Configuring stage feedback in zlib ; \
32179 cd zlib || exit 1; \
ad6717df
PB
32180 case $(srcdir) in \
32181 \.) \
32182 srcdiroption="--srcdir=."; \
32183 libsrcdir=".";; \
32184 /* | [A-Za-z]:[\\/]*) \
7c27e184
PB
32185 srcdiroption="--srcdir=$(srcdir)/zlib"; \
32186 libsrcdir="$$s/zlib";; \
ad6717df 32187 *) \
7c27e184
PB
32188 srcdiroption="--srcdir=../$(srcdir)/zlib"; \
32189 libsrcdir="$$s/zlib";; \
ad6717df
PB
32190 esac; \
32191 $(SHELL) $${libsrcdir}/configure \
32192 $(HOST_CONFIGARGS) $${srcdiroption} \
ce521a9c 32193 @stage2_werror_flag@
ad6717df 32194
7c27e184
PB
32195maybe-all-stagefeedback-zlib: all-stagefeedback-zlib
32196all-stagefeedback-zlib: configure-stagefeedback-zlib
ce521a9c 32197 @$(MAKE) stagefeedback-start
ad6717df
PB
32198 @r=`${PWD_COMMAND}`; export r; \
32199 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32200 $(STAGE_HOST_EXPORTS) \
7c27e184
PB
32201 cd zlib && \
32202 $(MAKE) $(FLAGS_TO_PASS) \
ad6717df 32203 $(POSTSTAGE1_FLAGS_TO_PASS) \
ce521a9c 32204 CFLAGS="$(BOOT_CFLAGS) -fprofile-use"
45f366ab
PB
32205
32206maybe-clean-stagefeedback-zlib: clean-stagefeedback-zlib
32207clean-stagefeedback-zlib:
32208 @[ -f zlib/Makefile ] || [ -f stagefeedback-zlib/Makefile ] \
32209 || exit 0 ; \
32210 [ -f zlib/Makefile ] || $(MAKE) stagefeedback-start ; \
32211 cd zlib && \
32212 $(MAKE) $(FLAGS_TO_PASS) \
32213 $(POSTSTAGE1_FLAGS_TO_PASS) \
32214 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
7c27e184
PB
32215@endif zlib-bootstrap
32216
ad6717df 32217
45f366ab 32218
7c27e184
PB
32219# FIXME: Will not need to be conditional when toplevel bootstrap is the
32220# only possibility, but now it conflicts with no-bootstrap rules
32221@if gcc-bootstrap
ad6717df
PB
32222
32223
32224
32225
45f366ab 32226# Rules to wipe a stage and all the following ones, also used for cleanstrap
ad6717df 32227distclean-stage1:: distclean-stagefeedback
45f366ab 32228.PHONY: distclean-stagefeedback
ad6717df 32229distclean-stagefeedback::
d32ab992 32230 [ -f stage_current ] && $(MAKE) `cat stage_current`-end || :
ce521a9c 32231 rm -rf stagefeedback-*
ad6717df
PB
32232
32233
7c27e184 32234@endif gcc-bootstrap
ad6717df
PB
32235
32236
32237
32238stagefeedback-start::
32239 @r=`${PWD_COMMAND}`; export r; \
32240 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32241 cd stageprofile-gcc && \
32242 { find . -type d | sort | sed 's,.*,$(SHELL) '"$$s"'/mkinstalldirs "../gcc/&",' | $(SHELL); } && \
32243 { find . -name '*.*da' | sed 's,.*,$(LN) -f "&" "../gcc/&",' | $(SHELL); }
32244
7c27e184
PB
32245# FIXME: Will not need to be conditional when toplevel bootstrap is the
32246# only possibility, but now it conflicts with no-bootstrap rules
32247@if gcc-bootstrap
32248profiledbootstrap:
ad6717df
PB
32249 @r=`${PWD_COMMAND}`; export r; \
32250 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32251 $(SET_LIB_PATH) \
a52a0a7f 32252 $(HOST_EXPORTS) \
ad6717df 32253 echo "Bootstrapping the compiler"; \
d32ab992 32254 $(MAKE) stageprofile-bubble distclean-stagefeedback
ad6717df
PB
32255 @r=`${PWD_COMMAND}`; export r; \
32256 s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
32257 $(SET_LIB_PATH) \
32258 echo "Building runtime libraries and training compiler"; \
32259 $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) all
32260 @r=`${PWD_COMMAND}`; export r; \
32261 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32262 $(SET_LIB_PATH) \
a52a0a7f 32263 $(HOST_EXPORTS) \
ad6717df
PB
32264 echo "Building feedback based compiler"; \
32265 $(MAKE) stagefeedback-bubble stagefeedback-end
f516a7da 32266@endif gcc-bootstrap
03a91701 32267
45f366ab
PB
32268@if gcc-bootstrap
32269NOTPARALLEL = .NOTPARALLEL
32270$(NOTPARALLEL):
32271do-distclean: distclean-stage1
32272@endif gcc-bootstrap
32273
4977bab6
ZW
32274# --------------------------------------
32275# Dependencies between different modules
32276# --------------------------------------
32277
3589b69e
PB
32278# Generic dependencies for target modules on host stuff, especially gcc
32279
32280configure-target-libstdc++-v3: maybe-all-gcc
32281
32282configure-target-libmudflap: maybe-all-gcc
32283
32284configure-target-newlib: maybe-all-gcc
32285
32286configure-target-libgfortran: maybe-all-gcc
32287
32288configure-target-libobjc: maybe-all-gcc
32289
32290configure-target-libtermcap: maybe-all-gcc
32291
32292configure-target-winsup: maybe-all-gcc
32293
32294configure-target-libgloss: maybe-all-gcc
32295
32296configure-target-libiberty: maybe-all-gcc
32297
32298configure-target-gperf: maybe-all-gcc
32299
32300configure-target-examples: maybe-all-gcc
32301
32302configure-target-libffi: maybe-all-gcc
32303
32304configure-target-libjava: maybe-all-gcc
32305
32306configure-target-zlib: maybe-all-gcc
32307
32308configure-target-boehm-gc: maybe-all-gcc
32309
32310configure-target-qthreads: maybe-all-gcc
32311
32312configure-target-rda: maybe-all-gcc
32313
32314configure-target-libada: maybe-all-gcc
32315
32316
32317
32318configure-target-boehm-gc: maybe-all-target-newlib maybe-all-target-libgloss
32319
32320configure-target-gperf: maybe-all-target-newlib maybe-all-target-libgloss
32321configure-target-gperf: maybe-all-target-libstdc++-v3
32322
32323configure-target-libada: maybe-all-target-newlib maybe-all-target-libgloss
32324
32325configure-target-libgfortran: maybe-all-target-newlib maybe-all-target-libgloss
32326
32327configure-target-libffi: maybe-all-target-newlib maybe-all-target-libgloss
32328
32329configure-target-libjava: maybe-all-target-newlib maybe-all-target-libgloss
32330configure-target-libjava: maybe-all-target-libstdc++-v3
32331
32332configure-target-libobjc: maybe-all-target-newlib maybe-all-target-libgloss
32333
32334configure-target-libstdc++-v3: maybe-all-target-newlib maybe-all-target-libgloss
32335
32336configure-target-zlib: maybe-all-target-newlib maybe-all-target-libgloss
32337
32338configure-target-examples: maybe-all-target-newlib maybe-all-target-libgloss
32339
32340configure-target-libtermcap: maybe-all-target-newlib maybe-all-target-libgloss
32341
32342configure-target-rda: maybe-all-target-newlib maybe-all-target-libgloss
32343
32344configure-target-winsup: maybe-all-target-newlib maybe-all-target-libgloss
32345
32346configure-target-qthreads: maybe-all-target-newlib maybe-all-target-libgloss
32347
32348
4977bab6
ZW
32349# There are two types of dependencies here: 'hard' dependencies, where one
32350# module simply won't build without the other; and 'soft' dependencies, where
32351# if the depended-on module is missing, the depending module will do without
32352# or find a substitute somewhere (perhaps installed). Soft dependencies
3589b69e 32353# are made here to depend on a 'maybe-' target. If you're not sure,
4977bab6
ZW
32354# it's safer to use a soft dependency.
32355
3589b69e
PB
32356
32357
32358
32359
32360# With all the machinery above in place, it is pretty easy to generate
32361# dependencies. Host dependencies are a bit more complex because we have
32362# to check for bootstrap/prebootstrap dependencies. To resolve
32363# prebootstrap dependencies, prebootstrap modules are gathered in
32364# a hash table.
23f6b2f9 32365all-build-bison: maybe-all-build-texinfo
3589b69e 32366all-build-byacc: maybe-all-build-texinfo
23f6b2f9 32367all-build-flex: maybe-all-build-texinfo
3589b69e
PB
32368all-build-flex: maybe-all-build-bison
32369all-build-flex: maybe-all-build-byacc
32370all-build-flex: maybe-all-build-m4
23f6b2f9 32371all-build-libiberty: maybe-all-build-texinfo
3589b69e 32372all-build-m4: maybe-all-build-texinfo
71b5d516 32373all-build-fixincludes: maybe-all-build-libiberty
3589b69e
PB
32374configure-gcc: maybe-configure-intl
32375
32376configure-stage1-gcc: maybe-configure-stage1-intl
32377configure-stage2-gcc: maybe-configure-stage2-intl
32378configure-stage3-gcc: maybe-configure-stage3-intl
32379configure-stage4-gcc: maybe-configure-stage4-intl
32380configure-stageprofile-gcc: maybe-configure-stageprofile-intl
32381configure-stagefeedback-gcc: maybe-configure-stagefeedback-intl
32382configure-gcc: maybe-configure-binutils
32383
32384configure-stage1-gcc: maybe-configure-stage1-binutils
32385configure-stage2-gcc: maybe-configure-stage2-binutils
32386configure-stage3-gcc: maybe-configure-stage3-binutils
32387configure-stage4-gcc: maybe-configure-stage4-binutils
32388configure-stageprofile-gcc: maybe-configure-stageprofile-binutils
32389configure-stagefeedback-gcc: maybe-configure-stagefeedback-binutils
32390configure-gcc: maybe-configure-gas
32391
32392configure-stage1-gcc: maybe-configure-stage1-gas
32393configure-stage2-gcc: maybe-configure-stage2-gas
32394configure-stage3-gcc: maybe-configure-stage3-gas
32395configure-stage4-gcc: maybe-configure-stage4-gas
32396configure-stageprofile-gcc: maybe-configure-stageprofile-gas
32397configure-stagefeedback-gcc: maybe-configure-stagefeedback-gas
32398configure-gcc: maybe-configure-ld
32399
32400configure-stage1-gcc: maybe-configure-stage1-ld
32401configure-stage2-gcc: maybe-configure-stage2-ld
32402configure-stage3-gcc: maybe-configure-stage3-ld
32403configure-stage4-gcc: maybe-configure-stage4-ld
32404configure-stageprofile-gcc: maybe-configure-stageprofile-ld
32405configure-stagefeedback-gcc: maybe-configure-stagefeedback-ld
3589b69e
PB
32406all-gcc: all-libiberty
32407
32408all-stage1-gcc: all-stage1-libiberty
32409all-stage2-gcc: all-stage2-libiberty
32410all-stage3-gcc: all-stage3-libiberty
32411all-stage4-gcc: all-stage4-libiberty
32412all-stageprofile-gcc: all-stageprofile-libiberty
32413all-stagefeedback-gcc: all-stagefeedback-libiberty
32414all-gcc: maybe-all-intl
32415
32416all-stage1-gcc: maybe-all-stage1-intl
32417all-stage2-gcc: maybe-all-stage2-intl
32418all-stage3-gcc: maybe-all-stage3-intl
32419all-stage4-gcc: maybe-all-stage4-intl
32420all-stageprofile-gcc: maybe-all-stageprofile-intl
32421all-stagefeedback-gcc: maybe-all-stagefeedback-intl
7c27e184
PB
32422all-gcc: maybe-all-build-texinfo
32423
32424all-stage1-gcc: maybe-all-build-texinfo
32425all-stage2-gcc: maybe-all-build-texinfo
32426all-stage3-gcc: maybe-all-build-texinfo
32427all-stage4-gcc: maybe-all-build-texinfo
32428all-stageprofile-gcc: maybe-all-build-texinfo
32429all-stagefeedback-gcc: maybe-all-build-texinfo
32430all-prebootstrap: maybe-all-build-texinfo
32431all-gcc: maybe-all-build-bison
32432
32433all-stage1-gcc: maybe-all-build-bison
32434all-stage2-gcc: maybe-all-build-bison
32435all-stage3-gcc: maybe-all-build-bison
32436all-stage4-gcc: maybe-all-build-bison
32437all-stageprofile-gcc: maybe-all-build-bison
32438all-stagefeedback-gcc: maybe-all-build-bison
32439all-prebootstrap: maybe-all-build-bison
32440all-gcc: maybe-all-build-byacc
32441
32442all-stage1-gcc: maybe-all-build-byacc
32443all-stage2-gcc: maybe-all-build-byacc
32444all-stage3-gcc: maybe-all-build-byacc
32445all-stage4-gcc: maybe-all-build-byacc
32446all-stageprofile-gcc: maybe-all-build-byacc
32447all-stagefeedback-gcc: maybe-all-build-byacc
32448all-prebootstrap: maybe-all-build-byacc
32449all-gcc: maybe-all-build-flex
32450
32451all-stage1-gcc: maybe-all-build-flex
32452all-stage2-gcc: maybe-all-build-flex
32453all-stage3-gcc: maybe-all-build-flex
32454all-stage4-gcc: maybe-all-build-flex
32455all-stageprofile-gcc: maybe-all-build-flex
32456all-stagefeedback-gcc: maybe-all-build-flex
32457all-prebootstrap: maybe-all-build-flex
71b5d516
PB
32458all-gcc: maybe-all-build-libiberty
32459
32460all-stage1-gcc: maybe-all-build-libiberty
32461all-stage2-gcc: maybe-all-build-libiberty
32462all-stage3-gcc: maybe-all-build-libiberty
32463all-stage4-gcc: maybe-all-build-libiberty
32464all-stageprofile-gcc: maybe-all-build-libiberty
32465all-stagefeedback-gcc: maybe-all-build-libiberty
32466all-prebootstrap: maybe-all-build-libiberty
32467all-gcc: maybe-all-build-fixincludes
32468
32469all-stage1-gcc: maybe-all-build-fixincludes
32470all-stage2-gcc: maybe-all-build-fixincludes
32471all-stage3-gcc: maybe-all-build-fixincludes
32472all-stage4-gcc: maybe-all-build-fixincludes
32473all-stageprofile-gcc: maybe-all-build-fixincludes
32474all-stagefeedback-gcc: maybe-all-build-fixincludes
32475all-prebootstrap: maybe-all-build-fixincludes
3589b69e
PB
32476all-gcc: maybe-all-binutils
32477
32478all-stage1-gcc: maybe-all-stage1-binutils
32479all-stage2-gcc: maybe-all-stage2-binutils
32480all-stage3-gcc: maybe-all-stage3-binutils
32481all-stage4-gcc: maybe-all-stage4-binutils
32482all-stageprofile-gcc: maybe-all-stageprofile-binutils
32483all-stagefeedback-gcc: maybe-all-stagefeedback-binutils
32484all-gcc: maybe-all-gas
32485
32486all-stage1-gcc: maybe-all-stage1-gas
32487all-stage2-gcc: maybe-all-stage2-gas
32488all-stage3-gcc: maybe-all-stage3-gas
32489all-stage4-gcc: maybe-all-stage4-gas
32490all-stageprofile-gcc: maybe-all-stageprofile-gas
32491all-stagefeedback-gcc: maybe-all-stagefeedback-gas
32492all-gcc: maybe-all-ld
32493
32494all-stage1-gcc: maybe-all-stage1-ld
32495all-stage2-gcc: maybe-all-stage2-ld
32496all-stage3-gcc: maybe-all-stage3-ld
32497all-stage4-gcc: maybe-all-stage4-ld
32498all-stageprofile-gcc: maybe-all-stageprofile-ld
32499all-stagefeedback-gcc: maybe-all-stagefeedback-ld
32500all-gcc: maybe-all-zlib
32501
32502all-stage1-gcc: maybe-all-stage1-zlib
32503all-stage2-gcc: maybe-all-stage2-zlib
32504all-stage3-gcc: maybe-all-stage3-zlib
32505all-stage4-gcc: maybe-all-stage4-zlib
32506all-stageprofile-gcc: maybe-all-stageprofile-zlib
32507all-stagefeedback-gcc: maybe-all-stagefeedback-zlib
3589b69e
PB
32508all-gcc: all-libcpp
32509
32510all-stage1-gcc: all-stage1-libcpp
32511all-stage2-gcc: all-stage2-libcpp
32512all-stage3-gcc: all-stage3-libcpp
32513all-stage4-gcc: all-stage4-libcpp
32514all-stageprofile-gcc: all-stageprofile-libcpp
32515all-stagefeedback-gcc: all-stagefeedback-libcpp
4f4e53dd 32516all-gcc: maybe-all-build-libiberty
7c27e184
PB
32517
32518all-stage1-gcc: maybe-all-build-libiberty
32519all-stage2-gcc: maybe-all-build-libiberty
32520all-stage3-gcc: maybe-all-build-libiberty
32521all-stage4-gcc: maybe-all-build-libiberty
32522all-stageprofile-gcc: maybe-all-build-libiberty
32523all-stagefeedback-gcc: maybe-all-build-libiberty
32524all-prebootstrap: maybe-all-build-libiberty
3589b69e
PB
32525configure-libcpp: configure-libiberty
32526
32527configure-stage1-libcpp: configure-stage1-libiberty
32528configure-stage2-libcpp: configure-stage2-libiberty
32529configure-stage3-libcpp: configure-stage3-libiberty
32530configure-stage4-libcpp: configure-stage4-libiberty
32531configure-stageprofile-libcpp: configure-stageprofile-libiberty
32532configure-stagefeedback-libcpp: configure-stagefeedback-libiberty
32533configure-libcpp: maybe-configure-intl
32534
32535configure-stage1-libcpp: maybe-configure-stage1-intl
32536configure-stage2-libcpp: maybe-configure-stage2-intl
32537configure-stage3-libcpp: maybe-configure-stage3-intl
32538configure-stage4-libcpp: maybe-configure-stage4-intl
32539configure-stageprofile-libcpp: maybe-configure-stageprofile-intl
32540configure-stagefeedback-libcpp: maybe-configure-stagefeedback-intl
32541all-libcpp: all-libiberty
32542
32543all-stage1-libcpp: all-stage1-libiberty
32544all-stage2-libcpp: all-stage2-libiberty
32545all-stage3-libcpp: all-stage3-libiberty
32546all-stage4-libcpp: all-stage4-libiberty
32547all-stageprofile-libcpp: all-stageprofile-libiberty
32548all-stagefeedback-libcpp: all-stagefeedback-libiberty
32549all-libcpp: maybe-all-intl
32550
32551all-stage1-libcpp: maybe-all-stage1-intl
32552all-stage2-libcpp: maybe-all-stage2-intl
32553all-stage3-libcpp: maybe-all-stage3-intl
32554all-stage4-libcpp: maybe-all-stage4-intl
32555all-stageprofile-libcpp: maybe-all-stageprofile-intl
32556all-stagefeedback-libcpp: maybe-all-stagefeedback-intl
32557configure-gdb: maybe-configure-itcl
32558configure-gdb: maybe-configure-tcl
32559configure-gdb: maybe-configure-tk
32560configure-gdb: maybe-configure-sim
32561all-gdb: maybe-all-libiberty
32562all-gdb: maybe-all-opcodes
32563all-gdb: maybe-all-bfd
3589b69e 32564all-gdb: maybe-all-readline
7c27e184
PB
32565all-gdb: maybe-all-build-bison
32566all-gdb: maybe-all-build-byacc
3589b69e
PB
32567all-gdb: maybe-all-sim
32568install-gdb: maybe-install-tcl
32569install-gdb: maybe-install-tk
32570install-gdb: maybe-install-itcl
3589b69e
PB
32571install-gdb: maybe-install-libgui
32572configure-libgui: maybe-configure-tcl
32573configure-libgui: maybe-configure-tk
32574all-libgui: maybe-all-tcl
32575all-libgui: maybe-all-tk
32576all-libgui: maybe-all-itcl
4977bab6 32577configure-bfd: configure-libiberty
3589b69e
PB
32578
32579configure-stage1-bfd: configure-stage1-libiberty
32580configure-stage2-bfd: configure-stage2-libiberty
32581configure-stage3-bfd: configure-stage3-libiberty
32582configure-stage4-bfd: configure-stage4-libiberty
32583configure-stageprofile-bfd: configure-stageprofile-libiberty
32584configure-stagefeedback-bfd: configure-stagefeedback-libiberty
32585all-bfd: maybe-all-libiberty
32586
32587all-stage1-bfd: maybe-all-stage1-libiberty
32588all-stage2-bfd: maybe-all-stage2-libiberty
32589all-stage3-bfd: maybe-all-stage3-libiberty
32590all-stage4-bfd: maybe-all-stage4-libiberty
32591all-stageprofile-bfd: maybe-all-stageprofile-libiberty
32592all-stagefeedback-bfd: maybe-all-stagefeedback-libiberty
32593all-bfd: maybe-all-intl
32594
32595all-stage1-bfd: maybe-all-stage1-intl
32596all-stage2-bfd: maybe-all-stage2-intl
32597all-stage3-bfd: maybe-all-stage3-intl
32598all-stage4-bfd: maybe-all-stage4-intl
32599all-stageprofile-bfd: maybe-all-stageprofile-intl
32600all-stagefeedback-bfd: maybe-all-stagefeedback-intl
32601all-binutils: maybe-all-libiberty
32602
32603all-stage1-binutils: maybe-all-stage1-libiberty
32604all-stage2-binutils: maybe-all-stage2-libiberty
32605all-stage3-binutils: maybe-all-stage3-libiberty
32606all-stage4-binutils: maybe-all-stage4-libiberty
32607all-stageprofile-binutils: maybe-all-stageprofile-libiberty
32608all-stagefeedback-binutils: maybe-all-stagefeedback-libiberty
32609all-binutils: maybe-all-opcodes
32610
32611all-stage1-binutils: maybe-all-stage1-opcodes
32612all-stage2-binutils: maybe-all-stage2-opcodes
32613all-stage3-binutils: maybe-all-stage3-opcodes
32614all-stage4-binutils: maybe-all-stage4-opcodes
32615all-stageprofile-binutils: maybe-all-stageprofile-opcodes
32616all-stagefeedback-binutils: maybe-all-stagefeedback-opcodes
32617all-binutils: maybe-all-bfd
32618
32619all-stage1-binutils: maybe-all-stage1-bfd
32620all-stage2-binutils: maybe-all-stage2-bfd
32621all-stage3-binutils: maybe-all-stage3-bfd
32622all-stage4-binutils: maybe-all-stage4-bfd
32623all-stageprofile-binutils: maybe-all-stageprofile-bfd
32624all-stagefeedback-binutils: maybe-all-stagefeedback-bfd
7c27e184
PB
32625all-binutils: maybe-all-build-flex
32626
32627all-stage1-binutils: maybe-all-build-flex
32628all-stage2-binutils: maybe-all-build-flex
32629all-stage3-binutils: maybe-all-build-flex
32630all-stage4-binutils: maybe-all-build-flex
32631all-stageprofile-binutils: maybe-all-build-flex
32632all-stagefeedback-binutils: maybe-all-build-flex
32633all-prebootstrap: maybe-all-build-flex
32634all-binutils: maybe-all-build-bison
32635
32636all-stage1-binutils: maybe-all-build-bison
32637all-stage2-binutils: maybe-all-build-bison
32638all-stage3-binutils: maybe-all-build-bison
32639all-stage4-binutils: maybe-all-build-bison
32640all-stageprofile-binutils: maybe-all-build-bison
32641all-stagefeedback-binutils: maybe-all-build-bison
32642all-prebootstrap: maybe-all-build-bison
32643all-binutils: maybe-all-build-byacc
32644
32645all-stage1-binutils: maybe-all-build-byacc
32646all-stage2-binutils: maybe-all-build-byacc
32647all-stage3-binutils: maybe-all-build-byacc
32648all-stage4-binutils: maybe-all-build-byacc
32649all-stageprofile-binutils: maybe-all-build-byacc
32650all-stagefeedback-binutils: maybe-all-build-byacc
32651all-prebootstrap: maybe-all-build-byacc
3589b69e
PB
32652all-binutils: maybe-all-intl
32653
32654all-stage1-binutils: maybe-all-stage1-intl
32655all-stage2-binutils: maybe-all-stage2-intl
32656all-stage3-binutils: maybe-all-stage3-intl
32657all-stage4-binutils: maybe-all-stage4-intl
32658all-stageprofile-binutils: maybe-all-stageprofile-intl
32659all-stagefeedback-binutils: maybe-all-stagefeedback-intl
4977bab6 32660install-binutils: maybe-install-opcodes
c3969745 32661install-opcodes: maybe-install-bfd
3589b69e
PB
32662all-gas: maybe-all-libiberty
32663
32664all-stage1-gas: maybe-all-stage1-libiberty
32665all-stage2-gas: maybe-all-stage2-libiberty
32666all-stage3-gas: maybe-all-stage3-libiberty
32667all-stage4-gas: maybe-all-stage4-libiberty
32668all-stageprofile-gas: maybe-all-stageprofile-libiberty
32669all-stagefeedback-gas: maybe-all-stagefeedback-libiberty
32670all-gas: maybe-all-opcodes
32671
32672all-stage1-gas: maybe-all-stage1-opcodes
32673all-stage2-gas: maybe-all-stage2-opcodes
32674all-stage3-gas: maybe-all-stage3-opcodes
32675all-stage4-gas: maybe-all-stage4-opcodes
32676all-stageprofile-gas: maybe-all-stageprofile-opcodes
32677all-stagefeedback-gas: maybe-all-stagefeedback-opcodes
32678all-gas: maybe-all-bfd
32679
32680all-stage1-gas: maybe-all-stage1-bfd
32681all-stage2-gas: maybe-all-stage2-bfd
32682all-stage3-gas: maybe-all-stage3-bfd
32683all-stage4-gas: maybe-all-stage4-bfd
32684all-stageprofile-gas: maybe-all-stageprofile-bfd
32685all-stagefeedback-gas: maybe-all-stagefeedback-bfd
32686all-gas: maybe-all-intl
32687
32688all-stage1-gas: maybe-all-stage1-intl
32689all-stage2-gas: maybe-all-stage2-intl
32690all-stage3-gas: maybe-all-stage3-intl
32691all-stage4-gas: maybe-all-stage4-intl
32692all-stageprofile-gas: maybe-all-stageprofile-intl
32693all-stagefeedback-gas: maybe-all-stagefeedback-intl
32694all-gprof: maybe-all-libiberty
32695all-gprof: maybe-all-bfd
32696all-gprof: maybe-all-opcodes
32697all-gprof: maybe-all-intl
32698all-ld: maybe-all-libiberty
32699
32700all-stage1-ld: maybe-all-stage1-libiberty
32701all-stage2-ld: maybe-all-stage2-libiberty
32702all-stage3-ld: maybe-all-stage3-libiberty
32703all-stage4-ld: maybe-all-stage4-libiberty
32704all-stageprofile-ld: maybe-all-stageprofile-libiberty
32705all-stagefeedback-ld: maybe-all-stagefeedback-libiberty
32706all-ld: maybe-all-bfd
32707
32708all-stage1-ld: maybe-all-stage1-bfd
32709all-stage2-ld: maybe-all-stage2-bfd
32710all-stage3-ld: maybe-all-stage3-bfd
32711all-stage4-ld: maybe-all-stage4-bfd
32712all-stageprofile-ld: maybe-all-stageprofile-bfd
32713all-stagefeedback-ld: maybe-all-stagefeedback-bfd
32714all-ld: maybe-all-opcodes
32715
32716all-stage1-ld: maybe-all-stage1-opcodes
32717all-stage2-ld: maybe-all-stage2-opcodes
32718all-stage3-ld: maybe-all-stage3-opcodes
32719all-stage4-ld: maybe-all-stage4-opcodes
32720all-stageprofile-ld: maybe-all-stageprofile-opcodes
32721all-stagefeedback-ld: maybe-all-stagefeedback-opcodes
7c27e184
PB
32722all-ld: maybe-all-build-bison
32723
32724all-stage1-ld: maybe-all-build-bison
32725all-stage2-ld: maybe-all-build-bison
32726all-stage3-ld: maybe-all-build-bison
32727all-stage4-ld: maybe-all-build-bison
32728all-stageprofile-ld: maybe-all-build-bison
32729all-stagefeedback-ld: maybe-all-build-bison
32730all-prebootstrap: maybe-all-build-bison
32731all-ld: maybe-all-build-byacc
32732
32733all-stage1-ld: maybe-all-build-byacc
32734all-stage2-ld: maybe-all-build-byacc
32735all-stage3-ld: maybe-all-build-byacc
32736all-stage4-ld: maybe-all-build-byacc
32737all-stageprofile-ld: maybe-all-build-byacc
32738all-stagefeedback-ld: maybe-all-build-byacc
32739all-prebootstrap: maybe-all-build-byacc
32740all-ld: maybe-all-build-flex
32741
32742all-stage1-ld: maybe-all-build-flex
32743all-stage2-ld: maybe-all-build-flex
32744all-stage3-ld: maybe-all-build-flex
32745all-stage4-ld: maybe-all-build-flex
32746all-stageprofile-ld: maybe-all-build-flex
32747all-stagefeedback-ld: maybe-all-build-flex
32748all-prebootstrap: maybe-all-build-flex
3589b69e
PB
32749all-ld: maybe-all-intl
32750
32751all-stage1-ld: maybe-all-stage1-intl
32752all-stage2-ld: maybe-all-stage2-intl
32753all-stage3-ld: maybe-all-stage3-intl
32754all-stage4-ld: maybe-all-stage4-intl
32755all-stageprofile-ld: maybe-all-stageprofile-intl
32756all-stagefeedback-ld: maybe-all-stagefeedback-intl
32757all-opcodes: maybe-all-bfd
32758
32759all-stage1-opcodes: maybe-all-stage1-bfd
32760all-stage2-opcodes: maybe-all-stage2-bfd
32761all-stage3-opcodes: maybe-all-stage3-bfd
32762all-stage4-opcodes: maybe-all-stage4-bfd
32763all-stageprofile-opcodes: maybe-all-stageprofile-bfd
32764all-stagefeedback-opcodes: maybe-all-stagefeedback-bfd
32765all-opcodes: maybe-all-libiberty
32766
32767all-stage1-opcodes: maybe-all-stage1-libiberty
32768all-stage2-opcodes: maybe-all-stage2-libiberty
32769all-stage3-opcodes: maybe-all-stage3-libiberty
32770all-stage4-opcodes: maybe-all-stage4-libiberty
32771all-stageprofile-opcodes: maybe-all-stageprofile-libiberty
32772all-stagefeedback-opcodes: maybe-all-stagefeedback-libiberty
32773all-dejagnu: maybe-all-tcl
32774all-dejagnu: maybe-all-expect
32775all-dejagnu: maybe-all-tk
32776configure-expect: maybe-configure-tcl
32777configure-expect: maybe-configure-tk
32778all-expect: maybe-all-tcl
32779all-expect: maybe-all-tk
32780configure-itcl: maybe-configure-tcl
32781configure-itcl: maybe-configure-tk
32782all-itcl: maybe-all-tcl
32783all-itcl: maybe-all-tk
4977bab6 32784install-itcl: maybe-install-tcl
4977bab6
ZW
32785configure-tk: maybe-configure-tcl
32786all-tk: maybe-all-tcl
3589b69e
PB
32787all-sid: maybe-all-libiberty
32788all-sid: maybe-all-bfd
32789all-sid: maybe-all-opcodes
32790all-sid: maybe-all-tcl
32791all-sid: maybe-all-tk
32792install-sid: maybe-install-tcl
32793install-sid: maybe-install-tk
32794all-sim: maybe-all-libiberty
32795all-sim: maybe-all-bfd
32796all-sim: maybe-all-opcodes
32797all-sim: maybe-all-readline
32798all-sim: maybe-configure-gdb
32799all-fastjar: maybe-all-zlib
7c27e184 32800all-fastjar: maybe-all-build-texinfo
3589b69e
PB
32801all-fastjar: maybe-all-libiberty
32802all-autoconf: maybe-all-m4
7c27e184 32803all-autoconf: maybe-all-build-texinfo
3589b69e 32804all-automake: maybe-all-m4
7c27e184 32805all-automake: maybe-all-build-texinfo
3589b69e
PB
32806all-automake: maybe-all-autoconf
32807all-bison: maybe-all-intl
7c27e184 32808all-bison: maybe-all-build-texinfo
3589b69e 32809all-diff: maybe-all-intl
7c27e184 32810all-diff: maybe-all-build-texinfo
3589b69e 32811all-fileutils: maybe-all-intl
7c27e184
PB
32812all-fileutils: maybe-all-build-texinfo
32813all-flex: maybe-all-build-bison
32814all-flex: maybe-all-build-byacc
3589b69e
PB
32815all-flex: maybe-all-intl
32816all-flex: maybe-all-m4
7c27e184 32817all-flex: maybe-all-build-texinfo
3589b69e
PB
32818all-gzip: maybe-all-intl
32819all-gzip: maybe-all-zlib
7c27e184 32820all-gzip: maybe-all-build-texinfo
3589b69e 32821all-hello: maybe-all-intl
7c27e184 32822all-hello: maybe-all-build-texinfo
3589b69e 32823all-m4: maybe-all-intl
7c27e184 32824all-m4: maybe-all-build-texinfo
3589b69e 32825all-make: maybe-all-intl
7c27e184
PB
32826all-make: maybe-all-build-texinfo
32827all-patch: maybe-all-build-texinfo
32828all-make: maybe-all-build-texinfo
4977bab6 32829all-prms: maybe-all-libiberty
7c27e184
PB
32830all-recode: maybe-all-build-texinfo
32831all-sed: maybe-all-build-texinfo
4977bab6 32832all-send-pr: maybe-all-prms
7c27e184
PB
32833all-tar: maybe-all-build-texinfo
32834all-uudecode: maybe-all-build-texinfo
3589b69e 32835configure-target-boehm-gc: maybe-configure-target-qthreads
4977bab6 32836configure-target-fastjar: maybe-configure-target-zlib
3589b69e
PB
32837all-target-fastjar: maybe-all-target-zlib
32838all-target-fastjar: maybe-all-target-libiberty
32839configure-target-libjava: maybe-configure-target-zlib
32840configure-target-libjava: maybe-configure-target-boehm-gc
32841configure-target-libjava: maybe-configure-target-qthreads
32842configure-target-libjava: maybe-configure-target-libffi
32843all-target-libjava: maybe-all-fastjar
32844all-target-libjava: maybe-all-target-zlib
32845all-target-libjava: maybe-all-target-boehm-gc
32846all-target-libjava: maybe-all-target-qthreads
32847all-target-libjava: maybe-all-target-libffi
4977bab6 32848all-target-libobjc: maybe-all-target-libiberty
4977bab6 32849all-target-libstdc++-v3: maybe-all-target-libiberty
4977bab6 32850all-target-libgloss: maybe-configure-target-newlib
3589b69e
PB
32851all-target-winsup: maybe-all-target-libiberty
32852all-target-winsup: maybe-all-target-libtermcap
32853
32854
7c27e184
PB
32855# Non-toplevel bootstrap rules must depend on several packages, to be built
32856# before gcc. Another wart that will go away, hopefully soon.
3589b69e
PB
32857@if gcc-no-bootstrap
32858
32859all-prebootstrap: maybe-all-bfd
32860all-prebootstrap: maybe-all-opcodes
32861all-prebootstrap: maybe-all-binutils
32862all-prebootstrap: maybe-all-gas
32863all-prebootstrap: maybe-all-intl
32864all-prebootstrap: maybe-all-ld
32865all-prebootstrap: maybe-all-libcpp
3589b69e
PB
32866all-prebootstrap: maybe-all-libiberty
32867all-prebootstrap: maybe-all-zlib
32868@endif gcc-no-bootstrap
32869
32870GDB_TK = @GDB_TK@
32871all-gdb: $(gdbnlmrequirements) $(GDB_TK)
6599da04 32872
4977bab6
ZW
32873# Serialization dependencies. Host configures don't work well in parallel to
32874# each other, due to contention over config.cache. Target configures and
32875# build configures are similar.
32876@serialization_dependencies@
6599da04 32877
4977bab6
ZW
32878# --------------------------------
32879# Regenerating top level configury
32880# --------------------------------
6599da04 32881
88b5521b
NN
32882# Multilib.out tells target dirs what multilibs they should build.
32883# There is really only one copy. We use the 'timestamp' method to
32884# work around various timestamp bugs on some systems.
32885# We use move-if-change so that it's only considered updated when it
32886# actually changes, because it has to depend on a phony target.
ade82b16 32887multilib.out: maybe-all-gcc
8c90b13a 32888 @r=`${PWD_COMMAND}`; export r; \
88b5521b
NN
32889 echo "Checking multilib configuration..."; \
32890 $(CC_FOR_TARGET) --print-multi-lib > multilib.tmp 2> /dev/null ; \
32891 $(SHELL) $(srcdir)/move-if-change multilib.tmp multilib.out ; \
88b5521b 32892
6f950405 32893# Rebuilding Makefile.in, using autogen.
e245b0ea 32894AUTOGEN = autogen
ee03dc5e 32895$(srcdir)/Makefile.in: @MAINT@ $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def
e245b0ea 32896 cd $(srcdir) && $(AUTOGEN) Makefile.def
6f950405 32897
671aa708 32898# Rebuilding Makefile.
e245b0ea
AO
32899Makefile: $(srcdir)/Makefile.in config.status
32900 CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
32901
32902config.status: configure $(gcc_version_trigger)
e75f9147 32903 CONFIG_SHELL="$(SHELL)" $(SHELL) ./config.status --recheck
6599da04 32904
671aa708 32905# Rebuilding configure.
e245b0ea 32906AUTOCONF = autoconf
ee03dc5e 32907$(srcdir)/configure: @MAINT@ $(srcdir)/configure.in $(srcdir)/config/acx.m4
e245b0ea 32908 cd $(srcdir) && $(AUTOCONF)
6599da04 32909
93c834b7
NN
32910# ------------------------------
32911# Special directives to GNU Make
32912# ------------------------------
32913
93c834b7
NN
32914# Don't pass command-line variables to submakes.
32915.NOEXPORT:
32916MAKEOVERRIDES=
32917
6599da04 32918# end of Makefile.in
This page took 5.702454 seconds and 5 git commands to generate.