Reoder functions to eliminate most of the static function prototypes.
[deliverable/binutils-gdb.git] / Makefile.in
CommitLineData
405ea7a0
NN
1
2# Makefile.in is generated from Makefile.tpl by 'autogen Makefile.def'.
252b5132
RH
3#
4# Makefile for directory with subdirs to build.
5cec67bf 5# Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
378fce5b 6# 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation
252b5132
RH
7#
8# This file is free software; you can redistribute it and/or modify
9# it under the terms of the GNU General Public License as published by
10# the Free Software Foundation; either version 2 of the License, or
11# (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU General Public License for more details.
17#
18# You should have received a copy of the GNU General Public License
19# along with this program; if not, write to the Free Software
20# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21#
22
50212802
NN
23# -------------------------------
24# Standard Autoconf-set variables
25# -------------------------------
583d52d7 26VPATH=@srcdir@
583d52d7
NN
27
28build_alias=@build_alias@
7f121bbf 29build=@build@
583d52d7 30host_alias=@host_alias@
7f121bbf 31host=@host@
583d52d7 32target_alias=@target_alias@
7f121bbf 33target=@target@
583d52d7 34
50212802 35program_transform_name = @program_transform_name@
403d9505
NN
36
37prefix = @prefix@
38exec_prefix = @exec_prefix@
39
50212802
NN
40srcdir = @srcdir@
41
403d9505
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@
252b5132
RH
54man1dir = $(mandir)/man1
55man2dir = $(mandir)/man2
56man3dir = $(mandir)/man3
57man4dir = $(mandir)/man4
58man5dir = $(mandir)/man5
59man6dir = $(mandir)/man6
60man7dir = $(mandir)/man7
61man8dir = $(mandir)/man8
62man9dir = $(mandir)/man9
d5de0a84 63
e5c3f801
NN
64INSTALL = @INSTALL@
65INSTALL_PROGRAM = @INSTALL_PROGRAM@
66INSTALL_SCRIPT = @INSTALL_SCRIPT@
67INSTALL_DATA = @INSTALL_DATA@
656fdd47
PB
68LN = @LN@
69LN_S = @LN_S@
252b5132 70
50212802
NN
71# -------------------------------------------------
72# Miscellaneous non-standard autoconf-set variables
73# -------------------------------------------------
252b5132 74
50212802
NN
75# The file containing GCC's version number.
76gcc_version_trigger = @gcc_version_trigger@
77gcc_version = @gcc_version@
252b5132 78
50212802
NN
79# The gcc driver likes to know the arguments it was configured with.
80TOPLEVEL_CONFIGURE_ARGUMENTS=@TOPLEVEL_CONFIGURE_ARGUMENTS@
252b5132 81
50212802
NN
82gxx_include_dir = @gxx_include_dir@
83libstdcxx_incdir = @libstdcxx_incdir@
252b5132 84
50212802
NN
85tooldir = @tooldir@
86build_tooldir = @build_tooldir@
252b5132 87
50212802 88# Directory in which the compiler finds executables, libraries, etc.
ede4fbe4 89libsubdir = $(libdir)/gcc/$(target_alias)/$(gcc_version)
50212802 90GDB_NLM_DEPS =
252b5132 91
50212802
NN
92# This is the name of the environment variable used for the path to
93# the libraries.
94RPATH_ENVVAR = @RPATH_ENVVAR@
252b5132 95
50212802
NN
96# This is set by configure to REALLY_SET_LIB_PATH if --enable-shared
97# was used.
98SET_LIB_PATH = @SET_LIB_PATH@
252b5132 99
50212802
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 = \
315b3b02 104 @SET_GCC_LIB_PATH@ \
50212802 105 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH):$(TARGET_LIB_PATH):$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
252b5132 106
50212802 107# This is the list of directories to be built for the build system.
be75bbe1 108BUILD_CONFIGDIRS = libiberty
50212802
NN
109# Build programs are put under this directory.
110BUILD_SUBDIR = @build_subdir@
111# This is set by the configure script to the arguments to use when configuring
112# directories built for the build system.
113BUILD_CONFIGARGS = @build_configargs@
6a9cf61e
PB
114
115# This is the list of variables to export in the environment when
116# configuring any subdirectory. It must also be exported whenever
117# recursing into a build directory in case that directory's Makefile
118# re-runs configure.
119BASE_EXPORTS = \
120 FLEX="$(FLEX)"; export FLEX; \
121 LEX="$(LEX)"; export LEX; \
122 BISON="$(BISON)"; export BISON; \
123 YACC="$(YACC)"; export YACC; \
124 M4="$(M4)"; export M4; \
125 MAKEINFO="$(MAKEINFO)"; export MAKEINFO;
126
378fce5b 127# This is the list of variables to export in the environment when
6a9cf61e 128# configuring subdirectories for the build system.
378fce5b 129BUILD_EXPORTS = \
6a9cf61e 130 $(BASE_EXPORTS) \
378fce5b
DD
131 AR="$(AR_FOR_BUILD)"; export AR; \
132 AS="$(AS_FOR_BUILD)"; export AS; \
133 CC="$(CC_FOR_BUILD)"; export CC; \
134 CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \
135 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
136 CXX="$(CXX_FOR_BUILD)"; export CXX; \
137 CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \
138 GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \
139 GFORTRAN="$(GFORTRAN_FOR_BUILD)"; export GFORTRAN; \
140 DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \
141 LD="$(LD_FOR_BUILD)"; export LD; \
142 LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \
143 NM="$(NM_FOR_BUILD)"; export NM; \
144 RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \
145 WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES;
50212802
NN
146
147# This is the list of directories to built for the host system.
148SUBDIRS = @configdirs@
149# This is set by the configure script to the arguments to use when configuring
150# directories built for the host system.
151HOST_CONFIGARGS = @host_configargs@
378fce5b 152# This is the list of variables to export in the environment when
6a9cf61e 153# configuring subdirectories for the host system.
378fce5b 154HOST_EXPORTS = \
6a9cf61e 155 $(BASE_EXPORTS) \
378fce5b
DD
156 CC="$(CC)"; export CC; \
157 CFLAGS="$(CFLAGS)"; export CFLAGS; \
158 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
159 CXX="$(CXX)"; export CXX; \
160 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
161 AR="$(AR)"; export AR; \
162 AS="$(AS)"; export AS; \
163 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
164 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
165 LD="$(LD)"; export LD; \
166 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
167 NM="$(NM)"; export NM; \
168 RANLIB="$(RANLIB)"; export RANLIB; \
169 WINDRES="$(WINDRES)"; export WINDRES; \
170 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
95b6a1f2 171 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
378fce5b
DD
172 TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
173 GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \
315b3b02
L
174 GMPINC="$(HOST_GMPINC)"; export GMPINC; \
175 SET_GCC_LIB_PATH_CMD="@SET_GCC_LIB_PATH@"; export SET_GCC_LIB_PATH_CMD; \
176 @SET_GCC_LIB_PATH@
378fce5b
DD
177
178# Similar, for later GCC stages.
179STAGE_HOST_EXPORTS = \
7ffa0b57 180 $(HOST_EXPORTS) \
378fce5b
DD
181 CC="$(STAGE_CC_WRAPPER) $$r/prev-gcc/xgcc$(exeext) -B$$r/prev-gcc/ -B$(build_tooldir)/bin/"; export CC; \
182 CC_FOR_BUILD="$(STAGE_CC_WRAPPER) $$r/prev-gcc/xgcc$(exeext) -B$$r/prev-gcc/ -B$(build_tooldir)/bin/"; export CC_FOR_BUILD;
50212802
NN
183
184# This is set by the configure script to the list of directories which
185# should be built using the target tools.
186TARGET_CONFIGDIRS = @target_configdirs@
187# Target libraries are put under this directory:
188TARGET_SUBDIR = @target_subdir@
189# This is set by the configure script to the arguments to use when configuring
190# directories built for the target.
191TARGET_CONFIGARGS = @target_configargs@
378fce5b 192# This is the list of variables to export in the environment when
6a9cf61e 193# configuring subdirectories for the host system.
378fce5b 194BASE_TARGET_EXPORTS = \
6a9cf61e 195 $(BASE_EXPORTS) \
378fce5b
DD
196 AR="$(AR_FOR_TARGET)"; export AR; \
197 AS="$(AS_FOR_TARGET)"; export AS; \
198 CC="$(CC_FOR_TARGET)"; export CC; \
199 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
200 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
201 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
202 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
203 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
204 GFORTRAN="$(GFORTRAN_FOR_TARGET)"; export GFORTRAN; \
205 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
206 LD="$(LD_FOR_TARGET)"; export LD; \
207 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
208 NM="$(NM_FOR_TARGET)"; export NM; \
209 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
315b3b02
L
210 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
211 SET_GCC_LIB_PATH_CMD="@SET_GCC_LIB_PATH@"; export SET_GCC_LIB_PATH_CMD; \
212 @SET_GCC_LIB_PATH@
378fce5b
DD
213
214RAW_CXX_TARGET_EXPORTS = \
215 $(BASE_TARGET_EXPORTS) \
216 CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \
217 CXX="$(RAW_CXX_FOR_TARGET)"; export CXX;
218
219NORMAL_TARGET_EXPORTS = \
220 $(BASE_TARGET_EXPORTS) \
221 CXX="$(CXX_FOR_TARGET)"; export CXX;
50212802 222
4b1cb4fe
DD
223# Where to find GMP
224HOST_GMPLIBS = @gmplibs@
225HOST_GMPINC = @gmpinc@
226
50212802
NN
227# ----------------------------------------------
228# Programs producing files for the BUILD machine
229# ----------------------------------------------
230
231SHELL = @config_shell@
232
233# pwd command to use. Allow user to override default by setting PWDCMD in
234# the environment to account for automounters. The make variable must not
235# be called PWDCMD, otherwise the value set here is passed to make
236# subprocesses and overrides the setting from the user's environment.
b40e3958
L
237# Don't use PWD since it is a common shell environment variable and we
238# don't want to corrupt it.
239PWD_COMMAND = $${PWDCMD-pwd}
50212802
NN
240
241# compilers to use to create programs which must be run in the build
242# environment.
243CC_FOR_BUILD = @CC_FOR_BUILD@
5fbad20a 244CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
50212802
NN
245
246CXX_FOR_BUILD = $(CXX)
247
248# Special variables passed down in EXTRA_GCC_FLAGS. They are defined
249# here so that they can be overridden by Makefile fragments.
50212802
NN
250BUILD_PREFIX = @BUILD_PREFIX@
251BUILD_PREFIX_1 = @BUILD_PREFIX_1@
252b5132 252
0df3d27f
PB
253# Flags to pass to stage2 and later makes. They are defined
254# here so that they can be overridden by Makefile fragments.
255BOOT_CFLAGS= -g -O2
256
6a9cf61e 257CONFIGURED_BISON = @CONFIGURED_BISON@
72b2455a
PB
258BISON = `if [ -f $$r/$(BUILD_SUBDIR)/bison/tests/bison ] ; then \
259 echo $$r/$(BUILD_SUBDIR)/bison/tests/bison ; \
252b5132 260 else \
6a9cf61e 261 echo ${CONFIGURED_BISON} ; \
252b5132
RH
262 fi`
263
6a9cf61e 264CONFIGURED_YACC = @CONFIGURED_YACC@
72b2455a
PB
265YACC = `if [ -f $$r/$(BUILD_SUBDIR)/bison/tests/bison ] ; then \
266 echo $$r/$(BUILD_SUBDIR)/bison/tests/bison -y ; \
267 elif [ -f $$r/$(BUILD_SUBDIR)/byacc/byacc ] ; then \
268 echo $$r/$(BUILD_SUBDIR)/byacc/byacc ; \
252b5132 269 else \
6a9cf61e 270 echo ${CONFIGURED_YACC} ; \
252b5132
RH
271 fi`
272
6a9cf61e 273CONFIGURED_FLEX = @CONFIGURED_FLEX@
72b2455a
PB
274FLEX = `if [ -f $$r/$(BUILD_SUBDIR)/flex/flex ] ; \
275 then echo $$r/$(BUILD_SUBDIR)/flex/flex ; \
6a9cf61e 276 else echo ${CONFIGURED_FLEX} ; fi`
252b5132 277
6a9cf61e 278CONFIGURED_LEX = @CONFIGURED_LEX@
72b2455a
PB
279LEX = `if [ -f $$r/$(BUILD_SUBDIR)/flex/flex ] ; \
280 then echo $$r/$(BUILD_SUBDIR)/flex/flex ; \
6a9cf61e
PB
281 else echo ${CONFIGURED_LEX} ; fi`
282
283CONFIGURED_M4 = @CONFIGURED_M4@
72b2455a
PB
284M4 = `if [ -f $$r/$(BUILD_SUBDIR)/m4/m4 ] ; \
285 then echo $$r/$(BUILD_SUBDIR)/m4/m4 ; \
6a9cf61e 286 else echo ${CONFIGURED_M4} ; fi`
252b5132 287
77f7441a 288# For an installed makeinfo, we require it to be from texinfo 4.2 or
6a9cf61e
PB
289# higher, else we use the "missing" dummy. We also pass the subdirectory
290# makeinfo even if only the Makefile is there, because Texinfo builds its
291# manual when made, and it requires its own version.
292CONFIGURED_MAKEINFO = @CONFIGURED_MAKEINFO@
72b2455a
PB
293MAKEINFO = `if [ -f $$r/$(BUILD_SUBDIR)/texinfo/makeinfo/Makefile ] ; \
294 then echo $$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo ; \
6a9cf61e 295 else if (${CONFIGURED_MAKEINFO} --version \
77f7441a 296 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[2-9]|[5-9])') >/dev/null 2>&1; \
6a9cf61e 297 then echo ${CONFIGURED_MAKEINFO}; else echo $$s/missing makeinfo; fi; fi`
252b5132
RH
298
299# This just becomes part of the MAKEINFO definition passed down to
300# sub-makes. It lets flags be given on the command line while still
301# using the makeinfo from the object tree.
62a3fc85
DD
302# (Default to avoid splitting info files by setting the threshold high.)
303MAKEINFOFLAGS = --split-size=5000000
252b5132
RH
304
305EXPECT = `if [ -f $$r/expect/expect ] ; \
306 then echo $$r/expect/expect ; \
307 else echo expect ; fi`
308
309RUNTEST = `if [ -f $$s/dejagnu/runtest ] ; \
310 then echo $$s/dejagnu/runtest ; \
311 else echo runtest ; fi`
312
50212802
NN
313# ---------------------------------------------
314# Programs producing files for the HOST machine
315# ---------------------------------------------
252b5132 316
50212802
NN
317# This is the list of directories that may be needed in RPATH_ENVVAR
318# so that programs built for the host machine work.
319HOST_LIB_PATH = $$r/bfd:$$r/opcodes
252b5132 320
50212802 321AS = @AS@
252b5132 322
50212802
NN
323AR = @AR@
324AR_FLAGS = rc
252b5132 325
50212802
NN
326CC = @CC@
327CFLAGS = @CFLAGS@
328LIBCFLAGS = $(CFLAGS)
252b5132 329
50212802
NN
330CXX = @CXX@
331CXXFLAGS = @CXXFLAGS@
332LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
49b7683b 333
50212802 334DLLTOOL = @DLLTOOL@
252b5132 335
50212802 336NM = @NM@
15723a45 337
50212802
NN
338LD = @LD@
339LDFLAGS =
15723a45 340
50212802 341RANLIB = @RANLIB@
252b5132 342
50212802 343WINDRES = @WINDRES@
252b5132 344
50212802
NN
345PICFLAG =
346
347# -----------------------------------------------
348# Programs producing files for the TARGET machine
349# -----------------------------------------------
0da52010
AO
350
351# This is the list of directories that may be needed in RPATH_ENVVAR
352# so that prorgams built for the target machine work.
4b1cb4fe 353TARGET_LIB_PATH = $$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs:$$r/$(TARGET_SUBDIR)/libmudflap/.libs
0da52010 354
58daee98 355FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
252b5132 356
50212802 357AR_FOR_TARGET=@AR_FOR_TARGET@
54752a6b 358CONFIGURED_AR_FOR_TARGET=@CONFIGURED_AR_FOR_TARGET@
50212802
NN
359USUAL_AR_FOR_TARGET = ` \
360 if [ -f $$r/binutils/ar ] ; then \
361 echo $$r/binutils/ar ; \
362 else \
7f121bbf 363 if [ '$(host)' = '$(target)' ] ; then \
50212802
NN
364 echo $(AR); \
365 else \
54752a6b 366 echo $(CONFIGURED_AR_FOR_TARGET) ; \
50212802
NN
367 fi; \
368 fi`
252b5132 369
852e5f18 370AS_FOR_TARGET=@AS_FOR_TARGET@
54752a6b 371CONFIGURED_AS_FOR_TARGET=@CONFIGURED_AS_FOR_TARGET@
852e5f18 372USUAL_AS_FOR_TARGET = ` \
252b5132
RH
373 if [ -f $$r/gas/as-new ] ; then \
374 echo $$r/gas/as-new ; \
dc70af01
AO
375 elif [ -f $$r/gcc/xgcc ]; then \
376 $(CC_FOR_TARGET) -print-prog-name=as ; \
252b5132 377 else \
7f121bbf 378 if [ '$(host)' = '$(target)' ] ; then \
252b5132
RH
379 echo $(AS); \
380 else \
54752a6b 381 echo $(CONFIGURED_AS_FOR_TARGET) ; \
252b5132
RH
382 fi; \
383 fi`
384
50212802
NN
385CC_FOR_TARGET = @CC_FOR_TARGET@
386# During gcc bootstrap, if we use some random cc for stage1 then
387# CFLAGS will be just -g. We want to ensure that TARGET libraries
388# (which we know are built with gcc) are built with optimizations so
389# prepend -O2 when setting CFLAGS_FOR_TARGET.
390CFLAGS_FOR_TARGET = -O2 $(CFLAGS)
391# If GCC_FOR_TARGET is not overriden on the command line, then this
392# variable is passed down to the gcc Makefile, where it is used to
393# build libgcc2.a. We define it here so that it can itself be
394# overridden on the command line.
395GCC_FOR_TARGET=@GCC_FOR_TARGET@
396USUAL_GCC_FOR_TARGET = $(STAGE_CC_WRAPPER) $$r/gcc/xgcc -B$$r/gcc/ $(FLAGS_FOR_TARGET)
397LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
398
399CXX_FOR_TARGET = @CXX_FOR_TARGET@
400RAW_CXX_FOR_TARGET = @RAW_CXX_FOR_TARGET@
401CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
402RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
403CXXFLAGS_FOR_TARGET = $(CXXFLAGS)
404LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
252b5132 405
852e5f18 406DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@
54752a6b 407CONFIGURED_DLLTOOL_FOR_TARGET=@CONFIGURED_DLLTOOL_FOR_TARGET@
852e5f18 408USUAL_DLLTOOL_FOR_TARGET = ` \
252b5132
RH
409 if [ -f $$r/binutils/dlltool ] ; then \
410 echo $$r/binutils/dlltool ; \
411 else \
7f121bbf 412 if [ '$(host)' = '$(target)' ] ; then \
252b5132
RH
413 echo $(DLLTOOL); \
414 else \
54752a6b 415 echo $(CONFIGURED_DLLTOOL_FOR_TARGET) ; \
252b5132
RH
416 fi; \
417 fi`
418
50212802 419GCJ_FOR_TARGET = @GCJ_FOR_TARGET@
4b1cb4fe 420GFORTRAN_FOR_TARGET = @GFORTRAN_FOR_TARGET@
50212802
NN
421
422LD_FOR_TARGET=@LD_FOR_TARGET@
54752a6b 423CONFIGURED_LD_FOR_TARGET=@CONFIGURED_LD_FOR_TARGET@
50212802
NN
424USUAL_LD_FOR_TARGET = ` \
425 if [ -f $$r/ld/ld-new ] ; then \
426 echo $$r/ld/ld-new ; \
427 elif [ -f $$r/gcc/xgcc ]; then \
428 $(CC_FOR_TARGET) -print-prog-name=ld ; \
252b5132 429 else \
7f121bbf 430 if [ '$(host)' = '$(target)' ] ; then \
50212802 431 echo $(LD); \
252b5132 432 else \
54752a6b 433 echo $(CONFIGURED_LD_FOR_TARGET) ; \
252b5132
RH
434 fi; \
435 fi`
436
50212802
NN
437LDFLAGS_FOR_TARGET =
438
439NM_FOR_TARGET=@NM_FOR_TARGET@
54752a6b 440CONFIGURED_NM_FOR_TARGET=@CONFIGURED_NM_FOR_TARGET@
50212802
NN
441USUAL_NM_FOR_TARGET = ` \
442 if [ -f $$r/binutils/nm-new ] ; then \
443 echo $$r/binutils/nm-new ; \
444 elif [ -f $$r/gcc/xgcc ]; then \
445 $(CC_FOR_TARGET) -print-prog-name=nm ; \
252b5132 446 else \
7f121bbf 447 if [ '$(host)' = '$(target)' ] ; then \
50212802 448 echo $(NM); \
252b5132 449 else \
54752a6b 450 echo $(CONFIGURED_NM_FOR_TARGET) ; \
252b5132
RH
451 fi; \
452 fi`
453
852e5f18 454RANLIB_FOR_TARGET=@RANLIB_FOR_TARGET@
54752a6b 455CONFIGURED_RANLIB_FOR_TARGET=@CONFIGURED_RANLIB_FOR_TARGET@
852e5f18 456USUAL_RANLIB_FOR_TARGET = ` \
252b5132
RH
457 if [ -f $$r/binutils/ranlib ] ; then \
458 echo $$r/binutils/ranlib ; \
459 else \
7f121bbf 460 if [ '$(host)' = '$(target)' ] ; then \
3f152009
AO
461 if [ x'$(RANLIB)' != x ]; then \
462 echo $(RANLIB); \
463 else \
464 echo ranlib; \
465 fi; \
252b5132 466 else \
54752a6b 467 echo $(CONFIGURED_RANLIB_FOR_TARGET) ; \
252b5132
RH
468 fi; \
469 fi`
470
50212802 471WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@
54752a6b 472CONFIGURED_WINDRES_FOR_TARGET=@CONFIGURED_WINDRES_FOR_TARGET@
50212802
NN
473USUAL_WINDRES_FOR_TARGET = ` \
474 if [ -f $$r/binutils/windres ] ; then \
475 echo $$r/binutils/windres ; \
252b5132 476 else \
7f121bbf 477 if [ '$(host)' = '$(target)' ] ; then \
50212802 478 echo $(WINDRES); \
252b5132 479 else \
54752a6b 480 echo $(CONFIGURED_WINDRES_FOR_TARGET) ; \
252b5132
RH
481 fi; \
482 fi`
483
50212802
NN
484PICFLAG_FOR_TARGET =
485
486# ------------------------------------
487# Miscellaneous targets and flag lists
488# ------------------------------------
489
252b5132
RH
490# The first rule in the file had better be this one. Don't put any above it.
491# This lives here to allow makefile fragments to contain dependencies.
319cab08 492@default_target@:
252b5132 493
252b5132 494#### host and target specific makefile fragments come in here.
a0da8069
NN
495@target_makefile_frag@
496@alphaieee_frag@
497@ospace_frag@
498@host_makefile_frag@
252b5132
RH
499###
500
501# Flags to pass down to all sub-makes.
252b5132 502BASE_FLAGS_TO_PASS = \
497f816e 503 "DESTDIR=$(DESTDIR)" \
252b5132 504 "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
252b5132 505 "TARGET_SUBDIR=$(TARGET_SUBDIR)" \
252b5132
RH
506 "bindir=$(bindir)" \
507 "datadir=$(datadir)" \
508 "exec_prefix=$(exec_prefix)" \
509 "includedir=$(includedir)" \
510 "infodir=$(infodir)" \
511 "libdir=$(libdir)" \
512 "libexecdir=$(libexecdir)" \
513 "lispdir=$(lispdir)" \
75205f78
DD
514 "libstdcxx_incdir=$(libstdcxx_incdir)" \
515 "libsubdir=$(libsubdir)" \
252b5132
RH
516 "localstatedir=$(localstatedir)" \
517 "mandir=$(mandir)" \
518 "oldincludedir=$(oldincludedir)" \
519 "prefix=$(prefix)" \
520 "sbindir=$(sbindir)" \
521 "sharedstatedir=$(sharedstatedir)" \
522 "sysconfdir=$(sysconfdir)" \
523 "tooldir=$(tooldir)" \
ba73c63f 524 "build_tooldir=$(build_tooldir)" \
252b5132
RH
525 "gxx_include_dir=$(gxx_include_dir)" \
526 "gcc_version=$(gcc_version)" \
527 "gcc_version_trigger=$(gcc_version_trigger)" \
12f0bd74
NN
528 "target_alias=$(target_alias)" \
529 "BISON=$(BISON)" \
530 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
531 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
532 "EXPECT=$(EXPECT)" \
6a9cf61e 533 "FLEX=$(FLEX)" \
12f0bd74
NN
534 "INSTALL=$(INSTALL)" \
535 "INSTALL_DATA=$(INSTALL_DATA)" \
536 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
537 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
538 "LEX=$(LEX)" \
539 "M4=$(M4)" \
540 "MAKE=$(MAKE)" \
541 "RUNTEST=$(RUNTEST)" \
542 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
543 "SHELL=$(SHELL)" \
544 "YACC=$(YACC)" \
545 "AR_FLAGS=$(AR_FLAGS)" \
546 "CFLAGS=$(CFLAGS)" \
547 "CXXFLAGS=$(CXXFLAGS)" \
548 "LDFLAGS=$(LDFLAGS)" \
549 "LIBCFLAGS=$(LIBCFLAGS)" \
550 "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
551 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
552 "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
553 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
554 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
555 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
556 "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
557 "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
558 "GCJ_FOR_TARGET=$(GCJ_FOR_TARGET)" \
4b1cb4fe 559 "GFORTRAN_FOR_TARGET=$(GFORTRAN_FOR_TARGET)" \
12f0bd74
NN
560 "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
561 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
562 "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
563 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
564 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
565 "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
10ecffb9 566 "CONFIG_SHELL=$(SHELL)" \
12f0bd74 567 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)"
252b5132 568
dec0cb0c
AO
569# For any flags above that may contain shell code that varies from one
570# target library to another. When doing recursive invocations of the
571# top-level Makefile, we don't want the outer make to evaluate them,
572# so we pass these variables down unchanged. They must not contain
573# single nor double quotes.
574RECURSE_FLAGS = \
930314a4
NN
575 CXX_FOR_TARGET='$(CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \
576 RAW_CXX_FOR_TARGET='$(RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \
dec0cb0c 577
656fdd47
PB
578RECURSE_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS)
579
252b5132
RH
580# Flags to pass down to most sub-makes, in which we're building with
581# the host environment.
252b5132
RH
582EXTRA_HOST_FLAGS = \
583 'AR=$(AR)' \
584 'AS=$(AS)' \
585 'CC=$(CC)' \
586 'CXX=$(CXX)' \
587 'DLLTOOL=$(DLLTOOL)' \
588 'LD=$(LD)' \
589 'NM=$(NM)' \
b9459e83 590 'RANLIB=$(RANLIB)' \
252b5132
RH
591 'WINDRES=$(WINDRES)'
592
593FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
594
595# Flags that are concerned with the location of the X11 include files
596# and library files
597#
598# NOTE: until the top-level is getting the values via autoconf, it only
599# causes problems to have this top-level Makefile overriding the autoconf-set
600# values in child directories. Only variables that don't conflict with
601# autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now.
602#
603X11_FLAGS_TO_PASS = \
604 'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \
605 'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)'
606
607# Flags to pass down to makes which are built with the target environment.
608# The double $ decreases the length of the command line; the variables
609# are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them.
252b5132
RH
610EXTRA_TARGET_FLAGS = \
611 'AR=$$(AR_FOR_TARGET)' \
612 'AS=$$(AS_FOR_TARGET)' \
613 'CC=$$(CC_FOR_TARGET)' \
614 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
615 'CXX=$$(CXX_FOR_TARGET)' \
616 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
617 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
618 'LD=$$(LD_FOR_TARGET)' \
619 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
620 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
621 'NM=$$(NM_FOR_TARGET)' \
622 'RANLIB=$$(RANLIB_FOR_TARGET)' \
623 'WINDRES=$$(WINDRES_FOR_TARGET)'
624
625TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
626
627# Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
628# unfortunately needs the native compiler and the target ar and
629# ranlib.
630# If any variables are added here, they must be added to do-*, below.
2a4cbe27 631# The BUILD_* variables are a special case, which are used for the gcc
252b5132
RH
632# cross-building scheme.
633EXTRA_GCC_FLAGS = \
27f15fdd
DD
634 'BUILD_PREFIX=$(BUILD_PREFIX)' \
635 'BUILD_PREFIX_1=$(BUILD_PREFIX_1)' \
252b5132 636 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
75205f78 637 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
3dee29da
NN
638 "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
639 "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
640 "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
641 "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
642 "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
643 "`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
644 "`echo 'STAGE1_CFLAGS=$(STAGE1_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
645 "`echo 'BOOT_CFLAGS=$(BOOT_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
646 "`echo 'BOOT_ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
252b5132 647
f0b24077 648GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS)
252b5132 649
dd12c3a8 650.PHONY: configure-host
b813574b 651configure-host: \
dd12c3a8
NN
652 maybe-configure-ash \
653 maybe-configure-autoconf \
654 maybe-configure-automake \
655 maybe-configure-bash \
656 maybe-configure-bfd \
657 maybe-configure-opcodes \
658 maybe-configure-binutils \
659 maybe-configure-bison \
660 maybe-configure-byacc \
661 maybe-configure-bzip2 \
662 maybe-configure-dejagnu \
663 maybe-configure-diff \
664 maybe-configure-dosutils \
665 maybe-configure-etc \
666 maybe-configure-fastjar \
667 maybe-configure-fileutils \
668 maybe-configure-findutils \
669 maybe-configure-find \
670 maybe-configure-flex \
671 maybe-configure-gas \
b813574b 672 maybe-configure-gcc \
dd12c3a8
NN
673 maybe-configure-gawk \
674 maybe-configure-gettext \
675 maybe-configure-gnuserv \
676 maybe-configure-gprof \
677 maybe-configure-gzip \
678 maybe-configure-hello \
679 maybe-configure-indent \
680 maybe-configure-intl \
681 maybe-configure-tcl \
682 maybe-configure-itcl \
683 maybe-configure-ld \
04cf1b77 684 maybe-configure-libcpp \
dd12c3a8
NN
685 maybe-configure-libgui \
686 maybe-configure-libiberty \
687 maybe-configure-libtool \
688 maybe-configure-m4 \
689 maybe-configure-make \
690 maybe-configure-mmalloc \
691 maybe-configure-patch \
692 maybe-configure-perl \
693 maybe-configure-prms \
694 maybe-configure-rcs \
695 maybe-configure-readline \
696 maybe-configure-release \
697 maybe-configure-recode \
698 maybe-configure-sed \
699 maybe-configure-send-pr \
700 maybe-configure-shellutils \
701 maybe-configure-sid \
702 maybe-configure-sim \
703 maybe-configure-tar \
704 maybe-configure-texinfo \
705 maybe-configure-textutils \
706 maybe-configure-time \
707 maybe-configure-uudecode \
708 maybe-configure-wdiff \
709 maybe-configure-zip \
710 maybe-configure-zlib \
711 maybe-configure-gdb \
712 maybe-configure-expect \
713 maybe-configure-guile \
714 maybe-configure-tk \
dd12c3a8
NN
715 maybe-configure-libtermcap \
716 maybe-configure-utils
717.PHONY: configure-target
718configure-target: \
719 maybe-configure-target-libstdc++-v3 \
4b1cb4fe 720 maybe-configure-target-libmudflap \
dd12c3a8 721 maybe-configure-target-newlib \
4b1cb4fe 722 maybe-configure-target-libgfortran \
dd12c3a8
NN
723 maybe-configure-target-libobjc \
724 maybe-configure-target-libtermcap \
725 maybe-configure-target-winsup \
726 maybe-configure-target-libgloss \
727 maybe-configure-target-libiberty \
728 maybe-configure-target-gperf \
729 maybe-configure-target-examples \
730 maybe-configure-target-libffi \
731 maybe-configure-target-libjava \
732 maybe-configure-target-zlib \
733 maybe-configure-target-boehm-gc \
734 maybe-configure-target-qthreads \
a2592b1b
DD
735 maybe-configure-target-rda \
736 maybe-configure-target-libada
252b5132 737
319cab08
PB
738# The target built for a native non-bootstrap build.
739.PHONY: all
72b2455a 740all: unstage all-host all-target stage
6a9cf61e
PB
741
742.PHONY: all-build
743all-build: \
744 maybe-all-build-libiberty \
6a9cf61e
PB
745 maybe-all-build-bison \
746 maybe-all-build-byacc \
747 maybe-all-build-flex \
748 maybe-all-build-m4 \
ee025550
PB
749 maybe-all-build-texinfo \
750 maybe-all-build-fixincludes
dd12c3a8 751.PHONY: all-host
b813574b 752all-host: \
dd12c3a8
NN
753 maybe-all-ash \
754 maybe-all-autoconf \
755 maybe-all-automake \
756 maybe-all-bash \
757 maybe-all-bfd \
758 maybe-all-opcodes \
759 maybe-all-binutils \
760 maybe-all-bison \
761 maybe-all-byacc \
762 maybe-all-bzip2 \
763 maybe-all-dejagnu \
764 maybe-all-diff \
765 maybe-all-dosutils \
766 maybe-all-etc \
767 maybe-all-fastjar \
768 maybe-all-fileutils \
769 maybe-all-findutils \
770 maybe-all-find \
771 maybe-all-flex \
772 maybe-all-gas \
b813574b 773 maybe-all-gcc \
dd12c3a8
NN
774 maybe-all-gawk \
775 maybe-all-gettext \
776 maybe-all-gnuserv \
777 maybe-all-gprof \
778 maybe-all-gzip \
779 maybe-all-hello \
780 maybe-all-indent \
781 maybe-all-intl \
782 maybe-all-tcl \
783 maybe-all-itcl \
784 maybe-all-ld \
04cf1b77 785 maybe-all-libcpp \
dd12c3a8
NN
786 maybe-all-libgui \
787 maybe-all-libiberty \
788 maybe-all-libtool \
789 maybe-all-m4 \
790 maybe-all-make \
791 maybe-all-mmalloc \
792 maybe-all-patch \
793 maybe-all-perl \
794 maybe-all-prms \
795 maybe-all-rcs \
796 maybe-all-readline \
797 maybe-all-release \
798 maybe-all-recode \
799 maybe-all-sed \
800 maybe-all-send-pr \
801 maybe-all-shellutils \
802 maybe-all-sid \
803 maybe-all-sim \
804 maybe-all-tar \
805 maybe-all-texinfo \
806 maybe-all-textutils \
807 maybe-all-time \
808 maybe-all-uudecode \
809 maybe-all-wdiff \
810 maybe-all-zip \
811 maybe-all-zlib \
812 maybe-all-gdb \
813 maybe-all-expect \
814 maybe-all-guile \
815 maybe-all-tk \
dd12c3a8
NN
816 maybe-all-libtermcap \
817 maybe-all-utils
818.PHONY: all-target
819all-target: \
820 maybe-all-target-libstdc++-v3 \
4b1cb4fe 821 maybe-all-target-libmudflap \
dd12c3a8 822 maybe-all-target-newlib \
4b1cb4fe 823 maybe-all-target-libgfortran \
dd12c3a8
NN
824 maybe-all-target-libobjc \
825 maybe-all-target-libtermcap \
826 maybe-all-target-winsup \
827 maybe-all-target-libgloss \
828 maybe-all-target-libiberty \
829 maybe-all-target-gperf \
830 maybe-all-target-examples \
831 maybe-all-target-libffi \
832 maybe-all-target-libjava \
833 maybe-all-target-zlib \
834 maybe-all-target-boehm-gc \
835 maybe-all-target-qthreads \
a2592b1b
DD
836 maybe-all-target-rda \
837 maybe-all-target-libada
252b5132
RH
838
839# Do a target for all the subdirectories. A ``make do-X'' will do a
840# ``make X'' in all subdirectories (because, in general, there is a
841# dependency (below) of X upon do-X, a ``make X'' will also do this,
842# but it may do additional work as well).
e393202e 843
2a4cbe27 844.PHONY: do-info
b813574b 845do-info: unstage info-host info-target stage
e393202e 846
2a4cbe27 847.PHONY: info-host
b813574b 848info-host: \
2a4cbe27
NN
849 maybe-info-ash \
850 maybe-info-autoconf \
851 maybe-info-automake \
852 maybe-info-bash \
853 maybe-info-bfd \
854 maybe-info-opcodes \
855 maybe-info-binutils \
856 maybe-info-bison \
857 maybe-info-byacc \
858 maybe-info-bzip2 \
859 maybe-info-dejagnu \
860 maybe-info-diff \
861 maybe-info-dosutils \
862 maybe-info-etc \
863 maybe-info-fastjar \
864 maybe-info-fileutils \
865 maybe-info-findutils \
866 maybe-info-find \
867 maybe-info-flex \
868 maybe-info-gas \
b813574b 869 maybe-info-gcc \
2a4cbe27
NN
870 maybe-info-gawk \
871 maybe-info-gettext \
872 maybe-info-gnuserv \
873 maybe-info-gprof \
874 maybe-info-gzip \
875 maybe-info-hello \
876 maybe-info-indent \
877 maybe-info-intl \
878 maybe-info-tcl \
879 maybe-info-itcl \
880 maybe-info-ld \
04cf1b77 881 maybe-info-libcpp \
2a4cbe27
NN
882 maybe-info-libgui \
883 maybe-info-libiberty \
884 maybe-info-libtool \
885 maybe-info-m4 \
886 maybe-info-make \
887 maybe-info-mmalloc \
888 maybe-info-patch \
889 maybe-info-perl \
890 maybe-info-prms \
891 maybe-info-rcs \
892 maybe-info-readline \
893 maybe-info-release \
894 maybe-info-recode \
895 maybe-info-sed \
896 maybe-info-send-pr \
897 maybe-info-shellutils \
898 maybe-info-sid \
899 maybe-info-sim \
900 maybe-info-tar \
901 maybe-info-texinfo \
902 maybe-info-textutils \
903 maybe-info-time \
904 maybe-info-uudecode \
905 maybe-info-wdiff \
906 maybe-info-zip \
907 maybe-info-zlib \
908 maybe-info-gdb \
909 maybe-info-expect \
910 maybe-info-guile \
911 maybe-info-tk \
2a4cbe27
NN
912 maybe-info-libtermcap \
913 maybe-info-utils
252b5132 914
2a4cbe27
NN
915.PHONY: info-target
916info-target: \
917 maybe-info-target-libstdc++-v3 \
4b1cb4fe 918 maybe-info-target-libmudflap \
2a4cbe27 919 maybe-info-target-newlib \
4b1cb4fe 920 maybe-info-target-libgfortran \
2a4cbe27
NN
921 maybe-info-target-libobjc \
922 maybe-info-target-libtermcap \
923 maybe-info-target-winsup \
924 maybe-info-target-libgloss \
925 maybe-info-target-libiberty \
926 maybe-info-target-gperf \
927 maybe-info-target-examples \
928 maybe-info-target-libffi \
929 maybe-info-target-libjava \
930 maybe-info-target-zlib \
931 maybe-info-target-boehm-gc \
932 maybe-info-target-qthreads \
a2592b1b
DD
933 maybe-info-target-rda \
934 maybe-info-target-libada
252b5132 935
4fa63067 936.PHONY: do-dvi
b813574b 937do-dvi: unstage dvi-host dvi-target stage
2a4cbe27 938
4fa63067 939.PHONY: dvi-host
b813574b 940dvi-host: \
4fa63067
NN
941 maybe-dvi-ash \
942 maybe-dvi-autoconf \
943 maybe-dvi-automake \
944 maybe-dvi-bash \
945 maybe-dvi-bfd \
946 maybe-dvi-opcodes \
947 maybe-dvi-binutils \
948 maybe-dvi-bison \
949 maybe-dvi-byacc \
950 maybe-dvi-bzip2 \
951 maybe-dvi-dejagnu \
952 maybe-dvi-diff \
953 maybe-dvi-dosutils \
954 maybe-dvi-etc \
955 maybe-dvi-fastjar \
956 maybe-dvi-fileutils \
957 maybe-dvi-findutils \
958 maybe-dvi-find \
959 maybe-dvi-flex \
960 maybe-dvi-gas \
b813574b 961 maybe-dvi-gcc \
4fa63067
NN
962 maybe-dvi-gawk \
963 maybe-dvi-gettext \
964 maybe-dvi-gnuserv \
965 maybe-dvi-gprof \
966 maybe-dvi-gzip \
967 maybe-dvi-hello \
968 maybe-dvi-indent \
969 maybe-dvi-intl \
970 maybe-dvi-tcl \
971 maybe-dvi-itcl \
972 maybe-dvi-ld \
04cf1b77 973 maybe-dvi-libcpp \
4fa63067
NN
974 maybe-dvi-libgui \
975 maybe-dvi-libiberty \
976 maybe-dvi-libtool \
977 maybe-dvi-m4 \
978 maybe-dvi-make \
979 maybe-dvi-mmalloc \
980 maybe-dvi-patch \
981 maybe-dvi-perl \
982 maybe-dvi-prms \
983 maybe-dvi-rcs \
984 maybe-dvi-readline \
985 maybe-dvi-release \
986 maybe-dvi-recode \
987 maybe-dvi-sed \
988 maybe-dvi-send-pr \
989 maybe-dvi-shellutils \
990 maybe-dvi-sid \
991 maybe-dvi-sim \
992 maybe-dvi-tar \
993 maybe-dvi-texinfo \
994 maybe-dvi-textutils \
995 maybe-dvi-time \
996 maybe-dvi-uudecode \
997 maybe-dvi-wdiff \
998 maybe-dvi-zip \
999 maybe-dvi-zlib \
1000 maybe-dvi-gdb \
1001 maybe-dvi-expect \
1002 maybe-dvi-guile \
1003 maybe-dvi-tk \
4fa63067
NN
1004 maybe-dvi-libtermcap \
1005 maybe-dvi-utils
2a4cbe27 1006
4fa63067
NN
1007.PHONY: dvi-target
1008dvi-target: \
1009 maybe-dvi-target-libstdc++-v3 \
4b1cb4fe 1010 maybe-dvi-target-libmudflap \
4fa63067 1011 maybe-dvi-target-newlib \
4b1cb4fe 1012 maybe-dvi-target-libgfortran \
4fa63067
NN
1013 maybe-dvi-target-libobjc \
1014 maybe-dvi-target-libtermcap \
1015 maybe-dvi-target-winsup \
1016 maybe-dvi-target-libgloss \
1017 maybe-dvi-target-libiberty \
1018 maybe-dvi-target-gperf \
1019 maybe-dvi-target-examples \
1020 maybe-dvi-target-libffi \
1021 maybe-dvi-target-libjava \
1022 maybe-dvi-target-zlib \
1023 maybe-dvi-target-boehm-gc \
1024 maybe-dvi-target-qthreads \
1025 maybe-dvi-target-rda \
1026 maybe-dvi-target-libada
2a4cbe27 1027
4fa63067 1028.PHONY: do-TAGS
b813574b 1029do-TAGS: unstage TAGS-host TAGS-target stage
2a4cbe27 1030
4fa63067 1031.PHONY: TAGS-host
b813574b 1032TAGS-host: \
4fa63067
NN
1033 maybe-TAGS-ash \
1034 maybe-TAGS-autoconf \
1035 maybe-TAGS-automake \
1036 maybe-TAGS-bash \
1037 maybe-TAGS-bfd \
1038 maybe-TAGS-opcodes \
1039 maybe-TAGS-binutils \
1040 maybe-TAGS-bison \
1041 maybe-TAGS-byacc \
1042 maybe-TAGS-bzip2 \
1043 maybe-TAGS-dejagnu \
1044 maybe-TAGS-diff \
1045 maybe-TAGS-dosutils \
1046 maybe-TAGS-etc \
1047 maybe-TAGS-fastjar \
1048 maybe-TAGS-fileutils \
1049 maybe-TAGS-findutils \
1050 maybe-TAGS-find \
1051 maybe-TAGS-flex \
1052 maybe-TAGS-gas \
b813574b 1053 maybe-TAGS-gcc \
4fa63067
NN
1054 maybe-TAGS-gawk \
1055 maybe-TAGS-gettext \
1056 maybe-TAGS-gnuserv \
1057 maybe-TAGS-gprof \
1058 maybe-TAGS-gzip \
1059 maybe-TAGS-hello \
1060 maybe-TAGS-indent \
1061 maybe-TAGS-intl \
1062 maybe-TAGS-tcl \
1063 maybe-TAGS-itcl \
1064 maybe-TAGS-ld \
04cf1b77 1065 maybe-TAGS-libcpp \
4fa63067
NN
1066 maybe-TAGS-libgui \
1067 maybe-TAGS-libiberty \
1068 maybe-TAGS-libtool \
1069 maybe-TAGS-m4 \
1070 maybe-TAGS-make \
1071 maybe-TAGS-mmalloc \
1072 maybe-TAGS-patch \
1073 maybe-TAGS-perl \
1074 maybe-TAGS-prms \
1075 maybe-TAGS-rcs \
1076 maybe-TAGS-readline \
1077 maybe-TAGS-release \
1078 maybe-TAGS-recode \
1079 maybe-TAGS-sed \
1080 maybe-TAGS-send-pr \
1081 maybe-TAGS-shellutils \
1082 maybe-TAGS-sid \
1083 maybe-TAGS-sim \
1084 maybe-TAGS-tar \
1085 maybe-TAGS-texinfo \
1086 maybe-TAGS-textutils \
1087 maybe-TAGS-time \
1088 maybe-TAGS-uudecode \
1089 maybe-TAGS-wdiff \
1090 maybe-TAGS-zip \
1091 maybe-TAGS-zlib \
1092 maybe-TAGS-gdb \
1093 maybe-TAGS-expect \
1094 maybe-TAGS-guile \
1095 maybe-TAGS-tk \
4fa63067
NN
1096 maybe-TAGS-libtermcap \
1097 maybe-TAGS-utils
2a4cbe27 1098
4fa63067
NN
1099.PHONY: TAGS-target
1100TAGS-target: \
1101 maybe-TAGS-target-libstdc++-v3 \
4b1cb4fe 1102 maybe-TAGS-target-libmudflap \
4fa63067 1103 maybe-TAGS-target-newlib \
4b1cb4fe 1104 maybe-TAGS-target-libgfortran \
4fa63067
NN
1105 maybe-TAGS-target-libobjc \
1106 maybe-TAGS-target-libtermcap \
1107 maybe-TAGS-target-winsup \
1108 maybe-TAGS-target-libgloss \
1109 maybe-TAGS-target-libiberty \
1110 maybe-TAGS-target-gperf \
1111 maybe-TAGS-target-examples \
1112 maybe-TAGS-target-libffi \
1113 maybe-TAGS-target-libjava \
1114 maybe-TAGS-target-zlib \
1115 maybe-TAGS-target-boehm-gc \
1116 maybe-TAGS-target-qthreads \
1117 maybe-TAGS-target-rda \
1118 maybe-TAGS-target-libada
a2592b1b 1119
4fa63067 1120.PHONY: do-install-info
b813574b 1121do-install-info: unstage install-info-host install-info-target stage
a2592b1b 1122
4fa63067 1123.PHONY: install-info-host
b813574b 1124install-info-host: \
4fa63067
NN
1125 maybe-install-info-ash \
1126 maybe-install-info-autoconf \
1127 maybe-install-info-automake \
1128 maybe-install-info-bash \
1129 maybe-install-info-bfd \
1130 maybe-install-info-opcodes \
1131 maybe-install-info-binutils \
1132 maybe-install-info-bison \
1133 maybe-install-info-byacc \
1134 maybe-install-info-bzip2 \
1135 maybe-install-info-dejagnu \
1136 maybe-install-info-diff \
1137 maybe-install-info-dosutils \
1138 maybe-install-info-etc \
1139 maybe-install-info-fastjar \
1140 maybe-install-info-fileutils \
1141 maybe-install-info-findutils \
1142 maybe-install-info-find \
1143 maybe-install-info-flex \
1144 maybe-install-info-gas \
b813574b 1145 maybe-install-info-gcc \
4fa63067
NN
1146 maybe-install-info-gawk \
1147 maybe-install-info-gettext \
1148 maybe-install-info-gnuserv \
1149 maybe-install-info-gprof \
1150 maybe-install-info-gzip \
1151 maybe-install-info-hello \
1152 maybe-install-info-indent \
1153 maybe-install-info-intl \
1154 maybe-install-info-tcl \
1155 maybe-install-info-itcl \
1156 maybe-install-info-ld \
04cf1b77 1157 maybe-install-info-libcpp \
4fa63067
NN
1158 maybe-install-info-libgui \
1159 maybe-install-info-libiberty \
1160 maybe-install-info-libtool \
1161 maybe-install-info-m4 \
1162 maybe-install-info-make \
1163 maybe-install-info-mmalloc \
1164 maybe-install-info-patch \
1165 maybe-install-info-perl \
1166 maybe-install-info-prms \
1167 maybe-install-info-rcs \
1168 maybe-install-info-readline \
1169 maybe-install-info-release \
1170 maybe-install-info-recode \
1171 maybe-install-info-sed \
1172 maybe-install-info-send-pr \
1173 maybe-install-info-shellutils \
1174 maybe-install-info-sid \
1175 maybe-install-info-sim \
1176 maybe-install-info-tar \
1177 maybe-install-info-texinfo \
1178 maybe-install-info-textutils \
1179 maybe-install-info-time \
1180 maybe-install-info-uudecode \
1181 maybe-install-info-wdiff \
1182 maybe-install-info-zip \
1183 maybe-install-info-zlib \
1184 maybe-install-info-gdb \
1185 maybe-install-info-expect \
1186 maybe-install-info-guile \
1187 maybe-install-info-tk \
4fa63067
NN
1188 maybe-install-info-libtermcap \
1189 maybe-install-info-utils
a2592b1b 1190
4fa63067
NN
1191.PHONY: install-info-target
1192install-info-target: \
1193 maybe-install-info-target-libstdc++-v3 \
4b1cb4fe 1194 maybe-install-info-target-libmudflap \
4fa63067 1195 maybe-install-info-target-newlib \
4b1cb4fe 1196 maybe-install-info-target-libgfortran \
4fa63067
NN
1197 maybe-install-info-target-libobjc \
1198 maybe-install-info-target-libtermcap \
1199 maybe-install-info-target-winsup \
1200 maybe-install-info-target-libgloss \
1201 maybe-install-info-target-libiberty \
1202 maybe-install-info-target-gperf \
1203 maybe-install-info-target-examples \
1204 maybe-install-info-target-libffi \
1205 maybe-install-info-target-libjava \
1206 maybe-install-info-target-zlib \
1207 maybe-install-info-target-boehm-gc \
1208 maybe-install-info-target-qthreads \
1209 maybe-install-info-target-rda \
1210 maybe-install-info-target-libada
2a4cbe27
NN
1211
1212.PHONY: do-installcheck
b813574b 1213do-installcheck: unstage installcheck-host installcheck-target stage
2a4cbe27
NN
1214
1215.PHONY: installcheck-host
b813574b 1216installcheck-host: \
2a4cbe27
NN
1217 maybe-installcheck-ash \
1218 maybe-installcheck-autoconf \
1219 maybe-installcheck-automake \
1220 maybe-installcheck-bash \
1221 maybe-installcheck-bfd \
1222 maybe-installcheck-opcodes \
1223 maybe-installcheck-binutils \
1224 maybe-installcheck-bison \
1225 maybe-installcheck-byacc \
1226 maybe-installcheck-bzip2 \
1227 maybe-installcheck-dejagnu \
1228 maybe-installcheck-diff \
1229 maybe-installcheck-dosutils \
1230 maybe-installcheck-etc \
1231 maybe-installcheck-fastjar \
1232 maybe-installcheck-fileutils \
1233 maybe-installcheck-findutils \
1234 maybe-installcheck-find \
1235 maybe-installcheck-flex \
1236 maybe-installcheck-gas \
b813574b 1237 maybe-installcheck-gcc \
2a4cbe27
NN
1238 maybe-installcheck-gawk \
1239 maybe-installcheck-gettext \
1240 maybe-installcheck-gnuserv \
1241 maybe-installcheck-gprof \
1242 maybe-installcheck-gzip \
1243 maybe-installcheck-hello \
1244 maybe-installcheck-indent \
1245 maybe-installcheck-intl \
1246 maybe-installcheck-tcl \
1247 maybe-installcheck-itcl \
1248 maybe-installcheck-ld \
04cf1b77 1249 maybe-installcheck-libcpp \
2a4cbe27
NN
1250 maybe-installcheck-libgui \
1251 maybe-installcheck-libiberty \
1252 maybe-installcheck-libtool \
1253 maybe-installcheck-m4 \
1254 maybe-installcheck-make \
1255 maybe-installcheck-mmalloc \
1256 maybe-installcheck-patch \
1257 maybe-installcheck-perl \
1258 maybe-installcheck-prms \
1259 maybe-installcheck-rcs \
1260 maybe-installcheck-readline \
1261 maybe-installcheck-release \
1262 maybe-installcheck-recode \
1263 maybe-installcheck-sed \
1264 maybe-installcheck-send-pr \
1265 maybe-installcheck-shellutils \
1266 maybe-installcheck-sid \
1267 maybe-installcheck-sim \
1268 maybe-installcheck-tar \
1269 maybe-installcheck-texinfo \
1270 maybe-installcheck-textutils \
1271 maybe-installcheck-time \
1272 maybe-installcheck-uudecode \
1273 maybe-installcheck-wdiff \
1274 maybe-installcheck-zip \
1275 maybe-installcheck-zlib \
1276 maybe-installcheck-gdb \
1277 maybe-installcheck-expect \
1278 maybe-installcheck-guile \
1279 maybe-installcheck-tk \
2a4cbe27
NN
1280 maybe-installcheck-libtermcap \
1281 maybe-installcheck-utils
1282
1283.PHONY: installcheck-target
1284installcheck-target: \
1285 maybe-installcheck-target-libstdc++-v3 \
4b1cb4fe 1286 maybe-installcheck-target-libmudflap \
2a4cbe27 1287 maybe-installcheck-target-newlib \
4b1cb4fe 1288 maybe-installcheck-target-libgfortran \
2a4cbe27
NN
1289 maybe-installcheck-target-libobjc \
1290 maybe-installcheck-target-libtermcap \
1291 maybe-installcheck-target-winsup \
1292 maybe-installcheck-target-libgloss \
1293 maybe-installcheck-target-libiberty \
1294 maybe-installcheck-target-gperf \
1295 maybe-installcheck-target-examples \
1296 maybe-installcheck-target-libffi \
1297 maybe-installcheck-target-libjava \
1298 maybe-installcheck-target-zlib \
1299 maybe-installcheck-target-boehm-gc \
1300 maybe-installcheck-target-qthreads \
a2592b1b
DD
1301 maybe-installcheck-target-rda \
1302 maybe-installcheck-target-libada
2a4cbe27 1303
4fa63067 1304.PHONY: do-mostlyclean
b813574b 1305do-mostlyclean: unstage mostlyclean-host mostlyclean-target stage
2a4cbe27 1306
4fa63067 1307.PHONY: mostlyclean-host
b813574b 1308mostlyclean-host: \
4fa63067
NN
1309 maybe-mostlyclean-ash \
1310 maybe-mostlyclean-autoconf \
1311 maybe-mostlyclean-automake \
1312 maybe-mostlyclean-bash \
1313 maybe-mostlyclean-bfd \
1314 maybe-mostlyclean-opcodes \
1315 maybe-mostlyclean-binutils \
1316 maybe-mostlyclean-bison \
1317 maybe-mostlyclean-byacc \
1318 maybe-mostlyclean-bzip2 \
1319 maybe-mostlyclean-dejagnu \
1320 maybe-mostlyclean-diff \
1321 maybe-mostlyclean-dosutils \
1322 maybe-mostlyclean-etc \
1323 maybe-mostlyclean-fastjar \
1324 maybe-mostlyclean-fileutils \
1325 maybe-mostlyclean-findutils \
1326 maybe-mostlyclean-find \
1327 maybe-mostlyclean-flex \
1328 maybe-mostlyclean-gas \
b813574b 1329 maybe-mostlyclean-gcc \
4fa63067
NN
1330 maybe-mostlyclean-gawk \
1331 maybe-mostlyclean-gettext \
1332 maybe-mostlyclean-gnuserv \
1333 maybe-mostlyclean-gprof \
1334 maybe-mostlyclean-gzip \
1335 maybe-mostlyclean-hello \
1336 maybe-mostlyclean-indent \
1337 maybe-mostlyclean-intl \
1338 maybe-mostlyclean-tcl \
1339 maybe-mostlyclean-itcl \
1340 maybe-mostlyclean-ld \
04cf1b77 1341 maybe-mostlyclean-libcpp \
4fa63067
NN
1342 maybe-mostlyclean-libgui \
1343 maybe-mostlyclean-libiberty \
1344 maybe-mostlyclean-libtool \
1345 maybe-mostlyclean-m4 \
1346 maybe-mostlyclean-make \
1347 maybe-mostlyclean-mmalloc \
1348 maybe-mostlyclean-patch \
1349 maybe-mostlyclean-perl \
1350 maybe-mostlyclean-prms \
1351 maybe-mostlyclean-rcs \
1352 maybe-mostlyclean-readline \
1353 maybe-mostlyclean-release \
1354 maybe-mostlyclean-recode \
1355 maybe-mostlyclean-sed \
1356 maybe-mostlyclean-send-pr \
1357 maybe-mostlyclean-shellutils \
1358 maybe-mostlyclean-sid \
1359 maybe-mostlyclean-sim \
1360 maybe-mostlyclean-tar \
1361 maybe-mostlyclean-texinfo \
1362 maybe-mostlyclean-textutils \
1363 maybe-mostlyclean-time \
1364 maybe-mostlyclean-uudecode \
1365 maybe-mostlyclean-wdiff \
1366 maybe-mostlyclean-zip \
1367 maybe-mostlyclean-zlib \
1368 maybe-mostlyclean-gdb \
1369 maybe-mostlyclean-expect \
1370 maybe-mostlyclean-guile \
1371 maybe-mostlyclean-tk \
4fa63067
NN
1372 maybe-mostlyclean-libtermcap \
1373 maybe-mostlyclean-utils
2a4cbe27 1374
4fa63067
NN
1375.PHONY: mostlyclean-target
1376mostlyclean-target: \
1377 maybe-mostlyclean-target-libstdc++-v3 \
4b1cb4fe 1378 maybe-mostlyclean-target-libmudflap \
4fa63067 1379 maybe-mostlyclean-target-newlib \
4b1cb4fe 1380 maybe-mostlyclean-target-libgfortran \
4fa63067
NN
1381 maybe-mostlyclean-target-libobjc \
1382 maybe-mostlyclean-target-libtermcap \
1383 maybe-mostlyclean-target-winsup \
1384 maybe-mostlyclean-target-libgloss \
1385 maybe-mostlyclean-target-libiberty \
1386 maybe-mostlyclean-target-gperf \
1387 maybe-mostlyclean-target-examples \
1388 maybe-mostlyclean-target-libffi \
1389 maybe-mostlyclean-target-libjava \
1390 maybe-mostlyclean-target-zlib \
1391 maybe-mostlyclean-target-boehm-gc \
1392 maybe-mostlyclean-target-qthreads \
1393 maybe-mostlyclean-target-rda \
1394 maybe-mostlyclean-target-libada
2a4cbe27 1395
4fa63067 1396.PHONY: do-clean
b813574b 1397do-clean: unstage clean-host clean-target stage
2a4cbe27 1398
4fa63067 1399.PHONY: clean-host
b813574b 1400clean-host: \
4fa63067
NN
1401 maybe-clean-ash \
1402 maybe-clean-autoconf \
1403 maybe-clean-automake \
1404 maybe-clean-bash \
1405 maybe-clean-bfd \
1406 maybe-clean-opcodes \
1407 maybe-clean-binutils \
1408 maybe-clean-bison \
1409 maybe-clean-byacc \
1410 maybe-clean-bzip2 \
1411 maybe-clean-dejagnu \
1412 maybe-clean-diff \
1413 maybe-clean-dosutils \
1414 maybe-clean-etc \
1415 maybe-clean-fastjar \
1416 maybe-clean-fileutils \
1417 maybe-clean-findutils \
1418 maybe-clean-find \
1419 maybe-clean-flex \
1420 maybe-clean-gas \
b813574b 1421 maybe-clean-gcc \
4fa63067
NN
1422 maybe-clean-gawk \
1423 maybe-clean-gettext \
1424 maybe-clean-gnuserv \
1425 maybe-clean-gprof \
1426 maybe-clean-gzip \
1427 maybe-clean-hello \
1428 maybe-clean-indent \
1429 maybe-clean-intl \
1430 maybe-clean-tcl \
1431 maybe-clean-itcl \
1432 maybe-clean-ld \
04cf1b77 1433 maybe-clean-libcpp \
4fa63067
NN
1434 maybe-clean-libgui \
1435 maybe-clean-libiberty \
1436 maybe-clean-libtool \
1437 maybe-clean-m4 \
1438 maybe-clean-make \
1439 maybe-clean-mmalloc \
1440 maybe-clean-patch \
1441 maybe-clean-perl \
1442 maybe-clean-prms \
1443 maybe-clean-rcs \
1444 maybe-clean-readline \
1445 maybe-clean-release \
1446 maybe-clean-recode \
1447 maybe-clean-sed \
1448 maybe-clean-send-pr \
1449 maybe-clean-shellutils \
1450 maybe-clean-sid \
1451 maybe-clean-sim \
1452 maybe-clean-tar \
1453 maybe-clean-texinfo \
1454 maybe-clean-textutils \
1455 maybe-clean-time \
1456 maybe-clean-uudecode \
1457 maybe-clean-wdiff \
1458 maybe-clean-zip \
1459 maybe-clean-zlib \
1460 maybe-clean-gdb \
1461 maybe-clean-expect \
1462 maybe-clean-guile \
1463 maybe-clean-tk \
4fa63067
NN
1464 maybe-clean-libtermcap \
1465 maybe-clean-utils
2a4cbe27 1466
4fa63067
NN
1467.PHONY: clean-target
1468clean-target: \
1469 maybe-clean-target-libstdc++-v3 \
4b1cb4fe 1470 maybe-clean-target-libmudflap \
4fa63067 1471 maybe-clean-target-newlib \
4b1cb4fe 1472 maybe-clean-target-libgfortran \
4fa63067
NN
1473 maybe-clean-target-libobjc \
1474 maybe-clean-target-libtermcap \
1475 maybe-clean-target-winsup \
1476 maybe-clean-target-libgloss \
1477 maybe-clean-target-libiberty \
1478 maybe-clean-target-gperf \
1479 maybe-clean-target-examples \
1480 maybe-clean-target-libffi \
1481 maybe-clean-target-libjava \
1482 maybe-clean-target-zlib \
1483 maybe-clean-target-boehm-gc \
1484 maybe-clean-target-qthreads \
1485 maybe-clean-target-rda \
1486 maybe-clean-target-libada
2a4cbe27 1487
4fa63067 1488.PHONY: do-distclean
b813574b 1489do-distclean: unstage distclean-host distclean-target stage
2a4cbe27 1490
4fa63067 1491.PHONY: distclean-host
b813574b 1492distclean-host: \
4fa63067
NN
1493 maybe-distclean-ash \
1494 maybe-distclean-autoconf \
1495 maybe-distclean-automake \
1496 maybe-distclean-bash \
1497 maybe-distclean-bfd \
1498 maybe-distclean-opcodes \
1499 maybe-distclean-binutils \
1500 maybe-distclean-bison \
1501 maybe-distclean-byacc \
1502 maybe-distclean-bzip2 \
1503 maybe-distclean-dejagnu \
1504 maybe-distclean-diff \
1505 maybe-distclean-dosutils \
1506 maybe-distclean-etc \
1507 maybe-distclean-fastjar \
1508 maybe-distclean-fileutils \
1509 maybe-distclean-findutils \
1510 maybe-distclean-find \
1511 maybe-distclean-flex \
1512 maybe-distclean-gas \
b813574b 1513 maybe-distclean-gcc \
4fa63067
NN
1514 maybe-distclean-gawk \
1515 maybe-distclean-gettext \
1516 maybe-distclean-gnuserv \
1517 maybe-distclean-gprof \
1518 maybe-distclean-gzip \
1519 maybe-distclean-hello \
1520 maybe-distclean-indent \
1521 maybe-distclean-intl \
1522 maybe-distclean-tcl \
1523 maybe-distclean-itcl \
1524 maybe-distclean-ld \
04cf1b77 1525 maybe-distclean-libcpp \
4fa63067
NN
1526 maybe-distclean-libgui \
1527 maybe-distclean-libiberty \
1528 maybe-distclean-libtool \
1529 maybe-distclean-m4 \
1530 maybe-distclean-make \
1531 maybe-distclean-mmalloc \
1532 maybe-distclean-patch \
1533 maybe-distclean-perl \
1534 maybe-distclean-prms \
1535 maybe-distclean-rcs \
1536 maybe-distclean-readline \
1537 maybe-distclean-release \
1538 maybe-distclean-recode \
1539 maybe-distclean-sed \
1540 maybe-distclean-send-pr \
1541 maybe-distclean-shellutils \
1542 maybe-distclean-sid \
1543 maybe-distclean-sim \
1544 maybe-distclean-tar \
1545 maybe-distclean-texinfo \
1546 maybe-distclean-textutils \
1547 maybe-distclean-time \
1548 maybe-distclean-uudecode \
1549 maybe-distclean-wdiff \
1550 maybe-distclean-zip \
1551 maybe-distclean-zlib \
1552 maybe-distclean-gdb \
1553 maybe-distclean-expect \
1554 maybe-distclean-guile \
1555 maybe-distclean-tk \
4fa63067
NN
1556 maybe-distclean-libtermcap \
1557 maybe-distclean-utils
2a4cbe27 1558
4fa63067
NN
1559.PHONY: distclean-target
1560distclean-target: \
1561 maybe-distclean-target-libstdc++-v3 \
4b1cb4fe 1562 maybe-distclean-target-libmudflap \
4fa63067 1563 maybe-distclean-target-newlib \
4b1cb4fe 1564 maybe-distclean-target-libgfortran \
4fa63067
NN
1565 maybe-distclean-target-libobjc \
1566 maybe-distclean-target-libtermcap \
1567 maybe-distclean-target-winsup \
1568 maybe-distclean-target-libgloss \
1569 maybe-distclean-target-libiberty \
1570 maybe-distclean-target-gperf \
1571 maybe-distclean-target-examples \
1572 maybe-distclean-target-libffi \
1573 maybe-distclean-target-libjava \
1574 maybe-distclean-target-zlib \
1575 maybe-distclean-target-boehm-gc \
1576 maybe-distclean-target-qthreads \
1577 maybe-distclean-target-rda \
1578 maybe-distclean-target-libada
2a4cbe27 1579
4fa63067 1580.PHONY: do-maintainer-clean
b813574b 1581do-maintainer-clean: unstage maintainer-clean-host maintainer-clean-target stage
2a4cbe27 1582
4fa63067 1583.PHONY: maintainer-clean-host
b813574b 1584maintainer-clean-host: \
4fa63067
NN
1585 maybe-maintainer-clean-ash \
1586 maybe-maintainer-clean-autoconf \
1587 maybe-maintainer-clean-automake \
1588 maybe-maintainer-clean-bash \
1589 maybe-maintainer-clean-bfd \
1590 maybe-maintainer-clean-opcodes \
1591 maybe-maintainer-clean-binutils \
1592 maybe-maintainer-clean-bison \
1593 maybe-maintainer-clean-byacc \
1594 maybe-maintainer-clean-bzip2 \
1595 maybe-maintainer-clean-dejagnu \
1596 maybe-maintainer-clean-diff \
1597 maybe-maintainer-clean-dosutils \
1598 maybe-maintainer-clean-etc \
1599 maybe-maintainer-clean-fastjar \
1600 maybe-maintainer-clean-fileutils \
1601 maybe-maintainer-clean-findutils \
1602 maybe-maintainer-clean-find \
1603 maybe-maintainer-clean-flex \
1604 maybe-maintainer-clean-gas \
b813574b 1605 maybe-maintainer-clean-gcc \
4fa63067
NN
1606 maybe-maintainer-clean-gawk \
1607 maybe-maintainer-clean-gettext \
1608 maybe-maintainer-clean-gnuserv \
1609 maybe-maintainer-clean-gprof \
1610 maybe-maintainer-clean-gzip \
1611 maybe-maintainer-clean-hello \
1612 maybe-maintainer-clean-indent \
1613 maybe-maintainer-clean-intl \
1614 maybe-maintainer-clean-tcl \
1615 maybe-maintainer-clean-itcl \
1616 maybe-maintainer-clean-ld \
04cf1b77 1617 maybe-maintainer-clean-libcpp \
4fa63067
NN
1618 maybe-maintainer-clean-libgui \
1619 maybe-maintainer-clean-libiberty \
1620 maybe-maintainer-clean-libtool \
1621 maybe-maintainer-clean-m4 \
1622 maybe-maintainer-clean-make \
1623 maybe-maintainer-clean-mmalloc \
1624 maybe-maintainer-clean-patch \
1625 maybe-maintainer-clean-perl \
1626 maybe-maintainer-clean-prms \
1627 maybe-maintainer-clean-rcs \
1628 maybe-maintainer-clean-readline \
1629 maybe-maintainer-clean-release \
1630 maybe-maintainer-clean-recode \
1631 maybe-maintainer-clean-sed \
1632 maybe-maintainer-clean-send-pr \
1633 maybe-maintainer-clean-shellutils \
1634 maybe-maintainer-clean-sid \
1635 maybe-maintainer-clean-sim \
1636 maybe-maintainer-clean-tar \
1637 maybe-maintainer-clean-texinfo \
1638 maybe-maintainer-clean-textutils \
1639 maybe-maintainer-clean-time \
1640 maybe-maintainer-clean-uudecode \
1641 maybe-maintainer-clean-wdiff \
1642 maybe-maintainer-clean-zip \
1643 maybe-maintainer-clean-zlib \
1644 maybe-maintainer-clean-gdb \
1645 maybe-maintainer-clean-expect \
1646 maybe-maintainer-clean-guile \
1647 maybe-maintainer-clean-tk \
4fa63067
NN
1648 maybe-maintainer-clean-libtermcap \
1649 maybe-maintainer-clean-utils
2a4cbe27 1650
4fa63067
NN
1651.PHONY: maintainer-clean-target
1652maintainer-clean-target: \
1653 maybe-maintainer-clean-target-libstdc++-v3 \
4b1cb4fe 1654 maybe-maintainer-clean-target-libmudflap \
4fa63067 1655 maybe-maintainer-clean-target-newlib \
4b1cb4fe 1656 maybe-maintainer-clean-target-libgfortran \
4fa63067
NN
1657 maybe-maintainer-clean-target-libobjc \
1658 maybe-maintainer-clean-target-libtermcap \
1659 maybe-maintainer-clean-target-winsup \
1660 maybe-maintainer-clean-target-libgloss \
1661 maybe-maintainer-clean-target-libiberty \
1662 maybe-maintainer-clean-target-gperf \
1663 maybe-maintainer-clean-target-examples \
1664 maybe-maintainer-clean-target-libffi \
1665 maybe-maintainer-clean-target-libjava \
1666 maybe-maintainer-clean-target-zlib \
1667 maybe-maintainer-clean-target-boehm-gc \
1668 maybe-maintainer-clean-target-qthreads \
1669 maybe-maintainer-clean-target-rda \
1670 maybe-maintainer-clean-target-libada
2a4cbe27 1671
2a4cbe27 1672
4fa63067 1673# Here are the targets which correspond to the do-X targets.
2a4cbe27 1674
4fa63067
NN
1675.PHONY: info installcheck dvi install-info
1676.PHONY: clean distclean mostlyclean maintainer-clean realclean
1677.PHONY: local-clean local-distclean local-maintainer-clean
1678info: do-info
1679installcheck: do-installcheck
1680dvi: do-dvi
2a4cbe27 1681
4fa63067
NN
1682# Make sure makeinfo is built before we do a `make info', if we're
1683# in fact building texinfo.
1684do-info: maybe-all-texinfo
2a4cbe27 1685
4fa63067 1686install-info: do-install-info dir.info
b40e3958 1687 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fa63067
NN
1688 if [ -f dir.info ] ; then \
1689 $(INSTALL_DATA) dir.info $(DESTDIR)$(infodir)/dir.info ; \
1690 else true ; fi
2a4cbe27 1691
4fa63067
NN
1692local-clean:
1693 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
2a4cbe27 1694
4fa63067
NN
1695local-distclean:
1696 -rm -f Makefile config.status config.cache mh-frag mt-frag
1697 -rm -f multilib.out multilib.tmp maybedep.tmp serdep.tmp
1698 -if [ "$(TARGET_SUBDIR)" != "." ]; then \
1699 rm -rf $(TARGET_SUBDIR); \
1700 else true; fi
1701 -rm -rf $(BUILD_SUBDIR)
1702 -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
1703 -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
1704 -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
1705 -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
1706 -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
2a4cbe27 1707
4fa63067
NN
1708local-maintainer-clean:
1709 @echo "This command is intended for maintainers to use;"
1710 @echo "it deletes files that may require special tools to rebuild."
2a4cbe27 1711
4fa63067
NN
1712clean: do-clean local-clean
1713mostlyclean: do-mostlyclean local-clean
1714distclean: do-distclean local-clean local-distclean
1715maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
1716maintainer-clean: local-distclean
1717realclean: maintainer-clean
2a4cbe27 1718
4fa63067
NN
1719# Extra dependency for clean-target, owing to the mixed nature of gcc
1720clean-target: clean-target-libgcc
1721clean-target-libgcc:
1722 test ! -d gcc/libgcc || \
1723 (cd gcc/libgcc && find . -type d -print) | \
1724 while read d; do rm -f gcc/$$d/libgcc.a || : ; done
1725 -rm -rf gcc/libgcc
2a4cbe27 1726
4fa63067 1727# Check target.
2a4cbe27 1728
4fa63067
NN
1729.PHONY: check do-check
1730check: do-check
2a4cbe27 1731
4fa63067 1732# Only include modules actually being configured and built.
b813574b 1733do-check: unstage \
4fa63067
NN
1734 maybe-check-ash \
1735 maybe-check-autoconf \
1736 maybe-check-automake \
1737 maybe-check-bash \
1738 maybe-check-bfd \
1739 maybe-check-opcodes \
1740 maybe-check-binutils \
1741 maybe-check-bison \
1742 maybe-check-byacc \
1743 maybe-check-bzip2 \
1744 maybe-check-dejagnu \
1745 maybe-check-diff \
1746 maybe-check-dosutils \
1747 maybe-check-etc \
1748 maybe-check-fastjar \
1749 maybe-check-fileutils \
1750 maybe-check-findutils \
1751 maybe-check-find \
1752 maybe-check-flex \
1753 maybe-check-gas \
b813574b 1754 maybe-check-gcc \
4fa63067
NN
1755 maybe-check-gawk \
1756 maybe-check-gettext \
1757 maybe-check-gnuserv \
1758 maybe-check-gprof \
1759 maybe-check-gzip \
1760 maybe-check-hello \
1761 maybe-check-indent \
1762 maybe-check-intl \
1763 maybe-check-tcl \
1764 maybe-check-itcl \
1765 maybe-check-ld \
04cf1b77 1766 maybe-check-libcpp \
4fa63067
NN
1767 maybe-check-libgui \
1768 maybe-check-libiberty \
1769 maybe-check-libtool \
1770 maybe-check-m4 \
1771 maybe-check-make \
1772 maybe-check-mmalloc \
1773 maybe-check-patch \
1774 maybe-check-perl \
1775 maybe-check-prms \
1776 maybe-check-rcs \
1777 maybe-check-readline \
1778 maybe-check-release \
1779 maybe-check-recode \
1780 maybe-check-sed \
1781 maybe-check-send-pr \
1782 maybe-check-shellutils \
1783 maybe-check-sid \
1784 maybe-check-sim \
1785 maybe-check-tar \
1786 maybe-check-texinfo \
1787 maybe-check-textutils \
1788 maybe-check-time \
1789 maybe-check-uudecode \
1790 maybe-check-wdiff \
1791 maybe-check-zip \
1792 maybe-check-zlib \
1793 maybe-check-gdb \
1794 maybe-check-expect \
1795 maybe-check-guile \
1796 maybe-check-tk \
4fa63067
NN
1797 maybe-check-libtermcap \
1798 maybe-check-utils \
1799 maybe-check-target-libstdc++-v3 \
4b1cb4fe 1800 maybe-check-target-libmudflap \
4fa63067 1801 maybe-check-target-newlib \
4b1cb4fe 1802 maybe-check-target-libgfortran \
4fa63067
NN
1803 maybe-check-target-libobjc \
1804 maybe-check-target-libtermcap \
1805 maybe-check-target-winsup \
1806 maybe-check-target-libgloss \
1807 maybe-check-target-libiberty \
1808 maybe-check-target-gperf \
1809 maybe-check-target-examples \
1810 maybe-check-target-libffi \
1811 maybe-check-target-libjava \
1812 maybe-check-target-zlib \
1813 maybe-check-target-boehm-gc \
1814 maybe-check-target-qthreads \
1815 maybe-check-target-rda \
b813574b 1816 maybe-check-target-libada stage
2a4cbe27 1817
4fa63067 1818# Automated reporting of test results.
2a4cbe27 1819
4fa63067
NN
1820warning.log: build.log
1821 $(srcdir)/contrib/warn_summary build.log > $@
2a4cbe27 1822
4fa63067
NN
1823mail-report.log:
1824 if test x'$(BOOT_CFLAGS)' != x''; then \
1825 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1826 fi; \
1827 $(srcdir)/contrib/test_summary -t >$@
1828 chmod +x $@
1829 echo If you really want to send e-mail, run ./$@ now
2a4cbe27 1830
4fa63067
NN
1831mail-report-with-warnings.log: warning.log
1832 if test x'$(BOOT_CFLAGS)' != x''; then \
1833 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1834 fi; \
1835 $(srcdir)/contrib/test_summary -t -i warning.log >$@
1836 chmod +x $@
1837 echo If you really want to send e-mail, run ./$@ now
2a4cbe27 1838
4fa63067 1839# Installation targets.
2a4cbe27 1840
4fa63067
NN
1841.PHONY: install uninstall
1842install: installdirs install-host install-target
2a4cbe27 1843
4fa63067
NN
1844.PHONY: install-host-nogcc
1845install-host-nogcc: \
1846 maybe-install-ash \
1847 maybe-install-autoconf \
1848 maybe-install-automake \
1849 maybe-install-bash \
1850 maybe-install-bfd \
1851 maybe-install-opcodes \
1852 maybe-install-binutils \
1853 maybe-install-bison \
1854 maybe-install-byacc \
1855 maybe-install-bzip2 \
1856 maybe-install-dejagnu \
1857 maybe-install-diff \
1858 maybe-install-dosutils \
1859 maybe-install-etc \
1860 maybe-install-fastjar \
1861 maybe-install-fileutils \
1862 maybe-install-findutils \
1863 maybe-install-find \
1864 maybe-install-flex \
1865 maybe-install-gas \
1866 maybe-install-gawk \
1867 maybe-install-gettext \
1868 maybe-install-gnuserv \
1869 maybe-install-gprof \
1870 maybe-install-gzip \
1871 maybe-install-hello \
1872 maybe-install-indent \
1873 maybe-install-intl \
1874 maybe-install-tcl \
1875 maybe-install-itcl \
1876 maybe-install-ld \
04cf1b77 1877 maybe-install-libcpp \
4fa63067
NN
1878 maybe-install-libgui \
1879 maybe-install-libiberty \
1880 maybe-install-libtool \
1881 maybe-install-m4 \
1882 maybe-install-make \
1883 maybe-install-mmalloc \
1884 maybe-install-patch \
1885 maybe-install-perl \
1886 maybe-install-prms \
1887 maybe-install-rcs \
1888 maybe-install-readline \
1889 maybe-install-release \
1890 maybe-install-recode \
1891 maybe-install-sed \
1892 maybe-install-send-pr \
1893 maybe-install-shellutils \
1894 maybe-install-sid \
1895 maybe-install-sim \
1896 maybe-install-tar \
1897 maybe-install-texinfo \
1898 maybe-install-textutils \
1899 maybe-install-time \
1900 maybe-install-uudecode \
1901 maybe-install-wdiff \
1902 maybe-install-zip \
1903 maybe-install-zlib \
1904 maybe-install-gdb \
1905 maybe-install-expect \
1906 maybe-install-guile \
1907 maybe-install-tk \
4fa63067
NN
1908 maybe-install-libtermcap \
1909 maybe-install-utils
2a4cbe27 1910
4fa63067 1911.PHONY: install-host
b813574b 1912install-host: \
4fa63067
NN
1913 maybe-install-ash \
1914 maybe-install-autoconf \
1915 maybe-install-automake \
1916 maybe-install-bash \
1917 maybe-install-bfd \
1918 maybe-install-opcodes \
1919 maybe-install-binutils \
1920 maybe-install-bison \
1921 maybe-install-byacc \
1922 maybe-install-bzip2 \
1923 maybe-install-dejagnu \
1924 maybe-install-diff \
1925 maybe-install-dosutils \
1926 maybe-install-etc \
1927 maybe-install-fastjar \
1928 maybe-install-fileutils \
1929 maybe-install-findutils \
1930 maybe-install-find \
1931 maybe-install-flex \
1932 maybe-install-gas \
b813574b 1933 maybe-install-gcc \
4fa63067
NN
1934 maybe-install-gawk \
1935 maybe-install-gettext \
1936 maybe-install-gnuserv \
1937 maybe-install-gprof \
1938 maybe-install-gzip \
1939 maybe-install-hello \
1940 maybe-install-indent \
1941 maybe-install-intl \
1942 maybe-install-tcl \
1943 maybe-install-itcl \
1944 maybe-install-ld \
04cf1b77 1945 maybe-install-libcpp \
4fa63067
NN
1946 maybe-install-libgui \
1947 maybe-install-libiberty \
1948 maybe-install-libtool \
1949 maybe-install-m4 \
1950 maybe-install-make \
1951 maybe-install-mmalloc \
1952 maybe-install-patch \
1953 maybe-install-perl \
1954 maybe-install-prms \
1955 maybe-install-rcs \
1956 maybe-install-readline \
1957 maybe-install-release \
1958 maybe-install-recode \
1959 maybe-install-sed \
1960 maybe-install-send-pr \
1961 maybe-install-shellutils \
1962 maybe-install-sid \
1963 maybe-install-sim \
1964 maybe-install-tar \
1965 maybe-install-texinfo \
1966 maybe-install-textutils \
1967 maybe-install-time \
1968 maybe-install-uudecode \
1969 maybe-install-wdiff \
1970 maybe-install-zip \
1971 maybe-install-zlib \
1972 maybe-install-gdb \
1973 maybe-install-expect \
1974 maybe-install-guile \
1975 maybe-install-tk \
4fa63067
NN
1976 maybe-install-libtermcap \
1977 maybe-install-utils
2a4cbe27 1978
4fa63067
NN
1979.PHONY: install-target
1980install-target: \
1981 maybe-install-target-libstdc++-v3 \
4b1cb4fe 1982 maybe-install-target-libmudflap \
4fa63067 1983 maybe-install-target-newlib \
4b1cb4fe 1984 maybe-install-target-libgfortran \
4fa63067
NN
1985 maybe-install-target-libobjc \
1986 maybe-install-target-libtermcap \
1987 maybe-install-target-winsup \
1988 maybe-install-target-libgloss \
1989 maybe-install-target-libiberty \
1990 maybe-install-target-gperf \
1991 maybe-install-target-examples \
1992 maybe-install-target-libffi \
1993 maybe-install-target-libjava \
1994 maybe-install-target-zlib \
1995 maybe-install-target-boehm-gc \
1996 maybe-install-target-qthreads \
1997 maybe-install-target-rda \
1998 maybe-install-target-libada
2a4cbe27 1999
4fa63067
NN
2000uninstall:
2001 @echo "the uninstall target is not supported in this tree"
2a4cbe27 2002
4fa63067
NN
2003.PHONY: install.all
2004install.all: install-no-fixedincludes
2005 @if [ -f ./gcc/Makefile ] ; then \
2006 r=`${PWD_COMMAND}` ; export r ; \
2007 $(SET_LIB_PATH) \
7ffa0b57 2008 $(HOST_EXPORTS) \
4fa63067
NN
2009 (cd ./gcc && \
2010 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
2011 else \
2012 true ; \
2013 fi
2a4cbe27 2014
4fa63067
NN
2015# install-no-fixedincludes is used because Cygnus can not distribute
2016# the fixed header files.
2017.PHONY: install-no-fixedincludes
2018install-no-fixedincludes: installdirs install-host-nogcc \
2019 install-target gcc-no-fixedincludes
2a4cbe27 2020
4fa63067 2021### other supporting targets
2a4cbe27 2022
4fa63067
NN
2023MAKEDIRS= \
2024 $(DESTDIR)$(prefix) \
2025 $(DESTDIR)$(exec_prefix)
2026.PHONY: installdirs
2027installdirs: mkinstalldirs
2028 $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
2a4cbe27 2029
4fa63067
NN
2030dir.info: do-install-info
2031 if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
2032 $(srcdir)/texinfo/gen-info-dir $(DESTDIR)$(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
2033 mv -f dir.info.new dir.info ; \
2034 else true ; \
2035 fi
2a4cbe27 2036
4fa63067
NN
2037dist:
2038 @echo "Building a full distribution of this tree isn't done"
2039 @echo "via 'make dist'. Check out the etc/ subdirectory"
2a4cbe27 2040
4fa63067 2041etags tags: TAGS
2a4cbe27 2042
4fa63067
NN
2043# Right now this just builds TAGS in each subdirectory. emacs19 has the
2044# ability to use several tags files at once, so there is probably no need
2045# to combine them into one big TAGS file (like CVS 1.3 does). We could
2046# (if we felt like it) have this Makefile write a piece of elisp which
2047# the user could load to tell emacs19 where all the TAGS files we just
2048# built are.
2049TAGS: do-TAGS
2a4cbe27 2050
4fa63067
NN
2051# --------------------------------------
2052# Modules which run on the build machine
2053# --------------------------------------
2054
2055.PHONY: configure-build-libiberty maybe-configure-build-libiberty
2056maybe-configure-build-libiberty:
6bd3dfaa
PB
2057@if build-libiberty
2058maybe-configure-build-libiberty: configure-build-libiberty
4fa63067
NN
2059configure-build-libiberty:
2060 @test ! -f $(BUILD_SUBDIR)/libiberty/Makefile || exit 0; \
2061 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libiberty ; \
b40e3958
L
2062 r=`${PWD_COMMAND}`; export r; \
2063 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 2064 $(BUILD_EXPORTS) \
4fa63067
NN
2065 echo Configuring in $(BUILD_SUBDIR)/libiberty; \
2066 cd "$(BUILD_SUBDIR)/libiberty" || exit 1; \
2067 case $(srcdir) in \
2068 /* | [A-Za-z]:[\\/]*) \
2069 topdir=$(srcdir) ;; \
2070 *) \
2071 case "$(BUILD_SUBDIR)" in \
2072 .) topdir="../$(srcdir)" ;; \
2073 *) topdir="../../$(srcdir)" ;; \
2074 esac ;; \
2075 esac; \
2076 if [ "$(srcdir)" = "." ] ; then \
2077 if [ "$(BUILD_SUBDIR)" != "." ] ; then \
2078 if $(SHELL) $$s/symlink-tree $${topdir}/libiberty "no-such-file" ; then \
2079 if [ -f Makefile ]; then \
2080 if $(MAKE) distclean; then \
2081 true; \
2082 else \
2083 exit 1; \
2084 fi; \
2085 else \
2086 true; \
2087 fi; \
2088 else \
2089 exit 1; \
2090 fi; \
2091 else \
2092 true; \
2093 fi; \
2094 srcdiroption="--srcdir=."; \
2095 libsrcdir="."; \
2096 else \
2097 srcdiroption="--srcdir=$${topdir}/libiberty"; \
2098 libsrcdir="$$s/libiberty"; \
2099 fi; \
2100 rm -f no-such-file || : ; \
2101 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2102 $(BUILD_CONFIGARGS) $${srcdiroption} \
7ffa0b57 2103 --with-build-subdir="$(BUILD_SUBDIR)" \
2a4cbe27 2104 || exit 1
6bd3dfaa 2105@endif build-libiberty
2a4cbe27 2106
4fa63067
NN
2107.PHONY: all-build-libiberty maybe-all-build-libiberty
2108maybe-all-build-libiberty:
6bd3dfaa 2109@if build-libiberty
72b2455a 2110TARGET-build-libiberty=all
6bd3dfaa 2111maybe-all-build-libiberty: all-build-libiberty
4fa63067
NN
2112all-build-libiberty: configure-build-libiberty
2113 @r=`${PWD_COMMAND}`; export r; \
b40e3958 2114 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 2115 $(BUILD_EXPORTS) \
72b2455a
PB
2116 (cd $(BUILD_SUBDIR)/libiberty && \
2117 $(MAKE) $(TARGET-build-libiberty))
6bd3dfaa 2118@endif build-libiberty
2a4cbe27 2119
6a9cf61e
PB
2120.PHONY: configure-build-bison maybe-configure-build-bison
2121maybe-configure-build-bison:
2122@if build-bison
2123maybe-configure-build-bison: configure-build-bison
2124configure-build-bison:
2125 @test ! -f $(BUILD_SUBDIR)/bison/Makefile || exit 0; \
2126 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/bison ; \
2127 r=`${PWD_COMMAND}`; export r; \
2128 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2129 $(BUILD_EXPORTS) \
2130 echo Configuring in $(BUILD_SUBDIR)/bison; \
2131 cd "$(BUILD_SUBDIR)/bison" || exit 1; \
2132 case $(srcdir) in \
2133 /* | [A-Za-z]:[\\/]*) \
2134 topdir=$(srcdir) ;; \
2135 *) \
2136 case "$(BUILD_SUBDIR)" in \
2137 .) topdir="../$(srcdir)" ;; \
2138 *) topdir="../../$(srcdir)" ;; \
2139 esac ;; \
2140 esac; \
2141 if [ "$(srcdir)" = "." ] ; then \
2142 if [ "$(BUILD_SUBDIR)" != "." ] ; then \
2143 if $(SHELL) $$s/symlink-tree $${topdir}/bison "no-such-file" ; then \
2144 if [ -f Makefile ]; then \
2145 if $(MAKE) distclean; then \
2146 true; \
2147 else \
2148 exit 1; \
2149 fi; \
2150 else \
2151 true; \
2152 fi; \
2153 else \
2154 exit 1; \
2155 fi; \
2156 else \
2157 true; \
2158 fi; \
2159 srcdiroption="--srcdir=."; \
2160 libsrcdir="."; \
2161 else \
2162 srcdiroption="--srcdir=$${topdir}/bison"; \
2163 libsrcdir="$$s/bison"; \
2164 fi; \
2165 rm -f no-such-file || : ; \
2166 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2167 $(BUILD_CONFIGARGS) $${srcdiroption} \
2168 --with-build-subdir="$(BUILD_SUBDIR)" \
2169 || exit 1
2170@endif build-bison
2171
2172.PHONY: all-build-bison maybe-all-build-bison
2173maybe-all-build-bison:
2174@if build-bison
72b2455a 2175TARGET-build-bison=all
6a9cf61e
PB
2176maybe-all-build-bison: all-build-bison
2177all-build-bison: configure-build-bison
2178 @r=`${PWD_COMMAND}`; export r; \
2179 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2180 $(BUILD_EXPORTS) \
72b2455a
PB
2181 (cd $(BUILD_SUBDIR)/bison && \
2182 $(MAKE) $(TARGET-build-bison))
6a9cf61e
PB
2183@endif build-bison
2184
2185.PHONY: configure-build-byacc maybe-configure-build-byacc
2186maybe-configure-build-byacc:
2187@if build-byacc
2188maybe-configure-build-byacc: configure-build-byacc
2189configure-build-byacc:
2190 @test ! -f $(BUILD_SUBDIR)/byacc/Makefile || exit 0; \
2191 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/byacc ; \
2192 r=`${PWD_COMMAND}`; export r; \
2193 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2194 $(BUILD_EXPORTS) \
2195 echo Configuring in $(BUILD_SUBDIR)/byacc; \
2196 cd "$(BUILD_SUBDIR)/byacc" || exit 1; \
2197 case $(srcdir) in \
2198 /* | [A-Za-z]:[\\/]*) \
2199 topdir=$(srcdir) ;; \
2200 *) \
2201 case "$(BUILD_SUBDIR)" in \
2202 .) topdir="../$(srcdir)" ;; \
2203 *) topdir="../../$(srcdir)" ;; \
2204 esac ;; \
2205 esac; \
2206 if [ "$(srcdir)" = "." ] ; then \
2207 if [ "$(BUILD_SUBDIR)" != "." ] ; then \
2208 if $(SHELL) $$s/symlink-tree $${topdir}/byacc "no-such-file" ; then \
2209 if [ -f Makefile ]; then \
2210 if $(MAKE) distclean; then \
2211 true; \
2212 else \
2213 exit 1; \
2214 fi; \
2215 else \
2216 true; \
2217 fi; \
2218 else \
2219 exit 1; \
2220 fi; \
2221 else \
2222 true; \
2223 fi; \
2224 srcdiroption="--srcdir=."; \
2225 libsrcdir="."; \
2226 else \
2227 srcdiroption="--srcdir=$${topdir}/byacc"; \
2228 libsrcdir="$$s/byacc"; \
2229 fi; \
2230 rm -f no-such-file || : ; \
2231 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2232 $(BUILD_CONFIGARGS) $${srcdiroption} \
2233 --with-build-subdir="$(BUILD_SUBDIR)" \
2234 || exit 1
2235@endif build-byacc
2236
2237.PHONY: all-build-byacc maybe-all-build-byacc
2238maybe-all-build-byacc:
2239@if build-byacc
72b2455a 2240TARGET-build-byacc=all
6a9cf61e
PB
2241maybe-all-build-byacc: all-build-byacc
2242all-build-byacc: configure-build-byacc
2243 @r=`${PWD_COMMAND}`; export r; \
2244 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245 $(BUILD_EXPORTS) \
72b2455a
PB
2246 (cd $(BUILD_SUBDIR)/byacc && \
2247 $(MAKE) $(TARGET-build-byacc))
6a9cf61e
PB
2248@endif build-byacc
2249
2250.PHONY: configure-build-flex maybe-configure-build-flex
2251maybe-configure-build-flex:
2252@if build-flex
2253maybe-configure-build-flex: configure-build-flex
2254configure-build-flex:
2255 @test ! -f $(BUILD_SUBDIR)/flex/Makefile || exit 0; \
2256 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/flex ; \
2257 r=`${PWD_COMMAND}`; export r; \
2258 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2259 $(BUILD_EXPORTS) \
2260 echo Configuring in $(BUILD_SUBDIR)/flex; \
2261 cd "$(BUILD_SUBDIR)/flex" || exit 1; \
2262 case $(srcdir) in \
2263 /* | [A-Za-z]:[\\/]*) \
2264 topdir=$(srcdir) ;; \
2265 *) \
2266 case "$(BUILD_SUBDIR)" in \
2267 .) topdir="../$(srcdir)" ;; \
2268 *) topdir="../../$(srcdir)" ;; \
2269 esac ;; \
2270 esac; \
2271 if [ "$(srcdir)" = "." ] ; then \
2272 if [ "$(BUILD_SUBDIR)" != "." ] ; then \
2273 if $(SHELL) $$s/symlink-tree $${topdir}/flex "no-such-file" ; then \
2274 if [ -f Makefile ]; then \
2275 if $(MAKE) distclean; then \
2276 true; \
2277 else \
2278 exit 1; \
2279 fi; \
2280 else \
2281 true; \
2282 fi; \
2283 else \
2284 exit 1; \
2285 fi; \
2286 else \
2287 true; \
2288 fi; \
2289 srcdiroption="--srcdir=."; \
2290 libsrcdir="."; \
2291 else \
2292 srcdiroption="--srcdir=$${topdir}/flex"; \
2293 libsrcdir="$$s/flex"; \
2294 fi; \
2295 rm -f no-such-file || : ; \
2296 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2297 $(BUILD_CONFIGARGS) $${srcdiroption} \
2298 --with-build-subdir="$(BUILD_SUBDIR)" \
2299 || exit 1
2300@endif build-flex
2301
2302.PHONY: all-build-flex maybe-all-build-flex
2303maybe-all-build-flex:
2304@if build-flex
72b2455a 2305TARGET-build-flex=all
6a9cf61e
PB
2306maybe-all-build-flex: all-build-flex
2307all-build-flex: configure-build-flex
2308 @r=`${PWD_COMMAND}`; export r; \
2309 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2310 $(BUILD_EXPORTS) \
72b2455a
PB
2311 (cd $(BUILD_SUBDIR)/flex && \
2312 $(MAKE) $(TARGET-build-flex))
6a9cf61e
PB
2313@endif build-flex
2314
2315.PHONY: configure-build-m4 maybe-configure-build-m4
2316maybe-configure-build-m4:
2317@if build-m4
2318maybe-configure-build-m4: configure-build-m4
2319configure-build-m4:
2320 @test ! -f $(BUILD_SUBDIR)/m4/Makefile || exit 0; \
2321 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/m4 ; \
2322 r=`${PWD_COMMAND}`; export r; \
2323 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2324 $(BUILD_EXPORTS) \
2325 echo Configuring in $(BUILD_SUBDIR)/m4; \
2326 cd "$(BUILD_SUBDIR)/m4" || exit 1; \
2327 case $(srcdir) in \
2328 /* | [A-Za-z]:[\\/]*) \
2329 topdir=$(srcdir) ;; \
2330 *) \
2331 case "$(BUILD_SUBDIR)" in \
2332 .) topdir="../$(srcdir)" ;; \
2333 *) topdir="../../$(srcdir)" ;; \
2334 esac ;; \
2335 esac; \
2336 if [ "$(srcdir)" = "." ] ; then \
2337 if [ "$(BUILD_SUBDIR)" != "." ] ; then \
2338 if $(SHELL) $$s/symlink-tree $${topdir}/m4 "no-such-file" ; then \
2339 if [ -f Makefile ]; then \
2340 if $(MAKE) distclean; then \
2341 true; \
2342 else \
2343 exit 1; \
2344 fi; \
2345 else \
2346 true; \
2347 fi; \
2348 else \
2349 exit 1; \
2350 fi; \
2351 else \
2352 true; \
2353 fi; \
2354 srcdiroption="--srcdir=."; \
2355 libsrcdir="."; \
2356 else \
2357 srcdiroption="--srcdir=$${topdir}/m4"; \
2358 libsrcdir="$$s/m4"; \
2359 fi; \
2360 rm -f no-such-file || : ; \
2361 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2362 $(BUILD_CONFIGARGS) $${srcdiroption} \
2363 --with-build-subdir="$(BUILD_SUBDIR)" \
2364 || exit 1
2365@endif build-m4
2366
2367.PHONY: all-build-m4 maybe-all-build-m4
2368maybe-all-build-m4:
2369@if build-m4
72b2455a 2370TARGET-build-m4=all
6a9cf61e
PB
2371maybe-all-build-m4: all-build-m4
2372all-build-m4: configure-build-m4
2373 @r=`${PWD_COMMAND}`; export r; \
2374 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2375 $(BUILD_EXPORTS) \
72b2455a
PB
2376 (cd $(BUILD_SUBDIR)/m4 && \
2377 $(MAKE) $(TARGET-build-m4))
6a9cf61e
PB
2378@endif build-m4
2379
2380.PHONY: configure-build-texinfo maybe-configure-build-texinfo
2381maybe-configure-build-texinfo:
2382@if build-texinfo
2383maybe-configure-build-texinfo: configure-build-texinfo
2384configure-build-texinfo:
2385 @test ! -f $(BUILD_SUBDIR)/texinfo/Makefile || exit 0; \
2386 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/texinfo ; \
2387 r=`${PWD_COMMAND}`; export r; \
2388 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2389 $(BUILD_EXPORTS) \
2390 echo Configuring in $(BUILD_SUBDIR)/texinfo; \
2391 cd "$(BUILD_SUBDIR)/texinfo" || exit 1; \
2392 case $(srcdir) in \
2393 /* | [A-Za-z]:[\\/]*) \
2394 topdir=$(srcdir) ;; \
2395 *) \
2396 case "$(BUILD_SUBDIR)" in \
2397 .) topdir="../$(srcdir)" ;; \
2398 *) topdir="../../$(srcdir)" ;; \
2399 esac ;; \
2400 esac; \
2401 if [ "$(srcdir)" = "." ] ; then \
2402 if [ "$(BUILD_SUBDIR)" != "." ] ; then \
2403 if $(SHELL) $$s/symlink-tree $${topdir}/texinfo "no-such-file" ; then \
2404 if [ -f Makefile ]; then \
2405 if $(MAKE) distclean; then \
2406 true; \
2407 else \
2408 exit 1; \
2409 fi; \
2410 else \
2411 true; \
2412 fi; \
2413 else \
2414 exit 1; \
2415 fi; \
2416 else \
2417 true; \
2418 fi; \
2419 srcdiroption="--srcdir=."; \
2420 libsrcdir="."; \
2421 else \
2422 srcdiroption="--srcdir=$${topdir}/texinfo"; \
2423 libsrcdir="$$s/texinfo"; \
2424 fi; \
2425 rm -f no-such-file || : ; \
2426 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2427 $(BUILD_CONFIGARGS) $${srcdiroption} \
2428 --with-build-subdir="$(BUILD_SUBDIR)" \
2429 || exit 1
2430@endif build-texinfo
2431
2432.PHONY: all-build-texinfo maybe-all-build-texinfo
2433maybe-all-build-texinfo:
2434@if build-texinfo
72b2455a 2435TARGET-build-texinfo=all
6a9cf61e
PB
2436maybe-all-build-texinfo: all-build-texinfo
2437all-build-texinfo: configure-build-texinfo
2438 @r=`${PWD_COMMAND}`; export r; \
2439 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2440 $(BUILD_EXPORTS) \
72b2455a
PB
2441 (cd $(BUILD_SUBDIR)/texinfo && \
2442 $(MAKE) $(TARGET-build-texinfo))
6a9cf61e
PB
2443@endif build-texinfo
2444
ee025550
PB
2445.PHONY: configure-build-fixincludes maybe-configure-build-fixincludes
2446maybe-configure-build-fixincludes:
2447@if build-fixincludes
2448maybe-configure-build-fixincludes: configure-build-fixincludes
2449configure-build-fixincludes:
2450 @test ! -f $(BUILD_SUBDIR)/fixincludes/Makefile || exit 0; \
2451 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/fixincludes ; \
2452 r=`${PWD_COMMAND}`; export r; \
2453 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2454 $(BUILD_EXPORTS) \
2455 echo Configuring in $(BUILD_SUBDIR)/fixincludes; \
2456 cd "$(BUILD_SUBDIR)/fixincludes" || exit 1; \
2457 case $(srcdir) in \
2458 /* | [A-Za-z]:[\\/]*) \
2459 topdir=$(srcdir) ;; \
2460 *) \
2461 case "$(BUILD_SUBDIR)" in \
2462 .) topdir="../$(srcdir)" ;; \
2463 *) topdir="../../$(srcdir)" ;; \
2464 esac ;; \
2465 esac; \
2466 if [ "$(srcdir)" = "." ] ; then \
2467 if [ "$(BUILD_SUBDIR)" != "." ] ; then \
2468 if $(SHELL) $$s/symlink-tree $${topdir}/fixincludes "no-such-file" ; then \
2469 if [ -f Makefile ]; then \
2470 if $(MAKE) distclean; then \
2471 true; \
2472 else \
2473 exit 1; \
2474 fi; \
2475 else \
2476 true; \
2477 fi; \
2478 else \
2479 exit 1; \
2480 fi; \
2481 else \
2482 true; \
2483 fi; \
2484 srcdiroption="--srcdir=."; \
2485 libsrcdir="."; \
2486 else \
2487 srcdiroption="--srcdir=$${topdir}/fixincludes"; \
2488 libsrcdir="$$s/fixincludes"; \
2489 fi; \
2490 rm -f no-such-file || : ; \
2491 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2492 $(BUILD_CONFIGARGS) $${srcdiroption} \
2493 --with-build-subdir="$(BUILD_SUBDIR)" \
2494 || exit 1
2495@endif build-fixincludes
2496
2497.PHONY: all-build-fixincludes maybe-all-build-fixincludes
2498maybe-all-build-fixincludes:
2499@if build-fixincludes
2500TARGET-build-fixincludes=all
2501maybe-all-build-fixincludes: all-build-fixincludes
2502all-build-fixincludes: configure-build-fixincludes
2503 @r=`${PWD_COMMAND}`; export r; \
2504 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2505 $(BUILD_EXPORTS) \
2506 (cd $(BUILD_SUBDIR)/fixincludes && \
2507 $(MAKE) $(TARGET-build-fixincludes))
2508@endif build-fixincludes
2509
2a4cbe27 2510
4fa63067
NN
2511# --------------------------------------
2512# Modules which run on the host machine
2513# --------------------------------------
2a4cbe27 2514
4fa63067
NN
2515.PHONY: configure-ash maybe-configure-ash
2516maybe-configure-ash:
6bd3dfaa
PB
2517@if ash
2518maybe-configure-ash: configure-ash
4fa63067
NN
2519configure-ash:
2520 @test ! -f ash/Makefile || exit 0; \
2521 [ -d ash ] || mkdir ash; \
b40e3958
L
2522 r=`${PWD_COMMAND}`; export r; \
2523 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 2524 $(HOST_EXPORTS) \
4fa63067
NN
2525 echo Configuring in ash; \
2526 cd ash || exit 1; \
2527 case $(srcdir) in \
2528 \.) \
2529 srcdiroption="--srcdir=."; \
2530 libsrcdir=".";; \
2531 /* | [A-Za-z]:[\\/]*) \
2532 srcdiroption="--srcdir=$(srcdir)/ash"; \
2533 libsrcdir="$$s/ash";; \
2534 *) \
2535 srcdiroption="--srcdir=../$(srcdir)/ash"; \
2536 libsrcdir="$$s/ash";; \
2537 esac; \
2538 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 2539 $(HOST_CONFIGARGS) $${srcdiroption} \
2a4cbe27 2540 || exit 1
6bd3dfaa 2541@endif ash
2a4cbe27 2542
4fa63067
NN
2543.PHONY: all-ash maybe-all-ash
2544maybe-all-ash:
6bd3dfaa
PB
2545@if ash
2546maybe-all-ash: all-ash
4fa63067
NN
2547all-ash: configure-ash
2548 @r=`${PWD_COMMAND}`; export r; \
2549 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2550 $(SET_LIB_PATH) \
378fce5b 2551 $(HOST_EXPORTS) \
7ffa0b57 2552 (cd ash && $(MAKE) $(FLAGS_TO_PASS) all)
6bd3dfaa 2553@endif ash
2a4cbe27 2554
4fa63067
NN
2555.PHONY: check-ash maybe-check-ash
2556maybe-check-ash:
6bd3dfaa
PB
2557@if ash
2558maybe-check-ash: check-ash
2a4cbe27 2559
4fa63067
NN
2560check-ash:
2561 @r=`${PWD_COMMAND}`; export r; \
b40e3958 2562 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 2563 $(SET_LIB_PATH) \
378fce5b 2564 $(HOST_EXPORTS) \
72b2455a 2565 (cd ash && $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 2566
6bd3dfaa 2567@endif ash
2a4cbe27 2568
4fa63067
NN
2569.PHONY: install-ash maybe-install-ash
2570maybe-install-ash:
6bd3dfaa
PB
2571@if ash
2572maybe-install-ash: install-ash
2a4cbe27 2573
4fa63067
NN
2574install-ash: installdirs
2575 @r=`${PWD_COMMAND}`; export r; \
b40e3958 2576 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 2577 $(SET_LIB_PATH) \
378fce5b 2578 $(HOST_EXPORTS) \
72b2455a 2579 (cd ash && $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 2580
6bd3dfaa 2581@endif ash
2a4cbe27 2582
4fa63067 2583# Other targets (info, dvi, etc.)
2a4cbe27 2584
4fa63067
NN
2585.PHONY: maybe-info-ash info-ash
2586maybe-info-ash:
6bd3dfaa
PB
2587@if ash
2588maybe-info-ash: info-ash
4fa63067
NN
2589
2590info-ash: \
2591 configure-ash
2592 @[ -f ./ash/Makefile ] || exit 0; \
b40e3958
L
2593 r=`${PWD_COMMAND}`; export r; \
2594 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 2595 $(SET_LIB_PATH) \
378fce5b 2596 $(HOST_EXPORTS) \
b813574b 2597 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
2598 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2599 done; \
4fa63067
NN
2600 echo "Doing info in ash" ; \
2601 (cd ash && \
2a4cbe27
NN
2602 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2603 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2604 "RANLIB=$${RANLIB}" \
2605 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 2606 info) \
2a4cbe27
NN
2607 || exit 1
2608
6bd3dfaa 2609@endif ash
2a4cbe27 2610
4fa63067
NN
2611.PHONY: maybe-dvi-ash dvi-ash
2612maybe-dvi-ash:
6bd3dfaa
PB
2613@if ash
2614maybe-dvi-ash: dvi-ash
2a4cbe27 2615
4fa63067
NN
2616dvi-ash: \
2617 configure-ash
2618 @[ -f ./ash/Makefile ] || exit 0; \
b40e3958
L
2619 r=`${PWD_COMMAND}`; export r; \
2620 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 2621 $(SET_LIB_PATH) \
378fce5b 2622 $(HOST_EXPORTS) \
b813574b 2623 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
2624 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2625 done; \
4fa63067
NN
2626 echo "Doing dvi in ash" ; \
2627 (cd ash && \
2a4cbe27
NN
2628 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2629 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2630 "RANLIB=$${RANLIB}" \
2631 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 2632 dvi) \
2a4cbe27
NN
2633 || exit 1
2634
6bd3dfaa 2635@endif ash
2a4cbe27 2636
4fa63067
NN
2637.PHONY: maybe-TAGS-ash TAGS-ash
2638maybe-TAGS-ash:
6bd3dfaa
PB
2639@if ash
2640maybe-TAGS-ash: TAGS-ash
2a4cbe27 2641
4fa63067
NN
2642TAGS-ash: \
2643 configure-ash
2644 @[ -f ./ash/Makefile ] || exit 0; \
b40e3958
L
2645 r=`${PWD_COMMAND}`; export r; \
2646 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 2647 $(SET_LIB_PATH) \
378fce5b 2648 $(HOST_EXPORTS) \
b813574b 2649 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
2650 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2651 done; \
4fa63067
NN
2652 echo "Doing TAGS in ash" ; \
2653 (cd ash && \
2a4cbe27
NN
2654 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2655 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2656 "RANLIB=$${RANLIB}" \
2657 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 2658 TAGS) \
2a4cbe27
NN
2659 || exit 1
2660
6bd3dfaa 2661@endif ash
2a4cbe27 2662
4fa63067
NN
2663.PHONY: maybe-install-info-ash install-info-ash
2664maybe-install-info-ash:
6bd3dfaa
PB
2665@if ash
2666maybe-install-info-ash: install-info-ash
2a4cbe27 2667
4fa63067
NN
2668install-info-ash: \
2669 configure-ash \
2670 info-ash
2671 @[ -f ./ash/Makefile ] || exit 0; \
b40e3958
L
2672 r=`${PWD_COMMAND}`; export r; \
2673 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 2674 $(SET_LIB_PATH) \
378fce5b 2675 $(HOST_EXPORTS) \
b813574b 2676 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
2677 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2678 done; \
4fa63067
NN
2679 echo "Doing install-info in ash" ; \
2680 (cd ash && \
2a4cbe27
NN
2681 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2682 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2683 "RANLIB=$${RANLIB}" \
2684 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 2685 install-info) \
2a4cbe27
NN
2686 || exit 1
2687
6bd3dfaa 2688@endif ash
2a4cbe27 2689
4fa63067
NN
2690.PHONY: maybe-installcheck-ash installcheck-ash
2691maybe-installcheck-ash:
6bd3dfaa
PB
2692@if ash
2693maybe-installcheck-ash: installcheck-ash
2a4cbe27 2694
4fa63067
NN
2695installcheck-ash: \
2696 configure-ash
2697 @[ -f ./ash/Makefile ] || exit 0; \
b40e3958
L
2698 r=`${PWD_COMMAND}`; export r; \
2699 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 2700 $(SET_LIB_PATH) \
378fce5b 2701 $(HOST_EXPORTS) \
b813574b 2702 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
2703 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2704 done; \
4fa63067
NN
2705 echo "Doing installcheck in ash" ; \
2706 (cd ash && \
2a4cbe27
NN
2707 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2708 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2709 "RANLIB=$${RANLIB}" \
2710 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 2711 installcheck) \
2a4cbe27
NN
2712 || exit 1
2713
6bd3dfaa 2714@endif ash
2a4cbe27 2715
4fa63067
NN
2716.PHONY: maybe-mostlyclean-ash mostlyclean-ash
2717maybe-mostlyclean-ash:
6bd3dfaa
PB
2718@if ash
2719maybe-mostlyclean-ash: mostlyclean-ash
2a4cbe27 2720
4fa63067
NN
2721mostlyclean-ash:
2722 @[ -f ./ash/Makefile ] || exit 0; \
b40e3958
L
2723 r=`${PWD_COMMAND}`; export r; \
2724 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 2725 $(SET_LIB_PATH) \
378fce5b 2726 $(HOST_EXPORTS) \
b813574b 2727 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
2728 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2729 done; \
4fa63067
NN
2730 echo "Doing mostlyclean in ash" ; \
2731 (cd ash && \
2a4cbe27
NN
2732 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2733 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2734 "RANLIB=$${RANLIB}" \
2735 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 2736 mostlyclean) \
2a4cbe27
NN
2737 || exit 1
2738
6bd3dfaa 2739@endif ash
2a4cbe27 2740
4fa63067
NN
2741.PHONY: maybe-clean-ash clean-ash
2742maybe-clean-ash:
6bd3dfaa
PB
2743@if ash
2744maybe-clean-ash: clean-ash
2a4cbe27 2745
4fa63067
NN
2746clean-ash:
2747 @[ -f ./ash/Makefile ] || exit 0; \
b40e3958
L
2748 r=`${PWD_COMMAND}`; export r; \
2749 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 2750 $(SET_LIB_PATH) \
378fce5b 2751 $(HOST_EXPORTS) \
b813574b 2752 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
2753 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2754 done; \
4fa63067
NN
2755 echo "Doing clean in ash" ; \
2756 (cd ash && \
2a4cbe27
NN
2757 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2758 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2759 "RANLIB=$${RANLIB}" \
2760 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 2761 clean) \
2a4cbe27
NN
2762 || exit 1
2763
6bd3dfaa 2764@endif ash
2a4cbe27 2765
4fa63067
NN
2766.PHONY: maybe-distclean-ash distclean-ash
2767maybe-distclean-ash:
6bd3dfaa
PB
2768@if ash
2769maybe-distclean-ash: distclean-ash
2a4cbe27 2770
4fa63067
NN
2771distclean-ash:
2772 @[ -f ./ash/Makefile ] || exit 0; \
b40e3958
L
2773 r=`${PWD_COMMAND}`; export r; \
2774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 2775 $(SET_LIB_PATH) \
378fce5b 2776 $(HOST_EXPORTS) \
b813574b 2777 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
2778 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2779 done; \
4fa63067
NN
2780 echo "Doing distclean in ash" ; \
2781 (cd ash && \
2a4cbe27
NN
2782 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2783 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2784 "RANLIB=$${RANLIB}" \
2785 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 2786 distclean) \
2a4cbe27
NN
2787 || exit 1
2788
6bd3dfaa 2789@endif ash
2a4cbe27 2790
4fa63067
NN
2791.PHONY: maybe-maintainer-clean-ash maintainer-clean-ash
2792maybe-maintainer-clean-ash:
6bd3dfaa
PB
2793@if ash
2794maybe-maintainer-clean-ash: maintainer-clean-ash
2a4cbe27 2795
4fa63067
NN
2796maintainer-clean-ash:
2797 @[ -f ./ash/Makefile ] || exit 0; \
b40e3958
L
2798 r=`${PWD_COMMAND}`; export r; \
2799 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 2800 $(SET_LIB_PATH) \
378fce5b 2801 $(HOST_EXPORTS) \
b813574b 2802 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
2803 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2804 done; \
4fa63067
NN
2805 echo "Doing maintainer-clean in ash" ; \
2806 (cd ash && \
2a4cbe27
NN
2807 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2808 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2809 "RANLIB=$${RANLIB}" \
2810 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 2811 maintainer-clean) \
2a4cbe27
NN
2812 || exit 1
2813
6bd3dfaa 2814@endif ash
2a4cbe27 2815
2a4cbe27 2816
4fa63067
NN
2817.PHONY: configure-autoconf maybe-configure-autoconf
2818maybe-configure-autoconf:
6bd3dfaa
PB
2819@if autoconf
2820maybe-configure-autoconf: configure-autoconf
4fa63067
NN
2821configure-autoconf:
2822 @test ! -f autoconf/Makefile || exit 0; \
2823 [ -d autoconf ] || mkdir autoconf; \
b40e3958
L
2824 r=`${PWD_COMMAND}`; export r; \
2825 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 2826 $(HOST_EXPORTS) \
4fa63067
NN
2827 echo Configuring in autoconf; \
2828 cd autoconf || exit 1; \
2829 case $(srcdir) in \
2830 \.) \
2831 srcdiroption="--srcdir=."; \
2832 libsrcdir=".";; \
2833 /* | [A-Za-z]:[\\/]*) \
2834 srcdiroption="--srcdir=$(srcdir)/autoconf"; \
2835 libsrcdir="$$s/autoconf";; \
2836 *) \
2837 srcdiroption="--srcdir=../$(srcdir)/autoconf"; \
2838 libsrcdir="$$s/autoconf";; \
2839 esac; \
2840 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 2841 $(HOST_CONFIGARGS) $${srcdiroption} \
2a4cbe27 2842 || exit 1
6bd3dfaa 2843@endif autoconf
2a4cbe27 2844
4fa63067
NN
2845.PHONY: all-autoconf maybe-all-autoconf
2846maybe-all-autoconf:
6bd3dfaa
PB
2847@if autoconf
2848maybe-all-autoconf: all-autoconf
4fa63067
NN
2849all-autoconf: configure-autoconf
2850 @r=`${PWD_COMMAND}`; export r; \
2851 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2852 $(SET_LIB_PATH) \
378fce5b 2853 $(HOST_EXPORTS) \
7ffa0b57 2854 (cd autoconf && $(MAKE) $(FLAGS_TO_PASS) all)
6bd3dfaa 2855@endif autoconf
2a4cbe27 2856
4fa63067
NN
2857.PHONY: check-autoconf maybe-check-autoconf
2858maybe-check-autoconf:
6bd3dfaa
PB
2859@if autoconf
2860maybe-check-autoconf: check-autoconf
2a4cbe27 2861
4fa63067
NN
2862check-autoconf:
2863 @r=`${PWD_COMMAND}`; export r; \
b40e3958 2864 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 2865 $(SET_LIB_PATH) \
378fce5b 2866 $(HOST_EXPORTS) \
72b2455a 2867 (cd autoconf && $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 2868
6bd3dfaa 2869@endif autoconf
2a4cbe27 2870
4fa63067
NN
2871.PHONY: install-autoconf maybe-install-autoconf
2872maybe-install-autoconf:
6bd3dfaa
PB
2873@if autoconf
2874maybe-install-autoconf: install-autoconf
2a4cbe27 2875
4fa63067
NN
2876install-autoconf: installdirs
2877 @r=`${PWD_COMMAND}`; export r; \
b40e3958 2878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 2879 $(SET_LIB_PATH) \
378fce5b 2880 $(HOST_EXPORTS) \
72b2455a 2881 (cd autoconf && $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 2882
6bd3dfaa 2883@endif autoconf
2a4cbe27 2884
4fa63067 2885# Other targets (info, dvi, etc.)
2a4cbe27 2886
4fa63067
NN
2887.PHONY: maybe-info-autoconf info-autoconf
2888maybe-info-autoconf:
6bd3dfaa
PB
2889@if autoconf
2890maybe-info-autoconf: info-autoconf
4fa63067
NN
2891
2892info-autoconf: \
2893 configure-autoconf
2894 @[ -f ./autoconf/Makefile ] || exit 0; \
b40e3958
L
2895 r=`${PWD_COMMAND}`; export r; \
2896 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 2897 $(SET_LIB_PATH) \
378fce5b 2898 $(HOST_EXPORTS) \
b813574b 2899 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
2900 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2901 done; \
4fa63067
NN
2902 echo "Doing info in autoconf" ; \
2903 (cd autoconf && \
2a4cbe27
NN
2904 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2905 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2906 "RANLIB=$${RANLIB}" \
2907 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 2908 info) \
2a4cbe27
NN
2909 || exit 1
2910
6bd3dfaa 2911@endif autoconf
2a4cbe27 2912
4fa63067
NN
2913.PHONY: maybe-dvi-autoconf dvi-autoconf
2914maybe-dvi-autoconf:
6bd3dfaa
PB
2915@if autoconf
2916maybe-dvi-autoconf: dvi-autoconf
2a4cbe27 2917
4fa63067
NN
2918dvi-autoconf: \
2919 configure-autoconf
2920 @[ -f ./autoconf/Makefile ] || exit 0; \
b40e3958
L
2921 r=`${PWD_COMMAND}`; export r; \
2922 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 2923 $(SET_LIB_PATH) \
378fce5b 2924 $(HOST_EXPORTS) \
b813574b 2925 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
2926 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2927 done; \
4fa63067
NN
2928 echo "Doing dvi in autoconf" ; \
2929 (cd autoconf && \
2a4cbe27
NN
2930 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2931 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2932 "RANLIB=$${RANLIB}" \
2933 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 2934 dvi) \
2a4cbe27
NN
2935 || exit 1
2936
6bd3dfaa 2937@endif autoconf
2a4cbe27 2938
4fa63067
NN
2939.PHONY: maybe-TAGS-autoconf TAGS-autoconf
2940maybe-TAGS-autoconf:
6bd3dfaa
PB
2941@if autoconf
2942maybe-TAGS-autoconf: TAGS-autoconf
2a4cbe27 2943
4fa63067
NN
2944TAGS-autoconf: \
2945 configure-autoconf
2946 @[ -f ./autoconf/Makefile ] || exit 0; \
b40e3958
L
2947 r=`${PWD_COMMAND}`; export r; \
2948 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 2949 $(SET_LIB_PATH) \
378fce5b 2950 $(HOST_EXPORTS) \
b813574b 2951 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
2952 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2953 done; \
4fa63067
NN
2954 echo "Doing TAGS in autoconf" ; \
2955 (cd autoconf && \
2a4cbe27
NN
2956 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2957 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2958 "RANLIB=$${RANLIB}" \
2959 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 2960 TAGS) \
2a4cbe27
NN
2961 || exit 1
2962
6bd3dfaa 2963@endif autoconf
2a4cbe27 2964
4fa63067
NN
2965.PHONY: maybe-install-info-autoconf install-info-autoconf
2966maybe-install-info-autoconf:
6bd3dfaa
PB
2967@if autoconf
2968maybe-install-info-autoconf: install-info-autoconf
2a4cbe27 2969
4fa63067
NN
2970install-info-autoconf: \
2971 configure-autoconf \
2972 info-autoconf
2973 @[ -f ./autoconf/Makefile ] || exit 0; \
b40e3958
L
2974 r=`${PWD_COMMAND}`; export r; \
2975 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 2976 $(SET_LIB_PATH) \
378fce5b 2977 $(HOST_EXPORTS) \
b813574b 2978 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
2979 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2980 done; \
4fa63067
NN
2981 echo "Doing install-info in autoconf" ; \
2982 (cd autoconf && \
2a4cbe27
NN
2983 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2984 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2985 "RANLIB=$${RANLIB}" \
2986 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 2987 install-info) \
2a4cbe27
NN
2988 || exit 1
2989
6bd3dfaa 2990@endif autoconf
2a4cbe27 2991
4fa63067
NN
2992.PHONY: maybe-installcheck-autoconf installcheck-autoconf
2993maybe-installcheck-autoconf:
6bd3dfaa
PB
2994@if autoconf
2995maybe-installcheck-autoconf: installcheck-autoconf
2a4cbe27 2996
4fa63067
NN
2997installcheck-autoconf: \
2998 configure-autoconf
2999 @[ -f ./autoconf/Makefile ] || exit 0; \
b40e3958
L
3000 r=`${PWD_COMMAND}`; export r; \
3001 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 3002 $(SET_LIB_PATH) \
378fce5b 3003 $(HOST_EXPORTS) \
b813574b 3004 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3005 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3006 done; \
4fa63067
NN
3007 echo "Doing installcheck in autoconf" ; \
3008 (cd autoconf && \
2a4cbe27
NN
3009 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3010 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3011 "RANLIB=$${RANLIB}" \
3012 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 3013 installcheck) \
2a4cbe27
NN
3014 || exit 1
3015
6bd3dfaa 3016@endif autoconf
2a4cbe27 3017
4fa63067
NN
3018.PHONY: maybe-mostlyclean-autoconf mostlyclean-autoconf
3019maybe-mostlyclean-autoconf:
6bd3dfaa
PB
3020@if autoconf
3021maybe-mostlyclean-autoconf: mostlyclean-autoconf
2a4cbe27 3022
4fa63067
NN
3023mostlyclean-autoconf:
3024 @[ -f ./autoconf/Makefile ] || exit 0; \
b40e3958
L
3025 r=`${PWD_COMMAND}`; export r; \
3026 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 3027 $(SET_LIB_PATH) \
378fce5b 3028 $(HOST_EXPORTS) \
b813574b 3029 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3030 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3031 done; \
4fa63067
NN
3032 echo "Doing mostlyclean in autoconf" ; \
3033 (cd autoconf && \
2a4cbe27
NN
3034 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3035 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3036 "RANLIB=$${RANLIB}" \
3037 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 3038 mostlyclean) \
2a4cbe27
NN
3039 || exit 1
3040
6bd3dfaa 3041@endif autoconf
2a4cbe27 3042
4fa63067
NN
3043.PHONY: maybe-clean-autoconf clean-autoconf
3044maybe-clean-autoconf:
6bd3dfaa
PB
3045@if autoconf
3046maybe-clean-autoconf: clean-autoconf
2a4cbe27 3047
4fa63067
NN
3048clean-autoconf:
3049 @[ -f ./autoconf/Makefile ] || exit 0; \
b40e3958
L
3050 r=`${PWD_COMMAND}`; export r; \
3051 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 3052 $(SET_LIB_PATH) \
378fce5b 3053 $(HOST_EXPORTS) \
b813574b 3054 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3055 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3056 done; \
4fa63067
NN
3057 echo "Doing clean in autoconf" ; \
3058 (cd autoconf && \
2a4cbe27
NN
3059 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3060 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3061 "RANLIB=$${RANLIB}" \
3062 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 3063 clean) \
2a4cbe27
NN
3064 || exit 1
3065
6bd3dfaa 3066@endif autoconf
2a4cbe27 3067
4fa63067
NN
3068.PHONY: maybe-distclean-autoconf distclean-autoconf
3069maybe-distclean-autoconf:
6bd3dfaa
PB
3070@if autoconf
3071maybe-distclean-autoconf: distclean-autoconf
2a4cbe27 3072
4fa63067
NN
3073distclean-autoconf:
3074 @[ -f ./autoconf/Makefile ] || exit 0; \
b40e3958
L
3075 r=`${PWD_COMMAND}`; export r; \
3076 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 3077 $(SET_LIB_PATH) \
378fce5b 3078 $(HOST_EXPORTS) \
b813574b 3079 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3080 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3081 done; \
4fa63067
NN
3082 echo "Doing distclean in autoconf" ; \
3083 (cd autoconf && \
2a4cbe27
NN
3084 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3085 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3086 "RANLIB=$${RANLIB}" \
3087 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 3088 distclean) \
2a4cbe27
NN
3089 || exit 1
3090
6bd3dfaa 3091@endif autoconf
2a4cbe27 3092
4fa63067
NN
3093.PHONY: maybe-maintainer-clean-autoconf maintainer-clean-autoconf
3094maybe-maintainer-clean-autoconf:
6bd3dfaa
PB
3095@if autoconf
3096maybe-maintainer-clean-autoconf: maintainer-clean-autoconf
2a4cbe27 3097
4fa63067
NN
3098maintainer-clean-autoconf:
3099 @[ -f ./autoconf/Makefile ] || exit 0; \
b40e3958
L
3100 r=`${PWD_COMMAND}`; export r; \
3101 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 3102 $(SET_LIB_PATH) \
378fce5b 3103 $(HOST_EXPORTS) \
b813574b 3104 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3105 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3106 done; \
4fa63067
NN
3107 echo "Doing maintainer-clean in autoconf" ; \
3108 (cd autoconf && \
2a4cbe27
NN
3109 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3110 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3111 "RANLIB=$${RANLIB}" \
3112 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 3113 maintainer-clean) \
2a4cbe27
NN
3114 || exit 1
3115
6bd3dfaa 3116@endif autoconf
2a4cbe27 3117
2a4cbe27 3118
4fa63067
NN
3119.PHONY: configure-automake maybe-configure-automake
3120maybe-configure-automake:
6bd3dfaa
PB
3121@if automake
3122maybe-configure-automake: configure-automake
4fa63067
NN
3123configure-automake:
3124 @test ! -f automake/Makefile || exit 0; \
3125 [ -d automake ] || mkdir automake; \
b40e3958
L
3126 r=`${PWD_COMMAND}`; export r; \
3127 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3128 $(HOST_EXPORTS) \
4fa63067
NN
3129 echo Configuring in automake; \
3130 cd automake || exit 1; \
3131 case $(srcdir) in \
3132 \.) \
3133 srcdiroption="--srcdir=."; \
3134 libsrcdir=".";; \
3135 /* | [A-Za-z]:[\\/]*) \
3136 srcdiroption="--srcdir=$(srcdir)/automake"; \
3137 libsrcdir="$$s/automake";; \
3138 *) \
3139 srcdiroption="--srcdir=../$(srcdir)/automake"; \
3140 libsrcdir="$$s/automake";; \
3141 esac; \
3142 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 3143 $(HOST_CONFIGARGS) $${srcdiroption} \
2a4cbe27 3144 || exit 1
6bd3dfaa 3145@endif automake
2a4cbe27 3146
4fa63067
NN
3147.PHONY: all-automake maybe-all-automake
3148maybe-all-automake:
6bd3dfaa
PB
3149@if automake
3150maybe-all-automake: all-automake
4fa63067
NN
3151all-automake: configure-automake
3152 @r=`${PWD_COMMAND}`; export r; \
3153 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3154 $(SET_LIB_PATH) \
378fce5b 3155 $(HOST_EXPORTS) \
7ffa0b57 3156 (cd automake && $(MAKE) $(FLAGS_TO_PASS) all)
6bd3dfaa 3157@endif automake
2a4cbe27 3158
4fa63067
NN
3159.PHONY: check-automake maybe-check-automake
3160maybe-check-automake:
6bd3dfaa
PB
3161@if automake
3162maybe-check-automake: check-automake
2a4cbe27 3163
4fa63067
NN
3164check-automake:
3165 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3166 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 3167 $(SET_LIB_PATH) \
378fce5b 3168 $(HOST_EXPORTS) \
72b2455a 3169 (cd automake && $(MAKE) $(FLAGS_TO_PASS) check)
4fa63067 3170
6bd3dfaa 3171@endif automake
4fa63067
NN
3172
3173.PHONY: install-automake maybe-install-automake
3174maybe-install-automake:
6bd3dfaa
PB
3175@if automake
3176maybe-install-automake: install-automake
2a4cbe27 3177
4fa63067
NN
3178install-automake: installdirs
3179 @r=`${PWD_COMMAND}`; export r; \
3180 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3181 $(SET_LIB_PATH) \
378fce5b 3182 $(HOST_EXPORTS) \
72b2455a 3183 (cd automake && $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 3184
6bd3dfaa 3185@endif automake
2a4cbe27 3186
4fa63067
NN
3187# Other targets (info, dvi, etc.)
3188
3189.PHONY: maybe-info-automake info-automake
3190maybe-info-automake:
6bd3dfaa
PB
3191@if automake
3192maybe-info-automake: info-automake
4fa63067
NN
3193
3194info-automake: \
3195 configure-automake
3196 @[ -f ./automake/Makefile ] || exit 0; \
b40e3958
L
3197 r=`${PWD_COMMAND}`; export r; \
3198 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 3199 $(SET_LIB_PATH) \
378fce5b 3200 $(HOST_EXPORTS) \
b813574b 3201 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3202 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3203 done; \
4fa63067
NN
3204 echo "Doing info in automake" ; \
3205 (cd automake && \
2a4cbe27
NN
3206 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3207 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3208 "RANLIB=$${RANLIB}" \
3209 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 3210 info) \
2a4cbe27
NN
3211 || exit 1
3212
6bd3dfaa 3213@endif automake
2a4cbe27 3214
4fa63067
NN
3215.PHONY: maybe-dvi-automake dvi-automake
3216maybe-dvi-automake:
6bd3dfaa
PB
3217@if automake
3218maybe-dvi-automake: dvi-automake
2a4cbe27 3219
4fa63067
NN
3220dvi-automake: \
3221 configure-automake
3222 @[ -f ./automake/Makefile ] || exit 0; \
b40e3958
L
3223 r=`${PWD_COMMAND}`; export r; \
3224 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 3225 $(SET_LIB_PATH) \
378fce5b 3226 $(HOST_EXPORTS) \
b813574b 3227 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3228 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3229 done; \
4fa63067
NN
3230 echo "Doing dvi in automake" ; \
3231 (cd automake && \
2a4cbe27
NN
3232 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3233 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3234 "RANLIB=$${RANLIB}" \
3235 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 3236 dvi) \
2a4cbe27
NN
3237 || exit 1
3238
6bd3dfaa 3239@endif automake
2a4cbe27 3240
4fa63067
NN
3241.PHONY: maybe-TAGS-automake TAGS-automake
3242maybe-TAGS-automake:
6bd3dfaa
PB
3243@if automake
3244maybe-TAGS-automake: TAGS-automake
2a4cbe27 3245
4fa63067
NN
3246TAGS-automake: \
3247 configure-automake
3248 @[ -f ./automake/Makefile ] || exit 0; \
b40e3958
L
3249 r=`${PWD_COMMAND}`; export r; \
3250 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 3251 $(SET_LIB_PATH) \
378fce5b 3252 $(HOST_EXPORTS) \
b813574b 3253 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3254 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3255 done; \
4fa63067
NN
3256 echo "Doing TAGS in automake" ; \
3257 (cd automake && \
2a4cbe27
NN
3258 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3259 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3260 "RANLIB=$${RANLIB}" \
3261 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 3262 TAGS) \
2a4cbe27
NN
3263 || exit 1
3264
6bd3dfaa 3265@endif automake
2a4cbe27 3266
4fa63067
NN
3267.PHONY: maybe-install-info-automake install-info-automake
3268maybe-install-info-automake:
6bd3dfaa
PB
3269@if automake
3270maybe-install-info-automake: install-info-automake
2a4cbe27 3271
4fa63067
NN
3272install-info-automake: \
3273 configure-automake \
3274 info-automake
3275 @[ -f ./automake/Makefile ] || exit 0; \
b40e3958
L
3276 r=`${PWD_COMMAND}`; export r; \
3277 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 3278 $(SET_LIB_PATH) \
378fce5b 3279 $(HOST_EXPORTS) \
b813574b 3280 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3281 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3282 done; \
4fa63067
NN
3283 echo "Doing install-info in automake" ; \
3284 (cd automake && \
2a4cbe27
NN
3285 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3286 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3287 "RANLIB=$${RANLIB}" \
3288 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 3289 install-info) \
2a4cbe27
NN
3290 || exit 1
3291
6bd3dfaa 3292@endif automake
2a4cbe27 3293
4fa63067
NN
3294.PHONY: maybe-installcheck-automake installcheck-automake
3295maybe-installcheck-automake:
6bd3dfaa
PB
3296@if automake
3297maybe-installcheck-automake: installcheck-automake
2a4cbe27 3298
4fa63067
NN
3299installcheck-automake: \
3300 configure-automake
3301 @[ -f ./automake/Makefile ] || exit 0; \
b40e3958
L
3302 r=`${PWD_COMMAND}`; export r; \
3303 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 3304 $(SET_LIB_PATH) \
378fce5b 3305 $(HOST_EXPORTS) \
b813574b 3306 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3307 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3308 done; \
4fa63067
NN
3309 echo "Doing installcheck in automake" ; \
3310 (cd automake && \
2a4cbe27
NN
3311 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3312 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3313 "RANLIB=$${RANLIB}" \
3314 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 3315 installcheck) \
2a4cbe27
NN
3316 || exit 1
3317
6bd3dfaa 3318@endif automake
2a4cbe27 3319
4fa63067
NN
3320.PHONY: maybe-mostlyclean-automake mostlyclean-automake
3321maybe-mostlyclean-automake:
6bd3dfaa
PB
3322@if automake
3323maybe-mostlyclean-automake: mostlyclean-automake
2a4cbe27 3324
4fa63067
NN
3325mostlyclean-automake:
3326 @[ -f ./automake/Makefile ] || exit 0; \
b40e3958
L
3327 r=`${PWD_COMMAND}`; export r; \
3328 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 3329 $(SET_LIB_PATH) \
378fce5b 3330 $(HOST_EXPORTS) \
b813574b 3331 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3332 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3333 done; \
4fa63067
NN
3334 echo "Doing mostlyclean in automake" ; \
3335 (cd automake && \
2a4cbe27
NN
3336 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3337 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3338 "RANLIB=$${RANLIB}" \
3339 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 3340 mostlyclean) \
2a4cbe27
NN
3341 || exit 1
3342
6bd3dfaa 3343@endif automake
2a4cbe27 3344
4fa63067
NN
3345.PHONY: maybe-clean-automake clean-automake
3346maybe-clean-automake:
6bd3dfaa
PB
3347@if automake
3348maybe-clean-automake: clean-automake
2a4cbe27 3349
4fa63067
NN
3350clean-automake:
3351 @[ -f ./automake/Makefile ] || exit 0; \
b40e3958
L
3352 r=`${PWD_COMMAND}`; export r; \
3353 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 3354 $(SET_LIB_PATH) \
378fce5b 3355 $(HOST_EXPORTS) \
b813574b 3356 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3357 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3358 done; \
4fa63067
NN
3359 echo "Doing clean in automake" ; \
3360 (cd automake && \
2a4cbe27
NN
3361 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3362 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3363 "RANLIB=$${RANLIB}" \
3364 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 3365 clean) \
2a4cbe27
NN
3366 || exit 1
3367
6bd3dfaa 3368@endif automake
2a4cbe27 3369
4fa63067
NN
3370.PHONY: maybe-distclean-automake distclean-automake
3371maybe-distclean-automake:
6bd3dfaa
PB
3372@if automake
3373maybe-distclean-automake: distclean-automake
2a4cbe27 3374
4fa63067
NN
3375distclean-automake:
3376 @[ -f ./automake/Makefile ] || exit 0; \
b40e3958
L
3377 r=`${PWD_COMMAND}`; export r; \
3378 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 3379 $(SET_LIB_PATH) \
378fce5b 3380 $(HOST_EXPORTS) \
b813574b 3381 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3382 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3383 done; \
4fa63067
NN
3384 echo "Doing distclean in automake" ; \
3385 (cd automake && \
2a4cbe27
NN
3386 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3387 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3388 "RANLIB=$${RANLIB}" \
3389 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 3390 distclean) \
2a4cbe27
NN
3391 || exit 1
3392
6bd3dfaa 3393@endif automake
2a4cbe27 3394
4fa63067
NN
3395.PHONY: maybe-maintainer-clean-automake maintainer-clean-automake
3396maybe-maintainer-clean-automake:
6bd3dfaa
PB
3397@if automake
3398maybe-maintainer-clean-automake: maintainer-clean-automake
2a4cbe27 3399
4fa63067
NN
3400maintainer-clean-automake:
3401 @[ -f ./automake/Makefile ] || exit 0; \
b40e3958
L
3402 r=`${PWD_COMMAND}`; export r; \
3403 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 3404 $(SET_LIB_PATH) \
378fce5b 3405 $(HOST_EXPORTS) \
b813574b 3406 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3407 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3408 done; \
4fa63067
NN
3409 echo "Doing maintainer-clean in automake" ; \
3410 (cd automake && \
2a4cbe27
NN
3411 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3412 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3413 "RANLIB=$${RANLIB}" \
3414 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 3415 maintainer-clean) \
2a4cbe27
NN
3416 || exit 1
3417
6bd3dfaa 3418@endif automake
2a4cbe27 3419
2a4cbe27 3420
4fa63067
NN
3421.PHONY: configure-bash maybe-configure-bash
3422maybe-configure-bash:
6bd3dfaa
PB
3423@if bash
3424maybe-configure-bash: configure-bash
4fa63067
NN
3425configure-bash:
3426 @test ! -f bash/Makefile || exit 0; \
3427 [ -d bash ] || mkdir bash; \
b40e3958
L
3428 r=`${PWD_COMMAND}`; export r; \
3429 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3430 $(HOST_EXPORTS) \
4fa63067
NN
3431 echo Configuring in bash; \
3432 cd bash || exit 1; \
3433 case $(srcdir) in \
3434 \.) \
3435 srcdiroption="--srcdir=."; \
3436 libsrcdir=".";; \
3437 /* | [A-Za-z]:[\\/]*) \
3438 srcdiroption="--srcdir=$(srcdir)/bash"; \
3439 libsrcdir="$$s/bash";; \
3440 *) \
3441 srcdiroption="--srcdir=../$(srcdir)/bash"; \
3442 libsrcdir="$$s/bash";; \
3443 esac; \
3444 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 3445 $(HOST_CONFIGARGS) $${srcdiroption} \
2a4cbe27 3446 || exit 1
6bd3dfaa 3447@endif bash
2a4cbe27 3448
4fa63067
NN
3449.PHONY: all-bash maybe-all-bash
3450maybe-all-bash:
6bd3dfaa
PB
3451@if bash
3452maybe-all-bash: all-bash
4fa63067
NN
3453all-bash: configure-bash
3454 @r=`${PWD_COMMAND}`; export r; \
3455 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3456 $(SET_LIB_PATH) \
378fce5b 3457 $(HOST_EXPORTS) \
7ffa0b57 3458 (cd bash && $(MAKE) $(FLAGS_TO_PASS) all)
6bd3dfaa 3459@endif bash
2a4cbe27 3460
4fa63067
NN
3461.PHONY: check-bash maybe-check-bash
3462maybe-check-bash:
6bd3dfaa
PB
3463@if bash
3464maybe-check-bash: check-bash
2a4cbe27 3465
4fa63067
NN
3466check-bash:
3467 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3468 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 3469 $(SET_LIB_PATH) \
378fce5b 3470 $(HOST_EXPORTS) \
72b2455a 3471 (cd bash && $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 3472
6bd3dfaa 3473@endif bash
2a4cbe27 3474
4fa63067
NN
3475.PHONY: install-bash maybe-install-bash
3476maybe-install-bash:
6bd3dfaa
PB
3477@if bash
3478maybe-install-bash: install-bash
2a4cbe27 3479
4fa63067
NN
3480install-bash: installdirs
3481 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3482 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 3483 $(SET_LIB_PATH) \
378fce5b 3484 $(HOST_EXPORTS) \
72b2455a 3485 (cd bash && $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 3486
6bd3dfaa 3487@endif bash
2a4cbe27 3488
4fa63067 3489# Other targets (info, dvi, etc.)
2a4cbe27 3490
4fa63067
NN
3491.PHONY: maybe-info-bash info-bash
3492maybe-info-bash:
6bd3dfaa
PB
3493@if bash
3494maybe-info-bash: info-bash
4fa63067
NN
3495
3496info-bash: \
3497 configure-bash
3498 @[ -f ./bash/Makefile ] || exit 0; \
b40e3958
L
3499 r=`${PWD_COMMAND}`; export r; \
3500 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 3501 $(SET_LIB_PATH) \
378fce5b 3502 $(HOST_EXPORTS) \
b813574b 3503 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3504 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3505 done; \
4fa63067
NN
3506 echo "Doing info in bash" ; \
3507 (cd bash && \
2a4cbe27
NN
3508 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3509 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3510 "RANLIB=$${RANLIB}" \
3511 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 3512 info) \
2a4cbe27
NN
3513 || exit 1
3514
6bd3dfaa 3515@endif bash
2a4cbe27 3516
4fa63067
NN
3517.PHONY: maybe-dvi-bash dvi-bash
3518maybe-dvi-bash:
6bd3dfaa
PB
3519@if bash
3520maybe-dvi-bash: dvi-bash
2a4cbe27 3521
4fa63067
NN
3522dvi-bash: \
3523 configure-bash
3524 @[ -f ./bash/Makefile ] || exit 0; \
b40e3958
L
3525 r=`${PWD_COMMAND}`; export r; \
3526 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 3527 $(SET_LIB_PATH) \
378fce5b 3528 $(HOST_EXPORTS) \
b813574b 3529 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3530 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3531 done; \
4fa63067
NN
3532 echo "Doing dvi in bash" ; \
3533 (cd bash && \
2a4cbe27
NN
3534 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3535 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3536 "RANLIB=$${RANLIB}" \
3537 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 3538 dvi) \
2a4cbe27
NN
3539 || exit 1
3540
6bd3dfaa 3541@endif bash
2a4cbe27 3542
4fa63067
NN
3543.PHONY: maybe-TAGS-bash TAGS-bash
3544maybe-TAGS-bash:
6bd3dfaa
PB
3545@if bash
3546maybe-TAGS-bash: TAGS-bash
2a4cbe27 3547
4fa63067
NN
3548TAGS-bash: \
3549 configure-bash
3550 @[ -f ./bash/Makefile ] || exit 0; \
b40e3958
L
3551 r=`${PWD_COMMAND}`; export r; \
3552 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 3553 $(SET_LIB_PATH) \
378fce5b 3554 $(HOST_EXPORTS) \
b813574b 3555 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3556 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3557 done; \
4fa63067
NN
3558 echo "Doing TAGS in bash" ; \
3559 (cd bash && \
2a4cbe27
NN
3560 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3561 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3562 "RANLIB=$${RANLIB}" \
3563 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 3564 TAGS) \
2a4cbe27
NN
3565 || exit 1
3566
6bd3dfaa 3567@endif bash
2a4cbe27 3568
4fa63067
NN
3569.PHONY: maybe-install-info-bash install-info-bash
3570maybe-install-info-bash:
6bd3dfaa
PB
3571@if bash
3572maybe-install-info-bash: install-info-bash
2a4cbe27 3573
4fa63067
NN
3574install-info-bash: \
3575 configure-bash \
3576 info-bash
3577 @[ -f ./bash/Makefile ] || exit 0; \
b40e3958
L
3578 r=`${PWD_COMMAND}`; export r; \
3579 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 3580 $(SET_LIB_PATH) \
378fce5b 3581 $(HOST_EXPORTS) \
b813574b 3582 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3583 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3584 done; \
4fa63067
NN
3585 echo "Doing install-info in bash" ; \
3586 (cd bash && \
2a4cbe27
NN
3587 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3588 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3589 "RANLIB=$${RANLIB}" \
3590 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 3591 install-info) \
2a4cbe27
NN
3592 || exit 1
3593
6bd3dfaa 3594@endif bash
2a4cbe27 3595
4fa63067
NN
3596.PHONY: maybe-installcheck-bash installcheck-bash
3597maybe-installcheck-bash:
6bd3dfaa
PB
3598@if bash
3599maybe-installcheck-bash: installcheck-bash
2a4cbe27 3600
4fa63067
NN
3601installcheck-bash: \
3602 configure-bash
3603 @[ -f ./bash/Makefile ] || exit 0; \
b40e3958
L
3604 r=`${PWD_COMMAND}`; export r; \
3605 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 3606 $(SET_LIB_PATH) \
378fce5b 3607 $(HOST_EXPORTS) \
b813574b 3608 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3609 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3610 done; \
4fa63067
NN
3611 echo "Doing installcheck in bash" ; \
3612 (cd bash && \
2a4cbe27
NN
3613 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3614 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3615 "RANLIB=$${RANLIB}" \
3616 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 3617 installcheck) \
2a4cbe27
NN
3618 || exit 1
3619
6bd3dfaa 3620@endif bash
2a4cbe27 3621
4fa63067
NN
3622.PHONY: maybe-mostlyclean-bash mostlyclean-bash
3623maybe-mostlyclean-bash:
6bd3dfaa
PB
3624@if bash
3625maybe-mostlyclean-bash: mostlyclean-bash
2a4cbe27 3626
4fa63067
NN
3627mostlyclean-bash:
3628 @[ -f ./bash/Makefile ] || exit 0; \
b40e3958
L
3629 r=`${PWD_COMMAND}`; export r; \
3630 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 3631 $(SET_LIB_PATH) \
378fce5b 3632 $(HOST_EXPORTS) \
b813574b 3633 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3634 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3635 done; \
4fa63067
NN
3636 echo "Doing mostlyclean in bash" ; \
3637 (cd bash && \
2a4cbe27
NN
3638 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3639 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3640 "RANLIB=$${RANLIB}" \
3641 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 3642 mostlyclean) \
2a4cbe27
NN
3643 || exit 1
3644
6bd3dfaa 3645@endif bash
2a4cbe27 3646
4fa63067
NN
3647.PHONY: maybe-clean-bash clean-bash
3648maybe-clean-bash:
6bd3dfaa
PB
3649@if bash
3650maybe-clean-bash: clean-bash
2a4cbe27 3651
4fa63067
NN
3652clean-bash:
3653 @[ -f ./bash/Makefile ] || exit 0; \
b40e3958
L
3654 r=`${PWD_COMMAND}`; export r; \
3655 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 3656 $(SET_LIB_PATH) \
378fce5b 3657 $(HOST_EXPORTS) \
b813574b 3658 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3659 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3660 done; \
4fa63067
NN
3661 echo "Doing clean in bash" ; \
3662 (cd bash && \
2a4cbe27
NN
3663 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3664 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3665 "RANLIB=$${RANLIB}" \
3666 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 3667 clean) \
2a4cbe27
NN
3668 || exit 1
3669
6bd3dfaa 3670@endif bash
2a4cbe27 3671
4fa63067
NN
3672.PHONY: maybe-distclean-bash distclean-bash
3673maybe-distclean-bash:
6bd3dfaa
PB
3674@if bash
3675maybe-distclean-bash: distclean-bash
2a4cbe27 3676
4fa63067
NN
3677distclean-bash:
3678 @[ -f ./bash/Makefile ] || exit 0; \
b40e3958
L
3679 r=`${PWD_COMMAND}`; export r; \
3680 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 3681 $(SET_LIB_PATH) \
378fce5b 3682 $(HOST_EXPORTS) \
b813574b 3683 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3684 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3685 done; \
4fa63067
NN
3686 echo "Doing distclean in bash" ; \
3687 (cd bash && \
2a4cbe27
NN
3688 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3689 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3690 "RANLIB=$${RANLIB}" \
3691 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 3692 distclean) \
2a4cbe27
NN
3693 || exit 1
3694
6bd3dfaa 3695@endif bash
2a4cbe27 3696
4fa63067
NN
3697.PHONY: maybe-maintainer-clean-bash maintainer-clean-bash
3698maybe-maintainer-clean-bash:
6bd3dfaa
PB
3699@if bash
3700maybe-maintainer-clean-bash: maintainer-clean-bash
2a4cbe27 3701
4fa63067
NN
3702maintainer-clean-bash:
3703 @[ -f ./bash/Makefile ] || exit 0; \
b40e3958
L
3704 r=`${PWD_COMMAND}`; export r; \
3705 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 3706 $(SET_LIB_PATH) \
378fce5b 3707 $(HOST_EXPORTS) \
b813574b 3708 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3709 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3710 done; \
4fa63067
NN
3711 echo "Doing maintainer-clean in bash" ; \
3712 (cd bash && \
2a4cbe27
NN
3713 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3714 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3715 "RANLIB=$${RANLIB}" \
3716 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 3717 maintainer-clean) \
2a4cbe27
NN
3718 || exit 1
3719
6bd3dfaa 3720@endif bash
2a4cbe27 3721
2a4cbe27 3722
4fa63067
NN
3723.PHONY: configure-bfd maybe-configure-bfd
3724maybe-configure-bfd:
6bd3dfaa
PB
3725@if bfd
3726maybe-configure-bfd: configure-bfd
4fa63067 3727configure-bfd:
72b2455a
PB
3728 @test -f stage_last && exit 0; \
3729 test ! -f bfd/Makefile || exit 0; \
4fa63067 3730 [ -d bfd ] || mkdir bfd; \
b40e3958
L
3731 r=`${PWD_COMMAND}`; export r; \
3732 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3733 $(HOST_EXPORTS) \
4fa63067
NN
3734 echo Configuring in bfd; \
3735 cd bfd || exit 1; \
3736 case $(srcdir) in \
3737 \.) \
3738 srcdiroption="--srcdir=."; \
3739 libsrcdir=".";; \
3740 /* | [A-Za-z]:[\\/]*) \
3741 srcdiroption="--srcdir=$(srcdir)/bfd"; \
3742 libsrcdir="$$s/bfd";; \
3743 *) \
3744 srcdiroption="--srcdir=../$(srcdir)/bfd"; \
3745 libsrcdir="$$s/bfd";; \
3746 esac; \
3747 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 3748 $(HOST_CONFIGARGS) $${srcdiroption} \
2a4cbe27 3749 || exit 1
6bd3dfaa 3750@endif bfd
2a4cbe27 3751
4fa63067
NN
3752.PHONY: all-bfd maybe-all-bfd
3753maybe-all-bfd:
6bd3dfaa
PB
3754@if bfd
3755maybe-all-bfd: all-bfd
4fa63067 3756all-bfd: configure-bfd
72b2455a
PB
3757 @test -f stage_last && exit 0; \
3758 r=`${PWD_COMMAND}`; export r; \
4fa63067
NN
3759 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3760 $(SET_LIB_PATH) \
378fce5b 3761 $(HOST_EXPORTS) \
7ffa0b57 3762 (cd bfd && $(MAKE) $(FLAGS_TO_PASS) all)
6bd3dfaa 3763@endif bfd
2a4cbe27 3764
4fa63067
NN
3765.PHONY: check-bfd maybe-check-bfd
3766maybe-check-bfd:
6bd3dfaa
PB
3767@if bfd
3768maybe-check-bfd: check-bfd
2a4cbe27 3769
4fa63067
NN
3770check-bfd:
3771 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3772 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 3773 $(SET_LIB_PATH) \
378fce5b 3774 $(HOST_EXPORTS) \
72b2455a 3775 (cd bfd && $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 3776
6bd3dfaa 3777@endif bfd
2a4cbe27 3778
4fa63067
NN
3779.PHONY: install-bfd maybe-install-bfd
3780maybe-install-bfd:
6bd3dfaa
PB
3781@if bfd
3782maybe-install-bfd: install-bfd
2a4cbe27 3783
4fa63067
NN
3784install-bfd: installdirs
3785 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3786 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 3787 $(SET_LIB_PATH) \
378fce5b 3788 $(HOST_EXPORTS) \
72b2455a 3789 (cd bfd && $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 3790
6bd3dfaa 3791@endif bfd
2a4cbe27 3792
4fa63067 3793# Other targets (info, dvi, etc.)
2a4cbe27 3794
4fa63067
NN
3795.PHONY: maybe-info-bfd info-bfd
3796maybe-info-bfd:
6bd3dfaa
PB
3797@if bfd
3798maybe-info-bfd: info-bfd
4fa63067
NN
3799
3800info-bfd: \
3801 configure-bfd
3802 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3803 r=`${PWD_COMMAND}`; export r; \
3804 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 3805 $(SET_LIB_PATH) \
378fce5b 3806 $(HOST_EXPORTS) \
b813574b 3807 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3808 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3809 done; \
4fa63067
NN
3810 echo "Doing info in bfd" ; \
3811 (cd bfd && \
2a4cbe27
NN
3812 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3813 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3814 "RANLIB=$${RANLIB}" \
3815 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 3816 info) \
2a4cbe27
NN
3817 || exit 1
3818
6bd3dfaa 3819@endif bfd
2a4cbe27 3820
4fa63067
NN
3821.PHONY: maybe-dvi-bfd dvi-bfd
3822maybe-dvi-bfd:
6bd3dfaa
PB
3823@if bfd
3824maybe-dvi-bfd: dvi-bfd
2a4cbe27 3825
4fa63067
NN
3826dvi-bfd: \
3827 configure-bfd
3828 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3829 r=`${PWD_COMMAND}`; export r; \
3830 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 3831 $(SET_LIB_PATH) \
378fce5b 3832 $(HOST_EXPORTS) \
b813574b 3833 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3834 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3835 done; \
4fa63067
NN
3836 echo "Doing dvi in bfd" ; \
3837 (cd bfd && \
2a4cbe27
NN
3838 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3839 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3840 "RANLIB=$${RANLIB}" \
3841 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 3842 dvi) \
2a4cbe27
NN
3843 || exit 1
3844
6bd3dfaa 3845@endif bfd
2a4cbe27 3846
4fa63067
NN
3847.PHONY: maybe-TAGS-bfd TAGS-bfd
3848maybe-TAGS-bfd:
6bd3dfaa
PB
3849@if bfd
3850maybe-TAGS-bfd: TAGS-bfd
2a4cbe27 3851
4fa63067
NN
3852TAGS-bfd: \
3853 configure-bfd
3854 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3855 r=`${PWD_COMMAND}`; export r; \
3856 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 3857 $(SET_LIB_PATH) \
378fce5b 3858 $(HOST_EXPORTS) \
b813574b 3859 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3860 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3861 done; \
4fa63067
NN
3862 echo "Doing TAGS in bfd" ; \
3863 (cd bfd && \
2a4cbe27
NN
3864 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3865 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3866 "RANLIB=$${RANLIB}" \
3867 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 3868 TAGS) \
2a4cbe27
NN
3869 || exit 1
3870
6bd3dfaa 3871@endif bfd
2a4cbe27 3872
4fa63067
NN
3873.PHONY: maybe-install-info-bfd install-info-bfd
3874maybe-install-info-bfd:
6bd3dfaa
PB
3875@if bfd
3876maybe-install-info-bfd: install-info-bfd
2a4cbe27 3877
4fa63067
NN
3878install-info-bfd: \
3879 configure-bfd \
3880 info-bfd
3881 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3882 r=`${PWD_COMMAND}`; export r; \
3883 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 3884 $(SET_LIB_PATH) \
378fce5b 3885 $(HOST_EXPORTS) \
b813574b 3886 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3887 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3888 done; \
4fa63067
NN
3889 echo "Doing install-info in bfd" ; \
3890 (cd bfd && \
2a4cbe27
NN
3891 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3892 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3893 "RANLIB=$${RANLIB}" \
3894 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 3895 install-info) \
2a4cbe27
NN
3896 || exit 1
3897
6bd3dfaa 3898@endif bfd
2a4cbe27 3899
4fa63067
NN
3900.PHONY: maybe-installcheck-bfd installcheck-bfd
3901maybe-installcheck-bfd:
6bd3dfaa
PB
3902@if bfd
3903maybe-installcheck-bfd: installcheck-bfd
2a4cbe27 3904
4fa63067
NN
3905installcheck-bfd: \
3906 configure-bfd
3907 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3908 r=`${PWD_COMMAND}`; export r; \
3909 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 3910 $(SET_LIB_PATH) \
378fce5b 3911 $(HOST_EXPORTS) \
b813574b 3912 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3913 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3914 done; \
4fa63067
NN
3915 echo "Doing installcheck in bfd" ; \
3916 (cd bfd && \
2a4cbe27
NN
3917 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3918 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3919 "RANLIB=$${RANLIB}" \
3920 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 3921 installcheck) \
2a4cbe27
NN
3922 || exit 1
3923
6bd3dfaa 3924@endif bfd
2a4cbe27 3925
4fa63067
NN
3926.PHONY: maybe-mostlyclean-bfd mostlyclean-bfd
3927maybe-mostlyclean-bfd:
6bd3dfaa
PB
3928@if bfd
3929maybe-mostlyclean-bfd: mostlyclean-bfd
2a4cbe27 3930
4fa63067
NN
3931mostlyclean-bfd:
3932 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3933 r=`${PWD_COMMAND}`; export r; \
3934 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 3935 $(SET_LIB_PATH) \
378fce5b 3936 $(HOST_EXPORTS) \
b813574b 3937 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3938 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3939 done; \
4fa63067
NN
3940 echo "Doing mostlyclean in bfd" ; \
3941 (cd bfd && \
2a4cbe27
NN
3942 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3943 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3944 "RANLIB=$${RANLIB}" \
3945 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 3946 mostlyclean) \
2a4cbe27
NN
3947 || exit 1
3948
6bd3dfaa 3949@endif bfd
2a4cbe27 3950
4fa63067
NN
3951.PHONY: maybe-clean-bfd clean-bfd
3952maybe-clean-bfd:
6bd3dfaa
PB
3953@if bfd
3954maybe-clean-bfd: clean-bfd
2a4cbe27 3955
4fa63067
NN
3956clean-bfd:
3957 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3958 r=`${PWD_COMMAND}`; export r; \
3959 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 3960 $(SET_LIB_PATH) \
378fce5b 3961 $(HOST_EXPORTS) \
b813574b 3962 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3963 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3964 done; \
4fa63067
NN
3965 echo "Doing clean in bfd" ; \
3966 (cd bfd && \
2a4cbe27
NN
3967 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3968 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3969 "RANLIB=$${RANLIB}" \
3970 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 3971 clean) \
2a4cbe27
NN
3972 || exit 1
3973
6bd3dfaa 3974@endif bfd
2a4cbe27 3975
4fa63067
NN
3976.PHONY: maybe-distclean-bfd distclean-bfd
3977maybe-distclean-bfd:
6bd3dfaa
PB
3978@if bfd
3979maybe-distclean-bfd: distclean-bfd
2a4cbe27 3980
4fa63067
NN
3981distclean-bfd:
3982 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3983 r=`${PWD_COMMAND}`; export r; \
3984 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 3985 $(SET_LIB_PATH) \
378fce5b 3986 $(HOST_EXPORTS) \
b813574b 3987 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3988 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3989 done; \
4fa63067
NN
3990 echo "Doing distclean in bfd" ; \
3991 (cd bfd && \
2a4cbe27
NN
3992 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3993 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3994 "RANLIB=$${RANLIB}" \
3995 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 3996 distclean) \
2a4cbe27
NN
3997 || exit 1
3998
6bd3dfaa 3999@endif bfd
2a4cbe27 4000
4fa63067
NN
4001.PHONY: maybe-maintainer-clean-bfd maintainer-clean-bfd
4002maybe-maintainer-clean-bfd:
6bd3dfaa
PB
4003@if bfd
4004maybe-maintainer-clean-bfd: maintainer-clean-bfd
a2592b1b 4005
4fa63067
NN
4006maintainer-clean-bfd:
4007 @[ -f ./bfd/Makefile ] || exit 0; \
a2592b1b
DD
4008 r=`${PWD_COMMAND}`; export r; \
4009 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4010 $(SET_LIB_PATH) \
378fce5b 4011 $(HOST_EXPORTS) \
b813574b 4012 for flag in $(EXTRA_HOST_FLAGS) ; do \
a2592b1b
DD
4013 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4014 done; \
4fa63067
NN
4015 echo "Doing maintainer-clean in bfd" ; \
4016 (cd bfd && \
a2592b1b
DD
4017 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4018 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4019 "RANLIB=$${RANLIB}" \
4020 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 4021 maintainer-clean) \
a2592b1b
DD
4022 || exit 1
4023
6bd3dfaa 4024@endif bfd
a2592b1b 4025
2a4cbe27 4026
4fa63067
NN
4027.PHONY: configure-opcodes maybe-configure-opcodes
4028maybe-configure-opcodes:
6bd3dfaa
PB
4029@if opcodes
4030maybe-configure-opcodes: configure-opcodes
4fa63067 4031configure-opcodes:
72b2455a
PB
4032 @test -f stage_last && exit 0; \
4033 test ! -f opcodes/Makefile || exit 0; \
4fa63067
NN
4034 [ -d opcodes ] || mkdir opcodes; \
4035 r=`${PWD_COMMAND}`; export r; \
4036 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4037 $(HOST_EXPORTS) \
4fa63067
NN
4038 echo Configuring in opcodes; \
4039 cd opcodes || exit 1; \
4040 case $(srcdir) in \
4041 \.) \
4042 srcdiroption="--srcdir=."; \
4043 libsrcdir=".";; \
4044 /* | [A-Za-z]:[\\/]*) \
4045 srcdiroption="--srcdir=$(srcdir)/opcodes"; \
4046 libsrcdir="$$s/opcodes";; \
4047 *) \
4048 srcdiroption="--srcdir=../$(srcdir)/opcodes"; \
4049 libsrcdir="$$s/opcodes";; \
4050 esac; \
4051 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 4052 $(HOST_CONFIGARGS) $${srcdiroption} \
4fa63067 4053 || exit 1
6bd3dfaa 4054@endif opcodes
2a4cbe27 4055
4fa63067
NN
4056.PHONY: all-opcodes maybe-all-opcodes
4057maybe-all-opcodes:
6bd3dfaa
PB
4058@if opcodes
4059maybe-all-opcodes: all-opcodes
4fa63067 4060all-opcodes: configure-opcodes
72b2455a
PB
4061 @test -f stage_last && exit 0; \
4062 r=`${PWD_COMMAND}`; export r; \
4fa63067
NN
4063 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4064 $(SET_LIB_PATH) \
378fce5b 4065 $(HOST_EXPORTS) \
7ffa0b57 4066 (cd opcodes && $(MAKE) $(FLAGS_TO_PASS) all)
6bd3dfaa 4067@endif opcodes
2a4cbe27 4068
4fa63067
NN
4069.PHONY: check-opcodes maybe-check-opcodes
4070maybe-check-opcodes:
6bd3dfaa
PB
4071@if opcodes
4072maybe-check-opcodes: check-opcodes
4fa63067
NN
4073
4074check-opcodes:
4075 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4076 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 4077 $(SET_LIB_PATH) \
378fce5b 4078 $(HOST_EXPORTS) \
72b2455a 4079 (cd opcodes && $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 4080
6bd3dfaa 4081@endif opcodes
2a4cbe27 4082
4fa63067
NN
4083.PHONY: install-opcodes maybe-install-opcodes
4084maybe-install-opcodes:
6bd3dfaa
PB
4085@if opcodes
4086maybe-install-opcodes: install-opcodes
2a4cbe27 4087
4fa63067
NN
4088install-opcodes: installdirs
4089 @r=`${PWD_COMMAND}`; export r; \
4090 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4091 $(SET_LIB_PATH) \
378fce5b 4092 $(HOST_EXPORTS) \
72b2455a 4093 (cd opcodes && $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 4094
6bd3dfaa 4095@endif opcodes
4fa63067
NN
4096
4097# Other targets (info, dvi, etc.)
4098
4099.PHONY: maybe-info-opcodes info-opcodes
4100maybe-info-opcodes:
6bd3dfaa
PB
4101@if opcodes
4102maybe-info-opcodes: info-opcodes
4fa63067
NN
4103
4104info-opcodes: \
4105 configure-opcodes
4106 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4107 r=`${PWD_COMMAND}`; export r; \
4108 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 4109 $(SET_LIB_PATH) \
378fce5b 4110 $(HOST_EXPORTS) \
b813574b 4111 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4112 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4113 done; \
4fa63067
NN
4114 echo "Doing info in opcodes" ; \
4115 (cd opcodes && \
2a4cbe27
NN
4116 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4117 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4118 "RANLIB=$${RANLIB}" \
4119 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 4120 info) \
2a4cbe27
NN
4121 || exit 1
4122
6bd3dfaa 4123@endif opcodes
2a4cbe27 4124
4fa63067
NN
4125.PHONY: maybe-dvi-opcodes dvi-opcodes
4126maybe-dvi-opcodes:
6bd3dfaa
PB
4127@if opcodes
4128maybe-dvi-opcodes: dvi-opcodes
2a4cbe27 4129
4fa63067
NN
4130dvi-opcodes: \
4131 configure-opcodes
4132 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4133 r=`${PWD_COMMAND}`; export r; \
4134 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 4135 $(SET_LIB_PATH) \
378fce5b 4136 $(HOST_EXPORTS) \
b813574b 4137 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4138 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4139 done; \
4fa63067
NN
4140 echo "Doing dvi in opcodes" ; \
4141 (cd opcodes && \
2a4cbe27
NN
4142 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4143 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4144 "RANLIB=$${RANLIB}" \
4145 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 4146 dvi) \
2a4cbe27
NN
4147 || exit 1
4148
6bd3dfaa 4149@endif opcodes
2a4cbe27 4150
4fa63067
NN
4151.PHONY: maybe-TAGS-opcodes TAGS-opcodes
4152maybe-TAGS-opcodes:
6bd3dfaa
PB
4153@if opcodes
4154maybe-TAGS-opcodes: TAGS-opcodes
2a4cbe27 4155
4fa63067
NN
4156TAGS-opcodes: \
4157 configure-opcodes
4158 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4159 r=`${PWD_COMMAND}`; export r; \
4160 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 4161 $(SET_LIB_PATH) \
378fce5b 4162 $(HOST_EXPORTS) \
b813574b 4163 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4164 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4165 done; \
4fa63067
NN
4166 echo "Doing TAGS in opcodes" ; \
4167 (cd opcodes && \
2a4cbe27
NN
4168 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4169 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4170 "RANLIB=$${RANLIB}" \
4171 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 4172 TAGS) \
2a4cbe27
NN
4173 || exit 1
4174
6bd3dfaa 4175@endif opcodes
2a4cbe27 4176
4fa63067
NN
4177.PHONY: maybe-install-info-opcodes install-info-opcodes
4178maybe-install-info-opcodes:
6bd3dfaa
PB
4179@if opcodes
4180maybe-install-info-opcodes: install-info-opcodes
2a4cbe27 4181
4fa63067
NN
4182install-info-opcodes: \
4183 configure-opcodes \
4184 info-opcodes
4185 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4186 r=`${PWD_COMMAND}`; export r; \
4187 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 4188 $(SET_LIB_PATH) \
378fce5b 4189 $(HOST_EXPORTS) \
b813574b 4190 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4191 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4192 done; \
4fa63067
NN
4193 echo "Doing install-info in opcodes" ; \
4194 (cd opcodes && \
2a4cbe27
NN
4195 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4196 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4197 "RANLIB=$${RANLIB}" \
4198 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 4199 install-info) \
2a4cbe27
NN
4200 || exit 1
4201
6bd3dfaa 4202@endif opcodes
2a4cbe27 4203
4fa63067
NN
4204.PHONY: maybe-installcheck-opcodes installcheck-opcodes
4205maybe-installcheck-opcodes:
6bd3dfaa
PB
4206@if opcodes
4207maybe-installcheck-opcodes: installcheck-opcodes
2a4cbe27 4208
4fa63067
NN
4209installcheck-opcodes: \
4210 configure-opcodes
4211 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4212 r=`${PWD_COMMAND}`; export r; \
4213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 4214 $(SET_LIB_PATH) \
378fce5b 4215 $(HOST_EXPORTS) \
b813574b 4216 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4217 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4218 done; \
4fa63067
NN
4219 echo "Doing installcheck in opcodes" ; \
4220 (cd opcodes && \
2a4cbe27
NN
4221 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4222 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4223 "RANLIB=$${RANLIB}" \
4224 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 4225 installcheck) \
2a4cbe27
NN
4226 || exit 1
4227
6bd3dfaa 4228@endif opcodes
2a4cbe27
NN
4229
4230.PHONY: maybe-mostlyclean-opcodes mostlyclean-opcodes
4231maybe-mostlyclean-opcodes:
6bd3dfaa
PB
4232@if opcodes
4233maybe-mostlyclean-opcodes: mostlyclean-opcodes
2a4cbe27
NN
4234
4235mostlyclean-opcodes:
4236 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4237 r=`${PWD_COMMAND}`; export r; \
4238 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 4239 $(SET_LIB_PATH) \
378fce5b 4240 $(HOST_EXPORTS) \
b813574b 4241 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4242 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4243 done; \
4244 echo "Doing mostlyclean in opcodes" ; \
4245 (cd opcodes && \
4246 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4247 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4248 "RANLIB=$${RANLIB}" \
4249 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 4250 mostlyclean) \
2a4cbe27
NN
4251 || exit 1
4252
6bd3dfaa 4253@endif opcodes
2a4cbe27 4254
4fa63067
NN
4255.PHONY: maybe-clean-opcodes clean-opcodes
4256maybe-clean-opcodes:
6bd3dfaa
PB
4257@if opcodes
4258maybe-clean-opcodes: clean-opcodes
2a4cbe27 4259
4fa63067
NN
4260clean-opcodes:
4261 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4262 r=`${PWD_COMMAND}`; export r; \
4263 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 4264 $(SET_LIB_PATH) \
378fce5b 4265 $(HOST_EXPORTS) \
b813574b 4266 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4267 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4268 done; \
4fa63067
NN
4269 echo "Doing clean in opcodes" ; \
4270 (cd opcodes && \
2a4cbe27
NN
4271 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4272 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4273 "RANLIB=$${RANLIB}" \
4274 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 4275 clean) \
2a4cbe27
NN
4276 || exit 1
4277
6bd3dfaa 4278@endif opcodes
2a4cbe27 4279
4fa63067
NN
4280.PHONY: maybe-distclean-opcodes distclean-opcodes
4281maybe-distclean-opcodes:
6bd3dfaa
PB
4282@if opcodes
4283maybe-distclean-opcodes: distclean-opcodes
2a4cbe27 4284
4fa63067
NN
4285distclean-opcodes:
4286 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4287 r=`${PWD_COMMAND}`; export r; \
4288 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 4289 $(SET_LIB_PATH) \
378fce5b 4290 $(HOST_EXPORTS) \
b813574b 4291 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4292 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4293 done; \
4fa63067
NN
4294 echo "Doing distclean in opcodes" ; \
4295 (cd opcodes && \
2a4cbe27
NN
4296 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4297 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4298 "RANLIB=$${RANLIB}" \
4299 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 4300 distclean) \
2a4cbe27
NN
4301 || exit 1
4302
6bd3dfaa 4303@endif opcodes
2a4cbe27 4304
4fa63067
NN
4305.PHONY: maybe-maintainer-clean-opcodes maintainer-clean-opcodes
4306maybe-maintainer-clean-opcodes:
6bd3dfaa
PB
4307@if opcodes
4308maybe-maintainer-clean-opcodes: maintainer-clean-opcodes
2a4cbe27 4309
4fa63067
NN
4310maintainer-clean-opcodes:
4311 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4312 r=`${PWD_COMMAND}`; export r; \
4313 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 4314 $(SET_LIB_PATH) \
378fce5b 4315 $(HOST_EXPORTS) \
b813574b 4316 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4317 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4318 done; \
4fa63067
NN
4319 echo "Doing maintainer-clean in opcodes" ; \
4320 (cd opcodes && \
2a4cbe27
NN
4321 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4322 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4323 "RANLIB=$${RANLIB}" \
4324 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 4325 maintainer-clean) \
2a4cbe27
NN
4326 || exit 1
4327
6bd3dfaa 4328@endif opcodes
2a4cbe27 4329
2a4cbe27 4330
4fa63067
NN
4331.PHONY: configure-binutils maybe-configure-binutils
4332maybe-configure-binutils:
6bd3dfaa
PB
4333@if binutils
4334maybe-configure-binutils: configure-binutils
4fa63067 4335configure-binutils:
72b2455a
PB
4336 @test -f stage_last && exit 0; \
4337 test ! -f binutils/Makefile || exit 0; \
4fa63067 4338 [ -d binutils ] || mkdir binutils; \
b40e3958
L
4339 r=`${PWD_COMMAND}`; export r; \
4340 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4341 $(HOST_EXPORTS) \
4fa63067
NN
4342 echo Configuring in binutils; \
4343 cd binutils || exit 1; \
4344 case $(srcdir) in \
4345 \.) \
4346 srcdiroption="--srcdir=."; \
4347 libsrcdir=".";; \
4348 /* | [A-Za-z]:[\\/]*) \
4349 srcdiroption="--srcdir=$(srcdir)/binutils"; \
4350 libsrcdir="$$s/binutils";; \
4351 *) \
4352 srcdiroption="--srcdir=../$(srcdir)/binutils"; \
4353 libsrcdir="$$s/binutils";; \
4354 esac; \
4355 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 4356 $(HOST_CONFIGARGS) $${srcdiroption} \
2a4cbe27 4357 || exit 1
6bd3dfaa 4358@endif binutils
2a4cbe27 4359
4fa63067
NN
4360.PHONY: all-binutils maybe-all-binutils
4361maybe-all-binutils:
6bd3dfaa
PB
4362@if binutils
4363maybe-all-binutils: all-binutils
4fa63067 4364all-binutils: configure-binutils
72b2455a
PB
4365 @test -f stage_last && exit 0; \
4366 r=`${PWD_COMMAND}`; export r; \
b40e3958 4367 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 4368 $(SET_LIB_PATH) \
378fce5b 4369 $(HOST_EXPORTS) \
7ffa0b57 4370 (cd binutils && $(MAKE) $(FLAGS_TO_PASS) all)
6bd3dfaa 4371@endif binutils
4fa63067
NN
4372
4373.PHONY: check-binutils maybe-check-binutils
4374maybe-check-binutils:
6bd3dfaa
PB
4375@if binutils
4376maybe-check-binutils: check-binutils
4fa63067
NN
4377
4378check-binutils:
4379 @r=`${PWD_COMMAND}`; export r; \
4380 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4381 $(SET_LIB_PATH) \
378fce5b 4382 $(HOST_EXPORTS) \
72b2455a 4383 (cd binutils && $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 4384
6bd3dfaa 4385@endif binutils
2a4cbe27 4386
4fa63067
NN
4387.PHONY: install-binutils maybe-install-binutils
4388maybe-install-binutils:
6bd3dfaa
PB
4389@if binutils
4390maybe-install-binutils: install-binutils
2a4cbe27 4391
4fa63067
NN
4392install-binutils: installdirs
4393 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4394 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 4395 $(SET_LIB_PATH) \
378fce5b 4396 $(HOST_EXPORTS) \
72b2455a 4397 (cd binutils && $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 4398
6bd3dfaa 4399@endif binutils
2a4cbe27 4400
4fa63067 4401# Other targets (info, dvi, etc.)
2a4cbe27 4402
4fa63067
NN
4403.PHONY: maybe-info-binutils info-binutils
4404maybe-info-binutils:
6bd3dfaa
PB
4405@if binutils
4406maybe-info-binutils: info-binutils
4fa63067
NN
4407
4408info-binutils: \
4409 configure-binutils
4410 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
4411 r=`${PWD_COMMAND}`; export r; \
4412 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 4413 $(SET_LIB_PATH) \
378fce5b 4414 $(HOST_EXPORTS) \
b813574b 4415 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4416 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4417 done; \
4fa63067
NN
4418 echo "Doing info in binutils" ; \
4419 (cd binutils && \
2a4cbe27
NN
4420 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4421 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4422 "RANLIB=$${RANLIB}" \
4423 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 4424 info) \
2a4cbe27
NN
4425 || exit 1
4426
6bd3dfaa 4427@endif binutils
2a4cbe27 4428
4fa63067
NN
4429.PHONY: maybe-dvi-binutils dvi-binutils
4430maybe-dvi-binutils:
6bd3dfaa
PB
4431@if binutils
4432maybe-dvi-binutils: dvi-binutils
2a4cbe27 4433
4fa63067
NN
4434dvi-binutils: \
4435 configure-binutils
4436 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
4437 r=`${PWD_COMMAND}`; export r; \
4438 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 4439 $(SET_LIB_PATH) \
378fce5b 4440 $(HOST_EXPORTS) \
b813574b 4441 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4442 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4443 done; \
4fa63067
NN
4444 echo "Doing dvi in binutils" ; \
4445 (cd binutils && \
2a4cbe27
NN
4446 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4447 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4448 "RANLIB=$${RANLIB}" \
4449 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 4450 dvi) \
2a4cbe27
NN
4451 || exit 1
4452
6bd3dfaa 4453@endif binutils
2a4cbe27 4454
4fa63067
NN
4455.PHONY: maybe-TAGS-binutils TAGS-binutils
4456maybe-TAGS-binutils:
6bd3dfaa
PB
4457@if binutils
4458maybe-TAGS-binutils: TAGS-binutils
2a4cbe27 4459
4fa63067
NN
4460TAGS-binutils: \
4461 configure-binutils
4462 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
4463 r=`${PWD_COMMAND}`; export r; \
4464 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 4465 $(SET_LIB_PATH) \
378fce5b 4466 $(HOST_EXPORTS) \
b813574b 4467 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4468 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4469 done; \
4fa63067
NN
4470 echo "Doing TAGS in binutils" ; \
4471 (cd binutils && \
2a4cbe27
NN
4472 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4473 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4474 "RANLIB=$${RANLIB}" \
4475 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 4476 TAGS) \
2a4cbe27
NN
4477 || exit 1
4478
6bd3dfaa 4479@endif binutils
2a4cbe27 4480
4fa63067
NN
4481.PHONY: maybe-install-info-binutils install-info-binutils
4482maybe-install-info-binutils:
6bd3dfaa
PB
4483@if binutils
4484maybe-install-info-binutils: install-info-binutils
2a4cbe27 4485
4fa63067
NN
4486install-info-binutils: \
4487 configure-binutils \
4488 info-binutils
4489 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
4490 r=`${PWD_COMMAND}`; export r; \
4491 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 4492 $(SET_LIB_PATH) \
378fce5b 4493 $(HOST_EXPORTS) \
b813574b 4494 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4495 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4496 done; \
4fa63067
NN
4497 echo "Doing install-info in binutils" ; \
4498 (cd binutils && \
2a4cbe27
NN
4499 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4500 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4501 "RANLIB=$${RANLIB}" \
4502 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 4503 install-info) \
2a4cbe27
NN
4504 || exit 1
4505
6bd3dfaa 4506@endif binutils
2a4cbe27 4507
4fa63067
NN
4508.PHONY: maybe-installcheck-binutils installcheck-binutils
4509maybe-installcheck-binutils:
6bd3dfaa
PB
4510@if binutils
4511maybe-installcheck-binutils: installcheck-binutils
2a4cbe27 4512
4fa63067
NN
4513installcheck-binutils: \
4514 configure-binutils
4515 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
4516 r=`${PWD_COMMAND}`; export r; \
4517 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 4518 $(SET_LIB_PATH) \
378fce5b 4519 $(HOST_EXPORTS) \
b813574b 4520 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4521 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4522 done; \
4fa63067
NN
4523 echo "Doing installcheck in binutils" ; \
4524 (cd binutils && \
2a4cbe27
NN
4525 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4526 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4527 "RANLIB=$${RANLIB}" \
4528 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 4529 installcheck) \
2a4cbe27
NN
4530 || exit 1
4531
6bd3dfaa 4532@endif binutils
2a4cbe27 4533
4fa63067
NN
4534.PHONY: maybe-mostlyclean-binutils mostlyclean-binutils
4535maybe-mostlyclean-binutils:
6bd3dfaa
PB
4536@if binutils
4537maybe-mostlyclean-binutils: mostlyclean-binutils
2a4cbe27 4538
4fa63067
NN
4539mostlyclean-binutils:
4540 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
4541 r=`${PWD_COMMAND}`; export r; \
4542 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 4543 $(SET_LIB_PATH) \
378fce5b 4544 $(HOST_EXPORTS) \
b813574b 4545 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4546 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4547 done; \
4fa63067
NN
4548 echo "Doing mostlyclean in binutils" ; \
4549 (cd binutils && \
2a4cbe27
NN
4550 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4551 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4552 "RANLIB=$${RANLIB}" \
4553 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 4554 mostlyclean) \
2a4cbe27
NN
4555 || exit 1
4556
6bd3dfaa 4557@endif binutils
2a4cbe27 4558
4fa63067
NN
4559.PHONY: maybe-clean-binutils clean-binutils
4560maybe-clean-binutils:
6bd3dfaa
PB
4561@if binutils
4562maybe-clean-binutils: clean-binutils
2a4cbe27 4563
4fa63067
NN
4564clean-binutils:
4565 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
4566 r=`${PWD_COMMAND}`; export r; \
4567 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 4568 $(SET_LIB_PATH) \
378fce5b 4569 $(HOST_EXPORTS) \
b813574b 4570 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4571 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4572 done; \
4fa63067
NN
4573 echo "Doing clean in binutils" ; \
4574 (cd binutils && \
2a4cbe27
NN
4575 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4576 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4577 "RANLIB=$${RANLIB}" \
4578 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 4579 clean) \
2a4cbe27
NN
4580 || exit 1
4581
6bd3dfaa 4582@endif binutils
2a4cbe27 4583
4fa63067
NN
4584.PHONY: maybe-distclean-binutils distclean-binutils
4585maybe-distclean-binutils:
6bd3dfaa
PB
4586@if binutils
4587maybe-distclean-binutils: distclean-binutils
2a4cbe27 4588
4fa63067
NN
4589distclean-binutils:
4590 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
4591 r=`${PWD_COMMAND}`; export r; \
4592 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 4593 $(SET_LIB_PATH) \
378fce5b 4594 $(HOST_EXPORTS) \
b813574b 4595 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4596 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4597 done; \
4fa63067
NN
4598 echo "Doing distclean in binutils" ; \
4599 (cd binutils && \
2a4cbe27
NN
4600 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4601 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4602 "RANLIB=$${RANLIB}" \
4603 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 4604 distclean) \
2a4cbe27
NN
4605 || exit 1
4606
6bd3dfaa 4607@endif binutils
2a4cbe27 4608
4fa63067
NN
4609.PHONY: maybe-maintainer-clean-binutils maintainer-clean-binutils
4610maybe-maintainer-clean-binutils:
6bd3dfaa
PB
4611@if binutils
4612maybe-maintainer-clean-binutils: maintainer-clean-binutils
2a4cbe27 4613
4fa63067
NN
4614maintainer-clean-binutils:
4615 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
4616 r=`${PWD_COMMAND}`; export r; \
4617 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 4618 $(SET_LIB_PATH) \
378fce5b 4619 $(HOST_EXPORTS) \
b813574b 4620 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4621 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4622 done; \
4fa63067
NN
4623 echo "Doing maintainer-clean in binutils" ; \
4624 (cd binutils && \
2a4cbe27
NN
4625 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4626 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4627 "RANLIB=$${RANLIB}" \
4628 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 4629 maintainer-clean) \
2a4cbe27
NN
4630 || exit 1
4631
6bd3dfaa 4632@endif binutils
2a4cbe27 4633
2a4cbe27 4634
4fa63067
NN
4635.PHONY: configure-bison maybe-configure-bison
4636maybe-configure-bison:
6bd3dfaa
PB
4637@if bison
4638maybe-configure-bison: configure-bison
4fa63067
NN
4639configure-bison:
4640 @test ! -f bison/Makefile || exit 0; \
4641 [ -d bison ] || mkdir bison; \
b40e3958
L
4642 r=`${PWD_COMMAND}`; export r; \
4643 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4644 $(HOST_EXPORTS) \
4fa63067
NN
4645 echo Configuring in bison; \
4646 cd bison || exit 1; \
4647 case $(srcdir) in \
4648 \.) \
4649 srcdiroption="--srcdir=."; \
4650 libsrcdir=".";; \
4651 /* | [A-Za-z]:[\\/]*) \
4652 srcdiroption="--srcdir=$(srcdir)/bison"; \
4653 libsrcdir="$$s/bison";; \
4654 *) \
4655 srcdiroption="--srcdir=../$(srcdir)/bison"; \
4656 libsrcdir="$$s/bison";; \
4657 esac; \
4658 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 4659 $(HOST_CONFIGARGS) $${srcdiroption} \
2a4cbe27 4660 || exit 1
6bd3dfaa 4661@endif bison
2a4cbe27 4662
4fa63067
NN
4663.PHONY: all-bison maybe-all-bison
4664maybe-all-bison:
6bd3dfaa
PB
4665@if bison
4666maybe-all-bison: all-bison
4fa63067
NN
4667all-bison: configure-bison
4668 @r=`${PWD_COMMAND}`; export r; \
4669 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4670 $(SET_LIB_PATH) \
378fce5b 4671 $(HOST_EXPORTS) \
7ffa0b57 4672 (cd bison && $(MAKE) $(FLAGS_TO_PASS) all)
6bd3dfaa 4673@endif bison
2a4cbe27 4674
4fa63067
NN
4675.PHONY: check-bison maybe-check-bison
4676maybe-check-bison:
6bd3dfaa
PB
4677@if bison
4678maybe-check-bison: check-bison
2a4cbe27 4679
4fa63067
NN
4680# This module is only tested in a native toolchain.
4681check-bison:
4682 @if [ '$(host)' = '$(target)' ] ; then \
4683 r=`${PWD_COMMAND}`; export r; \
4684 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4685 $(SET_LIB_PATH) \
378fce5b 4686 $(HOST_EXPORTS) \
7ffa0b57 4687 (cd bison && $(MAKE) $(FLAGS_TO_PASS) check); \
4fa63067
NN
4688 fi
4689
6bd3dfaa 4690@endif bison
4fa63067
NN
4691
4692.PHONY: install-bison maybe-install-bison
4693maybe-install-bison:
6bd3dfaa
PB
4694@if bison
4695maybe-install-bison: install-bison
4fa63067
NN
4696
4697install-bison: installdirs
4698 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4699 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 4700 $(SET_LIB_PATH) \
378fce5b 4701 $(HOST_EXPORTS) \
72b2455a 4702 (cd bison && $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 4703
6bd3dfaa 4704@endif bison
2a4cbe27 4705
4fa63067 4706# Other targets (info, dvi, etc.)
2a4cbe27 4707
4fa63067
NN
4708.PHONY: maybe-info-bison info-bison
4709maybe-info-bison:
6bd3dfaa
PB
4710@if bison
4711maybe-info-bison: info-bison
4fa63067
NN
4712
4713info-bison: \
4714 configure-bison
4715 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
4716 r=`${PWD_COMMAND}`; export r; \
4717 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 4718 $(SET_LIB_PATH) \
378fce5b 4719 $(HOST_EXPORTS) \
b813574b 4720 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4721 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4722 done; \
4fa63067
NN
4723 echo "Doing info in bison" ; \
4724 (cd bison && \
2a4cbe27
NN
4725 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4726 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4727 "RANLIB=$${RANLIB}" \
4728 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 4729 info) \
2a4cbe27
NN
4730 || exit 1
4731
6bd3dfaa 4732@endif bison
2a4cbe27 4733
4fa63067
NN
4734.PHONY: maybe-dvi-bison dvi-bison
4735maybe-dvi-bison:
6bd3dfaa
PB
4736@if bison
4737maybe-dvi-bison: dvi-bison
2a4cbe27 4738
4fa63067
NN
4739dvi-bison: \
4740 configure-bison
4741 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
4742 r=`${PWD_COMMAND}`; export r; \
4743 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 4744 $(SET_LIB_PATH) \
378fce5b 4745 $(HOST_EXPORTS) \
b813574b 4746 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4747 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4748 done; \
4fa63067
NN
4749 echo "Doing dvi in bison" ; \
4750 (cd bison && \
2a4cbe27
NN
4751 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4752 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4753 "RANLIB=$${RANLIB}" \
4754 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 4755 dvi) \
2a4cbe27
NN
4756 || exit 1
4757
6bd3dfaa 4758@endif bison
2a4cbe27 4759
4fa63067
NN
4760.PHONY: maybe-TAGS-bison TAGS-bison
4761maybe-TAGS-bison:
6bd3dfaa
PB
4762@if bison
4763maybe-TAGS-bison: TAGS-bison
2a4cbe27 4764
4fa63067
NN
4765TAGS-bison: \
4766 configure-bison
4767 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
4768 r=`${PWD_COMMAND}`; export r; \
4769 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 4770 $(SET_LIB_PATH) \
378fce5b 4771 $(HOST_EXPORTS) \
b813574b 4772 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4773 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4774 done; \
4fa63067
NN
4775 echo "Doing TAGS in bison" ; \
4776 (cd bison && \
2a4cbe27
NN
4777 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4778 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4779 "RANLIB=$${RANLIB}" \
4780 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 4781 TAGS) \
2a4cbe27
NN
4782 || exit 1
4783
6bd3dfaa 4784@endif bison
2a4cbe27 4785
4fa63067
NN
4786.PHONY: maybe-install-info-bison install-info-bison
4787maybe-install-info-bison:
6bd3dfaa
PB
4788@if bison
4789maybe-install-info-bison: install-info-bison
2a4cbe27 4790
4fa63067
NN
4791install-info-bison: \
4792 configure-bison \
4793 info-bison
4794 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
4795 r=`${PWD_COMMAND}`; export r; \
4796 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 4797 $(SET_LIB_PATH) \
378fce5b 4798 $(HOST_EXPORTS) \
b813574b 4799 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4800 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4801 done; \
4fa63067
NN
4802 echo "Doing install-info in bison" ; \
4803 (cd bison && \
2a4cbe27
NN
4804 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4805 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4806 "RANLIB=$${RANLIB}" \
4807 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 4808 install-info) \
2a4cbe27
NN
4809 || exit 1
4810
6bd3dfaa 4811@endif bison
2a4cbe27 4812
4fa63067
NN
4813.PHONY: maybe-installcheck-bison installcheck-bison
4814maybe-installcheck-bison:
6bd3dfaa
PB
4815@if bison
4816maybe-installcheck-bison: installcheck-bison
2a4cbe27 4817
4fa63067
NN
4818installcheck-bison: \
4819 configure-bison
4820 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
4821 r=`${PWD_COMMAND}`; export r; \
4822 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 4823 $(SET_LIB_PATH) \
378fce5b 4824 $(HOST_EXPORTS) \
b813574b 4825 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4826 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4827 done; \
4fa63067
NN
4828 echo "Doing installcheck in bison" ; \
4829 (cd bison && \
2a4cbe27
NN
4830 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4831 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4832 "RANLIB=$${RANLIB}" \
4833 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 4834 installcheck) \
2a4cbe27
NN
4835 || exit 1
4836
6bd3dfaa 4837@endif bison
2a4cbe27 4838
4fa63067
NN
4839.PHONY: maybe-mostlyclean-bison mostlyclean-bison
4840maybe-mostlyclean-bison:
6bd3dfaa
PB
4841@if bison
4842maybe-mostlyclean-bison: mostlyclean-bison
2a4cbe27 4843
4fa63067
NN
4844mostlyclean-bison:
4845 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
4846 r=`${PWD_COMMAND}`; export r; \
4847 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 4848 $(SET_LIB_PATH) \
378fce5b 4849 $(HOST_EXPORTS) \
b813574b 4850 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4851 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4852 done; \
4fa63067
NN
4853 echo "Doing mostlyclean in bison" ; \
4854 (cd bison && \
2a4cbe27
NN
4855 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4856 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4857 "RANLIB=$${RANLIB}" \
4858 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 4859 mostlyclean) \
2a4cbe27
NN
4860 || exit 1
4861
6bd3dfaa 4862@endif bison
2a4cbe27 4863
4fa63067
NN
4864.PHONY: maybe-clean-bison clean-bison
4865maybe-clean-bison:
6bd3dfaa
PB
4866@if bison
4867maybe-clean-bison: clean-bison
2a4cbe27 4868
4fa63067
NN
4869clean-bison:
4870 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
4871 r=`${PWD_COMMAND}`; export r; \
4872 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 4873 $(SET_LIB_PATH) \
378fce5b 4874 $(HOST_EXPORTS) \
b813574b 4875 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4876 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4877 done; \
4fa63067
NN
4878 echo "Doing clean in bison" ; \
4879 (cd bison && \
2a4cbe27
NN
4880 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4881 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4882 "RANLIB=$${RANLIB}" \
4883 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 4884 clean) \
2a4cbe27
NN
4885 || exit 1
4886
6bd3dfaa 4887@endif bison
2a4cbe27 4888
4fa63067
NN
4889.PHONY: maybe-distclean-bison distclean-bison
4890maybe-distclean-bison:
6bd3dfaa
PB
4891@if bison
4892maybe-distclean-bison: distclean-bison
2a4cbe27 4893
4fa63067
NN
4894distclean-bison:
4895 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
4896 r=`${PWD_COMMAND}`; export r; \
4897 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 4898 $(SET_LIB_PATH) \
378fce5b 4899 $(HOST_EXPORTS) \
b813574b 4900 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4901 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4902 done; \
4fa63067
NN
4903 echo "Doing distclean in bison" ; \
4904 (cd bison && \
2a4cbe27
NN
4905 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4906 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4907 "RANLIB=$${RANLIB}" \
4908 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 4909 distclean) \
2a4cbe27
NN
4910 || exit 1
4911
6bd3dfaa 4912@endif bison
2a4cbe27 4913
4fa63067
NN
4914.PHONY: maybe-maintainer-clean-bison maintainer-clean-bison
4915maybe-maintainer-clean-bison:
6bd3dfaa
PB
4916@if bison
4917maybe-maintainer-clean-bison: maintainer-clean-bison
2a4cbe27 4918
4fa63067
NN
4919maintainer-clean-bison:
4920 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
4921 r=`${PWD_COMMAND}`; export r; \
4922 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 4923 $(SET_LIB_PATH) \
378fce5b 4924 $(HOST_EXPORTS) \
b813574b 4925 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4926 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4927 done; \
4fa63067
NN
4928 echo "Doing maintainer-clean in bison" ; \
4929 (cd bison && \
2a4cbe27
NN
4930 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4931 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4932 "RANLIB=$${RANLIB}" \
4933 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 4934 maintainer-clean) \
2a4cbe27
NN
4935 || exit 1
4936
6bd3dfaa 4937@endif bison
2a4cbe27 4938
2a4cbe27 4939
4fa63067
NN
4940.PHONY: configure-byacc maybe-configure-byacc
4941maybe-configure-byacc:
6bd3dfaa
PB
4942@if byacc
4943maybe-configure-byacc: configure-byacc
4fa63067
NN
4944configure-byacc:
4945 @test ! -f byacc/Makefile || exit 0; \
4946 [ -d byacc ] || mkdir byacc; \
4947 r=`${PWD_COMMAND}`; export r; \
4948 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4949 $(HOST_EXPORTS) \
4fa63067
NN
4950 echo Configuring in byacc; \
4951 cd byacc || exit 1; \
4952 case $(srcdir) in \
4953 \.) \
4954 srcdiroption="--srcdir=."; \
4955 libsrcdir=".";; \
4956 /* | [A-Za-z]:[\\/]*) \
4957 srcdiroption="--srcdir=$(srcdir)/byacc"; \
4958 libsrcdir="$$s/byacc";; \
4959 *) \
4960 srcdiroption="--srcdir=../$(srcdir)/byacc"; \
4961 libsrcdir="$$s/byacc";; \
4962 esac; \
4963 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 4964 $(HOST_CONFIGARGS) $${srcdiroption} \
4fa63067 4965 || exit 1
6bd3dfaa 4966@endif byacc
4fa63067
NN
4967
4968.PHONY: all-byacc maybe-all-byacc
4969maybe-all-byacc:
6bd3dfaa
PB
4970@if byacc
4971maybe-all-byacc: all-byacc
4fa63067
NN
4972all-byacc: configure-byacc
4973 @r=`${PWD_COMMAND}`; export r; \
4974 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4975 $(SET_LIB_PATH) \
378fce5b 4976 $(HOST_EXPORTS) \
7ffa0b57 4977 (cd byacc && $(MAKE) $(FLAGS_TO_PASS) all)
6bd3dfaa 4978@endif byacc
4fa63067
NN
4979
4980.PHONY: check-byacc maybe-check-byacc
4981maybe-check-byacc:
6bd3dfaa
PB
4982@if byacc
4983maybe-check-byacc: check-byacc
4fa63067
NN
4984
4985# This module is only tested in a native toolchain.
4986check-byacc:
4987 @if [ '$(host)' = '$(target)' ] ; then \
4988 r=`${PWD_COMMAND}`; export r; \
4989 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4990 $(SET_LIB_PATH) \
378fce5b 4991 $(HOST_EXPORTS) \
7ffa0b57 4992 (cd byacc && $(MAKE) $(FLAGS_TO_PASS) check); \
4fa63067
NN
4993 fi
4994
6bd3dfaa 4995@endif byacc
4fa63067
NN
4996
4997.PHONY: install-byacc maybe-install-byacc
4998maybe-install-byacc:
6bd3dfaa
PB
4999@if byacc
5000maybe-install-byacc: install-byacc
4fa63067
NN
5001
5002install-byacc: installdirs
5003 @r=`${PWD_COMMAND}`; export r; \
5004 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5005 $(SET_LIB_PATH) \
378fce5b 5006 $(HOST_EXPORTS) \
72b2455a 5007 (cd byacc && $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 5008
6bd3dfaa 5009@endif byacc
4fa63067
NN
5010
5011# Other targets (info, dvi, etc.)
5012
5013.PHONY: maybe-info-byacc info-byacc
5014maybe-info-byacc:
6bd3dfaa
PB
5015@if byacc
5016maybe-info-byacc: info-byacc
4fa63067
NN
5017
5018info-byacc: \
5019 configure-byacc
5020 @[ -f ./byacc/Makefile ] || exit 0; \
b40e3958
L
5021 r=`${PWD_COMMAND}`; export r; \
5022 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 5023 $(SET_LIB_PATH) \
378fce5b 5024 $(HOST_EXPORTS) \
b813574b 5025 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5026 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5027 done; \
4fa63067
NN
5028 echo "Doing info in byacc" ; \
5029 (cd byacc && \
2a4cbe27
NN
5030 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5031 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5032 "RANLIB=$${RANLIB}" \
5033 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 5034 info) \
2a4cbe27
NN
5035 || exit 1
5036
6bd3dfaa 5037@endif byacc
2a4cbe27 5038
4fa63067
NN
5039.PHONY: maybe-dvi-byacc dvi-byacc
5040maybe-dvi-byacc:
6bd3dfaa
PB
5041@if byacc
5042maybe-dvi-byacc: dvi-byacc
2a4cbe27 5043
4fa63067
NN
5044dvi-byacc: \
5045 configure-byacc
5046 @[ -f ./byacc/Makefile ] || exit 0; \
b40e3958
L
5047 r=`${PWD_COMMAND}`; export r; \
5048 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 5049 $(SET_LIB_PATH) \
378fce5b 5050 $(HOST_EXPORTS) \
b813574b 5051 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5052 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5053 done; \
4fa63067
NN
5054 echo "Doing dvi in byacc" ; \
5055 (cd byacc && \
2a4cbe27
NN
5056 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5057 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5058 "RANLIB=$${RANLIB}" \
5059 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 5060 dvi) \
2a4cbe27
NN
5061 || exit 1
5062
6bd3dfaa 5063@endif byacc
2a4cbe27 5064
4fa63067
NN
5065.PHONY: maybe-TAGS-byacc TAGS-byacc
5066maybe-TAGS-byacc:
6bd3dfaa
PB
5067@if byacc
5068maybe-TAGS-byacc: TAGS-byacc
2a4cbe27 5069
4fa63067
NN
5070TAGS-byacc: \
5071 configure-byacc
5072 @[ -f ./byacc/Makefile ] || exit 0; \
b40e3958
L
5073 r=`${PWD_COMMAND}`; export r; \
5074 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 5075 $(SET_LIB_PATH) \
378fce5b 5076 $(HOST_EXPORTS) \
b813574b 5077 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5078 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5079 done; \
4fa63067
NN
5080 echo "Doing TAGS in byacc" ; \
5081 (cd byacc && \
2a4cbe27
NN
5082 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5083 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5084 "RANLIB=$${RANLIB}" \
5085 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 5086 TAGS) \
2a4cbe27
NN
5087 || exit 1
5088
6bd3dfaa 5089@endif byacc
2a4cbe27 5090
4fa63067
NN
5091.PHONY: maybe-install-info-byacc install-info-byacc
5092maybe-install-info-byacc:
6bd3dfaa
PB
5093@if byacc
5094maybe-install-info-byacc: install-info-byacc
2a4cbe27 5095
4fa63067
NN
5096install-info-byacc: \
5097 configure-byacc \
5098 info-byacc
5099 @[ -f ./byacc/Makefile ] || exit 0; \
b40e3958
L
5100 r=`${PWD_COMMAND}`; export r; \
5101 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 5102 $(SET_LIB_PATH) \
378fce5b 5103 $(HOST_EXPORTS) \
b813574b 5104 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5105 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5106 done; \
4fa63067
NN
5107 echo "Doing install-info in byacc" ; \
5108 (cd byacc && \
2a4cbe27
NN
5109 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5110 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5111 "RANLIB=$${RANLIB}" \
5112 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 5113 install-info) \
2a4cbe27
NN
5114 || exit 1
5115
6bd3dfaa 5116@endif byacc
2a4cbe27 5117
4fa63067
NN
5118.PHONY: maybe-installcheck-byacc installcheck-byacc
5119maybe-installcheck-byacc:
6bd3dfaa
PB
5120@if byacc
5121maybe-installcheck-byacc: installcheck-byacc
2a4cbe27 5122
4fa63067
NN
5123installcheck-byacc: \
5124 configure-byacc
5125 @[ -f ./byacc/Makefile ] || exit 0; \
b40e3958
L
5126 r=`${PWD_COMMAND}`; export r; \
5127 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 5128 $(SET_LIB_PATH) \
378fce5b 5129 $(HOST_EXPORTS) \
b813574b 5130 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5131 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5132 done; \
4fa63067
NN
5133 echo "Doing installcheck in byacc" ; \
5134 (cd byacc && \
2a4cbe27
NN
5135 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5136 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5137 "RANLIB=$${RANLIB}" \
5138 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 5139 installcheck) \
2a4cbe27
NN
5140 || exit 1
5141
6bd3dfaa 5142@endif byacc
2a4cbe27 5143
4fa63067
NN
5144.PHONY: maybe-mostlyclean-byacc mostlyclean-byacc
5145maybe-mostlyclean-byacc:
6bd3dfaa
PB
5146@if byacc
5147maybe-mostlyclean-byacc: mostlyclean-byacc
2a4cbe27 5148
4fa63067
NN
5149mostlyclean-byacc:
5150 @[ -f ./byacc/Makefile ] || exit 0; \
b40e3958
L
5151 r=`${PWD_COMMAND}`; export r; \
5152 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 5153 $(SET_LIB_PATH) \
378fce5b 5154 $(HOST_EXPORTS) \
b813574b 5155 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5156 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5157 done; \
4fa63067
NN
5158 echo "Doing mostlyclean in byacc" ; \
5159 (cd byacc && \
2a4cbe27
NN
5160 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5161 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5162 "RANLIB=$${RANLIB}" \
5163 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 5164 mostlyclean) \
2a4cbe27
NN
5165 || exit 1
5166
6bd3dfaa 5167@endif byacc
2a4cbe27 5168
4fa63067
NN
5169.PHONY: maybe-clean-byacc clean-byacc
5170maybe-clean-byacc:
6bd3dfaa
PB
5171@if byacc
5172maybe-clean-byacc: clean-byacc
2a4cbe27 5173
4fa63067
NN
5174clean-byacc:
5175 @[ -f ./byacc/Makefile ] || exit 0; \
b40e3958
L
5176 r=`${PWD_COMMAND}`; export r; \
5177 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 5178 $(SET_LIB_PATH) \
378fce5b 5179 $(HOST_EXPORTS) \
b813574b 5180 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5181 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5182 done; \
4fa63067
NN
5183 echo "Doing clean in byacc" ; \
5184 (cd byacc && \
2a4cbe27
NN
5185 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5186 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5187 "RANLIB=$${RANLIB}" \
5188 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 5189 clean) \
2a4cbe27
NN
5190 || exit 1
5191
6bd3dfaa 5192@endif byacc
2a4cbe27 5193
4fa63067
NN
5194.PHONY: maybe-distclean-byacc distclean-byacc
5195maybe-distclean-byacc:
6bd3dfaa
PB
5196@if byacc
5197maybe-distclean-byacc: distclean-byacc
2a4cbe27 5198
4fa63067
NN
5199distclean-byacc:
5200 @[ -f ./byacc/Makefile ] || exit 0; \
b40e3958
L
5201 r=`${PWD_COMMAND}`; export r; \
5202 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 5203 $(SET_LIB_PATH) \
378fce5b 5204 $(HOST_EXPORTS) \
b813574b 5205 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5206 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5207 done; \
4fa63067
NN
5208 echo "Doing distclean in byacc" ; \
5209 (cd byacc && \
2a4cbe27
NN
5210 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5211 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5212 "RANLIB=$${RANLIB}" \
5213 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 5214 distclean) \
2a4cbe27
NN
5215 || exit 1
5216
6bd3dfaa 5217@endif byacc
2a4cbe27 5218
4fa63067
NN
5219.PHONY: maybe-maintainer-clean-byacc maintainer-clean-byacc
5220maybe-maintainer-clean-byacc:
6bd3dfaa
PB
5221@if byacc
5222maybe-maintainer-clean-byacc: maintainer-clean-byacc
2a4cbe27 5223
4fa63067
NN
5224maintainer-clean-byacc:
5225 @[ -f ./byacc/Makefile ] || exit 0; \
b40e3958
L
5226 r=`${PWD_COMMAND}`; export r; \
5227 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 5228 $(SET_LIB_PATH) \
378fce5b 5229 $(HOST_EXPORTS) \
b813574b 5230 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5231 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5232 done; \
4fa63067
NN
5233 echo "Doing maintainer-clean in byacc" ; \
5234 (cd byacc && \
2a4cbe27
NN
5235 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5236 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5237 "RANLIB=$${RANLIB}" \
5238 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 5239 maintainer-clean) \
2a4cbe27
NN
5240 || exit 1
5241
6bd3dfaa 5242@endif byacc
2a4cbe27 5243
2a4cbe27 5244
4fa63067
NN
5245.PHONY: configure-bzip2 maybe-configure-bzip2
5246maybe-configure-bzip2:
6bd3dfaa
PB
5247@if bzip2
5248maybe-configure-bzip2: configure-bzip2
4fa63067
NN
5249configure-bzip2:
5250 @test ! -f bzip2/Makefile || exit 0; \
5251 [ -d bzip2 ] || mkdir bzip2; \
5252 r=`${PWD_COMMAND}`; export r; \
5253 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5254 $(HOST_EXPORTS) \
4fa63067
NN
5255 echo Configuring in bzip2; \
5256 cd bzip2 || exit 1; \
5257 case $(srcdir) in \
5258 \.) \
5259 srcdiroption="--srcdir=."; \
5260 libsrcdir=".";; \
5261 /* | [A-Za-z]:[\\/]*) \
5262 srcdiroption="--srcdir=$(srcdir)/bzip2"; \
5263 libsrcdir="$$s/bzip2";; \
5264 *) \
5265 srcdiroption="--srcdir=../$(srcdir)/bzip2"; \
5266 libsrcdir="$$s/bzip2";; \
5267 esac; \
5268 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 5269 $(HOST_CONFIGARGS) $${srcdiroption} \
4fa63067 5270 || exit 1
6bd3dfaa 5271@endif bzip2
4fa63067
NN
5272
5273.PHONY: all-bzip2 maybe-all-bzip2
5274maybe-all-bzip2:
6bd3dfaa
PB
5275@if bzip2
5276maybe-all-bzip2: all-bzip2
4fa63067
NN
5277all-bzip2: configure-bzip2
5278 @r=`${PWD_COMMAND}`; export r; \
5279 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5280 $(SET_LIB_PATH) \
378fce5b 5281 $(HOST_EXPORTS) \
7ffa0b57 5282 (cd bzip2 && $(MAKE) $(FLAGS_TO_PASS) all)
6bd3dfaa 5283@endif bzip2
4fa63067
NN
5284
5285.PHONY: check-bzip2 maybe-check-bzip2
5286maybe-check-bzip2:
6bd3dfaa
PB
5287@if bzip2
5288maybe-check-bzip2: check-bzip2
4fa63067
NN
5289
5290check-bzip2:
5291 @r=`${PWD_COMMAND}`; export r; \
5292 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5293 $(SET_LIB_PATH) \
378fce5b 5294 $(HOST_EXPORTS) \
72b2455a 5295 (cd bzip2 && $(MAKE) $(FLAGS_TO_PASS) check)
4fa63067 5296
6bd3dfaa 5297@endif bzip2
4fa63067
NN
5298
5299.PHONY: install-bzip2 maybe-install-bzip2
5300maybe-install-bzip2:
6bd3dfaa
PB
5301@if bzip2
5302maybe-install-bzip2: install-bzip2
4fa63067
NN
5303
5304install-bzip2: installdirs
5305 @r=`${PWD_COMMAND}`; export r; \
5306 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5307 $(SET_LIB_PATH) \
378fce5b 5308 $(HOST_EXPORTS) \
72b2455a 5309 (cd bzip2 && $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 5310
6bd3dfaa 5311@endif bzip2
4fa63067
NN
5312
5313# Other targets (info, dvi, etc.)
5314
5315.PHONY: maybe-info-bzip2 info-bzip2
5316maybe-info-bzip2:
6bd3dfaa
PB
5317@if bzip2
5318maybe-info-bzip2: info-bzip2
4fa63067
NN
5319
5320info-bzip2: \
5321 configure-bzip2
5322 @[ -f ./bzip2/Makefile ] || exit 0; \
b40e3958
L
5323 r=`${PWD_COMMAND}`; export r; \
5324 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 5325 $(SET_LIB_PATH) \
378fce5b 5326 $(HOST_EXPORTS) \
b813574b 5327 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5328 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5329 done; \
4fa63067
NN
5330 echo "Doing info in bzip2" ; \
5331 (cd bzip2 && \
2a4cbe27
NN
5332 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5333 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5334 "RANLIB=$${RANLIB}" \
5335 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 5336 info) \
2a4cbe27
NN
5337 || exit 1
5338
6bd3dfaa 5339@endif bzip2
2a4cbe27 5340
4fa63067
NN
5341.PHONY: maybe-dvi-bzip2 dvi-bzip2
5342maybe-dvi-bzip2:
6bd3dfaa
PB
5343@if bzip2
5344maybe-dvi-bzip2: dvi-bzip2
2a4cbe27 5345
4fa63067
NN
5346dvi-bzip2: \
5347 configure-bzip2
5348 @[ -f ./bzip2/Makefile ] || exit 0; \
b40e3958
L
5349 r=`${PWD_COMMAND}`; export r; \
5350 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 5351 $(SET_LIB_PATH) \
378fce5b 5352 $(HOST_EXPORTS) \
b813574b 5353 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5354 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5355 done; \
4fa63067
NN
5356 echo "Doing dvi in bzip2" ; \
5357 (cd bzip2 && \
2a4cbe27
NN
5358 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5359 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5360 "RANLIB=$${RANLIB}" \
5361 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 5362 dvi) \
2a4cbe27
NN
5363 || exit 1
5364
6bd3dfaa 5365@endif bzip2
2a4cbe27 5366
4fa63067
NN
5367.PHONY: maybe-TAGS-bzip2 TAGS-bzip2
5368maybe-TAGS-bzip2:
6bd3dfaa
PB
5369@if bzip2
5370maybe-TAGS-bzip2: TAGS-bzip2
2a4cbe27 5371
4fa63067
NN
5372TAGS-bzip2: \
5373 configure-bzip2
5374 @[ -f ./bzip2/Makefile ] || exit 0; \
b40e3958
L
5375 r=`${PWD_COMMAND}`; export r; \
5376 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 5377 $(SET_LIB_PATH) \
378fce5b 5378 $(HOST_EXPORTS) \
b813574b 5379 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5380 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5381 done; \
4fa63067
NN
5382 echo "Doing TAGS in bzip2" ; \
5383 (cd bzip2 && \
2a4cbe27
NN
5384 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5385 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5386 "RANLIB=$${RANLIB}" \
5387 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 5388 TAGS) \
2a4cbe27
NN
5389 || exit 1
5390
6bd3dfaa 5391@endif bzip2
2a4cbe27 5392
4fa63067
NN
5393.PHONY: maybe-install-info-bzip2 install-info-bzip2
5394maybe-install-info-bzip2:
6bd3dfaa
PB
5395@if bzip2
5396maybe-install-info-bzip2: install-info-bzip2
2a4cbe27 5397
4fa63067
NN
5398install-info-bzip2: \
5399 configure-bzip2 \
5400 info-bzip2
5401 @[ -f ./bzip2/Makefile ] || exit 0; \
b40e3958
L
5402 r=`${PWD_COMMAND}`; export r; \
5403 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 5404 $(SET_LIB_PATH) \
378fce5b 5405 $(HOST_EXPORTS) \
b813574b 5406 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5407 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5408 done; \
4fa63067
NN
5409 echo "Doing install-info in bzip2" ; \
5410 (cd bzip2 && \
2a4cbe27
NN
5411 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5412 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5413 "RANLIB=$${RANLIB}" \
5414 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 5415 install-info) \
2a4cbe27
NN
5416 || exit 1
5417
6bd3dfaa 5418@endif bzip2
2a4cbe27 5419
4fa63067
NN
5420.PHONY: maybe-installcheck-bzip2 installcheck-bzip2
5421maybe-installcheck-bzip2:
6bd3dfaa
PB
5422@if bzip2
5423maybe-installcheck-bzip2: installcheck-bzip2
2a4cbe27 5424
4fa63067
NN
5425installcheck-bzip2: \
5426 configure-bzip2
5427 @[ -f ./bzip2/Makefile ] || exit 0; \
b40e3958
L
5428 r=`${PWD_COMMAND}`; export r; \
5429 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 5430 $(SET_LIB_PATH) \
378fce5b 5431 $(HOST_EXPORTS) \
b813574b 5432 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5433 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5434 done; \
4fa63067
NN
5435 echo "Doing installcheck in bzip2" ; \
5436 (cd bzip2 && \
2a4cbe27
NN
5437 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5438 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5439 "RANLIB=$${RANLIB}" \
5440 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 5441 installcheck) \
2a4cbe27
NN
5442 || exit 1
5443
6bd3dfaa 5444@endif bzip2
2a4cbe27 5445
4fa63067
NN
5446.PHONY: maybe-mostlyclean-bzip2 mostlyclean-bzip2
5447maybe-mostlyclean-bzip2:
6bd3dfaa
PB
5448@if bzip2
5449maybe-mostlyclean-bzip2: mostlyclean-bzip2
2a4cbe27 5450
4fa63067
NN
5451mostlyclean-bzip2:
5452 @[ -f ./bzip2/Makefile ] || exit 0; \
b40e3958
L
5453 r=`${PWD_COMMAND}`; export r; \
5454 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 5455 $(SET_LIB_PATH) \
378fce5b 5456 $(HOST_EXPORTS) \
b813574b 5457 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5458 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5459 done; \
4fa63067
NN
5460 echo "Doing mostlyclean in bzip2" ; \
5461 (cd bzip2 && \
2a4cbe27
NN
5462 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5463 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5464 "RANLIB=$${RANLIB}" \
5465 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 5466 mostlyclean) \
2a4cbe27
NN
5467 || exit 1
5468
6bd3dfaa 5469@endif bzip2
2a4cbe27 5470
4fa63067
NN
5471.PHONY: maybe-clean-bzip2 clean-bzip2
5472maybe-clean-bzip2:
6bd3dfaa
PB
5473@if bzip2
5474maybe-clean-bzip2: clean-bzip2
2a4cbe27 5475
4fa63067
NN
5476clean-bzip2:
5477 @[ -f ./bzip2/Makefile ] || exit 0; \
b40e3958
L
5478 r=`${PWD_COMMAND}`; export r; \
5479 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 5480 $(SET_LIB_PATH) \
378fce5b 5481 $(HOST_EXPORTS) \
b813574b 5482 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5483 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5484 done; \
4fa63067
NN
5485 echo "Doing clean in bzip2" ; \
5486 (cd bzip2 && \
2a4cbe27
NN
5487 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5488 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5489 "RANLIB=$${RANLIB}" \
5490 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 5491 clean) \
2a4cbe27
NN
5492 || exit 1
5493
6bd3dfaa 5494@endif bzip2
2a4cbe27 5495
4fa63067
NN
5496.PHONY: maybe-distclean-bzip2 distclean-bzip2
5497maybe-distclean-bzip2:
6bd3dfaa
PB
5498@if bzip2
5499maybe-distclean-bzip2: distclean-bzip2
2a4cbe27 5500
4fa63067
NN
5501distclean-bzip2:
5502 @[ -f ./bzip2/Makefile ] || exit 0; \
b40e3958
L
5503 r=`${PWD_COMMAND}`; export r; \
5504 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 5505 $(SET_LIB_PATH) \
378fce5b 5506 $(HOST_EXPORTS) \
b813574b 5507 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5508 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5509 done; \
4fa63067
NN
5510 echo "Doing distclean in bzip2" ; \
5511 (cd bzip2 && \
2a4cbe27
NN
5512 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5513 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5514 "RANLIB=$${RANLIB}" \
5515 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 5516 distclean) \
2a4cbe27
NN
5517 || exit 1
5518
6bd3dfaa 5519@endif bzip2
2a4cbe27 5520
4fa63067
NN
5521.PHONY: maybe-maintainer-clean-bzip2 maintainer-clean-bzip2
5522maybe-maintainer-clean-bzip2:
6bd3dfaa
PB
5523@if bzip2
5524maybe-maintainer-clean-bzip2: maintainer-clean-bzip2
2a4cbe27 5525
4fa63067
NN
5526maintainer-clean-bzip2:
5527 @[ -f ./bzip2/Makefile ] || exit 0; \
b40e3958
L
5528 r=`${PWD_COMMAND}`; export r; \
5529 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 5530 $(SET_LIB_PATH) \
378fce5b 5531 $(HOST_EXPORTS) \
b813574b 5532 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5533 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5534 done; \
4fa63067
NN
5535 echo "Doing maintainer-clean in bzip2" ; \
5536 (cd bzip2 && \
2a4cbe27
NN
5537 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5538 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5539 "RANLIB=$${RANLIB}" \
5540 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 5541 maintainer-clean) \
2a4cbe27
NN
5542 || exit 1
5543
6bd3dfaa 5544@endif bzip2
2a4cbe27 5545
2a4cbe27 5546
4fa63067
NN
5547.PHONY: configure-dejagnu maybe-configure-dejagnu
5548maybe-configure-dejagnu:
6bd3dfaa
PB
5549@if dejagnu
5550maybe-configure-dejagnu: configure-dejagnu
4fa63067
NN
5551configure-dejagnu:
5552 @test ! -f dejagnu/Makefile || exit 0; \
5553 [ -d dejagnu ] || mkdir dejagnu; \
5554 r=`${PWD_COMMAND}`; export r; \
5555 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5556 $(HOST_EXPORTS) \
4fa63067
NN
5557 echo Configuring in dejagnu; \
5558 cd dejagnu || exit 1; \
5559 case $(srcdir) in \
5560 \.) \
5561 srcdiroption="--srcdir=."; \
5562 libsrcdir=".";; \
5563 /* | [A-Za-z]:[\\/]*) \
5564 srcdiroption="--srcdir=$(srcdir)/dejagnu"; \
5565 libsrcdir="$$s/dejagnu";; \
5566 *) \
5567 srcdiroption="--srcdir=../$(srcdir)/dejagnu"; \
5568 libsrcdir="$$s/dejagnu";; \
5569 esac; \
5570 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 5571 $(HOST_CONFIGARGS) $${srcdiroption} \
4fa63067 5572 || exit 1
6bd3dfaa 5573@endif dejagnu
4fa63067
NN
5574
5575.PHONY: all-dejagnu maybe-all-dejagnu
5576maybe-all-dejagnu:
6bd3dfaa
PB
5577@if dejagnu
5578maybe-all-dejagnu: all-dejagnu
4fa63067
NN
5579all-dejagnu: configure-dejagnu
5580 @r=`${PWD_COMMAND}`; export r; \
5581 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5582 $(SET_LIB_PATH) \
378fce5b 5583 $(HOST_EXPORTS) \
7ffa0b57 5584 (cd dejagnu && $(MAKE) $(FLAGS_TO_PASS) all)
6bd3dfaa 5585@endif dejagnu
4fa63067
NN
5586
5587.PHONY: check-dejagnu maybe-check-dejagnu
5588maybe-check-dejagnu:
6bd3dfaa
PB
5589@if dejagnu
5590maybe-check-dejagnu: check-dejagnu
4fa63067
NN
5591
5592check-dejagnu:
5593 @r=`${PWD_COMMAND}`; export r; \
5594 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5595 $(SET_LIB_PATH) \
378fce5b 5596 $(HOST_EXPORTS) \
72b2455a 5597 (cd dejagnu && $(MAKE) $(FLAGS_TO_PASS) check)
4fa63067 5598
6bd3dfaa 5599@endif dejagnu
4fa63067
NN
5600
5601.PHONY: install-dejagnu maybe-install-dejagnu
5602maybe-install-dejagnu:
6bd3dfaa
PB
5603@if dejagnu
5604maybe-install-dejagnu: install-dejagnu
4fa63067
NN
5605
5606install-dejagnu: installdirs
5607 @r=`${PWD_COMMAND}`; export r; \
5608 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5609 $(SET_LIB_PATH) \
378fce5b 5610 $(HOST_EXPORTS) \
72b2455a 5611 (cd dejagnu && $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 5612
6bd3dfaa 5613@endif dejagnu
4fa63067
NN
5614
5615# Other targets (info, dvi, etc.)
5616
5617.PHONY: maybe-info-dejagnu info-dejagnu
5618maybe-info-dejagnu:
6bd3dfaa
PB
5619@if dejagnu
5620maybe-info-dejagnu: info-dejagnu
4fa63067
NN
5621
5622info-dejagnu: \
5623 configure-dejagnu
5624 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
5625 r=`${PWD_COMMAND}`; export r; \
5626 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 5627 $(SET_LIB_PATH) \
378fce5b 5628 $(HOST_EXPORTS) \
b813574b 5629 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5630 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5631 done; \
4fa63067
NN
5632 echo "Doing info in dejagnu" ; \
5633 (cd dejagnu && \
2a4cbe27
NN
5634 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5635 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5636 "RANLIB=$${RANLIB}" \
5637 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 5638 info) \
2a4cbe27
NN
5639 || exit 1
5640
6bd3dfaa 5641@endif dejagnu
2a4cbe27 5642
4fa63067
NN
5643.PHONY: maybe-dvi-dejagnu dvi-dejagnu
5644maybe-dvi-dejagnu:
6bd3dfaa
PB
5645@if dejagnu
5646maybe-dvi-dejagnu: dvi-dejagnu
2a4cbe27 5647
4fa63067
NN
5648dvi-dejagnu: \
5649 configure-dejagnu
5650 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
5651 r=`${PWD_COMMAND}`; export r; \
5652 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 5653 $(SET_LIB_PATH) \
378fce5b 5654 $(HOST_EXPORTS) \
b813574b 5655 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5656 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5657 done; \
4fa63067
NN
5658 echo "Doing dvi in dejagnu" ; \
5659 (cd dejagnu && \
2a4cbe27
NN
5660 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5661 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5662 "RANLIB=$${RANLIB}" \
5663 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 5664 dvi) \
2a4cbe27
NN
5665 || exit 1
5666
6bd3dfaa 5667@endif dejagnu
2a4cbe27 5668
4fa63067
NN
5669.PHONY: maybe-TAGS-dejagnu TAGS-dejagnu
5670maybe-TAGS-dejagnu:
6bd3dfaa
PB
5671@if dejagnu
5672maybe-TAGS-dejagnu: TAGS-dejagnu
2a4cbe27 5673
4fa63067
NN
5674TAGS-dejagnu: \
5675 configure-dejagnu
5676 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
5677 r=`${PWD_COMMAND}`; export r; \
5678 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 5679 $(SET_LIB_PATH) \
378fce5b 5680 $(HOST_EXPORTS) \
b813574b 5681 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5682 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5683 done; \
4fa63067
NN
5684 echo "Doing TAGS in dejagnu" ; \
5685 (cd dejagnu && \
2a4cbe27
NN
5686 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5687 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5688 "RANLIB=$${RANLIB}" \
5689 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 5690 TAGS) \
2a4cbe27
NN
5691 || exit 1
5692
6bd3dfaa 5693@endif dejagnu
2a4cbe27 5694
4fa63067
NN
5695.PHONY: maybe-install-info-dejagnu install-info-dejagnu
5696maybe-install-info-dejagnu:
6bd3dfaa
PB
5697@if dejagnu
5698maybe-install-info-dejagnu: install-info-dejagnu
2a4cbe27 5699
4fa63067
NN
5700install-info-dejagnu: \
5701 configure-dejagnu \
5702 info-dejagnu
5703 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
5704 r=`${PWD_COMMAND}`; export r; \
5705 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 5706 $(SET_LIB_PATH) \
378fce5b 5707 $(HOST_EXPORTS) \
b813574b 5708 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5709 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5710 done; \
4fa63067
NN
5711 echo "Doing install-info in dejagnu" ; \
5712 (cd dejagnu && \
2a4cbe27
NN
5713 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5714 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5715 "RANLIB=$${RANLIB}" \
5716 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 5717 install-info) \
2a4cbe27
NN
5718 || exit 1
5719
6bd3dfaa 5720@endif dejagnu
2a4cbe27 5721
4fa63067
NN
5722.PHONY: maybe-installcheck-dejagnu installcheck-dejagnu
5723maybe-installcheck-dejagnu:
6bd3dfaa
PB
5724@if dejagnu
5725maybe-installcheck-dejagnu: installcheck-dejagnu
2a4cbe27 5726
4fa63067
NN
5727installcheck-dejagnu: \
5728 configure-dejagnu
5729 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
5730 r=`${PWD_COMMAND}`; export r; \
5731 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 5732 $(SET_LIB_PATH) \
378fce5b 5733 $(HOST_EXPORTS) \
b813574b 5734 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5735 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5736 done; \
4fa63067
NN
5737 echo "Doing installcheck in dejagnu" ; \
5738 (cd dejagnu && \
2a4cbe27
NN
5739 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5740 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5741 "RANLIB=$${RANLIB}" \
5742 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 5743 installcheck) \
2a4cbe27
NN
5744 || exit 1
5745
6bd3dfaa 5746@endif dejagnu
2a4cbe27 5747
4fa63067
NN
5748.PHONY: maybe-mostlyclean-dejagnu mostlyclean-dejagnu
5749maybe-mostlyclean-dejagnu:
6bd3dfaa
PB
5750@if dejagnu
5751maybe-mostlyclean-dejagnu: mostlyclean-dejagnu
2a4cbe27 5752
4fa63067
NN
5753mostlyclean-dejagnu:
5754 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
5755 r=`${PWD_COMMAND}`; export r; \
5756 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 5757 $(SET_LIB_PATH) \
378fce5b 5758 $(HOST_EXPORTS) \
b813574b 5759 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5760 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5761 done; \
4fa63067
NN
5762 echo "Doing mostlyclean in dejagnu" ; \
5763 (cd dejagnu && \
2a4cbe27
NN
5764 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5765 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5766 "RANLIB=$${RANLIB}" \
5767 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 5768 mostlyclean) \
2a4cbe27
NN
5769 || exit 1
5770
6bd3dfaa 5771@endif dejagnu
2a4cbe27 5772
4fa63067
NN
5773.PHONY: maybe-clean-dejagnu clean-dejagnu
5774maybe-clean-dejagnu:
6bd3dfaa
PB
5775@if dejagnu
5776maybe-clean-dejagnu: clean-dejagnu
2a4cbe27 5777
4fa63067
NN
5778clean-dejagnu:
5779 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
5780 r=`${PWD_COMMAND}`; export r; \
5781 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 5782 $(SET_LIB_PATH) \
378fce5b 5783 $(HOST_EXPORTS) \
b813574b 5784 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5785 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5786 done; \
4fa63067
NN
5787 echo "Doing clean in dejagnu" ; \
5788 (cd dejagnu && \
2a4cbe27
NN
5789 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5790 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5791 "RANLIB=$${RANLIB}" \
5792 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 5793 clean) \
2a4cbe27
NN
5794 || exit 1
5795
6bd3dfaa 5796@endif dejagnu
2a4cbe27 5797
4fa63067
NN
5798.PHONY: maybe-distclean-dejagnu distclean-dejagnu
5799maybe-distclean-dejagnu:
6bd3dfaa
PB
5800@if dejagnu
5801maybe-distclean-dejagnu: distclean-dejagnu
2a4cbe27 5802
4fa63067
NN
5803distclean-dejagnu:
5804 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
5805 r=`${PWD_COMMAND}`; export r; \
5806 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 5807 $(SET_LIB_PATH) \
378fce5b 5808 $(HOST_EXPORTS) \
b813574b 5809 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5810 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5811 done; \
4fa63067
NN
5812 echo "Doing distclean in dejagnu" ; \
5813 (cd dejagnu && \
2a4cbe27
NN
5814 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5815 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5816 "RANLIB=$${RANLIB}" \
5817 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 5818 distclean) \
2a4cbe27
NN
5819 || exit 1
5820
6bd3dfaa 5821@endif dejagnu
2a4cbe27 5822
4fa63067
NN
5823.PHONY: maybe-maintainer-clean-dejagnu maintainer-clean-dejagnu
5824maybe-maintainer-clean-dejagnu:
6bd3dfaa
PB
5825@if dejagnu
5826maybe-maintainer-clean-dejagnu: maintainer-clean-dejagnu
2a4cbe27 5827
4fa63067
NN
5828maintainer-clean-dejagnu:
5829 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
5830 r=`${PWD_COMMAND}`; export r; \
5831 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 5832 $(SET_LIB_PATH) \
378fce5b 5833 $(HOST_EXPORTS) \
b813574b 5834 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5835 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5836 done; \
4fa63067
NN
5837 echo "Doing maintainer-clean in dejagnu" ; \
5838 (cd dejagnu && \
2a4cbe27
NN
5839 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5840 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5841 "RANLIB=$${RANLIB}" \
5842 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 5843 maintainer-clean) \
4fa63067
NN
5844 || exit 1
5845
6bd3dfaa 5846@endif dejagnu
4fa63067
NN
5847
5848
5849.PHONY: configure-diff maybe-configure-diff
5850maybe-configure-diff:
6bd3dfaa
PB
5851@if diff
5852maybe-configure-diff: configure-diff
4fa63067
NN
5853configure-diff:
5854 @test ! -f diff/Makefile || exit 0; \
5855 [ -d diff ] || mkdir diff; \
5856 r=`${PWD_COMMAND}`; export r; \
5857 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5858 $(HOST_EXPORTS) \
4fa63067
NN
5859 echo Configuring in diff; \
5860 cd diff || exit 1; \
5861 case $(srcdir) in \
5862 \.) \
5863 srcdiroption="--srcdir=."; \
5864 libsrcdir=".";; \
5865 /* | [A-Za-z]:[\\/]*) \
5866 srcdiroption="--srcdir=$(srcdir)/diff"; \
5867 libsrcdir="$$s/diff";; \
5868 *) \
5869 srcdiroption="--srcdir=../$(srcdir)/diff"; \
5870 libsrcdir="$$s/diff";; \
5871 esac; \
5872 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 5873 $(HOST_CONFIGARGS) $${srcdiroption} \
2a4cbe27 5874 || exit 1
6bd3dfaa 5875@endif diff
2a4cbe27 5876
4fa63067
NN
5877.PHONY: all-diff maybe-all-diff
5878maybe-all-diff:
6bd3dfaa
PB
5879@if diff
5880maybe-all-diff: all-diff
4fa63067
NN
5881all-diff: configure-diff
5882 @r=`${PWD_COMMAND}`; export r; \
5883 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5884 $(SET_LIB_PATH) \
378fce5b 5885 $(HOST_EXPORTS) \
7ffa0b57 5886 (cd diff && $(MAKE) $(FLAGS_TO_PASS) all)
6bd3dfaa 5887@endif diff
2a4cbe27 5888
4fa63067
NN
5889.PHONY: check-diff maybe-check-diff
5890maybe-check-diff:
6bd3dfaa
PB
5891@if diff
5892maybe-check-diff: check-diff
2a4cbe27 5893
4fa63067
NN
5894check-diff:
5895 @r=`${PWD_COMMAND}`; export r; \
b40e3958 5896 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 5897 $(SET_LIB_PATH) \
378fce5b 5898 $(HOST_EXPORTS) \
72b2455a 5899 (cd diff && $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 5900
6bd3dfaa 5901@endif diff
2a4cbe27 5902
4fa63067
NN
5903.PHONY: install-diff maybe-install-diff
5904maybe-install-diff:
6bd3dfaa
PB
5905@if diff
5906maybe-install-diff: install-diff
2a4cbe27 5907
4fa63067
NN
5908install-diff: installdirs
5909 @r=`${PWD_COMMAND}`; export r; \
b40e3958 5910 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 5911 $(SET_LIB_PATH) \
378fce5b 5912 $(HOST_EXPORTS) \
72b2455a 5913 (cd diff && $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 5914
6bd3dfaa 5915@endif diff
2a4cbe27 5916
4fa63067 5917# Other targets (info, dvi, etc.)
2a4cbe27 5918
4fa63067
NN
5919.PHONY: maybe-info-diff info-diff
5920maybe-info-diff:
6bd3dfaa
PB
5921@if diff
5922maybe-info-diff: info-diff
2a4cbe27 5923
4fa63067
NN
5924info-diff: \
5925 configure-diff
5926 @[ -f ./diff/Makefile ] || exit 0; \
b40e3958
L
5927 r=`${PWD_COMMAND}`; export r; \
5928 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 5929 $(SET_LIB_PATH) \
378fce5b 5930 $(HOST_EXPORTS) \
b813574b 5931 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5932 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5933 done; \
4fa63067
NN
5934 echo "Doing info in diff" ; \
5935 (cd diff && \
2a4cbe27
NN
5936 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5937 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5938 "RANLIB=$${RANLIB}" \
5939 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 5940 info) \
2a4cbe27
NN
5941 || exit 1
5942
6bd3dfaa 5943@endif diff
2a4cbe27 5944
4fa63067
NN
5945.PHONY: maybe-dvi-diff dvi-diff
5946maybe-dvi-diff:
6bd3dfaa
PB
5947@if diff
5948maybe-dvi-diff: dvi-diff
2a4cbe27 5949
4fa63067
NN
5950dvi-diff: \
5951 configure-diff
5952 @[ -f ./diff/Makefile ] || exit 0; \
b40e3958
L
5953 r=`${PWD_COMMAND}`; export r; \
5954 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 5955 $(SET_LIB_PATH) \
378fce5b 5956 $(HOST_EXPORTS) \
b813574b 5957 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5958 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5959 done; \
4fa63067
NN
5960 echo "Doing dvi in diff" ; \
5961 (cd diff && \
2a4cbe27
NN
5962 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5963 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5964 "RANLIB=$${RANLIB}" \
5965 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 5966 dvi) \
2a4cbe27
NN
5967 || exit 1
5968
6bd3dfaa 5969@endif diff
2a4cbe27 5970
4fa63067
NN
5971.PHONY: maybe-TAGS-diff TAGS-diff
5972maybe-TAGS-diff:
6bd3dfaa
PB
5973@if diff
5974maybe-TAGS-diff: TAGS-diff
2a4cbe27 5975
4fa63067
NN
5976TAGS-diff: \
5977 configure-diff
5978 @[ -f ./diff/Makefile ] || exit 0; \
b40e3958
L
5979 r=`${PWD_COMMAND}`; export r; \
5980 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 5981 $(SET_LIB_PATH) \
378fce5b 5982 $(HOST_EXPORTS) \
b813574b 5983 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5984 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5985 done; \
4fa63067
NN
5986 echo "Doing TAGS in diff" ; \
5987 (cd diff && \
2a4cbe27
NN
5988 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5989 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5990 "RANLIB=$${RANLIB}" \
5991 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 5992 TAGS) \
2a4cbe27
NN
5993 || exit 1
5994
6bd3dfaa 5995@endif diff
2a4cbe27 5996
4fa63067
NN
5997.PHONY: maybe-install-info-diff install-info-diff
5998maybe-install-info-diff:
6bd3dfaa
PB
5999@if diff
6000maybe-install-info-diff: install-info-diff
2a4cbe27 6001
4fa63067
NN
6002install-info-diff: \
6003 configure-diff \
6004 info-diff
6005 @[ -f ./diff/Makefile ] || exit 0; \
b40e3958
L
6006 r=`${PWD_COMMAND}`; export r; \
6007 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 6008 $(SET_LIB_PATH) \
378fce5b 6009 $(HOST_EXPORTS) \
b813574b 6010 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6011 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6012 done; \
4fa63067
NN
6013 echo "Doing install-info in diff" ; \
6014 (cd diff && \
2a4cbe27
NN
6015 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6016 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6017 "RANLIB=$${RANLIB}" \
6018 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 6019 install-info) \
2a4cbe27
NN
6020 || exit 1
6021
6bd3dfaa 6022@endif diff
2a4cbe27 6023
4fa63067
NN
6024.PHONY: maybe-installcheck-diff installcheck-diff
6025maybe-installcheck-diff:
6bd3dfaa
PB
6026@if diff
6027maybe-installcheck-diff: installcheck-diff
2a4cbe27 6028
4fa63067
NN
6029installcheck-diff: \
6030 configure-diff
6031 @[ -f ./diff/Makefile ] || exit 0; \
b40e3958
L
6032 r=`${PWD_COMMAND}`; export r; \
6033 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 6034 $(SET_LIB_PATH) \
378fce5b 6035 $(HOST_EXPORTS) \
b813574b 6036 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6037 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6038 done; \
4fa63067
NN
6039 echo "Doing installcheck in diff" ; \
6040 (cd diff && \
2a4cbe27
NN
6041 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6042 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6043 "RANLIB=$${RANLIB}" \
6044 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 6045 installcheck) \
2a4cbe27
NN
6046 || exit 1
6047
6bd3dfaa 6048@endif diff
2a4cbe27 6049
4fa63067
NN
6050.PHONY: maybe-mostlyclean-diff mostlyclean-diff
6051maybe-mostlyclean-diff:
6bd3dfaa
PB
6052@if diff
6053maybe-mostlyclean-diff: mostlyclean-diff
2a4cbe27 6054
4fa63067
NN
6055mostlyclean-diff:
6056 @[ -f ./diff/Makefile ] || exit 0; \
b40e3958
L
6057 r=`${PWD_COMMAND}`; export r; \
6058 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 6059 $(SET_LIB_PATH) \
378fce5b 6060 $(HOST_EXPORTS) \
b813574b 6061 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6062 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6063 done; \
4fa63067
NN
6064 echo "Doing mostlyclean in diff" ; \
6065 (cd diff && \
2a4cbe27
NN
6066 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6067 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6068 "RANLIB=$${RANLIB}" \
6069 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 6070 mostlyclean) \
2a4cbe27
NN
6071 || exit 1
6072
6bd3dfaa 6073@endif diff
2a4cbe27 6074
4fa63067
NN
6075.PHONY: maybe-clean-diff clean-diff
6076maybe-clean-diff:
6bd3dfaa
PB
6077@if diff
6078maybe-clean-diff: clean-diff
2a4cbe27 6079
4fa63067
NN
6080clean-diff:
6081 @[ -f ./diff/Makefile ] || exit 0; \
b40e3958
L
6082 r=`${PWD_COMMAND}`; export r; \
6083 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 6084 $(SET_LIB_PATH) \
378fce5b 6085 $(HOST_EXPORTS) \
b813574b 6086 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6087 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6088 done; \
4fa63067
NN
6089 echo "Doing clean in diff" ; \
6090 (cd diff && \
2a4cbe27
NN
6091 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6092 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6093 "RANLIB=$${RANLIB}" \
6094 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 6095 clean) \
2a4cbe27
NN
6096 || exit 1
6097
6bd3dfaa 6098@endif diff
2a4cbe27 6099
4fa63067
NN
6100.PHONY: maybe-distclean-diff distclean-diff
6101maybe-distclean-diff:
6bd3dfaa
PB
6102@if diff
6103maybe-distclean-diff: distclean-diff
2a4cbe27 6104
4fa63067
NN
6105distclean-diff:
6106 @[ -f ./diff/Makefile ] || exit 0; \
b40e3958
L
6107 r=`${PWD_COMMAND}`; export r; \
6108 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 6109 $(SET_LIB_PATH) \
378fce5b 6110 $(HOST_EXPORTS) \
b813574b 6111 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6112 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6113 done; \
4fa63067
NN
6114 echo "Doing distclean in diff" ; \
6115 (cd diff && \
2a4cbe27
NN
6116 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6117 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6118 "RANLIB=$${RANLIB}" \
6119 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 6120 distclean) \
2a4cbe27
NN
6121 || exit 1
6122
6bd3dfaa 6123@endif diff
2a4cbe27 6124
4fa63067
NN
6125.PHONY: maybe-maintainer-clean-diff maintainer-clean-diff
6126maybe-maintainer-clean-diff:
6bd3dfaa
PB
6127@if diff
6128maybe-maintainer-clean-diff: maintainer-clean-diff
2a4cbe27 6129
4fa63067
NN
6130maintainer-clean-diff:
6131 @[ -f ./diff/Makefile ] || exit 0; \
b40e3958
L
6132 r=`${PWD_COMMAND}`; export r; \
6133 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 6134 $(SET_LIB_PATH) \
378fce5b 6135 $(HOST_EXPORTS) \
b813574b 6136 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6137 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6138 done; \
4fa63067
NN
6139 echo "Doing maintainer-clean in diff" ; \
6140 (cd diff && \
2a4cbe27
NN
6141 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6142 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6143 "RANLIB=$${RANLIB}" \
6144 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 6145 maintainer-clean) \
2a4cbe27
NN
6146 || exit 1
6147
6bd3dfaa 6148@endif diff
2a4cbe27 6149
2a4cbe27 6150
4fa63067
NN
6151.PHONY: configure-dosutils maybe-configure-dosutils
6152maybe-configure-dosutils:
6bd3dfaa
PB
6153@if dosutils
6154maybe-configure-dosutils: configure-dosutils
4fa63067
NN
6155configure-dosutils:
6156 @test ! -f dosutils/Makefile || exit 0; \
6157 [ -d dosutils ] || mkdir dosutils; \
b40e3958
L
6158 r=`${PWD_COMMAND}`; export r; \
6159 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6160 $(HOST_EXPORTS) \
4fa63067
NN
6161 echo Configuring in dosutils; \
6162 cd dosutils || exit 1; \
6163 case $(srcdir) in \
6164 \.) \
6165 srcdiroption="--srcdir=."; \
6166 libsrcdir=".";; \
6167 /* | [A-Za-z]:[\\/]*) \
6168 srcdiroption="--srcdir=$(srcdir)/dosutils"; \
6169 libsrcdir="$$s/dosutils";; \
6170 *) \
6171 srcdiroption="--srcdir=../$(srcdir)/dosutils"; \
6172 libsrcdir="$$s/dosutils";; \
6173 esac; \
6174 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 6175 $(HOST_CONFIGARGS) $${srcdiroption} \
4fa63067 6176 || exit 1
6bd3dfaa 6177@endif dosutils
4fa63067
NN
6178
6179.PHONY: all-dosutils maybe-all-dosutils
6180maybe-all-dosutils:
6bd3dfaa
PB
6181@if dosutils
6182maybe-all-dosutils: all-dosutils
4fa63067
NN
6183all-dosutils: configure-dosutils
6184 @r=`${PWD_COMMAND}`; export r; \
6185 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 6186 $(SET_LIB_PATH) \
378fce5b 6187 $(HOST_EXPORTS) \
7ffa0b57 6188 (cd dosutils && $(MAKE) $(FLAGS_TO_PASS) all)
6bd3dfaa 6189@endif dosutils
4fa63067
NN
6190
6191.PHONY: check-dosutils maybe-check-dosutils
6192maybe-check-dosutils:
6bd3dfaa
PB
6193@if dosutils
6194maybe-check-dosutils: check-dosutils
2a4cbe27 6195
4fa63067 6196check-dosutils:
2a4cbe27 6197
6bd3dfaa 6198@endif dosutils
2a4cbe27 6199
4fa63067
NN
6200.PHONY: install-dosutils maybe-install-dosutils
6201maybe-install-dosutils:
6bd3dfaa
PB
6202@if dosutils
6203maybe-install-dosutils: install-dosutils
4fa63067
NN
6204
6205install-dosutils: installdirs
6206 @r=`${PWD_COMMAND}`; export r; \
b40e3958 6207 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 6208 $(SET_LIB_PATH) \
378fce5b 6209 $(HOST_EXPORTS) \
72b2455a 6210 (cd dosutils && $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 6211
6bd3dfaa 6212@endif dosutils
2a4cbe27 6213
4fa63067 6214# Other targets (info, dvi, etc.)
2a4cbe27 6215
4fa63067
NN
6216.PHONY: maybe-info-dosutils info-dosutils
6217maybe-info-dosutils:
6bd3dfaa
PB
6218@if dosutils
6219maybe-info-dosutils: info-dosutils
4fa63067
NN
6220
6221info-dosutils: \
6222 configure-dosutils
6223 @[ -f ./dosutils/Makefile ] || exit 0; \
b40e3958
L
6224 r=`${PWD_COMMAND}`; export r; \
6225 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 6226 $(SET_LIB_PATH) \
378fce5b 6227 $(HOST_EXPORTS) \
b813574b 6228 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6229 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6230 done; \
4fa63067
NN
6231 echo "Doing info in dosutils" ; \
6232 (cd dosutils && \
2a4cbe27
NN
6233 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6234 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6235 "RANLIB=$${RANLIB}" \
6236 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 6237 info) \
2a4cbe27
NN
6238 || exit 1
6239
6bd3dfaa 6240@endif dosutils
2a4cbe27 6241
4fa63067
NN
6242.PHONY: maybe-dvi-dosutils dvi-dosutils
6243maybe-dvi-dosutils:
6bd3dfaa
PB
6244@if dosutils
6245maybe-dvi-dosutils: dvi-dosutils
2a4cbe27 6246
4fa63067
NN
6247dvi-dosutils: \
6248 configure-dosutils
6249 @[ -f ./dosutils/Makefile ] || exit 0; \
b40e3958
L
6250 r=`${PWD_COMMAND}`; export r; \
6251 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 6252 $(SET_LIB_PATH) \
378fce5b 6253 $(HOST_EXPORTS) \
b813574b 6254 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6255 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6256 done; \
4fa63067
NN
6257 echo "Doing dvi in dosutils" ; \
6258 (cd dosutils && \
2a4cbe27
NN
6259 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6260 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6261 "RANLIB=$${RANLIB}" \
6262 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 6263 dvi) \
2a4cbe27
NN
6264 || exit 1
6265
6bd3dfaa 6266@endif dosutils
2a4cbe27 6267
4fa63067
NN
6268.PHONY: maybe-TAGS-dosutils TAGS-dosutils
6269maybe-TAGS-dosutils:
6bd3dfaa
PB
6270@if dosutils
6271maybe-TAGS-dosutils: TAGS-dosutils
2a4cbe27 6272
4fa63067
NN
6273TAGS-dosutils: \
6274 configure-dosutils
6275 @[ -f ./dosutils/Makefile ] || exit 0; \
b40e3958
L
6276 r=`${PWD_COMMAND}`; export r; \
6277 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 6278 $(SET_LIB_PATH) \
378fce5b 6279 $(HOST_EXPORTS) \
b813574b 6280 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6281 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6282 done; \
4fa63067
NN
6283 echo "Doing TAGS in dosutils" ; \
6284 (cd dosutils && \
2a4cbe27
NN
6285 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6286 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6287 "RANLIB=$${RANLIB}" \
6288 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 6289 TAGS) \
2a4cbe27
NN
6290 || exit 1
6291
6bd3dfaa 6292@endif dosutils
2a4cbe27 6293
4fa63067
NN
6294.PHONY: maybe-install-info-dosutils install-info-dosutils
6295maybe-install-info-dosutils:
6bd3dfaa
PB
6296@if dosutils
6297maybe-install-info-dosutils: install-info-dosutils
2a4cbe27 6298
4fa63067
NN
6299install-info-dosutils: \
6300 configure-dosutils \
6301 info-dosutils
6302 @[ -f ./dosutils/Makefile ] || exit 0; \
b40e3958
L
6303 r=`${PWD_COMMAND}`; export r; \
6304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 6305 $(SET_LIB_PATH) \
378fce5b 6306 $(HOST_EXPORTS) \
b813574b 6307 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6308 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6309 done; \
4fa63067
NN
6310 echo "Doing install-info in dosutils" ; \
6311 (cd dosutils && \
2a4cbe27
NN
6312 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6313 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6314 "RANLIB=$${RANLIB}" \
6315 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 6316 install-info) \
2a4cbe27
NN
6317 || exit 1
6318
6bd3dfaa 6319@endif dosutils
2a4cbe27 6320
4fa63067
NN
6321.PHONY: maybe-installcheck-dosutils installcheck-dosutils
6322maybe-installcheck-dosutils:
6bd3dfaa
PB
6323@if dosutils
6324maybe-installcheck-dosutils: installcheck-dosutils
2a4cbe27 6325
4fa63067
NN
6326installcheck-dosutils: \
6327 configure-dosutils
6328 @[ -f ./dosutils/Makefile ] || exit 0; \
b40e3958
L
6329 r=`${PWD_COMMAND}`; export r; \
6330 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 6331 $(SET_LIB_PATH) \
378fce5b 6332 $(HOST_EXPORTS) \
b813574b 6333 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6334 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6335 done; \
4fa63067
NN
6336 echo "Doing installcheck in dosutils" ; \
6337 (cd dosutils && \
2a4cbe27
NN
6338 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6339 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6340 "RANLIB=$${RANLIB}" \
6341 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 6342 installcheck) \
2a4cbe27
NN
6343 || exit 1
6344
6bd3dfaa 6345@endif dosutils
2a4cbe27 6346
4fa63067
NN
6347.PHONY: maybe-mostlyclean-dosutils mostlyclean-dosutils
6348maybe-mostlyclean-dosutils:
6bd3dfaa
PB
6349@if dosutils
6350maybe-mostlyclean-dosutils: mostlyclean-dosutils
a2592b1b 6351
4fa63067
NN
6352mostlyclean-dosutils:
6353 @[ -f ./dosutils/Makefile ] || exit 0; \
a2592b1b
DD
6354 r=`${PWD_COMMAND}`; export r; \
6355 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6356 $(SET_LIB_PATH) \
378fce5b 6357 $(HOST_EXPORTS) \
b813574b 6358 for flag in $(EXTRA_HOST_FLAGS) ; do \
a2592b1b
DD
6359 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6360 done; \
4fa63067
NN
6361 echo "Doing mostlyclean in dosutils" ; \
6362 (cd dosutils && \
a2592b1b
DD
6363 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6364 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6365 "RANLIB=$${RANLIB}" \
6366 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 6367 mostlyclean) \
a2592b1b
DD
6368 || exit 1
6369
6bd3dfaa 6370@endif dosutils
a2592b1b 6371
4fa63067
NN
6372.PHONY: maybe-clean-dosutils clean-dosutils
6373maybe-clean-dosutils:
6bd3dfaa
PB
6374@if dosutils
6375maybe-clean-dosutils: clean-dosutils
2a4cbe27 6376
4fa63067
NN
6377clean-dosutils:
6378 @[ -f ./dosutils/Makefile ] || exit 0; \
b40e3958
L
6379 r=`${PWD_COMMAND}`; export r; \
6380 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 6381 $(SET_LIB_PATH) \
378fce5b 6382 $(HOST_EXPORTS) \
b813574b 6383 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6384 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6385 done; \
4fa63067
NN
6386 echo "Doing clean in dosutils" ; \
6387 (cd dosutils && \
2a4cbe27
NN
6388 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6389 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6390 "RANLIB=$${RANLIB}" \
6391 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 6392 clean) \
2a4cbe27
NN
6393 || exit 1
6394
6bd3dfaa 6395@endif dosutils
2a4cbe27 6396
4fa63067
NN
6397.PHONY: maybe-distclean-dosutils distclean-dosutils
6398maybe-distclean-dosutils:
6bd3dfaa
PB
6399@if dosutils
6400maybe-distclean-dosutils: distclean-dosutils
2a4cbe27 6401
4fa63067
NN
6402distclean-dosutils:
6403 @[ -f ./dosutils/Makefile ] || exit 0; \
b40e3958
L
6404 r=`${PWD_COMMAND}`; export r; \
6405 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 6406 $(SET_LIB_PATH) \
378fce5b 6407 $(HOST_EXPORTS) \
b813574b 6408 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6409 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6410 done; \
4fa63067
NN
6411 echo "Doing distclean in dosutils" ; \
6412 (cd dosutils && \
2a4cbe27
NN
6413 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6414 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6415 "RANLIB=$${RANLIB}" \
6416 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 6417 distclean) \
2a4cbe27
NN
6418 || exit 1
6419
6bd3dfaa 6420@endif dosutils
2a4cbe27 6421
4fa63067
NN
6422.PHONY: maybe-maintainer-clean-dosutils maintainer-clean-dosutils
6423maybe-maintainer-clean-dosutils:
6bd3dfaa
PB
6424@if dosutils
6425maybe-maintainer-clean-dosutils: maintainer-clean-dosutils
2a4cbe27 6426
4fa63067
NN
6427maintainer-clean-dosutils:
6428 @[ -f ./dosutils/Makefile ] || exit 0; \
b40e3958
L
6429 r=`${PWD_COMMAND}`; export r; \
6430 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 6431 $(SET_LIB_PATH) \
378fce5b 6432 $(HOST_EXPORTS) \
b813574b 6433 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6434 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6435 done; \
4fa63067
NN
6436 echo "Doing maintainer-clean in dosutils" ; \
6437 (cd dosutils && \
2a4cbe27
NN
6438 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6439 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6440 "RANLIB=$${RANLIB}" \
6441 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 6442 maintainer-clean) \
2a4cbe27
NN
6443 || exit 1
6444
6bd3dfaa 6445@endif dosutils
2a4cbe27 6446
2a4cbe27 6447
4fa63067
NN
6448.PHONY: configure-etc maybe-configure-etc
6449maybe-configure-etc:
6bd3dfaa
PB
6450@if etc
6451maybe-configure-etc: configure-etc
4fa63067
NN
6452configure-etc:
6453 @test ! -f etc/Makefile || exit 0; \
6454 [ -d etc ] || mkdir etc; \
6455 r=`${PWD_COMMAND}`; export r; \
6456 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6457 $(HOST_EXPORTS) \
4fa63067
NN
6458 echo Configuring in etc; \
6459 cd etc || exit 1; \
6460 case $(srcdir) in \
6461 \.) \
6462 srcdiroption="--srcdir=."; \
6463 libsrcdir=".";; \
6464 /* | [A-Za-z]:[\\/]*) \
6465 srcdiroption="--srcdir=$(srcdir)/etc"; \
6466 libsrcdir="$$s/etc";; \
6467 *) \
6468 srcdiroption="--srcdir=../$(srcdir)/etc"; \
6469 libsrcdir="$$s/etc";; \
6470 esac; \
6471 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 6472 $(HOST_CONFIGARGS) $${srcdiroption} \
4fa63067 6473 || exit 1
6bd3dfaa 6474@endif etc
4fa63067
NN
6475
6476.PHONY: all-etc maybe-all-etc
6477maybe-all-etc:
6bd3dfaa
PB
6478@if etc
6479maybe-all-etc: all-etc
4fa63067
NN
6480all-etc: configure-etc
6481 @r=`${PWD_COMMAND}`; export r; \
6482 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6483 $(SET_LIB_PATH) \
378fce5b 6484 $(HOST_EXPORTS) \
7ffa0b57 6485 (cd etc && $(MAKE) $(FLAGS_TO_PASS) all)
6bd3dfaa 6486@endif etc
4fa63067
NN
6487
6488.PHONY: check-etc maybe-check-etc
6489maybe-check-etc:
6bd3dfaa
PB
6490@if etc
6491maybe-check-etc: check-etc
4fa63067
NN
6492
6493check-etc:
6494 @r=`${PWD_COMMAND}`; export r; \
6495 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6496 $(SET_LIB_PATH) \
378fce5b 6497 $(HOST_EXPORTS) \
72b2455a 6498 (cd etc && $(MAKE) $(FLAGS_TO_PASS) check)
4fa63067 6499
6bd3dfaa 6500@endif etc
4fa63067
NN
6501
6502.PHONY: install-etc maybe-install-etc
6503maybe-install-etc:
6bd3dfaa
PB
6504@if etc
6505maybe-install-etc: install-etc
4fa63067
NN
6506
6507install-etc: installdirs
6508 @r=`${PWD_COMMAND}`; export r; \
6509 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6510 $(SET_LIB_PATH) \
378fce5b 6511 $(HOST_EXPORTS) \
72b2455a 6512 (cd etc && $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 6513
6bd3dfaa 6514@endif etc
4fa63067
NN
6515
6516# Other targets (info, dvi, etc.)
6517
6518.PHONY: maybe-info-etc info-etc
6519maybe-info-etc:
6bd3dfaa
PB
6520@if etc
6521maybe-info-etc: info-etc
4fa63067
NN
6522
6523info-etc: \
6524 configure-etc
6525 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
6526 r=`${PWD_COMMAND}`; export r; \
6527 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 6528 $(SET_LIB_PATH) \
378fce5b 6529 $(HOST_EXPORTS) \
b813574b 6530 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6531 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6532 done; \
4fa63067
NN
6533 echo "Doing info in etc" ; \
6534 (cd etc && \
2a4cbe27
NN
6535 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6536 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6537 "RANLIB=$${RANLIB}" \
6538 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 6539 info) \
2a4cbe27
NN
6540 || exit 1
6541
6bd3dfaa 6542@endif etc
2a4cbe27 6543
4fa63067
NN
6544.PHONY: maybe-dvi-etc dvi-etc
6545maybe-dvi-etc:
6bd3dfaa
PB
6546@if etc
6547maybe-dvi-etc: dvi-etc
2a4cbe27 6548
4fa63067
NN
6549dvi-etc: \
6550 configure-etc
6551 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
6552 r=`${PWD_COMMAND}`; export r; \
6553 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 6554 $(SET_LIB_PATH) \
378fce5b 6555 $(HOST_EXPORTS) \
b813574b 6556 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6557 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6558 done; \
4fa63067
NN
6559 echo "Doing dvi in etc" ; \
6560 (cd etc && \
2a4cbe27
NN
6561 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6562 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6563 "RANLIB=$${RANLIB}" \
6564 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 6565 dvi) \
2a4cbe27
NN
6566 || exit 1
6567
6bd3dfaa 6568@endif etc
2a4cbe27 6569
4fa63067
NN
6570.PHONY: maybe-TAGS-etc TAGS-etc
6571maybe-TAGS-etc:
6bd3dfaa
PB
6572@if etc
6573maybe-TAGS-etc: TAGS-etc
2a4cbe27 6574
4fa63067
NN
6575TAGS-etc: \
6576 configure-etc
6577 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
6578 r=`${PWD_COMMAND}`; export r; \
6579 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 6580 $(SET_LIB_PATH) \
378fce5b 6581 $(HOST_EXPORTS) \
b813574b 6582 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6583 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6584 done; \
4fa63067
NN
6585 echo "Doing TAGS in etc" ; \
6586 (cd etc && \
2a4cbe27
NN
6587 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6588 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6589 "RANLIB=$${RANLIB}" \
6590 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 6591 TAGS) \
2a4cbe27
NN
6592 || exit 1
6593
6bd3dfaa 6594@endif etc
2a4cbe27 6595
4fa63067
NN
6596.PHONY: maybe-install-info-etc install-info-etc
6597maybe-install-info-etc:
6bd3dfaa
PB
6598@if etc
6599maybe-install-info-etc: install-info-etc
2a4cbe27 6600
4fa63067
NN
6601install-info-etc: \
6602 configure-etc \
6603 info-etc
6604 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
6605 r=`${PWD_COMMAND}`; export r; \
6606 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 6607 $(SET_LIB_PATH) \
378fce5b 6608 $(HOST_EXPORTS) \
b813574b 6609 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6610 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6611 done; \
4fa63067
NN
6612 echo "Doing install-info in etc" ; \
6613 (cd etc && \
2a4cbe27
NN
6614 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6615 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6616 "RANLIB=$${RANLIB}" \
6617 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 6618 install-info) \
2a4cbe27
NN
6619 || exit 1
6620
6bd3dfaa 6621@endif etc
2a4cbe27 6622
4fa63067
NN
6623.PHONY: maybe-installcheck-etc installcheck-etc
6624maybe-installcheck-etc:
6bd3dfaa
PB
6625@if etc
6626maybe-installcheck-etc: installcheck-etc
2a4cbe27 6627
4fa63067
NN
6628installcheck-etc: \
6629 configure-etc
6630 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
6631 r=`${PWD_COMMAND}`; export r; \
6632 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 6633 $(SET_LIB_PATH) \
378fce5b 6634 $(HOST_EXPORTS) \
b813574b 6635 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6636 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6637 done; \
4fa63067
NN
6638 echo "Doing installcheck in etc" ; \
6639 (cd etc && \
2a4cbe27
NN
6640 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6641 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6642 "RANLIB=$${RANLIB}" \
6643 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 6644 installcheck) \
2a4cbe27
NN
6645 || exit 1
6646
6bd3dfaa 6647@endif etc
2a4cbe27 6648
4fa63067
NN
6649.PHONY: maybe-mostlyclean-etc mostlyclean-etc
6650maybe-mostlyclean-etc:
6bd3dfaa
PB
6651@if etc
6652maybe-mostlyclean-etc: mostlyclean-etc
2a4cbe27 6653
4fa63067
NN
6654mostlyclean-etc:
6655 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
6656 r=`${PWD_COMMAND}`; export r; \
6657 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 6658 $(SET_LIB_PATH) \
378fce5b 6659 $(HOST_EXPORTS) \
b813574b 6660 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6661 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6662 done; \
4fa63067
NN
6663 echo "Doing mostlyclean in etc" ; \
6664 (cd etc && \
2a4cbe27
NN
6665 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6666 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6667 "RANLIB=$${RANLIB}" \
6668 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 6669 mostlyclean) \
2a4cbe27
NN
6670 || exit 1
6671
6bd3dfaa 6672@endif etc
2a4cbe27 6673
4fa63067
NN
6674.PHONY: maybe-clean-etc clean-etc
6675maybe-clean-etc:
6bd3dfaa
PB
6676@if etc
6677maybe-clean-etc: clean-etc
2a4cbe27 6678
4fa63067
NN
6679clean-etc:
6680 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
6681 r=`${PWD_COMMAND}`; export r; \
6682 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 6683 $(SET_LIB_PATH) \
378fce5b 6684 $(HOST_EXPORTS) \
b813574b 6685 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6686 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6687 done; \
4fa63067
NN
6688 echo "Doing clean in etc" ; \
6689 (cd etc && \
2a4cbe27
NN
6690 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6691 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6692 "RANLIB=$${RANLIB}" \
6693 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 6694 clean) \
2a4cbe27
NN
6695 || exit 1
6696
6bd3dfaa 6697@endif etc
2a4cbe27 6698
4fa63067
NN
6699.PHONY: maybe-distclean-etc distclean-etc
6700maybe-distclean-etc:
6bd3dfaa
PB
6701@if etc
6702maybe-distclean-etc: distclean-etc
2a4cbe27 6703
4fa63067
NN
6704distclean-etc:
6705 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
6706 r=`${PWD_COMMAND}`; export r; \
6707 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 6708 $(SET_LIB_PATH) \
378fce5b 6709 $(HOST_EXPORTS) \
b813574b 6710 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6711 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6712 done; \
4fa63067
NN
6713 echo "Doing distclean in etc" ; \
6714 (cd etc && \
2a4cbe27
NN
6715 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6716 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6717 "RANLIB=$${RANLIB}" \
6718 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 6719 distclean) \
2a4cbe27
NN
6720 || exit 1
6721
6bd3dfaa 6722@endif etc
2a4cbe27 6723
4fa63067
NN
6724.PHONY: maybe-maintainer-clean-etc maintainer-clean-etc
6725maybe-maintainer-clean-etc:
6bd3dfaa
PB
6726@if etc
6727maybe-maintainer-clean-etc: maintainer-clean-etc
2a4cbe27 6728
4fa63067
NN
6729maintainer-clean-etc:
6730 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
6731 r=`${PWD_COMMAND}`; export r; \
6732 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 6733 $(SET_LIB_PATH) \
378fce5b 6734 $(HOST_EXPORTS) \
b813574b 6735 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6736 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6737 done; \
4fa63067
NN
6738 echo "Doing maintainer-clean in etc" ; \
6739 (cd etc && \
2a4cbe27
NN
6740 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6741 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6742 "RANLIB=$${RANLIB}" \
6743 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 6744 maintainer-clean) \
2a4cbe27
NN
6745 || exit 1
6746
6bd3dfaa 6747@endif etc
2a4cbe27 6748
2a4cbe27 6749
4fa63067
NN
6750.PHONY: configure-fastjar maybe-configure-fastjar
6751maybe-configure-fastjar:
6bd3dfaa
PB
6752@if fastjar
6753maybe-configure-fastjar: configure-fastjar
4fa63067
NN
6754configure-fastjar:
6755 @test ! -f fastjar/Makefile || exit 0; \
6756 [ -d fastjar ] || mkdir fastjar; \
b40e3958
L
6757 r=`${PWD_COMMAND}`; export r; \
6758 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6759 $(HOST_EXPORTS) \
4fa63067
NN
6760 echo Configuring in fastjar; \
6761 cd fastjar || exit 1; \
6762 case $(srcdir) in \
6763 \.) \
6764 srcdiroption="--srcdir=."; \
6765 libsrcdir=".";; \
6766 /* | [A-Za-z]:[\\/]*) \
6767 srcdiroption="--srcdir=$(srcdir)/fastjar"; \
6768 libsrcdir="$$s/fastjar";; \
6769 *) \
6770 srcdiroption="--srcdir=../$(srcdir)/fastjar"; \
6771 libsrcdir="$$s/fastjar";; \
6772 esac; \
6773 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 6774 $(HOST_CONFIGARGS) $${srcdiroption} \
4fa63067 6775 || exit 1
6bd3dfaa 6776@endif fastjar
4fa63067
NN
6777
6778.PHONY: all-fastjar maybe-all-fastjar
6779maybe-all-fastjar:
6bd3dfaa
PB
6780@if fastjar
6781maybe-all-fastjar: all-fastjar
4fa63067
NN
6782all-fastjar: configure-fastjar
6783 @r=`${PWD_COMMAND}`; export r; \
6784 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 6785 $(SET_LIB_PATH) \
378fce5b 6786 $(HOST_EXPORTS) \
7ffa0b57 6787 (cd fastjar && $(MAKE) $(FLAGS_TO_PASS) all)
6bd3dfaa 6788@endif fastjar
2a4cbe27 6789
4fa63067
NN
6790.PHONY: check-fastjar maybe-check-fastjar
6791maybe-check-fastjar:
6bd3dfaa
PB
6792@if fastjar
6793maybe-check-fastjar: check-fastjar
2a4cbe27 6794
4fa63067
NN
6795# This module is only tested in a native toolchain.
6796check-fastjar:
6797 @if [ '$(host)' = '$(target)' ] ; then \
6798 r=`${PWD_COMMAND}`; export r; \
6799 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6800 $(SET_LIB_PATH) \
378fce5b 6801 $(HOST_EXPORTS) \
7ffa0b57 6802 (cd fastjar && $(MAKE) $(FLAGS_TO_PASS) check); \
4fa63067 6803 fi
2a4cbe27 6804
6bd3dfaa 6805@endif fastjar
4fa63067
NN
6806
6807.PHONY: install-fastjar maybe-install-fastjar
6808maybe-install-fastjar:
6bd3dfaa
PB
6809@if fastjar
6810maybe-install-fastjar: install-fastjar
4fa63067
NN
6811
6812install-fastjar: installdirs
6813 @r=`${PWD_COMMAND}`; export r; \
b40e3958 6814 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 6815 $(SET_LIB_PATH) \
378fce5b 6816 $(HOST_EXPORTS) \
72b2455a 6817 (cd fastjar && $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 6818
6bd3dfaa 6819@endif fastjar
2a4cbe27 6820
4fa63067 6821# Other targets (info, dvi, etc.)
2a4cbe27 6822
4fa63067
NN
6823.PHONY: maybe-info-fastjar info-fastjar
6824maybe-info-fastjar:
6bd3dfaa
PB
6825@if fastjar
6826maybe-info-fastjar: info-fastjar
4fa63067
NN
6827
6828info-fastjar: \
6829 configure-fastjar
6830 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
6831 r=`${PWD_COMMAND}`; export r; \
6832 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 6833 $(SET_LIB_PATH) \
378fce5b 6834 $(HOST_EXPORTS) \
b813574b 6835 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6836 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6837 done; \
4fa63067
NN
6838 echo "Doing info in fastjar" ; \
6839 (cd fastjar && \
2a4cbe27
NN
6840 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6841 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6842 "RANLIB=$${RANLIB}" \
6843 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 6844 info) \
2a4cbe27
NN
6845 || exit 1
6846
6bd3dfaa 6847@endif fastjar
2a4cbe27 6848
4fa63067
NN
6849.PHONY: maybe-dvi-fastjar dvi-fastjar
6850maybe-dvi-fastjar:
6bd3dfaa
PB
6851@if fastjar
6852maybe-dvi-fastjar: dvi-fastjar
2a4cbe27 6853
4fa63067
NN
6854dvi-fastjar: \
6855 configure-fastjar
2a4cbe27 6856 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
6857 r=`${PWD_COMMAND}`; export r; \
6858 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 6859 $(SET_LIB_PATH) \
378fce5b 6860 $(HOST_EXPORTS) \
b813574b 6861 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6862 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6863 done; \
4fa63067 6864 echo "Doing dvi in fastjar" ; \
2a4cbe27
NN
6865 (cd fastjar && \
6866 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6867 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6868 "RANLIB=$${RANLIB}" \
6869 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 6870 dvi) \
2a4cbe27
NN
6871 || exit 1
6872
6bd3dfaa 6873@endif fastjar
2a4cbe27 6874
4fa63067
NN
6875.PHONY: maybe-TAGS-fastjar TAGS-fastjar
6876maybe-TAGS-fastjar:
6bd3dfaa
PB
6877@if fastjar
6878maybe-TAGS-fastjar: TAGS-fastjar
2a4cbe27 6879
4fa63067
NN
6880TAGS-fastjar: \
6881 configure-fastjar
6882 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
6883 r=`${PWD_COMMAND}`; export r; \
6884 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 6885 $(SET_LIB_PATH) \
378fce5b 6886 $(HOST_EXPORTS) \
b813574b 6887 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6888 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6889 done; \
4fa63067
NN
6890 echo "Doing TAGS in fastjar" ; \
6891 (cd fastjar && \
2a4cbe27
NN
6892 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6893 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6894 "RANLIB=$${RANLIB}" \
6895 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 6896 TAGS) \
2a4cbe27
NN
6897 || exit 1
6898
6bd3dfaa 6899@endif fastjar
2a4cbe27 6900
4fa63067
NN
6901.PHONY: maybe-install-info-fastjar install-info-fastjar
6902maybe-install-info-fastjar:
6bd3dfaa
PB
6903@if fastjar
6904maybe-install-info-fastjar: install-info-fastjar
2a4cbe27 6905
4fa63067
NN
6906install-info-fastjar: \
6907 configure-fastjar \
6908 info-fastjar
6909 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
6910 r=`${PWD_COMMAND}`; export r; \
6911 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 6912 $(SET_LIB_PATH) \
378fce5b 6913 $(HOST_EXPORTS) \
b813574b 6914 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6915 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6916 done; \
4fa63067
NN
6917 echo "Doing install-info in fastjar" ; \
6918 (cd fastjar && \
2a4cbe27
NN
6919 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6920 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6921 "RANLIB=$${RANLIB}" \
6922 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 6923 install-info) \
2a4cbe27
NN
6924 || exit 1
6925
6bd3dfaa 6926@endif fastjar
2a4cbe27 6927
4fa63067
NN
6928.PHONY: maybe-installcheck-fastjar installcheck-fastjar
6929maybe-installcheck-fastjar:
6bd3dfaa
PB
6930@if fastjar
6931maybe-installcheck-fastjar: installcheck-fastjar
2a4cbe27 6932
4fa63067
NN
6933installcheck-fastjar: \
6934 configure-fastjar
6935 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
6936 r=`${PWD_COMMAND}`; export r; \
6937 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 6938 $(SET_LIB_PATH) \
378fce5b 6939 $(HOST_EXPORTS) \
b813574b 6940 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6941 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6942 done; \
4fa63067
NN
6943 echo "Doing installcheck in fastjar" ; \
6944 (cd fastjar && \
2a4cbe27
NN
6945 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6946 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6947 "RANLIB=$${RANLIB}" \
6948 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 6949 installcheck) \
2a4cbe27
NN
6950 || exit 1
6951
6bd3dfaa 6952@endif fastjar
2a4cbe27 6953
4fa63067
NN
6954.PHONY: maybe-mostlyclean-fastjar mostlyclean-fastjar
6955maybe-mostlyclean-fastjar:
6bd3dfaa
PB
6956@if fastjar
6957maybe-mostlyclean-fastjar: mostlyclean-fastjar
2a4cbe27 6958
4fa63067
NN
6959mostlyclean-fastjar:
6960 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
6961 r=`${PWD_COMMAND}`; export r; \
6962 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 6963 $(SET_LIB_PATH) \
378fce5b 6964 $(HOST_EXPORTS) \
b813574b 6965 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6966 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6967 done; \
4fa63067
NN
6968 echo "Doing mostlyclean in fastjar" ; \
6969 (cd fastjar && \
2a4cbe27
NN
6970 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6971 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6972 "RANLIB=$${RANLIB}" \
6973 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 6974 mostlyclean) \
2a4cbe27
NN
6975 || exit 1
6976
6bd3dfaa 6977@endif fastjar
2a4cbe27 6978
4fa63067
NN
6979.PHONY: maybe-clean-fastjar clean-fastjar
6980maybe-clean-fastjar:
6bd3dfaa
PB
6981@if fastjar
6982maybe-clean-fastjar: clean-fastjar
2a4cbe27 6983
4fa63067
NN
6984clean-fastjar:
6985 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
6986 r=`${PWD_COMMAND}`; export r; \
6987 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 6988 $(SET_LIB_PATH) \
378fce5b 6989 $(HOST_EXPORTS) \
b813574b 6990 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6991 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6992 done; \
4fa63067
NN
6993 echo "Doing clean in fastjar" ; \
6994 (cd fastjar && \
2a4cbe27
NN
6995 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6996 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6997 "RANLIB=$${RANLIB}" \
6998 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 6999 clean) \
2a4cbe27
NN
7000 || exit 1
7001
6bd3dfaa 7002@endif fastjar
2a4cbe27 7003
4fa63067
NN
7004.PHONY: maybe-distclean-fastjar distclean-fastjar
7005maybe-distclean-fastjar:
6bd3dfaa
PB
7006@if fastjar
7007maybe-distclean-fastjar: distclean-fastjar
2a4cbe27 7008
4fa63067
NN
7009distclean-fastjar:
7010 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7011 r=`${PWD_COMMAND}`; export r; \
7012 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 7013 $(SET_LIB_PATH) \
378fce5b 7014 $(HOST_EXPORTS) \
b813574b 7015 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7016 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7017 done; \
4fa63067
NN
7018 echo "Doing distclean in fastjar" ; \
7019 (cd fastjar && \
2a4cbe27
NN
7020 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7021 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7022 "RANLIB=$${RANLIB}" \
7023 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 7024 distclean) \
2a4cbe27
NN
7025 || exit 1
7026
6bd3dfaa 7027@endif fastjar
2a4cbe27 7028
4fa63067
NN
7029.PHONY: maybe-maintainer-clean-fastjar maintainer-clean-fastjar
7030maybe-maintainer-clean-fastjar:
6bd3dfaa
PB
7031@if fastjar
7032maybe-maintainer-clean-fastjar: maintainer-clean-fastjar
2a4cbe27 7033
4fa63067
NN
7034maintainer-clean-fastjar:
7035 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7036 r=`${PWD_COMMAND}`; export r; \
7037 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 7038 $(SET_LIB_PATH) \
378fce5b 7039 $(HOST_EXPORTS) \
b813574b 7040 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7041 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7042 done; \
4fa63067
NN
7043 echo "Doing maintainer-clean in fastjar" ; \
7044 (cd fastjar && \
2a4cbe27
NN
7045 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7046 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7047 "RANLIB=$${RANLIB}" \
7048 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 7049 maintainer-clean) \
2a4cbe27
NN
7050 || exit 1
7051
6bd3dfaa 7052@endif fastjar
2a4cbe27 7053
2a4cbe27 7054
4fa63067
NN
7055.PHONY: configure-fileutils maybe-configure-fileutils
7056maybe-configure-fileutils:
6bd3dfaa
PB
7057@if fileutils
7058maybe-configure-fileutils: configure-fileutils
4fa63067
NN
7059configure-fileutils:
7060 @test ! -f fileutils/Makefile || exit 0; \
7061 [ -d fileutils ] || mkdir fileutils; \
b40e3958
L
7062 r=`${PWD_COMMAND}`; export r; \
7063 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7064 $(HOST_EXPORTS) \
4fa63067
NN
7065 echo Configuring in fileutils; \
7066 cd fileutils || exit 1; \
7067 case $(srcdir) in \
7068 \.) \
7069 srcdiroption="--srcdir=."; \
7070 libsrcdir=".";; \
7071 /* | [A-Za-z]:[\\/]*) \
7072 srcdiroption="--srcdir=$(srcdir)/fileutils"; \
7073 libsrcdir="$$s/fileutils";; \
7074 *) \
7075 srcdiroption="--srcdir=../$(srcdir)/fileutils"; \
7076 libsrcdir="$$s/fileutils";; \
7077 esac; \
7078 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 7079 $(HOST_CONFIGARGS) $${srcdiroption} \
2a4cbe27 7080 || exit 1
6bd3dfaa 7081@endif fileutils
2a4cbe27 7082
4fa63067
NN
7083.PHONY: all-fileutils maybe-all-fileutils
7084maybe-all-fileutils:
6bd3dfaa
PB
7085@if fileutils
7086maybe-all-fileutils: all-fileutils
4fa63067
NN
7087all-fileutils: configure-fileutils
7088 @r=`${PWD_COMMAND}`; export r; \
b40e3958 7089 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 7090 $(SET_LIB_PATH) \
378fce5b 7091 $(HOST_EXPORTS) \
7ffa0b57 7092 (cd fileutils && $(MAKE) $(FLAGS_TO_PASS) all)
6bd3dfaa 7093@endif fileutils
4fa63067
NN
7094
7095.PHONY: check-fileutils maybe-check-fileutils
7096maybe-check-fileutils:
6bd3dfaa
PB
7097@if fileutils
7098maybe-check-fileutils: check-fileutils
4fa63067
NN
7099
7100check-fileutils:
7101 @r=`${PWD_COMMAND}`; export r; \
7102 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7103 $(SET_LIB_PATH) \
378fce5b 7104 $(HOST_EXPORTS) \
72b2455a 7105 (cd fileutils && $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 7106
6bd3dfaa 7107@endif fileutils
2a4cbe27 7108
4fa63067
NN
7109.PHONY: install-fileutils maybe-install-fileutils
7110maybe-install-fileutils:
6bd3dfaa
PB
7111@if fileutils
7112maybe-install-fileutils: install-fileutils
2a4cbe27 7113
4fa63067
NN
7114install-fileutils: installdirs
7115 @r=`${PWD_COMMAND}`; export r; \
b40e3958 7116 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 7117 $(SET_LIB_PATH) \
378fce5b 7118 $(HOST_EXPORTS) \
72b2455a 7119 (cd fileutils && $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 7120
6bd3dfaa 7121@endif fileutils
2a4cbe27 7122
4fa63067 7123# Other targets (info, dvi, etc.)
2a4cbe27 7124
4fa63067
NN
7125.PHONY: maybe-info-fileutils info-fileutils
7126maybe-info-fileutils:
6bd3dfaa
PB
7127@if fileutils
7128maybe-info-fileutils: info-fileutils
4fa63067
NN
7129
7130info-fileutils: \
7131 configure-fileutils
7132 @[ -f ./fileutils/Makefile ] || exit 0; \
b40e3958
L
7133 r=`${PWD_COMMAND}`; export r; \
7134 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 7135 $(SET_LIB_PATH) \
378fce5b 7136 $(HOST_EXPORTS) \
b813574b 7137 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7138 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7139 done; \
4fa63067
NN
7140 echo "Doing info in fileutils" ; \
7141 (cd fileutils && \
2a4cbe27
NN
7142 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7143 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7144 "RANLIB=$${RANLIB}" \
7145 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 7146 info) \
2a4cbe27
NN
7147 || exit 1
7148
6bd3dfaa 7149@endif fileutils
2a4cbe27 7150
4fa63067
NN
7151.PHONY: maybe-dvi-fileutils dvi-fileutils
7152maybe-dvi-fileutils:
6bd3dfaa
PB
7153@if fileutils
7154maybe-dvi-fileutils: dvi-fileutils
2a4cbe27 7155
4fa63067
NN
7156dvi-fileutils: \
7157 configure-fileutils
7158 @[ -f ./fileutils/Makefile ] || exit 0; \
b40e3958
L
7159 r=`${PWD_COMMAND}`; export r; \
7160 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 7161 $(SET_LIB_PATH) \
378fce5b 7162 $(HOST_EXPORTS) \
b813574b 7163 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7164 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7165 done; \
4fa63067
NN
7166 echo "Doing dvi in fileutils" ; \
7167 (cd fileutils && \
2a4cbe27
NN
7168 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7169 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7170 "RANLIB=$${RANLIB}" \
7171 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 7172 dvi) \
2a4cbe27
NN
7173 || exit 1
7174
6bd3dfaa 7175@endif fileutils
2a4cbe27 7176
4fa63067
NN
7177.PHONY: maybe-TAGS-fileutils TAGS-fileutils
7178maybe-TAGS-fileutils:
6bd3dfaa
PB
7179@if fileutils
7180maybe-TAGS-fileutils: TAGS-fileutils
2a4cbe27 7181
4fa63067
NN
7182TAGS-fileutils: \
7183 configure-fileutils
7184 @[ -f ./fileutils/Makefile ] || exit 0; \
b40e3958
L
7185 r=`${PWD_COMMAND}`; export r; \
7186 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 7187 $(SET_LIB_PATH) \
378fce5b 7188 $(HOST_EXPORTS) \
b813574b 7189 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7190 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7191 done; \
4fa63067
NN
7192 echo "Doing TAGS in fileutils" ; \
7193 (cd fileutils && \
2a4cbe27
NN
7194 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7195 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7196 "RANLIB=$${RANLIB}" \
7197 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 7198 TAGS) \
2a4cbe27
NN
7199 || exit 1
7200
6bd3dfaa 7201@endif fileutils
2a4cbe27 7202
4fa63067
NN
7203.PHONY: maybe-install-info-fileutils install-info-fileutils
7204maybe-install-info-fileutils:
6bd3dfaa
PB
7205@if fileutils
7206maybe-install-info-fileutils: install-info-fileutils
2a4cbe27 7207
4fa63067
NN
7208install-info-fileutils: \
7209 configure-fileutils \
7210 info-fileutils
7211 @[ -f ./fileutils/Makefile ] || exit 0; \
b40e3958
L
7212 r=`${PWD_COMMAND}`; export r; \
7213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 7214 $(SET_LIB_PATH) \
378fce5b 7215 $(HOST_EXPORTS) \
b813574b 7216 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7217 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7218 done; \
4fa63067
NN
7219 echo "Doing install-info in fileutils" ; \
7220 (cd fileutils && \
2a4cbe27
NN
7221 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7222 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7223 "RANLIB=$${RANLIB}" \
7224 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 7225 install-info) \
2a4cbe27
NN
7226 || exit 1
7227
6bd3dfaa 7228@endif fileutils
2a4cbe27 7229
4fa63067
NN
7230.PHONY: maybe-installcheck-fileutils installcheck-fileutils
7231maybe-installcheck-fileutils:
6bd3dfaa
PB
7232@if fileutils
7233maybe-installcheck-fileutils: installcheck-fileutils
2a4cbe27 7234
4fa63067
NN
7235installcheck-fileutils: \
7236 configure-fileutils
7237 @[ -f ./fileutils/Makefile ] || exit 0; \
b40e3958
L
7238 r=`${PWD_COMMAND}`; export r; \
7239 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 7240 $(SET_LIB_PATH) \
378fce5b 7241 $(HOST_EXPORTS) \
b813574b 7242 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7243 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7244 done; \
4fa63067
NN
7245 echo "Doing installcheck in fileutils" ; \
7246 (cd fileutils && \
2a4cbe27
NN
7247 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7248 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7249 "RANLIB=$${RANLIB}" \
7250 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 7251 installcheck) \
2a4cbe27
NN
7252 || exit 1
7253
6bd3dfaa 7254@endif fileutils
2a4cbe27 7255
4fa63067
NN
7256.PHONY: maybe-mostlyclean-fileutils mostlyclean-fileutils
7257maybe-mostlyclean-fileutils:
6bd3dfaa
PB
7258@if fileutils
7259maybe-mostlyclean-fileutils: mostlyclean-fileutils
2a4cbe27 7260
4fa63067
NN
7261mostlyclean-fileutils:
7262 @[ -f ./fileutils/Makefile ] || exit 0; \
b40e3958
L
7263 r=`${PWD_COMMAND}`; export r; \
7264 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 7265 $(SET_LIB_PATH) \
378fce5b 7266 $(HOST_EXPORTS) \
b813574b 7267 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7268 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7269 done; \
4fa63067
NN
7270 echo "Doing mostlyclean in fileutils" ; \
7271 (cd fileutils && \
2a4cbe27
NN
7272 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7273 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7274 "RANLIB=$${RANLIB}" \
7275 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 7276 mostlyclean) \
2a4cbe27
NN
7277 || exit 1
7278
6bd3dfaa 7279@endif fileutils
2a4cbe27 7280
4fa63067
NN
7281.PHONY: maybe-clean-fileutils clean-fileutils
7282maybe-clean-fileutils:
6bd3dfaa
PB
7283@if fileutils
7284maybe-clean-fileutils: clean-fileutils
2a4cbe27 7285
4fa63067
NN
7286clean-fileutils:
7287 @[ -f ./fileutils/Makefile ] || exit 0; \
b40e3958
L
7288 r=`${PWD_COMMAND}`; export r; \
7289 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 7290 $(SET_LIB_PATH) \
378fce5b 7291 $(HOST_EXPORTS) \
b813574b 7292 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7293 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7294 done; \
4fa63067
NN
7295 echo "Doing clean in fileutils" ; \
7296 (cd fileutils && \
2a4cbe27
NN
7297 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7298 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7299 "RANLIB=$${RANLIB}" \
7300 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 7301 clean) \
2a4cbe27
NN
7302 || exit 1
7303
6bd3dfaa 7304@endif fileutils
2a4cbe27 7305
4fa63067
NN
7306.PHONY: maybe-distclean-fileutils distclean-fileutils
7307maybe-distclean-fileutils:
6bd3dfaa
PB
7308@if fileutils
7309maybe-distclean-fileutils: distclean-fileutils
2a4cbe27 7310
4fa63067
NN
7311distclean-fileutils:
7312 @[ -f ./fileutils/Makefile ] || exit 0; \
b40e3958
L
7313 r=`${PWD_COMMAND}`; export r; \
7314 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 7315 $(SET_LIB_PATH) \
378fce5b 7316 $(HOST_EXPORTS) \
b813574b 7317 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7318 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7319 done; \
4fa63067
NN
7320 echo "Doing distclean in fileutils" ; \
7321 (cd fileutils && \
2a4cbe27
NN
7322 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7323 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7324 "RANLIB=$${RANLIB}" \
7325 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 7326 distclean) \
2a4cbe27
NN
7327 || exit 1
7328
6bd3dfaa 7329@endif fileutils
2a4cbe27 7330
4fa63067
NN
7331.PHONY: maybe-maintainer-clean-fileutils maintainer-clean-fileutils
7332maybe-maintainer-clean-fileutils:
6bd3dfaa
PB
7333@if fileutils
7334maybe-maintainer-clean-fileutils: maintainer-clean-fileutils
2a4cbe27 7335
4fa63067
NN
7336maintainer-clean-fileutils:
7337 @[ -f ./fileutils/Makefile ] || exit 0; \
b40e3958
L
7338 r=`${PWD_COMMAND}`; export r; \
7339 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 7340 $(SET_LIB_PATH) \
378fce5b 7341 $(HOST_EXPORTS) \
b813574b 7342 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7343 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7344 done; \
4fa63067
NN
7345 echo "Doing maintainer-clean in fileutils" ; \
7346 (cd fileutils && \
2a4cbe27
NN
7347 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7348 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7349 "RANLIB=$${RANLIB}" \
7350 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 7351 maintainer-clean) \
2a4cbe27
NN
7352 || exit 1
7353
6bd3dfaa 7354@endif fileutils
2a4cbe27 7355
2a4cbe27 7356
4fa63067
NN
7357.PHONY: configure-findutils maybe-configure-findutils
7358maybe-configure-findutils:
6bd3dfaa
PB
7359@if findutils
7360maybe-configure-findutils: configure-findutils
4fa63067
NN
7361configure-findutils:
7362 @test ! -f findutils/Makefile || exit 0; \
7363 [ -d findutils ] || mkdir findutils; \
b40e3958
L
7364 r=`${PWD_COMMAND}`; export r; \
7365 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7366 $(HOST_EXPORTS) \
4fa63067
NN
7367 echo Configuring in findutils; \
7368 cd findutils || exit 1; \
7369 case $(srcdir) in \
7370 \.) \
7371 srcdiroption="--srcdir=."; \
7372 libsrcdir=".";; \
7373 /* | [A-Za-z]:[\\/]*) \
7374 srcdiroption="--srcdir=$(srcdir)/findutils"; \
7375 libsrcdir="$$s/findutils";; \
7376 *) \
7377 srcdiroption="--srcdir=../$(srcdir)/findutils"; \
7378 libsrcdir="$$s/findutils";; \
7379 esac; \
7380 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 7381 $(HOST_CONFIGARGS) $${srcdiroption} \
2a4cbe27 7382 || exit 1
6bd3dfaa 7383@endif findutils
2a4cbe27 7384
4fa63067
NN
7385.PHONY: all-findutils maybe-all-findutils
7386maybe-all-findutils:
6bd3dfaa
PB
7387@if findutils
7388maybe-all-findutils: all-findutils
4fa63067
NN
7389all-findutils: configure-findutils
7390 @r=`${PWD_COMMAND}`; export r; \
7391 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7392 $(SET_LIB_PATH) \
378fce5b 7393 $(HOST_EXPORTS) \
7ffa0b57 7394 (cd findutils && $(MAKE) $(FLAGS_TO_PASS) all)
6bd3dfaa 7395@endif findutils
2a4cbe27 7396
4fa63067
NN
7397.PHONY: check-findutils maybe-check-findutils
7398maybe-check-findutils:
6bd3dfaa
PB
7399@if findutils
7400maybe-check-findutils: check-findutils
2a4cbe27 7401
4fa63067
NN
7402check-findutils:
7403 @r=`${PWD_COMMAND}`; export r; \
b40e3958 7404 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 7405 $(SET_LIB_PATH) \
378fce5b 7406 $(HOST_EXPORTS) \
72b2455a 7407 (cd findutils && $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 7408
6bd3dfaa 7409@endif findutils
2a4cbe27 7410
4fa63067
NN
7411.PHONY: install-findutils maybe-install-findutils
7412maybe-install-findutils:
6bd3dfaa
PB
7413@if findutils
7414maybe-install-findutils: install-findutils
2a4cbe27 7415
4fa63067
NN
7416install-findutils: installdirs
7417 @r=`${PWD_COMMAND}`; export r; \
b40e3958 7418 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 7419 $(SET_LIB_PATH) \
378fce5b 7420 $(HOST_EXPORTS) \
72b2455a 7421 (cd findutils && $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 7422
6bd3dfaa 7423@endif findutils
2a4cbe27 7424
4fa63067 7425# Other targets (info, dvi, etc.)
2a4cbe27 7426
4fa63067
NN
7427.PHONY: maybe-info-findutils info-findutils
7428maybe-info-findutils:
6bd3dfaa
PB
7429@if findutils
7430maybe-info-findutils: info-findutils
2a4cbe27 7431
4fa63067
NN
7432info-findutils: \
7433 configure-findutils
7434 @[ -f ./findutils/Makefile ] || exit 0; \
b40e3958
L
7435 r=`${PWD_COMMAND}`; export r; \
7436 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 7437 $(SET_LIB_PATH) \
378fce5b 7438 $(HOST_EXPORTS) \
b813574b 7439 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7440 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7441 done; \
4fa63067
NN
7442 echo "Doing info in findutils" ; \
7443 (cd findutils && \
2a4cbe27
NN
7444 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7445 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7446 "RANLIB=$${RANLIB}" \
7447 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 7448 info) \
2a4cbe27
NN
7449 || exit 1
7450
6bd3dfaa 7451@endif findutils
2a4cbe27 7452
4fa63067
NN
7453.PHONY: maybe-dvi-findutils dvi-findutils
7454maybe-dvi-findutils:
6bd3dfaa
PB
7455@if findutils
7456maybe-dvi-findutils: dvi-findutils
2a4cbe27 7457
4fa63067
NN
7458dvi-findutils: \
7459 configure-findutils
7460 @[ -f ./findutils/Makefile ] || exit 0; \
b40e3958
L
7461 r=`${PWD_COMMAND}`; export r; \
7462 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 7463 $(SET_LIB_PATH) \
378fce5b 7464 $(HOST_EXPORTS) \
b813574b 7465 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7466 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7467 done; \
4fa63067
NN
7468 echo "Doing dvi in findutils" ; \
7469 (cd findutils && \
2a4cbe27
NN
7470 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7471 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7472 "RANLIB=$${RANLIB}" \
7473 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 7474 dvi) \
2a4cbe27
NN
7475 || exit 1
7476
6bd3dfaa 7477@endif findutils
2a4cbe27 7478
4fa63067
NN
7479.PHONY: maybe-TAGS-findutils TAGS-findutils
7480maybe-TAGS-findutils:
6bd3dfaa
PB
7481@if findutils
7482maybe-TAGS-findutils: TAGS-findutils
2a4cbe27 7483
4fa63067
NN
7484TAGS-findutils: \
7485 configure-findutils
7486 @[ -f ./findutils/Makefile ] || exit 0; \
b40e3958
L
7487 r=`${PWD_COMMAND}`; export r; \
7488 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 7489 $(SET_LIB_PATH) \
378fce5b 7490 $(HOST_EXPORTS) \
b813574b 7491 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7492 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7493 done; \
4fa63067
NN
7494 echo "Doing TAGS in findutils" ; \
7495 (cd findutils && \
2a4cbe27
NN
7496 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7497 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7498 "RANLIB=$${RANLIB}" \
7499 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 7500 TAGS) \
2a4cbe27
NN
7501 || exit 1
7502
6bd3dfaa 7503@endif findutils
2a4cbe27 7504
4fa63067
NN
7505.PHONY: maybe-install-info-findutils install-info-findutils
7506maybe-install-info-findutils:
6bd3dfaa
PB
7507@if findutils
7508maybe-install-info-findutils: install-info-findutils
2a4cbe27 7509
4fa63067
NN
7510install-info-findutils: \
7511 configure-findutils \
7512 info-findutils
7513 @[ -f ./findutils/Makefile ] || exit 0; \
b40e3958
L
7514 r=`${PWD_COMMAND}`; export r; \
7515 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 7516 $(SET_LIB_PATH) \
378fce5b 7517 $(HOST_EXPORTS) \
b813574b 7518 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7519 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7520 done; \
4fa63067
NN
7521 echo "Doing install-info in findutils" ; \
7522 (cd findutils && \
2a4cbe27
NN
7523 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7524 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7525 "RANLIB=$${RANLIB}" \
7526 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 7527 install-info) \
2a4cbe27
NN
7528 || exit 1
7529
6bd3dfaa 7530@endif findutils
2a4cbe27 7531
4fa63067
NN
7532.PHONY: maybe-installcheck-findutils installcheck-findutils
7533maybe-installcheck-findutils:
6bd3dfaa
PB
7534@if findutils
7535maybe-installcheck-findutils: installcheck-findutils
2a4cbe27 7536
4fa63067
NN
7537installcheck-findutils: \
7538 configure-findutils
7539 @[ -f ./findutils/Makefile ] || exit 0; \
b40e3958
L
7540 r=`${PWD_COMMAND}`; export r; \
7541 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 7542 $(SET_LIB_PATH) \
378fce5b 7543 $(HOST_EXPORTS) \
b813574b 7544 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7545 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7546 done; \
4fa63067
NN
7547 echo "Doing installcheck in findutils" ; \
7548 (cd findutils && \
2a4cbe27
NN
7549 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7550 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7551 "RANLIB=$${RANLIB}" \
7552 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 7553 installcheck) \
2a4cbe27
NN
7554 || exit 1
7555
6bd3dfaa 7556@endif findutils
2a4cbe27 7557
4fa63067
NN
7558.PHONY: maybe-mostlyclean-findutils mostlyclean-findutils
7559maybe-mostlyclean-findutils:
6bd3dfaa
PB
7560@if findutils
7561maybe-mostlyclean-findutils: mostlyclean-findutils
2a4cbe27 7562
4fa63067
NN
7563mostlyclean-findutils:
7564 @[ -f ./findutils/Makefile ] || exit 0; \
b40e3958
L
7565 r=`${PWD_COMMAND}`; export r; \
7566 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 7567 $(SET_LIB_PATH) \
378fce5b 7568 $(HOST_EXPORTS) \
b813574b 7569 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7570 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7571 done; \
4fa63067
NN
7572 echo "Doing mostlyclean in findutils" ; \
7573 (cd findutils && \
2a4cbe27
NN
7574 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7575 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7576 "RANLIB=$${RANLIB}" \
7577 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 7578 mostlyclean) \
2a4cbe27
NN
7579 || exit 1
7580
6bd3dfaa 7581@endif findutils
2a4cbe27 7582
4fa63067
NN
7583.PHONY: maybe-clean-findutils clean-findutils
7584maybe-clean-findutils:
6bd3dfaa
PB
7585@if findutils
7586maybe-clean-findutils: clean-findutils
2a4cbe27 7587
4fa63067
NN
7588clean-findutils:
7589 @[ -f ./findutils/Makefile ] || exit 0; \
b40e3958
L
7590 r=`${PWD_COMMAND}`; export r; \
7591 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 7592 $(SET_LIB_PATH) \
378fce5b 7593 $(HOST_EXPORTS) \
b813574b 7594 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7595 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7596 done; \
4fa63067
NN
7597 echo "Doing clean in findutils" ; \
7598 (cd findutils && \
2a4cbe27
NN
7599 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7600 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7601 "RANLIB=$${RANLIB}" \
7602 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 7603 clean) \
2a4cbe27
NN
7604 || exit 1
7605
6bd3dfaa 7606@endif findutils
2a4cbe27 7607
4fa63067
NN
7608.PHONY: maybe-distclean-findutils distclean-findutils
7609maybe-distclean-findutils:
6bd3dfaa
PB
7610@if findutils
7611maybe-distclean-findutils: distclean-findutils
2a4cbe27 7612
4fa63067
NN
7613distclean-findutils:
7614 @[ -f ./findutils/Makefile ] || exit 0; \
b40e3958
L
7615 r=`${PWD_COMMAND}`; export r; \
7616 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 7617 $(SET_LIB_PATH) \
378fce5b 7618 $(HOST_EXPORTS) \
b813574b 7619 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7620 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7621 done; \
4fa63067
NN
7622 echo "Doing distclean in findutils" ; \
7623 (cd findutils && \
2a4cbe27
NN
7624 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7625 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7626 "RANLIB=$${RANLIB}" \
7627 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 7628 distclean) \
2a4cbe27
NN
7629 || exit 1
7630
6bd3dfaa 7631@endif findutils
2a4cbe27 7632
4fa63067
NN
7633.PHONY: maybe-maintainer-clean-findutils maintainer-clean-findutils
7634maybe-maintainer-clean-findutils:
6bd3dfaa
PB
7635@if findutils
7636maybe-maintainer-clean-findutils: maintainer-clean-findutils
2a4cbe27 7637
4fa63067
NN
7638maintainer-clean-findutils:
7639 @[ -f ./findutils/Makefile ] || exit 0; \
b40e3958
L
7640 r=`${PWD_COMMAND}`; export r; \
7641 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 7642 $(SET_LIB_PATH) \
378fce5b 7643 $(HOST_EXPORTS) \
b813574b 7644 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7645 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7646 done; \
4fa63067
NN
7647 echo "Doing maintainer-clean in findutils" ; \
7648 (cd findutils && \
2a4cbe27
NN
7649 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7650 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7651 "RANLIB=$${RANLIB}" \
7652 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 7653 maintainer-clean) \
2a4cbe27
NN
7654 || exit 1
7655
6bd3dfaa 7656@endif findutils
2a4cbe27 7657
2a4cbe27 7658
4fa63067
NN
7659.PHONY: configure-find maybe-configure-find
7660maybe-configure-find:
6bd3dfaa
PB
7661@if find
7662maybe-configure-find: configure-find
4fa63067
NN
7663configure-find:
7664 @test ! -f find/Makefile || exit 0; \
7665 [ -d find ] || mkdir find; \
b40e3958
L
7666 r=`${PWD_COMMAND}`; export r; \
7667 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7668 $(HOST_EXPORTS) \
4fa63067
NN
7669 echo Configuring in find; \
7670 cd find || exit 1; \
7671 case $(srcdir) in \
7672 \.) \
7673 srcdiroption="--srcdir=."; \
7674 libsrcdir=".";; \
7675 /* | [A-Za-z]:[\\/]*) \
7676 srcdiroption="--srcdir=$(srcdir)/find"; \
7677 libsrcdir="$$s/find";; \
7678 *) \
7679 srcdiroption="--srcdir=../$(srcdir)/find"; \
7680 libsrcdir="$$s/find";; \
7681 esac; \
7682 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 7683 $(HOST_CONFIGARGS) $${srcdiroption} \
2a4cbe27 7684 || exit 1
6bd3dfaa 7685@endif find
2a4cbe27 7686
4fa63067
NN
7687.PHONY: all-find maybe-all-find
7688maybe-all-find:
6bd3dfaa
PB
7689@if find
7690maybe-all-find: all-find
4fa63067
NN
7691all-find: configure-find
7692 @r=`${PWD_COMMAND}`; export r; \
7693 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7694 $(SET_LIB_PATH) \
378fce5b 7695 $(HOST_EXPORTS) \
7ffa0b57 7696 (cd find && $(MAKE) $(FLAGS_TO_PASS) all)
6bd3dfaa 7697@endif find
2a4cbe27 7698
4fa63067
NN
7699.PHONY: check-find maybe-check-find
7700maybe-check-find:
6bd3dfaa
PB
7701@if find
7702maybe-check-find: check-find
2a4cbe27 7703
4fa63067
NN
7704check-find:
7705 @r=`${PWD_COMMAND}`; export r; \
b40e3958 7706 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 7707 $(SET_LIB_PATH) \
378fce5b 7708 $(HOST_EXPORTS) \
72b2455a 7709 (cd find && $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 7710
6bd3dfaa 7711@endif find
2a4cbe27 7712
4fa63067
NN
7713.PHONY: install-find maybe-install-find
7714maybe-install-find:
6bd3dfaa
PB
7715@if find
7716maybe-install-find: install-find
2a4cbe27 7717
4fa63067
NN
7718install-find: installdirs
7719 @r=`${PWD_COMMAND}`; export r; \
7720 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7721 $(SET_LIB_PATH) \
378fce5b 7722 $(HOST_EXPORTS) \
72b2455a 7723 (cd find && $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 7724
6bd3dfaa 7725@endif find
4fa63067
NN
7726
7727# Other targets (info, dvi, etc.)
7728
7729.PHONY: maybe-info-find info-find
7730maybe-info-find:
6bd3dfaa
PB
7731@if find
7732maybe-info-find: info-find
4fa63067
NN
7733
7734info-find: \
7735 configure-find
7736 @[ -f ./find/Makefile ] || exit 0; \
b40e3958
L
7737 r=`${PWD_COMMAND}`; export r; \
7738 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 7739 $(SET_LIB_PATH) \
378fce5b 7740 $(HOST_EXPORTS) \
b813574b 7741 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7742 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7743 done; \
4fa63067
NN
7744 echo "Doing info in find" ; \
7745 (cd find && \
2a4cbe27
NN
7746 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7747 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7748 "RANLIB=$${RANLIB}" \
7749 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 7750 info) \
2a4cbe27
NN
7751 || exit 1
7752
6bd3dfaa 7753@endif find
2a4cbe27 7754
4fa63067
NN
7755.PHONY: maybe-dvi-find dvi-find
7756maybe-dvi-find:
6bd3dfaa
PB
7757@if find
7758maybe-dvi-find: dvi-find
2a4cbe27 7759
4fa63067
NN
7760dvi-find: \
7761 configure-find
7762 @[ -f ./find/Makefile ] || exit 0; \
b40e3958
L
7763 r=`${PWD_COMMAND}`; export r; \
7764 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 7765 $(SET_LIB_PATH) \
378fce5b 7766 $(HOST_EXPORTS) \
b813574b 7767 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7768 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7769 done; \
4fa63067
NN
7770 echo "Doing dvi in find" ; \
7771 (cd find && \
2a4cbe27
NN
7772 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7773 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7774 "RANLIB=$${RANLIB}" \
7775 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 7776 dvi) \
2a4cbe27
NN
7777 || exit 1
7778
6bd3dfaa 7779@endif find
2a4cbe27 7780
4fa63067
NN
7781.PHONY: maybe-TAGS-find TAGS-find
7782maybe-TAGS-find:
6bd3dfaa
PB
7783@if find
7784maybe-TAGS-find: TAGS-find
4fa63067
NN
7785
7786TAGS-find: \
7787 configure-find
7788 @[ -f ./find/Makefile ] || exit 0; \
b40e3958
L
7789 r=`${PWD_COMMAND}`; export r; \
7790 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 7791 $(SET_LIB_PATH) \
378fce5b 7792 $(HOST_EXPORTS) \
b813574b 7793 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7794 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7795 done; \
4fa63067
NN
7796 echo "Doing TAGS in find" ; \
7797 (cd find && \
2a4cbe27
NN
7798 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7799 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7800 "RANLIB=$${RANLIB}" \
7801 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 7802 TAGS) \
2a4cbe27
NN
7803 || exit 1
7804
6bd3dfaa 7805@endif find
2a4cbe27 7806
4fa63067
NN
7807.PHONY: maybe-install-info-find install-info-find
7808maybe-install-info-find:
6bd3dfaa
PB
7809@if find
7810maybe-install-info-find: install-info-find
2a4cbe27 7811
4fa63067
NN
7812install-info-find: \
7813 configure-find \
7814 info-find
7815 @[ -f ./find/Makefile ] || exit 0; \
b40e3958
L
7816 r=`${PWD_COMMAND}`; export r; \
7817 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 7818 $(SET_LIB_PATH) \
378fce5b 7819 $(HOST_EXPORTS) \
b813574b 7820 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7821 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7822 done; \
4fa63067
NN
7823 echo "Doing install-info in find" ; \
7824 (cd find && \
2a4cbe27
NN
7825 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7826 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7827 "RANLIB=$${RANLIB}" \
7828 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 7829 install-info) \
2a4cbe27
NN
7830 || exit 1
7831
6bd3dfaa 7832@endif find
2a4cbe27 7833
4fa63067
NN
7834.PHONY: maybe-installcheck-find installcheck-find
7835maybe-installcheck-find:
6bd3dfaa
PB
7836@if find
7837maybe-installcheck-find: installcheck-find
2a4cbe27 7838
4fa63067
NN
7839installcheck-find: \
7840 configure-find
7841 @[ -f ./find/Makefile ] || exit 0; \
b40e3958
L
7842 r=`${PWD_COMMAND}`; export r; \
7843 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 7844 $(SET_LIB_PATH) \
378fce5b 7845 $(HOST_EXPORTS) \
b813574b 7846 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7847 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7848 done; \
4fa63067
NN
7849 echo "Doing installcheck in find" ; \
7850 (cd find && \
2a4cbe27
NN
7851 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7852 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7853 "RANLIB=$${RANLIB}" \
7854 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 7855 installcheck) \
2a4cbe27
NN
7856 || exit 1
7857
6bd3dfaa 7858@endif find
2a4cbe27 7859
4fa63067
NN
7860.PHONY: maybe-mostlyclean-find mostlyclean-find
7861maybe-mostlyclean-find:
6bd3dfaa
PB
7862@if find
7863maybe-mostlyclean-find: mostlyclean-find
2a4cbe27 7864
4fa63067
NN
7865mostlyclean-find:
7866 @[ -f ./find/Makefile ] || exit 0; \
b40e3958
L
7867 r=`${PWD_COMMAND}`; export r; \
7868 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 7869 $(SET_LIB_PATH) \
378fce5b 7870 $(HOST_EXPORTS) \
b813574b 7871 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7872 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7873 done; \
4fa63067
NN
7874 echo "Doing mostlyclean in find" ; \
7875 (cd find && \
2a4cbe27
NN
7876 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7877 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7878 "RANLIB=$${RANLIB}" \
7879 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 7880 mostlyclean) \
2a4cbe27
NN
7881 || exit 1
7882
6bd3dfaa 7883@endif find
2a4cbe27 7884
4fa63067
NN
7885.PHONY: maybe-clean-find clean-find
7886maybe-clean-find:
6bd3dfaa
PB
7887@if find
7888maybe-clean-find: clean-find
2a4cbe27 7889
4fa63067
NN
7890clean-find:
7891 @[ -f ./find/Makefile ] || exit 0; \
b40e3958
L
7892 r=`${PWD_COMMAND}`; export r; \
7893 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 7894 $(SET_LIB_PATH) \
378fce5b 7895 $(HOST_EXPORTS) \
b813574b 7896 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7897 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7898 done; \
4fa63067
NN
7899 echo "Doing clean in find" ; \
7900 (cd find && \
2a4cbe27
NN
7901 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7902 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7903 "RANLIB=$${RANLIB}" \
7904 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 7905 clean) \
2a4cbe27
NN
7906 || exit 1
7907
6bd3dfaa 7908@endif find
2a4cbe27 7909
4fa63067
NN
7910.PHONY: maybe-distclean-find distclean-find
7911maybe-distclean-find:
6bd3dfaa
PB
7912@if find
7913maybe-distclean-find: distclean-find
2a4cbe27 7914
4fa63067
NN
7915distclean-find:
7916 @[ -f ./find/Makefile ] || exit 0; \
b40e3958
L
7917 r=`${PWD_COMMAND}`; export r; \
7918 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 7919 $(SET_LIB_PATH) \
378fce5b 7920 $(HOST_EXPORTS) \
b813574b 7921 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7922 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7923 done; \
4fa63067
NN
7924 echo "Doing distclean in find" ; \
7925 (cd find && \
2a4cbe27
NN
7926 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7927 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7928 "RANLIB=$${RANLIB}" \
7929 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 7930 distclean) \
2a4cbe27
NN
7931 || exit 1
7932
6bd3dfaa 7933@endif find
2a4cbe27 7934
4fa63067
NN
7935.PHONY: maybe-maintainer-clean-find maintainer-clean-find
7936maybe-maintainer-clean-find:
6bd3dfaa
PB
7937@if find
7938maybe-maintainer-clean-find: maintainer-clean-find
2a4cbe27 7939
4fa63067
NN
7940maintainer-clean-find:
7941 @[ -f ./find/Makefile ] || exit 0; \
b40e3958
L
7942 r=`${PWD_COMMAND}`; export r; \
7943 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 7944 $(SET_LIB_PATH) \
378fce5b 7945 $(HOST_EXPORTS) \
b813574b 7946 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7947 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7948 done; \
4fa63067
NN
7949 echo "Doing maintainer-clean in find" ; \
7950 (cd find && \
2a4cbe27
NN
7951 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7952 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7953 "RANLIB=$${RANLIB}" \
7954 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 7955 maintainer-clean) \
2a4cbe27
NN
7956 || exit 1
7957
6bd3dfaa 7958@endif find
2a4cbe27 7959
2a4cbe27 7960
4fa63067
NN
7961.PHONY: configure-flex maybe-configure-flex
7962maybe-configure-flex:
6bd3dfaa
PB
7963@if flex
7964maybe-configure-flex: configure-flex
4fa63067
NN
7965configure-flex:
7966 @test ! -f flex/Makefile || exit 0; \
7967 [ -d flex ] || mkdir flex; \
7968 r=`${PWD_COMMAND}`; export r; \
7969 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7970 $(HOST_EXPORTS) \
4fa63067
NN
7971 echo Configuring in flex; \
7972 cd flex || exit 1; \
7973 case $(srcdir) in \
7974 \.) \
7975 srcdiroption="--srcdir=."; \
7976 libsrcdir=".";; \
7977 /* | [A-Za-z]:[\\/]*) \
7978 srcdiroption="--srcdir=$(srcdir)/flex"; \
7979 libsrcdir="$$s/flex";; \
7980 *) \
7981 srcdiroption="--srcdir=../$(srcdir)/flex"; \
7982 libsrcdir="$$s/flex";; \
7983 esac; \
7984 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 7985 $(HOST_CONFIGARGS) $${srcdiroption} \
4fa63067 7986 || exit 1
6bd3dfaa 7987@endif flex
4fa63067
NN
7988
7989.PHONY: all-flex maybe-all-flex
7990maybe-all-flex:
6bd3dfaa
PB
7991@if flex
7992maybe-all-flex: all-flex
4fa63067
NN
7993all-flex: configure-flex
7994 @r=`${PWD_COMMAND}`; export r; \
7995 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7996 $(SET_LIB_PATH) \
378fce5b 7997 $(HOST_EXPORTS) \
7ffa0b57 7998 (cd flex && $(MAKE) $(FLAGS_TO_PASS) all)
6bd3dfaa 7999@endif flex
4fa63067
NN
8000
8001.PHONY: check-flex maybe-check-flex
8002maybe-check-flex:
6bd3dfaa
PB
8003@if flex
8004maybe-check-flex: check-flex
4fa63067
NN
8005
8006# This module is only tested in a native toolchain.
8007check-flex:
8008 @if [ '$(host)' = '$(target)' ] ; then \
8009 r=`${PWD_COMMAND}`; export r; \
8010 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8011 $(SET_LIB_PATH) \
378fce5b 8012 $(HOST_EXPORTS) \
7ffa0b57 8013 (cd flex && $(MAKE) $(FLAGS_TO_PASS) check); \
4fa63067
NN
8014 fi
8015
6bd3dfaa 8016@endif flex
4fa63067
NN
8017
8018.PHONY: install-flex maybe-install-flex
8019maybe-install-flex:
6bd3dfaa
PB
8020@if flex
8021maybe-install-flex: install-flex
4fa63067
NN
8022
8023install-flex: installdirs
8024 @r=`${PWD_COMMAND}`; export r; \
8025 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8026 $(SET_LIB_PATH) \
378fce5b 8027 $(HOST_EXPORTS) \
72b2455a 8028 (cd flex && $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 8029
6bd3dfaa 8030@endif flex
4fa63067
NN
8031
8032# Other targets (info, dvi, etc.)
8033
8034.PHONY: maybe-info-flex info-flex
8035maybe-info-flex:
6bd3dfaa
PB
8036@if flex
8037maybe-info-flex: info-flex
4fa63067
NN
8038
8039info-flex: \
8040 configure-flex
8041 @[ -f ./flex/Makefile ] || exit 0; \
b40e3958
L
8042 r=`${PWD_COMMAND}`; export r; \
8043 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 8044 $(SET_LIB_PATH) \
378fce5b 8045 $(HOST_EXPORTS) \
b813574b 8046 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8047 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8048 done; \
4fa63067
NN
8049 echo "Doing info in flex" ; \
8050 (cd flex && \
2a4cbe27
NN
8051 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8052 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8053 "RANLIB=$${RANLIB}" \
8054 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 8055 info) \
2a4cbe27
NN
8056 || exit 1
8057
6bd3dfaa 8058@endif flex
2a4cbe27 8059
4fa63067
NN
8060.PHONY: maybe-dvi-flex dvi-flex
8061maybe-dvi-flex:
6bd3dfaa
PB
8062@if flex
8063maybe-dvi-flex: dvi-flex
2a4cbe27 8064
4fa63067
NN
8065dvi-flex: \
8066 configure-flex
8067 @[ -f ./flex/Makefile ] || exit 0; \
b40e3958
L
8068 r=`${PWD_COMMAND}`; export r; \
8069 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 8070 $(SET_LIB_PATH) \
378fce5b 8071 $(HOST_EXPORTS) \
b813574b 8072 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8073 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8074 done; \
4fa63067
NN
8075 echo "Doing dvi in flex" ; \
8076 (cd flex && \
2a4cbe27
NN
8077 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8078 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8079 "RANLIB=$${RANLIB}" \
8080 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 8081 dvi) \
2a4cbe27
NN
8082 || exit 1
8083
6bd3dfaa 8084@endif flex
2a4cbe27 8085
4fa63067
NN
8086.PHONY: maybe-TAGS-flex TAGS-flex
8087maybe-TAGS-flex:
6bd3dfaa
PB
8088@if flex
8089maybe-TAGS-flex: TAGS-flex
2a4cbe27 8090
4fa63067
NN
8091TAGS-flex: \
8092 configure-flex
8093 @[ -f ./flex/Makefile ] || exit 0; \
b40e3958
L
8094 r=`${PWD_COMMAND}`; export r; \
8095 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 8096 $(SET_LIB_PATH) \
378fce5b 8097 $(HOST_EXPORTS) \
b813574b 8098 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8099 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8100 done; \
4fa63067
NN
8101 echo "Doing TAGS in flex" ; \
8102 (cd flex && \
2a4cbe27
NN
8103 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8104 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8105 "RANLIB=$${RANLIB}" \
8106 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 8107 TAGS) \
2a4cbe27
NN
8108 || exit 1
8109
6bd3dfaa 8110@endif flex
2a4cbe27 8111
4fa63067
NN
8112.PHONY: maybe-install-info-flex install-info-flex
8113maybe-install-info-flex:
6bd3dfaa
PB
8114@if flex
8115maybe-install-info-flex: install-info-flex
2a4cbe27 8116
4fa63067
NN
8117install-info-flex: \
8118 configure-flex \
8119 info-flex
8120 @[ -f ./flex/Makefile ] || exit 0; \
b40e3958
L
8121 r=`${PWD_COMMAND}`; export r; \
8122 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 8123 $(SET_LIB_PATH) \
378fce5b 8124 $(HOST_EXPORTS) \
b813574b 8125 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8126 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8127 done; \
4fa63067
NN
8128 echo "Doing install-info in flex" ; \
8129 (cd flex && \
2a4cbe27
NN
8130 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8131 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8132 "RANLIB=$${RANLIB}" \
8133 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 8134 install-info) \
2a4cbe27
NN
8135 || exit 1
8136
6bd3dfaa 8137@endif flex
2a4cbe27 8138
4fa63067
NN
8139.PHONY: maybe-installcheck-flex installcheck-flex
8140maybe-installcheck-flex:
6bd3dfaa
PB
8141@if flex
8142maybe-installcheck-flex: installcheck-flex
2a4cbe27 8143
4fa63067
NN
8144installcheck-flex: \
8145 configure-flex
8146 @[ -f ./flex/Makefile ] || exit 0; \
b40e3958
L
8147 r=`${PWD_COMMAND}`; export r; \
8148 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 8149 $(SET_LIB_PATH) \
378fce5b 8150 $(HOST_EXPORTS) \
b813574b 8151 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8152 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8153 done; \
4fa63067
NN
8154 echo "Doing installcheck in flex" ; \
8155 (cd flex && \
2a4cbe27
NN
8156 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8157 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8158 "RANLIB=$${RANLIB}" \
8159 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 8160 installcheck) \
2a4cbe27
NN
8161 || exit 1
8162
6bd3dfaa 8163@endif flex
2a4cbe27 8164
4fa63067
NN
8165.PHONY: maybe-mostlyclean-flex mostlyclean-flex
8166maybe-mostlyclean-flex:
6bd3dfaa
PB
8167@if flex
8168maybe-mostlyclean-flex: mostlyclean-flex
2a4cbe27 8169
4fa63067
NN
8170mostlyclean-flex:
8171 @[ -f ./flex/Makefile ] || exit 0; \
b40e3958
L
8172 r=`${PWD_COMMAND}`; export r; \
8173 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 8174 $(SET_LIB_PATH) \
378fce5b 8175 $(HOST_EXPORTS) \
b813574b 8176 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8177 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8178 done; \
4fa63067
NN
8179 echo "Doing mostlyclean in flex" ; \
8180 (cd flex && \
2a4cbe27
NN
8181 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8182 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8183 "RANLIB=$${RANLIB}" \
8184 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 8185 mostlyclean) \
2a4cbe27
NN
8186 || exit 1
8187
6bd3dfaa 8188@endif flex
2a4cbe27 8189
4fa63067
NN
8190.PHONY: maybe-clean-flex clean-flex
8191maybe-clean-flex:
6bd3dfaa
PB
8192@if flex
8193maybe-clean-flex: clean-flex
2a4cbe27 8194
4fa63067
NN
8195clean-flex:
8196 @[ -f ./flex/Makefile ] || exit 0; \
b40e3958
L
8197 r=`${PWD_COMMAND}`; export r; \
8198 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 8199 $(SET_LIB_PATH) \
378fce5b 8200 $(HOST_EXPORTS) \
b813574b 8201 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8202 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8203 done; \
4fa63067
NN
8204 echo "Doing clean in flex" ; \
8205 (cd flex && \
2a4cbe27
NN
8206 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8207 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8208 "RANLIB=$${RANLIB}" \
8209 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 8210 clean) \
2a4cbe27
NN
8211 || exit 1
8212
6bd3dfaa 8213@endif flex
2a4cbe27 8214
4fa63067
NN
8215.PHONY: maybe-distclean-flex distclean-flex
8216maybe-distclean-flex:
6bd3dfaa
PB
8217@if flex
8218maybe-distclean-flex: distclean-flex
2a4cbe27 8219
4fa63067
NN
8220distclean-flex:
8221 @[ -f ./flex/Makefile ] || exit 0; \
b40e3958
L
8222 r=`${PWD_COMMAND}`; export r; \
8223 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 8224 $(SET_LIB_PATH) \
378fce5b 8225 $(HOST_EXPORTS) \
b813574b 8226 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8227 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8228 done; \
4fa63067
NN
8229 echo "Doing distclean in flex" ; \
8230 (cd flex && \
2a4cbe27
NN
8231 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8232 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8233 "RANLIB=$${RANLIB}" \
8234 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 8235 distclean) \
2a4cbe27
NN
8236 || exit 1
8237
6bd3dfaa 8238@endif flex
2a4cbe27 8239
4fa63067
NN
8240.PHONY: maybe-maintainer-clean-flex maintainer-clean-flex
8241maybe-maintainer-clean-flex:
6bd3dfaa
PB
8242@if flex
8243maybe-maintainer-clean-flex: maintainer-clean-flex
2a4cbe27 8244
4fa63067
NN
8245maintainer-clean-flex:
8246 @[ -f ./flex/Makefile ] || exit 0; \
b40e3958
L
8247 r=`${PWD_COMMAND}`; export r; \
8248 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 8249 $(SET_LIB_PATH) \
378fce5b 8250 $(HOST_EXPORTS) \
b813574b 8251 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8252 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8253 done; \
4fa63067
NN
8254 echo "Doing maintainer-clean in flex" ; \
8255 (cd flex && \
2a4cbe27
NN
8256 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8257 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8258 "RANLIB=$${RANLIB}" \
8259 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 8260 maintainer-clean) \
2a4cbe27
NN
8261 || exit 1
8262
6bd3dfaa 8263@endif flex
2a4cbe27 8264
2a4cbe27 8265
4fa63067
NN
8266.PHONY: configure-gas maybe-configure-gas
8267maybe-configure-gas:
6bd3dfaa
PB
8268@if gas
8269maybe-configure-gas: configure-gas
4fa63067 8270configure-gas:
72b2455a
PB
8271 @test -f stage_last && exit 0; \
8272 test ! -f gas/Makefile || exit 0; \
4fa63067 8273 [ -d gas ] || mkdir gas; \
b40e3958
L
8274 r=`${PWD_COMMAND}`; export r; \
8275 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8276 $(HOST_EXPORTS) \
4fa63067
NN
8277 echo Configuring in gas; \
8278 cd gas || exit 1; \
8279 case $(srcdir) in \
8280 \.) \
8281 srcdiroption="--srcdir=."; \
8282 libsrcdir=".";; \
8283 /* | [A-Za-z]:[\\/]*) \
8284 srcdiroption="--srcdir=$(srcdir)/gas"; \
8285 libsrcdir="$$s/gas";; \
8286 *) \
8287 srcdiroption="--srcdir=../$(srcdir)/gas"; \
8288 libsrcdir="$$s/gas";; \
8289 esac; \
8290 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 8291 $(HOST_CONFIGARGS) $${srcdiroption} \
4fa63067 8292 || exit 1
6bd3dfaa 8293@endif gas
4fa63067
NN
8294
8295.PHONY: all-gas maybe-all-gas
8296maybe-all-gas:
6bd3dfaa
PB
8297@if gas
8298maybe-all-gas: all-gas
4fa63067 8299all-gas: configure-gas
72b2455a
PB
8300 @test -f stage_last && exit 0; \
8301 r=`${PWD_COMMAND}`; export r; \
4fa63067 8302 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 8303 $(SET_LIB_PATH) \
378fce5b 8304 $(HOST_EXPORTS) \
7ffa0b57 8305 (cd gas && $(MAKE) $(FLAGS_TO_PASS) all)
6bd3dfaa 8306@endif gas
4fa63067
NN
8307
8308.PHONY: check-gas maybe-check-gas
8309maybe-check-gas:
6bd3dfaa
PB
8310@if gas
8311maybe-check-gas: check-gas
4fa63067
NN
8312
8313check-gas:
8314 @r=`${PWD_COMMAND}`; export r; \
8315 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8316 $(SET_LIB_PATH) \
378fce5b 8317 $(HOST_EXPORTS) \
72b2455a 8318 (cd gas && $(MAKE) $(FLAGS_TO_PASS) check)
4fa63067 8319
6bd3dfaa 8320@endif gas
4fa63067
NN
8321
8322.PHONY: install-gas maybe-install-gas
8323maybe-install-gas:
6bd3dfaa
PB
8324@if gas
8325maybe-install-gas: install-gas
4fa63067
NN
8326
8327install-gas: installdirs
8328 @r=`${PWD_COMMAND}`; export r; \
8329 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8330 $(SET_LIB_PATH) \
378fce5b 8331 $(HOST_EXPORTS) \
72b2455a 8332 (cd gas && $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 8333
6bd3dfaa 8334@endif gas
4fa63067
NN
8335
8336# Other targets (info, dvi, etc.)
8337
8338.PHONY: maybe-info-gas info-gas
8339maybe-info-gas:
6bd3dfaa
PB
8340@if gas
8341maybe-info-gas: info-gas
4fa63067
NN
8342
8343info-gas: \
8344 configure-gas
8345 @[ -f ./gas/Makefile ] || exit 0; \
8346 r=`${PWD_COMMAND}`; export r; \
8347 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8348 $(SET_LIB_PATH) \
378fce5b 8349 $(HOST_EXPORTS) \
b813574b 8350 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8351 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8352 done; \
4fa63067
NN
8353 echo "Doing info in gas" ; \
8354 (cd gas && \
2a4cbe27
NN
8355 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8356 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8357 "RANLIB=$${RANLIB}" \
8358 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 8359 info) \
2a4cbe27
NN
8360 || exit 1
8361
6bd3dfaa 8362@endif gas
2a4cbe27 8363
4fa63067
NN
8364.PHONY: maybe-dvi-gas dvi-gas
8365maybe-dvi-gas:
6bd3dfaa
PB
8366@if gas
8367maybe-dvi-gas: dvi-gas
2a4cbe27 8368
4fa63067
NN
8369dvi-gas: \
8370 configure-gas
8371 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
8372 r=`${PWD_COMMAND}`; export r; \
8373 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 8374 $(SET_LIB_PATH) \
378fce5b 8375 $(HOST_EXPORTS) \
b813574b 8376 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8377 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8378 done; \
4fa63067
NN
8379 echo "Doing dvi in gas" ; \
8380 (cd gas && \
2a4cbe27
NN
8381 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8382 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8383 "RANLIB=$${RANLIB}" \
8384 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 8385 dvi) \
2a4cbe27
NN
8386 || exit 1
8387
6bd3dfaa 8388@endif gas
2a4cbe27 8389
4fa63067
NN
8390.PHONY: maybe-TAGS-gas TAGS-gas
8391maybe-TAGS-gas:
6bd3dfaa
PB
8392@if gas
8393maybe-TAGS-gas: TAGS-gas
2a4cbe27 8394
4fa63067
NN
8395TAGS-gas: \
8396 configure-gas
8397 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
8398 r=`${PWD_COMMAND}`; export r; \
8399 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 8400 $(SET_LIB_PATH) \
378fce5b 8401 $(HOST_EXPORTS) \
b813574b 8402 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8403 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8404 done; \
4fa63067
NN
8405 echo "Doing TAGS in gas" ; \
8406 (cd gas && \
2a4cbe27
NN
8407 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8408 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8409 "RANLIB=$${RANLIB}" \
8410 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 8411 TAGS) \
2a4cbe27
NN
8412 || exit 1
8413
6bd3dfaa 8414@endif gas
2a4cbe27 8415
4fa63067
NN
8416.PHONY: maybe-install-info-gas install-info-gas
8417maybe-install-info-gas:
6bd3dfaa
PB
8418@if gas
8419maybe-install-info-gas: install-info-gas
2a4cbe27 8420
4fa63067
NN
8421install-info-gas: \
8422 configure-gas \
8423 info-gas
8424 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
8425 r=`${PWD_COMMAND}`; export r; \
8426 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 8427 $(SET_LIB_PATH) \
378fce5b 8428 $(HOST_EXPORTS) \
b813574b 8429 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8430 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8431 done; \
4fa63067
NN
8432 echo "Doing install-info in gas" ; \
8433 (cd gas && \
2a4cbe27
NN
8434 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8435 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8436 "RANLIB=$${RANLIB}" \
8437 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 8438 install-info) \
2a4cbe27
NN
8439 || exit 1
8440
6bd3dfaa 8441@endif gas
2a4cbe27 8442
4fa63067
NN
8443.PHONY: maybe-installcheck-gas installcheck-gas
8444maybe-installcheck-gas:
6bd3dfaa
PB
8445@if gas
8446maybe-installcheck-gas: installcheck-gas
2a4cbe27 8447
4fa63067
NN
8448installcheck-gas: \
8449 configure-gas
8450 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
8451 r=`${PWD_COMMAND}`; export r; \
8452 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 8453 $(SET_LIB_PATH) \
378fce5b 8454 $(HOST_EXPORTS) \
b813574b 8455 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8456 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8457 done; \
4fa63067
NN
8458 echo "Doing installcheck in gas" ; \
8459 (cd gas && \
2a4cbe27
NN
8460 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8461 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8462 "RANLIB=$${RANLIB}" \
8463 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 8464 installcheck) \
2a4cbe27
NN
8465 || exit 1
8466
6bd3dfaa 8467@endif gas
2a4cbe27 8468
4fa63067
NN
8469.PHONY: maybe-mostlyclean-gas mostlyclean-gas
8470maybe-mostlyclean-gas:
6bd3dfaa
PB
8471@if gas
8472maybe-mostlyclean-gas: mostlyclean-gas
2a4cbe27 8473
4fa63067
NN
8474mostlyclean-gas:
8475 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
8476 r=`${PWD_COMMAND}`; export r; \
8477 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 8478 $(SET_LIB_PATH) \
378fce5b 8479 $(HOST_EXPORTS) \
b813574b 8480 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8481 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8482 done; \
4fa63067
NN
8483 echo "Doing mostlyclean in gas" ; \
8484 (cd gas && \
2a4cbe27
NN
8485 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8486 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8487 "RANLIB=$${RANLIB}" \
8488 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 8489 mostlyclean) \
2a4cbe27
NN
8490 || exit 1
8491
6bd3dfaa 8492@endif gas
2a4cbe27 8493
4fa63067
NN
8494.PHONY: maybe-clean-gas clean-gas
8495maybe-clean-gas:
6bd3dfaa
PB
8496@if gas
8497maybe-clean-gas: clean-gas
2a4cbe27 8498
4fa63067
NN
8499clean-gas:
8500 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
8501 r=`${PWD_COMMAND}`; export r; \
8502 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 8503 $(SET_LIB_PATH) \
378fce5b 8504 $(HOST_EXPORTS) \
b813574b 8505 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8506 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8507 done; \
4fa63067
NN
8508 echo "Doing clean in gas" ; \
8509 (cd gas && \
2a4cbe27
NN
8510 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8511 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8512 "RANLIB=$${RANLIB}" \
8513 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 8514 clean) \
2a4cbe27
NN
8515 || exit 1
8516
6bd3dfaa 8517@endif gas
2a4cbe27 8518
4fa63067
NN
8519.PHONY: maybe-distclean-gas distclean-gas
8520maybe-distclean-gas:
6bd3dfaa
PB
8521@if gas
8522maybe-distclean-gas: distclean-gas
2a4cbe27 8523
4fa63067
NN
8524distclean-gas:
8525 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
8526 r=`${PWD_COMMAND}`; export r; \
8527 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 8528 $(SET_LIB_PATH) \
378fce5b 8529 $(HOST_EXPORTS) \
b813574b 8530 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8531 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8532 done; \
4fa63067
NN
8533 echo "Doing distclean in gas" ; \
8534 (cd gas && \
2a4cbe27
NN
8535 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8536 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8537 "RANLIB=$${RANLIB}" \
8538 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 8539 distclean) \
2a4cbe27
NN
8540 || exit 1
8541
6bd3dfaa 8542@endif gas
2a4cbe27 8543
4fa63067
NN
8544.PHONY: maybe-maintainer-clean-gas maintainer-clean-gas
8545maybe-maintainer-clean-gas:
6bd3dfaa
PB
8546@if gas
8547maybe-maintainer-clean-gas: maintainer-clean-gas
2a4cbe27 8548
4fa63067
NN
8549maintainer-clean-gas:
8550 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
8551 r=`${PWD_COMMAND}`; export r; \
8552 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 8553 $(SET_LIB_PATH) \
378fce5b 8554 $(HOST_EXPORTS) \
b813574b 8555 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8556 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8557 done; \
4fa63067
NN
8558 echo "Doing maintainer-clean in gas" ; \
8559 (cd gas && \
2a4cbe27
NN
8560 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8561 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8562 "RANLIB=$${RANLIB}" \
8563 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 8564 maintainer-clean) \
2a4cbe27
NN
8565 || exit 1
8566
6bd3dfaa 8567@endif gas
2a4cbe27 8568
2a4cbe27 8569
b813574b
PB
8570.PHONY: configure-gcc maybe-configure-gcc
8571maybe-configure-gcc:
8572@if gcc
8573maybe-configure-gcc: configure-gcc
8574configure-gcc:
72b2455a
PB
8575 @test -f stage_last && exit 0; \
8576 test ! -f gcc/Makefile || exit 0; \
b813574b 8577 [ -d gcc ] || mkdir gcc; \
4fa63067
NN
8578 r=`${PWD_COMMAND}`; export r; \
8579 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8580 $(HOST_EXPORTS) \
b813574b
PB
8581 echo Configuring in gcc; \
8582 cd gcc || exit 1; \
4fa63067
NN
8583 case $(srcdir) in \
8584 \.) \
8585 srcdiroption="--srcdir=."; \
8586 libsrcdir=".";; \
8587 /* | [A-Za-z]:[\\/]*) \
b813574b
PB
8588 srcdiroption="--srcdir=$(srcdir)/gcc"; \
8589 libsrcdir="$$s/gcc";; \
4fa63067 8590 *) \
b813574b
PB
8591 srcdiroption="--srcdir=../$(srcdir)/gcc"; \
8592 libsrcdir="$$s/gcc";; \
4fa63067
NN
8593 esac; \
8594 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 8595 $(HOST_CONFIGARGS) $${srcdiroption} \
4fa63067 8596 || exit 1
b813574b 8597@endif gcc
4fa63067 8598
b813574b
PB
8599.PHONY: all-gcc maybe-all-gcc
8600maybe-all-gcc:
8601@if gcc
8602maybe-all-gcc: all-gcc
8603all-gcc: configure-gcc
72b2455a
PB
8604 @test -f stage_last && exit 0; \
8605 r=`${PWD_COMMAND}`; export r; \
4fa63067
NN
8606 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8607 $(SET_LIB_PATH) \
378fce5b 8608 $(HOST_EXPORTS) \
b813574b
PB
8609 (cd gcc && $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
8610 `if [ -f gcc/stage_last ]; then echo quickstrap ; else echo all; fi` )
8611@endif gcc
4fa63067 8612
b813574b
PB
8613.PHONY: check-gcc maybe-check-gcc
8614maybe-check-gcc:
8615@if gcc
8616maybe-check-gcc: check-gcc
4fa63067 8617
b813574b 8618check-gcc:
4fa63067
NN
8619 @r=`${PWD_COMMAND}`; export r; \
8620 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8621 $(SET_LIB_PATH) \
378fce5b 8622 $(HOST_EXPORTS) \
72b2455a 8623 (cd gcc && $(MAKE) $(FLAGS_TO_PASS)$(EXTRA_GCC_FLAGS) check)
4fa63067 8624
b813574b 8625@endif gcc
4fa63067 8626
b813574b
PB
8627.PHONY: install-gcc maybe-install-gcc
8628maybe-install-gcc:
8629@if gcc
8630maybe-install-gcc: install-gcc
4fa63067 8631
b813574b 8632install-gcc: installdirs
4fa63067
NN
8633 @r=`${PWD_COMMAND}`; export r; \
8634 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8635 $(SET_LIB_PATH) \
378fce5b 8636 $(HOST_EXPORTS) \
72b2455a 8637 (cd gcc && $(MAKE) $(FLAGS_TO_PASS)$(EXTRA_GCC_FLAGS) install)
4fa63067 8638
b813574b 8639@endif gcc
4fa63067
NN
8640
8641# Other targets (info, dvi, etc.)
8642
b813574b
PB
8643.PHONY: maybe-info-gcc info-gcc
8644maybe-info-gcc:
8645@if gcc
8646maybe-info-gcc: info-gcc
4fa63067 8647
b813574b
PB
8648info-gcc: \
8649 configure-gcc
8650 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
8651 r=`${PWD_COMMAND}`; export r; \
8652 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 8653 $(SET_LIB_PATH) \
378fce5b 8654 $(HOST_EXPORTS) \
b813574b 8655 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
8656 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8657 done; \
b813574b
PB
8658 echo "Doing info in gcc" ; \
8659 (cd gcc && \
2a4cbe27
NN
8660 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8661 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8662 "RANLIB=$${RANLIB}" \
8663 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 8664 info) \
2a4cbe27
NN
8665 || exit 1
8666
b813574b 8667@endif gcc
2a4cbe27 8668
b813574b
PB
8669.PHONY: maybe-dvi-gcc dvi-gcc
8670maybe-dvi-gcc:
8671@if gcc
8672maybe-dvi-gcc: dvi-gcc
2a4cbe27 8673
b813574b
PB
8674dvi-gcc: \
8675 configure-gcc
8676 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
8677 r=`${PWD_COMMAND}`; export r; \
8678 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 8679 $(SET_LIB_PATH) \
378fce5b 8680 $(HOST_EXPORTS) \
b813574b 8681 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
8682 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8683 done; \
b813574b
PB
8684 echo "Doing dvi in gcc" ; \
8685 (cd gcc && \
2a4cbe27
NN
8686 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8687 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8688 "RANLIB=$${RANLIB}" \
8689 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 8690 dvi) \
2a4cbe27
NN
8691 || exit 1
8692
b813574b 8693@endif gcc
2a4cbe27 8694
b813574b
PB
8695.PHONY: maybe-TAGS-gcc TAGS-gcc
8696maybe-TAGS-gcc:
8697@if gcc
8698maybe-TAGS-gcc: TAGS-gcc
2a4cbe27 8699
b813574b
PB
8700TAGS-gcc: \
8701 configure-gcc
8702 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
8703 r=`${PWD_COMMAND}`; export r; \
8704 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 8705 $(SET_LIB_PATH) \
378fce5b 8706 $(HOST_EXPORTS) \
b813574b 8707 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
8708 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8709 done; \
b813574b
PB
8710 echo "Doing TAGS in gcc" ; \
8711 (cd gcc && \
2a4cbe27
NN
8712 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8713 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8714 "RANLIB=$${RANLIB}" \
8715 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 8716 TAGS) \
2a4cbe27
NN
8717 || exit 1
8718
b813574b 8719@endif gcc
2a4cbe27 8720
b813574b
PB
8721.PHONY: maybe-install-info-gcc install-info-gcc
8722maybe-install-info-gcc:
8723@if gcc
8724maybe-install-info-gcc: install-info-gcc
a2592b1b 8725
b813574b
PB
8726install-info-gcc: \
8727 configure-gcc \
8728 info-gcc
8729 @[ -f ./gcc/Makefile ] || exit 0; \
a2592b1b
DD
8730 r=`${PWD_COMMAND}`; export r; \
8731 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8732 $(SET_LIB_PATH) \
378fce5b 8733 $(HOST_EXPORTS) \
b813574b 8734 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
a2592b1b
DD
8735 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8736 done; \
b813574b
PB
8737 echo "Doing install-info in gcc" ; \
8738 (cd gcc && \
a2592b1b
DD
8739 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8740 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8741 "RANLIB=$${RANLIB}" \
8742 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 8743 install-info) \
a2592b1b
DD
8744 || exit 1
8745
b813574b 8746@endif gcc
a2592b1b 8747
b813574b
PB
8748.PHONY: maybe-installcheck-gcc installcheck-gcc
8749maybe-installcheck-gcc:
8750@if gcc
8751maybe-installcheck-gcc: installcheck-gcc
2a4cbe27 8752
b813574b
PB
8753installcheck-gcc: \
8754 configure-gcc
8755 @[ -f ./gcc/Makefile ] || exit 0; \
4fa63067
NN
8756 r=`${PWD_COMMAND}`; export r; \
8757 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8758 $(SET_LIB_PATH) \
378fce5b 8759 $(HOST_EXPORTS) \
b813574b 8760 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
4fa63067
NN
8761 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8762 done; \
b813574b
PB
8763 echo "Doing installcheck in gcc" ; \
8764 (cd gcc && \
4fa63067
NN
8765 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8766 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8767 "RANLIB=$${RANLIB}" \
8768 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 8769 installcheck) \
4fa63067 8770 || exit 1
2a4cbe27 8771
b813574b 8772@endif gcc
4fa63067 8773
b813574b
PB
8774.PHONY: maybe-mostlyclean-gcc mostlyclean-gcc
8775maybe-mostlyclean-gcc:
8776@if gcc
8777maybe-mostlyclean-gcc: mostlyclean-gcc
4fa63067 8778
b813574b
PB
8779mostlyclean-gcc:
8780 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
8781 r=`${PWD_COMMAND}`; export r; \
8782 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 8783 $(SET_LIB_PATH) \
378fce5b 8784 $(HOST_EXPORTS) \
b813574b 8785 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
8786 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8787 done; \
b813574b
PB
8788 echo "Doing mostlyclean in gcc" ; \
8789 (cd gcc && \
2a4cbe27
NN
8790 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8791 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8792 "RANLIB=$${RANLIB}" \
8793 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 8794 mostlyclean) \
2a4cbe27
NN
8795 || exit 1
8796
b813574b 8797@endif gcc
2a4cbe27 8798
b813574b
PB
8799.PHONY: maybe-clean-gcc clean-gcc
8800maybe-clean-gcc:
8801@if gcc
8802maybe-clean-gcc: clean-gcc
2a4cbe27 8803
b813574b
PB
8804clean-gcc:
8805 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
8806 r=`${PWD_COMMAND}`; export r; \
8807 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 8808 $(SET_LIB_PATH) \
378fce5b 8809 $(HOST_EXPORTS) \
b813574b 8810 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
8811 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8812 done; \
b813574b
PB
8813 echo "Doing clean in gcc" ; \
8814 (cd gcc && \
2a4cbe27
NN
8815 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8816 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8817 "RANLIB=$${RANLIB}" \
8818 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 8819 clean) \
2a4cbe27
NN
8820 || exit 1
8821
b813574b 8822@endif gcc
2a4cbe27 8823
b813574b
PB
8824.PHONY: maybe-distclean-gcc distclean-gcc
8825maybe-distclean-gcc:
8826@if gcc
8827maybe-distclean-gcc: distclean-gcc
2a4cbe27 8828
b813574b
PB
8829distclean-gcc:
8830 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
8831 r=`${PWD_COMMAND}`; export r; \
8832 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 8833 $(SET_LIB_PATH) \
378fce5b 8834 $(HOST_EXPORTS) \
b813574b 8835 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
8836 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8837 done; \
b813574b
PB
8838 echo "Doing distclean in gcc" ; \
8839 (cd gcc && \
2a4cbe27
NN
8840 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8841 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8842 "RANLIB=$${RANLIB}" \
8843 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 8844 distclean) \
2a4cbe27
NN
8845 || exit 1
8846
b813574b 8847@endif gcc
2a4cbe27 8848
b813574b
PB
8849.PHONY: maybe-maintainer-clean-gcc maintainer-clean-gcc
8850maybe-maintainer-clean-gcc:
8851@if gcc
8852maybe-maintainer-clean-gcc: maintainer-clean-gcc
2a4cbe27 8853
b813574b
PB
8854maintainer-clean-gcc:
8855 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
8856 r=`${PWD_COMMAND}`; export r; \
8857 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 8858 $(SET_LIB_PATH) \
378fce5b 8859 $(HOST_EXPORTS) \
b813574b 8860 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
8861 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8862 done; \
b813574b
PB
8863 echo "Doing maintainer-clean in gcc" ; \
8864 (cd gcc && \
2a4cbe27
NN
8865 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8866 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8867 "RANLIB=$${RANLIB}" \
8868 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 8869 maintainer-clean) \
2a4cbe27
NN
8870 || exit 1
8871
b813574b 8872@endif gcc
2a4cbe27 8873
2a4cbe27 8874
b813574b
PB
8875.PHONY: configure-gawk maybe-configure-gawk
8876maybe-configure-gawk:
8877@if gawk
8878maybe-configure-gawk: configure-gawk
8879configure-gawk:
8880 @test ! -f gawk/Makefile || exit 0; \
8881 [ -d gawk ] || mkdir gawk; \
4fa63067
NN
8882 r=`${PWD_COMMAND}`; export r; \
8883 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8884 $(HOST_EXPORTS) \
b813574b
PB
8885 echo Configuring in gawk; \
8886 cd gawk || exit 1; \
4fa63067
NN
8887 case $(srcdir) in \
8888 \.) \
8889 srcdiroption="--srcdir=."; \
8890 libsrcdir=".";; \
8891 /* | [A-Za-z]:[\\/]*) \
b813574b
PB
8892 srcdiroption="--srcdir=$(srcdir)/gawk"; \
8893 libsrcdir="$$s/gawk";; \
4fa63067 8894 *) \
b813574b
PB
8895 srcdiroption="--srcdir=../$(srcdir)/gawk"; \
8896 libsrcdir="$$s/gawk";; \
4fa63067
NN
8897 esac; \
8898 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 8899 $(HOST_CONFIGARGS) $${srcdiroption} \
4fa63067 8900 || exit 1
b813574b 8901@endif gawk
4fa63067 8902
b813574b
PB
8903.PHONY: all-gawk maybe-all-gawk
8904maybe-all-gawk:
8905@if gawk
8906maybe-all-gawk: all-gawk
8907all-gawk: configure-gawk
4fa63067
NN
8908 @r=`${PWD_COMMAND}`; export r; \
8909 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8910 $(SET_LIB_PATH) \
378fce5b 8911 $(HOST_EXPORTS) \
b813574b
PB
8912 (cd gawk && $(MAKE) $(FLAGS_TO_PASS) all)
8913@endif gawk
4fa63067 8914
b813574b
PB
8915.PHONY: check-gawk maybe-check-gawk
8916maybe-check-gawk:
8917@if gawk
8918maybe-check-gawk: check-gawk
4fa63067 8919
b813574b 8920check-gawk:
4fa63067
NN
8921 @r=`${PWD_COMMAND}`; export r; \
8922 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8923 $(SET_LIB_PATH) \
378fce5b 8924 $(HOST_EXPORTS) \
72b2455a 8925 (cd gawk && $(MAKE) $(FLAGS_TO_PASS) check)
4fa63067 8926
b813574b 8927@endif gawk
4fa63067 8928
b813574b
PB
8929.PHONY: install-gawk maybe-install-gawk
8930maybe-install-gawk:
8931@if gawk
8932maybe-install-gawk: install-gawk
4fa63067 8933
b813574b 8934install-gawk: installdirs
4fa63067
NN
8935 @r=`${PWD_COMMAND}`; export r; \
8936 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8937 $(SET_LIB_PATH) \
378fce5b 8938 $(HOST_EXPORTS) \
72b2455a 8939 (cd gawk && $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 8940
b813574b 8941@endif gawk
4fa63067
NN
8942
8943# Other targets (info, dvi, etc.)
8944
b813574b
PB
8945.PHONY: maybe-info-gawk info-gawk
8946maybe-info-gawk:
8947@if gawk
8948maybe-info-gawk: info-gawk
4fa63067 8949
b813574b
PB
8950info-gawk: \
8951 configure-gawk
8952 @[ -f ./gawk/Makefile ] || exit 0; \
b40e3958
L
8953 r=`${PWD_COMMAND}`; export r; \
8954 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 8955 $(SET_LIB_PATH) \
378fce5b 8956 $(HOST_EXPORTS) \
b813574b 8957 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8958 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8959 done; \
b813574b
PB
8960 echo "Doing info in gawk" ; \
8961 (cd gawk && \
2a4cbe27
NN
8962 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8963 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8964 "RANLIB=$${RANLIB}" \
8965 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 8966 info) \
2a4cbe27
NN
8967 || exit 1
8968
b813574b 8969@endif gawk
2a4cbe27 8970
b813574b
PB
8971.PHONY: maybe-dvi-gawk dvi-gawk
8972maybe-dvi-gawk:
8973@if gawk
8974maybe-dvi-gawk: dvi-gawk
2a4cbe27 8975
b813574b
PB
8976dvi-gawk: \
8977 configure-gawk
8978 @[ -f ./gawk/Makefile ] || exit 0; \
b40e3958
L
8979 r=`${PWD_COMMAND}`; export r; \
8980 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 8981 $(SET_LIB_PATH) \
378fce5b 8982 $(HOST_EXPORTS) \
b813574b 8983 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8984 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8985 done; \
b813574b
PB
8986 echo "Doing dvi in gawk" ; \
8987 (cd gawk && \
2a4cbe27
NN
8988 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8989 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8990 "RANLIB=$${RANLIB}" \
8991 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 8992 dvi) \
2a4cbe27
NN
8993 || exit 1
8994
b813574b 8995@endif gawk
2a4cbe27 8996
b813574b
PB
8997.PHONY: maybe-TAGS-gawk TAGS-gawk
8998maybe-TAGS-gawk:
8999@if gawk
9000maybe-TAGS-gawk: TAGS-gawk
2a4cbe27 9001
b813574b
PB
9002TAGS-gawk: \
9003 configure-gawk
9004 @[ -f ./gawk/Makefile ] || exit 0; \
b40e3958
L
9005 r=`${PWD_COMMAND}`; export r; \
9006 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 9007 $(SET_LIB_PATH) \
378fce5b 9008 $(HOST_EXPORTS) \
b813574b 9009 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9010 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9011 done; \
b813574b
PB
9012 echo "Doing TAGS in gawk" ; \
9013 (cd gawk && \
2a4cbe27
NN
9014 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9015 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9016 "RANLIB=$${RANLIB}" \
9017 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 9018 TAGS) \
2a4cbe27
NN
9019 || exit 1
9020
b813574b 9021@endif gawk
2a4cbe27 9022
b813574b
PB
9023.PHONY: maybe-install-info-gawk install-info-gawk
9024maybe-install-info-gawk:
9025@if gawk
9026maybe-install-info-gawk: install-info-gawk
2a4cbe27 9027
b813574b
PB
9028install-info-gawk: \
9029 configure-gawk \
9030 info-gawk
9031 @[ -f ./gawk/Makefile ] || exit 0; \
b40e3958
L
9032 r=`${PWD_COMMAND}`; export r; \
9033 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 9034 $(SET_LIB_PATH) \
378fce5b 9035 $(HOST_EXPORTS) \
b813574b 9036 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9037 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9038 done; \
b813574b
PB
9039 echo "Doing install-info in gawk" ; \
9040 (cd gawk && \
2a4cbe27
NN
9041 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9042 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9043 "RANLIB=$${RANLIB}" \
9044 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 9045 install-info) \
2a4cbe27
NN
9046 || exit 1
9047
b813574b 9048@endif gawk
2a4cbe27 9049
b813574b
PB
9050.PHONY: maybe-installcheck-gawk installcheck-gawk
9051maybe-installcheck-gawk:
9052@if gawk
9053maybe-installcheck-gawk: installcheck-gawk
2a4cbe27 9054
b813574b
PB
9055installcheck-gawk: \
9056 configure-gawk
9057 @[ -f ./gawk/Makefile ] || exit 0; \
b40e3958
L
9058 r=`${PWD_COMMAND}`; export r; \
9059 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 9060 $(SET_LIB_PATH) \
378fce5b 9061 $(HOST_EXPORTS) \
b813574b 9062 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9063 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9064 done; \
b813574b
PB
9065 echo "Doing installcheck in gawk" ; \
9066 (cd gawk && \
2a4cbe27
NN
9067 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9068 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9069 "RANLIB=$${RANLIB}" \
9070 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 9071 installcheck) \
2a4cbe27
NN
9072 || exit 1
9073
b813574b 9074@endif gawk
2a4cbe27 9075
b813574b
PB
9076.PHONY: maybe-mostlyclean-gawk mostlyclean-gawk
9077maybe-mostlyclean-gawk:
9078@if gawk
9079maybe-mostlyclean-gawk: mostlyclean-gawk
2a4cbe27 9080
b813574b
PB
9081mostlyclean-gawk:
9082 @[ -f ./gawk/Makefile ] || exit 0; \
b40e3958
L
9083 r=`${PWD_COMMAND}`; export r; \
9084 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 9085 $(SET_LIB_PATH) \
378fce5b 9086 $(HOST_EXPORTS) \
b813574b 9087 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9088 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9089 done; \
b813574b
PB
9090 echo "Doing mostlyclean in gawk" ; \
9091 (cd gawk && \
2a4cbe27
NN
9092 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9093 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9094 "RANLIB=$${RANLIB}" \
9095 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 9096 mostlyclean) \
2a4cbe27
NN
9097 || exit 1
9098
b813574b 9099@endif gawk
2a4cbe27 9100
b813574b
PB
9101.PHONY: maybe-clean-gawk clean-gawk
9102maybe-clean-gawk:
9103@if gawk
9104maybe-clean-gawk: clean-gawk
2a4cbe27 9105
b813574b
PB
9106clean-gawk:
9107 @[ -f ./gawk/Makefile ] || exit 0; \
b40e3958
L
9108 r=`${PWD_COMMAND}`; export r; \
9109 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 9110 $(SET_LIB_PATH) \
378fce5b 9111 $(HOST_EXPORTS) \
b813574b 9112 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9113 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9114 done; \
b813574b
PB
9115 echo "Doing clean in gawk" ; \
9116 (cd gawk && \
2a4cbe27
NN
9117 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9118 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9119 "RANLIB=$${RANLIB}" \
9120 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 9121 clean) \
2a4cbe27
NN
9122 || exit 1
9123
b813574b 9124@endif gawk
2a4cbe27 9125
b813574b
PB
9126.PHONY: maybe-distclean-gawk distclean-gawk
9127maybe-distclean-gawk:
9128@if gawk
9129maybe-distclean-gawk: distclean-gawk
2a4cbe27 9130
b813574b
PB
9131distclean-gawk:
9132 @[ -f ./gawk/Makefile ] || exit 0; \
b40e3958
L
9133 r=`${PWD_COMMAND}`; export r; \
9134 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 9135 $(SET_LIB_PATH) \
378fce5b 9136 $(HOST_EXPORTS) \
b813574b 9137 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9138 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9139 done; \
b813574b
PB
9140 echo "Doing distclean in gawk" ; \
9141 (cd gawk && \
2a4cbe27
NN
9142 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9143 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9144 "RANLIB=$${RANLIB}" \
9145 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 9146 distclean) \
2a4cbe27
NN
9147 || exit 1
9148
b813574b 9149@endif gawk
2a4cbe27 9150
b813574b
PB
9151.PHONY: maybe-maintainer-clean-gawk maintainer-clean-gawk
9152maybe-maintainer-clean-gawk:
9153@if gawk
9154maybe-maintainer-clean-gawk: maintainer-clean-gawk
2a4cbe27 9155
b813574b
PB
9156maintainer-clean-gawk:
9157 @[ -f ./gawk/Makefile ] || exit 0; \
b40e3958
L
9158 r=`${PWD_COMMAND}`; export r; \
9159 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 9160 $(SET_LIB_PATH) \
378fce5b 9161 $(HOST_EXPORTS) \
b813574b 9162 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9163 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9164 done; \
b813574b
PB
9165 echo "Doing maintainer-clean in gawk" ; \
9166 (cd gawk && \
2a4cbe27
NN
9167 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9168 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9169 "RANLIB=$${RANLIB}" \
9170 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 9171 maintainer-clean) \
2a4cbe27
NN
9172 || exit 1
9173
b813574b 9174@endif gawk
2a4cbe27 9175
2a4cbe27 9176
b813574b
PB
9177.PHONY: configure-gettext maybe-configure-gettext
9178maybe-configure-gettext:
9179@if gettext
9180maybe-configure-gettext: configure-gettext
9181configure-gettext:
9182 @test ! -f gettext/Makefile || exit 0; \
9183 [ -d gettext ] || mkdir gettext; \
4fa63067
NN
9184 r=`${PWD_COMMAND}`; export r; \
9185 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9186 $(HOST_EXPORTS) \
b813574b
PB
9187 echo Configuring in gettext; \
9188 cd gettext || exit 1; \
4fa63067
NN
9189 case $(srcdir) in \
9190 \.) \
9191 srcdiroption="--srcdir=."; \
9192 libsrcdir=".";; \
9193 /* | [A-Za-z]:[\\/]*) \
b813574b
PB
9194 srcdiroption="--srcdir=$(srcdir)/gettext"; \
9195 libsrcdir="$$s/gettext";; \
4fa63067 9196 *) \
b813574b
PB
9197 srcdiroption="--srcdir=../$(srcdir)/gettext"; \
9198 libsrcdir="$$s/gettext";; \
4fa63067
NN
9199 esac; \
9200 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 9201 $(HOST_CONFIGARGS) $${srcdiroption} \
4fa63067 9202 || exit 1
b813574b 9203@endif gettext
4fa63067 9204
b813574b
PB
9205.PHONY: all-gettext maybe-all-gettext
9206maybe-all-gettext:
9207@if gettext
9208maybe-all-gettext: all-gettext
9209all-gettext: configure-gettext
4fa63067
NN
9210 @r=`${PWD_COMMAND}`; export r; \
9211 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9212 $(SET_LIB_PATH) \
378fce5b 9213 $(HOST_EXPORTS) \
b813574b
PB
9214 (cd gettext && $(MAKE) $(FLAGS_TO_PASS) all)
9215@endif gettext
4fa63067 9216
b813574b
PB
9217.PHONY: check-gettext maybe-check-gettext
9218maybe-check-gettext:
9219@if gettext
9220maybe-check-gettext: check-gettext
4fa63067 9221
b813574b 9222check-gettext:
4fa63067
NN
9223 @r=`${PWD_COMMAND}`; export r; \
9224 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9225 $(SET_LIB_PATH) \
378fce5b 9226 $(HOST_EXPORTS) \
72b2455a 9227 (cd gettext && $(MAKE) $(FLAGS_TO_PASS) check)
4fa63067 9228
b813574b 9229@endif gettext
4fa63067 9230
b813574b
PB
9231.PHONY: install-gettext maybe-install-gettext
9232maybe-install-gettext:
9233@if gettext
9234maybe-install-gettext: install-gettext
4fa63067 9235
b813574b 9236install-gettext: installdirs
4fa63067
NN
9237 @r=`${PWD_COMMAND}`; export r; \
9238 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9239 $(SET_LIB_PATH) \
378fce5b 9240 $(HOST_EXPORTS) \
72b2455a 9241 (cd gettext && $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 9242
b813574b 9243@endif gettext
4fa63067
NN
9244
9245# Other targets (info, dvi, etc.)
9246
b813574b
PB
9247.PHONY: maybe-info-gettext info-gettext
9248maybe-info-gettext:
9249@if gettext
9250maybe-info-gettext: info-gettext
4fa63067 9251
b813574b
PB
9252info-gettext: \
9253 configure-gettext
9254 @[ -f ./gettext/Makefile ] || exit 0; \
b40e3958
L
9255 r=`${PWD_COMMAND}`; export r; \
9256 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 9257 $(SET_LIB_PATH) \
378fce5b 9258 $(HOST_EXPORTS) \
b813574b 9259 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9260 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9261 done; \
b813574b
PB
9262 echo "Doing info in gettext" ; \
9263 (cd gettext && \
2a4cbe27
NN
9264 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9265 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9266 "RANLIB=$${RANLIB}" \
9267 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 9268 info) \
2a4cbe27
NN
9269 || exit 1
9270
b813574b 9271@endif gettext
2a4cbe27 9272
b813574b
PB
9273.PHONY: maybe-dvi-gettext dvi-gettext
9274maybe-dvi-gettext:
9275@if gettext
9276maybe-dvi-gettext: dvi-gettext
2a4cbe27 9277
b813574b
PB
9278dvi-gettext: \
9279 configure-gettext
9280 @[ -f ./gettext/Makefile ] || exit 0; \
b40e3958
L
9281 r=`${PWD_COMMAND}`; export r; \
9282 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 9283 $(SET_LIB_PATH) \
378fce5b 9284 $(HOST_EXPORTS) \
b813574b 9285 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9286 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9287 done; \
b813574b
PB
9288 echo "Doing dvi in gettext" ; \
9289 (cd gettext && \
2a4cbe27
NN
9290 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9291 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9292 "RANLIB=$${RANLIB}" \
9293 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 9294 dvi) \
2a4cbe27
NN
9295 || exit 1
9296
b813574b 9297@endif gettext
2a4cbe27 9298
b813574b
PB
9299.PHONY: maybe-TAGS-gettext TAGS-gettext
9300maybe-TAGS-gettext:
9301@if gettext
9302maybe-TAGS-gettext: TAGS-gettext
2a4cbe27 9303
b813574b
PB
9304TAGS-gettext: \
9305 configure-gettext
9306 @[ -f ./gettext/Makefile ] || exit 0; \
b40e3958
L
9307 r=`${PWD_COMMAND}`; export r; \
9308 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 9309 $(SET_LIB_PATH) \
378fce5b 9310 $(HOST_EXPORTS) \
b813574b 9311 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9312 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9313 done; \
b813574b
PB
9314 echo "Doing TAGS in gettext" ; \
9315 (cd gettext && \
2a4cbe27
NN
9316 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9317 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9318 "RANLIB=$${RANLIB}" \
9319 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 9320 TAGS) \
2a4cbe27
NN
9321 || exit 1
9322
b813574b 9323@endif gettext
2a4cbe27 9324
b813574b
PB
9325.PHONY: maybe-install-info-gettext install-info-gettext
9326maybe-install-info-gettext:
9327@if gettext
9328maybe-install-info-gettext: install-info-gettext
9329
9330install-info-gettext: \
9331 configure-gettext \
9332 info-gettext
9333 @[ -f ./gettext/Makefile ] || exit 0; \
b40e3958
L
9334 r=`${PWD_COMMAND}`; export r; \
9335 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 9336 $(SET_LIB_PATH) \
378fce5b 9337 $(HOST_EXPORTS) \
b813574b 9338 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9339 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9340 done; \
b813574b
PB
9341 echo "Doing install-info in gettext" ; \
9342 (cd gettext && \
2a4cbe27
NN
9343 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9344 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9345 "RANLIB=$${RANLIB}" \
9346 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 9347 install-info) \
2a4cbe27
NN
9348 || exit 1
9349
b813574b 9350@endif gettext
2a4cbe27 9351
b813574b
PB
9352.PHONY: maybe-installcheck-gettext installcheck-gettext
9353maybe-installcheck-gettext:
9354@if gettext
9355maybe-installcheck-gettext: installcheck-gettext
2a4cbe27 9356
b813574b
PB
9357installcheck-gettext: \
9358 configure-gettext
9359 @[ -f ./gettext/Makefile ] || exit 0; \
b40e3958
L
9360 r=`${PWD_COMMAND}`; export r; \
9361 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 9362 $(SET_LIB_PATH) \
378fce5b 9363 $(HOST_EXPORTS) \
b813574b 9364 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9365 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9366 done; \
b813574b
PB
9367 echo "Doing installcheck in gettext" ; \
9368 (cd gettext && \
2a4cbe27
NN
9369 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9370 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9371 "RANLIB=$${RANLIB}" \
9372 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 9373 installcheck) \
2a4cbe27
NN
9374 || exit 1
9375
b813574b 9376@endif gettext
2a4cbe27 9377
b813574b
PB
9378.PHONY: maybe-mostlyclean-gettext mostlyclean-gettext
9379maybe-mostlyclean-gettext:
9380@if gettext
9381maybe-mostlyclean-gettext: mostlyclean-gettext
2a4cbe27 9382
b813574b
PB
9383mostlyclean-gettext:
9384 @[ -f ./gettext/Makefile ] || exit 0; \
b40e3958
L
9385 r=`${PWD_COMMAND}`; export r; \
9386 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 9387 $(SET_LIB_PATH) \
378fce5b 9388 $(HOST_EXPORTS) \
b813574b 9389 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9390 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9391 done; \
b813574b
PB
9392 echo "Doing mostlyclean in gettext" ; \
9393 (cd gettext && \
2a4cbe27
NN
9394 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9395 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9396 "RANLIB=$${RANLIB}" \
9397 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 9398 mostlyclean) \
2a4cbe27
NN
9399 || exit 1
9400
b813574b 9401@endif gettext
2a4cbe27 9402
b813574b
PB
9403.PHONY: maybe-clean-gettext clean-gettext
9404maybe-clean-gettext:
9405@if gettext
9406maybe-clean-gettext: clean-gettext
2a4cbe27 9407
b813574b
PB
9408clean-gettext:
9409 @[ -f ./gettext/Makefile ] || exit 0; \
b40e3958
L
9410 r=`${PWD_COMMAND}`; export r; \
9411 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 9412 $(SET_LIB_PATH) \
378fce5b 9413 $(HOST_EXPORTS) \
b813574b 9414 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9415 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9416 done; \
b813574b
PB
9417 echo "Doing clean in gettext" ; \
9418 (cd gettext && \
2a4cbe27
NN
9419 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9420 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9421 "RANLIB=$${RANLIB}" \
9422 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 9423 clean) \
2a4cbe27
NN
9424 || exit 1
9425
b813574b 9426@endif gettext
2a4cbe27 9427
b813574b
PB
9428.PHONY: maybe-distclean-gettext distclean-gettext
9429maybe-distclean-gettext:
9430@if gettext
9431maybe-distclean-gettext: distclean-gettext
2a4cbe27 9432
b813574b
PB
9433distclean-gettext:
9434 @[ -f ./gettext/Makefile ] || exit 0; \
b40e3958
L
9435 r=`${PWD_COMMAND}`; export r; \
9436 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 9437 $(SET_LIB_PATH) \
378fce5b 9438 $(HOST_EXPORTS) \
b813574b 9439 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9440 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9441 done; \
b813574b
PB
9442 echo "Doing distclean in gettext" ; \
9443 (cd gettext && \
2a4cbe27
NN
9444 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9445 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9446 "RANLIB=$${RANLIB}" \
9447 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 9448 distclean) \
2a4cbe27
NN
9449 || exit 1
9450
b813574b 9451@endif gettext
2a4cbe27 9452
b813574b
PB
9453.PHONY: maybe-maintainer-clean-gettext maintainer-clean-gettext
9454maybe-maintainer-clean-gettext:
9455@if gettext
9456maybe-maintainer-clean-gettext: maintainer-clean-gettext
2a4cbe27 9457
b813574b
PB
9458maintainer-clean-gettext:
9459 @[ -f ./gettext/Makefile ] || exit 0; \
b40e3958
L
9460 r=`${PWD_COMMAND}`; export r; \
9461 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 9462 $(SET_LIB_PATH) \
378fce5b 9463 $(HOST_EXPORTS) \
b813574b 9464 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9465 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9466 done; \
b813574b
PB
9467 echo "Doing maintainer-clean in gettext" ; \
9468 (cd gettext && \
2a4cbe27
NN
9469 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9470 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9471 "RANLIB=$${RANLIB}" \
9472 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 9473 maintainer-clean) \
4fa63067
NN
9474 || exit 1
9475
b813574b 9476@endif gettext
4fa63067
NN
9477
9478
b813574b
PB
9479.PHONY: configure-gnuserv maybe-configure-gnuserv
9480maybe-configure-gnuserv:
9481@if gnuserv
9482maybe-configure-gnuserv: configure-gnuserv
9483configure-gnuserv:
9484 @test ! -f gnuserv/Makefile || exit 0; \
9485 [ -d gnuserv ] || mkdir gnuserv; \
4fa63067
NN
9486 r=`${PWD_COMMAND}`; export r; \
9487 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9488 $(HOST_EXPORTS) \
b813574b
PB
9489 echo Configuring in gnuserv; \
9490 cd gnuserv || exit 1; \
4fa63067
NN
9491 case $(srcdir) in \
9492 \.) \
9493 srcdiroption="--srcdir=."; \
9494 libsrcdir=".";; \
9495 /* | [A-Za-z]:[\\/]*) \
b813574b
PB
9496 srcdiroption="--srcdir=$(srcdir)/gnuserv"; \
9497 libsrcdir="$$s/gnuserv";; \
4fa63067 9498 *) \
b813574b
PB
9499 srcdiroption="--srcdir=../$(srcdir)/gnuserv"; \
9500 libsrcdir="$$s/gnuserv";; \
4fa63067
NN
9501 esac; \
9502 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 9503 $(HOST_CONFIGARGS) $${srcdiroption} \
2a4cbe27 9504 || exit 1
b813574b 9505@endif gnuserv
2a4cbe27 9506
b813574b
PB
9507.PHONY: all-gnuserv maybe-all-gnuserv
9508maybe-all-gnuserv:
9509@if gnuserv
9510maybe-all-gnuserv: all-gnuserv
9511all-gnuserv: configure-gnuserv
4fa63067
NN
9512 @r=`${PWD_COMMAND}`; export r; \
9513 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9514 $(SET_LIB_PATH) \
378fce5b 9515 $(HOST_EXPORTS) \
b813574b
PB
9516 (cd gnuserv && $(MAKE) $(FLAGS_TO_PASS) all)
9517@endif gnuserv
2a4cbe27 9518
b813574b
PB
9519.PHONY: check-gnuserv maybe-check-gnuserv
9520maybe-check-gnuserv:
9521@if gnuserv
9522maybe-check-gnuserv: check-gnuserv
2a4cbe27 9523
b813574b 9524check-gnuserv:
4fa63067 9525 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9526 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 9527 $(SET_LIB_PATH) \
378fce5b 9528 $(HOST_EXPORTS) \
72b2455a 9529 (cd gnuserv && $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 9530
b813574b 9531@endif gnuserv
2a4cbe27 9532
b813574b
PB
9533.PHONY: install-gnuserv maybe-install-gnuserv
9534maybe-install-gnuserv:
9535@if gnuserv
9536maybe-install-gnuserv: install-gnuserv
2a4cbe27 9537
b813574b 9538install-gnuserv: installdirs
4fa63067 9539 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9540 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 9541 $(SET_LIB_PATH) \
378fce5b 9542 $(HOST_EXPORTS) \
72b2455a 9543 (cd gnuserv && $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 9544
b813574b 9545@endif gnuserv
2a4cbe27 9546
4fa63067 9547# Other targets (info, dvi, etc.)
2a4cbe27 9548
b813574b
PB
9549.PHONY: maybe-info-gnuserv info-gnuserv
9550maybe-info-gnuserv:
9551@if gnuserv
9552maybe-info-gnuserv: info-gnuserv
4fa63067 9553
b813574b
PB
9554info-gnuserv: \
9555 configure-gnuserv
9556 @[ -f ./gnuserv/Makefile ] || exit 0; \
b40e3958
L
9557 r=`${PWD_COMMAND}`; export r; \
9558 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 9559 $(SET_LIB_PATH) \
378fce5b 9560 $(HOST_EXPORTS) \
b813574b 9561 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9562 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9563 done; \
b813574b
PB
9564 echo "Doing info in gnuserv" ; \
9565 (cd gnuserv && \
2a4cbe27
NN
9566 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9567 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9568 "RANLIB=$${RANLIB}" \
9569 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 9570 info) \
2a4cbe27
NN
9571 || exit 1
9572
b813574b 9573@endif gnuserv
2a4cbe27 9574
b813574b
PB
9575.PHONY: maybe-dvi-gnuserv dvi-gnuserv
9576maybe-dvi-gnuserv:
9577@if gnuserv
9578maybe-dvi-gnuserv: dvi-gnuserv
2a4cbe27 9579
b813574b
PB
9580dvi-gnuserv: \
9581 configure-gnuserv
9582 @[ -f ./gnuserv/Makefile ] || exit 0; \
b40e3958
L
9583 r=`${PWD_COMMAND}`; export r; \
9584 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 9585 $(SET_LIB_PATH) \
378fce5b 9586 $(HOST_EXPORTS) \
b813574b 9587 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9588 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9589 done; \
b813574b
PB
9590 echo "Doing dvi in gnuserv" ; \
9591 (cd gnuserv && \
2a4cbe27
NN
9592 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9593 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9594 "RANLIB=$${RANLIB}" \
9595 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 9596 dvi) \
2a4cbe27
NN
9597 || exit 1
9598
b813574b 9599@endif gnuserv
2a4cbe27 9600
b813574b
PB
9601.PHONY: maybe-TAGS-gnuserv TAGS-gnuserv
9602maybe-TAGS-gnuserv:
9603@if gnuserv
9604maybe-TAGS-gnuserv: TAGS-gnuserv
2a4cbe27 9605
b813574b
PB
9606TAGS-gnuserv: \
9607 configure-gnuserv
9608 @[ -f ./gnuserv/Makefile ] || exit 0; \
b40e3958
L
9609 r=`${PWD_COMMAND}`; export r; \
9610 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 9611 $(SET_LIB_PATH) \
378fce5b 9612 $(HOST_EXPORTS) \
b813574b 9613 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9614 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9615 done; \
b813574b
PB
9616 echo "Doing TAGS in gnuserv" ; \
9617 (cd gnuserv && \
2a4cbe27
NN
9618 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9619 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9620 "RANLIB=$${RANLIB}" \
9621 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 9622 TAGS) \
2a4cbe27
NN
9623 || exit 1
9624
b813574b 9625@endif gnuserv
2a4cbe27 9626
b813574b
PB
9627.PHONY: maybe-install-info-gnuserv install-info-gnuserv
9628maybe-install-info-gnuserv:
9629@if gnuserv
9630maybe-install-info-gnuserv: install-info-gnuserv
2a4cbe27 9631
b813574b
PB
9632install-info-gnuserv: \
9633 configure-gnuserv \
9634 info-gnuserv
9635 @[ -f ./gnuserv/Makefile ] || exit 0; \
b40e3958
L
9636 r=`${PWD_COMMAND}`; export r; \
9637 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 9638 $(SET_LIB_PATH) \
378fce5b 9639 $(HOST_EXPORTS) \
b813574b 9640 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9641 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9642 done; \
b813574b
PB
9643 echo "Doing install-info in gnuserv" ; \
9644 (cd gnuserv && \
2a4cbe27
NN
9645 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9646 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9647 "RANLIB=$${RANLIB}" \
9648 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 9649 install-info) \
2a4cbe27
NN
9650 || exit 1
9651
b813574b 9652@endif gnuserv
2a4cbe27 9653
b813574b
PB
9654.PHONY: maybe-installcheck-gnuserv installcheck-gnuserv
9655maybe-installcheck-gnuserv:
9656@if gnuserv
9657maybe-installcheck-gnuserv: installcheck-gnuserv
2a4cbe27 9658
b813574b
PB
9659installcheck-gnuserv: \
9660 configure-gnuserv
9661 @[ -f ./gnuserv/Makefile ] || exit 0; \
b40e3958
L
9662 r=`${PWD_COMMAND}`; export r; \
9663 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 9664 $(SET_LIB_PATH) \
378fce5b 9665 $(HOST_EXPORTS) \
b813574b 9666 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9667 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9668 done; \
b813574b
PB
9669 echo "Doing installcheck in gnuserv" ; \
9670 (cd gnuserv && \
2a4cbe27
NN
9671 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9672 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9673 "RANLIB=$${RANLIB}" \
9674 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 9675 installcheck) \
2a4cbe27
NN
9676 || exit 1
9677
b813574b 9678@endif gnuserv
2a4cbe27 9679
b813574b
PB
9680.PHONY: maybe-mostlyclean-gnuserv mostlyclean-gnuserv
9681maybe-mostlyclean-gnuserv:
9682@if gnuserv
9683maybe-mostlyclean-gnuserv: mostlyclean-gnuserv
2a4cbe27 9684
b813574b
PB
9685mostlyclean-gnuserv:
9686 @[ -f ./gnuserv/Makefile ] || exit 0; \
b40e3958
L
9687 r=`${PWD_COMMAND}`; export r; \
9688 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 9689 $(SET_LIB_PATH) \
378fce5b 9690 $(HOST_EXPORTS) \
b813574b 9691 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9692 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9693 done; \
b813574b
PB
9694 echo "Doing mostlyclean in gnuserv" ; \
9695 (cd gnuserv && \
2a4cbe27
NN
9696 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9697 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9698 "RANLIB=$${RANLIB}" \
9699 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 9700 mostlyclean) \
2a4cbe27
NN
9701 || exit 1
9702
b813574b 9703@endif gnuserv
2a4cbe27 9704
b813574b
PB
9705.PHONY: maybe-clean-gnuserv clean-gnuserv
9706maybe-clean-gnuserv:
9707@if gnuserv
9708maybe-clean-gnuserv: clean-gnuserv
2a4cbe27 9709
b813574b
PB
9710clean-gnuserv:
9711 @[ -f ./gnuserv/Makefile ] || exit 0; \
b40e3958
L
9712 r=`${PWD_COMMAND}`; export r; \
9713 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 9714 $(SET_LIB_PATH) \
378fce5b 9715 $(HOST_EXPORTS) \
b813574b 9716 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9717 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9718 done; \
b813574b
PB
9719 echo "Doing clean in gnuserv" ; \
9720 (cd gnuserv && \
2a4cbe27
NN
9721 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9722 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9723 "RANLIB=$${RANLIB}" \
9724 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 9725 clean) \
2a4cbe27
NN
9726 || exit 1
9727
b813574b 9728@endif gnuserv
2a4cbe27 9729
b813574b
PB
9730.PHONY: maybe-distclean-gnuserv distclean-gnuserv
9731maybe-distclean-gnuserv:
9732@if gnuserv
9733maybe-distclean-gnuserv: distclean-gnuserv
2a4cbe27 9734
b813574b
PB
9735distclean-gnuserv:
9736 @[ -f ./gnuserv/Makefile ] || exit 0; \
b40e3958
L
9737 r=`${PWD_COMMAND}`; export r; \
9738 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 9739 $(SET_LIB_PATH) \
378fce5b 9740 $(HOST_EXPORTS) \
b813574b 9741 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9742 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9743 done; \
b813574b
PB
9744 echo "Doing distclean in gnuserv" ; \
9745 (cd gnuserv && \
2a4cbe27
NN
9746 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9747 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9748 "RANLIB=$${RANLIB}" \
9749 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 9750 distclean) \
2a4cbe27
NN
9751 || exit 1
9752
b813574b 9753@endif gnuserv
2a4cbe27 9754
b813574b
PB
9755.PHONY: maybe-maintainer-clean-gnuserv maintainer-clean-gnuserv
9756maybe-maintainer-clean-gnuserv:
9757@if gnuserv
9758maybe-maintainer-clean-gnuserv: maintainer-clean-gnuserv
2a4cbe27 9759
b813574b
PB
9760maintainer-clean-gnuserv:
9761 @[ -f ./gnuserv/Makefile ] || exit 0; \
b40e3958
L
9762 r=`${PWD_COMMAND}`; export r; \
9763 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 9764 $(SET_LIB_PATH) \
378fce5b 9765 $(HOST_EXPORTS) \
b813574b 9766 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9767 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9768 done; \
b813574b
PB
9769 echo "Doing maintainer-clean in gnuserv" ; \
9770 (cd gnuserv && \
2a4cbe27
NN
9771 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9772 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9773 "RANLIB=$${RANLIB}" \
9774 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 9775 maintainer-clean) \
2a4cbe27
NN
9776 || exit 1
9777
b813574b 9778@endif gnuserv
2a4cbe27 9779
2a4cbe27 9780
b813574b
PB
9781.PHONY: configure-gprof maybe-configure-gprof
9782maybe-configure-gprof:
9783@if gprof
9784maybe-configure-gprof: configure-gprof
9785configure-gprof:
9786 @test ! -f gprof/Makefile || exit 0; \
9787 [ -d gprof ] || mkdir gprof; \
b40e3958
L
9788 r=`${PWD_COMMAND}`; export r; \
9789 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9790 $(HOST_EXPORTS) \
b813574b
PB
9791 echo Configuring in gprof; \
9792 cd gprof || exit 1; \
4fa63067
NN
9793 case $(srcdir) in \
9794 \.) \
9795 srcdiroption="--srcdir=."; \
9796 libsrcdir=".";; \
9797 /* | [A-Za-z]:[\\/]*) \
b813574b
PB
9798 srcdiroption="--srcdir=$(srcdir)/gprof"; \
9799 libsrcdir="$$s/gprof";; \
4fa63067 9800 *) \
b813574b
PB
9801 srcdiroption="--srcdir=../$(srcdir)/gprof"; \
9802 libsrcdir="$$s/gprof";; \
4fa63067
NN
9803 esac; \
9804 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 9805 $(HOST_CONFIGARGS) $${srcdiroption} \
2a4cbe27 9806 || exit 1
b813574b 9807@endif gprof
2a4cbe27 9808
b813574b
PB
9809.PHONY: all-gprof maybe-all-gprof
9810maybe-all-gprof:
9811@if gprof
9812maybe-all-gprof: all-gprof
9813all-gprof: configure-gprof
4fa63067
NN
9814 @r=`${PWD_COMMAND}`; export r; \
9815 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9816 $(SET_LIB_PATH) \
378fce5b 9817 $(HOST_EXPORTS) \
b813574b
PB
9818 (cd gprof && $(MAKE) $(FLAGS_TO_PASS) all)
9819@endif gprof
2a4cbe27 9820
b813574b
PB
9821.PHONY: check-gprof maybe-check-gprof
9822maybe-check-gprof:
9823@if gprof
9824maybe-check-gprof: check-gprof
2a4cbe27 9825
b813574b 9826check-gprof:
4fa63067 9827 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9828 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 9829 $(SET_LIB_PATH) \
378fce5b 9830 $(HOST_EXPORTS) \
72b2455a 9831 (cd gprof && $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 9832
b813574b 9833@endif gprof
2a4cbe27 9834
b813574b
PB
9835.PHONY: install-gprof maybe-install-gprof
9836maybe-install-gprof:
9837@if gprof
9838maybe-install-gprof: install-gprof
4fa63067 9839
b813574b 9840install-gprof: installdirs
4fa63067 9841 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9842 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 9843 $(SET_LIB_PATH) \
378fce5b 9844 $(HOST_EXPORTS) \
72b2455a 9845 (cd gprof && $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 9846
b813574b 9847@endif gprof
2a4cbe27 9848
4fa63067 9849# Other targets (info, dvi, etc.)
2a4cbe27 9850
b813574b
PB
9851.PHONY: maybe-info-gprof info-gprof
9852maybe-info-gprof:
9853@if gprof
9854maybe-info-gprof: info-gprof
4fa63067 9855
b813574b
PB
9856info-gprof: \
9857 configure-gprof
9858 @[ -f ./gprof/Makefile ] || exit 0; \
b40e3958
L
9859 r=`${PWD_COMMAND}`; export r; \
9860 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 9861 $(SET_LIB_PATH) \
378fce5b 9862 $(HOST_EXPORTS) \
b813574b 9863 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9864 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9865 done; \
b813574b
PB
9866 echo "Doing info in gprof" ; \
9867 (cd gprof && \
2a4cbe27
NN
9868 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9869 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9870 "RANLIB=$${RANLIB}" \
9871 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 9872 info) \
2a4cbe27
NN
9873 || exit 1
9874
b813574b 9875@endif gprof
2a4cbe27 9876
b813574b
PB
9877.PHONY: maybe-dvi-gprof dvi-gprof
9878maybe-dvi-gprof:
9879@if gprof
9880maybe-dvi-gprof: dvi-gprof
2a4cbe27 9881
b813574b
PB
9882dvi-gprof: \
9883 configure-gprof
9884 @[ -f ./gprof/Makefile ] || exit 0; \
b40e3958
L
9885 r=`${PWD_COMMAND}`; export r; \
9886 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 9887 $(SET_LIB_PATH) \
378fce5b 9888 $(HOST_EXPORTS) \
b813574b 9889 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9890 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9891 done; \
b813574b
PB
9892 echo "Doing dvi in gprof" ; \
9893 (cd gprof && \
2a4cbe27
NN
9894 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9895 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9896 "RANLIB=$${RANLIB}" \
9897 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 9898 dvi) \
2a4cbe27
NN
9899 || exit 1
9900
b813574b 9901@endif gprof
2a4cbe27 9902
b813574b
PB
9903.PHONY: maybe-TAGS-gprof TAGS-gprof
9904maybe-TAGS-gprof:
9905@if gprof
9906maybe-TAGS-gprof: TAGS-gprof
2a4cbe27 9907
b813574b
PB
9908TAGS-gprof: \
9909 configure-gprof
9910 @[ -f ./gprof/Makefile ] || exit 0; \
b40e3958
L
9911 r=`${PWD_COMMAND}`; export r; \
9912 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 9913 $(SET_LIB_PATH) \
378fce5b 9914 $(HOST_EXPORTS) \
b813574b 9915 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9916 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9917 done; \
b813574b
PB
9918 echo "Doing TAGS in gprof" ; \
9919 (cd gprof && \
2a4cbe27
NN
9920 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9921 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9922 "RANLIB=$${RANLIB}" \
9923 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 9924 TAGS) \
2a4cbe27
NN
9925 || exit 1
9926
b813574b 9927@endif gprof
2a4cbe27 9928
b813574b
PB
9929.PHONY: maybe-install-info-gprof install-info-gprof
9930maybe-install-info-gprof:
9931@if gprof
9932maybe-install-info-gprof: install-info-gprof
2a4cbe27 9933
b813574b
PB
9934install-info-gprof: \
9935 configure-gprof \
9936 info-gprof
9937 @[ -f ./gprof/Makefile ] || exit 0; \
b40e3958
L
9938 r=`${PWD_COMMAND}`; export r; \
9939 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 9940 $(SET_LIB_PATH) \
378fce5b 9941 $(HOST_EXPORTS) \
b813574b 9942 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9943 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9944 done; \
b813574b
PB
9945 echo "Doing install-info in gprof" ; \
9946 (cd gprof && \
2a4cbe27
NN
9947 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9948 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9949 "RANLIB=$${RANLIB}" \
9950 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 9951 install-info) \
2a4cbe27
NN
9952 || exit 1
9953
b813574b 9954@endif gprof
2a4cbe27 9955
b813574b
PB
9956.PHONY: maybe-installcheck-gprof installcheck-gprof
9957maybe-installcheck-gprof:
9958@if gprof
9959maybe-installcheck-gprof: installcheck-gprof
2a4cbe27 9960
b813574b
PB
9961installcheck-gprof: \
9962 configure-gprof
9963 @[ -f ./gprof/Makefile ] || exit 0; \
b40e3958
L
9964 r=`${PWD_COMMAND}`; export r; \
9965 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 9966 $(SET_LIB_PATH) \
378fce5b 9967 $(HOST_EXPORTS) \
b813574b 9968 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9969 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9970 done; \
b813574b
PB
9971 echo "Doing installcheck in gprof" ; \
9972 (cd gprof && \
2a4cbe27
NN
9973 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9974 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9975 "RANLIB=$${RANLIB}" \
9976 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 9977 installcheck) \
2a4cbe27
NN
9978 || exit 1
9979
b813574b 9980@endif gprof
2a4cbe27 9981
b813574b
PB
9982.PHONY: maybe-mostlyclean-gprof mostlyclean-gprof
9983maybe-mostlyclean-gprof:
9984@if gprof
9985maybe-mostlyclean-gprof: mostlyclean-gprof
2a4cbe27 9986
b813574b
PB
9987mostlyclean-gprof:
9988 @[ -f ./gprof/Makefile ] || exit 0; \
b40e3958
L
9989 r=`${PWD_COMMAND}`; export r; \
9990 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 9991 $(SET_LIB_PATH) \
378fce5b 9992 $(HOST_EXPORTS) \
b813574b 9993 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9994 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9995 done; \
b813574b
PB
9996 echo "Doing mostlyclean in gprof" ; \
9997 (cd gprof && \
2a4cbe27
NN
9998 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9999 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10000 "RANLIB=$${RANLIB}" \
10001 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 10002 mostlyclean) \
2a4cbe27
NN
10003 || exit 1
10004
b813574b 10005@endif gprof
2a4cbe27 10006
b813574b
PB
10007.PHONY: maybe-clean-gprof clean-gprof
10008maybe-clean-gprof:
10009@if gprof
10010maybe-clean-gprof: clean-gprof
2a4cbe27 10011
b813574b
PB
10012clean-gprof:
10013 @[ -f ./gprof/Makefile ] || exit 0; \
b40e3958
L
10014 r=`${PWD_COMMAND}`; export r; \
10015 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 10016 $(SET_LIB_PATH) \
378fce5b 10017 $(HOST_EXPORTS) \
b813574b 10018 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10019 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10020 done; \
b813574b
PB
10021 echo "Doing clean in gprof" ; \
10022 (cd gprof && \
2a4cbe27
NN
10023 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10024 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10025 "RANLIB=$${RANLIB}" \
10026 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 10027 clean) \
2a4cbe27
NN
10028 || exit 1
10029
b813574b 10030@endif gprof
2a4cbe27 10031
b813574b
PB
10032.PHONY: maybe-distclean-gprof distclean-gprof
10033maybe-distclean-gprof:
10034@if gprof
10035maybe-distclean-gprof: distclean-gprof
2a4cbe27 10036
b813574b
PB
10037distclean-gprof:
10038 @[ -f ./gprof/Makefile ] || exit 0; \
b40e3958
L
10039 r=`${PWD_COMMAND}`; export r; \
10040 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 10041 $(SET_LIB_PATH) \
378fce5b 10042 $(HOST_EXPORTS) \
b813574b 10043 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10044 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10045 done; \
b813574b
PB
10046 echo "Doing distclean in gprof" ; \
10047 (cd gprof && \
2a4cbe27
NN
10048 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10049 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10050 "RANLIB=$${RANLIB}" \
10051 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 10052 distclean) \
2a4cbe27
NN
10053 || exit 1
10054
b813574b 10055@endif gprof
2a4cbe27 10056
b813574b
PB
10057.PHONY: maybe-maintainer-clean-gprof maintainer-clean-gprof
10058maybe-maintainer-clean-gprof:
10059@if gprof
10060maybe-maintainer-clean-gprof: maintainer-clean-gprof
2a4cbe27 10061
b813574b
PB
10062maintainer-clean-gprof:
10063 @[ -f ./gprof/Makefile ] || exit 0; \
b40e3958
L
10064 r=`${PWD_COMMAND}`; export r; \
10065 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 10066 $(SET_LIB_PATH) \
378fce5b 10067 $(HOST_EXPORTS) \
b813574b 10068 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10069 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10070 done; \
b813574b
PB
10071 echo "Doing maintainer-clean in gprof" ; \
10072 (cd gprof && \
2a4cbe27
NN
10073 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10074 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10075 "RANLIB=$${RANLIB}" \
10076 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 10077 maintainer-clean) \
2a4cbe27
NN
10078 || exit 1
10079
b813574b 10080@endif gprof
2a4cbe27 10081
2a4cbe27 10082
b813574b
PB
10083.PHONY: configure-gzip maybe-configure-gzip
10084maybe-configure-gzip:
10085@if gzip
10086maybe-configure-gzip: configure-gzip
10087configure-gzip:
10088 @test ! -f gzip/Makefile || exit 0; \
10089 [ -d gzip ] || mkdir gzip; \
b40e3958
L
10090 r=`${PWD_COMMAND}`; export r; \
10091 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10092 $(HOST_EXPORTS) \
b813574b
PB
10093 echo Configuring in gzip; \
10094 cd gzip || exit 1; \
4fa63067
NN
10095 case $(srcdir) in \
10096 \.) \
10097 srcdiroption="--srcdir=."; \
10098 libsrcdir=".";; \
10099 /* | [A-Za-z]:[\\/]*) \
b813574b
PB
10100 srcdiroption="--srcdir=$(srcdir)/gzip"; \
10101 libsrcdir="$$s/gzip";; \
4fa63067 10102 *) \
b813574b
PB
10103 srcdiroption="--srcdir=../$(srcdir)/gzip"; \
10104 libsrcdir="$$s/gzip";; \
4fa63067
NN
10105 esac; \
10106 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 10107 $(HOST_CONFIGARGS) $${srcdiroption} \
2a4cbe27 10108 || exit 1
b813574b 10109@endif gzip
2a4cbe27 10110
b813574b
PB
10111.PHONY: all-gzip maybe-all-gzip
10112maybe-all-gzip:
10113@if gzip
10114maybe-all-gzip: all-gzip
10115all-gzip: configure-gzip
4fa63067
NN
10116 @r=`${PWD_COMMAND}`; export r; \
10117 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10118 $(SET_LIB_PATH) \
378fce5b 10119 $(HOST_EXPORTS) \
b813574b
PB
10120 (cd gzip && $(MAKE) $(FLAGS_TO_PASS) all)
10121@endif gzip
2a4cbe27 10122
b813574b
PB
10123.PHONY: check-gzip maybe-check-gzip
10124maybe-check-gzip:
10125@if gzip
10126maybe-check-gzip: check-gzip
2a4cbe27 10127
b813574b 10128check-gzip:
4fa63067 10129 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10130 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 10131 $(SET_LIB_PATH) \
378fce5b 10132 $(HOST_EXPORTS) \
72b2455a 10133 (cd gzip && $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 10134
b813574b 10135@endif gzip
2a4cbe27 10136
b813574b
PB
10137.PHONY: install-gzip maybe-install-gzip
10138maybe-install-gzip:
10139@if gzip
10140maybe-install-gzip: install-gzip
2a4cbe27 10141
b813574b 10142install-gzip: installdirs
4fa63067 10143 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10144 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 10145 $(SET_LIB_PATH) \
378fce5b 10146 $(HOST_EXPORTS) \
72b2455a 10147 (cd gzip && $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 10148
b813574b 10149@endif gzip
2a4cbe27 10150
4fa63067 10151# Other targets (info, dvi, etc.)
2a4cbe27 10152
b813574b
PB
10153.PHONY: maybe-info-gzip info-gzip
10154maybe-info-gzip:
10155@if gzip
10156maybe-info-gzip: info-gzip
4fa63067 10157
b813574b
PB
10158info-gzip: \
10159 configure-gzip
10160 @[ -f ./gzip/Makefile ] || exit 0; \
b40e3958
L
10161 r=`${PWD_COMMAND}`; export r; \
10162 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 10163 $(SET_LIB_PATH) \
378fce5b 10164 $(HOST_EXPORTS) \
b813574b 10165 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10166 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10167 done; \
b813574b
PB
10168 echo "Doing info in gzip" ; \
10169 (cd gzip && \
2a4cbe27
NN
10170 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10171 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10172 "RANLIB=$${RANLIB}" \
10173 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 10174 info) \
2a4cbe27
NN
10175 || exit 1
10176
b813574b 10177@endif gzip
2a4cbe27 10178
b813574b
PB
10179.PHONY: maybe-dvi-gzip dvi-gzip
10180maybe-dvi-gzip:
10181@if gzip
10182maybe-dvi-gzip: dvi-gzip
2a4cbe27 10183
b813574b
PB
10184dvi-gzip: \
10185 configure-gzip
10186 @[ -f ./gzip/Makefile ] || exit 0; \
b40e3958
L
10187 r=`${PWD_COMMAND}`; export r; \
10188 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 10189 $(SET_LIB_PATH) \
378fce5b 10190 $(HOST_EXPORTS) \
b813574b 10191 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10192 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10193 done; \
b813574b
PB
10194 echo "Doing dvi in gzip" ; \
10195 (cd gzip && \
2a4cbe27
NN
10196 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10197 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10198 "RANLIB=$${RANLIB}" \
10199 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 10200 dvi) \
2a4cbe27
NN
10201 || exit 1
10202
b813574b 10203@endif gzip
2a4cbe27 10204
b813574b
PB
10205.PHONY: maybe-TAGS-gzip TAGS-gzip
10206maybe-TAGS-gzip:
10207@if gzip
10208maybe-TAGS-gzip: TAGS-gzip
2a4cbe27 10209
b813574b
PB
10210TAGS-gzip: \
10211 configure-gzip
10212 @[ -f ./gzip/Makefile ] || exit 0; \
b40e3958
L
10213 r=`${PWD_COMMAND}`; export r; \
10214 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 10215 $(SET_LIB_PATH) \
378fce5b 10216 $(HOST_EXPORTS) \
b813574b 10217 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10218 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10219 done; \
b813574b
PB
10220 echo "Doing TAGS in gzip" ; \
10221 (cd gzip && \
2a4cbe27
NN
10222 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10223 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10224 "RANLIB=$${RANLIB}" \
10225 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 10226 TAGS) \
2a4cbe27
NN
10227 || exit 1
10228
b813574b 10229@endif gzip
2a4cbe27 10230
b813574b
PB
10231.PHONY: maybe-install-info-gzip install-info-gzip
10232maybe-install-info-gzip:
10233@if gzip
10234maybe-install-info-gzip: install-info-gzip
2a4cbe27 10235
b813574b
PB
10236install-info-gzip: \
10237 configure-gzip \
10238 info-gzip
10239 @[ -f ./gzip/Makefile ] || exit 0; \
b40e3958
L
10240 r=`${PWD_COMMAND}`; export r; \
10241 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 10242 $(SET_LIB_PATH) \
378fce5b 10243 $(HOST_EXPORTS) \
b813574b 10244 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10245 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10246 done; \
b813574b
PB
10247 echo "Doing install-info in gzip" ; \
10248 (cd gzip && \
2a4cbe27
NN
10249 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10250 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10251 "RANLIB=$${RANLIB}" \
10252 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 10253 install-info) \
2a4cbe27
NN
10254 || exit 1
10255
b813574b 10256@endif gzip
2a4cbe27 10257
b813574b
PB
10258.PHONY: maybe-installcheck-gzip installcheck-gzip
10259maybe-installcheck-gzip:
10260@if gzip
10261maybe-installcheck-gzip: installcheck-gzip
2a4cbe27 10262
b813574b
PB
10263installcheck-gzip: \
10264 configure-gzip
10265 @[ -f ./gzip/Makefile ] || exit 0; \
b40e3958
L
10266 r=`${PWD_COMMAND}`; export r; \
10267 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 10268 $(SET_LIB_PATH) \
378fce5b 10269 $(HOST_EXPORTS) \
b813574b 10270 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10271 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10272 done; \
b813574b
PB
10273 echo "Doing installcheck in gzip" ; \
10274 (cd gzip && \
2a4cbe27
NN
10275 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10276 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10277 "RANLIB=$${RANLIB}" \
10278 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 10279 installcheck) \
2a4cbe27
NN
10280 || exit 1
10281
b813574b 10282@endif gzip
2a4cbe27 10283
b813574b
PB
10284.PHONY: maybe-mostlyclean-gzip mostlyclean-gzip
10285maybe-mostlyclean-gzip:
10286@if gzip
10287maybe-mostlyclean-gzip: mostlyclean-gzip
2a4cbe27 10288
b813574b
PB
10289mostlyclean-gzip:
10290 @[ -f ./gzip/Makefile ] || exit 0; \
b40e3958
L
10291 r=`${PWD_COMMAND}`; export r; \
10292 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 10293 $(SET_LIB_PATH) \
378fce5b 10294 $(HOST_EXPORTS) \
b813574b 10295 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10296 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10297 done; \
b813574b
PB
10298 echo "Doing mostlyclean in gzip" ; \
10299 (cd gzip && \
2a4cbe27
NN
10300 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10301 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10302 "RANLIB=$${RANLIB}" \
10303 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 10304 mostlyclean) \
2a4cbe27
NN
10305 || exit 1
10306
b813574b 10307@endif gzip
2a4cbe27 10308
b813574b
PB
10309.PHONY: maybe-clean-gzip clean-gzip
10310maybe-clean-gzip:
10311@if gzip
10312maybe-clean-gzip: clean-gzip
2a4cbe27 10313
b813574b
PB
10314clean-gzip:
10315 @[ -f ./gzip/Makefile ] || exit 0; \
b40e3958
L
10316 r=`${PWD_COMMAND}`; export r; \
10317 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 10318 $(SET_LIB_PATH) \
378fce5b 10319 $(HOST_EXPORTS) \
b813574b 10320 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10321 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10322 done; \
b813574b
PB
10323 echo "Doing clean in gzip" ; \
10324 (cd gzip && \
2a4cbe27
NN
10325 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10326 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10327 "RANLIB=$${RANLIB}" \
10328 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 10329 clean) \
2a4cbe27
NN
10330 || exit 1
10331
b813574b 10332@endif gzip
2a4cbe27 10333
b813574b
PB
10334.PHONY: maybe-distclean-gzip distclean-gzip
10335maybe-distclean-gzip:
10336@if gzip
10337maybe-distclean-gzip: distclean-gzip
2a4cbe27 10338
b813574b
PB
10339distclean-gzip:
10340 @[ -f ./gzip/Makefile ] || exit 0; \
b40e3958
L
10341 r=`${PWD_COMMAND}`; export r; \
10342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 10343 $(SET_LIB_PATH) \
378fce5b 10344 $(HOST_EXPORTS) \
b813574b 10345 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10346 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10347 done; \
b813574b
PB
10348 echo "Doing distclean in gzip" ; \
10349 (cd gzip && \
2a4cbe27
NN
10350 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10351 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10352 "RANLIB=$${RANLIB}" \
10353 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 10354 distclean) \
2a4cbe27
NN
10355 || exit 1
10356
b813574b 10357@endif gzip
2a4cbe27 10358
b813574b
PB
10359.PHONY: maybe-maintainer-clean-gzip maintainer-clean-gzip
10360maybe-maintainer-clean-gzip:
10361@if gzip
10362maybe-maintainer-clean-gzip: maintainer-clean-gzip
2a4cbe27 10363
b813574b
PB
10364maintainer-clean-gzip:
10365 @[ -f ./gzip/Makefile ] || exit 0; \
b40e3958
L
10366 r=`${PWD_COMMAND}`; export r; \
10367 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 10368 $(SET_LIB_PATH) \
378fce5b 10369 $(HOST_EXPORTS) \
b813574b 10370 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10371 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10372 done; \
b813574b
PB
10373 echo "Doing maintainer-clean in gzip" ; \
10374 (cd gzip && \
2a4cbe27
NN
10375 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10376 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10377 "RANLIB=$${RANLIB}" \
10378 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 10379 maintainer-clean) \
2a4cbe27
NN
10380 || exit 1
10381
b813574b 10382@endif gzip
2a4cbe27 10383
2a4cbe27 10384
b813574b
PB
10385.PHONY: configure-hello maybe-configure-hello
10386maybe-configure-hello:
10387@if hello
10388maybe-configure-hello: configure-hello
10389configure-hello:
10390 @test ! -f hello/Makefile || exit 0; \
10391 [ -d hello ] || mkdir hello; \
b40e3958
L
10392 r=`${PWD_COMMAND}`; export r; \
10393 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10394 $(HOST_EXPORTS) \
b813574b
PB
10395 echo Configuring in hello; \
10396 cd hello || exit 1; \
4fa63067
NN
10397 case $(srcdir) in \
10398 \.) \
10399 srcdiroption="--srcdir=."; \
10400 libsrcdir=".";; \
10401 /* | [A-Za-z]:[\\/]*) \
b813574b
PB
10402 srcdiroption="--srcdir=$(srcdir)/hello"; \
10403 libsrcdir="$$s/hello";; \
4fa63067 10404 *) \
b813574b
PB
10405 srcdiroption="--srcdir=../$(srcdir)/hello"; \
10406 libsrcdir="$$s/hello";; \
4fa63067
NN
10407 esac; \
10408 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 10409 $(HOST_CONFIGARGS) $${srcdiroption} \
2a4cbe27 10410 || exit 1
b813574b 10411@endif hello
2a4cbe27 10412
b813574b
PB
10413.PHONY: all-hello maybe-all-hello
10414maybe-all-hello:
10415@if hello
10416maybe-all-hello: all-hello
10417all-hello: configure-hello
4fa63067
NN
10418 @r=`${PWD_COMMAND}`; export r; \
10419 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10420 $(SET_LIB_PATH) \
378fce5b 10421 $(HOST_EXPORTS) \
b813574b
PB
10422 (cd hello && $(MAKE) $(FLAGS_TO_PASS) all)
10423@endif hello
2a4cbe27 10424
b813574b
PB
10425.PHONY: check-hello maybe-check-hello
10426maybe-check-hello:
10427@if hello
10428maybe-check-hello: check-hello
2a4cbe27 10429
b813574b 10430check-hello:
4fa63067 10431 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10432 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 10433 $(SET_LIB_PATH) \
378fce5b 10434 $(HOST_EXPORTS) \
72b2455a 10435 (cd hello && $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 10436
b813574b 10437@endif hello
2a4cbe27 10438
b813574b
PB
10439.PHONY: install-hello maybe-install-hello
10440maybe-install-hello:
10441@if hello
10442maybe-install-hello: install-hello
2a4cbe27 10443
b813574b 10444install-hello: installdirs
4fa63067
NN
10445 @r=`${PWD_COMMAND}`; export r; \
10446 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10447 $(SET_LIB_PATH) \
378fce5b 10448 $(HOST_EXPORTS) \
72b2455a 10449 (cd hello && $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 10450
b813574b 10451@endif hello
4fa63067
NN
10452
10453# Other targets (info, dvi, etc.)
10454
b813574b
PB
10455.PHONY: maybe-info-hello info-hello
10456maybe-info-hello:
10457@if hello
10458maybe-info-hello: info-hello
4fa63067 10459
b813574b
PB
10460info-hello: \
10461 configure-hello
10462 @[ -f ./hello/Makefile ] || exit 0; \
b40e3958
L
10463 r=`${PWD_COMMAND}`; export r; \
10464 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 10465 $(SET_LIB_PATH) \
378fce5b 10466 $(HOST_EXPORTS) \
b813574b 10467 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10468 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10469 done; \
b813574b
PB
10470 echo "Doing info in hello" ; \
10471 (cd hello && \
2a4cbe27
NN
10472 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10473 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10474 "RANLIB=$${RANLIB}" \
10475 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 10476 info) \
2a4cbe27
NN
10477 || exit 1
10478
b813574b 10479@endif hello
2a4cbe27 10480
b813574b
PB
10481.PHONY: maybe-dvi-hello dvi-hello
10482maybe-dvi-hello:
10483@if hello
10484maybe-dvi-hello: dvi-hello
2a4cbe27 10485
b813574b
PB
10486dvi-hello: \
10487 configure-hello
10488 @[ -f ./hello/Makefile ] || exit 0; \
b40e3958
L
10489 r=`${PWD_COMMAND}`; export r; \
10490 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 10491 $(SET_LIB_PATH) \
378fce5b 10492 $(HOST_EXPORTS) \
b813574b 10493 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10494 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10495 done; \
b813574b
PB
10496 echo "Doing dvi in hello" ; \
10497 (cd hello && \
2a4cbe27
NN
10498 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10499 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10500 "RANLIB=$${RANLIB}" \
10501 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 10502 dvi) \
2a4cbe27
NN
10503 || exit 1
10504
b813574b 10505@endif hello
2a4cbe27 10506
b813574b
PB
10507.PHONY: maybe-TAGS-hello TAGS-hello
10508maybe-TAGS-hello:
10509@if hello
10510maybe-TAGS-hello: TAGS-hello
2a4cbe27 10511
b813574b
PB
10512TAGS-hello: \
10513 configure-hello
10514 @[ -f ./hello/Makefile ] || exit 0; \
b40e3958
L
10515 r=`${PWD_COMMAND}`; export r; \
10516 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 10517 $(SET_LIB_PATH) \
378fce5b 10518 $(HOST_EXPORTS) \
b813574b 10519 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10520 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10521 done; \
b813574b
PB
10522 echo "Doing TAGS in hello" ; \
10523 (cd hello && \
2a4cbe27
NN
10524 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10525 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10526 "RANLIB=$${RANLIB}" \
10527 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 10528 TAGS) \
2a4cbe27
NN
10529 || exit 1
10530
b813574b 10531@endif hello
2a4cbe27 10532
b813574b
PB
10533.PHONY: maybe-install-info-hello install-info-hello
10534maybe-install-info-hello:
10535@if hello
10536maybe-install-info-hello: install-info-hello
2a4cbe27 10537
b813574b
PB
10538install-info-hello: \
10539 configure-hello \
10540 info-hello
10541 @[ -f ./hello/Makefile ] || exit 0; \
b40e3958
L
10542 r=`${PWD_COMMAND}`; export r; \
10543 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 10544 $(SET_LIB_PATH) \
378fce5b 10545 $(HOST_EXPORTS) \
b813574b 10546 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10547 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10548 done; \
b813574b
PB
10549 echo "Doing install-info in hello" ; \
10550 (cd hello && \
2a4cbe27
NN
10551 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10552 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10553 "RANLIB=$${RANLIB}" \
10554 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 10555 install-info) \
2a4cbe27
NN
10556 || exit 1
10557
b813574b 10558@endif hello
2a4cbe27 10559
b813574b
PB
10560.PHONY: maybe-installcheck-hello installcheck-hello
10561maybe-installcheck-hello:
10562@if hello
10563maybe-installcheck-hello: installcheck-hello
2a4cbe27 10564
b813574b
PB
10565installcheck-hello: \
10566 configure-hello
10567 @[ -f ./hello/Makefile ] || exit 0; \
b40e3958
L
10568 r=`${PWD_COMMAND}`; export r; \
10569 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 10570 $(SET_LIB_PATH) \
378fce5b 10571 $(HOST_EXPORTS) \
b813574b 10572 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10573 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10574 done; \
b813574b
PB
10575 echo "Doing installcheck in hello" ; \
10576 (cd hello && \
2a4cbe27
NN
10577 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10578 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10579 "RANLIB=$${RANLIB}" \
10580 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 10581 installcheck) \
2a4cbe27
NN
10582 || exit 1
10583
b813574b 10584@endif hello
2a4cbe27 10585
b813574b
PB
10586.PHONY: maybe-mostlyclean-hello mostlyclean-hello
10587maybe-mostlyclean-hello:
10588@if hello
10589maybe-mostlyclean-hello: mostlyclean-hello
2a4cbe27 10590
b813574b
PB
10591mostlyclean-hello:
10592 @[ -f ./hello/Makefile ] || exit 0; \
b40e3958
L
10593 r=`${PWD_COMMAND}`; export r; \
10594 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 10595 $(SET_LIB_PATH) \
378fce5b 10596 $(HOST_EXPORTS) \
b813574b 10597 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10598 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10599 done; \
b813574b
PB
10600 echo "Doing mostlyclean in hello" ; \
10601 (cd hello && \
2a4cbe27
NN
10602 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10603 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10604 "RANLIB=$${RANLIB}" \
10605 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 10606 mostlyclean) \
2a4cbe27
NN
10607 || exit 1
10608
b813574b 10609@endif hello
2a4cbe27 10610
b813574b
PB
10611.PHONY: maybe-clean-hello clean-hello
10612maybe-clean-hello:
10613@if hello
10614maybe-clean-hello: clean-hello
2a4cbe27 10615
b813574b
PB
10616clean-hello:
10617 @[ -f ./hello/Makefile ] || exit 0; \
b40e3958
L
10618 r=`${PWD_COMMAND}`; export r; \
10619 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 10620 $(SET_LIB_PATH) \
378fce5b 10621 $(HOST_EXPORTS) \
b813574b 10622 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10623 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10624 done; \
b813574b
PB
10625 echo "Doing clean in hello" ; \
10626 (cd hello && \
2a4cbe27
NN
10627 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10628 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10629 "RANLIB=$${RANLIB}" \
10630 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 10631 clean) \
2a4cbe27
NN
10632 || exit 1
10633
b813574b 10634@endif hello
2a4cbe27 10635
b813574b
PB
10636.PHONY: maybe-distclean-hello distclean-hello
10637maybe-distclean-hello:
10638@if hello
10639maybe-distclean-hello: distclean-hello
2a4cbe27 10640
b813574b
PB
10641distclean-hello:
10642 @[ -f ./hello/Makefile ] || exit 0; \
b40e3958
L
10643 r=`${PWD_COMMAND}`; export r; \
10644 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 10645 $(SET_LIB_PATH) \
378fce5b 10646 $(HOST_EXPORTS) \
b813574b 10647 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10648 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10649 done; \
b813574b
PB
10650 echo "Doing distclean in hello" ; \
10651 (cd hello && \
2a4cbe27
NN
10652 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10653 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10654 "RANLIB=$${RANLIB}" \
10655 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 10656 distclean) \
2a4cbe27
NN
10657 || exit 1
10658
b813574b 10659@endif hello
2a4cbe27 10660
b813574b
PB
10661.PHONY: maybe-maintainer-clean-hello maintainer-clean-hello
10662maybe-maintainer-clean-hello:
10663@if hello
10664maybe-maintainer-clean-hello: maintainer-clean-hello
2a4cbe27 10665
b813574b
PB
10666maintainer-clean-hello:
10667 @[ -f ./hello/Makefile ] || exit 0; \
b40e3958
L
10668 r=`${PWD_COMMAND}`; export r; \
10669 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 10670 $(SET_LIB_PATH) \
378fce5b 10671 $(HOST_EXPORTS) \
b813574b 10672 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10673 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10674 done; \
b813574b
PB
10675 echo "Doing maintainer-clean in hello" ; \
10676 (cd hello && \
2a4cbe27
NN
10677 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10678 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10679 "RANLIB=$${RANLIB}" \
10680 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 10681 maintainer-clean) \
2a4cbe27
NN
10682 || exit 1
10683
b813574b 10684@endif hello
2a4cbe27 10685
2a4cbe27 10686
b813574b
PB
10687.PHONY: configure-indent maybe-configure-indent
10688maybe-configure-indent:
10689@if indent
10690maybe-configure-indent: configure-indent
10691configure-indent:
10692 @test ! -f indent/Makefile || exit 0; \
10693 [ -d indent ] || mkdir indent; \
4fa63067
NN
10694 r=`${PWD_COMMAND}`; export r; \
10695 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10696 $(HOST_EXPORTS) \
b813574b
PB
10697 echo Configuring in indent; \
10698 cd indent || exit 1; \
4fa63067
NN
10699 case $(srcdir) in \
10700 \.) \
10701 srcdiroption="--srcdir=."; \
10702 libsrcdir=".";; \
10703 /* | [A-Za-z]:[\\/]*) \
b813574b
PB
10704 srcdiroption="--srcdir=$(srcdir)/indent"; \
10705 libsrcdir="$$s/indent";; \
4fa63067 10706 *) \
b813574b
PB
10707 srcdiroption="--srcdir=../$(srcdir)/indent"; \
10708 libsrcdir="$$s/indent";; \
4fa63067
NN
10709 esac; \
10710 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 10711 $(HOST_CONFIGARGS) $${srcdiroption} \
4fa63067 10712 || exit 1
b813574b 10713@endif indent
2a4cbe27 10714
b813574b
PB
10715.PHONY: all-indent maybe-all-indent
10716maybe-all-indent:
10717@if indent
10718maybe-all-indent: all-indent
10719all-indent: configure-indent
4fa63067
NN
10720 @r=`${PWD_COMMAND}`; export r; \
10721 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10722 $(SET_LIB_PATH) \
378fce5b 10723 $(HOST_EXPORTS) \
b813574b
PB
10724 (cd indent && $(MAKE) $(FLAGS_TO_PASS) all)
10725@endif indent
2a4cbe27 10726
b813574b
PB
10727.PHONY: check-indent maybe-check-indent
10728maybe-check-indent:
10729@if indent
10730maybe-check-indent: check-indent
2a4cbe27 10731
b813574b 10732check-indent:
4fa63067 10733 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10734 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 10735 $(SET_LIB_PATH) \
378fce5b 10736 $(HOST_EXPORTS) \
72b2455a 10737 (cd indent && $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 10738
b813574b 10739@endif indent
2a4cbe27 10740
b813574b
PB
10741.PHONY: install-indent maybe-install-indent
10742maybe-install-indent:
10743@if indent
10744maybe-install-indent: install-indent
2a4cbe27 10745
b813574b 10746install-indent: installdirs
4fa63067 10747 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10748 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 10749 $(SET_LIB_PATH) \
378fce5b 10750 $(HOST_EXPORTS) \
72b2455a 10751 (cd indent && $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 10752
b813574b 10753@endif indent
2a4cbe27 10754
4fa63067 10755# Other targets (info, dvi, etc.)
2a4cbe27 10756
b813574b
PB
10757.PHONY: maybe-info-indent info-indent
10758maybe-info-indent:
10759@if indent
10760maybe-info-indent: info-indent
4fa63067 10761
b813574b
PB
10762info-indent: \
10763 configure-indent
10764 @[ -f ./indent/Makefile ] || exit 0; \
b40e3958
L
10765 r=`${PWD_COMMAND}`; export r; \
10766 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 10767 $(SET_LIB_PATH) \
378fce5b 10768 $(HOST_EXPORTS) \
b813574b 10769 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10770 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10771 done; \
b813574b
PB
10772 echo "Doing info in indent" ; \
10773 (cd indent && \
2a4cbe27
NN
10774 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10775 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10776 "RANLIB=$${RANLIB}" \
10777 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 10778 info) \
2a4cbe27
NN
10779 || exit 1
10780
b813574b 10781@endif indent
2a4cbe27 10782
b813574b
PB
10783.PHONY: maybe-dvi-indent dvi-indent
10784maybe-dvi-indent:
10785@if indent
10786maybe-dvi-indent: dvi-indent
2a4cbe27 10787
b813574b
PB
10788dvi-indent: \
10789 configure-indent
10790 @[ -f ./indent/Makefile ] || exit 0; \
b40e3958
L
10791 r=`${PWD_COMMAND}`; export r; \
10792 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 10793 $(SET_LIB_PATH) \
378fce5b 10794 $(HOST_EXPORTS) \
b813574b 10795 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10796 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10797 done; \
b813574b
PB
10798 echo "Doing dvi in indent" ; \
10799 (cd indent && \
2a4cbe27
NN
10800 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10801 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10802 "RANLIB=$${RANLIB}" \
10803 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 10804 dvi) \
2a4cbe27
NN
10805 || exit 1
10806
b813574b 10807@endif indent
2a4cbe27 10808
b813574b
PB
10809.PHONY: maybe-TAGS-indent TAGS-indent
10810maybe-TAGS-indent:
10811@if indent
10812maybe-TAGS-indent: TAGS-indent
2a4cbe27 10813
b813574b
PB
10814TAGS-indent: \
10815 configure-indent
10816 @[ -f ./indent/Makefile ] || exit 0; \
b40e3958
L
10817 r=`${PWD_COMMAND}`; export r; \
10818 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 10819 $(SET_LIB_PATH) \
378fce5b 10820 $(HOST_EXPORTS) \
b813574b 10821 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10822 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10823 done; \
b813574b
PB
10824 echo "Doing TAGS in indent" ; \
10825 (cd indent && \
2a4cbe27
NN
10826 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10827 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10828 "RANLIB=$${RANLIB}" \
10829 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 10830 TAGS) \
2a4cbe27
NN
10831 || exit 1
10832
b813574b 10833@endif indent
2a4cbe27 10834
b813574b
PB
10835.PHONY: maybe-install-info-indent install-info-indent
10836maybe-install-info-indent:
10837@if indent
10838maybe-install-info-indent: install-info-indent
2a4cbe27 10839
b813574b
PB
10840install-info-indent: \
10841 configure-indent \
10842 info-indent
10843 @[ -f ./indent/Makefile ] || exit 0; \
b40e3958
L
10844 r=`${PWD_COMMAND}`; export r; \
10845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 10846 $(SET_LIB_PATH) \
378fce5b 10847 $(HOST_EXPORTS) \
b813574b 10848 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10849 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10850 done; \
b813574b
PB
10851 echo "Doing install-info in indent" ; \
10852 (cd indent && \
2a4cbe27
NN
10853 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10854 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10855 "RANLIB=$${RANLIB}" \
10856 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 10857 install-info) \
2a4cbe27
NN
10858 || exit 1
10859
b813574b 10860@endif indent
2a4cbe27 10861
b813574b
PB
10862.PHONY: maybe-installcheck-indent installcheck-indent
10863maybe-installcheck-indent:
10864@if indent
10865maybe-installcheck-indent: installcheck-indent
2a4cbe27 10866
b813574b
PB
10867installcheck-indent: \
10868 configure-indent
10869 @[ -f ./indent/Makefile ] || exit 0; \
b40e3958
L
10870 r=`${PWD_COMMAND}`; export r; \
10871 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 10872 $(SET_LIB_PATH) \
378fce5b 10873 $(HOST_EXPORTS) \
b813574b 10874 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10875 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10876 done; \
b813574b
PB
10877 echo "Doing installcheck in indent" ; \
10878 (cd indent && \
2a4cbe27
NN
10879 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10880 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10881 "RANLIB=$${RANLIB}" \
10882 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 10883 installcheck) \
2a4cbe27
NN
10884 || exit 1
10885
b813574b 10886@endif indent
2a4cbe27 10887
b813574b
PB
10888.PHONY: maybe-mostlyclean-indent mostlyclean-indent
10889maybe-mostlyclean-indent:
10890@if indent
10891maybe-mostlyclean-indent: mostlyclean-indent
2a4cbe27 10892
b813574b
PB
10893mostlyclean-indent:
10894 @[ -f ./indent/Makefile ] || exit 0; \
b40e3958
L
10895 r=`${PWD_COMMAND}`; export r; \
10896 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 10897 $(SET_LIB_PATH) \
378fce5b 10898 $(HOST_EXPORTS) \
b813574b 10899 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10900 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10901 done; \
b813574b
PB
10902 echo "Doing mostlyclean in indent" ; \
10903 (cd indent && \
2a4cbe27
NN
10904 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10905 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10906 "RANLIB=$${RANLIB}" \
10907 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 10908 mostlyclean) \
2a4cbe27
NN
10909 || exit 1
10910
b813574b 10911@endif indent
2a4cbe27 10912
b813574b
PB
10913.PHONY: maybe-clean-indent clean-indent
10914maybe-clean-indent:
10915@if indent
10916maybe-clean-indent: clean-indent
2a4cbe27 10917
b813574b
PB
10918clean-indent:
10919 @[ -f ./indent/Makefile ] || exit 0; \
b40e3958
L
10920 r=`${PWD_COMMAND}`; export r; \
10921 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 10922 $(SET_LIB_PATH) \
378fce5b 10923 $(HOST_EXPORTS) \
b813574b 10924 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10925 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10926 done; \
b813574b
PB
10927 echo "Doing clean in indent" ; \
10928 (cd indent && \
2a4cbe27
NN
10929 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10930 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10931 "RANLIB=$${RANLIB}" \
10932 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 10933 clean) \
2a4cbe27
NN
10934 || exit 1
10935
b813574b 10936@endif indent
2a4cbe27 10937
b813574b
PB
10938.PHONY: maybe-distclean-indent distclean-indent
10939maybe-distclean-indent:
10940@if indent
10941maybe-distclean-indent: distclean-indent
2a4cbe27 10942
b813574b
PB
10943distclean-indent:
10944 @[ -f ./indent/Makefile ] || exit 0; \
b40e3958
L
10945 r=`${PWD_COMMAND}`; export r; \
10946 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 10947 $(SET_LIB_PATH) \
378fce5b 10948 $(HOST_EXPORTS) \
b813574b 10949 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10950 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10951 done; \
b813574b
PB
10952 echo "Doing distclean in indent" ; \
10953 (cd indent && \
2a4cbe27
NN
10954 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10955 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10956 "RANLIB=$${RANLIB}" \
10957 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 10958 distclean) \
2a4cbe27
NN
10959 || exit 1
10960
b813574b 10961@endif indent
2a4cbe27 10962
b813574b
PB
10963.PHONY: maybe-maintainer-clean-indent maintainer-clean-indent
10964maybe-maintainer-clean-indent:
10965@if indent
10966maybe-maintainer-clean-indent: maintainer-clean-indent
2a4cbe27 10967
b813574b
PB
10968maintainer-clean-indent:
10969 @[ -f ./indent/Makefile ] || exit 0; \
b40e3958
L
10970 r=`${PWD_COMMAND}`; export r; \
10971 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 10972 $(SET_LIB_PATH) \
378fce5b 10973 $(HOST_EXPORTS) \
b813574b 10974 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10975 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10976 done; \
b813574b
PB
10977 echo "Doing maintainer-clean in indent" ; \
10978 (cd indent && \
2a4cbe27
NN
10979 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10980 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10981 "RANLIB=$${RANLIB}" \
10982 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 10983 maintainer-clean) \
2a4cbe27
NN
10984 || exit 1
10985
b813574b 10986@endif indent
2a4cbe27 10987
a2592b1b 10988
b813574b
PB
10989.PHONY: configure-intl maybe-configure-intl
10990maybe-configure-intl:
10991@if intl
10992maybe-configure-intl: configure-intl
10993configure-intl:
72b2455a
PB
10994 @test -f stage_last && exit 0; \
10995 test ! -f intl/Makefile || exit 0; \
b813574b 10996 [ -d intl ] || mkdir intl; \
a2592b1b
DD
10997 r=`${PWD_COMMAND}`; export r; \
10998 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10999 $(HOST_EXPORTS) \
b813574b
PB
11000 echo Configuring in intl; \
11001 cd intl || exit 1; \
4fa63067
NN
11002 case $(srcdir) in \
11003 \.) \
11004 srcdiroption="--srcdir=."; \
11005 libsrcdir=".";; \
11006 /* | [A-Za-z]:[\\/]*) \
b813574b
PB
11007 srcdiroption="--srcdir=$(srcdir)/intl"; \
11008 libsrcdir="$$s/intl";; \
4fa63067 11009 *) \
b813574b
PB
11010 srcdiroption="--srcdir=../$(srcdir)/intl"; \
11011 libsrcdir="$$s/intl";; \
4fa63067
NN
11012 esac; \
11013 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 11014 $(HOST_CONFIGARGS) $${srcdiroption} \
a2592b1b 11015 || exit 1
b813574b 11016@endif intl
a2592b1b 11017
b813574b
PB
11018.PHONY: all-intl maybe-all-intl
11019maybe-all-intl:
11020@if intl
11021maybe-all-intl: all-intl
11022all-intl: configure-intl
72b2455a
PB
11023 @test -f stage_last && exit 0; \
11024 r=`${PWD_COMMAND}`; export r; \
4fa63067
NN
11025 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11026 $(SET_LIB_PATH) \
378fce5b 11027 $(HOST_EXPORTS) \
b813574b
PB
11028 (cd intl && $(MAKE) $(FLAGS_TO_PASS) all)
11029@endif intl
a2592b1b 11030
b813574b
PB
11031.PHONY: check-intl maybe-check-intl
11032maybe-check-intl:
11033@if intl
11034maybe-check-intl: check-intl
2a4cbe27 11035
b813574b 11036check-intl:
4fa63067
NN
11037 @r=`${PWD_COMMAND}`; export r; \
11038 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11039 $(SET_LIB_PATH) \
378fce5b 11040 $(HOST_EXPORTS) \
72b2455a 11041 (cd intl && $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 11042
b813574b 11043@endif intl
2a4cbe27 11044
b813574b
PB
11045.PHONY: install-intl maybe-install-intl
11046maybe-install-intl:
11047@if intl
11048maybe-install-intl: install-intl
2a4cbe27 11049
b813574b 11050install-intl: installdirs
4fa63067
NN
11051 @r=`${PWD_COMMAND}`; export r; \
11052 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11053 $(SET_LIB_PATH) \
378fce5b 11054 $(HOST_EXPORTS) \
72b2455a 11055 (cd intl && $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 11056
b813574b 11057@endif intl
4fa63067
NN
11058
11059# Other targets (info, dvi, etc.)
11060
b813574b
PB
11061.PHONY: maybe-info-intl info-intl
11062maybe-info-intl:
11063@if intl
11064maybe-info-intl: info-intl
4fa63067 11065
b813574b
PB
11066info-intl: \
11067 configure-intl
11068 @[ -f ./intl/Makefile ] || exit 0; \
b40e3958
L
11069 r=`${PWD_COMMAND}`; export r; \
11070 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 11071 $(SET_LIB_PATH) \
378fce5b 11072 $(HOST_EXPORTS) \
b813574b 11073 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11074 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11075 done; \
b813574b
PB
11076 echo "Doing info in intl" ; \
11077 (cd intl && \
2a4cbe27
NN
11078 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11079 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11080 "RANLIB=$${RANLIB}" \
11081 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 11082 info) \
2a4cbe27
NN
11083 || exit 1
11084
b813574b 11085@endif intl
2a4cbe27 11086
b813574b
PB
11087.PHONY: maybe-dvi-intl dvi-intl
11088maybe-dvi-intl:
11089@if intl
11090maybe-dvi-intl: dvi-intl
2a4cbe27 11091
b813574b
PB
11092dvi-intl: \
11093 configure-intl
11094 @[ -f ./intl/Makefile ] || exit 0; \
11095 r=`${PWD_COMMAND}`; export r; \
b40e3958 11096 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 11097 $(SET_LIB_PATH) \
378fce5b 11098 $(HOST_EXPORTS) \
b813574b 11099 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11100 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11101 done; \
b813574b
PB
11102 echo "Doing dvi in intl" ; \
11103 (cd intl && \
2a4cbe27
NN
11104 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11105 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11106 "RANLIB=$${RANLIB}" \
11107 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 11108 dvi) \
2a4cbe27
NN
11109 || exit 1
11110
b813574b 11111@endif intl
2a4cbe27 11112
b813574b
PB
11113.PHONY: maybe-TAGS-intl TAGS-intl
11114maybe-TAGS-intl:
11115@if intl
11116maybe-TAGS-intl: TAGS-intl
2a4cbe27 11117
b813574b
PB
11118TAGS-intl: \
11119 configure-intl
11120 @[ -f ./intl/Makefile ] || exit 0; \
b40e3958
L
11121 r=`${PWD_COMMAND}`; export r; \
11122 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 11123 $(SET_LIB_PATH) \
378fce5b 11124 $(HOST_EXPORTS) \
b813574b 11125 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11126 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11127 done; \
b813574b
PB
11128 echo "Doing TAGS in intl" ; \
11129 (cd intl && \
2a4cbe27
NN
11130 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11131 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11132 "RANLIB=$${RANLIB}" \
11133 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 11134 TAGS) \
2a4cbe27
NN
11135 || exit 1
11136
b813574b 11137@endif intl
2a4cbe27 11138
b813574b
PB
11139.PHONY: maybe-install-info-intl install-info-intl
11140maybe-install-info-intl:
11141@if intl
11142maybe-install-info-intl: install-info-intl
2a4cbe27 11143
b813574b
PB
11144install-info-intl: \
11145 configure-intl \
11146 info-intl
11147 @[ -f ./intl/Makefile ] || exit 0; \
b40e3958
L
11148 r=`${PWD_COMMAND}`; export r; \
11149 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 11150 $(SET_LIB_PATH) \
378fce5b 11151 $(HOST_EXPORTS) \
b813574b 11152 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11153 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11154 done; \
b813574b
PB
11155 echo "Doing install-info in intl" ; \
11156 (cd intl && \
2a4cbe27
NN
11157 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11158 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11159 "RANLIB=$${RANLIB}" \
11160 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 11161 install-info) \
2a4cbe27
NN
11162 || exit 1
11163
b813574b 11164@endif intl
2a4cbe27 11165
b813574b
PB
11166.PHONY: maybe-installcheck-intl installcheck-intl
11167maybe-installcheck-intl:
11168@if intl
11169maybe-installcheck-intl: installcheck-intl
2a4cbe27 11170
b813574b
PB
11171installcheck-intl: \
11172 configure-intl
11173 @[ -f ./intl/Makefile ] || exit 0; \
b40e3958
L
11174 r=`${PWD_COMMAND}`; export r; \
11175 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 11176 $(SET_LIB_PATH) \
378fce5b 11177 $(HOST_EXPORTS) \
b813574b 11178 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11179 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11180 done; \
b813574b
PB
11181 echo "Doing installcheck in intl" ; \
11182 (cd intl && \
2a4cbe27
NN
11183 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11184 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11185 "RANLIB=$${RANLIB}" \
11186 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 11187 installcheck) \
2a4cbe27
NN
11188 || exit 1
11189
b813574b 11190@endif intl
2a4cbe27 11191
b813574b
PB
11192.PHONY: maybe-mostlyclean-intl mostlyclean-intl
11193maybe-mostlyclean-intl:
11194@if intl
11195maybe-mostlyclean-intl: mostlyclean-intl
2a4cbe27 11196
b813574b
PB
11197mostlyclean-intl:
11198 @[ -f ./intl/Makefile ] || exit 0; \
11199 r=`${PWD_COMMAND}`; export r; \
11200 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11201 $(SET_LIB_PATH) \
11202 $(HOST_EXPORTS) \
11203 for flag in $(EXTRA_HOST_FLAGS) ; do \
11204 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11205 done; \
11206 echo "Doing mostlyclean in intl" ; \
11207 (cd intl && \
11208 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11209 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11210 "RANLIB=$${RANLIB}" \
11211 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11212 mostlyclean) \
11213 || exit 1
4fa63067 11214
b813574b 11215@endif intl
4fa63067 11216
b813574b
PB
11217.PHONY: maybe-clean-intl clean-intl
11218maybe-clean-intl:
11219@if intl
11220maybe-clean-intl: clean-intl
4fa63067 11221
b813574b
PB
11222clean-intl:
11223 @[ -f ./intl/Makefile ] || exit 0; \
b40e3958
L
11224 r=`${PWD_COMMAND}`; export r; \
11225 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 11226 $(SET_LIB_PATH) \
378fce5b 11227 $(HOST_EXPORTS) \
b813574b 11228 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11229 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11230 done; \
b813574b
PB
11231 echo "Doing clean in intl" ; \
11232 (cd intl && \
2a4cbe27
NN
11233 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11234 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11235 "RANLIB=$${RANLIB}" \
11236 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 11237 clean) \
2a4cbe27
NN
11238 || exit 1
11239
b813574b 11240@endif intl
2a4cbe27 11241
b813574b
PB
11242.PHONY: maybe-distclean-intl distclean-intl
11243maybe-distclean-intl:
11244@if intl
11245maybe-distclean-intl: distclean-intl
2a4cbe27 11246
b813574b
PB
11247distclean-intl:
11248 @[ -f ./intl/Makefile ] || exit 0; \
b40e3958
L
11249 r=`${PWD_COMMAND}`; export r; \
11250 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 11251 $(SET_LIB_PATH) \
378fce5b 11252 $(HOST_EXPORTS) \
b813574b 11253 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11254 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11255 done; \
b813574b
PB
11256 echo "Doing distclean in intl" ; \
11257 (cd intl && \
2a4cbe27
NN
11258 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11259 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11260 "RANLIB=$${RANLIB}" \
11261 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 11262 distclean) \
2a4cbe27
NN
11263 || exit 1
11264
b813574b 11265@endif intl
2a4cbe27 11266
b813574b
PB
11267.PHONY: maybe-maintainer-clean-intl maintainer-clean-intl
11268maybe-maintainer-clean-intl:
11269@if intl
11270maybe-maintainer-clean-intl: maintainer-clean-intl
2a4cbe27 11271
b813574b
PB
11272maintainer-clean-intl:
11273 @[ -f ./intl/Makefile ] || exit 0; \
b40e3958
L
11274 r=`${PWD_COMMAND}`; export r; \
11275 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 11276 $(SET_LIB_PATH) \
378fce5b 11277 $(HOST_EXPORTS) \
b813574b 11278 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11279 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11280 done; \
b813574b
PB
11281 echo "Doing maintainer-clean in intl" ; \
11282 (cd intl && \
2a4cbe27
NN
11283 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11284 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11285 "RANLIB=$${RANLIB}" \
11286 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 11287 maintainer-clean) \
2a4cbe27
NN
11288 || exit 1
11289
b813574b 11290@endif intl
2a4cbe27 11291
2a4cbe27 11292
b813574b
PB
11293.PHONY: configure-tcl maybe-configure-tcl
11294maybe-configure-tcl:
11295@if tcl
11296maybe-configure-tcl: configure-tcl
11297configure-tcl:
11298 @test ! -f tcl/Makefile || exit 0; \
11299 [ -d tcl ] || mkdir tcl; \
b40e3958
L
11300 r=`${PWD_COMMAND}`; export r; \
11301 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11302 $(HOST_EXPORTS) \
b813574b
PB
11303 echo Configuring in tcl; \
11304 cd tcl || exit 1; \
4fa63067
NN
11305 case $(srcdir) in \
11306 \.) \
11307 srcdiroption="--srcdir=."; \
11308 libsrcdir=".";; \
11309 /* | [A-Za-z]:[\\/]*) \
b813574b
PB
11310 srcdiroption="--srcdir=$(srcdir)/tcl"; \
11311 libsrcdir="$$s/tcl";; \
4fa63067 11312 *) \
b813574b
PB
11313 srcdiroption="--srcdir=../$(srcdir)/tcl"; \
11314 libsrcdir="$$s/tcl";; \
4fa63067
NN
11315 esac; \
11316 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 11317 $(HOST_CONFIGARGS) $${srcdiroption} \
2a4cbe27 11318 || exit 1
b813574b 11319@endif tcl
2a4cbe27 11320
b813574b
PB
11321.PHONY: all-tcl maybe-all-tcl
11322maybe-all-tcl:
11323@if tcl
11324maybe-all-tcl: all-tcl
11325all-tcl: configure-tcl
4fa63067
NN
11326 @r=`${PWD_COMMAND}`; export r; \
11327 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11328 $(SET_LIB_PATH) \
378fce5b 11329 $(HOST_EXPORTS) \
b813574b
PB
11330 (cd tcl && $(MAKE) $(FLAGS_TO_PASS) all)
11331@endif tcl
4fa63067 11332
b813574b
PB
11333.PHONY: check-tcl maybe-check-tcl
11334maybe-check-tcl:
11335@if tcl
11336maybe-check-tcl: check-tcl
2a4cbe27 11337
b813574b 11338check-tcl:
4fa63067
NN
11339 @r=`${PWD_COMMAND}`; export r; \
11340 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11341 $(SET_LIB_PATH) \
378fce5b 11342 $(HOST_EXPORTS) \
72b2455a 11343 (cd tcl && $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 11344
b813574b 11345@endif tcl
4fa63067 11346
b813574b
PB
11347.PHONY: install-tcl maybe-install-tcl
11348maybe-install-tcl:
11349@if tcl
11350maybe-install-tcl: install-tcl
4fa63067 11351
b813574b 11352install-tcl: installdirs
4fa63067
NN
11353 @r=`${PWD_COMMAND}`; export r; \
11354 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11355 $(SET_LIB_PATH) \
378fce5b 11356 $(HOST_EXPORTS) \
72b2455a 11357 (cd tcl && $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 11358
b813574b 11359@endif tcl
4fa63067
NN
11360
11361# Other targets (info, dvi, etc.)
11362
b813574b
PB
11363.PHONY: maybe-info-tcl info-tcl
11364maybe-info-tcl:
11365@if tcl
11366maybe-info-tcl: info-tcl
4fa63067 11367
b813574b
PB
11368info-tcl: \
11369 configure-tcl
11370 @[ -f ./tcl/Makefile ] || exit 0; \
b40e3958
L
11371 r=`${PWD_COMMAND}`; export r; \
11372 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 11373 $(SET_LIB_PATH) \
378fce5b 11374 $(HOST_EXPORTS) \
b813574b 11375 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11376 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11377 done; \
b813574b
PB
11378 echo "Doing info in tcl" ; \
11379 (cd tcl && \
2a4cbe27
NN
11380 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11381 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11382 "RANLIB=$${RANLIB}" \
11383 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 11384 info) \
2a4cbe27
NN
11385 || exit 1
11386
b813574b 11387@endif tcl
2a4cbe27 11388
b813574b
PB
11389.PHONY: maybe-dvi-tcl dvi-tcl
11390maybe-dvi-tcl:
11391@if tcl
11392maybe-dvi-tcl: dvi-tcl
2a4cbe27 11393
b813574b
PB
11394dvi-tcl: \
11395 configure-tcl
11396 @[ -f ./tcl/Makefile ] || exit 0; \
b40e3958
L
11397 r=`${PWD_COMMAND}`; export r; \
11398 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 11399 $(SET_LIB_PATH) \
378fce5b 11400 $(HOST_EXPORTS) \
b813574b 11401 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11402 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11403 done; \
b813574b
PB
11404 echo "Doing dvi in tcl" ; \
11405 (cd tcl && \
2a4cbe27
NN
11406 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11407 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11408 "RANLIB=$${RANLIB}" \
11409 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 11410 dvi) \
2a4cbe27
NN
11411 || exit 1
11412
b813574b 11413@endif tcl
2a4cbe27 11414
b813574b
PB
11415.PHONY: maybe-TAGS-tcl TAGS-tcl
11416maybe-TAGS-tcl:
11417@if tcl
11418maybe-TAGS-tcl: TAGS-tcl
2a4cbe27 11419
b813574b
PB
11420TAGS-tcl: \
11421 configure-tcl
11422 @[ -f ./tcl/Makefile ] || exit 0; \
b40e3958
L
11423 r=`${PWD_COMMAND}`; export r; \
11424 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 11425 $(SET_LIB_PATH) \
378fce5b 11426 $(HOST_EXPORTS) \
b813574b 11427 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11428 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11429 done; \
b813574b
PB
11430 echo "Doing TAGS in tcl" ; \
11431 (cd tcl && \
2a4cbe27
NN
11432 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11433 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11434 "RANLIB=$${RANLIB}" \
11435 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 11436 TAGS) \
2a4cbe27
NN
11437 || exit 1
11438
b813574b 11439@endif tcl
2a4cbe27 11440
b813574b
PB
11441.PHONY: maybe-install-info-tcl install-info-tcl
11442maybe-install-info-tcl:
11443@if tcl
11444maybe-install-info-tcl: install-info-tcl
2a4cbe27 11445
b813574b
PB
11446install-info-tcl: \
11447 configure-tcl \
11448 info-tcl
11449 @[ -f ./tcl/Makefile ] || exit 0; \
b40e3958
L
11450 r=`${PWD_COMMAND}`; export r; \
11451 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 11452 $(SET_LIB_PATH) \
378fce5b 11453 $(HOST_EXPORTS) \
b813574b 11454 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11455 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11456 done; \
b813574b
PB
11457 echo "Doing install-info in tcl" ; \
11458 (cd tcl && \
2a4cbe27
NN
11459 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11460 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11461 "RANLIB=$${RANLIB}" \
11462 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 11463 install-info) \
2a4cbe27
NN
11464 || exit 1
11465
b813574b 11466@endif tcl
2a4cbe27 11467
b813574b
PB
11468.PHONY: maybe-installcheck-tcl installcheck-tcl
11469maybe-installcheck-tcl:
11470@if tcl
11471maybe-installcheck-tcl: installcheck-tcl
2a4cbe27 11472
b813574b
PB
11473installcheck-tcl: \
11474 configure-tcl
11475 @[ -f ./tcl/Makefile ] || exit 0; \
b40e3958
L
11476 r=`${PWD_COMMAND}`; export r; \
11477 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 11478 $(SET_LIB_PATH) \
378fce5b 11479 $(HOST_EXPORTS) \
b813574b 11480 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11481 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11482 done; \
b813574b
PB
11483 echo "Doing installcheck in tcl" ; \
11484 (cd tcl && \
2a4cbe27
NN
11485 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11486 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11487 "RANLIB=$${RANLIB}" \
11488 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 11489 installcheck) \
2a4cbe27
NN
11490 || exit 1
11491
b813574b 11492@endif tcl
2a4cbe27 11493
b813574b
PB
11494.PHONY: maybe-mostlyclean-tcl mostlyclean-tcl
11495maybe-mostlyclean-tcl:
11496@if tcl
11497maybe-mostlyclean-tcl: mostlyclean-tcl
2a4cbe27 11498
b813574b
PB
11499# tcl doesn't support mostlyclean.
11500mostlyclean-tcl:
2a4cbe27 11501
b813574b 11502@endif tcl
2a4cbe27 11503
b813574b
PB
11504.PHONY: maybe-clean-tcl clean-tcl
11505maybe-clean-tcl:
11506@if tcl
11507maybe-clean-tcl: clean-tcl
2a4cbe27 11508
b813574b
PB
11509clean-tcl:
11510 @[ -f ./tcl/Makefile ] || exit 0; \
b40e3958
L
11511 r=`${PWD_COMMAND}`; export r; \
11512 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 11513 $(SET_LIB_PATH) \
378fce5b 11514 $(HOST_EXPORTS) \
b813574b 11515 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11516 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11517 done; \
b813574b
PB
11518 echo "Doing clean in tcl" ; \
11519 (cd tcl && \
2a4cbe27
NN
11520 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11521 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11522 "RANLIB=$${RANLIB}" \
11523 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 11524 clean) \
2a4cbe27
NN
11525 || exit 1
11526
b813574b 11527@endif tcl
2a4cbe27 11528
b813574b
PB
11529.PHONY: maybe-distclean-tcl distclean-tcl
11530maybe-distclean-tcl:
11531@if tcl
11532maybe-distclean-tcl: distclean-tcl
2a4cbe27 11533
b813574b
PB
11534distclean-tcl:
11535 @[ -f ./tcl/Makefile ] || exit 0; \
b40e3958
L
11536 r=`${PWD_COMMAND}`; export r; \
11537 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 11538 $(SET_LIB_PATH) \
378fce5b 11539 $(HOST_EXPORTS) \
b813574b 11540 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11541 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11542 done; \
b813574b
PB
11543 echo "Doing distclean in tcl" ; \
11544 (cd tcl && \
2a4cbe27
NN
11545 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11546 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11547 "RANLIB=$${RANLIB}" \
11548 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 11549 distclean) \
2a4cbe27
NN
11550 || exit 1
11551
b813574b 11552@endif tcl
2a4cbe27 11553
b813574b
PB
11554.PHONY: maybe-maintainer-clean-tcl maintainer-clean-tcl
11555maybe-maintainer-clean-tcl:
11556@if tcl
11557maybe-maintainer-clean-tcl: maintainer-clean-tcl
2a4cbe27 11558
b813574b
PB
11559maintainer-clean-tcl:
11560 @[ -f ./tcl/Makefile ] || exit 0; \
b40e3958
L
11561 r=`${PWD_COMMAND}`; export r; \
11562 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 11563 $(SET_LIB_PATH) \
378fce5b 11564 $(HOST_EXPORTS) \
b813574b 11565 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11566 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11567 done; \
b813574b
PB
11568 echo "Doing maintainer-clean in tcl" ; \
11569 (cd tcl && \
2a4cbe27
NN
11570 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11571 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11572 "RANLIB=$${RANLIB}" \
11573 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 11574 maintainer-clean) \
2a4cbe27
NN
11575 || exit 1
11576
b813574b 11577@endif tcl
2a4cbe27 11578
2a4cbe27 11579
b813574b
PB
11580.PHONY: configure-itcl maybe-configure-itcl
11581maybe-configure-itcl:
11582@if itcl
11583maybe-configure-itcl: configure-itcl
11584configure-itcl:
11585 @test ! -f itcl/Makefile || exit 0; \
11586 [ -d itcl ] || mkdir itcl; \
4fa63067
NN
11587 r=`${PWD_COMMAND}`; export r; \
11588 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11589 $(HOST_EXPORTS) \
b813574b
PB
11590 echo Configuring in itcl; \
11591 cd itcl || exit 1; \
4fa63067
NN
11592 case $(srcdir) in \
11593 \.) \
11594 srcdiroption="--srcdir=."; \
11595 libsrcdir=".";; \
11596 /* | [A-Za-z]:[\\/]*) \
b813574b
PB
11597 srcdiroption="--srcdir=$(srcdir)/itcl"; \
11598 libsrcdir="$$s/itcl";; \
4fa63067 11599 *) \
b813574b
PB
11600 srcdiroption="--srcdir=../$(srcdir)/itcl"; \
11601 libsrcdir="$$s/itcl";; \
4fa63067
NN
11602 esac; \
11603 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 11604 $(HOST_CONFIGARGS) $${srcdiroption} \
4fa63067 11605 || exit 1
b813574b 11606@endif itcl
4fa63067 11607
b813574b
PB
11608.PHONY: all-itcl maybe-all-itcl
11609maybe-all-itcl:
11610@if itcl
11611maybe-all-itcl: all-itcl
11612all-itcl: configure-itcl
4fa63067
NN
11613 @r=`${PWD_COMMAND}`; export r; \
11614 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11615 $(SET_LIB_PATH) \
378fce5b 11616 $(HOST_EXPORTS) \
b813574b
PB
11617 (cd itcl && $(MAKE) $(FLAGS_TO_PASS) all)
11618@endif itcl
4fa63067 11619
b813574b
PB
11620.PHONY: check-itcl maybe-check-itcl
11621maybe-check-itcl:
11622@if itcl
11623maybe-check-itcl: check-itcl
4fa63067 11624
b813574b 11625check-itcl:
4fa63067
NN
11626 @r=`${PWD_COMMAND}`; export r; \
11627 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11628 $(SET_LIB_PATH) \
378fce5b 11629 $(HOST_EXPORTS) \
72b2455a 11630 (cd itcl && $(MAKE) $(FLAGS_TO_PASS) check)
4fa63067 11631
b813574b 11632@endif itcl
4fa63067 11633
b813574b
PB
11634.PHONY: install-itcl maybe-install-itcl
11635maybe-install-itcl:
11636@if itcl
11637maybe-install-itcl: install-itcl
4fa63067 11638
b813574b 11639install-itcl: installdirs
4fa63067
NN
11640 @r=`${PWD_COMMAND}`; export r; \
11641 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11642 $(SET_LIB_PATH) \
378fce5b 11643 $(HOST_EXPORTS) \
72b2455a 11644 (cd itcl && $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 11645
b813574b 11646@endif itcl
4fa63067
NN
11647
11648# Other targets (info, dvi, etc.)
11649
b813574b
PB
11650.PHONY: maybe-info-itcl info-itcl
11651maybe-info-itcl:
11652@if itcl
11653maybe-info-itcl: info-itcl
4fa63067 11654
b813574b
PB
11655info-itcl: \
11656 configure-itcl
11657 @[ -f ./itcl/Makefile ] || exit 0; \
b40e3958
L
11658 r=`${PWD_COMMAND}`; export r; \
11659 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 11660 $(SET_LIB_PATH) \
378fce5b 11661 $(HOST_EXPORTS) \
b813574b 11662 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11663 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11664 done; \
b813574b
PB
11665 echo "Doing info in itcl" ; \
11666 (cd itcl && \
2a4cbe27
NN
11667 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11668 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11669 "RANLIB=$${RANLIB}" \
11670 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 11671 info) \
2a4cbe27
NN
11672 || exit 1
11673
b813574b 11674@endif itcl
2a4cbe27 11675
b813574b
PB
11676.PHONY: maybe-dvi-itcl dvi-itcl
11677maybe-dvi-itcl:
11678@if itcl
11679maybe-dvi-itcl: dvi-itcl
2a4cbe27 11680
b813574b
PB
11681dvi-itcl: \
11682 configure-itcl
11683 @[ -f ./itcl/Makefile ] || exit 0; \
b40e3958
L
11684 r=`${PWD_COMMAND}`; export r; \
11685 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 11686 $(SET_LIB_PATH) \
378fce5b 11687 $(HOST_EXPORTS) \
b813574b 11688 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11689 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11690 done; \
b813574b
PB
11691 echo "Doing dvi in itcl" ; \
11692 (cd itcl && \
2a4cbe27
NN
11693 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11694 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11695 "RANLIB=$${RANLIB}" \
11696 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 11697 dvi) \
2a4cbe27
NN
11698 || exit 1
11699
b813574b 11700@endif itcl
2a4cbe27 11701
b813574b
PB
11702.PHONY: maybe-TAGS-itcl TAGS-itcl
11703maybe-TAGS-itcl:
11704@if itcl
11705maybe-TAGS-itcl: TAGS-itcl
2a4cbe27 11706
b813574b
PB
11707TAGS-itcl: \
11708 configure-itcl
11709 @[ -f ./itcl/Makefile ] || exit 0; \
b40e3958
L
11710 r=`${PWD_COMMAND}`; export r; \
11711 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 11712 $(SET_LIB_PATH) \
378fce5b 11713 $(HOST_EXPORTS) \
b813574b 11714 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11715 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11716 done; \
b813574b
PB
11717 echo "Doing TAGS in itcl" ; \
11718 (cd itcl && \
2a4cbe27
NN
11719 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11720 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11721 "RANLIB=$${RANLIB}" \
11722 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 11723 TAGS) \
2a4cbe27
NN
11724 || exit 1
11725
b813574b 11726@endif itcl
2a4cbe27 11727
b813574b
PB
11728.PHONY: maybe-install-info-itcl install-info-itcl
11729maybe-install-info-itcl:
11730@if itcl
11731maybe-install-info-itcl: install-info-itcl
2a4cbe27 11732
b813574b
PB
11733install-info-itcl: \
11734 configure-itcl \
11735 info-itcl
11736 @[ -f ./itcl/Makefile ] || exit 0; \
b40e3958
L
11737 r=`${PWD_COMMAND}`; export r; \
11738 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 11739 $(SET_LIB_PATH) \
378fce5b 11740 $(HOST_EXPORTS) \
b813574b 11741 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11742 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11743 done; \
b813574b
PB
11744 echo "Doing install-info in itcl" ; \
11745 (cd itcl && \
2a4cbe27
NN
11746 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11747 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11748 "RANLIB=$${RANLIB}" \
11749 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 11750 install-info) \
2a4cbe27
NN
11751 || exit 1
11752
b813574b 11753@endif itcl
2a4cbe27 11754
b813574b
PB
11755.PHONY: maybe-installcheck-itcl installcheck-itcl
11756maybe-installcheck-itcl:
11757@if itcl
11758maybe-installcheck-itcl: installcheck-itcl
2a4cbe27 11759
b813574b
PB
11760installcheck-itcl: \
11761 configure-itcl
11762 @[ -f ./itcl/Makefile ] || exit 0; \
b40e3958
L
11763 r=`${PWD_COMMAND}`; export r; \
11764 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 11765 $(SET_LIB_PATH) \
378fce5b 11766 $(HOST_EXPORTS) \
b813574b 11767 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11768 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11769 done; \
b813574b
PB
11770 echo "Doing installcheck in itcl" ; \
11771 (cd itcl && \
2a4cbe27
NN
11772 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11773 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11774 "RANLIB=$${RANLIB}" \
11775 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 11776 installcheck) \
2a4cbe27
NN
11777 || exit 1
11778
b813574b 11779@endif itcl
2a4cbe27 11780
b813574b
PB
11781.PHONY: maybe-mostlyclean-itcl mostlyclean-itcl
11782maybe-mostlyclean-itcl:
11783@if itcl
11784maybe-mostlyclean-itcl: mostlyclean-itcl
2a4cbe27 11785
b813574b
PB
11786mostlyclean-itcl:
11787 @[ -f ./itcl/Makefile ] || exit 0; \
b40e3958
L
11788 r=`${PWD_COMMAND}`; export r; \
11789 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 11790 $(SET_LIB_PATH) \
378fce5b 11791 $(HOST_EXPORTS) \
b813574b 11792 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11793 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11794 done; \
b813574b
PB
11795 echo "Doing mostlyclean in itcl" ; \
11796 (cd itcl && \
2a4cbe27
NN
11797 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11798 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11799 "RANLIB=$${RANLIB}" \
11800 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 11801 mostlyclean) \
2a4cbe27
NN
11802 || exit 1
11803
b813574b 11804@endif itcl
2a4cbe27 11805
b813574b
PB
11806.PHONY: maybe-clean-itcl clean-itcl
11807maybe-clean-itcl:
11808@if itcl
11809maybe-clean-itcl: clean-itcl
2a4cbe27 11810
b813574b
PB
11811clean-itcl:
11812 @[ -f ./itcl/Makefile ] || exit 0; \
b40e3958
L
11813 r=`${PWD_COMMAND}`; export r; \
11814 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 11815 $(SET_LIB_PATH) \
378fce5b 11816 $(HOST_EXPORTS) \
b813574b 11817 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11818 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11819 done; \
b813574b
PB
11820 echo "Doing clean in itcl" ; \
11821 (cd itcl && \
2a4cbe27
NN
11822 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11823 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11824 "RANLIB=$${RANLIB}" \
11825 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 11826 clean) \
2a4cbe27
NN
11827 || exit 1
11828
b813574b 11829@endif itcl
2a4cbe27 11830
b813574b
PB
11831.PHONY: maybe-distclean-itcl distclean-itcl
11832maybe-distclean-itcl:
11833@if itcl
11834maybe-distclean-itcl: distclean-itcl
2a4cbe27 11835
b813574b
PB
11836distclean-itcl:
11837 @[ -f ./itcl/Makefile ] || exit 0; \
b40e3958
L
11838 r=`${PWD_COMMAND}`; export r; \
11839 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 11840 $(SET_LIB_PATH) \
378fce5b 11841 $(HOST_EXPORTS) \
b813574b 11842 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11843 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11844 done; \
b813574b
PB
11845 echo "Doing distclean in itcl" ; \
11846 (cd itcl && \
2a4cbe27
NN
11847 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11848 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11849 "RANLIB=$${RANLIB}" \
11850 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 11851 distclean) \
2a4cbe27
NN
11852 || exit 1
11853
b813574b 11854@endif itcl
2a4cbe27 11855
b813574b
PB
11856.PHONY: maybe-maintainer-clean-itcl maintainer-clean-itcl
11857maybe-maintainer-clean-itcl:
11858@if itcl
11859maybe-maintainer-clean-itcl: maintainer-clean-itcl
2a4cbe27 11860
b813574b
PB
11861maintainer-clean-itcl:
11862 @[ -f ./itcl/Makefile ] || exit 0; \
b40e3958
L
11863 r=`${PWD_COMMAND}`; export r; \
11864 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 11865 $(SET_LIB_PATH) \
378fce5b 11866 $(HOST_EXPORTS) \
b813574b 11867 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11868 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11869 done; \
b813574b
PB
11870 echo "Doing maintainer-clean in itcl" ; \
11871 (cd itcl && \
2a4cbe27
NN
11872 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11873 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11874 "RANLIB=$${RANLIB}" \
11875 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 11876 maintainer-clean) \
2a4cbe27
NN
11877 || exit 1
11878
b813574b 11879@endif itcl
2a4cbe27 11880
2a4cbe27 11881
b813574b
PB
11882.PHONY: configure-ld maybe-configure-ld
11883maybe-configure-ld:
11884@if ld
11885maybe-configure-ld: configure-ld
11886configure-ld:
72b2455a
PB
11887 @test -f stage_last && exit 0; \
11888 test ! -f ld/Makefile || exit 0; \
b813574b 11889 [ -d ld ] || mkdir ld; \
04cf1b77
PB
11890 r=`${PWD_COMMAND}`; export r; \
11891 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11892 $(HOST_EXPORTS) \
b813574b
PB
11893 echo Configuring in ld; \
11894 cd ld || exit 1; \
04cf1b77
PB
11895 case $(srcdir) in \
11896 \.) \
11897 srcdiroption="--srcdir=."; \
11898 libsrcdir=".";; \
11899 /* | [A-Za-z]:[\\/]*) \
b813574b
PB
11900 srcdiroption="--srcdir=$(srcdir)/ld"; \
11901 libsrcdir="$$s/ld";; \
04cf1b77 11902 *) \
b813574b
PB
11903 srcdiroption="--srcdir=../$(srcdir)/ld"; \
11904 libsrcdir="$$s/ld";; \
04cf1b77
PB
11905 esac; \
11906 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 11907 $(HOST_CONFIGARGS) $${srcdiroption} \
04cf1b77 11908 || exit 1
b813574b 11909@endif ld
04cf1b77 11910
b813574b
PB
11911.PHONY: all-ld maybe-all-ld
11912maybe-all-ld:
11913@if ld
11914maybe-all-ld: all-ld
11915all-ld: configure-ld
72b2455a
PB
11916 @test -f stage_last && exit 0; \
11917 r=`${PWD_COMMAND}`; export r; \
04cf1b77
PB
11918 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11919 $(SET_LIB_PATH) \
378fce5b 11920 $(HOST_EXPORTS) \
b813574b
PB
11921 (cd ld && $(MAKE) $(FLAGS_TO_PASS) all)
11922@endif ld
04cf1b77 11923
b813574b
PB
11924.PHONY: check-ld maybe-check-ld
11925maybe-check-ld:
11926@if ld
11927maybe-check-ld: check-ld
04cf1b77 11928
b813574b 11929check-ld:
04cf1b77
PB
11930 @r=`${PWD_COMMAND}`; export r; \
11931 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11932 $(SET_LIB_PATH) \
378fce5b 11933 $(HOST_EXPORTS) \
72b2455a 11934 (cd ld && $(MAKE) $(FLAGS_TO_PASS) check)
04cf1b77 11935
b813574b 11936@endif ld
04cf1b77 11937
b813574b
PB
11938.PHONY: install-ld maybe-install-ld
11939maybe-install-ld:
11940@if ld
11941maybe-install-ld: install-ld
04cf1b77 11942
b813574b 11943install-ld: installdirs
04cf1b77
PB
11944 @r=`${PWD_COMMAND}`; export r; \
11945 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11946 $(SET_LIB_PATH) \
378fce5b 11947 $(HOST_EXPORTS) \
72b2455a 11948 (cd ld && $(MAKE) $(FLAGS_TO_PASS) install)
04cf1b77 11949
b813574b 11950@endif ld
04cf1b77
PB
11951
11952# Other targets (info, dvi, etc.)
11953
b813574b
PB
11954.PHONY: maybe-info-ld info-ld
11955maybe-info-ld:
11956@if ld
11957maybe-info-ld: info-ld
04cf1b77 11958
b813574b
PB
11959info-ld: \
11960 configure-ld
11961 @[ -f ./ld/Makefile ] || exit 0; \
04cf1b77
PB
11962 r=`${PWD_COMMAND}`; export r; \
11963 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11964 $(SET_LIB_PATH) \
378fce5b 11965 $(HOST_EXPORTS) \
b813574b 11966 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
11967 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11968 done; \
b813574b
PB
11969 echo "Doing info in ld" ; \
11970 (cd ld && \
04cf1b77
PB
11971 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11972 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11973 "RANLIB=$${RANLIB}" \
11974 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 11975 info) \
04cf1b77
PB
11976 || exit 1
11977
b813574b 11978@endif ld
04cf1b77 11979
b813574b
PB
11980.PHONY: maybe-dvi-ld dvi-ld
11981maybe-dvi-ld:
11982@if ld
11983maybe-dvi-ld: dvi-ld
04cf1b77 11984
b813574b
PB
11985dvi-ld: \
11986 configure-ld
11987 @[ -f ./ld/Makefile ] || exit 0; \
04cf1b77
PB
11988 r=`${PWD_COMMAND}`; export r; \
11989 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11990 $(SET_LIB_PATH) \
378fce5b 11991 $(HOST_EXPORTS) \
b813574b 11992 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
11993 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11994 done; \
b813574b
PB
11995 echo "Doing dvi in ld" ; \
11996 (cd ld && \
04cf1b77
PB
11997 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11998 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11999 "RANLIB=$${RANLIB}" \
12000 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 12001 dvi) \
04cf1b77
PB
12002 || exit 1
12003
b813574b 12004@endif ld
04cf1b77 12005
b813574b
PB
12006.PHONY: maybe-TAGS-ld TAGS-ld
12007maybe-TAGS-ld:
12008@if ld
12009maybe-TAGS-ld: TAGS-ld
04cf1b77 12010
b813574b
PB
12011TAGS-ld: \
12012 configure-ld
12013 @[ -f ./ld/Makefile ] || exit 0; \
04cf1b77
PB
12014 r=`${PWD_COMMAND}`; export r; \
12015 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12016 $(SET_LIB_PATH) \
378fce5b 12017 $(HOST_EXPORTS) \
b813574b 12018 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
12019 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12020 done; \
b813574b
PB
12021 echo "Doing TAGS in ld" ; \
12022 (cd ld && \
04cf1b77
PB
12023 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12024 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12025 "RANLIB=$${RANLIB}" \
12026 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 12027 TAGS) \
04cf1b77
PB
12028 || exit 1
12029
b813574b 12030@endif ld
04cf1b77 12031
b813574b
PB
12032.PHONY: maybe-install-info-ld install-info-ld
12033maybe-install-info-ld:
12034@if ld
12035maybe-install-info-ld: install-info-ld
04cf1b77 12036
b813574b
PB
12037install-info-ld: \
12038 configure-ld \
12039 info-ld
12040 @[ -f ./ld/Makefile ] || exit 0; \
04cf1b77
PB
12041 r=`${PWD_COMMAND}`; export r; \
12042 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12043 $(SET_LIB_PATH) \
378fce5b 12044 $(HOST_EXPORTS) \
b813574b 12045 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
12046 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12047 done; \
b813574b
PB
12048 echo "Doing install-info in ld" ; \
12049 (cd ld && \
04cf1b77
PB
12050 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12051 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12052 "RANLIB=$${RANLIB}" \
12053 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 12054 install-info) \
04cf1b77
PB
12055 || exit 1
12056
b813574b 12057@endif ld
04cf1b77 12058
b813574b
PB
12059.PHONY: maybe-installcheck-ld installcheck-ld
12060maybe-installcheck-ld:
12061@if ld
12062maybe-installcheck-ld: installcheck-ld
04cf1b77 12063
b813574b
PB
12064installcheck-ld: \
12065 configure-ld
12066 @[ -f ./ld/Makefile ] || exit 0; \
04cf1b77
PB
12067 r=`${PWD_COMMAND}`; export r; \
12068 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12069 $(SET_LIB_PATH) \
378fce5b 12070 $(HOST_EXPORTS) \
b813574b 12071 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
12072 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12073 done; \
b813574b
PB
12074 echo "Doing installcheck in ld" ; \
12075 (cd ld && \
04cf1b77
PB
12076 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12077 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12078 "RANLIB=$${RANLIB}" \
12079 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 12080 installcheck) \
04cf1b77
PB
12081 || exit 1
12082
b813574b 12083@endif ld
04cf1b77 12084
b813574b
PB
12085.PHONY: maybe-mostlyclean-ld mostlyclean-ld
12086maybe-mostlyclean-ld:
12087@if ld
12088maybe-mostlyclean-ld: mostlyclean-ld
04cf1b77 12089
b813574b
PB
12090mostlyclean-ld:
12091 @[ -f ./ld/Makefile ] || exit 0; \
04cf1b77
PB
12092 r=`${PWD_COMMAND}`; export r; \
12093 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12094 $(SET_LIB_PATH) \
378fce5b 12095 $(HOST_EXPORTS) \
b813574b 12096 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
12097 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12098 done; \
b813574b
PB
12099 echo "Doing mostlyclean in ld" ; \
12100 (cd ld && \
04cf1b77
PB
12101 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12102 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12103 "RANLIB=$${RANLIB}" \
12104 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 12105 mostlyclean) \
04cf1b77
PB
12106 || exit 1
12107
b813574b 12108@endif ld
04cf1b77 12109
b813574b
PB
12110.PHONY: maybe-clean-ld clean-ld
12111maybe-clean-ld:
12112@if ld
12113maybe-clean-ld: clean-ld
04cf1b77 12114
b813574b
PB
12115clean-ld:
12116 @[ -f ./ld/Makefile ] || exit 0; \
04cf1b77
PB
12117 r=`${PWD_COMMAND}`; export r; \
12118 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12119 $(SET_LIB_PATH) \
378fce5b 12120 $(HOST_EXPORTS) \
b813574b 12121 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
12122 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12123 done; \
b813574b
PB
12124 echo "Doing clean in ld" ; \
12125 (cd ld && \
04cf1b77
PB
12126 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12127 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12128 "RANLIB=$${RANLIB}" \
12129 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 12130 clean) \
04cf1b77
PB
12131 || exit 1
12132
b813574b 12133@endif ld
04cf1b77 12134
b813574b
PB
12135.PHONY: maybe-distclean-ld distclean-ld
12136maybe-distclean-ld:
12137@if ld
12138maybe-distclean-ld: distclean-ld
04cf1b77 12139
b813574b
PB
12140distclean-ld:
12141 @[ -f ./ld/Makefile ] || exit 0; \
04cf1b77
PB
12142 r=`${PWD_COMMAND}`; export r; \
12143 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12144 $(SET_LIB_PATH) \
378fce5b 12145 $(HOST_EXPORTS) \
b813574b 12146 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
12147 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12148 done; \
b813574b
PB
12149 echo "Doing distclean in ld" ; \
12150 (cd ld && \
04cf1b77
PB
12151 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12152 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12153 "RANLIB=$${RANLIB}" \
12154 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 12155 distclean) \
04cf1b77
PB
12156 || exit 1
12157
b813574b 12158@endif ld
04cf1b77 12159
b813574b
PB
12160.PHONY: maybe-maintainer-clean-ld maintainer-clean-ld
12161maybe-maintainer-clean-ld:
12162@if ld
12163maybe-maintainer-clean-ld: maintainer-clean-ld
04cf1b77 12164
b813574b
PB
12165maintainer-clean-ld:
12166 @[ -f ./ld/Makefile ] || exit 0; \
04cf1b77
PB
12167 r=`${PWD_COMMAND}`; export r; \
12168 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12169 $(SET_LIB_PATH) \
378fce5b 12170 $(HOST_EXPORTS) \
b813574b 12171 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
12172 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12173 done; \
b813574b
PB
12174 echo "Doing maintainer-clean in ld" ; \
12175 (cd ld && \
04cf1b77
PB
12176 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12177 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12178 "RANLIB=$${RANLIB}" \
12179 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 12180 maintainer-clean) \
04cf1b77
PB
12181 || exit 1
12182
b813574b 12183@endif ld
04cf1b77
PB
12184
12185
b813574b
PB
12186.PHONY: configure-libcpp maybe-configure-libcpp
12187maybe-configure-libcpp:
12188@if libcpp
12189maybe-configure-libcpp: configure-libcpp
12190configure-libcpp:
72b2455a
PB
12191 @test -f stage_last && exit 0; \
12192 test ! -f libcpp/Makefile || exit 0; \
b813574b 12193 [ -d libcpp ] || mkdir libcpp; \
4fa63067
NN
12194 r=`${PWD_COMMAND}`; export r; \
12195 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12196 $(HOST_EXPORTS) \
b813574b
PB
12197 echo Configuring in libcpp; \
12198 cd libcpp || exit 1; \
4fa63067
NN
12199 case $(srcdir) in \
12200 \.) \
12201 srcdiroption="--srcdir=."; \
12202 libsrcdir=".";; \
12203 /* | [A-Za-z]:[\\/]*) \
b813574b
PB
12204 srcdiroption="--srcdir=$(srcdir)/libcpp"; \
12205 libsrcdir="$$s/libcpp";; \
4fa63067 12206 *) \
b813574b
PB
12207 srcdiroption="--srcdir=../$(srcdir)/libcpp"; \
12208 libsrcdir="$$s/libcpp";; \
4fa63067
NN
12209 esac; \
12210 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 12211 $(HOST_CONFIGARGS) $${srcdiroption} \
4fa63067 12212 || exit 1
b813574b 12213@endif libcpp
4fa63067 12214
b813574b
PB
12215.PHONY: all-libcpp maybe-all-libcpp
12216maybe-all-libcpp:
12217@if libcpp
12218maybe-all-libcpp: all-libcpp
12219all-libcpp: configure-libcpp
72b2455a
PB
12220 @test -f stage_last && exit 0; \
12221 r=`${PWD_COMMAND}`; export r; \
4fa63067
NN
12222 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12223 $(SET_LIB_PATH) \
378fce5b 12224 $(HOST_EXPORTS) \
b813574b
PB
12225 (cd libcpp && $(MAKE) $(FLAGS_TO_PASS) all)
12226@endif libcpp
4fa63067 12227
b813574b
PB
12228.PHONY: check-libcpp maybe-check-libcpp
12229maybe-check-libcpp:
12230@if libcpp
12231maybe-check-libcpp: check-libcpp
4fa63067 12232
b813574b 12233check-libcpp:
4fa63067
NN
12234 @r=`${PWD_COMMAND}`; export r; \
12235 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12236 $(SET_LIB_PATH) \
378fce5b 12237 $(HOST_EXPORTS) \
72b2455a 12238 (cd libcpp && $(MAKE) $(FLAGS_TO_PASS) check)
4fa63067 12239
b813574b 12240@endif libcpp
4fa63067 12241
b813574b
PB
12242.PHONY: install-libcpp maybe-install-libcpp
12243maybe-install-libcpp:
12244@if libcpp
12245maybe-install-libcpp: install-libcpp
12246
12247install-libcpp: installdirs
4fa63067
NN
12248 @r=`${PWD_COMMAND}`; export r; \
12249 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12250 $(SET_LIB_PATH) \
378fce5b 12251 $(HOST_EXPORTS) \
72b2455a 12252 (cd libcpp && $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 12253
b813574b 12254@endif libcpp
4fa63067
NN
12255
12256# Other targets (info, dvi, etc.)
12257
b813574b
PB
12258.PHONY: maybe-info-libcpp info-libcpp
12259maybe-info-libcpp:
12260@if libcpp
12261maybe-info-libcpp: info-libcpp
4fa63067 12262
b813574b
PB
12263info-libcpp: \
12264 configure-libcpp
12265 @[ -f ./libcpp/Makefile ] || exit 0; \
b40e3958
L
12266 r=`${PWD_COMMAND}`; export r; \
12267 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 12268 $(SET_LIB_PATH) \
378fce5b 12269 $(HOST_EXPORTS) \
b813574b 12270 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
12271 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12272 done; \
b813574b
PB
12273 echo "Doing info in libcpp" ; \
12274 (cd libcpp && \
2a4cbe27
NN
12275 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12276 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12277 "RANLIB=$${RANLIB}" \
12278 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 12279 info) \
2a4cbe27
NN
12280 || exit 1
12281
b813574b 12282@endif libcpp
2a4cbe27 12283
b813574b
PB
12284.PHONY: maybe-dvi-libcpp dvi-libcpp
12285maybe-dvi-libcpp:
12286@if libcpp
12287maybe-dvi-libcpp: dvi-libcpp
2a4cbe27 12288
b813574b
PB
12289dvi-libcpp: \
12290 configure-libcpp
12291 @[ -f ./libcpp/Makefile ] || exit 0; \
b40e3958
L
12292 r=`${PWD_COMMAND}`; export r; \
12293 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 12294 $(SET_LIB_PATH) \
378fce5b 12295 $(HOST_EXPORTS) \
b813574b 12296 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
12297 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12298 done; \
b813574b
PB
12299 echo "Doing dvi in libcpp" ; \
12300 (cd libcpp && \
2a4cbe27
NN
12301 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12302 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12303 "RANLIB=$${RANLIB}" \
12304 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 12305 dvi) \
2a4cbe27
NN
12306 || exit 1
12307
b813574b 12308@endif libcpp
2a4cbe27 12309
b813574b
PB
12310.PHONY: maybe-TAGS-libcpp TAGS-libcpp
12311maybe-TAGS-libcpp:
12312@if libcpp
12313maybe-TAGS-libcpp: TAGS-libcpp
2a4cbe27 12314
b813574b
PB
12315TAGS-libcpp: \
12316 configure-libcpp
12317 @[ -f ./libcpp/Makefile ] || exit 0; \
b40e3958
L
12318 r=`${PWD_COMMAND}`; export r; \
12319 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 12320 $(SET_LIB_PATH) \
378fce5b 12321 $(HOST_EXPORTS) \
b813574b 12322 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
12323 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12324 done; \
b813574b
PB
12325 echo "Doing TAGS in libcpp" ; \
12326 (cd libcpp && \
2a4cbe27
NN
12327 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12328 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12329 "RANLIB=$${RANLIB}" \
12330 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 12331 TAGS) \
2a4cbe27
NN
12332 || exit 1
12333
b813574b 12334@endif libcpp
2a4cbe27 12335
b813574b
PB
12336.PHONY: maybe-install-info-libcpp install-info-libcpp
12337maybe-install-info-libcpp:
12338@if libcpp
12339maybe-install-info-libcpp: install-info-libcpp
2a4cbe27 12340
b813574b
PB
12341install-info-libcpp: \
12342 configure-libcpp \
12343 info-libcpp
12344 @[ -f ./libcpp/Makefile ] || exit 0; \
b40e3958
L
12345 r=`${PWD_COMMAND}`; export r; \
12346 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 12347 $(SET_LIB_PATH) \
378fce5b 12348 $(HOST_EXPORTS) \
b813574b 12349 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
12350 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12351 done; \
b813574b
PB
12352 echo "Doing install-info in libcpp" ; \
12353 (cd libcpp && \
2a4cbe27
NN
12354 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12355 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12356 "RANLIB=$${RANLIB}" \
12357 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 12358 install-info) \
2a4cbe27
NN
12359 || exit 1
12360
b813574b 12361@endif libcpp
2a4cbe27 12362
b813574b
PB
12363.PHONY: maybe-installcheck-libcpp installcheck-libcpp
12364maybe-installcheck-libcpp:
12365@if libcpp
12366maybe-installcheck-libcpp: installcheck-libcpp
2a4cbe27 12367
b813574b
PB
12368installcheck-libcpp: \
12369 configure-libcpp
12370 @[ -f ./libcpp/Makefile ] || exit 0; \
b40e3958
L
12371 r=`${PWD_COMMAND}`; export r; \
12372 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 12373 $(SET_LIB_PATH) \
378fce5b 12374 $(HOST_EXPORTS) \
b813574b 12375 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
12376 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12377 done; \
b813574b
PB
12378 echo "Doing installcheck in libcpp" ; \
12379 (cd libcpp && \
2a4cbe27
NN
12380 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12381 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12382 "RANLIB=$${RANLIB}" \
12383 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 12384 installcheck) \
2a4cbe27
NN
12385 || exit 1
12386
b813574b 12387@endif libcpp
2a4cbe27 12388
b813574b
PB
12389.PHONY: maybe-mostlyclean-libcpp mostlyclean-libcpp
12390maybe-mostlyclean-libcpp:
12391@if libcpp
12392maybe-mostlyclean-libcpp: mostlyclean-libcpp
2a4cbe27 12393
b813574b
PB
12394mostlyclean-libcpp:
12395 @[ -f ./libcpp/Makefile ] || exit 0; \
b40e3958
L
12396 r=`${PWD_COMMAND}`; export r; \
12397 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 12398 $(SET_LIB_PATH) \
378fce5b 12399 $(HOST_EXPORTS) \
b813574b 12400 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
12401 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12402 done; \
b813574b
PB
12403 echo "Doing mostlyclean in libcpp" ; \
12404 (cd libcpp && \
2a4cbe27
NN
12405 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12406 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12407 "RANLIB=$${RANLIB}" \
12408 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 12409 mostlyclean) \
2a4cbe27
NN
12410 || exit 1
12411
b813574b 12412@endif libcpp
2a4cbe27 12413
b813574b
PB
12414.PHONY: maybe-clean-libcpp clean-libcpp
12415maybe-clean-libcpp:
12416@if libcpp
12417maybe-clean-libcpp: clean-libcpp
2a4cbe27 12418
b813574b
PB
12419clean-libcpp:
12420 @[ -f ./libcpp/Makefile ] || exit 0; \
b40e3958
L
12421 r=`${PWD_COMMAND}`; export r; \
12422 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 12423 $(SET_LIB_PATH) \
378fce5b 12424 $(HOST_EXPORTS) \
b813574b 12425 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
12426 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12427 done; \
b813574b
PB
12428 echo "Doing clean in libcpp" ; \
12429 (cd libcpp && \
2a4cbe27
NN
12430 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12431 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12432 "RANLIB=$${RANLIB}" \
12433 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 12434 clean) \
2a4cbe27
NN
12435 || exit 1
12436
b813574b 12437@endif libcpp
2a4cbe27 12438
b813574b
PB
12439.PHONY: maybe-distclean-libcpp distclean-libcpp
12440maybe-distclean-libcpp:
12441@if libcpp
12442maybe-distclean-libcpp: distclean-libcpp
2a4cbe27 12443
b813574b
PB
12444distclean-libcpp:
12445 @[ -f ./libcpp/Makefile ] || exit 0; \
b40e3958
L
12446 r=`${PWD_COMMAND}`; export r; \
12447 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 12448 $(SET_LIB_PATH) \
378fce5b 12449 $(HOST_EXPORTS) \
b813574b 12450 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
12451 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12452 done; \
b813574b
PB
12453 echo "Doing distclean in libcpp" ; \
12454 (cd libcpp && \
2a4cbe27
NN
12455 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12456 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12457 "RANLIB=$${RANLIB}" \
12458 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 12459 distclean) \
2a4cbe27
NN
12460 || exit 1
12461
b813574b 12462@endif libcpp
2a4cbe27 12463
b813574b
PB
12464.PHONY: maybe-maintainer-clean-libcpp maintainer-clean-libcpp
12465maybe-maintainer-clean-libcpp:
12466@if libcpp
12467maybe-maintainer-clean-libcpp: maintainer-clean-libcpp
2a4cbe27 12468
b813574b
PB
12469maintainer-clean-libcpp:
12470 @[ -f ./libcpp/Makefile ] || exit 0; \
b40e3958
L
12471 r=`${PWD_COMMAND}`; export r; \
12472 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 12473 $(SET_LIB_PATH) \
378fce5b 12474 $(HOST_EXPORTS) \
b813574b 12475 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
12476 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12477 done; \
b813574b
PB
12478 echo "Doing maintainer-clean in libcpp" ; \
12479 (cd libcpp && \
2a4cbe27
NN
12480 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12481 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12482 "RANLIB=$${RANLIB}" \
12483 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 12484 maintainer-clean) \
2a4cbe27
NN
12485 || exit 1
12486
b813574b 12487@endif libcpp
2a4cbe27 12488
2a4cbe27 12489
b813574b
PB
12490.PHONY: configure-libgui maybe-configure-libgui
12491maybe-configure-libgui:
12492@if libgui
12493maybe-configure-libgui: configure-libgui
12494configure-libgui:
12495 @test ! -f libgui/Makefile || exit 0; \
12496 [ -d libgui ] || mkdir libgui; \
4b1cb4fe
DD
12497 r=`${PWD_COMMAND}`; export r; \
12498 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12499 $(HOST_EXPORTS) \
b813574b
PB
12500 echo Configuring in libgui; \
12501 cd libgui || exit 1; \
4b1cb4fe
DD
12502 case $(srcdir) in \
12503 \.) \
12504 srcdiroption="--srcdir=."; \
12505 libsrcdir=".";; \
12506 /* | [A-Za-z]:[\\/]*) \
b813574b
PB
12507 srcdiroption="--srcdir=$(srcdir)/libgui"; \
12508 libsrcdir="$$s/libgui";; \
4b1cb4fe 12509 *) \
b813574b
PB
12510 srcdiroption="--srcdir=../$(srcdir)/libgui"; \
12511 libsrcdir="$$s/libgui";; \
4b1cb4fe
DD
12512 esac; \
12513 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 12514 $(HOST_CONFIGARGS) $${srcdiroption} \
4b1cb4fe 12515 || exit 1
b813574b 12516@endif libgui
4b1cb4fe 12517
b813574b
PB
12518.PHONY: all-libgui maybe-all-libgui
12519maybe-all-libgui:
12520@if libgui
12521maybe-all-libgui: all-libgui
12522all-libgui: configure-libgui
4b1cb4fe
DD
12523 @r=`${PWD_COMMAND}`; export r; \
12524 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12525 $(SET_LIB_PATH) \
378fce5b 12526 $(HOST_EXPORTS) \
b813574b
PB
12527 (cd libgui && $(MAKE) $(FLAGS_TO_PASS) all)
12528@endif libgui
4b1cb4fe 12529
b813574b
PB
12530.PHONY: check-libgui maybe-check-libgui
12531maybe-check-libgui:
12532@if libgui
12533maybe-check-libgui: check-libgui
4b1cb4fe 12534
b813574b 12535check-libgui:
4b1cb4fe
DD
12536 @r=`${PWD_COMMAND}`; export r; \
12537 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12538 $(SET_LIB_PATH) \
378fce5b 12539 $(HOST_EXPORTS) \
72b2455a 12540 (cd libgui && $(MAKE) $(FLAGS_TO_PASS) check)
4b1cb4fe 12541
b813574b 12542@endif libgui
4b1cb4fe 12543
b813574b
PB
12544.PHONY: install-libgui maybe-install-libgui
12545maybe-install-libgui:
12546@if libgui
12547maybe-install-libgui: install-libgui
4b1cb4fe 12548
b813574b
PB
12549install-libgui: installdirs
12550 @r=`${PWD_COMMAND}`; export r; \
12551 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12552 $(SET_LIB_PATH) \
12553 $(HOST_EXPORTS) \
72b2455a 12554 (cd libgui && $(MAKE) $(FLAGS_TO_PASS) install)
4b1cb4fe 12555
b813574b 12556@endif libgui
4b1cb4fe
DD
12557
12558# Other targets (info, dvi, etc.)
12559
b813574b
PB
12560.PHONY: maybe-info-libgui info-libgui
12561maybe-info-libgui:
12562@if libgui
12563maybe-info-libgui: info-libgui
4b1cb4fe 12564
b813574b
PB
12565info-libgui: \
12566 configure-libgui
12567 @[ -f ./libgui/Makefile ] || exit 0; \
4b1cb4fe
DD
12568 r=`${PWD_COMMAND}`; export r; \
12569 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12570 $(SET_LIB_PATH) \
378fce5b 12571 $(HOST_EXPORTS) \
b813574b 12572 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
12573 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12574 done; \
b813574b
PB
12575 echo "Doing info in libgui" ; \
12576 (cd libgui && \
4b1cb4fe
DD
12577 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12578 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12579 "RANLIB=$${RANLIB}" \
12580 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 12581 info) \
4b1cb4fe
DD
12582 || exit 1
12583
b813574b 12584@endif libgui
4b1cb4fe 12585
b813574b
PB
12586.PHONY: maybe-dvi-libgui dvi-libgui
12587maybe-dvi-libgui:
12588@if libgui
12589maybe-dvi-libgui: dvi-libgui
4b1cb4fe 12590
b813574b
PB
12591dvi-libgui: \
12592 configure-libgui
12593 @[ -f ./libgui/Makefile ] || exit 0; \
4b1cb4fe
DD
12594 r=`${PWD_COMMAND}`; export r; \
12595 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12596 $(SET_LIB_PATH) \
378fce5b 12597 $(HOST_EXPORTS) \
b813574b 12598 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
12599 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12600 done; \
b813574b
PB
12601 echo "Doing dvi in libgui" ; \
12602 (cd libgui && \
4b1cb4fe
DD
12603 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12604 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12605 "RANLIB=$${RANLIB}" \
12606 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 12607 dvi) \
4b1cb4fe
DD
12608 || exit 1
12609
b813574b 12610@endif libgui
4b1cb4fe 12611
b813574b
PB
12612.PHONY: maybe-TAGS-libgui TAGS-libgui
12613maybe-TAGS-libgui:
12614@if libgui
12615maybe-TAGS-libgui: TAGS-libgui
4b1cb4fe 12616
b813574b
PB
12617TAGS-libgui: \
12618 configure-libgui
12619 @[ -f ./libgui/Makefile ] || exit 0; \
4b1cb4fe
DD
12620 r=`${PWD_COMMAND}`; export r; \
12621 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12622 $(SET_LIB_PATH) \
378fce5b 12623 $(HOST_EXPORTS) \
b813574b 12624 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
12625 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12626 done; \
b813574b
PB
12627 echo "Doing TAGS in libgui" ; \
12628 (cd libgui && \
4b1cb4fe
DD
12629 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12630 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12631 "RANLIB=$${RANLIB}" \
12632 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 12633 TAGS) \
4b1cb4fe
DD
12634 || exit 1
12635
b813574b 12636@endif libgui
4b1cb4fe 12637
b813574b
PB
12638.PHONY: maybe-install-info-libgui install-info-libgui
12639maybe-install-info-libgui:
12640@if libgui
12641maybe-install-info-libgui: install-info-libgui
4b1cb4fe 12642
b813574b
PB
12643install-info-libgui: \
12644 configure-libgui \
12645 info-libgui
12646 @[ -f ./libgui/Makefile ] || exit 0; \
4b1cb4fe
DD
12647 r=`${PWD_COMMAND}`; export r; \
12648 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12649 $(SET_LIB_PATH) \
378fce5b 12650 $(HOST_EXPORTS) \
b813574b 12651 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
12652 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12653 done; \
b813574b
PB
12654 echo "Doing install-info in libgui" ; \
12655 (cd libgui && \
4b1cb4fe
DD
12656 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12657 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12658 "RANLIB=$${RANLIB}" \
12659 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 12660 install-info) \
4b1cb4fe
DD
12661 || exit 1
12662
b813574b 12663@endif libgui
4b1cb4fe 12664
b813574b
PB
12665.PHONY: maybe-installcheck-libgui installcheck-libgui
12666maybe-installcheck-libgui:
12667@if libgui
12668maybe-installcheck-libgui: installcheck-libgui
4b1cb4fe 12669
b813574b
PB
12670installcheck-libgui: \
12671 configure-libgui
12672 @[ -f ./libgui/Makefile ] || exit 0; \
4b1cb4fe
DD
12673 r=`${PWD_COMMAND}`; export r; \
12674 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12675 $(SET_LIB_PATH) \
378fce5b 12676 $(HOST_EXPORTS) \
b813574b 12677 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
12678 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12679 done; \
b813574b
PB
12680 echo "Doing installcheck in libgui" ; \
12681 (cd libgui && \
4b1cb4fe
DD
12682 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12683 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12684 "RANLIB=$${RANLIB}" \
12685 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 12686 installcheck) \
4b1cb4fe
DD
12687 || exit 1
12688
b813574b 12689@endif libgui
4b1cb4fe 12690
b813574b
PB
12691.PHONY: maybe-mostlyclean-libgui mostlyclean-libgui
12692maybe-mostlyclean-libgui:
12693@if libgui
12694maybe-mostlyclean-libgui: mostlyclean-libgui
4b1cb4fe 12695
b813574b
PB
12696mostlyclean-libgui:
12697 @[ -f ./libgui/Makefile ] || exit 0; \
4b1cb4fe
DD
12698 r=`${PWD_COMMAND}`; export r; \
12699 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12700 $(SET_LIB_PATH) \
378fce5b 12701 $(HOST_EXPORTS) \
b813574b 12702 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
12703 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12704 done; \
b813574b
PB
12705 echo "Doing mostlyclean in libgui" ; \
12706 (cd libgui && \
4b1cb4fe
DD
12707 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12708 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12709 "RANLIB=$${RANLIB}" \
12710 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 12711 mostlyclean) \
4b1cb4fe
DD
12712 || exit 1
12713
b813574b 12714@endif libgui
4b1cb4fe 12715
b813574b
PB
12716.PHONY: maybe-clean-libgui clean-libgui
12717maybe-clean-libgui:
12718@if libgui
12719maybe-clean-libgui: clean-libgui
4b1cb4fe 12720
b813574b
PB
12721clean-libgui:
12722 @[ -f ./libgui/Makefile ] || exit 0; \
4b1cb4fe
DD
12723 r=`${PWD_COMMAND}`; export r; \
12724 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12725 $(SET_LIB_PATH) \
378fce5b 12726 $(HOST_EXPORTS) \
b813574b 12727 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
12728 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12729 done; \
b813574b
PB
12730 echo "Doing clean in libgui" ; \
12731 (cd libgui && \
4b1cb4fe
DD
12732 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12733 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12734 "RANLIB=$${RANLIB}" \
12735 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 12736 clean) \
4b1cb4fe
DD
12737 || exit 1
12738
b813574b 12739@endif libgui
4b1cb4fe 12740
b813574b
PB
12741.PHONY: maybe-distclean-libgui distclean-libgui
12742maybe-distclean-libgui:
12743@if libgui
12744maybe-distclean-libgui: distclean-libgui
4b1cb4fe 12745
b813574b
PB
12746distclean-libgui:
12747 @[ -f ./libgui/Makefile ] || exit 0; \
4b1cb4fe
DD
12748 r=`${PWD_COMMAND}`; export r; \
12749 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12750 $(SET_LIB_PATH) \
378fce5b 12751 $(HOST_EXPORTS) \
b813574b 12752 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
12753 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12754 done; \
b813574b
PB
12755 echo "Doing distclean in libgui" ; \
12756 (cd libgui && \
4b1cb4fe
DD
12757 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12758 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12759 "RANLIB=$${RANLIB}" \
12760 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 12761 distclean) \
4b1cb4fe
DD
12762 || exit 1
12763
b813574b 12764@endif libgui
4b1cb4fe 12765
b813574b
PB
12766.PHONY: maybe-maintainer-clean-libgui maintainer-clean-libgui
12767maybe-maintainer-clean-libgui:
12768@if libgui
12769maybe-maintainer-clean-libgui: maintainer-clean-libgui
4b1cb4fe 12770
b813574b
PB
12771maintainer-clean-libgui:
12772 @[ -f ./libgui/Makefile ] || exit 0; \
4b1cb4fe
DD
12773 r=`${PWD_COMMAND}`; export r; \
12774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12775 $(SET_LIB_PATH) \
378fce5b 12776 $(HOST_EXPORTS) \
b813574b 12777 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
12778 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12779 done; \
b813574b
PB
12780 echo "Doing maintainer-clean in libgui" ; \
12781 (cd libgui && \
4b1cb4fe
DD
12782 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12783 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12784 "RANLIB=$${RANLIB}" \
12785 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 12786 maintainer-clean) \
4b1cb4fe
DD
12787 || exit 1
12788
b813574b 12789@endif libgui
4b1cb4fe
DD
12790
12791
b813574b
PB
12792.PHONY: configure-libiberty maybe-configure-libiberty
12793maybe-configure-libiberty:
12794@if libiberty
12795maybe-configure-libiberty: configure-libiberty
12796configure-libiberty:
72b2455a
PB
12797 @test -f stage_last && exit 0; \
12798 test ! -f libiberty/Makefile || exit 0; \
b813574b 12799 [ -d libiberty ] || mkdir libiberty; \
b40e3958
L
12800 r=`${PWD_COMMAND}`; export r; \
12801 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12802 $(HOST_EXPORTS) \
b813574b
PB
12803 echo Configuring in libiberty; \
12804 cd libiberty || exit 1; \
4fa63067
NN
12805 case $(srcdir) in \
12806 \.) \
12807 srcdiroption="--srcdir=."; \
12808 libsrcdir=".";; \
12809 /* | [A-Za-z]:[\\/]*) \
b813574b
PB
12810 srcdiroption="--srcdir=$(srcdir)/libiberty"; \
12811 libsrcdir="$$s/libiberty";; \
4fa63067 12812 *) \
b813574b
PB
12813 srcdiroption="--srcdir=../$(srcdir)/libiberty"; \
12814 libsrcdir="$$s/libiberty";; \
4fa63067
NN
12815 esac; \
12816 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 12817 $(HOST_CONFIGARGS) $${srcdiroption} \
2a4cbe27 12818 || exit 1
b813574b 12819@endif libiberty
2a4cbe27 12820
b813574b
PB
12821.PHONY: all-libiberty maybe-all-libiberty
12822maybe-all-libiberty:
12823@if libiberty
12824maybe-all-libiberty: all-libiberty
12825all-libiberty: configure-libiberty
72b2455a
PB
12826 @test -f stage_last && exit 0; \
12827 r=`${PWD_COMMAND}`; export r; \
b813574b
PB
12828 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12829 $(SET_LIB_PATH) \
378fce5b 12830 $(HOST_EXPORTS) \
b813574b
PB
12831 (cd libiberty && $(MAKE) $(FLAGS_TO_PASS) all)
12832@endif libiberty
2a4cbe27 12833
b813574b
PB
12834.PHONY: check-libiberty maybe-check-libiberty
12835maybe-check-libiberty:
12836@if libiberty
12837maybe-check-libiberty: check-libiberty
2a4cbe27 12838
b813574b 12839check-libiberty:
4fa63067 12840 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12841 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 12842 $(SET_LIB_PATH) \
378fce5b 12843 $(HOST_EXPORTS) \
72b2455a 12844 (cd libiberty && $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 12845
b813574b 12846@endif libiberty
2a4cbe27 12847
b813574b
PB
12848.PHONY: install-libiberty maybe-install-libiberty
12849maybe-install-libiberty:
12850@if libiberty
12851maybe-install-libiberty: install-libiberty
2a4cbe27 12852
b813574b 12853install-libiberty: installdirs
4fa63067 12854 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12855 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 12856 $(SET_LIB_PATH) \
378fce5b 12857 $(HOST_EXPORTS) \
72b2455a 12858 (cd libiberty && $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 12859
b813574b 12860@endif libiberty
2a4cbe27 12861
4fa63067 12862# Other targets (info, dvi, etc.)
2a4cbe27 12863
b813574b
PB
12864.PHONY: maybe-info-libiberty info-libiberty
12865maybe-info-libiberty:
12866@if libiberty
12867maybe-info-libiberty: info-libiberty
4fa63067 12868
b813574b
PB
12869info-libiberty: \
12870 configure-libiberty
12871 @[ -f ./libiberty/Makefile ] || exit 0; \
b40e3958
L
12872 r=`${PWD_COMMAND}`; export r; \
12873 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 12874 $(SET_LIB_PATH) \
378fce5b 12875 $(HOST_EXPORTS) \
b813574b 12876 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
12877 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12878 done; \
b813574b
PB
12879 echo "Doing info in libiberty" ; \
12880 (cd libiberty && \
2a4cbe27
NN
12881 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12882 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12883 "RANLIB=$${RANLIB}" \
12884 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 12885 info) \
2a4cbe27
NN
12886 || exit 1
12887
b813574b 12888@endif libiberty
2a4cbe27 12889
b813574b
PB
12890.PHONY: maybe-dvi-libiberty dvi-libiberty
12891maybe-dvi-libiberty:
12892@if libiberty
12893maybe-dvi-libiberty: dvi-libiberty
2a4cbe27 12894
b813574b
PB
12895dvi-libiberty: \
12896 configure-libiberty
12897 @[ -f ./libiberty/Makefile ] || exit 0; \
b40e3958
L
12898 r=`${PWD_COMMAND}`; export r; \
12899 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 12900 $(SET_LIB_PATH) \
378fce5b 12901 $(HOST_EXPORTS) \
b813574b 12902 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
12903 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12904 done; \
b813574b
PB
12905 echo "Doing dvi in libiberty" ; \
12906 (cd libiberty && \
2a4cbe27
NN
12907 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12908 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12909 "RANLIB=$${RANLIB}" \
12910 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 12911 dvi) \
2a4cbe27
NN
12912 || exit 1
12913
b813574b 12914@endif libiberty
2a4cbe27 12915
b813574b
PB
12916.PHONY: maybe-TAGS-libiberty TAGS-libiberty
12917maybe-TAGS-libiberty:
12918@if libiberty
12919maybe-TAGS-libiberty: TAGS-libiberty
2a4cbe27 12920
b813574b
PB
12921TAGS-libiberty: \
12922 configure-libiberty
12923 @[ -f ./libiberty/Makefile ] || exit 0; \
b40e3958
L
12924 r=`${PWD_COMMAND}`; export r; \
12925 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 12926 $(SET_LIB_PATH) \
378fce5b 12927 $(HOST_EXPORTS) \
b813574b 12928 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
12929 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12930 done; \
b813574b
PB
12931 echo "Doing TAGS in libiberty" ; \
12932 (cd libiberty && \
2a4cbe27
NN
12933 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12934 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12935 "RANLIB=$${RANLIB}" \
12936 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 12937 TAGS) \
2a4cbe27
NN
12938 || exit 1
12939
b813574b 12940@endif libiberty
2a4cbe27 12941
b813574b
PB
12942.PHONY: maybe-install-info-libiberty install-info-libiberty
12943maybe-install-info-libiberty:
12944@if libiberty
12945maybe-install-info-libiberty: install-info-libiberty
2a4cbe27 12946
b813574b
PB
12947install-info-libiberty: \
12948 configure-libiberty \
12949 info-libiberty
12950 @[ -f ./libiberty/Makefile ] || exit 0; \
b40e3958
L
12951 r=`${PWD_COMMAND}`; export r; \
12952 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 12953 $(SET_LIB_PATH) \
378fce5b 12954 $(HOST_EXPORTS) \
b813574b 12955 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
12956 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12957 done; \
b813574b
PB
12958 echo "Doing install-info in libiberty" ; \
12959 (cd libiberty && \
2a4cbe27
NN
12960 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12961 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12962 "RANLIB=$${RANLIB}" \
12963 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 12964 install-info) \
2a4cbe27
NN
12965 || exit 1
12966
b813574b 12967@endif libiberty
2a4cbe27 12968
b813574b
PB
12969.PHONY: maybe-installcheck-libiberty installcheck-libiberty
12970maybe-installcheck-libiberty:
12971@if libiberty
12972maybe-installcheck-libiberty: installcheck-libiberty
2a4cbe27 12973
b813574b
PB
12974installcheck-libiberty: \
12975 configure-libiberty
12976 @[ -f ./libiberty/Makefile ] || exit 0; \
b40e3958
L
12977 r=`${PWD_COMMAND}`; export r; \
12978 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 12979 $(SET_LIB_PATH) \
378fce5b 12980 $(HOST_EXPORTS) \
b813574b 12981 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
12982 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12983 done; \
b813574b
PB
12984 echo "Doing installcheck in libiberty" ; \
12985 (cd libiberty && \
2a4cbe27
NN
12986 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12987 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12988 "RANLIB=$${RANLIB}" \
12989 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 12990 installcheck) \
2a4cbe27
NN
12991 || exit 1
12992
b813574b 12993@endif libiberty
2a4cbe27 12994
b813574b
PB
12995.PHONY: maybe-mostlyclean-libiberty mostlyclean-libiberty
12996maybe-mostlyclean-libiberty:
12997@if libiberty
12998maybe-mostlyclean-libiberty: mostlyclean-libiberty
2a4cbe27 12999
b813574b
PB
13000mostlyclean-libiberty:
13001 @[ -f ./libiberty/Makefile ] || exit 0; \
b40e3958
L
13002 r=`${PWD_COMMAND}`; export r; \
13003 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 13004 $(SET_LIB_PATH) \
378fce5b 13005 $(HOST_EXPORTS) \
b813574b 13006 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
13007 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13008 done; \
b813574b
PB
13009 echo "Doing mostlyclean in libiberty" ; \
13010 (cd libiberty && \
2a4cbe27
NN
13011 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13012 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13013 "RANLIB=$${RANLIB}" \
13014 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 13015 mostlyclean) \
2a4cbe27
NN
13016 || exit 1
13017
b813574b 13018@endif libiberty
2a4cbe27 13019
b813574b
PB
13020.PHONY: maybe-clean-libiberty clean-libiberty
13021maybe-clean-libiberty:
13022@if libiberty
13023maybe-clean-libiberty: clean-libiberty
2a4cbe27 13024
b813574b
PB
13025clean-libiberty:
13026 @[ -f ./libiberty/Makefile ] || exit 0; \
b40e3958
L
13027 r=`${PWD_COMMAND}`; export r; \
13028 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 13029 $(SET_LIB_PATH) \
378fce5b 13030 $(HOST_EXPORTS) \
b813574b 13031 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
13032 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13033 done; \
b813574b
PB
13034 echo "Doing clean in libiberty" ; \
13035 (cd libiberty && \
2a4cbe27
NN
13036 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13037 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13038 "RANLIB=$${RANLIB}" \
13039 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 13040 clean) \
2a4cbe27
NN
13041 || exit 1
13042
b813574b 13043@endif libiberty
2a4cbe27 13044
b813574b
PB
13045.PHONY: maybe-distclean-libiberty distclean-libiberty
13046maybe-distclean-libiberty:
13047@if libiberty
13048maybe-distclean-libiberty: distclean-libiberty
2a4cbe27 13049
b813574b
PB
13050distclean-libiberty:
13051 @[ -f ./libiberty/Makefile ] || exit 0; \
b40e3958
L
13052 r=`${PWD_COMMAND}`; export r; \
13053 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 13054 $(SET_LIB_PATH) \
378fce5b 13055 $(HOST_EXPORTS) \
b813574b 13056 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
13057 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13058 done; \
b813574b
PB
13059 echo "Doing distclean in libiberty" ; \
13060 (cd libiberty && \
2a4cbe27
NN
13061 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13062 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13063 "RANLIB=$${RANLIB}" \
13064 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 13065 distclean) \
2a4cbe27
NN
13066 || exit 1
13067
b813574b 13068@endif libiberty
2a4cbe27 13069
b813574b
PB
13070.PHONY: maybe-maintainer-clean-libiberty maintainer-clean-libiberty
13071maybe-maintainer-clean-libiberty:
13072@if libiberty
13073maybe-maintainer-clean-libiberty: maintainer-clean-libiberty
2a4cbe27 13074
b813574b
PB
13075maintainer-clean-libiberty:
13076 @[ -f ./libiberty/Makefile ] || exit 0; \
b40e3958
L
13077 r=`${PWD_COMMAND}`; export r; \
13078 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 13079 $(SET_LIB_PATH) \
378fce5b 13080 $(HOST_EXPORTS) \
b813574b 13081 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
13082 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13083 done; \
b813574b
PB
13084 echo "Doing maintainer-clean in libiberty" ; \
13085 (cd libiberty && \
2a4cbe27
NN
13086 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13087 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13088 "RANLIB=$${RANLIB}" \
13089 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 13090 maintainer-clean) \
2a4cbe27
NN
13091 || exit 1
13092
b813574b 13093@endif libiberty
2a4cbe27 13094
2a4cbe27 13095
b813574b
PB
13096.PHONY: configure-libtool maybe-configure-libtool
13097maybe-configure-libtool:
13098@if libtool
13099maybe-configure-libtool: configure-libtool
13100configure-libtool:
13101 @test ! -f libtool/Makefile || exit 0; \
13102 [ -d libtool ] || mkdir libtool; \
b40e3958
L
13103 r=`${PWD_COMMAND}`; export r; \
13104 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 13105 $(HOST_EXPORTS) \
b813574b
PB
13106 echo Configuring in libtool; \
13107 cd libtool || exit 1; \
4fa63067
NN
13108 case $(srcdir) in \
13109 \.) \
13110 srcdiroption="--srcdir=."; \
13111 libsrcdir=".";; \
13112 /* | [A-Za-z]:[\\/]*) \
b813574b
PB
13113 srcdiroption="--srcdir=$(srcdir)/libtool"; \
13114 libsrcdir="$$s/libtool";; \
4fa63067 13115 *) \
b813574b
PB
13116 srcdiroption="--srcdir=../$(srcdir)/libtool"; \
13117 libsrcdir="$$s/libtool";; \
4fa63067
NN
13118 esac; \
13119 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 13120 $(HOST_CONFIGARGS) $${srcdiroption} \
2a4cbe27 13121 || exit 1
b813574b 13122@endif libtool
2a4cbe27 13123
b813574b
PB
13124.PHONY: all-libtool maybe-all-libtool
13125maybe-all-libtool:
13126@if libtool
13127maybe-all-libtool: all-libtool
13128all-libtool: configure-libtool
4fa63067
NN
13129 @r=`${PWD_COMMAND}`; export r; \
13130 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13131 $(SET_LIB_PATH) \
378fce5b 13132 $(HOST_EXPORTS) \
b813574b
PB
13133 (cd libtool && $(MAKE) $(FLAGS_TO_PASS) all)
13134@endif libtool
2a4cbe27 13135
b813574b
PB
13136.PHONY: check-libtool maybe-check-libtool
13137maybe-check-libtool:
13138@if libtool
13139maybe-check-libtool: check-libtool
2a4cbe27 13140
b813574b 13141check-libtool:
4fa63067 13142 @r=`${PWD_COMMAND}`; export r; \
b40e3958 13143 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 13144 $(SET_LIB_PATH) \
378fce5b 13145 $(HOST_EXPORTS) \
72b2455a 13146 (cd libtool && $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 13147
b813574b 13148@endif libtool
2a4cbe27 13149
b813574b
PB
13150.PHONY: install-libtool maybe-install-libtool
13151maybe-install-libtool:
13152@if libtool
13153maybe-install-libtool: install-libtool
2a4cbe27 13154
b813574b 13155install-libtool: installdirs
4fa63067 13156 @r=`${PWD_COMMAND}`; export r; \
b40e3958 13157 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 13158 $(SET_LIB_PATH) \
378fce5b 13159 $(HOST_EXPORTS) \
72b2455a 13160 (cd libtool && $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 13161
b813574b 13162@endif libtool
2a4cbe27 13163
4fa63067 13164# Other targets (info, dvi, etc.)
2a4cbe27 13165
b813574b
PB
13166.PHONY: maybe-info-libtool info-libtool
13167maybe-info-libtool:
13168@if libtool
13169maybe-info-libtool: info-libtool
4fa63067 13170
b813574b
PB
13171info-libtool: \
13172 configure-libtool
13173 @[ -f ./libtool/Makefile ] || exit 0; \
b40e3958
L
13174 r=`${PWD_COMMAND}`; export r; \
13175 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 13176 $(SET_LIB_PATH) \
378fce5b 13177 $(HOST_EXPORTS) \
b813574b 13178 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
13179 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13180 done; \
b813574b
PB
13181 echo "Doing info in libtool" ; \
13182 (cd libtool && \
2a4cbe27
NN
13183 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13184 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13185 "RANLIB=$${RANLIB}" \
13186 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 13187 info) \
2a4cbe27
NN
13188 || exit 1
13189
b813574b 13190@endif libtool
2a4cbe27 13191
b813574b
PB
13192.PHONY: maybe-dvi-libtool dvi-libtool
13193maybe-dvi-libtool:
13194@if libtool
13195maybe-dvi-libtool: dvi-libtool
2a4cbe27 13196
b813574b
PB
13197dvi-libtool: \
13198 configure-libtool
13199 @[ -f ./libtool/Makefile ] || exit 0; \
b40e3958
L
13200 r=`${PWD_COMMAND}`; export r; \
13201 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 13202 $(SET_LIB_PATH) \
378fce5b 13203 $(HOST_EXPORTS) \
b813574b 13204 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
13205 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13206 done; \
b813574b
PB
13207 echo "Doing dvi in libtool" ; \
13208 (cd libtool && \
2a4cbe27
NN
13209 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13210 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13211 "RANLIB=$${RANLIB}" \
13212 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 13213 dvi) \
2a4cbe27
NN
13214 || exit 1
13215
b813574b 13216@endif libtool
2a4cbe27 13217
b813574b
PB
13218.PHONY: maybe-TAGS-libtool TAGS-libtool
13219maybe-TAGS-libtool:
13220@if libtool
13221maybe-TAGS-libtool: TAGS-libtool
2a4cbe27 13222
b813574b
PB
13223TAGS-libtool: \
13224 configure-libtool
13225 @[ -f ./libtool/Makefile ] || exit 0; \
b40e3958
L
13226 r=`${PWD_COMMAND}`; export r; \
13227 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 13228 $(SET_LIB_PATH) \
378fce5b 13229 $(HOST_EXPORTS) \
b813574b 13230 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
13231 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13232 done; \
b813574b
PB
13233 echo "Doing TAGS in libtool" ; \
13234 (cd libtool && \
2a4cbe27
NN
13235 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13236 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13237 "RANLIB=$${RANLIB}" \
13238 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 13239 TAGS) \
2a4cbe27
NN
13240 || exit 1
13241
b813574b 13242@endif libtool
2a4cbe27 13243
b813574b
PB
13244.PHONY: maybe-install-info-libtool install-info-libtool
13245maybe-install-info-libtool:
13246@if libtool
13247maybe-install-info-libtool: install-info-libtool
2a4cbe27 13248
b813574b
PB
13249install-info-libtool: \
13250 configure-libtool \
13251 info-libtool
13252 @[ -f ./libtool/Makefile ] || exit 0; \
b40e3958
L
13253 r=`${PWD_COMMAND}`; export r; \
13254 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 13255 $(SET_LIB_PATH) \
378fce5b 13256 $(HOST_EXPORTS) \
b813574b 13257 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
13258 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13259 done; \
b813574b
PB
13260 echo "Doing install-info in libtool" ; \
13261 (cd libtool && \
2a4cbe27
NN
13262 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13263 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13264 "RANLIB=$${RANLIB}" \
13265 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 13266 install-info) \
2a4cbe27
NN
13267 || exit 1
13268
b813574b 13269@endif libtool
2a4cbe27 13270
b813574b
PB
13271.PHONY: maybe-installcheck-libtool installcheck-libtool
13272maybe-installcheck-libtool:
13273@if libtool
13274maybe-installcheck-libtool: installcheck-libtool
2a4cbe27 13275
b813574b
PB
13276installcheck-libtool: \
13277 configure-libtool
13278 @[ -f ./libtool/Makefile ] || exit 0; \
b40e3958
L
13279 r=`${PWD_COMMAND}`; export r; \
13280 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 13281 $(SET_LIB_PATH) \
378fce5b 13282 $(HOST_EXPORTS) \
b813574b 13283 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
13284 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13285 done; \
b813574b
PB
13286 echo "Doing installcheck in libtool" ; \
13287 (cd libtool && \
2a4cbe27
NN
13288 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13289 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13290 "RANLIB=$${RANLIB}" \
13291 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 13292 installcheck) \
2a4cbe27
NN
13293 || exit 1
13294
b813574b 13295@endif libtool
2a4cbe27 13296
b813574b
PB
13297.PHONY: maybe-mostlyclean-libtool mostlyclean-libtool
13298maybe-mostlyclean-libtool:
13299@if libtool
13300maybe-mostlyclean-libtool: mostlyclean-libtool
2a4cbe27 13301
b813574b
PB
13302mostlyclean-libtool:
13303 @[ -f ./libtool/Makefile ] || exit 0; \
b40e3958
L
13304 r=`${PWD_COMMAND}`; export r; \
13305 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 13306 $(SET_LIB_PATH) \
378fce5b 13307 $(HOST_EXPORTS) \
b813574b 13308 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
13309 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13310 done; \
b813574b
PB
13311 echo "Doing mostlyclean in libtool" ; \
13312 (cd libtool && \
2a4cbe27
NN
13313 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13314 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13315 "RANLIB=$${RANLIB}" \
13316 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 13317 mostlyclean) \
2a4cbe27
NN
13318 || exit 1
13319
b813574b 13320@endif libtool
2a4cbe27 13321
b813574b
PB
13322.PHONY: maybe-clean-libtool clean-libtool
13323maybe-clean-libtool:
13324@if libtool
13325maybe-clean-libtool: clean-libtool
2a4cbe27 13326
b813574b
PB
13327clean-libtool:
13328 @[ -f ./libtool/Makefile ] || exit 0; \
b40e3958
L
13329 r=`${PWD_COMMAND}`; export r; \
13330 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 13331 $(SET_LIB_PATH) \
378fce5b 13332 $(HOST_EXPORTS) \
b813574b 13333 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
13334 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13335 done; \
b813574b
PB
13336 echo "Doing clean in libtool" ; \
13337 (cd libtool && \
2a4cbe27
NN
13338 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13339 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13340 "RANLIB=$${RANLIB}" \
13341 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 13342 clean) \
2a4cbe27
NN
13343 || exit 1
13344
b813574b 13345@endif libtool
2a4cbe27 13346
b813574b
PB
13347.PHONY: maybe-distclean-libtool distclean-libtool
13348maybe-distclean-libtool:
13349@if libtool
13350maybe-distclean-libtool: distclean-libtool
2a4cbe27 13351
b813574b
PB
13352distclean-libtool:
13353 @[ -f ./libtool/Makefile ] || exit 0; \
b40e3958
L
13354 r=`${PWD_COMMAND}`; export r; \
13355 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 13356 $(SET_LIB_PATH) \
378fce5b 13357 $(HOST_EXPORTS) \
b813574b 13358 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
13359 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13360 done; \
b813574b
PB
13361 echo "Doing distclean in libtool" ; \
13362 (cd libtool && \
2a4cbe27
NN
13363 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13364 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13365 "RANLIB=$${RANLIB}" \
13366 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 13367 distclean) \
2a4cbe27
NN
13368 || exit 1
13369
b813574b 13370@endif libtool
2a4cbe27 13371
b813574b
PB
13372.PHONY: maybe-maintainer-clean-libtool maintainer-clean-libtool
13373maybe-maintainer-clean-libtool:
13374@if libtool
13375maybe-maintainer-clean-libtool: maintainer-clean-libtool
2a4cbe27 13376
b813574b
PB
13377maintainer-clean-libtool:
13378 @[ -f ./libtool/Makefile ] || exit 0; \
b40e3958
L
13379 r=`${PWD_COMMAND}`; export r; \
13380 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 13381 $(SET_LIB_PATH) \
378fce5b 13382 $(HOST_EXPORTS) \
b813574b 13383 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
13384 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13385 done; \
b813574b
PB
13386 echo "Doing maintainer-clean in libtool" ; \
13387 (cd libtool && \
2a4cbe27
NN
13388 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13389 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13390 "RANLIB=$${RANLIB}" \
13391 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 13392 maintainer-clean) \
2a4cbe27
NN
13393 || exit 1
13394
b813574b 13395@endif libtool
2a4cbe27 13396
2a4cbe27 13397
b813574b
PB
13398.PHONY: configure-m4 maybe-configure-m4
13399maybe-configure-m4:
13400@if m4
13401maybe-configure-m4: configure-m4
13402configure-m4:
13403 @test ! -f m4/Makefile || exit 0; \
13404 [ -d m4 ] || mkdir m4; \
b40e3958
L
13405 r=`${PWD_COMMAND}`; export r; \
13406 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 13407 $(HOST_EXPORTS) \
b813574b
PB
13408 echo Configuring in m4; \
13409 cd m4 || exit 1; \
4fa63067
NN
13410 case $(srcdir) in \
13411 \.) \
13412 srcdiroption="--srcdir=."; \
13413 libsrcdir=".";; \
13414 /* | [A-Za-z]:[\\/]*) \
b813574b
PB
13415 srcdiroption="--srcdir=$(srcdir)/m4"; \
13416 libsrcdir="$$s/m4";; \
4fa63067 13417 *) \
b813574b
PB
13418 srcdiroption="--srcdir=../$(srcdir)/m4"; \
13419 libsrcdir="$$s/m4";; \
4fa63067
NN
13420 esac; \
13421 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 13422 $(HOST_CONFIGARGS) $${srcdiroption} \
2a4cbe27 13423 || exit 1
b813574b 13424@endif m4
2a4cbe27 13425
b813574b
PB
13426.PHONY: all-m4 maybe-all-m4
13427maybe-all-m4:
13428@if m4
13429maybe-all-m4: all-m4
13430all-m4: configure-m4
4fa63067
NN
13431 @r=`${PWD_COMMAND}`; export r; \
13432 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13433 $(SET_LIB_PATH) \
378fce5b 13434 $(HOST_EXPORTS) \
b813574b
PB
13435 (cd m4 && $(MAKE) $(FLAGS_TO_PASS) all)
13436@endif m4
4fa63067 13437
b813574b
PB
13438.PHONY: check-m4 maybe-check-m4
13439maybe-check-m4:
13440@if m4
13441maybe-check-m4: check-m4
2a4cbe27 13442
b813574b 13443check-m4:
4fa63067
NN
13444 @r=`${PWD_COMMAND}`; export r; \
13445 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13446 $(SET_LIB_PATH) \
378fce5b 13447 $(HOST_EXPORTS) \
72b2455a 13448 (cd m4 && $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 13449
b813574b 13450@endif m4
4fa63067 13451
b813574b
PB
13452.PHONY: install-m4 maybe-install-m4
13453maybe-install-m4:
13454@if m4
13455maybe-install-m4: install-m4
4fa63067 13456
b813574b 13457install-m4: installdirs
4fa63067
NN
13458 @r=`${PWD_COMMAND}`; export r; \
13459 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13460 $(SET_LIB_PATH) \
378fce5b 13461 $(HOST_EXPORTS) \
72b2455a 13462 (cd m4 && $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 13463
b813574b 13464@endif m4
4fa63067
NN
13465
13466# Other targets (info, dvi, etc.)
13467
b813574b
PB
13468.PHONY: maybe-info-m4 info-m4
13469maybe-info-m4:
13470@if m4
13471maybe-info-m4: info-m4
4fa63067 13472
b813574b
PB
13473info-m4: \
13474 configure-m4
13475 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
13476 r=`${PWD_COMMAND}`; export r; \
13477 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 13478 $(SET_LIB_PATH) \
378fce5b 13479 $(HOST_EXPORTS) \
b813574b 13480 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
13481 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13482 done; \
b813574b
PB
13483 echo "Doing info in m4" ; \
13484 (cd m4 && \
2a4cbe27
NN
13485 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13486 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13487 "RANLIB=$${RANLIB}" \
13488 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 13489 info) \
2a4cbe27
NN
13490 || exit 1
13491
b813574b 13492@endif m4
2a4cbe27 13493
b813574b
PB
13494.PHONY: maybe-dvi-m4 dvi-m4
13495maybe-dvi-m4:
13496@if m4
13497maybe-dvi-m4: dvi-m4
2a4cbe27 13498
b813574b
PB
13499dvi-m4: \
13500 configure-m4
13501 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
13502 r=`${PWD_COMMAND}`; export r; \
13503 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 13504 $(SET_LIB_PATH) \
378fce5b 13505 $(HOST_EXPORTS) \
b813574b 13506 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
13507 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13508 done; \
b813574b
PB
13509 echo "Doing dvi in m4" ; \
13510 (cd m4 && \
2a4cbe27
NN
13511 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13512 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13513 "RANLIB=$${RANLIB}" \
13514 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 13515 dvi) \
2a4cbe27
NN
13516 || exit 1
13517
b813574b 13518@endif m4
2a4cbe27 13519
b813574b
PB
13520.PHONY: maybe-TAGS-m4 TAGS-m4
13521maybe-TAGS-m4:
13522@if m4
13523maybe-TAGS-m4: TAGS-m4
2a4cbe27 13524
b813574b
PB
13525TAGS-m4: \
13526 configure-m4
13527 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
13528 r=`${PWD_COMMAND}`; export r; \
13529 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 13530 $(SET_LIB_PATH) \
378fce5b 13531 $(HOST_EXPORTS) \
b813574b 13532 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
13533 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13534 done; \
b813574b
PB
13535 echo "Doing TAGS in m4" ; \
13536 (cd m4 && \
2a4cbe27
NN
13537 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13538 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13539 "RANLIB=$${RANLIB}" \
13540 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 13541 TAGS) \
2a4cbe27
NN
13542 || exit 1
13543
b813574b 13544@endif m4
2a4cbe27 13545
b813574b
PB
13546.PHONY: maybe-install-info-m4 install-info-m4
13547maybe-install-info-m4:
13548@if m4
13549maybe-install-info-m4: install-info-m4
2a4cbe27 13550
b813574b
PB
13551install-info-m4: \
13552 configure-m4 \
13553 info-m4
13554 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
13555 r=`${PWD_COMMAND}`; export r; \
13556 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 13557 $(SET_LIB_PATH) \
378fce5b 13558 $(HOST_EXPORTS) \
b813574b 13559 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
13560 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13561 done; \
b813574b
PB
13562 echo "Doing install-info in m4" ; \
13563 (cd m4 && \
2a4cbe27
NN
13564 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13565 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13566 "RANLIB=$${RANLIB}" \
13567 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 13568 install-info) \
2a4cbe27
NN
13569 || exit 1
13570
b813574b 13571@endif m4
2a4cbe27 13572
b813574b
PB
13573.PHONY: maybe-installcheck-m4 installcheck-m4
13574maybe-installcheck-m4:
13575@if m4
13576maybe-installcheck-m4: installcheck-m4
2a4cbe27 13577
b813574b
PB
13578installcheck-m4: \
13579 configure-m4
13580 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
13581 r=`${PWD_COMMAND}`; export r; \
13582 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 13583 $(SET_LIB_PATH) \
378fce5b 13584 $(HOST_EXPORTS) \
b813574b 13585 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
13586 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13587 done; \
b813574b
PB
13588 echo "Doing installcheck in m4" ; \
13589 (cd m4 && \
2a4cbe27
NN
13590 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13591 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13592 "RANLIB=$${RANLIB}" \
13593 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 13594 installcheck) \
2a4cbe27
NN
13595 || exit 1
13596
b813574b 13597@endif m4
2a4cbe27 13598
b813574b
PB
13599.PHONY: maybe-mostlyclean-m4 mostlyclean-m4
13600maybe-mostlyclean-m4:
13601@if m4
13602maybe-mostlyclean-m4: mostlyclean-m4
2a4cbe27 13603
b813574b
PB
13604mostlyclean-m4:
13605 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
13606 r=`${PWD_COMMAND}`; export r; \
13607 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 13608 $(SET_LIB_PATH) \
378fce5b 13609 $(HOST_EXPORTS) \
b813574b 13610 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
13611 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13612 done; \
b813574b
PB
13613 echo "Doing mostlyclean in m4" ; \
13614 (cd m4 && \
2a4cbe27
NN
13615 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13616 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13617 "RANLIB=$${RANLIB}" \
13618 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 13619 mostlyclean) \
2a4cbe27
NN
13620 || exit 1
13621
b813574b 13622@endif m4
2a4cbe27 13623
b813574b
PB
13624.PHONY: maybe-clean-m4 clean-m4
13625maybe-clean-m4:
13626@if m4
13627maybe-clean-m4: clean-m4
2a4cbe27 13628
b813574b
PB
13629clean-m4:
13630 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
13631 r=`${PWD_COMMAND}`; export r; \
13632 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a4cbe27 13633 $(SET_LIB_PATH) \
378fce5b 13634 $(HOST_EXPORTS) \
b813574b 13635 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
13636 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13637 done; \
b813574b
PB
13638 echo "Doing clean in m4" ; \
13639 (cd m4 && \
2a4cbe27
NN
13640 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13641 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13642 "RANLIB=$${RANLIB}" \
13643 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 13644 clean) \
2a4cbe27
NN
13645 || exit 1
13646
b813574b 13647@endif m4
2a4cbe27 13648
b813574b
PB
13649.PHONY: maybe-distclean-m4 distclean-m4
13650maybe-distclean-m4:
13651@if m4
13652maybe-distclean-m4: distclean-m4
a2592b1b 13653
b813574b
PB
13654distclean-m4:
13655 @[ -f ./m4/Makefile ] || exit 0; \
a2592b1b
DD
13656 r=`${PWD_COMMAND}`; export r; \
13657 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13658 $(SET_LIB_PATH) \
378fce5b 13659 $(HOST_EXPORTS) \
b813574b 13660 for flag in $(EXTRA_HOST_FLAGS) ; do \
a2592b1b
DD
13661 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13662 done; \
b813574b
PB
13663 echo "Doing distclean in m4" ; \
13664 (cd m4 && \
a2592b1b
DD
13665 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13666 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13667 "RANLIB=$${RANLIB}" \
13668 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 13669 distclean) \
a2592b1b
DD
13670 || exit 1
13671
b813574b 13672@endif m4
a2592b1b 13673
b813574b
PB
13674.PHONY: maybe-maintainer-clean-m4 maintainer-clean-m4
13675maybe-maintainer-clean-m4:
13676@if m4
13677maybe-maintainer-clean-m4: maintainer-clean-m4
2a4cbe27 13678
b813574b
PB
13679maintainer-clean-m4:
13680 @[ -f ./m4/Makefile ] || exit 0; \
4fa63067 13681 r=`${PWD_COMMAND}`; export r; \
b40e3958 13682 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fa63067 13683 $(SET_LIB_PATH) \
378fce5b 13684 $(HOST_EXPORTS) \
b813574b 13685 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
13686 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13687 done; \
b813574b
PB
13688 echo "Doing maintainer-clean in m4" ; \
13689 (cd m4 && \
4fa63067
NN
13690 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13691 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13692 "RANLIB=$${RANLIB}" \
13693 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 13694 maintainer-clean) \
4fa63067 13695 || exit 1
252b5132 13696
b813574b 13697@endif m4
252b5132 13698
252b5132 13699
b813574b
PB
13700.PHONY: configure-make maybe-configure-make
13701maybe-configure-make:
13702@if make
13703maybe-configure-make: configure-make
13704configure-make:
13705 @test ! -f make/Makefile || exit 0; \
13706 [ -d make ] || mkdir make; \
13707 r=`${PWD_COMMAND}`; export r; \
13708 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13709 $(HOST_EXPORTS) \
13710 echo Configuring in make; \
13711 cd make || exit 1; \
4fa63067
NN
13712 case $(srcdir) in \
13713 \.) \
13714 srcdiroption="--srcdir=."; \
13715 libsrcdir=".";; \
13716 /* | [A-Za-z]:[\\/]*) \
b813574b
PB
13717 srcdiroption="--srcdir=$(srcdir)/make"; \
13718 libsrcdir="$$s/make";; \
4fa63067 13719 *) \
b813574b
PB
13720 srcdiroption="--srcdir=../$(srcdir)/make"; \
13721 libsrcdir="$$s/make";; \
4fa63067
NN
13722 esac; \
13723 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 13724 $(HOST_CONFIGARGS) $${srcdiroption} \
4fa63067 13725 || exit 1
b813574b 13726@endif make
252b5132 13727
b813574b
PB
13728.PHONY: all-make maybe-all-make
13729maybe-all-make:
13730@if make
13731maybe-all-make: all-make
13732all-make: configure-make
4fa63067
NN
13733 @r=`${PWD_COMMAND}`; export r; \
13734 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13735 $(SET_LIB_PATH) \
378fce5b 13736 $(HOST_EXPORTS) \
b813574b
PB
13737 (cd make && $(MAKE) $(FLAGS_TO_PASS) all)
13738@endif make
252b5132 13739
b813574b
PB
13740.PHONY: check-make maybe-check-make
13741maybe-check-make:
13742@if make
13743maybe-check-make: check-make
252b5132 13744
b813574b
PB
13745check-make:
13746 @r=`${PWD_COMMAND}`; export r; \
13747 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13748 $(SET_LIB_PATH) \
13749 $(HOST_EXPORTS) \
72b2455a 13750 (cd make && $(MAKE) $(FLAGS_TO_PASS) check)
dd12c3a8 13751
b813574b 13752@endif make
16ae0395 13753
b813574b
PB
13754.PHONY: install-make maybe-install-make
13755maybe-install-make:
13756@if make
13757maybe-install-make: install-make
4fa63067 13758
b813574b 13759install-make: installdirs
4fa63067
NN
13760 @r=`${PWD_COMMAND}`; export r; \
13761 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13762 $(SET_LIB_PATH) \
378fce5b 13763 $(HOST_EXPORTS) \
72b2455a 13764 (cd make && $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 13765
b813574b 13766@endif make
4fa63067
NN
13767
13768# Other targets (info, dvi, etc.)
13769
b813574b
PB
13770.PHONY: maybe-info-make info-make
13771maybe-info-make:
13772@if make
13773maybe-info-make: info-make
4fa63067 13774
b813574b
PB
13775info-make: \
13776 configure-make
13777 @[ -f ./make/Makefile ] || exit 0; \
4fa63067
NN
13778 r=`${PWD_COMMAND}`; export r; \
13779 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13780 $(SET_LIB_PATH) \
378fce5b 13781 $(HOST_EXPORTS) \
b813574b 13782 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
13783 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13784 done; \
b813574b
PB
13785 echo "Doing info in make" ; \
13786 (cd make && \
4fa63067
NN
13787 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13788 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13789 "RANLIB=$${RANLIB}" \
13790 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 13791 info) \
4fa63067
NN
13792 || exit 1
13793
b813574b 13794@endif make
4fa63067 13795
b813574b
PB
13796.PHONY: maybe-dvi-make dvi-make
13797maybe-dvi-make:
13798@if make
13799maybe-dvi-make: dvi-make
4fa63067 13800
b813574b
PB
13801dvi-make: \
13802 configure-make
13803 @[ -f ./make/Makefile ] || exit 0; \
4fa63067
NN
13804 r=`${PWD_COMMAND}`; export r; \
13805 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13806 $(SET_LIB_PATH) \
378fce5b 13807 $(HOST_EXPORTS) \
b813574b 13808 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
13809 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13810 done; \
b813574b
PB
13811 echo "Doing dvi in make" ; \
13812 (cd make && \
4fa63067
NN
13813 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13814 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13815 "RANLIB=$${RANLIB}" \
13816 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 13817 dvi) \
4fa63067 13818 || exit 1
16ae0395 13819
b813574b 13820@endif make
252b5132 13821
b813574b
PB
13822.PHONY: maybe-TAGS-make TAGS-make
13823maybe-TAGS-make:
13824@if make
13825maybe-TAGS-make: TAGS-make
252b5132 13826
b813574b
PB
13827TAGS-make: \
13828 configure-make
13829 @[ -f ./make/Makefile ] || exit 0; \
4fa63067
NN
13830 r=`${PWD_COMMAND}`; export r; \
13831 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13832 $(SET_LIB_PATH) \
378fce5b 13833 $(HOST_EXPORTS) \
b813574b 13834 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
13835 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13836 done; \
b813574b
PB
13837 echo "Doing TAGS in make" ; \
13838 (cd make && \
4fa63067
NN
13839 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13840 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13841 "RANLIB=$${RANLIB}" \
13842 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 13843 TAGS) \
4fa63067 13844 || exit 1
3866be5d 13845
b813574b 13846@endif make
3866be5d 13847
b813574b
PB
13848.PHONY: maybe-install-info-make install-info-make
13849maybe-install-info-make:
13850@if make
13851maybe-install-info-make: install-info-make
3866be5d 13852
b813574b
PB
13853install-info-make: \
13854 configure-make \
13855 info-make
13856 @[ -f ./make/Makefile ] || exit 0; \
4fa63067
NN
13857 r=`${PWD_COMMAND}`; export r; \
13858 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13859 $(SET_LIB_PATH) \
378fce5b 13860 $(HOST_EXPORTS) \
b813574b 13861 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
13862 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13863 done; \
b813574b
PB
13864 echo "Doing install-info in make" ; \
13865 (cd make && \
4fa63067
NN
13866 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13867 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13868 "RANLIB=$${RANLIB}" \
13869 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 13870 install-info) \
4fa63067 13871 || exit 1
3866be5d 13872
b813574b 13873@endif make
3866be5d 13874
b813574b
PB
13875.PHONY: maybe-installcheck-make installcheck-make
13876maybe-installcheck-make:
13877@if make
13878maybe-installcheck-make: installcheck-make
15723a45 13879
b813574b
PB
13880installcheck-make: \
13881 configure-make
13882 @[ -f ./make/Makefile ] || exit 0; \
4fa63067
NN
13883 r=`${PWD_COMMAND}`; export r; \
13884 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13885 $(SET_LIB_PATH) \
378fce5b 13886 $(HOST_EXPORTS) \
b813574b 13887 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
13888 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13889 done; \
b813574b
PB
13890 echo "Doing installcheck in make" ; \
13891 (cd make && \
4fa63067
NN
13892 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13893 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13894 "RANLIB=$${RANLIB}" \
13895 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 13896 installcheck) \
4fa63067 13897 || exit 1
15723a45 13898
b813574b 13899@endif make
15723a45 13900
b813574b
PB
13901.PHONY: maybe-mostlyclean-make mostlyclean-make
13902maybe-mostlyclean-make:
13903@if make
13904maybe-mostlyclean-make: mostlyclean-make
15723a45 13905
b813574b
PB
13906mostlyclean-make:
13907 @[ -f ./make/Makefile ] || exit 0; \
b40e3958
L
13908 r=`${PWD_COMMAND}`; export r; \
13909 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fa63067 13910 $(SET_LIB_PATH) \
378fce5b 13911 $(HOST_EXPORTS) \
b813574b 13912 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
13913 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13914 done; \
b813574b
PB
13915 echo "Doing mostlyclean in make" ; \
13916 (cd make && \
4fa63067
NN
13917 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13918 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13919 "RANLIB=$${RANLIB}" \
13920 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 13921 mostlyclean) \
bba45b8b 13922 || exit 1
15723a45 13923
b813574b 13924@endif make
4fa63067 13925
b813574b
PB
13926.PHONY: maybe-clean-make clean-make
13927maybe-clean-make:
13928@if make
13929maybe-clean-make: clean-make
4fa63067 13930
b813574b
PB
13931clean-make:
13932 @[ -f ./make/Makefile ] || exit 0; \
4fa63067
NN
13933 r=`${PWD_COMMAND}`; export r; \
13934 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13935 $(SET_LIB_PATH) \
378fce5b 13936 $(HOST_EXPORTS) \
b813574b 13937 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
13938 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13939 done; \
b813574b
PB
13940 echo "Doing clean in make" ; \
13941 (cd make && \
4fa63067
NN
13942 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13943 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13944 "RANLIB=$${RANLIB}" \
13945 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 13946 clean) \
4fa63067
NN
13947 || exit 1
13948
b813574b 13949@endif make
4fa63067 13950
b813574b
PB
13951.PHONY: maybe-distclean-make distclean-make
13952maybe-distclean-make:
13953@if make
13954maybe-distclean-make: distclean-make
4fa63067 13955
b813574b
PB
13956distclean-make:
13957 @[ -f ./make/Makefile ] || exit 0; \
4fa63067
NN
13958 r=`${PWD_COMMAND}`; export r; \
13959 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13960 $(SET_LIB_PATH) \
378fce5b 13961 $(HOST_EXPORTS) \
b813574b 13962 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
13963 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13964 done; \
b813574b
PB
13965 echo "Doing distclean in make" ; \
13966 (cd make && \
4fa63067
NN
13967 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13968 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13969 "RANLIB=$${RANLIB}" \
13970 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 13971 distclean) \
4fa63067
NN
13972 || exit 1
13973
b813574b 13974@endif make
4fa63067 13975
b813574b
PB
13976.PHONY: maybe-maintainer-clean-make maintainer-clean-make
13977maybe-maintainer-clean-make:
13978@if make
13979maybe-maintainer-clean-make: maintainer-clean-make
4fa63067 13980
b813574b
PB
13981maintainer-clean-make:
13982 @[ -f ./make/Makefile ] || exit 0; \
4fa63067 13983 r=`${PWD_COMMAND}`; export r; \
b40e3958 13984 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fa63067 13985 $(SET_LIB_PATH) \
378fce5b 13986 $(HOST_EXPORTS) \
b813574b 13987 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
13988 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13989 done; \
b813574b
PB
13990 echo "Doing maintainer-clean in make" ; \
13991 (cd make && \
4fa63067
NN
13992 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13993 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13994 "RANLIB=$${RANLIB}" \
13995 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 13996 maintainer-clean) \
4fa63067 13997 || exit 1
3866be5d 13998
b813574b 13999@endif make
3866be5d 14000
3866be5d 14001
b813574b
PB
14002.PHONY: configure-mmalloc maybe-configure-mmalloc
14003maybe-configure-mmalloc:
14004@if mmalloc
14005maybe-configure-mmalloc: configure-mmalloc
14006configure-mmalloc:
14007 @test ! -f mmalloc/Makefile || exit 0; \
14008 [ -d mmalloc ] || mkdir mmalloc; \
b40e3958
L
14009 r=`${PWD_COMMAND}`; export r; \
14010 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14011 $(HOST_EXPORTS) \
b813574b
PB
14012 echo Configuring in mmalloc; \
14013 cd mmalloc || exit 1; \
e2b9e2dc
NN
14014 case $(srcdir) in \
14015 \.) \
14016 srcdiroption="--srcdir=."; \
14017 libsrcdir=".";; \
14018 /* | [A-Za-z]:[\\/]*) \
b813574b
PB
14019 srcdiroption="--srcdir=$(srcdir)/mmalloc"; \
14020 libsrcdir="$$s/mmalloc";; \
e2b9e2dc 14021 *) \
b813574b
PB
14022 srcdiroption="--srcdir=../$(srcdir)/mmalloc"; \
14023 libsrcdir="$$s/mmalloc";; \
e2b9e2dc
NN
14024 esac; \
14025 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 14026 $(HOST_CONFIGARGS) $${srcdiroption} \
e2b9e2dc 14027 || exit 1
b813574b 14028@endif mmalloc
e2b9e2dc 14029
b813574b
PB
14030.PHONY: all-mmalloc maybe-all-mmalloc
14031maybe-all-mmalloc:
14032@if mmalloc
14033maybe-all-mmalloc: all-mmalloc
14034all-mmalloc: configure-mmalloc
b40e3958
L
14035 @r=`${PWD_COMMAND}`; export r; \
14036 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 14037 $(SET_LIB_PATH) \
378fce5b 14038 $(HOST_EXPORTS) \
b813574b
PB
14039 (cd mmalloc && $(MAKE) $(FLAGS_TO_PASS) all)
14040@endif mmalloc
3866be5d 14041
b813574b
PB
14042.PHONY: check-mmalloc maybe-check-mmalloc
14043maybe-check-mmalloc:
14044@if mmalloc
14045maybe-check-mmalloc: check-mmalloc
3866be5d 14046
b813574b 14047check-mmalloc:
3866be5d 14048
b813574b 14049@endif mmalloc
3866be5d 14050
b813574b
PB
14051.PHONY: install-mmalloc maybe-install-mmalloc
14052maybe-install-mmalloc:
14053@if mmalloc
14054maybe-install-mmalloc: install-mmalloc
4fa63067 14055
b813574b 14056install-mmalloc: installdirs
4fa63067
NN
14057 @r=`${PWD_COMMAND}`; export r; \
14058 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14059 $(SET_LIB_PATH) \
378fce5b 14060 $(HOST_EXPORTS) \
72b2455a 14061 (cd mmalloc && $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 14062
b813574b 14063@endif mmalloc
4fa63067
NN
14064
14065# Other targets (info, dvi, etc.)
14066
b813574b
PB
14067.PHONY: maybe-info-mmalloc info-mmalloc
14068maybe-info-mmalloc:
14069@if mmalloc
14070maybe-info-mmalloc: info-mmalloc
4fa63067 14071
b813574b
PB
14072info-mmalloc: \
14073 configure-mmalloc
14074 @[ -f ./mmalloc/Makefile ] || exit 0; \
4fa63067
NN
14075 r=`${PWD_COMMAND}`; export r; \
14076 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14077 $(SET_LIB_PATH) \
378fce5b 14078 $(HOST_EXPORTS) \
b813574b 14079 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
14080 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14081 done; \
b813574b
PB
14082 echo "Doing info in mmalloc" ; \
14083 (cd mmalloc && \
4fa63067
NN
14084 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14085 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14086 "RANLIB=$${RANLIB}" \
14087 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 14088 info) \
4fa63067
NN
14089 || exit 1
14090
b813574b 14091@endif mmalloc
4fa63067 14092
b813574b
PB
14093.PHONY: maybe-dvi-mmalloc dvi-mmalloc
14094maybe-dvi-mmalloc:
14095@if mmalloc
14096maybe-dvi-mmalloc: dvi-mmalloc
4fa63067 14097
b813574b
PB
14098dvi-mmalloc: \
14099 configure-mmalloc
14100 @[ -f ./mmalloc/Makefile ] || exit 0; \
4fa63067
NN
14101 r=`${PWD_COMMAND}`; export r; \
14102 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14103 $(SET_LIB_PATH) \
378fce5b 14104 $(HOST_EXPORTS) \
b813574b 14105 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
14106 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14107 done; \
b813574b
PB
14108 echo "Doing dvi in mmalloc" ; \
14109 (cd mmalloc && \
4fa63067
NN
14110 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14111 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14112 "RANLIB=$${RANLIB}" \
14113 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 14114 dvi) \
4fa63067
NN
14115 || exit 1
14116
b813574b 14117@endif mmalloc
4fa63067 14118
b813574b
PB
14119.PHONY: maybe-TAGS-mmalloc TAGS-mmalloc
14120maybe-TAGS-mmalloc:
14121@if mmalloc
14122maybe-TAGS-mmalloc: TAGS-mmalloc
4fa63067 14123
b813574b
PB
14124TAGS-mmalloc: \
14125 configure-mmalloc
14126 @[ -f ./mmalloc/Makefile ] || exit 0; \
4fa63067
NN
14127 r=`${PWD_COMMAND}`; export r; \
14128 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14129 $(SET_LIB_PATH) \
378fce5b 14130 $(HOST_EXPORTS) \
b813574b 14131 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
14132 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14133 done; \
b813574b
PB
14134 echo "Doing TAGS in mmalloc" ; \
14135 (cd mmalloc && \
4fa63067
NN
14136 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14137 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14138 "RANLIB=$${RANLIB}" \
14139 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 14140 TAGS) \
4fa63067
NN
14141 || exit 1
14142
b813574b 14143@endif mmalloc
4fa63067 14144
b813574b
PB
14145.PHONY: maybe-install-info-mmalloc install-info-mmalloc
14146maybe-install-info-mmalloc:
14147@if mmalloc
14148maybe-install-info-mmalloc: install-info-mmalloc
4fa63067 14149
b813574b
PB
14150install-info-mmalloc: \
14151 configure-mmalloc \
14152 info-mmalloc
14153 @[ -f ./mmalloc/Makefile ] || exit 0; \
4fa63067
NN
14154 r=`${PWD_COMMAND}`; export r; \
14155 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14156 $(SET_LIB_PATH) \
378fce5b 14157 $(HOST_EXPORTS) \
b813574b 14158 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
14159 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14160 done; \
b813574b
PB
14161 echo "Doing install-info in mmalloc" ; \
14162 (cd mmalloc && \
4fa63067
NN
14163 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14164 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14165 "RANLIB=$${RANLIB}" \
14166 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 14167 install-info) \
4fa63067
NN
14168 || exit 1
14169
b813574b 14170@endif mmalloc
4fa63067 14171
b813574b
PB
14172.PHONY: maybe-installcheck-mmalloc installcheck-mmalloc
14173maybe-installcheck-mmalloc:
14174@if mmalloc
14175maybe-installcheck-mmalloc: installcheck-mmalloc
4fa63067 14176
b813574b
PB
14177installcheck-mmalloc: \
14178 configure-mmalloc
14179 @[ -f ./mmalloc/Makefile ] || exit 0; \
4fa63067
NN
14180 r=`${PWD_COMMAND}`; export r; \
14181 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14182 $(SET_LIB_PATH) \
378fce5b 14183 $(HOST_EXPORTS) \
b813574b 14184 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
14185 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14186 done; \
b813574b
PB
14187 echo "Doing installcheck in mmalloc" ; \
14188 (cd mmalloc && \
4fa63067
NN
14189 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14190 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14191 "RANLIB=$${RANLIB}" \
14192 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 14193 installcheck) \
4fa63067
NN
14194 || exit 1
14195
b813574b 14196@endif mmalloc
4fa63067 14197
b813574b
PB
14198.PHONY: maybe-mostlyclean-mmalloc mostlyclean-mmalloc
14199maybe-mostlyclean-mmalloc:
14200@if mmalloc
14201maybe-mostlyclean-mmalloc: mostlyclean-mmalloc
4fa63067 14202
b813574b
PB
14203mostlyclean-mmalloc:
14204 @[ -f ./mmalloc/Makefile ] || exit 0; \
4fa63067
NN
14205 r=`${PWD_COMMAND}`; export r; \
14206 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14207 $(SET_LIB_PATH) \
378fce5b 14208 $(HOST_EXPORTS) \
b813574b 14209 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
14210 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14211 done; \
b813574b
PB
14212 echo "Doing mostlyclean in mmalloc" ; \
14213 (cd mmalloc && \
4fa63067
NN
14214 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14215 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14216 "RANLIB=$${RANLIB}" \
14217 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 14218 mostlyclean) \
4fa63067
NN
14219 || exit 1
14220
b813574b 14221@endif mmalloc
4fa63067 14222
b813574b
PB
14223.PHONY: maybe-clean-mmalloc clean-mmalloc
14224maybe-clean-mmalloc:
14225@if mmalloc
14226maybe-clean-mmalloc: clean-mmalloc
4fa63067 14227
b813574b
PB
14228clean-mmalloc:
14229 @[ -f ./mmalloc/Makefile ] || exit 0; \
4fa63067
NN
14230 r=`${PWD_COMMAND}`; export r; \
14231 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14232 $(SET_LIB_PATH) \
378fce5b 14233 $(HOST_EXPORTS) \
b813574b 14234 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
14235 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14236 done; \
b813574b
PB
14237 echo "Doing clean in mmalloc" ; \
14238 (cd mmalloc && \
4fa63067
NN
14239 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14240 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14241 "RANLIB=$${RANLIB}" \
14242 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 14243 clean) \
4fa63067
NN
14244 || exit 1
14245
b813574b 14246@endif mmalloc
4fa63067 14247
b813574b
PB
14248.PHONY: maybe-distclean-mmalloc distclean-mmalloc
14249maybe-distclean-mmalloc:
14250@if mmalloc
14251maybe-distclean-mmalloc: distclean-mmalloc
4fa63067 14252
b813574b
PB
14253distclean-mmalloc:
14254 @[ -f ./mmalloc/Makefile ] || exit 0; \
4fa63067
NN
14255 r=`${PWD_COMMAND}`; export r; \
14256 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14257 $(SET_LIB_PATH) \
378fce5b 14258 $(HOST_EXPORTS) \
b813574b 14259 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
14260 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14261 done; \
b813574b
PB
14262 echo "Doing distclean in mmalloc" ; \
14263 (cd mmalloc && \
4fa63067
NN
14264 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14265 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14266 "RANLIB=$${RANLIB}" \
14267 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 14268 distclean) \
4fa63067
NN
14269 || exit 1
14270
b813574b 14271@endif mmalloc
4fa63067 14272
b813574b
PB
14273.PHONY: maybe-maintainer-clean-mmalloc maintainer-clean-mmalloc
14274maybe-maintainer-clean-mmalloc:
14275@if mmalloc
14276maybe-maintainer-clean-mmalloc: maintainer-clean-mmalloc
4fa63067 14277
b813574b
PB
14278maintainer-clean-mmalloc:
14279 @[ -f ./mmalloc/Makefile ] || exit 0; \
4fa63067
NN
14280 r=`${PWD_COMMAND}`; export r; \
14281 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14282 $(SET_LIB_PATH) \
378fce5b 14283 $(HOST_EXPORTS) \
b813574b 14284 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
14285 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14286 done; \
b813574b
PB
14287 echo "Doing maintainer-clean in mmalloc" ; \
14288 (cd mmalloc && \
4fa63067
NN
14289 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14290 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14291 "RANLIB=$${RANLIB}" \
14292 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 14293 maintainer-clean) \
4fa63067 14294 || exit 1
16ae0395 14295
b813574b 14296@endif mmalloc
3866be5d
NN
14297
14298
b813574b
PB
14299.PHONY: configure-patch maybe-configure-patch
14300maybe-configure-patch:
14301@if patch
14302maybe-configure-patch: configure-patch
14303configure-patch:
14304 @test ! -f patch/Makefile || exit 0; \
14305 [ -d patch ] || mkdir patch; \
b40e3958
L
14306 r=`${PWD_COMMAND}`; export r; \
14307 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14308 $(HOST_EXPORTS) \
b813574b
PB
14309 echo Configuring in patch; \
14310 cd patch || exit 1; \
e2b9e2dc
NN
14311 case $(srcdir) in \
14312 \.) \
14313 srcdiroption="--srcdir=."; \
14314 libsrcdir=".";; \
14315 /* | [A-Za-z]:[\\/]*) \
b813574b
PB
14316 srcdiroption="--srcdir=$(srcdir)/patch"; \
14317 libsrcdir="$$s/patch";; \
e2b9e2dc 14318 *) \
b813574b
PB
14319 srcdiroption="--srcdir=../$(srcdir)/patch"; \
14320 libsrcdir="$$s/patch";; \
e2b9e2dc
NN
14321 esac; \
14322 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 14323 $(HOST_CONFIGARGS) $${srcdiroption} \
e2b9e2dc 14324 || exit 1
b813574b 14325@endif patch
e2b9e2dc 14326
b813574b
PB
14327.PHONY: all-patch maybe-all-patch
14328maybe-all-patch:
14329@if patch
14330maybe-all-patch: all-patch
14331all-patch: configure-patch
b40e3958
L
14332 @r=`${PWD_COMMAND}`; export r; \
14333 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 14334 $(SET_LIB_PATH) \
378fce5b 14335 $(HOST_EXPORTS) \
b813574b
PB
14336 (cd patch && $(MAKE) $(FLAGS_TO_PASS) all)
14337@endif patch
3866be5d 14338
b813574b
PB
14339.PHONY: check-patch maybe-check-patch
14340maybe-check-patch:
14341@if patch
14342maybe-check-patch: check-patch
3866be5d 14343
b813574b 14344check-patch:
b40e3958
L
14345 @r=`${PWD_COMMAND}`; export r; \
14346 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 14347 $(SET_LIB_PATH) \
378fce5b 14348 $(HOST_EXPORTS) \
72b2455a 14349 (cd patch && $(MAKE) $(FLAGS_TO_PASS) check)
3866be5d 14350
b813574b 14351@endif patch
3866be5d 14352
b813574b
PB
14353.PHONY: install-patch maybe-install-patch
14354maybe-install-patch:
14355@if patch
14356maybe-install-patch: install-patch
16ae0395 14357
b813574b 14358install-patch: installdirs
b40e3958
L
14359 @r=`${PWD_COMMAND}`; export r; \
14360 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 14361 $(SET_LIB_PATH) \
378fce5b 14362 $(HOST_EXPORTS) \
72b2455a 14363 (cd patch && $(MAKE) $(FLAGS_TO_PASS) install)
3866be5d 14364
b813574b 14365@endif patch
3866be5d 14366
4fa63067
NN
14367# Other targets (info, dvi, etc.)
14368
b813574b
PB
14369.PHONY: maybe-info-patch info-patch
14370maybe-info-patch:
14371@if patch
14372maybe-info-patch: info-patch
4fa63067 14373
b813574b
PB
14374info-patch: \
14375 configure-patch
14376 @[ -f ./patch/Makefile ] || exit 0; \
4fa63067
NN
14377 r=`${PWD_COMMAND}`; export r; \
14378 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14379 $(SET_LIB_PATH) \
378fce5b 14380 $(HOST_EXPORTS) \
b813574b 14381 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
14382 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14383 done; \
b813574b
PB
14384 echo "Doing info in patch" ; \
14385 (cd patch && \
4fa63067
NN
14386 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14387 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14388 "RANLIB=$${RANLIB}" \
14389 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 14390 info) \
4fa63067
NN
14391 || exit 1
14392
b813574b 14393@endif patch
4fa63067 14394
b813574b
PB
14395.PHONY: maybe-dvi-patch dvi-patch
14396maybe-dvi-patch:
14397@if patch
14398maybe-dvi-patch: dvi-patch
4fa63067 14399
b813574b
PB
14400dvi-patch: \
14401 configure-patch
14402 @[ -f ./patch/Makefile ] || exit 0; \
4fa63067
NN
14403 r=`${PWD_COMMAND}`; export r; \
14404 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14405 $(SET_LIB_PATH) \
378fce5b 14406 $(HOST_EXPORTS) \
b813574b 14407 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
14408 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14409 done; \
b813574b
PB
14410 echo "Doing dvi in patch" ; \
14411 (cd patch && \
4fa63067
NN
14412 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14413 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14414 "RANLIB=$${RANLIB}" \
14415 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 14416 dvi) \
4fa63067
NN
14417 || exit 1
14418
b813574b 14419@endif patch
4fa63067 14420
b813574b
PB
14421.PHONY: maybe-TAGS-patch TAGS-patch
14422maybe-TAGS-patch:
14423@if patch
14424maybe-TAGS-patch: TAGS-patch
4fa63067 14425
b813574b
PB
14426TAGS-patch: \
14427 configure-patch
14428 @[ -f ./patch/Makefile ] || exit 0; \
4fa63067
NN
14429 r=`${PWD_COMMAND}`; export r; \
14430 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14431 $(SET_LIB_PATH) \
378fce5b 14432 $(HOST_EXPORTS) \
b813574b 14433 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
14434 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14435 done; \
b813574b
PB
14436 echo "Doing TAGS in patch" ; \
14437 (cd patch && \
4fa63067
NN
14438 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14439 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14440 "RANLIB=$${RANLIB}" \
14441 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 14442 TAGS) \
4fa63067
NN
14443 || exit 1
14444
b813574b 14445@endif patch
4fa63067 14446
b813574b
PB
14447.PHONY: maybe-install-info-patch install-info-patch
14448maybe-install-info-patch:
14449@if patch
14450maybe-install-info-patch: install-info-patch
4fa63067 14451
b813574b
PB
14452install-info-patch: \
14453 configure-patch \
14454 info-patch
14455 @[ -f ./patch/Makefile ] || exit 0; \
4fa63067
NN
14456 r=`${PWD_COMMAND}`; export r; \
14457 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14458 $(SET_LIB_PATH) \
378fce5b 14459 $(HOST_EXPORTS) \
b813574b 14460 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
14461 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14462 done; \
b813574b
PB
14463 echo "Doing install-info in patch" ; \
14464 (cd patch && \
4fa63067
NN
14465 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14466 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14467 "RANLIB=$${RANLIB}" \
14468 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 14469 install-info) \
4fa63067
NN
14470 || exit 1
14471
b813574b 14472@endif patch
4fa63067 14473
b813574b
PB
14474.PHONY: maybe-installcheck-patch installcheck-patch
14475maybe-installcheck-patch:
14476@if patch
14477maybe-installcheck-patch: installcheck-patch
4fa63067 14478
b813574b
PB
14479installcheck-patch: \
14480 configure-patch
14481 @[ -f ./patch/Makefile ] || exit 0; \
4fa63067
NN
14482 r=`${PWD_COMMAND}`; export r; \
14483 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14484 $(SET_LIB_PATH) \
378fce5b 14485 $(HOST_EXPORTS) \
b813574b 14486 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
14487 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14488 done; \
b813574b
PB
14489 echo "Doing installcheck in patch" ; \
14490 (cd patch && \
4fa63067
NN
14491 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14492 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14493 "RANLIB=$${RANLIB}" \
14494 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 14495 installcheck) \
4fa63067
NN
14496 || exit 1
14497
b813574b 14498@endif patch
4fa63067 14499
b813574b
PB
14500.PHONY: maybe-mostlyclean-patch mostlyclean-patch
14501maybe-mostlyclean-patch:
14502@if patch
14503maybe-mostlyclean-patch: mostlyclean-patch
4fa63067 14504
b813574b
PB
14505mostlyclean-patch:
14506 @[ -f ./patch/Makefile ] || exit 0; \
4fa63067
NN
14507 r=`${PWD_COMMAND}`; export r; \
14508 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14509 $(SET_LIB_PATH) \
378fce5b 14510 $(HOST_EXPORTS) \
b813574b 14511 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
14512 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14513 done; \
b813574b
PB
14514 echo "Doing mostlyclean in patch" ; \
14515 (cd patch && \
4fa63067
NN
14516 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14517 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14518 "RANLIB=$${RANLIB}" \
14519 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 14520 mostlyclean) \
4fa63067
NN
14521 || exit 1
14522
b813574b 14523@endif patch
4fa63067 14524
b813574b
PB
14525.PHONY: maybe-clean-patch clean-patch
14526maybe-clean-patch:
14527@if patch
14528maybe-clean-patch: clean-patch
4fa63067 14529
b813574b
PB
14530clean-patch:
14531 @[ -f ./patch/Makefile ] || exit 0; \
4fa63067
NN
14532 r=`${PWD_COMMAND}`; export r; \
14533 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14534 $(SET_LIB_PATH) \
378fce5b 14535 $(HOST_EXPORTS) \
b813574b 14536 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
14537 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14538 done; \
b813574b
PB
14539 echo "Doing clean in patch" ; \
14540 (cd patch && \
4fa63067
NN
14541 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14542 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14543 "RANLIB=$${RANLIB}" \
14544 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 14545 clean) \
4fa63067
NN
14546 || exit 1
14547
b813574b 14548@endif patch
4fa63067 14549
b813574b
PB
14550.PHONY: maybe-distclean-patch distclean-patch
14551maybe-distclean-patch:
14552@if patch
14553maybe-distclean-patch: distclean-patch
4fa63067 14554
b813574b
PB
14555distclean-patch:
14556 @[ -f ./patch/Makefile ] || exit 0; \
4fa63067
NN
14557 r=`${PWD_COMMAND}`; export r; \
14558 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14559 $(SET_LIB_PATH) \
378fce5b 14560 $(HOST_EXPORTS) \
b813574b 14561 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
14562 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14563 done; \
b813574b
PB
14564 echo "Doing distclean in patch" ; \
14565 (cd patch && \
4fa63067
NN
14566 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14567 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14568 "RANLIB=$${RANLIB}" \
14569 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 14570 distclean) \
4fa63067
NN
14571 || exit 1
14572
b813574b 14573@endif patch
4fa63067 14574
b813574b
PB
14575.PHONY: maybe-maintainer-clean-patch maintainer-clean-patch
14576maybe-maintainer-clean-patch:
14577@if patch
14578maybe-maintainer-clean-patch: maintainer-clean-patch
4fa63067 14579
b813574b
PB
14580maintainer-clean-patch:
14581 @[ -f ./patch/Makefile ] || exit 0; \
4fa63067
NN
14582 r=`${PWD_COMMAND}`; export r; \
14583 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14584 $(SET_LIB_PATH) \
378fce5b 14585 $(HOST_EXPORTS) \
b813574b 14586 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
14587 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14588 done; \
b813574b
PB
14589 echo "Doing maintainer-clean in patch" ; \
14590 (cd patch && \
4fa63067
NN
14591 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14592 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14593 "RANLIB=$${RANLIB}" \
14594 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 14595 maintainer-clean) \
4fa63067
NN
14596 || exit 1
14597
b813574b 14598@endif patch
4fa63067
NN
14599
14600
b813574b
PB
14601.PHONY: configure-perl maybe-configure-perl
14602maybe-configure-perl:
14603@if perl
14604maybe-configure-perl: configure-perl
14605configure-perl:
14606 @test ! -f perl/Makefile || exit 0; \
14607 [ -d perl ] || mkdir perl; \
b40e3958
L
14608 r=`${PWD_COMMAND}`; export r; \
14609 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14610 $(HOST_EXPORTS) \
b813574b
PB
14611 echo Configuring in perl; \
14612 cd perl || exit 1; \
e2b9e2dc
NN
14613 case $(srcdir) in \
14614 \.) \
14615 srcdiroption="--srcdir=."; \
14616 libsrcdir=".";; \
14617 /* | [A-Za-z]:[\\/]*) \
b813574b
PB
14618 srcdiroption="--srcdir=$(srcdir)/perl"; \
14619 libsrcdir="$$s/perl";; \
e2b9e2dc 14620 *) \
b813574b
PB
14621 srcdiroption="--srcdir=../$(srcdir)/perl"; \
14622 libsrcdir="$$s/perl";; \
e2b9e2dc
NN
14623 esac; \
14624 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 14625 $(HOST_CONFIGARGS) $${srcdiroption} \
e2b9e2dc 14626 || exit 1
b813574b 14627@endif perl
e2b9e2dc 14628
b813574b
PB
14629.PHONY: all-perl maybe-all-perl
14630maybe-all-perl:
14631@if perl
14632maybe-all-perl: all-perl
14633all-perl: configure-perl
b40e3958
L
14634 @r=`${PWD_COMMAND}`; export r; \
14635 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 14636 $(SET_LIB_PATH) \
378fce5b 14637 $(HOST_EXPORTS) \
b813574b
PB
14638 (cd perl && $(MAKE) $(FLAGS_TO_PASS) all)
14639@endif perl
3866be5d 14640
b813574b
PB
14641.PHONY: check-perl maybe-check-perl
14642maybe-check-perl:
14643@if perl
14644maybe-check-perl: check-perl
3866be5d 14645
b813574b 14646check-perl:
b40e3958
L
14647 @r=`${PWD_COMMAND}`; export r; \
14648 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 14649 $(SET_LIB_PATH) \
378fce5b 14650 $(HOST_EXPORTS) \
72b2455a 14651 (cd perl && $(MAKE) $(FLAGS_TO_PASS) check)
3866be5d 14652
b813574b 14653@endif perl
3866be5d 14654
b813574b
PB
14655.PHONY: install-perl maybe-install-perl
14656maybe-install-perl:
14657@if perl
14658maybe-install-perl: install-perl
16ae0395 14659
b813574b 14660install-perl: installdirs
b40e3958
L
14661 @r=`${PWD_COMMAND}`; export r; \
14662 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 14663 $(SET_LIB_PATH) \
378fce5b 14664 $(HOST_EXPORTS) \
72b2455a 14665 (cd perl && $(MAKE) $(FLAGS_TO_PASS) install)
3866be5d 14666
b813574b 14667@endif perl
3866be5d 14668
4fa63067
NN
14669# Other targets (info, dvi, etc.)
14670
b813574b
PB
14671.PHONY: maybe-info-perl info-perl
14672maybe-info-perl:
14673@if perl
14674maybe-info-perl: info-perl
4fa63067 14675
b813574b
PB
14676info-perl: \
14677 configure-perl
14678 @[ -f ./perl/Makefile ] || exit 0; \
b40e3958
L
14679 r=`${PWD_COMMAND}`; export r; \
14680 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fa63067 14681 $(SET_LIB_PATH) \
378fce5b 14682 $(HOST_EXPORTS) \
b813574b 14683 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
14684 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14685 done; \
b813574b
PB
14686 echo "Doing info in perl" ; \
14687 (cd perl && \
4fa63067
NN
14688 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14689 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14690 "RANLIB=$${RANLIB}" \
14691 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 14692 info) \
e2b9e2dc
NN
14693 || exit 1
14694
b813574b 14695@endif perl
4fa63067 14696
b813574b
PB
14697.PHONY: maybe-dvi-perl dvi-perl
14698maybe-dvi-perl:
14699@if perl
14700maybe-dvi-perl: dvi-perl
4fa63067 14701
b813574b
PB
14702dvi-perl: \
14703 configure-perl
14704 @[ -f ./perl/Makefile ] || exit 0; \
4fa63067 14705 r=`${PWD_COMMAND}`; export r; \
b40e3958 14706 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 14707 $(SET_LIB_PATH) \
378fce5b 14708 $(HOST_EXPORTS) \
b813574b 14709 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
14710 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14711 done; \
b813574b
PB
14712 echo "Doing dvi in perl" ; \
14713 (cd perl && \
4fa63067
NN
14714 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14715 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14716 "RANLIB=$${RANLIB}" \
14717 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 14718 dvi) \
4fa63067 14719 || exit 1
3866be5d 14720
b813574b 14721@endif perl
3866be5d 14722
b813574b
PB
14723.PHONY: maybe-TAGS-perl TAGS-perl
14724maybe-TAGS-perl:
14725@if perl
14726maybe-TAGS-perl: TAGS-perl
4fa63067 14727
b813574b
PB
14728TAGS-perl: \
14729 configure-perl
14730 @[ -f ./perl/Makefile ] || exit 0; \
4fa63067 14731 r=`${PWD_COMMAND}`; export r; \
b40e3958 14732 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 14733 $(SET_LIB_PATH) \
378fce5b 14734 $(HOST_EXPORTS) \
b813574b 14735 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
14736 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14737 done; \
b813574b
PB
14738 echo "Doing TAGS in perl" ; \
14739 (cd perl && \
4fa63067
NN
14740 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14741 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14742 "RANLIB=$${RANLIB}" \
14743 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 14744 TAGS) \
4fa63067 14745 || exit 1
3866be5d 14746
b813574b 14747@endif perl
3866be5d 14748
b813574b
PB
14749.PHONY: maybe-install-info-perl install-info-perl
14750maybe-install-info-perl:
14751@if perl
14752maybe-install-info-perl: install-info-perl
16ae0395 14753
b813574b
PB
14754install-info-perl: \
14755 configure-perl \
14756 info-perl
14757 @[ -f ./perl/Makefile ] || exit 0; \
4fa63067
NN
14758 r=`${PWD_COMMAND}`; export r; \
14759 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14760 $(SET_LIB_PATH) \
378fce5b 14761 $(HOST_EXPORTS) \
b813574b 14762 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
14763 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14764 done; \
b813574b
PB
14765 echo "Doing install-info in perl" ; \
14766 (cd perl && \
4fa63067
NN
14767 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14768 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14769 "RANLIB=$${RANLIB}" \
14770 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 14771 install-info) \
4fa63067
NN
14772 || exit 1
14773
b813574b 14774@endif perl
4fa63067 14775
b813574b
PB
14776.PHONY: maybe-installcheck-perl installcheck-perl
14777maybe-installcheck-perl:
14778@if perl
14779maybe-installcheck-perl: installcheck-perl
4fa63067 14780
b813574b
PB
14781installcheck-perl: \
14782 configure-perl
14783 @[ -f ./perl/Makefile ] || exit 0; \
4fa63067
NN
14784 r=`${PWD_COMMAND}`; export r; \
14785 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14786 $(SET_LIB_PATH) \
378fce5b 14787 $(HOST_EXPORTS) \
b813574b 14788 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
14789 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14790 done; \
b813574b
PB
14791 echo "Doing installcheck in perl" ; \
14792 (cd perl && \
4fa63067
NN
14793 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14794 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14795 "RANLIB=$${RANLIB}" \
14796 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 14797 installcheck) \
4fa63067
NN
14798 || exit 1
14799
b813574b 14800@endif perl
4fa63067 14801
b813574b
PB
14802.PHONY: maybe-mostlyclean-perl mostlyclean-perl
14803maybe-mostlyclean-perl:
14804@if perl
14805maybe-mostlyclean-perl: mostlyclean-perl
4fa63067 14806
b813574b
PB
14807mostlyclean-perl:
14808 @[ -f ./perl/Makefile ] || exit 0; \
4fa63067
NN
14809 r=`${PWD_COMMAND}`; export r; \
14810 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14811 $(SET_LIB_PATH) \
378fce5b 14812 $(HOST_EXPORTS) \
b813574b 14813 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
14814 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14815 done; \
b813574b
PB
14816 echo "Doing mostlyclean in perl" ; \
14817 (cd perl && \
4fa63067
NN
14818 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14819 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14820 "RANLIB=$${RANLIB}" \
14821 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 14822 mostlyclean) \
4fa63067
NN
14823 || exit 1
14824
b813574b 14825@endif perl
4fa63067 14826
b813574b
PB
14827.PHONY: maybe-clean-perl clean-perl
14828maybe-clean-perl:
14829@if perl
14830maybe-clean-perl: clean-perl
4fa63067 14831
b813574b
PB
14832clean-perl:
14833 @[ -f ./perl/Makefile ] || exit 0; \
4fa63067
NN
14834 r=`${PWD_COMMAND}`; export r; \
14835 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14836 $(SET_LIB_PATH) \
378fce5b 14837 $(HOST_EXPORTS) \
b813574b 14838 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
14839 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14840 done; \
b813574b
PB
14841 echo "Doing clean in perl" ; \
14842 (cd perl && \
4fa63067
NN
14843 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14844 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14845 "RANLIB=$${RANLIB}" \
14846 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 14847 clean) \
4fa63067
NN
14848 || exit 1
14849
b813574b 14850@endif perl
4fa63067 14851
b813574b
PB
14852.PHONY: maybe-distclean-perl distclean-perl
14853maybe-distclean-perl:
14854@if perl
14855maybe-distclean-perl: distclean-perl
4fa63067 14856
b813574b
PB
14857distclean-perl:
14858 @[ -f ./perl/Makefile ] || exit 0; \
4fa63067
NN
14859 r=`${PWD_COMMAND}`; export r; \
14860 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14861 $(SET_LIB_PATH) \
378fce5b 14862 $(HOST_EXPORTS) \
b813574b 14863 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
14864 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14865 done; \
b813574b
PB
14866 echo "Doing distclean in perl" ; \
14867 (cd perl && \
4fa63067
NN
14868 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14869 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14870 "RANLIB=$${RANLIB}" \
14871 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 14872 distclean) \
4fa63067
NN
14873 || exit 1
14874
b813574b 14875@endif perl
4fa63067 14876
b813574b
PB
14877.PHONY: maybe-maintainer-clean-perl maintainer-clean-perl
14878maybe-maintainer-clean-perl:
14879@if perl
14880maybe-maintainer-clean-perl: maintainer-clean-perl
4fa63067 14881
b813574b
PB
14882maintainer-clean-perl:
14883 @[ -f ./perl/Makefile ] || exit 0; \
4fa63067 14884 r=`${PWD_COMMAND}`; export r; \
b40e3958 14885 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 14886 $(SET_LIB_PATH) \
378fce5b 14887 $(HOST_EXPORTS) \
b813574b 14888 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
14889 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14890 done; \
b813574b
PB
14891 echo "Doing maintainer-clean in perl" ; \
14892 (cd perl && \
4fa63067
NN
14893 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14894 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14895 "RANLIB=$${RANLIB}" \
14896 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 14897 maintainer-clean) \
4fa63067 14898 || exit 1
3866be5d 14899
b813574b 14900@endif perl
3866be5d 14901
4fa63067 14902
b813574b
PB
14903.PHONY: configure-prms maybe-configure-prms
14904maybe-configure-prms:
14905@if prms
14906maybe-configure-prms: configure-prms
14907configure-prms:
14908 @test ! -f prms/Makefile || exit 0; \
14909 [ -d prms ] || mkdir prms; \
b40e3958
L
14910 r=`${PWD_COMMAND}`; export r; \
14911 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14912 $(HOST_EXPORTS) \
b813574b
PB
14913 echo Configuring in prms; \
14914 cd prms || exit 1; \
e2b9e2dc
NN
14915 case $(srcdir) in \
14916 \.) \
14917 srcdiroption="--srcdir=."; \
14918 libsrcdir=".";; \
14919 /* | [A-Za-z]:[\\/]*) \
b813574b
PB
14920 srcdiroption="--srcdir=$(srcdir)/prms"; \
14921 libsrcdir="$$s/prms";; \
e2b9e2dc 14922 *) \
b813574b
PB
14923 srcdiroption="--srcdir=../$(srcdir)/prms"; \
14924 libsrcdir="$$s/prms";; \
e2b9e2dc
NN
14925 esac; \
14926 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 14927 $(HOST_CONFIGARGS) $${srcdiroption} \
e2b9e2dc 14928 || exit 1
b813574b 14929@endif prms
e2b9e2dc 14930
b813574b
PB
14931.PHONY: all-prms maybe-all-prms
14932maybe-all-prms:
14933@if prms
14934maybe-all-prms: all-prms
14935all-prms: configure-prms
b40e3958
L
14936 @r=`${PWD_COMMAND}`; export r; \
14937 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 14938 $(SET_LIB_PATH) \
378fce5b 14939 $(HOST_EXPORTS) \
b813574b
PB
14940 (cd prms && $(MAKE) $(FLAGS_TO_PASS) all)
14941@endif prms
3866be5d 14942
b813574b
PB
14943.PHONY: check-prms maybe-check-prms
14944maybe-check-prms:
14945@if prms
14946maybe-check-prms: check-prms
3866be5d 14947
b813574b 14948check-prms:
b40e3958
L
14949 @r=`${PWD_COMMAND}`; export r; \
14950 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 14951 $(SET_LIB_PATH) \
378fce5b 14952 $(HOST_EXPORTS) \
72b2455a 14953 (cd prms && $(MAKE) $(FLAGS_TO_PASS) check)
3866be5d 14954
b813574b 14955@endif prms
3866be5d 14956
b813574b
PB
14957.PHONY: install-prms maybe-install-prms
14958maybe-install-prms:
14959@if prms
14960maybe-install-prms: install-prms
4fa63067 14961
b813574b 14962install-prms: installdirs
4fa63067
NN
14963 @r=`${PWD_COMMAND}`; export r; \
14964 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14965 $(SET_LIB_PATH) \
378fce5b 14966 $(HOST_EXPORTS) \
72b2455a 14967 (cd prms && $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 14968
b813574b 14969@endif prms
4fa63067
NN
14970
14971# Other targets (info, dvi, etc.)
14972
b813574b
PB
14973.PHONY: maybe-info-prms info-prms
14974maybe-info-prms:
14975@if prms
14976maybe-info-prms: info-prms
4fa63067 14977
b813574b
PB
14978info-prms: \
14979 configure-prms
14980 @[ -f ./prms/Makefile ] || exit 0; \
4fa63067
NN
14981 r=`${PWD_COMMAND}`; export r; \
14982 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14983 $(SET_LIB_PATH) \
378fce5b 14984 $(HOST_EXPORTS) \
b813574b 14985 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
14986 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14987 done; \
b813574b
PB
14988 echo "Doing info in prms" ; \
14989 (cd prms && \
4fa63067
NN
14990 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14991 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14992 "RANLIB=$${RANLIB}" \
14993 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 14994 info) \
4fa63067
NN
14995 || exit 1
14996
b813574b 14997@endif prms
4fa63067 14998
b813574b
PB
14999.PHONY: maybe-dvi-prms dvi-prms
15000maybe-dvi-prms:
15001@if prms
15002maybe-dvi-prms: dvi-prms
4fa63067 15003
b813574b
PB
15004dvi-prms: \
15005 configure-prms
15006 @[ -f ./prms/Makefile ] || exit 0; \
4fa63067
NN
15007 r=`${PWD_COMMAND}`; export r; \
15008 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15009 $(SET_LIB_PATH) \
378fce5b 15010 $(HOST_EXPORTS) \
b813574b 15011 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
15012 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15013 done; \
b813574b
PB
15014 echo "Doing dvi in prms" ; \
15015 (cd prms && \
4fa63067
NN
15016 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15017 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15018 "RANLIB=$${RANLIB}" \
15019 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 15020 dvi) \
4fa63067
NN
15021 || exit 1
15022
b813574b 15023@endif prms
4fa63067 15024
b813574b
PB
15025.PHONY: maybe-TAGS-prms TAGS-prms
15026maybe-TAGS-prms:
15027@if prms
15028maybe-TAGS-prms: TAGS-prms
4fa63067 15029
b813574b
PB
15030TAGS-prms: \
15031 configure-prms
15032 @[ -f ./prms/Makefile ] || exit 0; \
4fa63067
NN
15033 r=`${PWD_COMMAND}`; export r; \
15034 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15035 $(SET_LIB_PATH) \
378fce5b 15036 $(HOST_EXPORTS) \
b813574b 15037 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
15038 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15039 done; \
b813574b
PB
15040 echo "Doing TAGS in prms" ; \
15041 (cd prms && \
4fa63067
NN
15042 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15043 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15044 "RANLIB=$${RANLIB}" \
15045 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 15046 TAGS) \
4fa63067
NN
15047 || exit 1
15048
b813574b 15049@endif prms
4fa63067 15050
b813574b
PB
15051.PHONY: maybe-install-info-prms install-info-prms
15052maybe-install-info-prms:
15053@if prms
15054maybe-install-info-prms: install-info-prms
4fa63067 15055
b813574b
PB
15056install-info-prms: \
15057 configure-prms \
15058 info-prms
15059 @[ -f ./prms/Makefile ] || exit 0; \
4fa63067
NN
15060 r=`${PWD_COMMAND}`; export r; \
15061 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15062 $(SET_LIB_PATH) \
378fce5b 15063 $(HOST_EXPORTS) \
b813574b 15064 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
15065 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15066 done; \
b813574b
PB
15067 echo "Doing install-info in prms" ; \
15068 (cd prms && \
4fa63067
NN
15069 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15070 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15071 "RANLIB=$${RANLIB}" \
15072 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 15073 install-info) \
4fa63067
NN
15074 || exit 1
15075
b813574b 15076@endif prms
4fa63067 15077
b813574b
PB
15078.PHONY: maybe-installcheck-prms installcheck-prms
15079maybe-installcheck-prms:
15080@if prms
15081maybe-installcheck-prms: installcheck-prms
4fa63067 15082
b813574b
PB
15083installcheck-prms: \
15084 configure-prms
15085 @[ -f ./prms/Makefile ] || exit 0; \
4fa63067
NN
15086 r=`${PWD_COMMAND}`; export r; \
15087 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15088 $(SET_LIB_PATH) \
378fce5b 15089 $(HOST_EXPORTS) \
b813574b 15090 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
15091 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15092 done; \
b813574b
PB
15093 echo "Doing installcheck in prms" ; \
15094 (cd prms && \
4fa63067
NN
15095 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15096 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15097 "RANLIB=$${RANLIB}" \
15098 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 15099 installcheck) \
4fa63067
NN
15100 || exit 1
15101
b813574b 15102@endif prms
4fa63067 15103
b813574b
PB
15104.PHONY: maybe-mostlyclean-prms mostlyclean-prms
15105maybe-mostlyclean-prms:
15106@if prms
15107maybe-mostlyclean-prms: mostlyclean-prms
4fa63067 15108
b813574b
PB
15109mostlyclean-prms:
15110 @[ -f ./prms/Makefile ] || exit 0; \
4fa63067
NN
15111 r=`${PWD_COMMAND}`; export r; \
15112 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15113 $(SET_LIB_PATH) \
378fce5b 15114 $(HOST_EXPORTS) \
b813574b 15115 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
15116 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15117 done; \
b813574b
PB
15118 echo "Doing mostlyclean in prms" ; \
15119 (cd prms && \
4fa63067
NN
15120 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15121 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15122 "RANLIB=$${RANLIB}" \
15123 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 15124 mostlyclean) \
4fa63067
NN
15125 || exit 1
15126
b813574b 15127@endif prms
4fa63067 15128
b813574b
PB
15129.PHONY: maybe-clean-prms clean-prms
15130maybe-clean-prms:
15131@if prms
15132maybe-clean-prms: clean-prms
4fa63067 15133
b813574b
PB
15134clean-prms:
15135 @[ -f ./prms/Makefile ] || exit 0; \
4fa63067
NN
15136 r=`${PWD_COMMAND}`; export r; \
15137 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15138 $(SET_LIB_PATH) \
378fce5b 15139 $(HOST_EXPORTS) \
b813574b 15140 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
15141 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15142 done; \
b813574b
PB
15143 echo "Doing clean in prms" ; \
15144 (cd prms && \
4fa63067
NN
15145 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15146 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15147 "RANLIB=$${RANLIB}" \
15148 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 15149 clean) \
4fa63067
NN
15150 || exit 1
15151
b813574b 15152@endif prms
4fa63067 15153
b813574b
PB
15154.PHONY: maybe-distclean-prms distclean-prms
15155maybe-distclean-prms:
15156@if prms
15157maybe-distclean-prms: distclean-prms
4fa63067 15158
b813574b
PB
15159distclean-prms:
15160 @[ -f ./prms/Makefile ] || exit 0; \
4fa63067
NN
15161 r=`${PWD_COMMAND}`; export r; \
15162 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15163 $(SET_LIB_PATH) \
378fce5b 15164 $(HOST_EXPORTS) \
b813574b 15165 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
15166 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15167 done; \
b813574b
PB
15168 echo "Doing distclean in prms" ; \
15169 (cd prms && \
4fa63067
NN
15170 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15171 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15172 "RANLIB=$${RANLIB}" \
15173 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 15174 distclean) \
4fa63067
NN
15175 || exit 1
15176
b813574b 15177@endif prms
4fa63067 15178
b813574b
PB
15179.PHONY: maybe-maintainer-clean-prms maintainer-clean-prms
15180maybe-maintainer-clean-prms:
15181@if prms
15182maybe-maintainer-clean-prms: maintainer-clean-prms
4fa63067 15183
b813574b
PB
15184maintainer-clean-prms:
15185 @[ -f ./prms/Makefile ] || exit 0; \
4fa63067
NN
15186 r=`${PWD_COMMAND}`; export r; \
15187 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15188 $(SET_LIB_PATH) \
378fce5b 15189 $(HOST_EXPORTS) \
b813574b 15190 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
15191 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15192 done; \
b813574b
PB
15193 echo "Doing maintainer-clean in prms" ; \
15194 (cd prms && \
4fa63067
NN
15195 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15196 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15197 "RANLIB=$${RANLIB}" \
15198 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 15199 maintainer-clean) \
4fa63067 15200 || exit 1
16ae0395 15201
b813574b 15202@endif prms
3866be5d
NN
15203
15204
b813574b
PB
15205.PHONY: configure-rcs maybe-configure-rcs
15206maybe-configure-rcs:
15207@if rcs
15208maybe-configure-rcs: configure-rcs
15209configure-rcs:
15210 @test ! -f rcs/Makefile || exit 0; \
15211 [ -d rcs ] || mkdir rcs; \
b40e3958
L
15212 r=`${PWD_COMMAND}`; export r; \
15213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15214 $(HOST_EXPORTS) \
b813574b
PB
15215 echo Configuring in rcs; \
15216 cd rcs || exit 1; \
e2b9e2dc
NN
15217 case $(srcdir) in \
15218 \.) \
15219 srcdiroption="--srcdir=."; \
15220 libsrcdir=".";; \
15221 /* | [A-Za-z]:[\\/]*) \
b813574b
PB
15222 srcdiroption="--srcdir=$(srcdir)/rcs"; \
15223 libsrcdir="$$s/rcs";; \
e2b9e2dc 15224 *) \
b813574b
PB
15225 srcdiroption="--srcdir=../$(srcdir)/rcs"; \
15226 libsrcdir="$$s/rcs";; \
e2b9e2dc
NN
15227 esac; \
15228 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 15229 $(HOST_CONFIGARGS) $${srcdiroption} \
e2b9e2dc 15230 || exit 1
b813574b 15231@endif rcs
e2b9e2dc 15232
b813574b
PB
15233.PHONY: all-rcs maybe-all-rcs
15234maybe-all-rcs:
15235@if rcs
15236maybe-all-rcs: all-rcs
15237all-rcs: configure-rcs
b40e3958
L
15238 @r=`${PWD_COMMAND}`; export r; \
15239 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 15240 $(SET_LIB_PATH) \
378fce5b 15241 $(HOST_EXPORTS) \
b813574b
PB
15242 (cd rcs && $(MAKE) $(FLAGS_TO_PASS) all)
15243@endif rcs
3866be5d 15244
b813574b
PB
15245.PHONY: check-rcs maybe-check-rcs
15246maybe-check-rcs:
15247@if rcs
15248maybe-check-rcs: check-rcs
3866be5d 15249
b813574b 15250check-rcs:
b40e3958
L
15251 @r=`${PWD_COMMAND}`; export r; \
15252 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 15253 $(SET_LIB_PATH) \
378fce5b 15254 $(HOST_EXPORTS) \
72b2455a 15255 (cd rcs && $(MAKE) $(FLAGS_TO_PASS) check)
3866be5d 15256
b813574b 15257@endif rcs
3866be5d 15258
b813574b
PB
15259.PHONY: install-rcs maybe-install-rcs
15260maybe-install-rcs:
15261@if rcs
15262maybe-install-rcs: install-rcs
16ae0395 15263
b813574b 15264install-rcs: installdirs
b40e3958
L
15265 @r=`${PWD_COMMAND}`; export r; \
15266 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 15267 $(SET_LIB_PATH) \
378fce5b 15268 $(HOST_EXPORTS) \
72b2455a 15269 (cd rcs && $(MAKE) $(FLAGS_TO_PASS) install)
3866be5d 15270
b813574b 15271@endif rcs
3866be5d 15272
4fa63067
NN
15273# Other targets (info, dvi, etc.)
15274
b813574b
PB
15275.PHONY: maybe-info-rcs info-rcs
15276maybe-info-rcs:
15277@if rcs
15278maybe-info-rcs: info-rcs
4fa63067 15279
b813574b
PB
15280info-rcs: \
15281 configure-rcs
15282 @[ -f ./rcs/Makefile ] || exit 0; \
4fa63067
NN
15283 r=`${PWD_COMMAND}`; export r; \
15284 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15285 $(SET_LIB_PATH) \
378fce5b 15286 $(HOST_EXPORTS) \
b813574b 15287 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
15288 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15289 done; \
b813574b
PB
15290 echo "Doing info in rcs" ; \
15291 (cd rcs && \
4fa63067
NN
15292 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15293 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15294 "RANLIB=$${RANLIB}" \
15295 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 15296 info) \
4fa63067
NN
15297 || exit 1
15298
b813574b 15299@endif rcs
4fa63067 15300
b813574b
PB
15301.PHONY: maybe-dvi-rcs dvi-rcs
15302maybe-dvi-rcs:
15303@if rcs
15304maybe-dvi-rcs: dvi-rcs
4fa63067 15305
b813574b
PB
15306dvi-rcs: \
15307 configure-rcs
15308 @[ -f ./rcs/Makefile ] || exit 0; \
4fa63067
NN
15309 r=`${PWD_COMMAND}`; export r; \
15310 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15311 $(SET_LIB_PATH) \
378fce5b 15312 $(HOST_EXPORTS) \
b813574b 15313 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
15314 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15315 done; \
b813574b
PB
15316 echo "Doing dvi in rcs" ; \
15317 (cd rcs && \
4fa63067
NN
15318 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15319 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15320 "RANLIB=$${RANLIB}" \
15321 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 15322 dvi) \
4fa63067
NN
15323 || exit 1
15324
b813574b 15325@endif rcs
4fa63067 15326
b813574b
PB
15327.PHONY: maybe-TAGS-rcs TAGS-rcs
15328maybe-TAGS-rcs:
15329@if rcs
15330maybe-TAGS-rcs: TAGS-rcs
4fa63067 15331
b813574b
PB
15332TAGS-rcs: \
15333 configure-rcs
15334 @[ -f ./rcs/Makefile ] || exit 0; \
4fa63067
NN
15335 r=`${PWD_COMMAND}`; export r; \
15336 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15337 $(SET_LIB_PATH) \
378fce5b 15338 $(HOST_EXPORTS) \
b813574b 15339 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
15340 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15341 done; \
b813574b
PB
15342 echo "Doing TAGS in rcs" ; \
15343 (cd rcs && \
4fa63067
NN
15344 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15345 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15346 "RANLIB=$${RANLIB}" \
15347 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 15348 TAGS) \
4fa63067
NN
15349 || exit 1
15350
b813574b 15351@endif rcs
4fa63067 15352
b813574b
PB
15353.PHONY: maybe-install-info-rcs install-info-rcs
15354maybe-install-info-rcs:
15355@if rcs
15356maybe-install-info-rcs: install-info-rcs
4fa63067 15357
b813574b
PB
15358install-info-rcs: \
15359 configure-rcs \
15360 info-rcs
15361 @[ -f ./rcs/Makefile ] || exit 0; \
4fa63067
NN
15362 r=`${PWD_COMMAND}`; export r; \
15363 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15364 $(SET_LIB_PATH) \
378fce5b 15365 $(HOST_EXPORTS) \
b813574b 15366 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
15367 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15368 done; \
b813574b
PB
15369 echo "Doing install-info in rcs" ; \
15370 (cd rcs && \
4fa63067
NN
15371 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15372 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15373 "RANLIB=$${RANLIB}" \
15374 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 15375 install-info) \
4fa63067
NN
15376 || exit 1
15377
b813574b 15378@endif rcs
4fa63067 15379
b813574b
PB
15380.PHONY: maybe-installcheck-rcs installcheck-rcs
15381maybe-installcheck-rcs:
15382@if rcs
15383maybe-installcheck-rcs: installcheck-rcs
4fa63067 15384
b813574b
PB
15385installcheck-rcs: \
15386 configure-rcs
15387 @[ -f ./rcs/Makefile ] || exit 0; \
4fa63067
NN
15388 r=`${PWD_COMMAND}`; export r; \
15389 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15390 $(SET_LIB_PATH) \
378fce5b 15391 $(HOST_EXPORTS) \
b813574b 15392 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
15393 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15394 done; \
b813574b
PB
15395 echo "Doing installcheck in rcs" ; \
15396 (cd rcs && \
4fa63067
NN
15397 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15398 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15399 "RANLIB=$${RANLIB}" \
15400 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 15401 installcheck) \
4fa63067
NN
15402 || exit 1
15403
b813574b 15404@endif rcs
4fa63067 15405
b813574b
PB
15406.PHONY: maybe-mostlyclean-rcs mostlyclean-rcs
15407maybe-mostlyclean-rcs:
15408@if rcs
15409maybe-mostlyclean-rcs: mostlyclean-rcs
4fa63067 15410
b813574b
PB
15411mostlyclean-rcs:
15412 @[ -f ./rcs/Makefile ] || exit 0; \
4fa63067
NN
15413 r=`${PWD_COMMAND}`; export r; \
15414 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15415 $(SET_LIB_PATH) \
378fce5b 15416 $(HOST_EXPORTS) \
b813574b 15417 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
15418 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15419 done; \
b813574b
PB
15420 echo "Doing mostlyclean in rcs" ; \
15421 (cd rcs && \
4fa63067
NN
15422 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15423 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15424 "RANLIB=$${RANLIB}" \
15425 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 15426 mostlyclean) \
4fa63067
NN
15427 || exit 1
15428
b813574b 15429@endif rcs
4fa63067 15430
b813574b
PB
15431.PHONY: maybe-clean-rcs clean-rcs
15432maybe-clean-rcs:
15433@if rcs
15434maybe-clean-rcs: clean-rcs
4fa63067 15435
b813574b
PB
15436clean-rcs:
15437 @[ -f ./rcs/Makefile ] || exit 0; \
4fa63067
NN
15438 r=`${PWD_COMMAND}`; export r; \
15439 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15440 $(SET_LIB_PATH) \
378fce5b 15441 $(HOST_EXPORTS) \
b813574b 15442 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
15443 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15444 done; \
b813574b
PB
15445 echo "Doing clean in rcs" ; \
15446 (cd rcs && \
4fa63067
NN
15447 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15448 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15449 "RANLIB=$${RANLIB}" \
15450 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 15451 clean) \
4fa63067
NN
15452 || exit 1
15453
b813574b 15454@endif rcs
4fa63067 15455
b813574b
PB
15456.PHONY: maybe-distclean-rcs distclean-rcs
15457maybe-distclean-rcs:
15458@if rcs
15459maybe-distclean-rcs: distclean-rcs
4fa63067 15460
b813574b
PB
15461distclean-rcs:
15462 @[ -f ./rcs/Makefile ] || exit 0; \
4fa63067
NN
15463 r=`${PWD_COMMAND}`; export r; \
15464 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15465 $(SET_LIB_PATH) \
378fce5b 15466 $(HOST_EXPORTS) \
b813574b 15467 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
15468 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15469 done; \
b813574b
PB
15470 echo "Doing distclean in rcs" ; \
15471 (cd rcs && \
4fa63067
NN
15472 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15473 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15474 "RANLIB=$${RANLIB}" \
15475 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 15476 distclean) \
4fa63067
NN
15477 || exit 1
15478
b813574b 15479@endif rcs
4fa63067 15480
b813574b
PB
15481.PHONY: maybe-maintainer-clean-rcs maintainer-clean-rcs
15482maybe-maintainer-clean-rcs:
15483@if rcs
15484maybe-maintainer-clean-rcs: maintainer-clean-rcs
4fa63067 15485
b813574b
PB
15486maintainer-clean-rcs:
15487 @[ -f ./rcs/Makefile ] || exit 0; \
4fa63067
NN
15488 r=`${PWD_COMMAND}`; export r; \
15489 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15490 $(SET_LIB_PATH) \
378fce5b 15491 $(HOST_EXPORTS) \
b813574b 15492 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
15493 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15494 done; \
b813574b
PB
15495 echo "Doing maintainer-clean in rcs" ; \
15496 (cd rcs && \
4fa63067
NN
15497 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15498 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15499 "RANLIB=$${RANLIB}" \
15500 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 15501 maintainer-clean) \
4fa63067
NN
15502 || exit 1
15503
b813574b 15504@endif rcs
4fa63067
NN
15505
15506
b813574b
PB
15507.PHONY: configure-readline maybe-configure-readline
15508maybe-configure-readline:
15509@if readline
15510maybe-configure-readline: configure-readline
15511configure-readline:
15512 @test ! -f readline/Makefile || exit 0; \
15513 [ -d readline ] || mkdir readline; \
b40e3958
L
15514 r=`${PWD_COMMAND}`; export r; \
15515 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15516 $(HOST_EXPORTS) \
b813574b
PB
15517 echo Configuring in readline; \
15518 cd readline || exit 1; \
e2b9e2dc
NN
15519 case $(srcdir) in \
15520 \.) \
15521 srcdiroption="--srcdir=."; \
15522 libsrcdir=".";; \
15523 /* | [A-Za-z]:[\\/]*) \
b813574b
PB
15524 srcdiroption="--srcdir=$(srcdir)/readline"; \
15525 libsrcdir="$$s/readline";; \
e2b9e2dc 15526 *) \
b813574b
PB
15527 srcdiroption="--srcdir=../$(srcdir)/readline"; \
15528 libsrcdir="$$s/readline";; \
e2b9e2dc
NN
15529 esac; \
15530 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 15531 $(HOST_CONFIGARGS) $${srcdiroption} \
e2b9e2dc 15532 || exit 1
b813574b 15533@endif readline
e2b9e2dc 15534
b813574b
PB
15535.PHONY: all-readline maybe-all-readline
15536maybe-all-readline:
15537@if readline
15538maybe-all-readline: all-readline
15539all-readline: configure-readline
b40e3958
L
15540 @r=`${PWD_COMMAND}`; export r; \
15541 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 15542 $(SET_LIB_PATH) \
378fce5b 15543 $(HOST_EXPORTS) \
b813574b
PB
15544 (cd readline && $(MAKE) $(FLAGS_TO_PASS) all)
15545@endif readline
3866be5d 15546
b813574b
PB
15547.PHONY: check-readline maybe-check-readline
15548maybe-check-readline:
15549@if readline
15550maybe-check-readline: check-readline
3866be5d 15551
b813574b
PB
15552check-readline:
15553 @r=`${PWD_COMMAND}`; export r; \
15554 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15555 $(SET_LIB_PATH) \
15556 $(HOST_EXPORTS) \
72b2455a 15557 (cd readline && $(MAKE) $(FLAGS_TO_PASS) check)
4fa63067 15558
b813574b 15559@endif readline
4fa63067 15560
b813574b
PB
15561.PHONY: install-readline maybe-install-readline
15562maybe-install-readline:
15563@if readline
15564maybe-install-readline: install-readline
4fa63067 15565
b813574b
PB
15566install-readline: installdirs
15567 @r=`${PWD_COMMAND}`; export r; \
15568 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15569 $(SET_LIB_PATH) \
15570 $(HOST_EXPORTS) \
72b2455a 15571 (cd readline && $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 15572
b813574b 15573@endif readline
4fa63067
NN
15574
15575# Other targets (info, dvi, etc.)
15576
b813574b
PB
15577.PHONY: maybe-info-readline info-readline
15578maybe-info-readline:
15579@if readline
15580maybe-info-readline: info-readline
4fa63067 15581
b813574b
PB
15582info-readline: \
15583 configure-readline
15584 @[ -f ./readline/Makefile ] || exit 0; \
4fa63067 15585 r=`${PWD_COMMAND}`; export r; \
b40e3958 15586 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 15587 $(SET_LIB_PATH) \
378fce5b 15588 $(HOST_EXPORTS) \
b813574b 15589 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
15590 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15591 done; \
b813574b
PB
15592 echo "Doing info in readline" ; \
15593 (cd readline && \
4fa63067
NN
15594 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15595 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15596 "RANLIB=$${RANLIB}" \
15597 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 15598 info) \
4fa63067 15599 || exit 1
3866be5d 15600
b813574b 15601@endif readline
3866be5d 15602
b813574b
PB
15603.PHONY: maybe-dvi-readline dvi-readline
15604maybe-dvi-readline:
15605@if readline
15606maybe-dvi-readline: dvi-readline
16ae0395 15607
b813574b
PB
15608dvi-readline: \
15609 configure-readline
15610 @[ -f ./readline/Makefile ] || exit 0; \
4fa63067 15611 r=`${PWD_COMMAND}`; export r; \
b40e3958 15612 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 15613 $(SET_LIB_PATH) \
378fce5b 15614 $(HOST_EXPORTS) \
b813574b 15615 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
15616 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15617 done; \
b813574b
PB
15618 echo "Doing dvi in readline" ; \
15619 (cd readline && \
4fa63067
NN
15620 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15621 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15622 "RANLIB=$${RANLIB}" \
15623 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 15624 dvi) \
4fa63067 15625 || exit 1
3866be5d 15626
b813574b 15627@endif readline
3866be5d 15628
b813574b
PB
15629.PHONY: maybe-TAGS-readline TAGS-readline
15630maybe-TAGS-readline:
15631@if readline
15632maybe-TAGS-readline: TAGS-readline
4fa63067 15633
b813574b
PB
15634TAGS-readline: \
15635 configure-readline
15636 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
15637 r=`${PWD_COMMAND}`; export r; \
15638 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fa63067 15639 $(SET_LIB_PATH) \
378fce5b 15640 $(HOST_EXPORTS) \
b813574b 15641 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
15642 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15643 done; \
b813574b
PB
15644 echo "Doing TAGS in readline" ; \
15645 (cd readline && \
4fa63067
NN
15646 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15647 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15648 "RANLIB=$${RANLIB}" \
15649 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 15650 TAGS) \
e2b9e2dc
NN
15651 || exit 1
15652
b813574b 15653@endif readline
4fa63067 15654
b813574b
PB
15655.PHONY: maybe-install-info-readline install-info-readline
15656maybe-install-info-readline:
15657@if readline
15658maybe-install-info-readline: install-info-readline
4fa63067 15659
b813574b
PB
15660install-info-readline: \
15661 configure-readline \
15662 info-readline
15663 @[ -f ./readline/Makefile ] || exit 0; \
4fa63067 15664 r=`${PWD_COMMAND}`; export r; \
b40e3958 15665 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 15666 $(SET_LIB_PATH) \
378fce5b 15667 $(HOST_EXPORTS) \
b813574b 15668 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
15669 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15670 done; \
b813574b
PB
15671 echo "Doing install-info in readline" ; \
15672 (cd readline && \
4fa63067
NN
15673 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15674 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15675 "RANLIB=$${RANLIB}" \
15676 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 15677 install-info) \
4fa63067 15678 || exit 1
3866be5d 15679
b813574b 15680@endif readline
3866be5d 15681
b813574b
PB
15682.PHONY: maybe-installcheck-readline installcheck-readline
15683maybe-installcheck-readline:
15684@if readline
15685maybe-installcheck-readline: installcheck-readline
4fa63067 15686
b813574b
PB
15687installcheck-readline: \
15688 configure-readline
15689 @[ -f ./readline/Makefile ] || exit 0; \
4fa63067
NN
15690 r=`${PWD_COMMAND}`; export r; \
15691 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15692 $(SET_LIB_PATH) \
378fce5b 15693 $(HOST_EXPORTS) \
b813574b 15694 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
15695 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15696 done; \
b813574b
PB
15697 echo "Doing installcheck in readline" ; \
15698 (cd readline && \
4fa63067
NN
15699 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15700 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15701 "RANLIB=$${RANLIB}" \
15702 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 15703 installcheck) \
4fa63067 15704 || exit 1
3866be5d 15705
b813574b 15706@endif readline
3866be5d 15707
b813574b
PB
15708.PHONY: maybe-mostlyclean-readline mostlyclean-readline
15709maybe-mostlyclean-readline:
15710@if readline
15711maybe-mostlyclean-readline: mostlyclean-readline
4fa63067 15712
b813574b
PB
15713mostlyclean-readline:
15714 @[ -f ./readline/Makefile ] || exit 0; \
4fa63067
NN
15715 r=`${PWD_COMMAND}`; export r; \
15716 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15717 $(SET_LIB_PATH) \
378fce5b 15718 $(HOST_EXPORTS) \
b813574b 15719 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
15720 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15721 done; \
b813574b
PB
15722 echo "Doing mostlyclean in readline" ; \
15723 (cd readline && \
4fa63067
NN
15724 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15725 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15726 "RANLIB=$${RANLIB}" \
15727 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 15728 mostlyclean) \
4fa63067
NN
15729 || exit 1
15730
b813574b 15731@endif readline
4fa63067 15732
b813574b
PB
15733.PHONY: maybe-clean-readline clean-readline
15734maybe-clean-readline:
15735@if readline
15736maybe-clean-readline: clean-readline
4fa63067 15737
b813574b
PB
15738clean-readline:
15739 @[ -f ./readline/Makefile ] || exit 0; \
4fa63067
NN
15740 r=`${PWD_COMMAND}`; export r; \
15741 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15742 $(SET_LIB_PATH) \
378fce5b 15743 $(HOST_EXPORTS) \
b813574b 15744 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
15745 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15746 done; \
b813574b
PB
15747 echo "Doing clean in readline" ; \
15748 (cd readline && \
4fa63067
NN
15749 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15750 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15751 "RANLIB=$${RANLIB}" \
15752 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 15753 clean) \
4fa63067
NN
15754 || exit 1
15755
b813574b 15756@endif readline
4fa63067 15757
b813574b
PB
15758.PHONY: maybe-distclean-readline distclean-readline
15759maybe-distclean-readline:
15760@if readline
15761maybe-distclean-readline: distclean-readline
4fa63067 15762
b813574b
PB
15763distclean-readline:
15764 @[ -f ./readline/Makefile ] || exit 0; \
4fa63067
NN
15765 r=`${PWD_COMMAND}`; export r; \
15766 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15767 $(SET_LIB_PATH) \
378fce5b 15768 $(HOST_EXPORTS) \
b813574b 15769 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
15770 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15771 done; \
b813574b
PB
15772 echo "Doing distclean in readline" ; \
15773 (cd readline && \
4fa63067
NN
15774 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15775 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15776 "RANLIB=$${RANLIB}" \
15777 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 15778 distclean) \
4fa63067
NN
15779 || exit 1
15780
b813574b 15781@endif readline
4fa63067 15782
b813574b
PB
15783.PHONY: maybe-maintainer-clean-readline maintainer-clean-readline
15784maybe-maintainer-clean-readline:
15785@if readline
15786maybe-maintainer-clean-readline: maintainer-clean-readline
16ae0395 15787
b813574b
PB
15788maintainer-clean-readline:
15789 @[ -f ./readline/Makefile ] || exit 0; \
4fa63067 15790 r=`${PWD_COMMAND}`; export r; \
b40e3958 15791 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 15792 $(SET_LIB_PATH) \
378fce5b 15793 $(HOST_EXPORTS) \
b813574b 15794 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
15795 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15796 done; \
b813574b
PB
15797 echo "Doing maintainer-clean in readline" ; \
15798 (cd readline && \
4fa63067
NN
15799 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15800 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15801 "RANLIB=$${RANLIB}" \
15802 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 15803 maintainer-clean) \
4fa63067 15804 || exit 1
3866be5d 15805
b813574b 15806@endif readline
3866be5d 15807
4fa63067 15808
b813574b
PB
15809.PHONY: configure-release maybe-configure-release
15810maybe-configure-release:
15811@if release
15812maybe-configure-release: configure-release
15813configure-release:
15814 @test ! -f release/Makefile || exit 0; \
15815 [ -d release ] || mkdir release; \
b40e3958
L
15816 r=`${PWD_COMMAND}`; export r; \
15817 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15818 $(HOST_EXPORTS) \
b813574b
PB
15819 echo Configuring in release; \
15820 cd release || exit 1; \
e2b9e2dc
NN
15821 case $(srcdir) in \
15822 \.) \
15823 srcdiroption="--srcdir=."; \
15824 libsrcdir=".";; \
15825 /* | [A-Za-z]:[\\/]*) \
b813574b
PB
15826 srcdiroption="--srcdir=$(srcdir)/release"; \
15827 libsrcdir="$$s/release";; \
e2b9e2dc 15828 *) \
b813574b
PB
15829 srcdiroption="--srcdir=../$(srcdir)/release"; \
15830 libsrcdir="$$s/release";; \
e2b9e2dc
NN
15831 esac; \
15832 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 15833 $(HOST_CONFIGARGS) $${srcdiroption} \
e2b9e2dc 15834 || exit 1
b813574b 15835@endif release
e2b9e2dc 15836
b813574b
PB
15837.PHONY: all-release maybe-all-release
15838maybe-all-release:
15839@if release
15840maybe-all-release: all-release
15841all-release: configure-release
b40e3958
L
15842 @r=`${PWD_COMMAND}`; export r; \
15843 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 15844 $(SET_LIB_PATH) \
378fce5b 15845 $(HOST_EXPORTS) \
b813574b
PB
15846 (cd release && $(MAKE) $(FLAGS_TO_PASS) all)
15847@endif release
3866be5d 15848
b813574b
PB
15849.PHONY: check-release maybe-check-release
15850maybe-check-release:
15851@if release
15852maybe-check-release: check-release
3866be5d 15853
b813574b 15854check-release:
3866be5d 15855
b813574b 15856@endif release
3866be5d 15857
b813574b
PB
15858.PHONY: install-release maybe-install-release
15859maybe-install-release:
15860@if release
15861maybe-install-release: install-release
16ae0395 15862
b813574b 15863install-release:
4fa63067 15864
b813574b 15865@endif release
4fa63067
NN
15866
15867# Other targets (info, dvi, etc.)
15868
b813574b
PB
15869.PHONY: maybe-info-release info-release
15870maybe-info-release:
15871@if release
15872maybe-info-release: info-release
4fa63067 15873
b813574b
PB
15874info-release: \
15875 configure-release
15876 @[ -f ./release/Makefile ] || exit 0; \
4fa63067
NN
15877 r=`${PWD_COMMAND}`; export r; \
15878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15879 $(SET_LIB_PATH) \
378fce5b 15880 $(HOST_EXPORTS) \
b813574b 15881 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
15882 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15883 done; \
b813574b
PB
15884 echo "Doing info in release" ; \
15885 (cd release && \
4fa63067
NN
15886 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15887 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15888 "RANLIB=$${RANLIB}" \
15889 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 15890 info) \
4fa63067
NN
15891 || exit 1
15892
b813574b 15893@endif release
4fa63067 15894
b813574b
PB
15895.PHONY: maybe-dvi-release dvi-release
15896maybe-dvi-release:
15897@if release
15898maybe-dvi-release: dvi-release
4fa63067 15899
b813574b
PB
15900dvi-release: \
15901 configure-release
15902 @[ -f ./release/Makefile ] || exit 0; \
4fa63067
NN
15903 r=`${PWD_COMMAND}`; export r; \
15904 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15905 $(SET_LIB_PATH) \
378fce5b 15906 $(HOST_EXPORTS) \
b813574b 15907 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
15908 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15909 done; \
b813574b
PB
15910 echo "Doing dvi in release" ; \
15911 (cd release && \
4fa63067
NN
15912 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15913 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15914 "RANLIB=$${RANLIB}" \
15915 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 15916 dvi) \
4fa63067
NN
15917 || exit 1
15918
b813574b 15919@endif release
4fa63067 15920
b813574b
PB
15921.PHONY: maybe-TAGS-release TAGS-release
15922maybe-TAGS-release:
15923@if release
15924maybe-TAGS-release: TAGS-release
4fa63067 15925
b813574b
PB
15926TAGS-release: \
15927 configure-release
15928 @[ -f ./release/Makefile ] || exit 0; \
4fa63067
NN
15929 r=`${PWD_COMMAND}`; export r; \
15930 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15931 $(SET_LIB_PATH) \
378fce5b 15932 $(HOST_EXPORTS) \
b813574b 15933 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
15934 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15935 done; \
b813574b
PB
15936 echo "Doing TAGS in release" ; \
15937 (cd release && \
4fa63067
NN
15938 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15939 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15940 "RANLIB=$${RANLIB}" \
15941 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 15942 TAGS) \
4fa63067
NN
15943 || exit 1
15944
b813574b 15945@endif release
4fa63067 15946
b813574b
PB
15947.PHONY: maybe-install-info-release install-info-release
15948maybe-install-info-release:
15949@if release
15950maybe-install-info-release: install-info-release
4fa63067 15951
b813574b
PB
15952install-info-release: \
15953 configure-release \
15954 info-release
15955 @[ -f ./release/Makefile ] || exit 0; \
4fa63067
NN
15956 r=`${PWD_COMMAND}`; export r; \
15957 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15958 $(SET_LIB_PATH) \
378fce5b 15959 $(HOST_EXPORTS) \
b813574b 15960 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
15961 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15962 done; \
b813574b
PB
15963 echo "Doing install-info in release" ; \
15964 (cd release && \
4fa63067
NN
15965 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15966 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15967 "RANLIB=$${RANLIB}" \
15968 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 15969 install-info) \
4fa63067
NN
15970 || exit 1
15971
b813574b 15972@endif release
4fa63067 15973
b813574b
PB
15974.PHONY: maybe-installcheck-release installcheck-release
15975maybe-installcheck-release:
15976@if release
15977maybe-installcheck-release: installcheck-release
4fa63067 15978
b813574b
PB
15979installcheck-release: \
15980 configure-release
15981 @[ -f ./release/Makefile ] || exit 0; \
4fa63067
NN
15982 r=`${PWD_COMMAND}`; export r; \
15983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15984 $(SET_LIB_PATH) \
378fce5b 15985 $(HOST_EXPORTS) \
b813574b 15986 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
15987 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15988 done; \
b813574b
PB
15989 echo "Doing installcheck in release" ; \
15990 (cd release && \
4fa63067
NN
15991 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15992 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15993 "RANLIB=$${RANLIB}" \
15994 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 15995 installcheck) \
4fa63067
NN
15996 || exit 1
15997
b813574b 15998@endif release
4fa63067 15999
b813574b
PB
16000.PHONY: maybe-mostlyclean-release mostlyclean-release
16001maybe-mostlyclean-release:
16002@if release
16003maybe-mostlyclean-release: mostlyclean-release
4fa63067 16004
b813574b
PB
16005mostlyclean-release:
16006 @[ -f ./release/Makefile ] || exit 0; \
4fa63067
NN
16007 r=`${PWD_COMMAND}`; export r; \
16008 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16009 $(SET_LIB_PATH) \
378fce5b 16010 $(HOST_EXPORTS) \
b813574b 16011 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
16012 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16013 done; \
b813574b
PB
16014 echo "Doing mostlyclean in release" ; \
16015 (cd release && \
4fa63067
NN
16016 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16017 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16018 "RANLIB=$${RANLIB}" \
16019 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 16020 mostlyclean) \
4fa63067
NN
16021 || exit 1
16022
b813574b 16023@endif release
4fa63067 16024
b813574b
PB
16025.PHONY: maybe-clean-release clean-release
16026maybe-clean-release:
16027@if release
16028maybe-clean-release: clean-release
4fa63067 16029
b813574b
PB
16030clean-release:
16031 @[ -f ./release/Makefile ] || exit 0; \
4fa63067
NN
16032 r=`${PWD_COMMAND}`; export r; \
16033 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16034 $(SET_LIB_PATH) \
378fce5b 16035 $(HOST_EXPORTS) \
b813574b 16036 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
16037 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16038 done; \
b813574b
PB
16039 echo "Doing clean in release" ; \
16040 (cd release && \
4fa63067
NN
16041 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16042 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16043 "RANLIB=$${RANLIB}" \
16044 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 16045 clean) \
4fa63067
NN
16046 || exit 1
16047
b813574b 16048@endif release
4fa63067 16049
b813574b
PB
16050.PHONY: maybe-distclean-release distclean-release
16051maybe-distclean-release:
16052@if release
16053maybe-distclean-release: distclean-release
4fa63067 16054
b813574b
PB
16055distclean-release:
16056 @[ -f ./release/Makefile ] || exit 0; \
4fa63067
NN
16057 r=`${PWD_COMMAND}`; export r; \
16058 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16059 $(SET_LIB_PATH) \
378fce5b 16060 $(HOST_EXPORTS) \
b813574b 16061 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
16062 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16063 done; \
b813574b
PB
16064 echo "Doing distclean in release" ; \
16065 (cd release && \
4fa63067
NN
16066 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16067 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16068 "RANLIB=$${RANLIB}" \
16069 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 16070 distclean) \
4fa63067
NN
16071 || exit 1
16072
b813574b 16073@endif release
4fa63067 16074
b813574b
PB
16075.PHONY: maybe-maintainer-clean-release maintainer-clean-release
16076maybe-maintainer-clean-release:
16077@if release
16078maybe-maintainer-clean-release: maintainer-clean-release
4fa63067 16079
b813574b
PB
16080maintainer-clean-release:
16081 @[ -f ./release/Makefile ] || exit 0; \
4fa63067
NN
16082 r=`${PWD_COMMAND}`; export r; \
16083 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16084 $(SET_LIB_PATH) \
378fce5b 16085 $(HOST_EXPORTS) \
b813574b 16086 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
16087 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16088 done; \
b813574b
PB
16089 echo "Doing maintainer-clean in release" ; \
16090 (cd release && \
4fa63067
NN
16091 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16092 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16093 "RANLIB=$${RANLIB}" \
16094 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 16095 maintainer-clean) \
4fa63067 16096 || exit 1
3866be5d 16097
b813574b 16098@endif release
3866be5d 16099
4fa63067 16100
b813574b
PB
16101.PHONY: configure-recode maybe-configure-recode
16102maybe-configure-recode:
16103@if recode
16104maybe-configure-recode: configure-recode
16105configure-recode:
16106 @test ! -f recode/Makefile || exit 0; \
16107 [ -d recode ] || mkdir recode; \
b40e3958
L
16108 r=`${PWD_COMMAND}`; export r; \
16109 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16110 $(HOST_EXPORTS) \
b813574b
PB
16111 echo Configuring in recode; \
16112 cd recode || exit 1; \
e2b9e2dc
NN
16113 case $(srcdir) in \
16114 \.) \
16115 srcdiroption="--srcdir=."; \
16116 libsrcdir=".";; \
16117 /* | [A-Za-z]:[\\/]*) \
b813574b
PB
16118 srcdiroption="--srcdir=$(srcdir)/recode"; \
16119 libsrcdir="$$s/recode";; \
e2b9e2dc 16120 *) \
b813574b
PB
16121 srcdiroption="--srcdir=../$(srcdir)/recode"; \
16122 libsrcdir="$$s/recode";; \
e2b9e2dc
NN
16123 esac; \
16124 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 16125 $(HOST_CONFIGARGS) $${srcdiroption} \
e2b9e2dc 16126 || exit 1
b813574b 16127@endif recode
e2b9e2dc 16128
b813574b
PB
16129.PHONY: all-recode maybe-all-recode
16130maybe-all-recode:
16131@if recode
16132maybe-all-recode: all-recode
16133all-recode: configure-recode
b40e3958
L
16134 @r=`${PWD_COMMAND}`; export r; \
16135 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 16136 $(SET_LIB_PATH) \
378fce5b 16137 $(HOST_EXPORTS) \
b813574b
PB
16138 (cd recode && $(MAKE) $(FLAGS_TO_PASS) all)
16139@endif recode
3866be5d 16140
b813574b
PB
16141.PHONY: check-recode maybe-check-recode
16142maybe-check-recode:
16143@if recode
16144maybe-check-recode: check-recode
3866be5d 16145
b813574b 16146check-recode:
b40e3958
L
16147 @r=`${PWD_COMMAND}`; export r; \
16148 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 16149 $(SET_LIB_PATH) \
378fce5b 16150 $(HOST_EXPORTS) \
72b2455a 16151 (cd recode && $(MAKE) $(FLAGS_TO_PASS) check)
3866be5d 16152
b813574b 16153@endif recode
3866be5d 16154
b813574b
PB
16155.PHONY: install-recode maybe-install-recode
16156maybe-install-recode:
16157@if recode
16158maybe-install-recode: install-recode
4fa63067 16159
b813574b 16160install-recode: installdirs
4fa63067
NN
16161 @r=`${PWD_COMMAND}`; export r; \
16162 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16163 $(SET_LIB_PATH) \
378fce5b 16164 $(HOST_EXPORTS) \
72b2455a 16165 (cd recode && $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 16166
b813574b 16167@endif recode
4fa63067
NN
16168
16169# Other targets (info, dvi, etc.)
16170
b813574b
PB
16171.PHONY: maybe-info-recode info-recode
16172maybe-info-recode:
16173@if recode
16174maybe-info-recode: info-recode
4fa63067 16175
b813574b
PB
16176info-recode: \
16177 configure-recode
16178 @[ -f ./recode/Makefile ] || exit 0; \
4fa63067
NN
16179 r=`${PWD_COMMAND}`; export r; \
16180 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16181 $(SET_LIB_PATH) \
378fce5b 16182 $(HOST_EXPORTS) \
b813574b 16183 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
16184 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16185 done; \
b813574b
PB
16186 echo "Doing info in recode" ; \
16187 (cd recode && \
4fa63067
NN
16188 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16189 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16190 "RANLIB=$${RANLIB}" \
16191 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 16192 info) \
4fa63067
NN
16193 || exit 1
16194
b813574b 16195@endif recode
4fa63067 16196
b813574b
PB
16197.PHONY: maybe-dvi-recode dvi-recode
16198maybe-dvi-recode:
16199@if recode
16200maybe-dvi-recode: dvi-recode
4fa63067 16201
b813574b
PB
16202dvi-recode: \
16203 configure-recode
16204 @[ -f ./recode/Makefile ] || exit 0; \
4fa63067
NN
16205 r=`${PWD_COMMAND}`; export r; \
16206 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16207 $(SET_LIB_PATH) \
378fce5b 16208 $(HOST_EXPORTS) \
b813574b 16209 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
16210 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16211 done; \
b813574b
PB
16212 echo "Doing dvi in recode" ; \
16213 (cd recode && \
4fa63067
NN
16214 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16215 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16216 "RANLIB=$${RANLIB}" \
16217 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 16218 dvi) \
4fa63067
NN
16219 || exit 1
16220
b813574b 16221@endif recode
4fa63067 16222
b813574b
PB
16223.PHONY: maybe-TAGS-recode TAGS-recode
16224maybe-TAGS-recode:
16225@if recode
16226maybe-TAGS-recode: TAGS-recode
4fa63067 16227
b813574b
PB
16228TAGS-recode: \
16229 configure-recode
16230 @[ -f ./recode/Makefile ] || exit 0; \
4fa63067
NN
16231 r=`${PWD_COMMAND}`; export r; \
16232 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16233 $(SET_LIB_PATH) \
378fce5b 16234 $(HOST_EXPORTS) \
b813574b 16235 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
16236 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16237 done; \
b813574b
PB
16238 echo "Doing TAGS in recode" ; \
16239 (cd recode && \
4fa63067
NN
16240 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16241 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16242 "RANLIB=$${RANLIB}" \
16243 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 16244 TAGS) \
4fa63067
NN
16245 || exit 1
16246
b813574b 16247@endif recode
4fa63067 16248
b813574b
PB
16249.PHONY: maybe-install-info-recode install-info-recode
16250maybe-install-info-recode:
16251@if recode
16252maybe-install-info-recode: install-info-recode
4fa63067 16253
b813574b
PB
16254install-info-recode: \
16255 configure-recode \
16256 info-recode
16257 @[ -f ./recode/Makefile ] || exit 0; \
4fa63067
NN
16258 r=`${PWD_COMMAND}`; export r; \
16259 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16260 $(SET_LIB_PATH) \
378fce5b 16261 $(HOST_EXPORTS) \
b813574b 16262 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
16263 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16264 done; \
b813574b
PB
16265 echo "Doing install-info in recode" ; \
16266 (cd recode && \
4fa63067
NN
16267 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16268 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16269 "RANLIB=$${RANLIB}" \
16270 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 16271 install-info) \
4fa63067
NN
16272 || exit 1
16273
b813574b 16274@endif recode
4fa63067 16275
b813574b
PB
16276.PHONY: maybe-installcheck-recode installcheck-recode
16277maybe-installcheck-recode:
16278@if recode
16279maybe-installcheck-recode: installcheck-recode
4fa63067 16280
b813574b
PB
16281installcheck-recode: \
16282 configure-recode
16283 @[ -f ./recode/Makefile ] || exit 0; \
4fa63067
NN
16284 r=`${PWD_COMMAND}`; export r; \
16285 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16286 $(SET_LIB_PATH) \
378fce5b 16287 $(HOST_EXPORTS) \
b813574b 16288 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
16289 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16290 done; \
b813574b
PB
16291 echo "Doing installcheck in recode" ; \
16292 (cd recode && \
4fa63067
NN
16293 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16294 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16295 "RANLIB=$${RANLIB}" \
16296 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 16297 installcheck) \
4fa63067
NN
16298 || exit 1
16299
b813574b 16300@endif recode
4fa63067 16301
b813574b
PB
16302.PHONY: maybe-mostlyclean-recode mostlyclean-recode
16303maybe-mostlyclean-recode:
16304@if recode
16305maybe-mostlyclean-recode: mostlyclean-recode
4fa63067 16306
b813574b
PB
16307mostlyclean-recode:
16308 @[ -f ./recode/Makefile ] || exit 0; \
4fa63067
NN
16309 r=`${PWD_COMMAND}`; export r; \
16310 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16311 $(SET_LIB_PATH) \
378fce5b 16312 $(HOST_EXPORTS) \
b813574b 16313 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
16314 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16315 done; \
b813574b
PB
16316 echo "Doing mostlyclean in recode" ; \
16317 (cd recode && \
4fa63067
NN
16318 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16319 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16320 "RANLIB=$${RANLIB}" \
16321 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 16322 mostlyclean) \
4fa63067
NN
16323 || exit 1
16324
b813574b 16325@endif recode
4fa63067 16326
b813574b
PB
16327.PHONY: maybe-clean-recode clean-recode
16328maybe-clean-recode:
16329@if recode
16330maybe-clean-recode: clean-recode
4fa63067 16331
b813574b
PB
16332clean-recode:
16333 @[ -f ./recode/Makefile ] || exit 0; \
4fa63067
NN
16334 r=`${PWD_COMMAND}`; export r; \
16335 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16336 $(SET_LIB_PATH) \
378fce5b 16337 $(HOST_EXPORTS) \
b813574b 16338 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
16339 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16340 done; \
b813574b
PB
16341 echo "Doing clean in recode" ; \
16342 (cd recode && \
4fa63067
NN
16343 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16344 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16345 "RANLIB=$${RANLIB}" \
16346 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 16347 clean) \
4fa63067
NN
16348 || exit 1
16349
b813574b 16350@endif recode
4fa63067 16351
b813574b
PB
16352.PHONY: maybe-distclean-recode distclean-recode
16353maybe-distclean-recode:
16354@if recode
16355maybe-distclean-recode: distclean-recode
4fa63067 16356
b813574b
PB
16357distclean-recode:
16358 @[ -f ./recode/Makefile ] || exit 0; \
4fa63067
NN
16359 r=`${PWD_COMMAND}`; export r; \
16360 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16361 $(SET_LIB_PATH) \
378fce5b 16362 $(HOST_EXPORTS) \
b813574b 16363 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
16364 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16365 done; \
b813574b
PB
16366 echo "Doing distclean in recode" ; \
16367 (cd recode && \
4fa63067
NN
16368 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16369 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16370 "RANLIB=$${RANLIB}" \
16371 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 16372 distclean) \
4fa63067
NN
16373 || exit 1
16374
b813574b 16375@endif recode
4fa63067 16376
b813574b
PB
16377.PHONY: maybe-maintainer-clean-recode maintainer-clean-recode
16378maybe-maintainer-clean-recode:
16379@if recode
16380maybe-maintainer-clean-recode: maintainer-clean-recode
4fa63067 16381
b813574b
PB
16382maintainer-clean-recode:
16383 @[ -f ./recode/Makefile ] || exit 0; \
4fa63067
NN
16384 r=`${PWD_COMMAND}`; export r; \
16385 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16386 $(SET_LIB_PATH) \
378fce5b 16387 $(HOST_EXPORTS) \
b813574b 16388 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
16389 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16390 done; \
b813574b
PB
16391 echo "Doing maintainer-clean in recode" ; \
16392 (cd recode && \
4fa63067
NN
16393 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16394 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16395 "RANLIB=$${RANLIB}" \
16396 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 16397 maintainer-clean) \
4fa63067 16398 || exit 1
16ae0395 16399
b813574b 16400@endif recode
3866be5d
NN
16401
16402
b813574b
PB
16403.PHONY: configure-sed maybe-configure-sed
16404maybe-configure-sed:
16405@if sed
16406maybe-configure-sed: configure-sed
16407configure-sed:
16408 @test ! -f sed/Makefile || exit 0; \
16409 [ -d sed ] || mkdir sed; \
b40e3958
L
16410 r=`${PWD_COMMAND}`; export r; \
16411 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16412 $(HOST_EXPORTS) \
b813574b
PB
16413 echo Configuring in sed; \
16414 cd sed || exit 1; \
e2b9e2dc
NN
16415 case $(srcdir) in \
16416 \.) \
16417 srcdiroption="--srcdir=."; \
16418 libsrcdir=".";; \
16419 /* | [A-Za-z]:[\\/]*) \
b813574b
PB
16420 srcdiroption="--srcdir=$(srcdir)/sed"; \
16421 libsrcdir="$$s/sed";; \
e2b9e2dc 16422 *) \
b813574b
PB
16423 srcdiroption="--srcdir=../$(srcdir)/sed"; \
16424 libsrcdir="$$s/sed";; \
e2b9e2dc
NN
16425 esac; \
16426 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 16427 $(HOST_CONFIGARGS) $${srcdiroption} \
e2b9e2dc 16428 || exit 1
b813574b 16429@endif sed
e2b9e2dc 16430
b813574b
PB
16431.PHONY: all-sed maybe-all-sed
16432maybe-all-sed:
16433@if sed
16434maybe-all-sed: all-sed
16435all-sed: configure-sed
b40e3958
L
16436 @r=`${PWD_COMMAND}`; export r; \
16437 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 16438 $(SET_LIB_PATH) \
378fce5b 16439 $(HOST_EXPORTS) \
b813574b
PB
16440 (cd sed && $(MAKE) $(FLAGS_TO_PASS) all)
16441@endif sed
3866be5d 16442
b813574b
PB
16443.PHONY: check-sed maybe-check-sed
16444maybe-check-sed:
16445@if sed
16446maybe-check-sed: check-sed
3866be5d 16447
b813574b 16448check-sed:
b40e3958
L
16449 @r=`${PWD_COMMAND}`; export r; \
16450 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 16451 $(SET_LIB_PATH) \
378fce5b 16452 $(HOST_EXPORTS) \
72b2455a 16453 (cd sed && $(MAKE) $(FLAGS_TO_PASS) check)
3866be5d 16454
b813574b 16455@endif sed
3866be5d 16456
b813574b
PB
16457.PHONY: install-sed maybe-install-sed
16458maybe-install-sed:
16459@if sed
16460maybe-install-sed: install-sed
16ae0395 16461
b813574b 16462install-sed: installdirs
b40e3958
L
16463 @r=`${PWD_COMMAND}`; export r; \
16464 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 16465 $(SET_LIB_PATH) \
378fce5b 16466 $(HOST_EXPORTS) \
72b2455a 16467 (cd sed && $(MAKE) $(FLAGS_TO_PASS) install)
3866be5d 16468
b813574b 16469@endif sed
3866be5d 16470
4fa63067
NN
16471# Other targets (info, dvi, etc.)
16472
b813574b
PB
16473.PHONY: maybe-info-sed info-sed
16474maybe-info-sed:
16475@if sed
16476maybe-info-sed: info-sed
4fa63067 16477
b813574b
PB
16478info-sed: \
16479 configure-sed
16480 @[ -f ./sed/Makefile ] || exit 0; \
4fa63067
NN
16481 r=`${PWD_COMMAND}`; export r; \
16482 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16483 $(SET_LIB_PATH) \
378fce5b 16484 $(HOST_EXPORTS) \
b813574b 16485 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
16486 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16487 done; \
b813574b
PB
16488 echo "Doing info in sed" ; \
16489 (cd sed && \
4fa63067
NN
16490 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16491 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16492 "RANLIB=$${RANLIB}" \
16493 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 16494 info) \
4fa63067
NN
16495 || exit 1
16496
b813574b 16497@endif sed
4fa63067 16498
b813574b
PB
16499.PHONY: maybe-dvi-sed dvi-sed
16500maybe-dvi-sed:
16501@if sed
16502maybe-dvi-sed: dvi-sed
4fa63067 16503
b813574b
PB
16504dvi-sed: \
16505 configure-sed
16506 @[ -f ./sed/Makefile ] || exit 0; \
4fa63067
NN
16507 r=`${PWD_COMMAND}`; export r; \
16508 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16509 $(SET_LIB_PATH) \
378fce5b 16510 $(HOST_EXPORTS) \
b813574b 16511 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
16512 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16513 done; \
b813574b
PB
16514 echo "Doing dvi in sed" ; \
16515 (cd sed && \
4fa63067
NN
16516 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16517 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16518 "RANLIB=$${RANLIB}" \
16519 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 16520 dvi) \
4fa63067
NN
16521 || exit 1
16522
b813574b 16523@endif sed
4fa63067 16524
b813574b
PB
16525.PHONY: maybe-TAGS-sed TAGS-sed
16526maybe-TAGS-sed:
16527@if sed
16528maybe-TAGS-sed: TAGS-sed
4fa63067 16529
b813574b
PB
16530TAGS-sed: \
16531 configure-sed
16532 @[ -f ./sed/Makefile ] || exit 0; \
4fa63067
NN
16533 r=`${PWD_COMMAND}`; export r; \
16534 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16535 $(SET_LIB_PATH) \
378fce5b 16536 $(HOST_EXPORTS) \
b813574b 16537 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
16538 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16539 done; \
b813574b
PB
16540 echo "Doing TAGS in sed" ; \
16541 (cd sed && \
4fa63067
NN
16542 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16543 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16544 "RANLIB=$${RANLIB}" \
16545 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 16546 TAGS) \
4fa63067
NN
16547 || exit 1
16548
b813574b 16549@endif sed
4fa63067 16550
b813574b
PB
16551.PHONY: maybe-install-info-sed install-info-sed
16552maybe-install-info-sed:
16553@if sed
16554maybe-install-info-sed: install-info-sed
4fa63067 16555
b813574b
PB
16556install-info-sed: \
16557 configure-sed \
16558 info-sed
16559 @[ -f ./sed/Makefile ] || exit 0; \
4fa63067
NN
16560 r=`${PWD_COMMAND}`; export r; \
16561 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16562 $(SET_LIB_PATH) \
378fce5b 16563 $(HOST_EXPORTS) \
b813574b 16564 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
16565 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16566 done; \
b813574b
PB
16567 echo "Doing install-info in sed" ; \
16568 (cd sed && \
4fa63067
NN
16569 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16570 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16571 "RANLIB=$${RANLIB}" \
16572 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 16573 install-info) \
4fa63067
NN
16574 || exit 1
16575
b813574b 16576@endif sed
4fa63067 16577
b813574b
PB
16578.PHONY: maybe-installcheck-sed installcheck-sed
16579maybe-installcheck-sed:
16580@if sed
16581maybe-installcheck-sed: installcheck-sed
4fa63067 16582
b813574b
PB
16583installcheck-sed: \
16584 configure-sed
16585 @[ -f ./sed/Makefile ] || exit 0; \
4fa63067
NN
16586 r=`${PWD_COMMAND}`; export r; \
16587 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16588 $(SET_LIB_PATH) \
378fce5b 16589 $(HOST_EXPORTS) \
b813574b 16590 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
16591 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16592 done; \
b813574b
PB
16593 echo "Doing installcheck in sed" ; \
16594 (cd sed && \
4fa63067
NN
16595 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16596 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16597 "RANLIB=$${RANLIB}" \
16598 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 16599 installcheck) \
4fa63067
NN
16600 || exit 1
16601
b813574b 16602@endif sed
4fa63067 16603
b813574b
PB
16604.PHONY: maybe-mostlyclean-sed mostlyclean-sed
16605maybe-mostlyclean-sed:
16606@if sed
16607maybe-mostlyclean-sed: mostlyclean-sed
4fa63067 16608
b813574b
PB
16609mostlyclean-sed:
16610 @[ -f ./sed/Makefile ] || exit 0; \
4fa63067
NN
16611 r=`${PWD_COMMAND}`; export r; \
16612 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16613 $(SET_LIB_PATH) \
378fce5b 16614 $(HOST_EXPORTS) \
b813574b 16615 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
16616 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16617 done; \
b813574b
PB
16618 echo "Doing mostlyclean in sed" ; \
16619 (cd sed && \
4fa63067
NN
16620 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16621 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16622 "RANLIB=$${RANLIB}" \
16623 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 16624 mostlyclean) \
4fa63067
NN
16625 || exit 1
16626
b813574b 16627@endif sed
4fa63067 16628
b813574b
PB
16629.PHONY: maybe-clean-sed clean-sed
16630maybe-clean-sed:
16631@if sed
16632maybe-clean-sed: clean-sed
4fa63067 16633
b813574b
PB
16634clean-sed:
16635 @[ -f ./sed/Makefile ] || exit 0; \
4fa63067
NN
16636 r=`${PWD_COMMAND}`; export r; \
16637 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16638 $(SET_LIB_PATH) \
378fce5b 16639 $(HOST_EXPORTS) \
b813574b 16640 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
16641 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16642 done; \
b813574b
PB
16643 echo "Doing clean in sed" ; \
16644 (cd sed && \
4fa63067
NN
16645 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16646 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16647 "RANLIB=$${RANLIB}" \
16648 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 16649 clean) \
4fa63067
NN
16650 || exit 1
16651
b813574b 16652@endif sed
4fa63067 16653
b813574b
PB
16654.PHONY: maybe-distclean-sed distclean-sed
16655maybe-distclean-sed:
16656@if sed
16657maybe-distclean-sed: distclean-sed
4fa63067 16658
b813574b
PB
16659distclean-sed:
16660 @[ -f ./sed/Makefile ] || exit 0; \
4fa63067
NN
16661 r=`${PWD_COMMAND}`; export r; \
16662 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16663 $(SET_LIB_PATH) \
378fce5b 16664 $(HOST_EXPORTS) \
b813574b 16665 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
16666 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16667 done; \
b813574b
PB
16668 echo "Doing distclean in sed" ; \
16669 (cd sed && \
4fa63067
NN
16670 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16671 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16672 "RANLIB=$${RANLIB}" \
16673 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 16674 distclean) \
4fa63067
NN
16675 || exit 1
16676
b813574b 16677@endif sed
4fa63067 16678
b813574b
PB
16679.PHONY: maybe-maintainer-clean-sed maintainer-clean-sed
16680maybe-maintainer-clean-sed:
16681@if sed
16682maybe-maintainer-clean-sed: maintainer-clean-sed
4fa63067 16683
b813574b
PB
16684maintainer-clean-sed:
16685 @[ -f ./sed/Makefile ] || exit 0; \
4fa63067
NN
16686 r=`${PWD_COMMAND}`; export r; \
16687 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16688 $(SET_LIB_PATH) \
378fce5b 16689 $(HOST_EXPORTS) \
b813574b 16690 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
16691 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16692 done; \
b813574b
PB
16693 echo "Doing maintainer-clean in sed" ; \
16694 (cd sed && \
4fa63067
NN
16695 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16696 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16697 "RANLIB=$${RANLIB}" \
16698 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 16699 maintainer-clean) \
4fa63067
NN
16700 || exit 1
16701
b813574b 16702@endif sed
4fa63067
NN
16703
16704
b813574b
PB
16705.PHONY: configure-send-pr maybe-configure-send-pr
16706maybe-configure-send-pr:
16707@if send-pr
16708maybe-configure-send-pr: configure-send-pr
16709configure-send-pr:
16710 @test ! -f send-pr/Makefile || exit 0; \
16711 [ -d send-pr ] || mkdir send-pr; \
b40e3958
L
16712 r=`${PWD_COMMAND}`; export r; \
16713 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16714 $(HOST_EXPORTS) \
b813574b
PB
16715 echo Configuring in send-pr; \
16716 cd send-pr || exit 1; \
e2b9e2dc
NN
16717 case $(srcdir) in \
16718 \.) \
16719 srcdiroption="--srcdir=."; \
16720 libsrcdir=".";; \
16721 /* | [A-Za-z]:[\\/]*) \
b813574b
PB
16722 srcdiroption="--srcdir=$(srcdir)/send-pr"; \
16723 libsrcdir="$$s/send-pr";; \
e2b9e2dc 16724 *) \
b813574b
PB
16725 srcdiroption="--srcdir=../$(srcdir)/send-pr"; \
16726 libsrcdir="$$s/send-pr";; \
e2b9e2dc
NN
16727 esac; \
16728 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 16729 $(HOST_CONFIGARGS) $${srcdiroption} \
e2b9e2dc 16730 || exit 1
b813574b 16731@endif send-pr
e2b9e2dc 16732
b813574b
PB
16733.PHONY: all-send-pr maybe-all-send-pr
16734maybe-all-send-pr:
16735@if send-pr
16736maybe-all-send-pr: all-send-pr
16737all-send-pr: configure-send-pr
b40e3958
L
16738 @r=`${PWD_COMMAND}`; export r; \
16739 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 16740 $(SET_LIB_PATH) \
378fce5b 16741 $(HOST_EXPORTS) \
b813574b
PB
16742 (cd send-pr && $(MAKE) $(FLAGS_TO_PASS) all)
16743@endif send-pr
3866be5d 16744
b813574b
PB
16745.PHONY: check-send-pr maybe-check-send-pr
16746maybe-check-send-pr:
16747@if send-pr
16748maybe-check-send-pr: check-send-pr
3866be5d 16749
b813574b 16750check-send-pr:
b40e3958
L
16751 @r=`${PWD_COMMAND}`; export r; \
16752 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 16753 $(SET_LIB_PATH) \
378fce5b 16754 $(HOST_EXPORTS) \
72b2455a 16755 (cd send-pr && $(MAKE) $(FLAGS_TO_PASS) check)
3866be5d 16756
b813574b 16757@endif send-pr
3866be5d 16758
b813574b
PB
16759.PHONY: install-send-pr maybe-install-send-pr
16760maybe-install-send-pr:
16761@if send-pr
16762maybe-install-send-pr: install-send-pr
16ae0395 16763
b813574b 16764install-send-pr: installdirs
b40e3958
L
16765 @r=`${PWD_COMMAND}`; export r; \
16766 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 16767 $(SET_LIB_PATH) \
378fce5b 16768 $(HOST_EXPORTS) \
72b2455a 16769 (cd send-pr && $(MAKE) $(FLAGS_TO_PASS) install)
3866be5d 16770
b813574b 16771@endif send-pr
3866be5d 16772
4fa63067
NN
16773# Other targets (info, dvi, etc.)
16774
b813574b
PB
16775.PHONY: maybe-info-send-pr info-send-pr
16776maybe-info-send-pr:
16777@if send-pr
16778maybe-info-send-pr: info-send-pr
4fa63067 16779
b813574b
PB
16780info-send-pr: \
16781 configure-send-pr
16782 @[ -f ./send-pr/Makefile ] || exit 0; \
b40e3958
L
16783 r=`${PWD_COMMAND}`; export r; \
16784 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fa63067 16785 $(SET_LIB_PATH) \
378fce5b 16786 $(HOST_EXPORTS) \
b813574b 16787 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
16788 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16789 done; \
b813574b
PB
16790 echo "Doing info in send-pr" ; \
16791 (cd send-pr && \
4fa63067
NN
16792 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16793 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16794 "RANLIB=$${RANLIB}" \
16795 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 16796 info) \
e2b9e2dc
NN
16797 || exit 1
16798
b813574b 16799@endif send-pr
4fa63067 16800
b813574b
PB
16801.PHONY: maybe-dvi-send-pr dvi-send-pr
16802maybe-dvi-send-pr:
16803@if send-pr
16804maybe-dvi-send-pr: dvi-send-pr
4fa63067 16805
b813574b
PB
16806dvi-send-pr: \
16807 configure-send-pr
16808 @[ -f ./send-pr/Makefile ] || exit 0; \
4fa63067 16809 r=`${PWD_COMMAND}`; export r; \
b40e3958 16810 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 16811 $(SET_LIB_PATH) \
378fce5b 16812 $(HOST_EXPORTS) \
b813574b 16813 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
16814 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16815 done; \
b813574b
PB
16816 echo "Doing dvi in send-pr" ; \
16817 (cd send-pr && \
4fa63067
NN
16818 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16819 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16820 "RANLIB=$${RANLIB}" \
16821 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 16822 dvi) \
4fa63067 16823 || exit 1
3866be5d 16824
b813574b 16825@endif send-pr
3866be5d 16826
b813574b
PB
16827.PHONY: maybe-TAGS-send-pr TAGS-send-pr
16828maybe-TAGS-send-pr:
16829@if send-pr
16830maybe-TAGS-send-pr: TAGS-send-pr
4fa63067 16831
b813574b
PB
16832TAGS-send-pr: \
16833 configure-send-pr
16834 @[ -f ./send-pr/Makefile ] || exit 0; \
4fa63067
NN
16835 r=`${PWD_COMMAND}`; export r; \
16836 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16837 $(SET_LIB_PATH) \
378fce5b 16838 $(HOST_EXPORTS) \
b813574b 16839 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
16840 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16841 done; \
b813574b
PB
16842 echo "Doing TAGS in send-pr" ; \
16843 (cd send-pr && \
4fa63067
NN
16844 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16845 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16846 "RANLIB=$${RANLIB}" \
16847 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 16848 TAGS) \
4fa63067 16849 || exit 1
3866be5d 16850
b813574b 16851@endif send-pr
3866be5d 16852
b813574b
PB
16853.PHONY: maybe-install-info-send-pr install-info-send-pr
16854maybe-install-info-send-pr:
16855@if send-pr
16856maybe-install-info-send-pr: install-info-send-pr
16ae0395 16857
b813574b
PB
16858install-info-send-pr: \
16859 configure-send-pr \
16860 info-send-pr
16861 @[ -f ./send-pr/Makefile ] || exit 0; \
4fa63067
NN
16862 r=`${PWD_COMMAND}`; export r; \
16863 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16864 $(SET_LIB_PATH) \
378fce5b 16865 $(HOST_EXPORTS) \
b813574b 16866 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
16867 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16868 done; \
b813574b
PB
16869 echo "Doing install-info in send-pr" ; \
16870 (cd send-pr && \
4fa63067
NN
16871 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16872 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16873 "RANLIB=$${RANLIB}" \
16874 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 16875 install-info) \
4fa63067
NN
16876 || exit 1
16877
b813574b 16878@endif send-pr
4fa63067 16879
b813574b
PB
16880.PHONY: maybe-installcheck-send-pr installcheck-send-pr
16881maybe-installcheck-send-pr:
16882@if send-pr
16883maybe-installcheck-send-pr: installcheck-send-pr
4fa63067 16884
b813574b
PB
16885installcheck-send-pr: \
16886 configure-send-pr
16887 @[ -f ./send-pr/Makefile ] || exit 0; \
4fa63067
NN
16888 r=`${PWD_COMMAND}`; export r; \
16889 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16890 $(SET_LIB_PATH) \
378fce5b 16891 $(HOST_EXPORTS) \
b813574b 16892 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
16893 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16894 done; \
b813574b
PB
16895 echo "Doing installcheck in send-pr" ; \
16896 (cd send-pr && \
4fa63067
NN
16897 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16898 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16899 "RANLIB=$${RANLIB}" \
16900 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 16901 installcheck) \
4fa63067
NN
16902 || exit 1
16903
b813574b 16904@endif send-pr
4fa63067 16905
b813574b
PB
16906.PHONY: maybe-mostlyclean-send-pr mostlyclean-send-pr
16907maybe-mostlyclean-send-pr:
16908@if send-pr
16909maybe-mostlyclean-send-pr: mostlyclean-send-pr
4fa63067 16910
b813574b
PB
16911mostlyclean-send-pr:
16912 @[ -f ./send-pr/Makefile ] || exit 0; \
4fa63067
NN
16913 r=`${PWD_COMMAND}`; export r; \
16914 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16915 $(SET_LIB_PATH) \
378fce5b 16916 $(HOST_EXPORTS) \
b813574b 16917 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
16918 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16919 done; \
b813574b
PB
16920 echo "Doing mostlyclean in send-pr" ; \
16921 (cd send-pr && \
4fa63067
NN
16922 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16923 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16924 "RANLIB=$${RANLIB}" \
16925 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 16926 mostlyclean) \
4fa63067
NN
16927 || exit 1
16928
b813574b 16929@endif send-pr
4fa63067 16930
b813574b
PB
16931.PHONY: maybe-clean-send-pr clean-send-pr
16932maybe-clean-send-pr:
16933@if send-pr
16934maybe-clean-send-pr: clean-send-pr
4fa63067 16935
b813574b
PB
16936clean-send-pr:
16937 @[ -f ./send-pr/Makefile ] || exit 0; \
4fa63067
NN
16938 r=`${PWD_COMMAND}`; export r; \
16939 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16940 $(SET_LIB_PATH) \
378fce5b 16941 $(HOST_EXPORTS) \
b813574b 16942 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
16943 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16944 done; \
b813574b
PB
16945 echo "Doing clean in send-pr" ; \
16946 (cd send-pr && \
4fa63067
NN
16947 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16948 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16949 "RANLIB=$${RANLIB}" \
16950 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 16951 clean) \
4fa63067
NN
16952 || exit 1
16953
b813574b 16954@endif send-pr
4fa63067 16955
b813574b
PB
16956.PHONY: maybe-distclean-send-pr distclean-send-pr
16957maybe-distclean-send-pr:
16958@if send-pr
16959maybe-distclean-send-pr: distclean-send-pr
4fa63067 16960
b813574b
PB
16961distclean-send-pr:
16962 @[ -f ./send-pr/Makefile ] || exit 0; \
4fa63067
NN
16963 r=`${PWD_COMMAND}`; export r; \
16964 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16965 $(SET_LIB_PATH) \
378fce5b 16966 $(HOST_EXPORTS) \
b813574b 16967 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
16968 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16969 done; \
b813574b
PB
16970 echo "Doing distclean in send-pr" ; \
16971 (cd send-pr && \
4fa63067
NN
16972 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16973 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16974 "RANLIB=$${RANLIB}" \
16975 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 16976 distclean) \
4fa63067
NN
16977 || exit 1
16978
b813574b 16979@endif send-pr
4fa63067 16980
b813574b
PB
16981.PHONY: maybe-maintainer-clean-send-pr maintainer-clean-send-pr
16982maybe-maintainer-clean-send-pr:
16983@if send-pr
16984maybe-maintainer-clean-send-pr: maintainer-clean-send-pr
4fa63067 16985
b813574b
PB
16986maintainer-clean-send-pr:
16987 @[ -f ./send-pr/Makefile ] || exit 0; \
4fa63067 16988 r=`${PWD_COMMAND}`; export r; \
b40e3958 16989 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 16990 $(SET_LIB_PATH) \
378fce5b 16991 $(HOST_EXPORTS) \
b813574b 16992 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
16993 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16994 done; \
b813574b
PB
16995 echo "Doing maintainer-clean in send-pr" ; \
16996 (cd send-pr && \
4fa63067
NN
16997 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16998 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16999 "RANLIB=$${RANLIB}" \
17000 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 17001 maintainer-clean) \
4fa63067 17002 || exit 1
3866be5d 17003
b813574b 17004@endif send-pr
3866be5d 17005
4fa63067 17006
b813574b
PB
17007.PHONY: configure-shellutils maybe-configure-shellutils
17008maybe-configure-shellutils:
17009@if shellutils
17010maybe-configure-shellutils: configure-shellutils
17011configure-shellutils:
17012 @test ! -f shellutils/Makefile || exit 0; \
17013 [ -d shellutils ] || mkdir shellutils; \
b40e3958
L
17014 r=`${PWD_COMMAND}`; export r; \
17015 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 17016 $(HOST_EXPORTS) \
b813574b
PB
17017 echo Configuring in shellutils; \
17018 cd shellutils || exit 1; \
e2b9e2dc
NN
17019 case $(srcdir) in \
17020 \.) \
17021 srcdiroption="--srcdir=."; \
17022 libsrcdir=".";; \
17023 /* | [A-Za-z]:[\\/]*) \
b813574b
PB
17024 srcdiroption="--srcdir=$(srcdir)/shellutils"; \
17025 libsrcdir="$$s/shellutils";; \
e2b9e2dc 17026 *) \
b813574b
PB
17027 srcdiroption="--srcdir=../$(srcdir)/shellutils"; \
17028 libsrcdir="$$s/shellutils";; \
e2b9e2dc
NN
17029 esac; \
17030 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 17031 $(HOST_CONFIGARGS) $${srcdiroption} \
e2b9e2dc 17032 || exit 1
b813574b 17033@endif shellutils
e2b9e2dc 17034
b813574b
PB
17035.PHONY: all-shellutils maybe-all-shellutils
17036maybe-all-shellutils:
17037@if shellutils
17038maybe-all-shellutils: all-shellutils
17039all-shellutils: configure-shellutils
b40e3958
L
17040 @r=`${PWD_COMMAND}`; export r; \
17041 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 17042 $(SET_LIB_PATH) \
378fce5b 17043 $(HOST_EXPORTS) \
b813574b
PB
17044 (cd shellutils && $(MAKE) $(FLAGS_TO_PASS) all)
17045@endif shellutils
3866be5d 17046
b813574b
PB
17047.PHONY: check-shellutils maybe-check-shellutils
17048maybe-check-shellutils:
17049@if shellutils
17050maybe-check-shellutils: check-shellutils
3866be5d 17051
b813574b 17052check-shellutils:
b40e3958
L
17053 @r=`${PWD_COMMAND}`; export r; \
17054 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 17055 $(SET_LIB_PATH) \
378fce5b 17056 $(HOST_EXPORTS) \
72b2455a 17057 (cd shellutils && $(MAKE) $(FLAGS_TO_PASS) check)
3866be5d 17058
b813574b 17059@endif shellutils
3866be5d 17060
b813574b
PB
17061.PHONY: install-shellutils maybe-install-shellutils
17062maybe-install-shellutils:
17063@if shellutils
17064maybe-install-shellutils: install-shellutils
16ae0395 17065
b813574b 17066install-shellutils: installdirs
b40e3958
L
17067 @r=`${PWD_COMMAND}`; export r; \
17068 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 17069 $(SET_LIB_PATH) \
378fce5b 17070 $(HOST_EXPORTS) \
72b2455a 17071 (cd shellutils && $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 17072
b813574b 17073@endif shellutils
4fa63067
NN
17074
17075# Other targets (info, dvi, etc.)
17076
b813574b
PB
17077.PHONY: maybe-info-shellutils info-shellutils
17078maybe-info-shellutils:
17079@if shellutils
17080maybe-info-shellutils: info-shellutils
4fa63067 17081
b813574b
PB
17082info-shellutils: \
17083 configure-shellutils
17084 @[ -f ./shellutils/Makefile ] || exit 0; \
4fa63067
NN
17085 r=`${PWD_COMMAND}`; export r; \
17086 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17087 $(SET_LIB_PATH) \
378fce5b 17088 $(HOST_EXPORTS) \
b813574b 17089 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
17090 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17091 done; \
b813574b
PB
17092 echo "Doing info in shellutils" ; \
17093 (cd shellutils && \
4fa63067
NN
17094 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17095 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17096 "RANLIB=$${RANLIB}" \
17097 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 17098 info) \
4fa63067
NN
17099 || exit 1
17100
b813574b 17101@endif shellutils
4fa63067 17102
b813574b
PB
17103.PHONY: maybe-dvi-shellutils dvi-shellutils
17104maybe-dvi-shellutils:
17105@if shellutils
17106maybe-dvi-shellutils: dvi-shellutils
4fa63067 17107
b813574b
PB
17108dvi-shellutils: \
17109 configure-shellutils
17110 @[ -f ./shellutils/Makefile ] || exit 0; \
4fa63067
NN
17111 r=`${PWD_COMMAND}`; export r; \
17112 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17113 $(SET_LIB_PATH) \
378fce5b 17114 $(HOST_EXPORTS) \
b813574b 17115 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
17116 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17117 done; \
b813574b
PB
17118 echo "Doing dvi in shellutils" ; \
17119 (cd shellutils && \
4fa63067
NN
17120 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17121 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17122 "RANLIB=$${RANLIB}" \
17123 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 17124 dvi) \
4fa63067
NN
17125 || exit 1
17126
b813574b 17127@endif shellutils
4fa63067 17128
b813574b
PB
17129.PHONY: maybe-TAGS-shellutils TAGS-shellutils
17130maybe-TAGS-shellutils:
17131@if shellutils
17132maybe-TAGS-shellutils: TAGS-shellutils
4fa63067 17133
b813574b
PB
17134TAGS-shellutils: \
17135 configure-shellutils
17136 @[ -f ./shellutils/Makefile ] || exit 0; \
4fa63067
NN
17137 r=`${PWD_COMMAND}`; export r; \
17138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17139 $(SET_LIB_PATH) \
378fce5b 17140 $(HOST_EXPORTS) \
b813574b 17141 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
17142 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17143 done; \
b813574b
PB
17144 echo "Doing TAGS in shellutils" ; \
17145 (cd shellutils && \
4fa63067
NN
17146 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17147 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17148 "RANLIB=$${RANLIB}" \
17149 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 17150 TAGS) \
4fa63067
NN
17151 || exit 1
17152
b813574b 17153@endif shellutils
4fa63067 17154
b813574b
PB
17155.PHONY: maybe-install-info-shellutils install-info-shellutils
17156maybe-install-info-shellutils:
17157@if shellutils
17158maybe-install-info-shellutils: install-info-shellutils
4fa63067 17159
b813574b
PB
17160install-info-shellutils: \
17161 configure-shellutils \
17162 info-shellutils
17163 @[ -f ./shellutils/Makefile ] || exit 0; \
4fa63067
NN
17164 r=`${PWD_COMMAND}`; export r; \
17165 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17166 $(SET_LIB_PATH) \
378fce5b 17167 $(HOST_EXPORTS) \
b813574b 17168 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
17169 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17170 done; \
b813574b
PB
17171 echo "Doing install-info in shellutils" ; \
17172 (cd shellutils && \
4fa63067
NN
17173 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17174 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17175 "RANLIB=$${RANLIB}" \
17176 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 17177 install-info) \
4fa63067
NN
17178 || exit 1
17179
b813574b 17180@endif shellutils
4fa63067 17181
b813574b
PB
17182.PHONY: maybe-installcheck-shellutils installcheck-shellutils
17183maybe-installcheck-shellutils:
17184@if shellutils
17185maybe-installcheck-shellutils: installcheck-shellutils
4fa63067 17186
b813574b
PB
17187installcheck-shellutils: \
17188 configure-shellutils
17189 @[ -f ./shellutils/Makefile ] || exit 0; \
4fa63067
NN
17190 r=`${PWD_COMMAND}`; export r; \
17191 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17192 $(SET_LIB_PATH) \
378fce5b 17193 $(HOST_EXPORTS) \
b813574b 17194 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
17195 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17196 done; \
b813574b
PB
17197 echo "Doing installcheck in shellutils" ; \
17198 (cd shellutils && \
4fa63067
NN
17199 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17200 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17201 "RANLIB=$${RANLIB}" \
17202 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 17203 installcheck) \
4fa63067
NN
17204 || exit 1
17205
b813574b 17206@endif shellutils
4fa63067 17207
b813574b
PB
17208.PHONY: maybe-mostlyclean-shellutils mostlyclean-shellutils
17209maybe-mostlyclean-shellutils:
17210@if shellutils
17211maybe-mostlyclean-shellutils: mostlyclean-shellutils
4fa63067 17212
b813574b
PB
17213mostlyclean-shellutils:
17214 @[ -f ./shellutils/Makefile ] || exit 0; \
4fa63067
NN
17215 r=`${PWD_COMMAND}`; export r; \
17216 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17217 $(SET_LIB_PATH) \
378fce5b 17218 $(HOST_EXPORTS) \
b813574b 17219 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
17220 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17221 done; \
b813574b
PB
17222 echo "Doing mostlyclean in shellutils" ; \
17223 (cd shellutils && \
4fa63067
NN
17224 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17225 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17226 "RANLIB=$${RANLIB}" \
17227 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 17228 mostlyclean) \
4fa63067
NN
17229 || exit 1
17230
b813574b 17231@endif shellutils
4fa63067 17232
b813574b
PB
17233.PHONY: maybe-clean-shellutils clean-shellutils
17234maybe-clean-shellutils:
17235@if shellutils
17236maybe-clean-shellutils: clean-shellutils
4fa63067 17237
b813574b
PB
17238clean-shellutils:
17239 @[ -f ./shellutils/Makefile ] || exit 0; \
4fa63067
NN
17240 r=`${PWD_COMMAND}`; export r; \
17241 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17242 $(SET_LIB_PATH) \
378fce5b 17243 $(HOST_EXPORTS) \
b813574b 17244 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
17245 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17246 done; \
b813574b
PB
17247 echo "Doing clean in shellutils" ; \
17248 (cd shellutils && \
4fa63067
NN
17249 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17250 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17251 "RANLIB=$${RANLIB}" \
17252 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 17253 clean) \
4fa63067
NN
17254 || exit 1
17255
b813574b 17256@endif shellutils
4fa63067 17257
b813574b
PB
17258.PHONY: maybe-distclean-shellutils distclean-shellutils
17259maybe-distclean-shellutils:
17260@if shellutils
17261maybe-distclean-shellutils: distclean-shellutils
4fa63067 17262
b813574b
PB
17263distclean-shellutils:
17264 @[ -f ./shellutils/Makefile ] || exit 0; \
4fa63067
NN
17265 r=`${PWD_COMMAND}`; export r; \
17266 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17267 $(SET_LIB_PATH) \
378fce5b 17268 $(HOST_EXPORTS) \
b813574b 17269 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
17270 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17271 done; \
b813574b
PB
17272 echo "Doing distclean in shellutils" ; \
17273 (cd shellutils && \
4fa63067
NN
17274 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17275 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17276 "RANLIB=$${RANLIB}" \
17277 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 17278 distclean) \
4fa63067
NN
17279 || exit 1
17280
b813574b 17281@endif shellutils
4fa63067 17282
b813574b
PB
17283.PHONY: maybe-maintainer-clean-shellutils maintainer-clean-shellutils
17284maybe-maintainer-clean-shellutils:
17285@if shellutils
17286maybe-maintainer-clean-shellutils: maintainer-clean-shellutils
4fa63067 17287
b813574b
PB
17288maintainer-clean-shellutils:
17289 @[ -f ./shellutils/Makefile ] || exit 0; \
4fa63067
NN
17290 r=`${PWD_COMMAND}`; export r; \
17291 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17292 $(SET_LIB_PATH) \
378fce5b 17293 $(HOST_EXPORTS) \
b813574b 17294 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
17295 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17296 done; \
b813574b
PB
17297 echo "Doing maintainer-clean in shellutils" ; \
17298 (cd shellutils && \
4fa63067
NN
17299 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17300 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17301 "RANLIB=$${RANLIB}" \
17302 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 17303 maintainer-clean) \
4fa63067 17304 || exit 1
3866be5d 17305
b813574b 17306@endif shellutils
3866be5d 17307
4fa63067 17308
b813574b
PB
17309.PHONY: configure-sid maybe-configure-sid
17310maybe-configure-sid:
17311@if sid
17312maybe-configure-sid: configure-sid
17313configure-sid:
17314 @test ! -f sid/Makefile || exit 0; \
17315 [ -d sid ] || mkdir sid; \
b40e3958
L
17316 r=`${PWD_COMMAND}`; export r; \
17317 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 17318 $(HOST_EXPORTS) \
b813574b
PB
17319 echo Configuring in sid; \
17320 cd sid || exit 1; \
e2b9e2dc
NN
17321 case $(srcdir) in \
17322 \.) \
17323 srcdiroption="--srcdir=."; \
17324 libsrcdir=".";; \
17325 /* | [A-Za-z]:[\\/]*) \
b813574b
PB
17326 srcdiroption="--srcdir=$(srcdir)/sid"; \
17327 libsrcdir="$$s/sid";; \
e2b9e2dc 17328 *) \
b813574b
PB
17329 srcdiroption="--srcdir=../$(srcdir)/sid"; \
17330 libsrcdir="$$s/sid";; \
e2b9e2dc
NN
17331 esac; \
17332 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 17333 $(HOST_CONFIGARGS) $${srcdiroption} \
e2b9e2dc 17334 || exit 1
b813574b 17335@endif sid
e2b9e2dc 17336
b813574b
PB
17337.PHONY: all-sid maybe-all-sid
17338maybe-all-sid:
17339@if sid
17340maybe-all-sid: all-sid
17341all-sid: configure-sid
b40e3958
L
17342 @r=`${PWD_COMMAND}`; export r; \
17343 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 17344 $(SET_LIB_PATH) \
378fce5b 17345 $(HOST_EXPORTS) \
b813574b
PB
17346 (cd sid && $(MAKE) $(FLAGS_TO_PASS) all)
17347@endif sid
3866be5d 17348
b813574b
PB
17349.PHONY: check-sid maybe-check-sid
17350maybe-check-sid:
17351@if sid
17352maybe-check-sid: check-sid
3866be5d 17353
b813574b 17354check-sid:
4fa63067
NN
17355 @r=`${PWD_COMMAND}`; export r; \
17356 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17357 $(SET_LIB_PATH) \
378fce5b 17358 $(HOST_EXPORTS) \
72b2455a 17359 (cd sid && $(MAKE) $(FLAGS_TO_PASS) check)
3866be5d 17360
b813574b 17361@endif sid
3866be5d 17362
b813574b
PB
17363.PHONY: install-sid maybe-install-sid
17364maybe-install-sid:
17365@if sid
17366maybe-install-sid: install-sid
16ae0395 17367
b813574b 17368install-sid: installdirs
b40e3958
L
17369 @r=`${PWD_COMMAND}`; export r; \
17370 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 17371 $(SET_LIB_PATH) \
378fce5b 17372 $(HOST_EXPORTS) \
72b2455a 17373 (cd sid && $(MAKE) $(FLAGS_TO_PASS) install)
3866be5d 17374
b813574b 17375@endif sid
3866be5d 17376
4fa63067
NN
17377# Other targets (info, dvi, etc.)
17378
b813574b
PB
17379.PHONY: maybe-info-sid info-sid
17380maybe-info-sid:
17381@if sid
17382maybe-info-sid: info-sid
4fa63067 17383
b813574b
PB
17384info-sid: \
17385 configure-sid
17386 @[ -f ./sid/Makefile ] || exit 0; \
4fa63067
NN
17387 r=`${PWD_COMMAND}`; export r; \
17388 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17389 $(SET_LIB_PATH) \
378fce5b 17390 $(HOST_EXPORTS) \
b813574b 17391 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
17392 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17393 done; \
b813574b
PB
17394 echo "Doing info in sid" ; \
17395 (cd sid && \
4fa63067
NN
17396 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17397 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17398 "RANLIB=$${RANLIB}" \
17399 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 17400 info) \
4fa63067
NN
17401 || exit 1
17402
b813574b 17403@endif sid
4fa63067 17404
b813574b
PB
17405.PHONY: maybe-dvi-sid dvi-sid
17406maybe-dvi-sid:
17407@if sid
17408maybe-dvi-sid: dvi-sid
4fa63067 17409
b813574b
PB
17410dvi-sid: \
17411 configure-sid
17412 @[ -f ./sid/Makefile ] || exit 0; \
4fa63067
NN
17413 r=`${PWD_COMMAND}`; export r; \
17414 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17415 $(SET_LIB_PATH) \
378fce5b 17416 $(HOST_EXPORTS) \
b813574b 17417 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
17418 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17419 done; \
b813574b
PB
17420 echo "Doing dvi in sid" ; \
17421 (cd sid && \
4fa63067
NN
17422 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17423 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17424 "RANLIB=$${RANLIB}" \
17425 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 17426 dvi) \
4fa63067
NN
17427 || exit 1
17428
b813574b 17429@endif sid
4fa63067 17430
b813574b
PB
17431.PHONY: maybe-TAGS-sid TAGS-sid
17432maybe-TAGS-sid:
17433@if sid
17434maybe-TAGS-sid: TAGS-sid
4fa63067 17435
b813574b
PB
17436TAGS-sid: \
17437 configure-sid
17438 @[ -f ./sid/Makefile ] || exit 0; \
4fa63067
NN
17439 r=`${PWD_COMMAND}`; export r; \
17440 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17441 $(SET_LIB_PATH) \
378fce5b 17442 $(HOST_EXPORTS) \
b813574b 17443 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
17444 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17445 done; \
b813574b
PB
17446 echo "Doing TAGS in sid" ; \
17447 (cd sid && \
4fa63067
NN
17448 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17449 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17450 "RANLIB=$${RANLIB}" \
17451 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 17452 TAGS) \
4fa63067
NN
17453 || exit 1
17454
b813574b 17455@endif sid
4fa63067 17456
b813574b
PB
17457.PHONY: maybe-install-info-sid install-info-sid
17458maybe-install-info-sid:
17459@if sid
17460maybe-install-info-sid: install-info-sid
4fa63067 17461
b813574b
PB
17462install-info-sid: \
17463 configure-sid \
17464 info-sid
17465 @[ -f ./sid/Makefile ] || exit 0; \
4fa63067
NN
17466 r=`${PWD_COMMAND}`; export r; \
17467 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17468 $(SET_LIB_PATH) \
378fce5b 17469 $(HOST_EXPORTS) \
b813574b 17470 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
17471 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17472 done; \
b813574b
PB
17473 echo "Doing install-info in sid" ; \
17474 (cd sid && \
4fa63067
NN
17475 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17476 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17477 "RANLIB=$${RANLIB}" \
17478 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 17479 install-info) \
4fa63067
NN
17480 || exit 1
17481
b813574b 17482@endif sid
4fa63067 17483
b813574b
PB
17484.PHONY: maybe-installcheck-sid installcheck-sid
17485maybe-installcheck-sid:
17486@if sid
17487maybe-installcheck-sid: installcheck-sid
4fa63067 17488
b813574b
PB
17489installcheck-sid: \
17490 configure-sid
17491 @[ -f ./sid/Makefile ] || exit 0; \
17492 r=`${PWD_COMMAND}`; export r; \
4fa63067
NN
17493 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17494 $(SET_LIB_PATH) \
378fce5b 17495 $(HOST_EXPORTS) \
b813574b 17496 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
17497 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17498 done; \
b813574b
PB
17499 echo "Doing installcheck in sid" ; \
17500 (cd sid && \
4fa63067
NN
17501 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17502 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17503 "RANLIB=$${RANLIB}" \
17504 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 17505 installcheck) \
4fa63067
NN
17506 || exit 1
17507
b813574b 17508@endif sid
4fa63067 17509
b813574b
PB
17510.PHONY: maybe-mostlyclean-sid mostlyclean-sid
17511maybe-mostlyclean-sid:
17512@if sid
17513maybe-mostlyclean-sid: mostlyclean-sid
4fa63067 17514
b813574b
PB
17515mostlyclean-sid:
17516 @[ -f ./sid/Makefile ] || exit 0; \
4fa63067
NN
17517 r=`${PWD_COMMAND}`; export r; \
17518 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17519 $(SET_LIB_PATH) \
378fce5b 17520 $(HOST_EXPORTS) \
b813574b 17521 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
17522 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17523 done; \
b813574b
PB
17524 echo "Doing mostlyclean in sid" ; \
17525 (cd sid && \
4fa63067
NN
17526 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17527 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17528 "RANLIB=$${RANLIB}" \
17529 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 17530 mostlyclean) \
4fa63067
NN
17531 || exit 1
17532
b813574b 17533@endif sid
4fa63067 17534
b813574b
PB
17535.PHONY: maybe-clean-sid clean-sid
17536maybe-clean-sid:
17537@if sid
17538maybe-clean-sid: clean-sid
4fa63067 17539
b813574b
PB
17540clean-sid:
17541 @[ -f ./sid/Makefile ] || exit 0; \
4fa63067
NN
17542 r=`${PWD_COMMAND}`; export r; \
17543 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17544 $(SET_LIB_PATH) \
378fce5b 17545 $(HOST_EXPORTS) \
b813574b 17546 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
17547 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17548 done; \
b813574b
PB
17549 echo "Doing clean in sid" ; \
17550 (cd sid && \
4fa63067
NN
17551 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17552 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17553 "RANLIB=$${RANLIB}" \
17554 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 17555 clean) \
4fa63067
NN
17556 || exit 1
17557
b813574b 17558@endif sid
4fa63067 17559
b813574b
PB
17560.PHONY: maybe-distclean-sid distclean-sid
17561maybe-distclean-sid:
17562@if sid
17563maybe-distclean-sid: distclean-sid
4fa63067 17564
b813574b
PB
17565distclean-sid:
17566 @[ -f ./sid/Makefile ] || exit 0; \
4fa63067
NN
17567 r=`${PWD_COMMAND}`; export r; \
17568 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17569 $(SET_LIB_PATH) \
378fce5b 17570 $(HOST_EXPORTS) \
b813574b 17571 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
17572 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17573 done; \
b813574b
PB
17574 echo "Doing distclean in sid" ; \
17575 (cd sid && \
4fa63067
NN
17576 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17577 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17578 "RANLIB=$${RANLIB}" \
17579 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 17580 distclean) \
4fa63067
NN
17581 || exit 1
17582
b813574b 17583@endif sid
4fa63067 17584
b813574b
PB
17585.PHONY: maybe-maintainer-clean-sid maintainer-clean-sid
17586maybe-maintainer-clean-sid:
17587@if sid
17588maybe-maintainer-clean-sid: maintainer-clean-sid
4fa63067 17589
b813574b
PB
17590maintainer-clean-sid:
17591 @[ -f ./sid/Makefile ] || exit 0; \
4fa63067
NN
17592 r=`${PWD_COMMAND}`; export r; \
17593 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17594 $(SET_LIB_PATH) \
378fce5b 17595 $(HOST_EXPORTS) \
b813574b 17596 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
17597 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17598 done; \
b813574b
PB
17599 echo "Doing maintainer-clean in sid" ; \
17600 (cd sid && \
4fa63067
NN
17601 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17602 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17603 "RANLIB=$${RANLIB}" \
17604 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 17605 maintainer-clean) \
4fa63067
NN
17606 || exit 1
17607
b813574b 17608@endif sid
4fa63067
NN
17609
17610
b813574b
PB
17611.PHONY: configure-sim maybe-configure-sim
17612maybe-configure-sim:
17613@if sim
17614maybe-configure-sim: configure-sim
17615configure-sim:
17616 @test ! -f sim/Makefile || exit 0; \
17617 [ -d sim ] || mkdir sim; \
b40e3958
L
17618 r=`${PWD_COMMAND}`; export r; \
17619 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 17620 $(HOST_EXPORTS) \
b813574b
PB
17621 echo Configuring in sim; \
17622 cd sim || exit 1; \
e2b9e2dc
NN
17623 case $(srcdir) in \
17624 \.) \
17625 srcdiroption="--srcdir=."; \
17626 libsrcdir=".";; \
17627 /* | [A-Za-z]:[\\/]*) \
b813574b
PB
17628 srcdiroption="--srcdir=$(srcdir)/sim"; \
17629 libsrcdir="$$s/sim";; \
e2b9e2dc 17630 *) \
b813574b
PB
17631 srcdiroption="--srcdir=../$(srcdir)/sim"; \
17632 libsrcdir="$$s/sim";; \
e2b9e2dc
NN
17633 esac; \
17634 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 17635 $(HOST_CONFIGARGS) $${srcdiroption} \
e2b9e2dc 17636 || exit 1
b813574b 17637@endif sim
e2b9e2dc 17638
b813574b
PB
17639.PHONY: all-sim maybe-all-sim
17640maybe-all-sim:
17641@if sim
17642maybe-all-sim: all-sim
17643all-sim: configure-sim
b40e3958
L
17644 @r=`${PWD_COMMAND}`; export r; \
17645 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 17646 $(SET_LIB_PATH) \
378fce5b 17647 $(HOST_EXPORTS) \
b813574b
PB
17648 (cd sim && $(MAKE) $(FLAGS_TO_PASS) all)
17649@endif sim
3866be5d 17650
b813574b
PB
17651.PHONY: check-sim maybe-check-sim
17652maybe-check-sim:
17653@if sim
17654maybe-check-sim: check-sim
3866be5d 17655
b813574b 17656check-sim:
b40e3958
L
17657 @r=`${PWD_COMMAND}`; export r; \
17658 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 17659 $(SET_LIB_PATH) \
378fce5b 17660 $(HOST_EXPORTS) \
72b2455a 17661 (cd sim && $(MAKE) $(FLAGS_TO_PASS) check)
3866be5d 17662
b813574b 17663@endif sim
3866be5d 17664
b813574b
PB
17665.PHONY: install-sim maybe-install-sim
17666maybe-install-sim:
17667@if sim
17668maybe-install-sim: install-sim
16ae0395 17669
b813574b 17670install-sim: installdirs
b40e3958
L
17671 @r=`${PWD_COMMAND}`; export r; \
17672 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 17673 $(SET_LIB_PATH) \
378fce5b 17674 $(HOST_EXPORTS) \
72b2455a 17675 (cd sim && $(MAKE) $(FLAGS_TO_PASS) install)
3866be5d 17676
b813574b 17677@endif sim
3866be5d 17678
4fa63067
NN
17679# Other targets (info, dvi, etc.)
17680
b813574b
PB
17681.PHONY: maybe-info-sim info-sim
17682maybe-info-sim:
17683@if sim
17684maybe-info-sim: info-sim
4fa63067 17685
b813574b
PB
17686info-sim: \
17687 configure-sim
17688 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
17689 r=`${PWD_COMMAND}`; export r; \
17690 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fa63067 17691 $(SET_LIB_PATH) \
378fce5b 17692 $(HOST_EXPORTS) \
b813574b 17693 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
17694 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17695 done; \
b813574b
PB
17696 echo "Doing info in sim" ; \
17697 (cd sim && \
4fa63067
NN
17698 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17699 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17700 "RANLIB=$${RANLIB}" \
17701 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 17702 info) \
e2b9e2dc
NN
17703 || exit 1
17704
b813574b 17705@endif sim
4fa63067 17706
b813574b
PB
17707.PHONY: maybe-dvi-sim dvi-sim
17708maybe-dvi-sim:
17709@if sim
17710maybe-dvi-sim: dvi-sim
4fa63067 17711
b813574b
PB
17712dvi-sim: \
17713 configure-sim
17714 @[ -f ./sim/Makefile ] || exit 0; \
4fa63067 17715 r=`${PWD_COMMAND}`; export r; \
b40e3958 17716 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 17717 $(SET_LIB_PATH) \
378fce5b 17718 $(HOST_EXPORTS) \
b813574b 17719 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
17720 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17721 done; \
b813574b
PB
17722 echo "Doing dvi in sim" ; \
17723 (cd sim && \
4fa63067
NN
17724 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17725 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17726 "RANLIB=$${RANLIB}" \
17727 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 17728 dvi) \
4fa63067 17729 || exit 1
3866be5d 17730
b813574b 17731@endif sim
3866be5d 17732
b813574b
PB
17733.PHONY: maybe-TAGS-sim TAGS-sim
17734maybe-TAGS-sim:
17735@if sim
17736maybe-TAGS-sim: TAGS-sim
4fa63067 17737
b813574b
PB
17738TAGS-sim: \
17739 configure-sim
17740 @[ -f ./sim/Makefile ] || exit 0; \
4fa63067 17741 r=`${PWD_COMMAND}`; export r; \
b40e3958 17742 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 17743 $(SET_LIB_PATH) \
378fce5b 17744 $(HOST_EXPORTS) \
b813574b 17745 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
17746 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17747 done; \
b813574b
PB
17748 echo "Doing TAGS in sim" ; \
17749 (cd sim && \
4fa63067
NN
17750 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17751 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17752 "RANLIB=$${RANLIB}" \
17753 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 17754 TAGS) \
4fa63067 17755 || exit 1
3866be5d 17756
b813574b 17757@endif sim
3866be5d 17758
b813574b
PB
17759.PHONY: maybe-install-info-sim install-info-sim
17760maybe-install-info-sim:
17761@if sim
17762maybe-install-info-sim: install-info-sim
4fa63067 17763
b813574b
PB
17764install-info-sim: \
17765 configure-sim \
17766 info-sim
17767 @[ -f ./sim/Makefile ] || exit 0; \
4fa63067
NN
17768 r=`${PWD_COMMAND}`; export r; \
17769 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17770 $(SET_LIB_PATH) \
378fce5b 17771 $(HOST_EXPORTS) \
b813574b 17772 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
17773 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17774 done; \
b813574b
PB
17775 echo "Doing install-info in sim" ; \
17776 (cd sim && \
4fa63067
NN
17777 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17778 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17779 "RANLIB=$${RANLIB}" \
17780 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 17781 install-info) \
4fa63067
NN
17782 || exit 1
17783
b813574b 17784@endif sim
4fa63067 17785
b813574b
PB
17786.PHONY: maybe-installcheck-sim installcheck-sim
17787maybe-installcheck-sim:
17788@if sim
17789maybe-installcheck-sim: installcheck-sim
4fa63067 17790
b813574b
PB
17791installcheck-sim: \
17792 configure-sim
17793 @[ -f ./sim/Makefile ] || exit 0; \
4fa63067
NN
17794 r=`${PWD_COMMAND}`; export r; \
17795 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17796 $(SET_LIB_PATH) \
378fce5b 17797 $(HOST_EXPORTS) \
b813574b 17798 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
17799 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17800 done; \
b813574b
PB
17801 echo "Doing installcheck in sim" ; \
17802 (cd sim && \
4fa63067
NN
17803 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17804 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17805 "RANLIB=$${RANLIB}" \
17806 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 17807 installcheck) \
4fa63067
NN
17808 || exit 1
17809
b813574b 17810@endif sim
4fa63067 17811
b813574b
PB
17812.PHONY: maybe-mostlyclean-sim mostlyclean-sim
17813maybe-mostlyclean-sim:
17814@if sim
17815maybe-mostlyclean-sim: mostlyclean-sim
4fa63067 17816
b813574b
PB
17817mostlyclean-sim:
17818 @[ -f ./sim/Makefile ] || exit 0; \
4fa63067
NN
17819 r=`${PWD_COMMAND}`; export r; \
17820 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17821 $(SET_LIB_PATH) \
378fce5b 17822 $(HOST_EXPORTS) \
b813574b 17823 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
17824 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17825 done; \
b813574b
PB
17826 echo "Doing mostlyclean in sim" ; \
17827 (cd sim && \
4fa63067
NN
17828 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17829 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17830 "RANLIB=$${RANLIB}" \
17831 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 17832 mostlyclean) \
4fa63067
NN
17833 || exit 1
17834
b813574b 17835@endif sim
4fa63067 17836
b813574b
PB
17837.PHONY: maybe-clean-sim clean-sim
17838maybe-clean-sim:
17839@if sim
17840maybe-clean-sim: clean-sim
4fa63067 17841
b813574b
PB
17842clean-sim:
17843 @[ -f ./sim/Makefile ] || exit 0; \
4fa63067
NN
17844 r=`${PWD_COMMAND}`; export r; \
17845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17846 $(SET_LIB_PATH) \
378fce5b 17847 $(HOST_EXPORTS) \
b813574b 17848 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
17849 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17850 done; \
b813574b
PB
17851 echo "Doing clean in sim" ; \
17852 (cd sim && \
4fa63067
NN
17853 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17854 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17855 "RANLIB=$${RANLIB}" \
17856 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 17857 clean) \
4fa63067
NN
17858 || exit 1
17859
b813574b 17860@endif sim
4fa63067 17861
b813574b
PB
17862.PHONY: maybe-distclean-sim distclean-sim
17863maybe-distclean-sim:
17864@if sim
17865maybe-distclean-sim: distclean-sim
4fa63067 17866
b813574b
PB
17867distclean-sim:
17868 @[ -f ./sim/Makefile ] || exit 0; \
4fa63067
NN
17869 r=`${PWD_COMMAND}`; export r; \
17870 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17871 $(SET_LIB_PATH) \
378fce5b 17872 $(HOST_EXPORTS) \
b813574b 17873 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
17874 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17875 done; \
b813574b
PB
17876 echo "Doing distclean in sim" ; \
17877 (cd sim && \
4fa63067
NN
17878 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17879 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17880 "RANLIB=$${RANLIB}" \
17881 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 17882 distclean) \
4fa63067
NN
17883 || exit 1
17884
b813574b 17885@endif sim
4fa63067 17886
b813574b
PB
17887.PHONY: maybe-maintainer-clean-sim maintainer-clean-sim
17888maybe-maintainer-clean-sim:
17889@if sim
17890maybe-maintainer-clean-sim: maintainer-clean-sim
16ae0395 17891
b813574b
PB
17892maintainer-clean-sim:
17893 @[ -f ./sim/Makefile ] || exit 0; \
4fa63067 17894 r=`${PWD_COMMAND}`; export r; \
b40e3958 17895 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 17896 $(SET_LIB_PATH) \
378fce5b 17897 $(HOST_EXPORTS) \
b813574b 17898 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
17899 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17900 done; \
b813574b
PB
17901 echo "Doing maintainer-clean in sim" ; \
17902 (cd sim && \
4fa63067
NN
17903 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17904 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17905 "RANLIB=$${RANLIB}" \
17906 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 17907 maintainer-clean) \
4fa63067 17908 || exit 1
3866be5d 17909
b813574b 17910@endif sim
3866be5d 17911
4fa63067 17912
b813574b
PB
17913.PHONY: configure-tar maybe-configure-tar
17914maybe-configure-tar:
17915@if tar
17916maybe-configure-tar: configure-tar
17917configure-tar:
17918 @test ! -f tar/Makefile || exit 0; \
17919 [ -d tar ] || mkdir tar; \
b40e3958
L
17920 r=`${PWD_COMMAND}`; export r; \
17921 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 17922 $(HOST_EXPORTS) \
b813574b
PB
17923 echo Configuring in tar; \
17924 cd tar || exit 1; \
e2b9e2dc
NN
17925 case $(srcdir) in \
17926 \.) \
17927 srcdiroption="--srcdir=."; \
17928 libsrcdir=".";; \
17929 /* | [A-Za-z]:[\\/]*) \
b813574b
PB
17930 srcdiroption="--srcdir=$(srcdir)/tar"; \
17931 libsrcdir="$$s/tar";; \
e2b9e2dc 17932 *) \
b813574b
PB
17933 srcdiroption="--srcdir=../$(srcdir)/tar"; \
17934 libsrcdir="$$s/tar";; \
e2b9e2dc
NN
17935 esac; \
17936 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 17937 $(HOST_CONFIGARGS) $${srcdiroption} \
e2b9e2dc 17938 || exit 1
b813574b 17939@endif tar
e2b9e2dc 17940
b813574b
PB
17941.PHONY: all-tar maybe-all-tar
17942maybe-all-tar:
17943@if tar
17944maybe-all-tar: all-tar
17945all-tar: configure-tar
b40e3958
L
17946 @r=`${PWD_COMMAND}`; export r; \
17947 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 17948 $(SET_LIB_PATH) \
378fce5b 17949 $(HOST_EXPORTS) \
b813574b
PB
17950 (cd tar && $(MAKE) $(FLAGS_TO_PASS) all)
17951@endif tar
3866be5d 17952
b813574b
PB
17953.PHONY: check-tar maybe-check-tar
17954maybe-check-tar:
17955@if tar
17956maybe-check-tar: check-tar
3866be5d 17957
b813574b 17958check-tar:
b40e3958
L
17959 @r=`${PWD_COMMAND}`; export r; \
17960 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 17961 $(SET_LIB_PATH) \
378fce5b 17962 $(HOST_EXPORTS) \
72b2455a 17963 (cd tar && $(MAKE) $(FLAGS_TO_PASS) check)
3866be5d 17964
b813574b 17965@endif tar
3866be5d 17966
b813574b
PB
17967.PHONY: install-tar maybe-install-tar
17968maybe-install-tar:
17969@if tar
17970maybe-install-tar: install-tar
16ae0395 17971
b813574b
PB
17972install-tar: installdirs
17973 @r=`${PWD_COMMAND}`; export r; \
17974 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17975 $(SET_LIB_PATH) \
17976 $(HOST_EXPORTS) \
72b2455a 17977 (cd tar && $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 17978
b813574b 17979@endif tar
4fa63067
NN
17980
17981# Other targets (info, dvi, etc.)
17982
b813574b
PB
17983.PHONY: maybe-info-tar info-tar
17984maybe-info-tar:
17985@if tar
17986maybe-info-tar: info-tar
4fa63067 17987
b813574b
PB
17988info-tar: \
17989 configure-tar
17990 @[ -f ./tar/Makefile ] || exit 0; \
4fa63067 17991 r=`${PWD_COMMAND}`; export r; \
b40e3958 17992 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 17993 $(SET_LIB_PATH) \
378fce5b 17994 $(HOST_EXPORTS) \
b813574b 17995 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
17996 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17997 done; \
b813574b
PB
17998 echo "Doing info in tar" ; \
17999 (cd tar && \
4fa63067
NN
18000 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18001 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18002 "RANLIB=$${RANLIB}" \
18003 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 18004 info) \
4fa63067
NN
18005 || exit 1
18006
b813574b 18007@endif tar
4fa63067 18008
b813574b
PB
18009.PHONY: maybe-dvi-tar dvi-tar
18010maybe-dvi-tar:
18011@if tar
18012maybe-dvi-tar: dvi-tar
4fa63067 18013
b813574b
PB
18014dvi-tar: \
18015 configure-tar
18016 @[ -f ./tar/Makefile ] || exit 0; \
4fa63067
NN
18017 r=`${PWD_COMMAND}`; export r; \
18018 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18019 $(SET_LIB_PATH) \
378fce5b 18020 $(HOST_EXPORTS) \
b813574b 18021 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
18022 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18023 done; \
b813574b
PB
18024 echo "Doing dvi in tar" ; \
18025 (cd tar && \
4fa63067
NN
18026 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18027 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18028 "RANLIB=$${RANLIB}" \
18029 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 18030 dvi) \
4fa63067
NN
18031 || exit 1
18032
b813574b 18033@endif tar
4fa63067 18034
b813574b
PB
18035.PHONY: maybe-TAGS-tar TAGS-tar
18036maybe-TAGS-tar:
18037@if tar
18038maybe-TAGS-tar: TAGS-tar
4fa63067 18039
b813574b
PB
18040TAGS-tar: \
18041 configure-tar
18042 @[ -f ./tar/Makefile ] || exit 0; \
4fa63067
NN
18043 r=`${PWD_COMMAND}`; export r; \
18044 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18045 $(SET_LIB_PATH) \
378fce5b 18046 $(HOST_EXPORTS) \
b813574b 18047 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
18048 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18049 done; \
b813574b
PB
18050 echo "Doing TAGS in tar" ; \
18051 (cd tar && \
4fa63067
NN
18052 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18053 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18054 "RANLIB=$${RANLIB}" \
18055 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 18056 TAGS) \
4fa63067
NN
18057 || exit 1
18058
b813574b 18059@endif tar
4fa63067 18060
b813574b
PB
18061.PHONY: maybe-install-info-tar install-info-tar
18062maybe-install-info-tar:
18063@if tar
18064maybe-install-info-tar: install-info-tar
4fa63067 18065
b813574b
PB
18066install-info-tar: \
18067 configure-tar \
18068 info-tar
18069 @[ -f ./tar/Makefile ] || exit 0; \
4fa63067
NN
18070 r=`${PWD_COMMAND}`; export r; \
18071 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18072 $(SET_LIB_PATH) \
378fce5b 18073 $(HOST_EXPORTS) \
b813574b 18074 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
18075 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18076 done; \
b813574b
PB
18077 echo "Doing install-info in tar" ; \
18078 (cd tar && \
18079 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4fa63067
NN
18080 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18081 "RANLIB=$${RANLIB}" \
18082 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 18083 install-info) \
4fa63067
NN
18084 || exit 1
18085
b813574b 18086@endif tar
4fa63067 18087
b813574b
PB
18088.PHONY: maybe-installcheck-tar installcheck-tar
18089maybe-installcheck-tar:
18090@if tar
18091maybe-installcheck-tar: installcheck-tar
4fa63067 18092
b813574b
PB
18093installcheck-tar: \
18094 configure-tar
18095 @[ -f ./tar/Makefile ] || exit 0; \
4fa63067
NN
18096 r=`${PWD_COMMAND}`; export r; \
18097 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18098 $(SET_LIB_PATH) \
378fce5b 18099 $(HOST_EXPORTS) \
b813574b 18100 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
18101 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18102 done; \
b813574b
PB
18103 echo "Doing installcheck in tar" ; \
18104 (cd tar && \
4fa63067
NN
18105 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18106 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18107 "RANLIB=$${RANLIB}" \
18108 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 18109 installcheck) \
4fa63067
NN
18110 || exit 1
18111
b813574b 18112@endif tar
4fa63067 18113
b813574b
PB
18114.PHONY: maybe-mostlyclean-tar mostlyclean-tar
18115maybe-mostlyclean-tar:
18116@if tar
18117maybe-mostlyclean-tar: mostlyclean-tar
4fa63067 18118
b813574b
PB
18119mostlyclean-tar:
18120 @[ -f ./tar/Makefile ] || exit 0; \
4fa63067
NN
18121 r=`${PWD_COMMAND}`; export r; \
18122 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18123 $(SET_LIB_PATH) \
378fce5b 18124 $(HOST_EXPORTS) \
b813574b 18125 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
18126 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18127 done; \
b813574b
PB
18128 echo "Doing mostlyclean in tar" ; \
18129 (cd tar && \
4fa63067
NN
18130 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18131 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18132 "RANLIB=$${RANLIB}" \
18133 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 18134 mostlyclean) \
4fa63067
NN
18135 || exit 1
18136
b813574b 18137@endif tar
4fa63067 18138
b813574b
PB
18139.PHONY: maybe-clean-tar clean-tar
18140maybe-clean-tar:
18141@if tar
18142maybe-clean-tar: clean-tar
4fa63067 18143
b813574b
PB
18144clean-tar:
18145 @[ -f ./tar/Makefile ] || exit 0; \
4fa63067
NN
18146 r=`${PWD_COMMAND}`; export r; \
18147 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18148 $(SET_LIB_PATH) \
378fce5b 18149 $(HOST_EXPORTS) \
b813574b 18150 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
18151 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18152 done; \
b813574b
PB
18153 echo "Doing clean in tar" ; \
18154 (cd tar && \
4fa63067
NN
18155 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18156 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18157 "RANLIB=$${RANLIB}" \
18158 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 18159 clean) \
4fa63067
NN
18160 || exit 1
18161
b813574b 18162@endif tar
4fa63067 18163
b813574b
PB
18164.PHONY: maybe-distclean-tar distclean-tar
18165maybe-distclean-tar:
18166@if tar
18167maybe-distclean-tar: distclean-tar
4fa63067 18168
b813574b
PB
18169distclean-tar:
18170 @[ -f ./tar/Makefile ] || exit 0; \
4fa63067
NN
18171 r=`${PWD_COMMAND}`; export r; \
18172 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18173 $(SET_LIB_PATH) \
378fce5b 18174 $(HOST_EXPORTS) \
b813574b 18175 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
18176 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18177 done; \
b813574b
PB
18178 echo "Doing distclean in tar" ; \
18179 (cd tar && \
4fa63067
NN
18180 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18181 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18182 "RANLIB=$${RANLIB}" \
18183 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 18184 distclean) \
4fa63067
NN
18185 || exit 1
18186
b813574b 18187@endif tar
4fa63067 18188
b813574b
PB
18189.PHONY: maybe-maintainer-clean-tar maintainer-clean-tar
18190maybe-maintainer-clean-tar:
18191@if tar
18192maybe-maintainer-clean-tar: maintainer-clean-tar
4fa63067 18193
b813574b
PB
18194maintainer-clean-tar:
18195 @[ -f ./tar/Makefile ] || exit 0; \
4fa63067
NN
18196 r=`${PWD_COMMAND}`; export r; \
18197 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18198 $(SET_LIB_PATH) \
378fce5b 18199 $(HOST_EXPORTS) \
b813574b 18200 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
18201 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18202 done; \
b813574b
PB
18203 echo "Doing maintainer-clean in tar" ; \
18204 (cd tar && \
4fa63067
NN
18205 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18206 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18207 "RANLIB=$${RANLIB}" \
18208 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 18209 maintainer-clean) \
4fa63067 18210 || exit 1
3866be5d 18211
b813574b 18212@endif tar
3866be5d 18213
4fa63067 18214
b813574b
PB
18215.PHONY: configure-texinfo maybe-configure-texinfo
18216maybe-configure-texinfo:
18217@if texinfo
18218maybe-configure-texinfo: configure-texinfo
18219configure-texinfo:
18220 @test ! -f texinfo/Makefile || exit 0; \
18221 [ -d texinfo ] || mkdir texinfo; \
378fce5b
DD
18222 r=`${PWD_COMMAND}`; export r; \
18223 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18224 $(HOST_EXPORTS) \
b813574b
PB
18225 echo Configuring in texinfo; \
18226 cd texinfo || exit 1; \
e2b9e2dc
NN
18227 case $(srcdir) in \
18228 \.) \
18229 srcdiroption="--srcdir=."; \
18230 libsrcdir=".";; \
18231 /* | [A-Za-z]:[\\/]*) \
b813574b
PB
18232 srcdiroption="--srcdir=$(srcdir)/texinfo"; \
18233 libsrcdir="$$s/texinfo";; \
e2b9e2dc 18234 *) \
b813574b
PB
18235 srcdiroption="--srcdir=../$(srcdir)/texinfo"; \
18236 libsrcdir="$$s/texinfo";; \
e2b9e2dc
NN
18237 esac; \
18238 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 18239 $(HOST_CONFIGARGS) $${srcdiroption} \
e2b9e2dc 18240 || exit 1
b813574b 18241@endif texinfo
e2b9e2dc 18242
b813574b
PB
18243.PHONY: all-texinfo maybe-all-texinfo
18244maybe-all-texinfo:
18245@if texinfo
18246maybe-all-texinfo: all-texinfo
18247all-texinfo: configure-texinfo
b40e3958
L
18248 @r=`${PWD_COMMAND}`; export r; \
18249 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 18250 $(SET_LIB_PATH) \
378fce5b 18251 $(HOST_EXPORTS) \
b813574b
PB
18252 (cd texinfo && $(MAKE) $(FLAGS_TO_PASS) all)
18253@endif texinfo
3866be5d 18254
b813574b
PB
18255.PHONY: check-texinfo maybe-check-texinfo
18256maybe-check-texinfo:
18257@if texinfo
18258maybe-check-texinfo: check-texinfo
3866be5d 18259
b813574b 18260check-texinfo:
4fa63067
NN
18261 @r=`${PWD_COMMAND}`; export r; \
18262 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18263 $(SET_LIB_PATH) \
378fce5b 18264 $(HOST_EXPORTS) \
72b2455a 18265 (cd texinfo && $(MAKE) $(FLAGS_TO_PASS) check)
3866be5d 18266
b813574b 18267@endif texinfo
3866be5d 18268
b813574b
PB
18269.PHONY: install-texinfo maybe-install-texinfo
18270maybe-install-texinfo:
18271@if texinfo
18272maybe-install-texinfo: install-texinfo
16ae0395 18273
b813574b 18274install-texinfo:
3866be5d 18275
b813574b 18276@endif texinfo
3866be5d 18277
4fa63067
NN
18278# Other targets (info, dvi, etc.)
18279
b813574b
PB
18280.PHONY: maybe-info-texinfo info-texinfo
18281maybe-info-texinfo:
18282@if texinfo
18283maybe-info-texinfo: info-texinfo
4fa63067 18284
b813574b
PB
18285info-texinfo: \
18286 configure-texinfo
18287 @[ -f ./texinfo/Makefile ] || exit 0; \
4fa63067
NN
18288 r=`${PWD_COMMAND}`; export r; \
18289 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18290 $(SET_LIB_PATH) \
378fce5b 18291 $(HOST_EXPORTS) \
b813574b 18292 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
18293 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18294 done; \
b813574b
PB
18295 echo "Doing info in texinfo" ; \
18296 (cd texinfo && \
4fa63067
NN
18297 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18298 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18299 "RANLIB=$${RANLIB}" \
18300 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 18301 info) \
4fa63067
NN
18302 || exit 1
18303
b813574b 18304@endif texinfo
4fa63067 18305
b813574b
PB
18306.PHONY: maybe-dvi-texinfo dvi-texinfo
18307maybe-dvi-texinfo:
18308@if texinfo
18309maybe-dvi-texinfo: dvi-texinfo
4fa63067 18310
b813574b
PB
18311dvi-texinfo: \
18312 configure-texinfo
18313 @[ -f ./texinfo/Makefile ] || exit 0; \
4fa63067
NN
18314 r=`${PWD_COMMAND}`; export r; \
18315 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18316 $(SET_LIB_PATH) \
378fce5b 18317 $(HOST_EXPORTS) \
b813574b 18318 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
18319 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18320 done; \
b813574b
PB
18321 echo "Doing dvi in texinfo" ; \
18322 (cd texinfo && \
4fa63067
NN
18323 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18324 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18325 "RANLIB=$${RANLIB}" \
18326 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 18327 dvi) \
4fa63067
NN
18328 || exit 1
18329
b813574b 18330@endif texinfo
4fa63067 18331
b813574b
PB
18332.PHONY: maybe-TAGS-texinfo TAGS-texinfo
18333maybe-TAGS-texinfo:
18334@if texinfo
18335maybe-TAGS-texinfo: TAGS-texinfo
4fa63067 18336
b813574b
PB
18337TAGS-texinfo: \
18338 configure-texinfo
18339 @[ -f ./texinfo/Makefile ] || exit 0; \
4fa63067
NN
18340 r=`${PWD_COMMAND}`; export r; \
18341 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18342 $(SET_LIB_PATH) \
378fce5b 18343 $(HOST_EXPORTS) \
b813574b 18344 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
18345 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18346 done; \
b813574b
PB
18347 echo "Doing TAGS in texinfo" ; \
18348 (cd texinfo && \
4fa63067
NN
18349 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18350 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18351 "RANLIB=$${RANLIB}" \
18352 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 18353 TAGS) \
4fa63067
NN
18354 || exit 1
18355
b813574b 18356@endif texinfo
4fa63067 18357
b813574b
PB
18358.PHONY: maybe-install-info-texinfo install-info-texinfo
18359maybe-install-info-texinfo:
18360@if texinfo
18361maybe-install-info-texinfo: install-info-texinfo
4fa63067 18362
b813574b
PB
18363install-info-texinfo: \
18364 configure-texinfo \
18365 info-texinfo
18366 @[ -f ./texinfo/Makefile ] || exit 0; \
4fa63067
NN
18367 r=`${PWD_COMMAND}`; export r; \
18368 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18369 $(SET_LIB_PATH) \
378fce5b 18370 $(HOST_EXPORTS) \
b813574b 18371 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
18372 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18373 done; \
b813574b
PB
18374 echo "Doing install-info in texinfo" ; \
18375 (cd texinfo && \
4fa63067
NN
18376 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18377 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18378 "RANLIB=$${RANLIB}" \
18379 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 18380 install-info) \
4fa63067
NN
18381 || exit 1
18382
b813574b 18383@endif texinfo
4fa63067 18384
b813574b
PB
18385.PHONY: maybe-installcheck-texinfo installcheck-texinfo
18386maybe-installcheck-texinfo:
18387@if texinfo
18388maybe-installcheck-texinfo: installcheck-texinfo
4fa63067 18389
b813574b
PB
18390installcheck-texinfo: \
18391 configure-texinfo
18392 @[ -f ./texinfo/Makefile ] || exit 0; \
4fa63067
NN
18393 r=`${PWD_COMMAND}`; export r; \
18394 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18395 $(SET_LIB_PATH) \
378fce5b 18396 $(HOST_EXPORTS) \
b813574b 18397 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
18398 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18399 done; \
b813574b
PB
18400 echo "Doing installcheck in texinfo" ; \
18401 (cd texinfo && \
4fa63067
NN
18402 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18403 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18404 "RANLIB=$${RANLIB}" \
18405 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 18406 installcheck) \
4fa63067
NN
18407 || exit 1
18408
b813574b 18409@endif texinfo
4fa63067 18410
b813574b
PB
18411.PHONY: maybe-mostlyclean-texinfo mostlyclean-texinfo
18412maybe-mostlyclean-texinfo:
18413@if texinfo
18414maybe-mostlyclean-texinfo: mostlyclean-texinfo
4fa63067 18415
b813574b
PB
18416mostlyclean-texinfo:
18417 @[ -f ./texinfo/Makefile ] || exit 0; \
4fa63067
NN
18418 r=`${PWD_COMMAND}`; export r; \
18419 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18420 $(SET_LIB_PATH) \
378fce5b 18421 $(HOST_EXPORTS) \
b813574b 18422 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
18423 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18424 done; \
b813574b
PB
18425 echo "Doing mostlyclean in texinfo" ; \
18426 (cd texinfo && \
4fa63067
NN
18427 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18428 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18429 "RANLIB=$${RANLIB}" \
18430 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 18431 mostlyclean) \
4fa63067
NN
18432 || exit 1
18433
b813574b 18434@endif texinfo
4fa63067 18435
b813574b
PB
18436.PHONY: maybe-clean-texinfo clean-texinfo
18437maybe-clean-texinfo:
18438@if texinfo
18439maybe-clean-texinfo: clean-texinfo
4fa63067 18440
b813574b
PB
18441clean-texinfo:
18442 @[ -f ./texinfo/Makefile ] || exit 0; \
4fa63067
NN
18443 r=`${PWD_COMMAND}`; export r; \
18444 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18445 $(SET_LIB_PATH) \
378fce5b 18446 $(HOST_EXPORTS) \
b813574b 18447 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
18448 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18449 done; \
b813574b
PB
18450 echo "Doing clean in texinfo" ; \
18451 (cd texinfo && \
4fa63067
NN
18452 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18453 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18454 "RANLIB=$${RANLIB}" \
18455 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 18456 clean) \
4fa63067
NN
18457 || exit 1
18458
b813574b 18459@endif texinfo
4fa63067 18460
b813574b
PB
18461.PHONY: maybe-distclean-texinfo distclean-texinfo
18462maybe-distclean-texinfo:
18463@if texinfo
18464maybe-distclean-texinfo: distclean-texinfo
4fa63067 18465
b813574b
PB
18466distclean-texinfo:
18467 @[ -f ./texinfo/Makefile ] || exit 0; \
4fa63067
NN
18468 r=`${PWD_COMMAND}`; export r; \
18469 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18470 $(SET_LIB_PATH) \
378fce5b 18471 $(HOST_EXPORTS) \
b813574b 18472 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
18473 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18474 done; \
b813574b
PB
18475 echo "Doing distclean in texinfo" ; \
18476 (cd texinfo && \
4fa63067
NN
18477 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18478 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18479 "RANLIB=$${RANLIB}" \
18480 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 18481 distclean) \
4fa63067
NN
18482 || exit 1
18483
b813574b 18484@endif texinfo
4fa63067 18485
b813574b
PB
18486.PHONY: maybe-maintainer-clean-texinfo maintainer-clean-texinfo
18487maybe-maintainer-clean-texinfo:
18488@if texinfo
18489maybe-maintainer-clean-texinfo: maintainer-clean-texinfo
4fa63067 18490
b813574b
PB
18491maintainer-clean-texinfo:
18492 @[ -f ./texinfo/Makefile ] || exit 0; \
4fa63067
NN
18493 r=`${PWD_COMMAND}`; export r; \
18494 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18495 $(SET_LIB_PATH) \
378fce5b 18496 $(HOST_EXPORTS) \
b813574b 18497 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
18498 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18499 done; \
b813574b
PB
18500 echo "Doing maintainer-clean in texinfo" ; \
18501 (cd texinfo && \
4fa63067
NN
18502 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18503 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18504 "RANLIB=$${RANLIB}" \
18505 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 18506 maintainer-clean) \
4fa63067
NN
18507 || exit 1
18508
b813574b 18509@endif texinfo
4fa63067
NN
18510
18511
b813574b
PB
18512.PHONY: configure-textutils maybe-configure-textutils
18513maybe-configure-textutils:
18514@if textutils
18515maybe-configure-textutils: configure-textutils
18516configure-textutils:
18517 @test ! -f textutils/Makefile || exit 0; \
18518 [ -d textutils ] || mkdir textutils; \
b40e3958
L
18519 r=`${PWD_COMMAND}`; export r; \
18520 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 18521 $(HOST_EXPORTS) \
b813574b
PB
18522 echo Configuring in textutils; \
18523 cd textutils || exit 1; \
e2b9e2dc
NN
18524 case $(srcdir) in \
18525 \.) \
18526 srcdiroption="--srcdir=."; \
18527 libsrcdir=".";; \
18528 /* | [A-Za-z]:[\\/]*) \
b813574b
PB
18529 srcdiroption="--srcdir=$(srcdir)/textutils"; \
18530 libsrcdir="$$s/textutils";; \
e2b9e2dc 18531 *) \
b813574b
PB
18532 srcdiroption="--srcdir=../$(srcdir)/textutils"; \
18533 libsrcdir="$$s/textutils";; \
e2b9e2dc
NN
18534 esac; \
18535 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 18536 $(HOST_CONFIGARGS) $${srcdiroption} \
e2b9e2dc 18537 || exit 1
b813574b 18538@endif textutils
e2b9e2dc 18539
b813574b
PB
18540.PHONY: all-textutils maybe-all-textutils
18541maybe-all-textutils:
18542@if textutils
18543maybe-all-textutils: all-textutils
18544all-textutils: configure-textutils
b40e3958
L
18545 @r=`${PWD_COMMAND}`; export r; \
18546 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 18547 $(SET_LIB_PATH) \
378fce5b 18548 $(HOST_EXPORTS) \
b813574b
PB
18549 (cd textutils && $(MAKE) $(FLAGS_TO_PASS) all)
18550@endif textutils
3866be5d 18551
b813574b
PB
18552.PHONY: check-textutils maybe-check-textutils
18553maybe-check-textutils:
18554@if textutils
18555maybe-check-textutils: check-textutils
3866be5d 18556
b813574b 18557check-textutils:
b40e3958
L
18558 @r=`${PWD_COMMAND}`; export r; \
18559 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 18560 $(SET_LIB_PATH) \
378fce5b 18561 $(HOST_EXPORTS) \
72b2455a 18562 (cd textutils && $(MAKE) $(FLAGS_TO_PASS) check)
3866be5d 18563
b813574b 18564@endif textutils
3866be5d 18565
b813574b
PB
18566.PHONY: install-textutils maybe-install-textutils
18567maybe-install-textutils:
18568@if textutils
18569maybe-install-textutils: install-textutils
16ae0395 18570
b813574b 18571install-textutils: installdirs
b40e3958
L
18572 @r=`${PWD_COMMAND}`; export r; \
18573 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 18574 $(SET_LIB_PATH) \
378fce5b 18575 $(HOST_EXPORTS) \
72b2455a 18576 (cd textutils && $(MAKE) $(FLAGS_TO_PASS) install)
3866be5d 18577
b813574b 18578@endif textutils
3866be5d 18579
4fa63067
NN
18580# Other targets (info, dvi, etc.)
18581
b813574b
PB
18582.PHONY: maybe-info-textutils info-textutils
18583maybe-info-textutils:
18584@if textutils
18585maybe-info-textutils: info-textutils
4fa63067 18586
b813574b
PB
18587info-textutils: \
18588 configure-textutils
18589 @[ -f ./textutils/Makefile ] || exit 0; \
b40e3958
L
18590 r=`${PWD_COMMAND}`; export r; \
18591 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fa63067 18592 $(SET_LIB_PATH) \
378fce5b 18593 $(HOST_EXPORTS) \
b813574b 18594 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
18595 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18596 done; \
b813574b
PB
18597 echo "Doing info in textutils" ; \
18598 (cd textutils && \
4fa63067
NN
18599 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18600 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18601 "RANLIB=$${RANLIB}" \
18602 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 18603 info) \
e2b9e2dc
NN
18604 || exit 1
18605
b813574b 18606@endif textutils
4fa63067 18607
b813574b
PB
18608.PHONY: maybe-dvi-textutils dvi-textutils
18609maybe-dvi-textutils:
18610@if textutils
18611maybe-dvi-textutils: dvi-textutils
4fa63067 18612
b813574b
PB
18613dvi-textutils: \
18614 configure-textutils
18615 @[ -f ./textutils/Makefile ] || exit 0; \
4fa63067 18616 r=`${PWD_COMMAND}`; export r; \
b40e3958 18617 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 18618 $(SET_LIB_PATH) \
378fce5b 18619 $(HOST_EXPORTS) \
b813574b 18620 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
18621 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18622 done; \
b813574b
PB
18623 echo "Doing dvi in textutils" ; \
18624 (cd textutils && \
4fa63067
NN
18625 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18626 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18627 "RANLIB=$${RANLIB}" \
18628 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 18629 dvi) \
4fa63067 18630 || exit 1
3866be5d 18631
b813574b 18632@endif textutils
3866be5d 18633
b813574b
PB
18634.PHONY: maybe-TAGS-textutils TAGS-textutils
18635maybe-TAGS-textutils:
18636@if textutils
18637maybe-TAGS-textutils: TAGS-textutils
4fa63067 18638
b813574b
PB
18639TAGS-textutils: \
18640 configure-textutils
18641 @[ -f ./textutils/Makefile ] || exit 0; \
4fa63067 18642 r=`${PWD_COMMAND}`; export r; \
b40e3958 18643 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 18644 $(SET_LIB_PATH) \
378fce5b 18645 $(HOST_EXPORTS) \
b813574b 18646 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
18647 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18648 done; \
b813574b
PB
18649 echo "Doing TAGS in textutils" ; \
18650 (cd textutils && \
4fa63067
NN
18651 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18652 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18653 "RANLIB=$${RANLIB}" \
18654 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 18655 TAGS) \
4fa63067 18656 || exit 1
3866be5d 18657
b813574b 18658@endif textutils
3866be5d 18659
b813574b
PB
18660.PHONY: maybe-install-info-textutils install-info-textutils
18661maybe-install-info-textutils:
18662@if textutils
18663maybe-install-info-textutils: install-info-textutils
4fa63067 18664
b813574b
PB
18665install-info-textutils: \
18666 configure-textutils \
18667 info-textutils
18668 @[ -f ./textutils/Makefile ] || exit 0; \
4fa63067
NN
18669 r=`${PWD_COMMAND}`; export r; \
18670 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18671 $(SET_LIB_PATH) \
378fce5b 18672 $(HOST_EXPORTS) \
b813574b 18673 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
18674 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18675 done; \
b813574b
PB
18676 echo "Doing install-info in textutils" ; \
18677 (cd textutils && \
4fa63067
NN
18678 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18679 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18680 "RANLIB=$${RANLIB}" \
18681 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 18682 install-info) \
4fa63067
NN
18683 || exit 1
18684
b813574b 18685@endif textutils
4fa63067 18686
b813574b
PB
18687.PHONY: maybe-installcheck-textutils installcheck-textutils
18688maybe-installcheck-textutils:
18689@if textutils
18690maybe-installcheck-textutils: installcheck-textutils
4fa63067 18691
b813574b
PB
18692installcheck-textutils: \
18693 configure-textutils
18694 @[ -f ./textutils/Makefile ] || exit 0; \
4fa63067
NN
18695 r=`${PWD_COMMAND}`; export r; \
18696 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18697 $(SET_LIB_PATH) \
378fce5b 18698 $(HOST_EXPORTS) \
b813574b 18699 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
18700 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18701 done; \
b813574b
PB
18702 echo "Doing installcheck in textutils" ; \
18703 (cd textutils && \
4fa63067
NN
18704 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18705 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18706 "RANLIB=$${RANLIB}" \
18707 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 18708 installcheck) \
4fa63067
NN
18709 || exit 1
18710
b813574b 18711@endif textutils
4fa63067 18712
b813574b
PB
18713.PHONY: maybe-mostlyclean-textutils mostlyclean-textutils
18714maybe-mostlyclean-textutils:
18715@if textutils
18716maybe-mostlyclean-textutils: mostlyclean-textutils
4fa63067 18717
b813574b
PB
18718mostlyclean-textutils:
18719 @[ -f ./textutils/Makefile ] || exit 0; \
4fa63067
NN
18720 r=`${PWD_COMMAND}`; export r; \
18721 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18722 $(SET_LIB_PATH) \
378fce5b 18723 $(HOST_EXPORTS) \
b813574b 18724 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
18725 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18726 done; \
b813574b
PB
18727 echo "Doing mostlyclean in textutils" ; \
18728 (cd textutils && \
4fa63067
NN
18729 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18730 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18731 "RANLIB=$${RANLIB}" \
18732 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 18733 mostlyclean) \
4fa63067
NN
18734 || exit 1
18735
b813574b 18736@endif textutils
4fa63067 18737
b813574b
PB
18738.PHONY: maybe-clean-textutils clean-textutils
18739maybe-clean-textutils:
18740@if textutils
18741maybe-clean-textutils: clean-textutils
4fa63067 18742
b813574b
PB
18743clean-textutils:
18744 @[ -f ./textutils/Makefile ] || exit 0; \
4fa63067
NN
18745 r=`${PWD_COMMAND}`; export r; \
18746 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18747 $(SET_LIB_PATH) \
378fce5b 18748 $(HOST_EXPORTS) \
b813574b 18749 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
18750 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18751 done; \
b813574b
PB
18752 echo "Doing clean in textutils" ; \
18753 (cd textutils && \
4fa63067
NN
18754 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18755 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18756 "RANLIB=$${RANLIB}" \
18757 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 18758 clean) \
4fa63067
NN
18759 || exit 1
18760
b813574b 18761@endif textutils
4fa63067 18762
b813574b
PB
18763.PHONY: maybe-distclean-textutils distclean-textutils
18764maybe-distclean-textutils:
18765@if textutils
18766maybe-distclean-textutils: distclean-textutils
4fa63067 18767
b813574b
PB
18768distclean-textutils:
18769 @[ -f ./textutils/Makefile ] || exit 0; \
4fa63067
NN
18770 r=`${PWD_COMMAND}`; export r; \
18771 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18772 $(SET_LIB_PATH) \
378fce5b 18773 $(HOST_EXPORTS) \
b813574b 18774 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
18775 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18776 done; \
b813574b
PB
18777 echo "Doing distclean in textutils" ; \
18778 (cd textutils && \
4fa63067
NN
18779 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18780 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18781 "RANLIB=$${RANLIB}" \
18782 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 18783 distclean) \
4fa63067
NN
18784 || exit 1
18785
b813574b 18786@endif textutils
4fa63067 18787
b813574b
PB
18788.PHONY: maybe-maintainer-clean-textutils maintainer-clean-textutils
18789maybe-maintainer-clean-textutils:
18790@if textutils
18791maybe-maintainer-clean-textutils: maintainer-clean-textutils
16ae0395 18792
b813574b
PB
18793maintainer-clean-textutils:
18794 @[ -f ./textutils/Makefile ] || exit 0; \
4fa63067 18795 r=`${PWD_COMMAND}`; export r; \
b40e3958 18796 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 18797 $(SET_LIB_PATH) \
378fce5b 18798 $(HOST_EXPORTS) \
b813574b 18799 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
18800 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18801 done; \
b813574b
PB
18802 echo "Doing maintainer-clean in textutils" ; \
18803 (cd textutils && \
4fa63067
NN
18804 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18805 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18806 "RANLIB=$${RANLIB}" \
18807 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 18808 maintainer-clean) \
4fa63067 18809 || exit 1
3866be5d 18810
b813574b 18811@endif textutils
3866be5d 18812
4fa63067 18813
b813574b
PB
18814.PHONY: configure-time maybe-configure-time
18815maybe-configure-time:
18816@if time
18817maybe-configure-time: configure-time
18818configure-time:
18819 @test ! -f time/Makefile || exit 0; \
18820 [ -d time ] || mkdir time; \
b40e3958
L
18821 r=`${PWD_COMMAND}`; export r; \
18822 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 18823 $(HOST_EXPORTS) \
b813574b
PB
18824 echo Configuring in time; \
18825 cd time || exit 1; \
e2b9e2dc
NN
18826 case $(srcdir) in \
18827 \.) \
18828 srcdiroption="--srcdir=."; \
18829 libsrcdir=".";; \
18830 /* | [A-Za-z]:[\\/]*) \
b813574b
PB
18831 srcdiroption="--srcdir=$(srcdir)/time"; \
18832 libsrcdir="$$s/time";; \
e2b9e2dc 18833 *) \
b813574b
PB
18834 srcdiroption="--srcdir=../$(srcdir)/time"; \
18835 libsrcdir="$$s/time";; \
e2b9e2dc
NN
18836 esac; \
18837 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 18838 $(HOST_CONFIGARGS) $${srcdiroption} \
e2b9e2dc 18839 || exit 1
b813574b 18840@endif time
e2b9e2dc 18841
b813574b
PB
18842.PHONY: all-time maybe-all-time
18843maybe-all-time:
18844@if time
18845maybe-all-time: all-time
18846all-time: configure-time
b40e3958
L
18847 @r=`${PWD_COMMAND}`; export r; \
18848 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 18849 $(SET_LIB_PATH) \
378fce5b 18850 $(HOST_EXPORTS) \
b813574b
PB
18851 (cd time && $(MAKE) $(FLAGS_TO_PASS) all)
18852@endif time
3866be5d 18853
b813574b
PB
18854.PHONY: check-time maybe-check-time
18855maybe-check-time:
18856@if time
18857maybe-check-time: check-time
3866be5d 18858
b813574b 18859check-time:
b40e3958
L
18860 @r=`${PWD_COMMAND}`; export r; \
18861 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 18862 $(SET_LIB_PATH) \
378fce5b 18863 $(HOST_EXPORTS) \
72b2455a 18864 (cd time && $(MAKE) $(FLAGS_TO_PASS) check)
3866be5d 18865
b813574b 18866@endif time
3866be5d 18867
b813574b
PB
18868.PHONY: install-time maybe-install-time
18869maybe-install-time:
18870@if time
18871maybe-install-time: install-time
4fa63067 18872
b813574b 18873install-time: installdirs
4fa63067
NN
18874 @r=`${PWD_COMMAND}`; export r; \
18875 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18876 $(SET_LIB_PATH) \
378fce5b 18877 $(HOST_EXPORTS) \
72b2455a 18878 (cd time && $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 18879
b813574b 18880@endif time
4fa63067
NN
18881
18882# Other targets (info, dvi, etc.)
18883
b813574b
PB
18884.PHONY: maybe-info-time info-time
18885maybe-info-time:
18886@if time
18887maybe-info-time: info-time
4fa63067 18888
b813574b
PB
18889info-time: \
18890 configure-time
18891 @[ -f ./time/Makefile ] || exit 0; \
4fa63067
NN
18892 r=`${PWD_COMMAND}`; export r; \
18893 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18894 $(SET_LIB_PATH) \
378fce5b 18895 $(HOST_EXPORTS) \
b813574b 18896 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
18897 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18898 done; \
b813574b
PB
18899 echo "Doing info in time" ; \
18900 (cd time && \
4fa63067
NN
18901 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18902 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18903 "RANLIB=$${RANLIB}" \
18904 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 18905 info) \
4fa63067
NN
18906 || exit 1
18907
b813574b 18908@endif time
4fa63067 18909
b813574b
PB
18910.PHONY: maybe-dvi-time dvi-time
18911maybe-dvi-time:
18912@if time
18913maybe-dvi-time: dvi-time
4fa63067 18914
b813574b
PB
18915dvi-time: \
18916 configure-time
18917 @[ -f ./time/Makefile ] || exit 0; \
4fa63067
NN
18918 r=`${PWD_COMMAND}`; export r; \
18919 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18920 $(SET_LIB_PATH) \
378fce5b 18921 $(HOST_EXPORTS) \
b813574b 18922 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
18923 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18924 done; \
b813574b
PB
18925 echo "Doing dvi in time" ; \
18926 (cd time && \
4fa63067
NN
18927 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18928 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18929 "RANLIB=$${RANLIB}" \
18930 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 18931 dvi) \
4fa63067
NN
18932 || exit 1
18933
b813574b 18934@endif time
4fa63067 18935
b813574b
PB
18936.PHONY: maybe-TAGS-time TAGS-time
18937maybe-TAGS-time:
18938@if time
18939maybe-TAGS-time: TAGS-time
4fa63067 18940
b813574b
PB
18941TAGS-time: \
18942 configure-time
18943 @[ -f ./time/Makefile ] || exit 0; \
4fa63067
NN
18944 r=`${PWD_COMMAND}`; export r; \
18945 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18946 $(SET_LIB_PATH) \
378fce5b 18947 $(HOST_EXPORTS) \
b813574b 18948 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
18949 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18950 done; \
b813574b
PB
18951 echo "Doing TAGS in time" ; \
18952 (cd time && \
4fa63067
NN
18953 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18954 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18955 "RANLIB=$${RANLIB}" \
18956 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 18957 TAGS) \
4fa63067
NN
18958 || exit 1
18959
b813574b 18960@endif time
4fa63067 18961
b813574b
PB
18962.PHONY: maybe-install-info-time install-info-time
18963maybe-install-info-time:
18964@if time
18965maybe-install-info-time: install-info-time
4fa63067 18966
b813574b
PB
18967install-info-time: \
18968 configure-time \
18969 info-time
18970 @[ -f ./time/Makefile ] || exit 0; \
4fa63067
NN
18971 r=`${PWD_COMMAND}`; export r; \
18972 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18973 $(SET_LIB_PATH) \
378fce5b 18974 $(HOST_EXPORTS) \
b813574b 18975 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
18976 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18977 done; \
b813574b
PB
18978 echo "Doing install-info in time" ; \
18979 (cd time && \
4fa63067
NN
18980 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18981 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18982 "RANLIB=$${RANLIB}" \
18983 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 18984 install-info) \
4fa63067
NN
18985 || exit 1
18986
b813574b 18987@endif time
4fa63067 18988
b813574b
PB
18989.PHONY: maybe-installcheck-time installcheck-time
18990maybe-installcheck-time:
18991@if time
18992maybe-installcheck-time: installcheck-time
4fa63067 18993
b813574b
PB
18994installcheck-time: \
18995 configure-time
18996 @[ -f ./time/Makefile ] || exit 0; \
4fa63067
NN
18997 r=`${PWD_COMMAND}`; export r; \
18998 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18999 $(SET_LIB_PATH) \
378fce5b 19000 $(HOST_EXPORTS) \
b813574b 19001 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
19002 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19003 done; \
b813574b
PB
19004 echo "Doing installcheck in time" ; \
19005 (cd time && \
4fa63067
NN
19006 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19007 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19008 "RANLIB=$${RANLIB}" \
19009 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 19010 installcheck) \
4fa63067
NN
19011 || exit 1
19012
b813574b 19013@endif time
4fa63067 19014
b813574b
PB
19015.PHONY: maybe-mostlyclean-time mostlyclean-time
19016maybe-mostlyclean-time:
19017@if time
19018maybe-mostlyclean-time: mostlyclean-time
4fa63067 19019
b813574b
PB
19020mostlyclean-time:
19021 @[ -f ./time/Makefile ] || exit 0; \
4fa63067
NN
19022 r=`${PWD_COMMAND}`; export r; \
19023 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19024 $(SET_LIB_PATH) \
378fce5b 19025 $(HOST_EXPORTS) \
b813574b 19026 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
19027 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19028 done; \
b813574b
PB
19029 echo "Doing mostlyclean in time" ; \
19030 (cd time && \
4fa63067
NN
19031 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19032 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19033 "RANLIB=$${RANLIB}" \
19034 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 19035 mostlyclean) \
4fa63067
NN
19036 || exit 1
19037
b813574b 19038@endif time
4fa63067 19039
b813574b
PB
19040.PHONY: maybe-clean-time clean-time
19041maybe-clean-time:
19042@if time
19043maybe-clean-time: clean-time
4fa63067 19044
b813574b
PB
19045clean-time:
19046 @[ -f ./time/Makefile ] || exit 0; \
4fa63067
NN
19047 r=`${PWD_COMMAND}`; export r; \
19048 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19049 $(SET_LIB_PATH) \
378fce5b 19050 $(HOST_EXPORTS) \
b813574b 19051 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
19052 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19053 done; \
b813574b
PB
19054 echo "Doing clean in time" ; \
19055 (cd time && \
4fa63067
NN
19056 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19057 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19058 "RANLIB=$${RANLIB}" \
19059 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 19060 clean) \
4fa63067
NN
19061 || exit 1
19062
b813574b 19063@endif time
4fa63067 19064
b813574b
PB
19065.PHONY: maybe-distclean-time distclean-time
19066maybe-distclean-time:
19067@if time
19068maybe-distclean-time: distclean-time
4fa63067 19069
b813574b
PB
19070distclean-time:
19071 @[ -f ./time/Makefile ] || exit 0; \
4fa63067
NN
19072 r=`${PWD_COMMAND}`; export r; \
19073 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19074 $(SET_LIB_PATH) \
378fce5b 19075 $(HOST_EXPORTS) \
b813574b 19076 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
19077 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19078 done; \
b813574b
PB
19079 echo "Doing distclean in time" ; \
19080 (cd time && \
4fa63067
NN
19081 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19082 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19083 "RANLIB=$${RANLIB}" \
19084 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 19085 distclean) \
4fa63067
NN
19086 || exit 1
19087
b813574b 19088@endif time
4fa63067 19089
b813574b
PB
19090.PHONY: maybe-maintainer-clean-time maintainer-clean-time
19091maybe-maintainer-clean-time:
19092@if time
19093maybe-maintainer-clean-time: maintainer-clean-time
4fa63067 19094
b813574b
PB
19095maintainer-clean-time:
19096 @[ -f ./time/Makefile ] || exit 0; \
4fa63067
NN
19097 r=`${PWD_COMMAND}`; export r; \
19098 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19099 $(SET_LIB_PATH) \
378fce5b 19100 $(HOST_EXPORTS) \
b813574b 19101 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
19102 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19103 done; \
b813574b
PB
19104 echo "Doing maintainer-clean in time" ; \
19105 (cd time && \
4fa63067
NN
19106 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19107 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19108 "RANLIB=$${RANLIB}" \
19109 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 19110 maintainer-clean) \
4fa63067 19111 || exit 1
16ae0395 19112
b813574b 19113@endif time
3866be5d
NN
19114
19115
b813574b
PB
19116.PHONY: configure-uudecode maybe-configure-uudecode
19117maybe-configure-uudecode:
19118@if uudecode
19119maybe-configure-uudecode: configure-uudecode
19120configure-uudecode:
19121 @test ! -f uudecode/Makefile || exit 0; \
19122 [ -d uudecode ] || mkdir uudecode; \
b40e3958
L
19123 r=`${PWD_COMMAND}`; export r; \
19124 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 19125 $(HOST_EXPORTS) \
b813574b
PB
19126 echo Configuring in uudecode; \
19127 cd uudecode || exit 1; \
e2b9e2dc
NN
19128 case $(srcdir) in \
19129 \.) \
19130 srcdiroption="--srcdir=."; \
19131 libsrcdir=".";; \
19132 /* | [A-Za-z]:[\\/]*) \
b813574b
PB
19133 srcdiroption="--srcdir=$(srcdir)/uudecode"; \
19134 libsrcdir="$$s/uudecode";; \
e2b9e2dc 19135 *) \
b813574b
PB
19136 srcdiroption="--srcdir=../$(srcdir)/uudecode"; \
19137 libsrcdir="$$s/uudecode";; \
e2b9e2dc
NN
19138 esac; \
19139 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 19140 $(HOST_CONFIGARGS) $${srcdiroption} \
e2b9e2dc 19141 || exit 1
b813574b 19142@endif uudecode
e2b9e2dc 19143
b813574b
PB
19144.PHONY: all-uudecode maybe-all-uudecode
19145maybe-all-uudecode:
19146@if uudecode
19147maybe-all-uudecode: all-uudecode
19148all-uudecode: configure-uudecode
b40e3958
L
19149 @r=`${PWD_COMMAND}`; export r; \
19150 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 19151 $(SET_LIB_PATH) \
378fce5b 19152 $(HOST_EXPORTS) \
b813574b
PB
19153 (cd uudecode && $(MAKE) $(FLAGS_TO_PASS) all)
19154@endif uudecode
3866be5d 19155
b813574b
PB
19156.PHONY: check-uudecode maybe-check-uudecode
19157maybe-check-uudecode:
19158@if uudecode
19159maybe-check-uudecode: check-uudecode
3866be5d 19160
b813574b 19161check-uudecode:
b40e3958
L
19162 @r=`${PWD_COMMAND}`; export r; \
19163 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 19164 $(SET_LIB_PATH) \
378fce5b 19165 $(HOST_EXPORTS) \
72b2455a 19166 (cd uudecode && $(MAKE) $(FLAGS_TO_PASS) check)
3866be5d 19167
b813574b 19168@endif uudecode
3866be5d 19169
b813574b
PB
19170.PHONY: install-uudecode maybe-install-uudecode
19171maybe-install-uudecode:
19172@if uudecode
19173maybe-install-uudecode: install-uudecode
4fa63067 19174
b813574b 19175install-uudecode: installdirs
4fa63067
NN
19176 @r=`${PWD_COMMAND}`; export r; \
19177 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19178 $(SET_LIB_PATH) \
378fce5b 19179 $(HOST_EXPORTS) \
72b2455a 19180 (cd uudecode && $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 19181
b813574b 19182@endif uudecode
4fa63067
NN
19183
19184# Other targets (info, dvi, etc.)
19185
b813574b
PB
19186.PHONY: maybe-info-uudecode info-uudecode
19187maybe-info-uudecode:
19188@if uudecode
19189maybe-info-uudecode: info-uudecode
4fa63067 19190
b813574b
PB
19191info-uudecode: \
19192 configure-uudecode
19193 @[ -f ./uudecode/Makefile ] || exit 0; \
4fa63067
NN
19194 r=`${PWD_COMMAND}`; export r; \
19195 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19196 $(SET_LIB_PATH) \
378fce5b 19197 $(HOST_EXPORTS) \
b813574b 19198 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
19199 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19200 done; \
b813574b
PB
19201 echo "Doing info in uudecode" ; \
19202 (cd uudecode && \
4fa63067
NN
19203 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19204 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19205 "RANLIB=$${RANLIB}" \
19206 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 19207 info) \
4fa63067
NN
19208 || exit 1
19209
b813574b 19210@endif uudecode
4fa63067 19211
b813574b
PB
19212.PHONY: maybe-dvi-uudecode dvi-uudecode
19213maybe-dvi-uudecode:
19214@if uudecode
19215maybe-dvi-uudecode: dvi-uudecode
4fa63067 19216
b813574b
PB
19217dvi-uudecode: \
19218 configure-uudecode
19219 @[ -f ./uudecode/Makefile ] || exit 0; \
4fa63067
NN
19220 r=`${PWD_COMMAND}`; export r; \
19221 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19222 $(SET_LIB_PATH) \
378fce5b 19223 $(HOST_EXPORTS) \
b813574b 19224 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
19225 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19226 done; \
b813574b
PB
19227 echo "Doing dvi in uudecode" ; \
19228 (cd uudecode && \
4fa63067
NN
19229 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19230 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19231 "RANLIB=$${RANLIB}" \
19232 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 19233 dvi) \
4fa63067
NN
19234 || exit 1
19235
b813574b 19236@endif uudecode
4fa63067 19237
b813574b
PB
19238.PHONY: maybe-TAGS-uudecode TAGS-uudecode
19239maybe-TAGS-uudecode:
19240@if uudecode
19241maybe-TAGS-uudecode: TAGS-uudecode
4fa63067 19242
b813574b
PB
19243TAGS-uudecode: \
19244 configure-uudecode
19245 @[ -f ./uudecode/Makefile ] || exit 0; \
19246 r=`${PWD_COMMAND}`; export r; \
4fa63067
NN
19247 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19248 $(SET_LIB_PATH) \
378fce5b 19249 $(HOST_EXPORTS) \
b813574b 19250 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
19251 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19252 done; \
b813574b
PB
19253 echo "Doing TAGS in uudecode" ; \
19254 (cd uudecode && \
4fa63067
NN
19255 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19256 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19257 "RANLIB=$${RANLIB}" \
19258 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 19259 TAGS) \
4fa63067
NN
19260 || exit 1
19261
b813574b 19262@endif uudecode
4fa63067 19263
b813574b
PB
19264.PHONY: maybe-install-info-uudecode install-info-uudecode
19265maybe-install-info-uudecode:
19266@if uudecode
19267maybe-install-info-uudecode: install-info-uudecode
4fa63067 19268
b813574b
PB
19269install-info-uudecode: \
19270 configure-uudecode \
19271 info-uudecode
19272 @[ -f ./uudecode/Makefile ] || exit 0; \
4fa63067
NN
19273 r=`${PWD_COMMAND}`; export r; \
19274 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19275 $(SET_LIB_PATH) \
378fce5b 19276 $(HOST_EXPORTS) \
b813574b 19277 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
19278 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19279 done; \
b813574b
PB
19280 echo "Doing install-info in uudecode" ; \
19281 (cd uudecode && \
4fa63067
NN
19282 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19283 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19284 "RANLIB=$${RANLIB}" \
19285 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 19286 install-info) \
4fa63067
NN
19287 || exit 1
19288
b813574b 19289@endif uudecode
4fa63067 19290
b813574b
PB
19291.PHONY: maybe-installcheck-uudecode installcheck-uudecode
19292maybe-installcheck-uudecode:
19293@if uudecode
19294maybe-installcheck-uudecode: installcheck-uudecode
4fa63067 19295
b813574b
PB
19296installcheck-uudecode: \
19297 configure-uudecode
19298 @[ -f ./uudecode/Makefile ] || exit 0; \
4fa63067
NN
19299 r=`${PWD_COMMAND}`; export r; \
19300 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19301 $(SET_LIB_PATH) \
378fce5b 19302 $(HOST_EXPORTS) \
b813574b 19303 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
19304 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19305 done; \
b813574b
PB
19306 echo "Doing installcheck in uudecode" ; \
19307 (cd uudecode && \
4fa63067
NN
19308 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19309 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19310 "RANLIB=$${RANLIB}" \
19311 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 19312 installcheck) \
4fa63067
NN
19313 || exit 1
19314
b813574b 19315@endif uudecode
4fa63067 19316
b813574b
PB
19317.PHONY: maybe-mostlyclean-uudecode mostlyclean-uudecode
19318maybe-mostlyclean-uudecode:
19319@if uudecode
19320maybe-mostlyclean-uudecode: mostlyclean-uudecode
4fa63067 19321
b813574b
PB
19322mostlyclean-uudecode:
19323 @[ -f ./uudecode/Makefile ] || exit 0; \
4fa63067
NN
19324 r=`${PWD_COMMAND}`; export r; \
19325 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19326 $(SET_LIB_PATH) \
378fce5b 19327 $(HOST_EXPORTS) \
b813574b 19328 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
19329 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19330 done; \
b813574b
PB
19331 echo "Doing mostlyclean in uudecode" ; \
19332 (cd uudecode && \
4fa63067
NN
19333 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19334 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19335 "RANLIB=$${RANLIB}" \
19336 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 19337 mostlyclean) \
4fa63067
NN
19338 || exit 1
19339
b813574b 19340@endif uudecode
4fa63067 19341
b813574b
PB
19342.PHONY: maybe-clean-uudecode clean-uudecode
19343maybe-clean-uudecode:
19344@if uudecode
19345maybe-clean-uudecode: clean-uudecode
4fa63067 19346
b813574b
PB
19347clean-uudecode:
19348 @[ -f ./uudecode/Makefile ] || exit 0; \
4fa63067
NN
19349 r=`${PWD_COMMAND}`; export r; \
19350 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19351 $(SET_LIB_PATH) \
378fce5b 19352 $(HOST_EXPORTS) \
b813574b 19353 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
19354 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19355 done; \
b813574b
PB
19356 echo "Doing clean in uudecode" ; \
19357 (cd uudecode && \
4fa63067
NN
19358 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19359 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19360 "RANLIB=$${RANLIB}" \
19361 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 19362 clean) \
4fa63067
NN
19363 || exit 1
19364
b813574b 19365@endif uudecode
4fa63067 19366
b813574b
PB
19367.PHONY: maybe-distclean-uudecode distclean-uudecode
19368maybe-distclean-uudecode:
19369@if uudecode
19370maybe-distclean-uudecode: distclean-uudecode
4fa63067 19371
b813574b
PB
19372distclean-uudecode:
19373 @[ -f ./uudecode/Makefile ] || exit 0; \
4fa63067
NN
19374 r=`${PWD_COMMAND}`; export r; \
19375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19376 $(SET_LIB_PATH) \
378fce5b 19377 $(HOST_EXPORTS) \
b813574b 19378 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
19379 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19380 done; \
b813574b
PB
19381 echo "Doing distclean in uudecode" ; \
19382 (cd uudecode && \
4fa63067
NN
19383 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19384 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19385 "RANLIB=$${RANLIB}" \
19386 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 19387 distclean) \
4fa63067
NN
19388 || exit 1
19389
b813574b 19390@endif uudecode
4fa63067 19391
b813574b
PB
19392.PHONY: maybe-maintainer-clean-uudecode maintainer-clean-uudecode
19393maybe-maintainer-clean-uudecode:
19394@if uudecode
19395maybe-maintainer-clean-uudecode: maintainer-clean-uudecode
4fa63067 19396
b813574b
PB
19397maintainer-clean-uudecode:
19398 @[ -f ./uudecode/Makefile ] || exit 0; \
4fa63067
NN
19399 r=`${PWD_COMMAND}`; export r; \
19400 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19401 $(SET_LIB_PATH) \
378fce5b 19402 $(HOST_EXPORTS) \
b813574b 19403 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
19404 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19405 done; \
b813574b
PB
19406 echo "Doing maintainer-clean in uudecode" ; \
19407 (cd uudecode && \
4fa63067
NN
19408 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19409 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19410 "RANLIB=$${RANLIB}" \
19411 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 19412 maintainer-clean) \
4fa63067 19413 || exit 1
16ae0395 19414
b813574b 19415@endif uudecode
3866be5d
NN
19416
19417
b813574b
PB
19418.PHONY: configure-wdiff maybe-configure-wdiff
19419maybe-configure-wdiff:
19420@if wdiff
19421maybe-configure-wdiff: configure-wdiff
19422configure-wdiff:
19423 @test ! -f wdiff/Makefile || exit 0; \
19424 [ -d wdiff ] || mkdir wdiff; \
b40e3958
L
19425 r=`${PWD_COMMAND}`; export r; \
19426 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 19427 $(HOST_EXPORTS) \
b813574b
PB
19428 echo Configuring in wdiff; \
19429 cd wdiff || exit 1; \
e2b9e2dc
NN
19430 case $(srcdir) in \
19431 \.) \
19432 srcdiroption="--srcdir=."; \
19433 libsrcdir=".";; \
19434 /* | [A-Za-z]:[\\/]*) \
b813574b
PB
19435 srcdiroption="--srcdir=$(srcdir)/wdiff"; \
19436 libsrcdir="$$s/wdiff";; \
e2b9e2dc 19437 *) \
b813574b
PB
19438 srcdiroption="--srcdir=../$(srcdir)/wdiff"; \
19439 libsrcdir="$$s/wdiff";; \
e2b9e2dc
NN
19440 esac; \
19441 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 19442 $(HOST_CONFIGARGS) $${srcdiroption} \
e2b9e2dc 19443 || exit 1
b813574b 19444@endif wdiff
e2b9e2dc 19445
b813574b
PB
19446.PHONY: all-wdiff maybe-all-wdiff
19447maybe-all-wdiff:
19448@if wdiff
19449maybe-all-wdiff: all-wdiff
19450all-wdiff: configure-wdiff
b40e3958
L
19451 @r=`${PWD_COMMAND}`; export r; \
19452 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 19453 $(SET_LIB_PATH) \
378fce5b 19454 $(HOST_EXPORTS) \
b813574b
PB
19455 (cd wdiff && $(MAKE) $(FLAGS_TO_PASS) all)
19456@endif wdiff
3866be5d 19457
b813574b
PB
19458.PHONY: check-wdiff maybe-check-wdiff
19459maybe-check-wdiff:
19460@if wdiff
19461maybe-check-wdiff: check-wdiff
3866be5d 19462
b813574b
PB
19463check-wdiff:
19464 @r=`${PWD_COMMAND}`; export r; \
19465 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19466 $(SET_LIB_PATH) \
19467 $(HOST_EXPORTS) \
72b2455a 19468 (cd wdiff && $(MAKE) $(FLAGS_TO_PASS) check)
4fa63067 19469
b813574b 19470@endif wdiff
4fa63067 19471
b813574b
PB
19472.PHONY: install-wdiff maybe-install-wdiff
19473maybe-install-wdiff:
19474@if wdiff
19475maybe-install-wdiff: install-wdiff
4fa63067 19476
b813574b 19477install-wdiff: installdirs
b40e3958
L
19478 @r=`${PWD_COMMAND}`; export r; \
19479 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 19480 $(SET_LIB_PATH) \
378fce5b 19481 $(HOST_EXPORTS) \
72b2455a 19482 (cd wdiff && $(MAKE) $(FLAGS_TO_PASS) install)
3866be5d 19483
b813574b 19484@endif wdiff
3866be5d 19485
4fa63067 19486# Other targets (info, dvi, etc.)
16ae0395 19487
b813574b
PB
19488.PHONY: maybe-info-wdiff info-wdiff
19489maybe-info-wdiff:
19490@if wdiff
19491maybe-info-wdiff: info-wdiff
4fa63067 19492
b813574b
PB
19493info-wdiff: \
19494 configure-wdiff
19495 @[ -f ./wdiff/Makefile ] || exit 0; \
4fa63067 19496 r=`${PWD_COMMAND}`; export r; \
b40e3958 19497 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 19498 $(SET_LIB_PATH) \
378fce5b 19499 $(HOST_EXPORTS) \
b813574b 19500 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
19501 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19502 done; \
b813574b
PB
19503 echo "Doing info in wdiff" ; \
19504 (cd wdiff && \
4fa63067
NN
19505 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19506 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19507 "RANLIB=$${RANLIB}" \
19508 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 19509 info) \
4fa63067 19510 || exit 1
3866be5d 19511
b813574b 19512@endif wdiff
3866be5d 19513
b813574b
PB
19514.PHONY: maybe-dvi-wdiff dvi-wdiff
19515maybe-dvi-wdiff:
19516@if wdiff
19517maybe-dvi-wdiff: dvi-wdiff
4fa63067 19518
b813574b
PB
19519dvi-wdiff: \
19520 configure-wdiff
19521 @[ -f ./wdiff/Makefile ] || exit 0; \
4fa63067
NN
19522 r=`${PWD_COMMAND}`; export r; \
19523 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19524 $(SET_LIB_PATH) \
378fce5b 19525 $(HOST_EXPORTS) \
b813574b 19526 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
19527 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19528 done; \
b813574b
PB
19529 echo "Doing dvi in wdiff" ; \
19530 (cd wdiff && \
4fa63067
NN
19531 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19532 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19533 "RANLIB=$${RANLIB}" \
19534 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 19535 dvi) \
4fa63067
NN
19536 || exit 1
19537
b813574b 19538@endif wdiff
4fa63067 19539
b813574b
PB
19540.PHONY: maybe-TAGS-wdiff TAGS-wdiff
19541maybe-TAGS-wdiff:
19542@if wdiff
19543maybe-TAGS-wdiff: TAGS-wdiff
4fa63067 19544
b813574b
PB
19545TAGS-wdiff: \
19546 configure-wdiff
19547 @[ -f ./wdiff/Makefile ] || exit 0; \
4fa63067
NN
19548 r=`${PWD_COMMAND}`; export r; \
19549 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19550 $(SET_LIB_PATH) \
378fce5b 19551 $(HOST_EXPORTS) \
b813574b 19552 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
19553 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19554 done; \
b813574b
PB
19555 echo "Doing TAGS in wdiff" ; \
19556 (cd wdiff && \
4fa63067
NN
19557 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19558 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19559 "RANLIB=$${RANLIB}" \
19560 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 19561 TAGS) \
4fa63067
NN
19562 || exit 1
19563
b813574b 19564@endif wdiff
4fa63067 19565
b813574b
PB
19566.PHONY: maybe-install-info-wdiff install-info-wdiff
19567maybe-install-info-wdiff:
19568@if wdiff
19569maybe-install-info-wdiff: install-info-wdiff
4fa63067 19570
b813574b
PB
19571install-info-wdiff: \
19572 configure-wdiff \
19573 info-wdiff
19574 @[ -f ./wdiff/Makefile ] || exit 0; \
4fa63067
NN
19575 r=`${PWD_COMMAND}`; export r; \
19576 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19577 $(SET_LIB_PATH) \
378fce5b 19578 $(HOST_EXPORTS) \
b813574b 19579 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
19580 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19581 done; \
b813574b
PB
19582 echo "Doing install-info in wdiff" ; \
19583 (cd wdiff && \
4fa63067
NN
19584 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19585 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19586 "RANLIB=$${RANLIB}" \
19587 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 19588 install-info) \
4fa63067
NN
19589 || exit 1
19590
b813574b 19591@endif wdiff
4fa63067 19592
b813574b
PB
19593.PHONY: maybe-installcheck-wdiff installcheck-wdiff
19594maybe-installcheck-wdiff:
19595@if wdiff
19596maybe-installcheck-wdiff: installcheck-wdiff
4fa63067 19597
b813574b
PB
19598installcheck-wdiff: \
19599 configure-wdiff
19600 @[ -f ./wdiff/Makefile ] || exit 0; \
4fa63067
NN
19601 r=`${PWD_COMMAND}`; export r; \
19602 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19603 $(SET_LIB_PATH) \
378fce5b 19604 $(HOST_EXPORTS) \
b813574b 19605 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
19606 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19607 done; \
b813574b
PB
19608 echo "Doing installcheck in wdiff" ; \
19609 (cd wdiff && \
4fa63067
NN
19610 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19611 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19612 "RANLIB=$${RANLIB}" \
19613 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 19614 installcheck) \
4fa63067
NN
19615 || exit 1
19616
b813574b 19617@endif wdiff
4fa63067 19618
b813574b
PB
19619.PHONY: maybe-mostlyclean-wdiff mostlyclean-wdiff
19620maybe-mostlyclean-wdiff:
19621@if wdiff
19622maybe-mostlyclean-wdiff: mostlyclean-wdiff
4fa63067 19623
b813574b
PB
19624mostlyclean-wdiff:
19625 @[ -f ./wdiff/Makefile ] || exit 0; \
4fa63067
NN
19626 r=`${PWD_COMMAND}`; export r; \
19627 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19628 $(SET_LIB_PATH) \
378fce5b 19629 $(HOST_EXPORTS) \
b813574b 19630 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
19631 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19632 done; \
b813574b
PB
19633 echo "Doing mostlyclean in wdiff" ; \
19634 (cd wdiff && \
4fa63067
NN
19635 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19636 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19637 "RANLIB=$${RANLIB}" \
19638 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 19639 mostlyclean) \
4fa63067
NN
19640 || exit 1
19641
b813574b 19642@endif wdiff
4fa63067 19643
b813574b
PB
19644.PHONY: maybe-clean-wdiff clean-wdiff
19645maybe-clean-wdiff:
19646@if wdiff
19647maybe-clean-wdiff: clean-wdiff
4fa63067 19648
b813574b
PB
19649clean-wdiff:
19650 @[ -f ./wdiff/Makefile ] || exit 0; \
4fa63067
NN
19651 r=`${PWD_COMMAND}`; export r; \
19652 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19653 $(SET_LIB_PATH) \
378fce5b 19654 $(HOST_EXPORTS) \
b813574b 19655 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
19656 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19657 done; \
b813574b
PB
19658 echo "Doing clean in wdiff" ; \
19659 (cd wdiff && \
4fa63067
NN
19660 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19661 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19662 "RANLIB=$${RANLIB}" \
19663 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 19664 clean) \
4fa63067
NN
19665 || exit 1
19666
b813574b 19667@endif wdiff
4fa63067 19668
b813574b
PB
19669.PHONY: maybe-distclean-wdiff distclean-wdiff
19670maybe-distclean-wdiff:
19671@if wdiff
19672maybe-distclean-wdiff: distclean-wdiff
4fa63067 19673
b813574b
PB
19674distclean-wdiff:
19675 @[ -f ./wdiff/Makefile ] || exit 0; \
4fa63067
NN
19676 r=`${PWD_COMMAND}`; export r; \
19677 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19678 $(SET_LIB_PATH) \
378fce5b 19679 $(HOST_EXPORTS) \
b813574b 19680 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
19681 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19682 done; \
b813574b
PB
19683 echo "Doing distclean in wdiff" ; \
19684 (cd wdiff && \
4fa63067
NN
19685 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19686 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19687 "RANLIB=$${RANLIB}" \
19688 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 19689 distclean) \
4fa63067
NN
19690 || exit 1
19691
b813574b 19692@endif wdiff
4fa63067 19693
b813574b
PB
19694.PHONY: maybe-maintainer-clean-wdiff maintainer-clean-wdiff
19695maybe-maintainer-clean-wdiff:
19696@if wdiff
19697maybe-maintainer-clean-wdiff: maintainer-clean-wdiff
4fa63067 19698
b813574b
PB
19699maintainer-clean-wdiff:
19700 @[ -f ./wdiff/Makefile ] || exit 0; \
4fa63067
NN
19701 r=`${PWD_COMMAND}`; export r; \
19702 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19703 $(SET_LIB_PATH) \
378fce5b 19704 $(HOST_EXPORTS) \
b813574b 19705 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
19706 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19707 done; \
b813574b
PB
19708 echo "Doing maintainer-clean in wdiff" ; \
19709 (cd wdiff && \
4fa63067
NN
19710 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19711 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19712 "RANLIB=$${RANLIB}" \
19713 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 19714 maintainer-clean) \
4fa63067
NN
19715 || exit 1
19716
b813574b 19717@endif wdiff
4fa63067
NN
19718
19719
b813574b
PB
19720.PHONY: configure-zip maybe-configure-zip
19721maybe-configure-zip:
19722@if zip
19723maybe-configure-zip: configure-zip
19724configure-zip:
19725 @test ! -f zip/Makefile || exit 0; \
19726 [ -d zip ] || mkdir zip; \
b40e3958
L
19727 r=`${PWD_COMMAND}`; export r; \
19728 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 19729 $(HOST_EXPORTS) \
b813574b
PB
19730 echo Configuring in zip; \
19731 cd zip || exit 1; \
e2b9e2dc
NN
19732 case $(srcdir) in \
19733 \.) \
19734 srcdiroption="--srcdir=."; \
19735 libsrcdir=".";; \
19736 /* | [A-Za-z]:[\\/]*) \
b813574b
PB
19737 srcdiroption="--srcdir=$(srcdir)/zip"; \
19738 libsrcdir="$$s/zip";; \
e2b9e2dc 19739 *) \
b813574b
PB
19740 srcdiroption="--srcdir=../$(srcdir)/zip"; \
19741 libsrcdir="$$s/zip";; \
e2b9e2dc
NN
19742 esac; \
19743 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 19744 $(HOST_CONFIGARGS) $${srcdiroption} \
e2b9e2dc 19745 || exit 1
b813574b 19746@endif zip
e2b9e2dc 19747
b813574b
PB
19748.PHONY: all-zip maybe-all-zip
19749maybe-all-zip:
19750@if zip
19751maybe-all-zip: all-zip
19752all-zip: configure-zip
b40e3958
L
19753 @r=`${PWD_COMMAND}`; export r; \
19754 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 19755 $(SET_LIB_PATH) \
378fce5b 19756 $(HOST_EXPORTS) \
b813574b
PB
19757 (cd zip && $(MAKE) $(FLAGS_TO_PASS) all)
19758@endif zip
3866be5d 19759
b813574b
PB
19760.PHONY: check-zip maybe-check-zip
19761maybe-check-zip:
19762@if zip
19763maybe-check-zip: check-zip
3866be5d 19764
b813574b
PB
19765# This module is only tested in a native toolchain.
19766check-zip:
19767 @if [ '$(host)' = '$(target)' ] ; then \
19768 r=`${PWD_COMMAND}`; export r; \
19769 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19770 $(SET_LIB_PATH) \
19771 $(HOST_EXPORTS) \
19772 (cd zip && $(MAKE) $(FLAGS_TO_PASS) check); \
19773 fi
4fa63067 19774
b813574b 19775@endif zip
4fa63067 19776
b813574b
PB
19777.PHONY: install-zip maybe-install-zip
19778maybe-install-zip:
19779@if zip
19780maybe-install-zip: install-zip
4fa63067 19781
b813574b
PB
19782install-zip: installdirs
19783 @r=`${PWD_COMMAND}`; export r; \
19784 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19785 $(SET_LIB_PATH) \
19786 $(HOST_EXPORTS) \
72b2455a 19787 (cd zip && $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 19788
b813574b 19789@endif zip
4fa63067
NN
19790
19791# Other targets (info, dvi, etc.)
19792
b813574b
PB
19793.PHONY: maybe-info-zip info-zip
19794maybe-info-zip:
19795@if zip
19796maybe-info-zip: info-zip
4fa63067 19797
b813574b
PB
19798info-zip: \
19799 configure-zip
19800 @[ -f ./zip/Makefile ] || exit 0; \
4fa63067 19801 r=`${PWD_COMMAND}`; export r; \
b40e3958 19802 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 19803 $(SET_LIB_PATH) \
378fce5b 19804 $(HOST_EXPORTS) \
b813574b 19805 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
19806 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19807 done; \
b813574b
PB
19808 echo "Doing info in zip" ; \
19809 (cd zip && \
4fa63067
NN
19810 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19811 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19812 "RANLIB=$${RANLIB}" \
19813 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 19814 info) \
4fa63067 19815 || exit 1
3866be5d 19816
b813574b 19817@endif zip
3866be5d 19818
b813574b
PB
19819.PHONY: maybe-dvi-zip dvi-zip
19820maybe-dvi-zip:
19821@if zip
19822maybe-dvi-zip: dvi-zip
16ae0395 19823
b813574b
PB
19824dvi-zip: \
19825 configure-zip
19826 @[ -f ./zip/Makefile ] || exit 0; \
4fa63067 19827 r=`${PWD_COMMAND}`; export r; \
b40e3958 19828 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 19829 $(SET_LIB_PATH) \
378fce5b 19830 $(HOST_EXPORTS) \
b813574b 19831 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
19832 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19833 done; \
b813574b
PB
19834 echo "Doing dvi in zip" ; \
19835 (cd zip && \
4fa63067
NN
19836 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19837 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19838 "RANLIB=$${RANLIB}" \
19839 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 19840 dvi) \
4fa63067 19841 || exit 1
3866be5d 19842
b813574b 19843@endif zip
3866be5d 19844
b813574b
PB
19845.PHONY: maybe-TAGS-zip TAGS-zip
19846maybe-TAGS-zip:
19847@if zip
19848maybe-TAGS-zip: TAGS-zip
4fa63067 19849
b813574b
PB
19850TAGS-zip: \
19851 configure-zip
19852 @[ -f ./zip/Makefile ] || exit 0; \
b40e3958
L
19853 r=`${PWD_COMMAND}`; export r; \
19854 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fa63067 19855 $(SET_LIB_PATH) \
378fce5b 19856 $(HOST_EXPORTS) \
b813574b 19857 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
19858 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19859 done; \
b813574b
PB
19860 echo "Doing TAGS in zip" ; \
19861 (cd zip && \
4fa63067
NN
19862 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19863 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19864 "RANLIB=$${RANLIB}" \
19865 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 19866 TAGS) \
e2b9e2dc
NN
19867 || exit 1
19868
b813574b 19869@endif zip
4fa63067 19870
b813574b
PB
19871.PHONY: maybe-install-info-zip install-info-zip
19872maybe-install-info-zip:
19873@if zip
19874maybe-install-info-zip: install-info-zip
4fa63067 19875
b813574b
PB
19876install-info-zip: \
19877 configure-zip \
19878 info-zip
19879 @[ -f ./zip/Makefile ] || exit 0; \
4fa63067 19880 r=`${PWD_COMMAND}`; export r; \
b40e3958 19881 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 19882 $(SET_LIB_PATH) \
378fce5b 19883 $(HOST_EXPORTS) \
b813574b 19884 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
19885 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19886 done; \
b813574b
PB
19887 echo "Doing install-info in zip" ; \
19888 (cd zip && \
4fa63067
NN
19889 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19890 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19891 "RANLIB=$${RANLIB}" \
19892 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 19893 install-info) \
4fa63067 19894 || exit 1
3866be5d 19895
b813574b 19896@endif zip
3866be5d 19897
b813574b
PB
19898.PHONY: maybe-installcheck-zip installcheck-zip
19899maybe-installcheck-zip:
19900@if zip
19901maybe-installcheck-zip: installcheck-zip
4fa63067 19902
b813574b
PB
19903installcheck-zip: \
19904 configure-zip
19905 @[ -f ./zip/Makefile ] || exit 0; \
4fa63067 19906 r=`${PWD_COMMAND}`; export r; \
b40e3958 19907 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 19908 $(SET_LIB_PATH) \
378fce5b 19909 $(HOST_EXPORTS) \
b813574b 19910 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
19911 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19912 done; \
b813574b
PB
19913 echo "Doing installcheck in zip" ; \
19914 (cd zip && \
4fa63067
NN
19915 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19916 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19917 "RANLIB=$${RANLIB}" \
19918 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 19919 installcheck) \
4fa63067 19920 || exit 1
3866be5d 19921
b813574b 19922@endif zip
3866be5d 19923
b813574b
PB
19924.PHONY: maybe-mostlyclean-zip mostlyclean-zip
19925maybe-mostlyclean-zip:
19926@if zip
19927maybe-mostlyclean-zip: mostlyclean-zip
16ae0395 19928
b813574b
PB
19929mostlyclean-zip:
19930 @[ -f ./zip/Makefile ] || exit 0; \
4fa63067
NN
19931 r=`${PWD_COMMAND}`; export r; \
19932 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19933 $(SET_LIB_PATH) \
378fce5b 19934 $(HOST_EXPORTS) \
b813574b 19935 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
19936 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19937 done; \
b813574b
PB
19938 echo "Doing mostlyclean in zip" ; \
19939 (cd zip && \
4fa63067
NN
19940 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19941 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19942 "RANLIB=$${RANLIB}" \
19943 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 19944 mostlyclean) \
4fa63067
NN
19945 || exit 1
19946
b813574b 19947@endif zip
4fa63067 19948
b813574b
PB
19949.PHONY: maybe-clean-zip clean-zip
19950maybe-clean-zip:
19951@if zip
19952maybe-clean-zip: clean-zip
4fa63067 19953
b813574b
PB
19954clean-zip:
19955 @[ -f ./zip/Makefile ] || exit 0; \
4fa63067
NN
19956 r=`${PWD_COMMAND}`; export r; \
19957 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19958 $(SET_LIB_PATH) \
378fce5b 19959 $(HOST_EXPORTS) \
b813574b 19960 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
19961 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19962 done; \
b813574b
PB
19963 echo "Doing clean in zip" ; \
19964 (cd zip && \
4fa63067
NN
19965 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19966 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19967 "RANLIB=$${RANLIB}" \
19968 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 19969 clean) \
4fa63067
NN
19970 || exit 1
19971
b813574b 19972@endif zip
4fa63067 19973
b813574b
PB
19974.PHONY: maybe-distclean-zip distclean-zip
19975maybe-distclean-zip:
19976@if zip
19977maybe-distclean-zip: distclean-zip
4fa63067 19978
b813574b
PB
19979distclean-zip:
19980 @[ -f ./zip/Makefile ] || exit 0; \
4fa63067
NN
19981 r=`${PWD_COMMAND}`; export r; \
19982 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19983 $(SET_LIB_PATH) \
378fce5b 19984 $(HOST_EXPORTS) \
b813574b 19985 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
19986 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19987 done; \
b813574b
PB
19988 echo "Doing distclean in zip" ; \
19989 (cd zip && \
4fa63067
NN
19990 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19991 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19992 "RANLIB=$${RANLIB}" \
19993 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 19994 distclean) \
4fa63067
NN
19995 || exit 1
19996
b813574b 19997@endif zip
4fa63067 19998
b813574b
PB
19999.PHONY: maybe-maintainer-clean-zip maintainer-clean-zip
20000maybe-maintainer-clean-zip:
20001@if zip
20002maybe-maintainer-clean-zip: maintainer-clean-zip
4fa63067 20003
b813574b
PB
20004maintainer-clean-zip:
20005 @[ -f ./zip/Makefile ] || exit 0; \
4fa63067 20006 r=`${PWD_COMMAND}`; export r; \
b40e3958 20007 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 20008 $(SET_LIB_PATH) \
378fce5b 20009 $(HOST_EXPORTS) \
b813574b 20010 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
20011 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20012 done; \
b813574b
PB
20013 echo "Doing maintainer-clean in zip" ; \
20014 (cd zip && \
4fa63067
NN
20015 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20016 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20017 "RANLIB=$${RANLIB}" \
20018 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 20019 maintainer-clean) \
4fa63067 20020 || exit 1
3866be5d 20021
b813574b 20022@endif zip
3866be5d 20023
4fa63067 20024
b813574b
PB
20025.PHONY: configure-zlib maybe-configure-zlib
20026maybe-configure-zlib:
20027@if zlib
20028maybe-configure-zlib: configure-zlib
20029configure-zlib:
72b2455a
PB
20030 @test -f stage_last && exit 0; \
20031 test ! -f zlib/Makefile || exit 0; \
b813574b 20032 [ -d zlib ] || mkdir zlib; \
b40e3958
L
20033 r=`${PWD_COMMAND}`; export r; \
20034 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 20035 $(HOST_EXPORTS) \
b813574b
PB
20036 echo Configuring in zlib; \
20037 cd zlib || exit 1; \
e2b9e2dc
NN
20038 case $(srcdir) in \
20039 \.) \
20040 srcdiroption="--srcdir=."; \
20041 libsrcdir=".";; \
20042 /* | [A-Za-z]:[\\/]*) \
b813574b
PB
20043 srcdiroption="--srcdir=$(srcdir)/zlib"; \
20044 libsrcdir="$$s/zlib";; \
e2b9e2dc 20045 *) \
b813574b
PB
20046 srcdiroption="--srcdir=../$(srcdir)/zlib"; \
20047 libsrcdir="$$s/zlib";; \
e2b9e2dc
NN
20048 esac; \
20049 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 20050 $(HOST_CONFIGARGS) $${srcdiroption} \
e2b9e2dc 20051 || exit 1
b813574b 20052@endif zlib
e2b9e2dc 20053
b813574b
PB
20054.PHONY: all-zlib maybe-all-zlib
20055maybe-all-zlib:
20056@if zlib
20057maybe-all-zlib: all-zlib
20058all-zlib: configure-zlib
72b2455a
PB
20059 @test -f stage_last && exit 0; \
20060 r=`${PWD_COMMAND}`; export r; \
b40e3958 20061 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 20062 $(SET_LIB_PATH) \
378fce5b 20063 $(HOST_EXPORTS) \
b813574b
PB
20064 (cd zlib && $(MAKE) $(FLAGS_TO_PASS) all)
20065@endif zlib
3866be5d 20066
b813574b
PB
20067.PHONY: check-zlib maybe-check-zlib
20068maybe-check-zlib:
20069@if zlib
20070maybe-check-zlib: check-zlib
3866be5d 20071
b813574b 20072check-zlib:
3866be5d 20073
b813574b 20074@endif zlib
3866be5d 20075
b813574b
PB
20076.PHONY: install-zlib maybe-install-zlib
20077maybe-install-zlib:
20078@if zlib
20079maybe-install-zlib: install-zlib
4fa63067 20080
b813574b 20081install-zlib:
4fa63067 20082
b813574b 20083@endif zlib
4fa63067
NN
20084
20085# Other targets (info, dvi, etc.)
20086
b813574b
PB
20087.PHONY: maybe-info-zlib info-zlib
20088maybe-info-zlib:
20089@if zlib
20090maybe-info-zlib: info-zlib
4fa63067 20091
b813574b
PB
20092info-zlib: \
20093 configure-zlib
20094 @[ -f ./zlib/Makefile ] || exit 0; \
4fa63067
NN
20095 r=`${PWD_COMMAND}`; export r; \
20096 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20097 $(SET_LIB_PATH) \
378fce5b 20098 $(HOST_EXPORTS) \
b813574b 20099 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
20100 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20101 done; \
b813574b
PB
20102 echo "Doing info in zlib" ; \
20103 (cd zlib && \
4fa63067
NN
20104 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20105 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20106 "RANLIB=$${RANLIB}" \
20107 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 20108 info) \
4fa63067
NN
20109 || exit 1
20110
b813574b 20111@endif zlib
4fa63067 20112
b813574b
PB
20113.PHONY: maybe-dvi-zlib dvi-zlib
20114maybe-dvi-zlib:
20115@if zlib
20116maybe-dvi-zlib: dvi-zlib
4fa63067 20117
b813574b
PB
20118dvi-zlib: \
20119 configure-zlib
20120 @[ -f ./zlib/Makefile ] || exit 0; \
4fa63067
NN
20121 r=`${PWD_COMMAND}`; export r; \
20122 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20123 $(SET_LIB_PATH) \
378fce5b 20124 $(HOST_EXPORTS) \
b813574b 20125 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
20126 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20127 done; \
b813574b
PB
20128 echo "Doing dvi in zlib" ; \
20129 (cd zlib && \
4fa63067
NN
20130 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20131 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20132 "RANLIB=$${RANLIB}" \
20133 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 20134 dvi) \
4fa63067
NN
20135 || exit 1
20136
b813574b 20137@endif zlib
4fa63067 20138
b813574b
PB
20139.PHONY: maybe-TAGS-zlib TAGS-zlib
20140maybe-TAGS-zlib:
20141@if zlib
20142maybe-TAGS-zlib: TAGS-zlib
4fa63067 20143
b813574b
PB
20144TAGS-zlib: \
20145 configure-zlib
20146 @[ -f ./zlib/Makefile ] || exit 0; \
4fa63067
NN
20147 r=`${PWD_COMMAND}`; export r; \
20148 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20149 $(SET_LIB_PATH) \
378fce5b 20150 $(HOST_EXPORTS) \
b813574b 20151 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
20152 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20153 done; \
b813574b
PB
20154 echo "Doing TAGS in zlib" ; \
20155 (cd zlib && \
4fa63067
NN
20156 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20157 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20158 "RANLIB=$${RANLIB}" \
20159 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 20160 TAGS) \
4fa63067
NN
20161 || exit 1
20162
b813574b 20163@endif zlib
4fa63067 20164
b813574b
PB
20165.PHONY: maybe-install-info-zlib install-info-zlib
20166maybe-install-info-zlib:
20167@if zlib
20168maybe-install-info-zlib: install-info-zlib
4fa63067 20169
b813574b
PB
20170install-info-zlib: \
20171 configure-zlib \
20172 info-zlib
20173 @[ -f ./zlib/Makefile ] || exit 0; \
4fa63067
NN
20174 r=`${PWD_COMMAND}`; export r; \
20175 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20176 $(SET_LIB_PATH) \
378fce5b 20177 $(HOST_EXPORTS) \
b813574b 20178 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
20179 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20180 done; \
b813574b
PB
20181 echo "Doing install-info in zlib" ; \
20182 (cd zlib && \
4fa63067
NN
20183 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20184 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20185 "RANLIB=$${RANLIB}" \
20186 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 20187 install-info) \
4fa63067
NN
20188 || exit 1
20189
b813574b 20190@endif zlib
4fa63067 20191
b813574b
PB
20192.PHONY: maybe-installcheck-zlib installcheck-zlib
20193maybe-installcheck-zlib:
20194@if zlib
20195maybe-installcheck-zlib: installcheck-zlib
4fa63067 20196
b813574b
PB
20197installcheck-zlib: \
20198 configure-zlib
20199 @[ -f ./zlib/Makefile ] || exit 0; \
4fa63067
NN
20200 r=`${PWD_COMMAND}`; export r; \
20201 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20202 $(SET_LIB_PATH) \
378fce5b 20203 $(HOST_EXPORTS) \
b813574b 20204 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
20205 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20206 done; \
b813574b
PB
20207 echo "Doing installcheck in zlib" ; \
20208 (cd zlib && \
4fa63067
NN
20209 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20210 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20211 "RANLIB=$${RANLIB}" \
20212 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 20213 installcheck) \
4fa63067
NN
20214 || exit 1
20215
b813574b 20216@endif zlib
4fa63067 20217
b813574b
PB
20218.PHONY: maybe-mostlyclean-zlib mostlyclean-zlib
20219maybe-mostlyclean-zlib:
20220@if zlib
20221maybe-mostlyclean-zlib: mostlyclean-zlib
4fa63067 20222
b813574b
PB
20223mostlyclean-zlib:
20224 @[ -f ./zlib/Makefile ] || exit 0; \
4fa63067
NN
20225 r=`${PWD_COMMAND}`; export r; \
20226 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20227 $(SET_LIB_PATH) \
378fce5b 20228 $(HOST_EXPORTS) \
b813574b 20229 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
20230 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20231 done; \
b813574b
PB
20232 echo "Doing mostlyclean in zlib" ; \
20233 (cd zlib && \
4fa63067
NN
20234 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20235 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20236 "RANLIB=$${RANLIB}" \
20237 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 20238 mostlyclean) \
4fa63067
NN
20239 || exit 1
20240
b813574b 20241@endif zlib
4fa63067 20242
b813574b
PB
20243.PHONY: maybe-clean-zlib clean-zlib
20244maybe-clean-zlib:
20245@if zlib
20246maybe-clean-zlib: clean-zlib
4fa63067 20247
b813574b
PB
20248clean-zlib:
20249 @[ -f ./zlib/Makefile ] || exit 0; \
4fa63067
NN
20250 r=`${PWD_COMMAND}`; export r; \
20251 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20252 $(SET_LIB_PATH) \
378fce5b 20253 $(HOST_EXPORTS) \
b813574b 20254 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
20255 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20256 done; \
b813574b
PB
20257 echo "Doing clean in zlib" ; \
20258 (cd zlib && \
4fa63067
NN
20259 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20260 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20261 "RANLIB=$${RANLIB}" \
20262 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 20263 clean) \
4fa63067
NN
20264 || exit 1
20265
b813574b 20266@endif zlib
4fa63067 20267
b813574b
PB
20268.PHONY: maybe-distclean-zlib distclean-zlib
20269maybe-distclean-zlib:
20270@if zlib
20271maybe-distclean-zlib: distclean-zlib
4fa63067 20272
b813574b
PB
20273distclean-zlib:
20274 @[ -f ./zlib/Makefile ] || exit 0; \
4fa63067
NN
20275 r=`${PWD_COMMAND}`; export r; \
20276 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20277 $(SET_LIB_PATH) \
378fce5b 20278 $(HOST_EXPORTS) \
b813574b 20279 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
20280 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20281 done; \
b813574b
PB
20282 echo "Doing distclean in zlib" ; \
20283 (cd zlib && \
4fa63067
NN
20284 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20285 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20286 "RANLIB=$${RANLIB}" \
20287 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 20288 distclean) \
4fa63067
NN
20289 || exit 1
20290
b813574b 20291@endif zlib
4fa63067 20292
b813574b
PB
20293.PHONY: maybe-maintainer-clean-zlib maintainer-clean-zlib
20294maybe-maintainer-clean-zlib:
20295@if zlib
20296maybe-maintainer-clean-zlib: maintainer-clean-zlib
4fa63067 20297
b813574b
PB
20298maintainer-clean-zlib:
20299 @[ -f ./zlib/Makefile ] || exit 0; \
4fa63067
NN
20300 r=`${PWD_COMMAND}`; export r; \
20301 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20302 $(SET_LIB_PATH) \
378fce5b 20303 $(HOST_EXPORTS) \
b813574b 20304 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
20305 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20306 done; \
b813574b
PB
20307 echo "Doing maintainer-clean in zlib" ; \
20308 (cd zlib && \
4fa63067
NN
20309 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20310 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20311 "RANLIB=$${RANLIB}" \
20312 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 20313 maintainer-clean) \
4fa63067 20314 || exit 1
16ae0395 20315
b813574b 20316@endif zlib
3866be5d
NN
20317
20318
b813574b
PB
20319.PHONY: configure-gdb maybe-configure-gdb
20320maybe-configure-gdb:
20321@if gdb
20322maybe-configure-gdb: configure-gdb
20323configure-gdb:
20324 @test ! -f gdb/Makefile || exit 0; \
20325 [ -d gdb ] || mkdir gdb; \
b40e3958
L
20326 r=`${PWD_COMMAND}`; export r; \
20327 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 20328 $(HOST_EXPORTS) \
b813574b
PB
20329 echo Configuring in gdb; \
20330 cd gdb || exit 1; \
e2b9e2dc
NN
20331 case $(srcdir) in \
20332 \.) \
20333 srcdiroption="--srcdir=."; \
20334 libsrcdir=".";; \
20335 /* | [A-Za-z]:[\\/]*) \
b813574b
PB
20336 srcdiroption="--srcdir=$(srcdir)/gdb"; \
20337 libsrcdir="$$s/gdb";; \
e2b9e2dc 20338 *) \
b813574b
PB
20339 srcdiroption="--srcdir=../$(srcdir)/gdb"; \
20340 libsrcdir="$$s/gdb";; \
e2b9e2dc
NN
20341 esac; \
20342 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 20343 $(HOST_CONFIGARGS) $${srcdiroption} \
e2b9e2dc 20344 || exit 1
b813574b 20345@endif gdb
e2b9e2dc 20346
b813574b
PB
20347.PHONY: all-gdb maybe-all-gdb
20348maybe-all-gdb:
20349@if gdb
20350maybe-all-gdb: all-gdb
20351all-gdb: configure-gdb
b40e3958
L
20352 @r=`${PWD_COMMAND}`; export r; \
20353 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 20354 $(SET_LIB_PATH) \
378fce5b 20355 $(HOST_EXPORTS) \
72b2455a 20356 (cd gdb && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
b813574b 20357@endif gdb
3866be5d 20358
b813574b
PB
20359.PHONY: check-gdb maybe-check-gdb
20360maybe-check-gdb:
20361@if gdb
20362maybe-check-gdb: check-gdb
3866be5d 20363
b813574b 20364check-gdb:
b40e3958
L
20365 @r=`${PWD_COMMAND}`; export r; \
20366 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 20367 $(SET_LIB_PATH) \
378fce5b 20368 $(HOST_EXPORTS) \
72b2455a 20369 (cd gdb && $(MAKE) $(FLAGS_TO_PASS)$(X11_FLAGS_TO_PASS) check)
3866be5d 20370
b813574b 20371@endif gdb
3866be5d 20372
b813574b
PB
20373.PHONY: install-gdb maybe-install-gdb
20374maybe-install-gdb:
20375@if gdb
20376maybe-install-gdb: install-gdb
16ae0395 20377
b813574b 20378install-gdb: installdirs
b40e3958
L
20379 @r=`${PWD_COMMAND}`; export r; \
20380 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 20381 $(SET_LIB_PATH) \
378fce5b 20382 $(HOST_EXPORTS) \
72b2455a 20383 (cd gdb && $(MAKE) $(FLAGS_TO_PASS)$(X11_FLAGS_TO_PASS) install)
3866be5d 20384
b813574b 20385@endif gdb
3866be5d 20386
4fa63067
NN
20387# Other targets (info, dvi, etc.)
20388
b813574b
PB
20389.PHONY: maybe-info-gdb info-gdb
20390maybe-info-gdb:
20391@if gdb
20392maybe-info-gdb: info-gdb
4fa63067 20393
b813574b
PB
20394info-gdb: \
20395 configure-gdb
20396 @[ -f ./gdb/Makefile ] || exit 0; \
4fa63067
NN
20397 r=`${PWD_COMMAND}`; export r; \
20398 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20399 $(SET_LIB_PATH) \
378fce5b 20400 $(HOST_EXPORTS) \
72b2455a 20401 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
4fa63067
NN
20402 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20403 done; \
b813574b
PB
20404 echo "Doing info in gdb" ; \
20405 (cd gdb && \
4fa63067
NN
20406 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20407 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20408 "RANLIB=$${RANLIB}" \
20409 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 20410 info) \
4fa63067
NN
20411 || exit 1
20412
b813574b 20413@endif gdb
4fa63067 20414
b813574b
PB
20415.PHONY: maybe-dvi-gdb dvi-gdb
20416maybe-dvi-gdb:
20417@if gdb
20418maybe-dvi-gdb: dvi-gdb
4fa63067 20419
b813574b
PB
20420dvi-gdb: \
20421 configure-gdb
20422 @[ -f ./gdb/Makefile ] || exit 0; \
4fa63067
NN
20423 r=`${PWD_COMMAND}`; export r; \
20424 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20425 $(SET_LIB_PATH) \
378fce5b 20426 $(HOST_EXPORTS) \
72b2455a 20427 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
4fa63067
NN
20428 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20429 done; \
b813574b
PB
20430 echo "Doing dvi in gdb" ; \
20431 (cd gdb && \
4fa63067
NN
20432 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20433 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20434 "RANLIB=$${RANLIB}" \
20435 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 20436 dvi) \
4fa63067
NN
20437 || exit 1
20438
b813574b 20439@endif gdb
4fa63067 20440
b813574b
PB
20441.PHONY: maybe-TAGS-gdb TAGS-gdb
20442maybe-TAGS-gdb:
20443@if gdb
20444maybe-TAGS-gdb: TAGS-gdb
4fa63067 20445
b813574b
PB
20446TAGS-gdb: \
20447 configure-gdb
20448 @[ -f ./gdb/Makefile ] || exit 0; \
4fa63067
NN
20449 r=`${PWD_COMMAND}`; export r; \
20450 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20451 $(SET_LIB_PATH) \
378fce5b 20452 $(HOST_EXPORTS) \
72b2455a 20453 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
4fa63067
NN
20454 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20455 done; \
b813574b
PB
20456 echo "Doing TAGS in gdb" ; \
20457 (cd gdb && \
4fa63067
NN
20458 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20459 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20460 "RANLIB=$${RANLIB}" \
20461 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 20462 TAGS) \
4fa63067
NN
20463 || exit 1
20464
b813574b 20465@endif gdb
4fa63067 20466
b813574b
PB
20467.PHONY: maybe-install-info-gdb install-info-gdb
20468maybe-install-info-gdb:
20469@if gdb
20470maybe-install-info-gdb: install-info-gdb
4fa63067 20471
b813574b
PB
20472install-info-gdb: \
20473 configure-gdb \
20474 info-gdb
20475 @[ -f ./gdb/Makefile ] || exit 0; \
4fa63067
NN
20476 r=`${PWD_COMMAND}`; export r; \
20477 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20478 $(SET_LIB_PATH) \
378fce5b 20479 $(HOST_EXPORTS) \
72b2455a 20480 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
4fa63067
NN
20481 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20482 done; \
b813574b
PB
20483 echo "Doing install-info in gdb" ; \
20484 (cd gdb && \
4fa63067
NN
20485 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20486 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20487 "RANLIB=$${RANLIB}" \
20488 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 20489 install-info) \
4fa63067
NN
20490 || exit 1
20491
b813574b 20492@endif gdb
4fa63067 20493
b813574b
PB
20494.PHONY: maybe-installcheck-gdb installcheck-gdb
20495maybe-installcheck-gdb:
20496@if gdb
20497maybe-installcheck-gdb: installcheck-gdb
4fa63067 20498
b813574b
PB
20499installcheck-gdb: \
20500 configure-gdb
20501 @[ -f ./gdb/Makefile ] || exit 0; \
4fa63067
NN
20502 r=`${PWD_COMMAND}`; export r; \
20503 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20504 $(SET_LIB_PATH) \
378fce5b 20505 $(HOST_EXPORTS) \
72b2455a 20506 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
4fa63067
NN
20507 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20508 done; \
b813574b
PB
20509 echo "Doing installcheck in gdb" ; \
20510 (cd gdb && \
4fa63067
NN
20511 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20512 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20513 "RANLIB=$${RANLIB}" \
20514 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 20515 installcheck) \
4fa63067
NN
20516 || exit 1
20517
b813574b 20518@endif gdb
4fa63067 20519
b813574b
PB
20520.PHONY: maybe-mostlyclean-gdb mostlyclean-gdb
20521maybe-mostlyclean-gdb:
20522@if gdb
20523maybe-mostlyclean-gdb: mostlyclean-gdb
4fa63067 20524
b813574b
PB
20525mostlyclean-gdb:
20526 @[ -f ./gdb/Makefile ] || exit 0; \
4fa63067
NN
20527 r=`${PWD_COMMAND}`; export r; \
20528 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20529 $(SET_LIB_PATH) \
378fce5b 20530 $(HOST_EXPORTS) \
72b2455a 20531 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
4fa63067
NN
20532 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20533 done; \
b813574b
PB
20534 echo "Doing mostlyclean in gdb" ; \
20535 (cd gdb && \
4fa63067
NN
20536 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20537 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20538 "RANLIB=$${RANLIB}" \
20539 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 20540 mostlyclean) \
4fa63067
NN
20541 || exit 1
20542
b813574b 20543@endif gdb
4fa63067 20544
b813574b
PB
20545.PHONY: maybe-clean-gdb clean-gdb
20546maybe-clean-gdb:
20547@if gdb
20548maybe-clean-gdb: clean-gdb
4fa63067 20549
b813574b
PB
20550clean-gdb:
20551 @[ -f ./gdb/Makefile ] || exit 0; \
4fa63067
NN
20552 r=`${PWD_COMMAND}`; export r; \
20553 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20554 $(SET_LIB_PATH) \
378fce5b 20555 $(HOST_EXPORTS) \
72b2455a 20556 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
4fa63067
NN
20557 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20558 done; \
b813574b
PB
20559 echo "Doing clean in gdb" ; \
20560 (cd gdb && \
4fa63067
NN
20561 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20562 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20563 "RANLIB=$${RANLIB}" \
20564 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 20565 clean) \
4fa63067
NN
20566 || exit 1
20567
b813574b 20568@endif gdb
4fa63067 20569
b813574b
PB
20570.PHONY: maybe-distclean-gdb distclean-gdb
20571maybe-distclean-gdb:
20572@if gdb
20573maybe-distclean-gdb: distclean-gdb
4fa63067 20574
b813574b
PB
20575distclean-gdb:
20576 @[ -f ./gdb/Makefile ] || exit 0; \
4fa63067
NN
20577 r=`${PWD_COMMAND}`; export r; \
20578 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20579 $(SET_LIB_PATH) \
378fce5b 20580 $(HOST_EXPORTS) \
72b2455a 20581 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
4fa63067
NN
20582 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20583 done; \
b813574b
PB
20584 echo "Doing distclean in gdb" ; \
20585 (cd gdb && \
4fa63067
NN
20586 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20587 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20588 "RANLIB=$${RANLIB}" \
20589 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 20590 distclean) \
4fa63067
NN
20591 || exit 1
20592
b813574b 20593@endif gdb
4fa63067 20594
b813574b
PB
20595.PHONY: maybe-maintainer-clean-gdb maintainer-clean-gdb
20596maybe-maintainer-clean-gdb:
20597@if gdb
20598maybe-maintainer-clean-gdb: maintainer-clean-gdb
4fa63067 20599
b813574b
PB
20600maintainer-clean-gdb:
20601 @[ -f ./gdb/Makefile ] || exit 0; \
4fa63067
NN
20602 r=`${PWD_COMMAND}`; export r; \
20603 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20604 $(SET_LIB_PATH) \
378fce5b 20605 $(HOST_EXPORTS) \
72b2455a 20606 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
4fa63067
NN
20607 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20608 done; \
b813574b
PB
20609 echo "Doing maintainer-clean in gdb" ; \
20610 (cd gdb && \
4fa63067
NN
20611 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20612 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20613 "RANLIB=$${RANLIB}" \
20614 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 20615 maintainer-clean) \
4fa63067
NN
20616 || exit 1
20617
b813574b 20618@endif gdb
4fa63067
NN
20619
20620
b813574b
PB
20621.PHONY: configure-expect maybe-configure-expect
20622maybe-configure-expect:
20623@if expect
20624maybe-configure-expect: configure-expect
20625configure-expect:
20626 @test ! -f expect/Makefile || exit 0; \
20627 [ -d expect ] || mkdir expect; \
b40e3958
L
20628 r=`${PWD_COMMAND}`; export r; \
20629 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 20630 $(HOST_EXPORTS) \
b813574b
PB
20631 echo Configuring in expect; \
20632 cd expect || exit 1; \
e2b9e2dc
NN
20633 case $(srcdir) in \
20634 \.) \
20635 srcdiroption="--srcdir=."; \
20636 libsrcdir=".";; \
20637 /* | [A-Za-z]:[\\/]*) \
b813574b
PB
20638 srcdiroption="--srcdir=$(srcdir)/expect"; \
20639 libsrcdir="$$s/expect";; \
e2b9e2dc 20640 *) \
b813574b
PB
20641 srcdiroption="--srcdir=../$(srcdir)/expect"; \
20642 libsrcdir="$$s/expect";; \
e2b9e2dc
NN
20643 esac; \
20644 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 20645 $(HOST_CONFIGARGS) $${srcdiroption} \
e2b9e2dc 20646 || exit 1
b813574b 20647@endif expect
e2b9e2dc 20648
b813574b
PB
20649.PHONY: all-expect maybe-all-expect
20650maybe-all-expect:
20651@if expect
20652maybe-all-expect: all-expect
20653all-expect: configure-expect
b40e3958
L
20654 @r=`${PWD_COMMAND}`; export r; \
20655 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 20656 $(SET_LIB_PATH) \
378fce5b 20657 $(HOST_EXPORTS) \
72b2455a 20658 (cd expect && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
b813574b 20659@endif expect
3866be5d 20660
b813574b
PB
20661.PHONY: check-expect maybe-check-expect
20662maybe-check-expect:
20663@if expect
20664maybe-check-expect: check-expect
3866be5d 20665
b813574b 20666check-expect:
b40e3958
L
20667 @r=`${PWD_COMMAND}`; export r; \
20668 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 20669 $(SET_LIB_PATH) \
378fce5b 20670 $(HOST_EXPORTS) \
72b2455a 20671 (cd expect && $(MAKE) $(FLAGS_TO_PASS)$(X11_FLAGS_TO_PASS) check)
3866be5d 20672
b813574b 20673@endif expect
3866be5d 20674
b813574b
PB
20675.PHONY: install-expect maybe-install-expect
20676maybe-install-expect:
20677@if expect
20678maybe-install-expect: install-expect
16ae0395 20679
b813574b 20680install-expect: installdirs
b40e3958
L
20681 @r=`${PWD_COMMAND}`; export r; \
20682 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 20683 $(SET_LIB_PATH) \
378fce5b 20684 $(HOST_EXPORTS) \
72b2455a 20685 (cd expect && $(MAKE) $(FLAGS_TO_PASS)$(X11_FLAGS_TO_PASS) install)
3866be5d 20686
b813574b 20687@endif expect
3866be5d 20688
4fa63067
NN
20689# Other targets (info, dvi, etc.)
20690
b813574b
PB
20691.PHONY: maybe-info-expect info-expect
20692maybe-info-expect:
20693@if expect
20694maybe-info-expect: info-expect
4fa63067 20695
b813574b
PB
20696info-expect: \
20697 configure-expect
20698 @[ -f ./expect/Makefile ] || exit 0; \
b40e3958
L
20699 r=`${PWD_COMMAND}`; export r; \
20700 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fa63067 20701 $(SET_LIB_PATH) \
378fce5b 20702 $(HOST_EXPORTS) \
72b2455a 20703 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
4fa63067
NN
20704 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20705 done; \
b813574b
PB
20706 echo "Doing info in expect" ; \
20707 (cd expect && \
4fa63067
NN
20708 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20709 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20710 "RANLIB=$${RANLIB}" \
20711 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 20712 info) \
e2b9e2dc
NN
20713 || exit 1
20714
b813574b 20715@endif expect
4fa63067 20716
b813574b
PB
20717.PHONY: maybe-dvi-expect dvi-expect
20718maybe-dvi-expect:
20719@if expect
20720maybe-dvi-expect: dvi-expect
4fa63067 20721
b813574b
PB
20722dvi-expect: \
20723 configure-expect
20724 @[ -f ./expect/Makefile ] || exit 0; \
4fa63067 20725 r=`${PWD_COMMAND}`; export r; \
b40e3958 20726 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 20727 $(SET_LIB_PATH) \
378fce5b 20728 $(HOST_EXPORTS) \
72b2455a 20729 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
4fa63067
NN
20730 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20731 done; \
b813574b
PB
20732 echo "Doing dvi in expect" ; \
20733 (cd expect && \
4fa63067
NN
20734 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20735 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20736 "RANLIB=$${RANLIB}" \
20737 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 20738 dvi) \
4fa63067 20739 || exit 1
3866be5d 20740
b813574b 20741@endif expect
3866be5d 20742
b813574b
PB
20743.PHONY: maybe-TAGS-expect TAGS-expect
20744maybe-TAGS-expect:
20745@if expect
20746maybe-TAGS-expect: TAGS-expect
4fa63067 20747
b813574b
PB
20748TAGS-expect: \
20749 configure-expect
20750 @[ -f ./expect/Makefile ] || exit 0; \
4fa63067 20751 r=`${PWD_COMMAND}`; export r; \
b40e3958 20752 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 20753 $(SET_LIB_PATH) \
378fce5b 20754 $(HOST_EXPORTS) \
72b2455a 20755 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
4fa63067
NN
20756 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20757 done; \
b813574b
PB
20758 echo "Doing TAGS in expect" ; \
20759 (cd expect && \
4fa63067
NN
20760 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20761 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20762 "RANLIB=$${RANLIB}" \
20763 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 20764 TAGS) \
4fa63067 20765 || exit 1
3866be5d 20766
b813574b 20767@endif expect
3866be5d 20768
b813574b
PB
20769.PHONY: maybe-install-info-expect install-info-expect
20770maybe-install-info-expect:
20771@if expect
20772maybe-install-info-expect: install-info-expect
16ae0395 20773
b813574b
PB
20774install-info-expect: \
20775 configure-expect \
20776 info-expect
20777 @[ -f ./expect/Makefile ] || exit 0; \
4fa63067
NN
20778 r=`${PWD_COMMAND}`; export r; \
20779 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20780 $(SET_LIB_PATH) \
378fce5b 20781 $(HOST_EXPORTS) \
72b2455a 20782 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
4fa63067
NN
20783 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20784 done; \
b813574b
PB
20785 echo "Doing install-info in expect" ; \
20786 (cd expect && \
4fa63067
NN
20787 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20788 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20789 "RANLIB=$${RANLIB}" \
20790 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 20791 install-info) \
4fa63067
NN
20792 || exit 1
20793
b813574b 20794@endif expect
4fa63067 20795
b813574b
PB
20796.PHONY: maybe-installcheck-expect installcheck-expect
20797maybe-installcheck-expect:
20798@if expect
20799maybe-installcheck-expect: installcheck-expect
4fa63067 20800
b813574b
PB
20801installcheck-expect: \
20802 configure-expect
20803 @[ -f ./expect/Makefile ] || exit 0; \
4fa63067
NN
20804 r=`${PWD_COMMAND}`; export r; \
20805 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20806 $(SET_LIB_PATH) \
378fce5b 20807 $(HOST_EXPORTS) \
72b2455a 20808 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
4fa63067
NN
20809 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20810 done; \
b813574b
PB
20811 echo "Doing installcheck in expect" ; \
20812 (cd expect && \
4fa63067
NN
20813 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20814 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20815 "RANLIB=$${RANLIB}" \
20816 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 20817 installcheck) \
4fa63067
NN
20818 || exit 1
20819
b813574b 20820@endif expect
4fa63067 20821
b813574b
PB
20822.PHONY: maybe-mostlyclean-expect mostlyclean-expect
20823maybe-mostlyclean-expect:
20824@if expect
20825maybe-mostlyclean-expect: mostlyclean-expect
4fa63067 20826
b813574b
PB
20827mostlyclean-expect:
20828 @[ -f ./expect/Makefile ] || exit 0; \
4fa63067
NN
20829 r=`${PWD_COMMAND}`; export r; \
20830 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20831 $(SET_LIB_PATH) \
378fce5b 20832 $(HOST_EXPORTS) \
72b2455a 20833 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
4fa63067
NN
20834 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20835 done; \
b813574b
PB
20836 echo "Doing mostlyclean in expect" ; \
20837 (cd expect && \
4fa63067
NN
20838 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20839 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20840 "RANLIB=$${RANLIB}" \
20841 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 20842 mostlyclean) \
4fa63067
NN
20843 || exit 1
20844
b813574b 20845@endif expect
4fa63067 20846
b813574b
PB
20847.PHONY: maybe-clean-expect clean-expect
20848maybe-clean-expect:
20849@if expect
20850maybe-clean-expect: clean-expect
4fa63067 20851
b813574b
PB
20852clean-expect:
20853 @[ -f ./expect/Makefile ] || exit 0; \
4fa63067
NN
20854 r=`${PWD_COMMAND}`; export r; \
20855 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20856 $(SET_LIB_PATH) \
378fce5b 20857 $(HOST_EXPORTS) \
72b2455a 20858 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
4fa63067
NN
20859 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20860 done; \
b813574b
PB
20861 echo "Doing clean in expect" ; \
20862 (cd expect && \
4fa63067
NN
20863 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20864 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20865 "RANLIB=$${RANLIB}" \
20866 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 20867 clean) \
4fa63067
NN
20868 || exit 1
20869
b813574b 20870@endif expect
4fa63067 20871
b813574b
PB
20872.PHONY: maybe-distclean-expect distclean-expect
20873maybe-distclean-expect:
20874@if expect
20875maybe-distclean-expect: distclean-expect
4fa63067 20876
b813574b
PB
20877distclean-expect:
20878 @[ -f ./expect/Makefile ] || exit 0; \
4fa63067
NN
20879 r=`${PWD_COMMAND}`; export r; \
20880 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20881 $(SET_LIB_PATH) \
378fce5b 20882 $(HOST_EXPORTS) \
72b2455a 20883 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
4fa63067
NN
20884 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20885 done; \
b813574b
PB
20886 echo "Doing distclean in expect" ; \
20887 (cd expect && \
4fa63067
NN
20888 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20889 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20890 "RANLIB=$${RANLIB}" \
20891 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 20892 distclean) \
4fa63067
NN
20893 || exit 1
20894
b813574b 20895@endif expect
4fa63067 20896
b813574b
PB
20897.PHONY: maybe-maintainer-clean-expect maintainer-clean-expect
20898maybe-maintainer-clean-expect:
20899@if expect
20900maybe-maintainer-clean-expect: maintainer-clean-expect
4fa63067 20901
b813574b
PB
20902maintainer-clean-expect:
20903 @[ -f ./expect/Makefile ] || exit 0; \
4fa63067 20904 r=`${PWD_COMMAND}`; export r; \
b40e3958 20905 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 20906 $(SET_LIB_PATH) \
378fce5b 20907 $(HOST_EXPORTS) \
72b2455a 20908 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
4fa63067
NN
20909 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20910 done; \
b813574b
PB
20911 echo "Doing maintainer-clean in expect" ; \
20912 (cd expect && \
4fa63067
NN
20913 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20914 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20915 "RANLIB=$${RANLIB}" \
20916 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 20917 maintainer-clean) \
4fa63067 20918 || exit 1
3866be5d 20919
b813574b 20920@endif expect
3866be5d 20921
4fa63067 20922
b813574b
PB
20923.PHONY: configure-guile maybe-configure-guile
20924maybe-configure-guile:
20925@if guile
20926maybe-configure-guile: configure-guile
20927configure-guile:
20928 @test ! -f guile/Makefile || exit 0; \
20929 [ -d guile ] || mkdir guile; \
b40e3958
L
20930 r=`${PWD_COMMAND}`; export r; \
20931 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 20932 $(HOST_EXPORTS) \
b813574b
PB
20933 echo Configuring in guile; \
20934 cd guile || exit 1; \
e2b9e2dc
NN
20935 case $(srcdir) in \
20936 \.) \
20937 srcdiroption="--srcdir=."; \
20938 libsrcdir=".";; \
20939 /* | [A-Za-z]:[\\/]*) \
b813574b
PB
20940 srcdiroption="--srcdir=$(srcdir)/guile"; \
20941 libsrcdir="$$s/guile";; \
e2b9e2dc 20942 *) \
b813574b
PB
20943 srcdiroption="--srcdir=../$(srcdir)/guile"; \
20944 libsrcdir="$$s/guile";; \
e2b9e2dc
NN
20945 esac; \
20946 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 20947 $(HOST_CONFIGARGS) $${srcdiroption} \
e2b9e2dc 20948 || exit 1
b813574b 20949@endif guile
e2b9e2dc 20950
b813574b
PB
20951.PHONY: all-guile maybe-all-guile
20952maybe-all-guile:
20953@if guile
20954maybe-all-guile: all-guile
20955all-guile: configure-guile
b40e3958
L
20956 @r=`${PWD_COMMAND}`; export r; \
20957 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 20958 $(SET_LIB_PATH) \
378fce5b 20959 $(HOST_EXPORTS) \
72b2455a 20960 (cd guile && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
b813574b 20961@endif guile
3866be5d 20962
b813574b
PB
20963.PHONY: check-guile maybe-check-guile
20964maybe-check-guile:
20965@if guile
20966maybe-check-guile: check-guile
3866be5d 20967
b813574b 20968check-guile:
b40e3958
L
20969 @r=`${PWD_COMMAND}`; export r; \
20970 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 20971 $(SET_LIB_PATH) \
378fce5b 20972 $(HOST_EXPORTS) \
72b2455a 20973 (cd guile && $(MAKE) $(FLAGS_TO_PASS)$(X11_FLAGS_TO_PASS) check)
3866be5d 20974
b813574b 20975@endif guile
16ae0395 20976
b813574b
PB
20977.PHONY: install-guile maybe-install-guile
20978maybe-install-guile:
20979@if guile
20980maybe-install-guile: install-guile
20981
20982install-guile: installdirs
b40e3958
L
20983 @r=`${PWD_COMMAND}`; export r; \
20984 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 20985 $(SET_LIB_PATH) \
378fce5b 20986 $(HOST_EXPORTS) \
72b2455a 20987 (cd guile && $(MAKE) $(FLAGS_TO_PASS)$(X11_FLAGS_TO_PASS) install)
4fa63067 20988
b813574b 20989@endif guile
4fa63067
NN
20990
20991# Other targets (info, dvi, etc.)
20992
b813574b
PB
20993.PHONY: maybe-info-guile info-guile
20994maybe-info-guile:
20995@if guile
20996maybe-info-guile: info-guile
4fa63067 20997
b813574b
PB
20998info-guile: \
20999 configure-guile
21000 @[ -f ./guile/Makefile ] || exit 0; \
4fa63067
NN
21001 r=`${PWD_COMMAND}`; export r; \
21002 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21003 $(SET_LIB_PATH) \
378fce5b 21004 $(HOST_EXPORTS) \
72b2455a 21005 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
4fa63067
NN
21006 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21007 done; \
b813574b
PB
21008 echo "Doing info in guile" ; \
21009 (cd guile && \
4fa63067
NN
21010 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21011 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21012 "RANLIB=$${RANLIB}" \
21013 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 21014 info) \
4fa63067
NN
21015 || exit 1
21016
b813574b 21017@endif guile
4fa63067 21018
b813574b
PB
21019.PHONY: maybe-dvi-guile dvi-guile
21020maybe-dvi-guile:
21021@if guile
21022maybe-dvi-guile: dvi-guile
4fa63067 21023
b813574b
PB
21024dvi-guile: \
21025 configure-guile
21026 @[ -f ./guile/Makefile ] || exit 0; \
4fa63067
NN
21027 r=`${PWD_COMMAND}`; export r; \
21028 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21029 $(SET_LIB_PATH) \
378fce5b 21030 $(HOST_EXPORTS) \
72b2455a 21031 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
4fa63067
NN
21032 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21033 done; \
b813574b
PB
21034 echo "Doing dvi in guile" ; \
21035 (cd guile && \
4fa63067
NN
21036 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21037 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21038 "RANLIB=$${RANLIB}" \
21039 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 21040 dvi) \
4fa63067
NN
21041 || exit 1
21042
b813574b 21043@endif guile
4fa63067 21044
b813574b
PB
21045.PHONY: maybe-TAGS-guile TAGS-guile
21046maybe-TAGS-guile:
21047@if guile
21048maybe-TAGS-guile: TAGS-guile
4fa63067 21049
b813574b
PB
21050TAGS-guile: \
21051 configure-guile
21052 @[ -f ./guile/Makefile ] || exit 0; \
4fa63067
NN
21053 r=`${PWD_COMMAND}`; export r; \
21054 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21055 $(SET_LIB_PATH) \
378fce5b 21056 $(HOST_EXPORTS) \
72b2455a 21057 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
4fa63067
NN
21058 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21059 done; \
b813574b
PB
21060 echo "Doing TAGS in guile" ; \
21061 (cd guile && \
4fa63067
NN
21062 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21063 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21064 "RANLIB=$${RANLIB}" \
21065 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 21066 TAGS) \
4fa63067
NN
21067 || exit 1
21068
b813574b 21069@endif guile
4fa63067 21070
b813574b
PB
21071.PHONY: maybe-install-info-guile install-info-guile
21072maybe-install-info-guile:
21073@if guile
21074maybe-install-info-guile: install-info-guile
4fa63067 21075
b813574b
PB
21076install-info-guile: \
21077 configure-guile \
21078 info-guile
21079 @[ -f ./guile/Makefile ] || exit 0; \
4fa63067
NN
21080 r=`${PWD_COMMAND}`; export r; \
21081 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21082 $(SET_LIB_PATH) \
378fce5b 21083 $(HOST_EXPORTS) \
72b2455a 21084 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
4fa63067
NN
21085 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21086 done; \
b813574b
PB
21087 echo "Doing install-info in guile" ; \
21088 (cd guile && \
4fa63067
NN
21089 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21090 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21091 "RANLIB=$${RANLIB}" \
21092 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 21093 install-info) \
4fa63067
NN
21094 || exit 1
21095
b813574b 21096@endif guile
4fa63067 21097
b813574b
PB
21098.PHONY: maybe-installcheck-guile installcheck-guile
21099maybe-installcheck-guile:
21100@if guile
21101maybe-installcheck-guile: installcheck-guile
4fa63067 21102
b813574b
PB
21103installcheck-guile: \
21104 configure-guile
21105 @[ -f ./guile/Makefile ] || exit 0; \
4fa63067
NN
21106 r=`${PWD_COMMAND}`; export r; \
21107 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21108 $(SET_LIB_PATH) \
378fce5b 21109 $(HOST_EXPORTS) \
72b2455a 21110 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
4fa63067
NN
21111 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21112 done; \
b813574b
PB
21113 echo "Doing installcheck in guile" ; \
21114 (cd guile && \
4fa63067
NN
21115 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21116 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21117 "RANLIB=$${RANLIB}" \
21118 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 21119 installcheck) \
4fa63067
NN
21120 || exit 1
21121
b813574b 21122@endif guile
4fa63067 21123
b813574b
PB
21124.PHONY: maybe-mostlyclean-guile mostlyclean-guile
21125maybe-mostlyclean-guile:
21126@if guile
21127maybe-mostlyclean-guile: mostlyclean-guile
4fa63067 21128
b813574b
PB
21129mostlyclean-guile:
21130 @[ -f ./guile/Makefile ] || exit 0; \
4fa63067
NN
21131 r=`${PWD_COMMAND}`; export r; \
21132 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21133 $(SET_LIB_PATH) \
378fce5b 21134 $(HOST_EXPORTS) \
72b2455a 21135 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
4fa63067
NN
21136 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21137 done; \
b813574b
PB
21138 echo "Doing mostlyclean in guile" ; \
21139 (cd guile && \
4fa63067
NN
21140 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21141 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21142 "RANLIB=$${RANLIB}" \
21143 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 21144 mostlyclean) \
4fa63067
NN
21145 || exit 1
21146
b813574b 21147@endif guile
4fa63067 21148
b813574b
PB
21149.PHONY: maybe-clean-guile clean-guile
21150maybe-clean-guile:
21151@if guile
21152maybe-clean-guile: clean-guile
4fa63067 21153
b813574b
PB
21154clean-guile:
21155 @[ -f ./guile/Makefile ] || exit 0; \
4fa63067
NN
21156 r=`${PWD_COMMAND}`; export r; \
21157 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21158 $(SET_LIB_PATH) \
378fce5b 21159 $(HOST_EXPORTS) \
72b2455a 21160 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
4fa63067
NN
21161 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21162 done; \
b813574b
PB
21163 echo "Doing clean in guile" ; \
21164 (cd guile && \
4fa63067
NN
21165 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21166 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21167 "RANLIB=$${RANLIB}" \
21168 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 21169 clean) \
4fa63067
NN
21170 || exit 1
21171
b813574b 21172@endif guile
4fa63067 21173
b813574b
PB
21174.PHONY: maybe-distclean-guile distclean-guile
21175maybe-distclean-guile:
21176@if guile
21177maybe-distclean-guile: distclean-guile
4fa63067 21178
b813574b
PB
21179distclean-guile:
21180 @[ -f ./guile/Makefile ] || exit 0; \
4fa63067
NN
21181 r=`${PWD_COMMAND}`; export r; \
21182 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21183 $(SET_LIB_PATH) \
378fce5b 21184 $(HOST_EXPORTS) \
72b2455a 21185 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
4fa63067
NN
21186 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21187 done; \
b813574b
PB
21188 echo "Doing distclean in guile" ; \
21189 (cd guile && \
4fa63067
NN
21190 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21191 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21192 "RANLIB=$${RANLIB}" \
21193 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 21194 distclean) \
4fa63067
NN
21195 || exit 1
21196
b813574b 21197@endif guile
4fa63067 21198
b813574b
PB
21199.PHONY: maybe-maintainer-clean-guile maintainer-clean-guile
21200maybe-maintainer-clean-guile:
21201@if guile
21202maybe-maintainer-clean-guile: maintainer-clean-guile
4fa63067 21203
b813574b
PB
21204maintainer-clean-guile:
21205 @[ -f ./guile/Makefile ] || exit 0; \
4fa63067
NN
21206 r=`${PWD_COMMAND}`; export r; \
21207 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21208 $(SET_LIB_PATH) \
378fce5b 21209 $(HOST_EXPORTS) \
72b2455a 21210 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
4fa63067
NN
21211 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21212 done; \
b813574b
PB
21213 echo "Doing maintainer-clean in guile" ; \
21214 (cd guile && \
4fa63067
NN
21215 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21216 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21217 "RANLIB=$${RANLIB}" \
21218 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 21219 maintainer-clean) \
4fa63067
NN
21220 || exit 1
21221
b813574b 21222@endif guile
3866be5d
NN
21223
21224
b813574b
PB
21225.PHONY: configure-tk maybe-configure-tk
21226maybe-configure-tk:
21227@if tk
21228maybe-configure-tk: configure-tk
21229configure-tk:
21230 @test ! -f tk/Makefile || exit 0; \
21231 [ -d tk ] || mkdir tk; \
b40e3958
L
21232 r=`${PWD_COMMAND}`; export r; \
21233 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 21234 $(HOST_EXPORTS) \
b813574b
PB
21235 echo Configuring in tk; \
21236 cd tk || exit 1; \
e2b9e2dc
NN
21237 case $(srcdir) in \
21238 \.) \
21239 srcdiroption="--srcdir=."; \
21240 libsrcdir=".";; \
21241 /* | [A-Za-z]:[\\/]*) \
b813574b
PB
21242 srcdiroption="--srcdir=$(srcdir)/tk"; \
21243 libsrcdir="$$s/tk";; \
e2b9e2dc 21244 *) \
b813574b
PB
21245 srcdiroption="--srcdir=../$(srcdir)/tk"; \
21246 libsrcdir="$$s/tk";; \
e2b9e2dc
NN
21247 esac; \
21248 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 21249 $(HOST_CONFIGARGS) $${srcdiroption} \
e2b9e2dc 21250 || exit 1
b813574b 21251@endif tk
e2b9e2dc 21252
b813574b
PB
21253.PHONY: all-tk maybe-all-tk
21254maybe-all-tk:
21255@if tk
21256maybe-all-tk: all-tk
21257all-tk: configure-tk
b40e3958
L
21258 @r=`${PWD_COMMAND}`; export r; \
21259 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 21260 $(SET_LIB_PATH) \
378fce5b 21261 $(HOST_EXPORTS) \
72b2455a 21262 (cd tk && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
b813574b 21263@endif tk
3866be5d 21264
b813574b
PB
21265.PHONY: check-tk maybe-check-tk
21266maybe-check-tk:
21267@if tk
21268maybe-check-tk: check-tk
3866be5d 21269
b813574b 21270check-tk:
b40e3958
L
21271 @r=`${PWD_COMMAND}`; export r; \
21272 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 21273 $(SET_LIB_PATH) \
378fce5b 21274 $(HOST_EXPORTS) \
72b2455a 21275 (cd tk && $(MAKE) $(FLAGS_TO_PASS)$(X11_FLAGS_TO_PASS) check)
3866be5d 21276
b813574b 21277@endif tk
3866be5d 21278
b813574b
PB
21279.PHONY: install-tk maybe-install-tk
21280maybe-install-tk:
21281@if tk
21282maybe-install-tk: install-tk
16ae0395 21283
b813574b 21284install-tk: installdirs
b40e3958
L
21285 @r=`${PWD_COMMAND}`; export r; \
21286 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 21287 $(SET_LIB_PATH) \
378fce5b 21288 $(HOST_EXPORTS) \
72b2455a 21289 (cd tk && $(MAKE) $(FLAGS_TO_PASS)$(X11_FLAGS_TO_PASS) install)
3866be5d 21290
b813574b 21291@endif tk
3866be5d 21292
4fa63067
NN
21293# Other targets (info, dvi, etc.)
21294
b813574b
PB
21295.PHONY: maybe-info-tk info-tk
21296maybe-info-tk:
21297@if tk
21298maybe-info-tk: info-tk
4fa63067 21299
b813574b
PB
21300info-tk: \
21301 configure-tk
21302 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
21303 r=`${PWD_COMMAND}`; export r; \
21304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fa63067 21305 $(SET_LIB_PATH) \
378fce5b 21306 $(HOST_EXPORTS) \
72b2455a 21307 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
4fa63067
NN
21308 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21309 done; \
b813574b
PB
21310 echo "Doing info in tk" ; \
21311 (cd tk && \
4fa63067
NN
21312 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21313 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21314 "RANLIB=$${RANLIB}" \
21315 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 21316 info) \
e2b9e2dc
NN
21317 || exit 1
21318
b813574b 21319@endif tk
4fa63067 21320
b813574b
PB
21321.PHONY: maybe-dvi-tk dvi-tk
21322maybe-dvi-tk:
21323@if tk
21324maybe-dvi-tk: dvi-tk
4fa63067 21325
b813574b
PB
21326dvi-tk: \
21327 configure-tk
21328 @[ -f ./tk/Makefile ] || exit 0; \
4fa63067 21329 r=`${PWD_COMMAND}`; export r; \
b40e3958 21330 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 21331 $(SET_LIB_PATH) \
378fce5b 21332 $(HOST_EXPORTS) \
72b2455a 21333 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
4fa63067
NN
21334 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21335 done; \
b813574b
PB
21336 echo "Doing dvi in tk" ; \
21337 (cd tk && \
4fa63067
NN
21338 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21339 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21340 "RANLIB=$${RANLIB}" \
21341 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 21342 dvi) \
4fa63067 21343 || exit 1
3866be5d 21344
b813574b 21345@endif tk
3866be5d 21346
b813574b
PB
21347.PHONY: maybe-TAGS-tk TAGS-tk
21348maybe-TAGS-tk:
21349@if tk
21350maybe-TAGS-tk: TAGS-tk
4fa63067 21351
b813574b
PB
21352TAGS-tk: \
21353 configure-tk
21354 @[ -f ./tk/Makefile ] || exit 0; \
4fa63067 21355 r=`${PWD_COMMAND}`; export r; \
b40e3958 21356 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 21357 $(SET_LIB_PATH) \
378fce5b 21358 $(HOST_EXPORTS) \
72b2455a 21359 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
4fa63067
NN
21360 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21361 done; \
b813574b
PB
21362 echo "Doing TAGS in tk" ; \
21363 (cd tk && \
4fa63067
NN
21364 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21365 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21366 "RANLIB=$${RANLIB}" \
21367 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 21368 TAGS) \
4fa63067 21369 || exit 1
3866be5d 21370
b813574b 21371@endif tk
3866be5d 21372
b813574b
PB
21373.PHONY: maybe-install-info-tk install-info-tk
21374maybe-install-info-tk:
21375@if tk
21376maybe-install-info-tk: install-info-tk
4fa63067 21377
b813574b
PB
21378install-info-tk: \
21379 configure-tk \
21380 info-tk
21381 @[ -f ./tk/Makefile ] || exit 0; \
4fa63067
NN
21382 r=`${PWD_COMMAND}`; export r; \
21383 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21384 $(SET_LIB_PATH) \
378fce5b 21385 $(HOST_EXPORTS) \
72b2455a 21386 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
4fa63067
NN
21387 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21388 done; \
b813574b
PB
21389 echo "Doing install-info in tk" ; \
21390 (cd tk && \
4fa63067
NN
21391 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21392 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21393 "RANLIB=$${RANLIB}" \
21394 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 21395 install-info) \
4fa63067
NN
21396 || exit 1
21397
b813574b 21398@endif tk
4fa63067 21399
b813574b
PB
21400.PHONY: maybe-installcheck-tk installcheck-tk
21401maybe-installcheck-tk:
21402@if tk
21403maybe-installcheck-tk: installcheck-tk
4fa63067 21404
b813574b
PB
21405installcheck-tk: \
21406 configure-tk
21407 @[ -f ./tk/Makefile ] || exit 0; \
4fa63067
NN
21408 r=`${PWD_COMMAND}`; export r; \
21409 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21410 $(SET_LIB_PATH) \
378fce5b 21411 $(HOST_EXPORTS) \
72b2455a 21412 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
4fa63067
NN
21413 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21414 done; \
b813574b
PB
21415 echo "Doing installcheck in tk" ; \
21416 (cd tk && \
4fa63067
NN
21417 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21418 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21419 "RANLIB=$${RANLIB}" \
21420 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 21421 installcheck) \
4fa63067
NN
21422 || exit 1
21423
b813574b 21424@endif tk
4fa63067 21425
b813574b
PB
21426.PHONY: maybe-mostlyclean-tk mostlyclean-tk
21427maybe-mostlyclean-tk:
21428@if tk
21429maybe-mostlyclean-tk: mostlyclean-tk
4fa63067 21430
b813574b
PB
21431mostlyclean-tk:
21432 @[ -f ./tk/Makefile ] || exit 0; \
4fa63067
NN
21433 r=`${PWD_COMMAND}`; export r; \
21434 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21435 $(SET_LIB_PATH) \
378fce5b 21436 $(HOST_EXPORTS) \
72b2455a 21437 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
4fa63067
NN
21438 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21439 done; \
b813574b
PB
21440 echo "Doing mostlyclean in tk" ; \
21441 (cd tk && \
4fa63067
NN
21442 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21443 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21444 "RANLIB=$${RANLIB}" \
21445 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 21446 mostlyclean) \
4fa63067
NN
21447 || exit 1
21448
b813574b 21449@endif tk
4fa63067 21450
b813574b
PB
21451.PHONY: maybe-clean-tk clean-tk
21452maybe-clean-tk:
21453@if tk
21454maybe-clean-tk: clean-tk
4fa63067 21455
b813574b
PB
21456clean-tk:
21457 @[ -f ./tk/Makefile ] || exit 0; \
4fa63067
NN
21458 r=`${PWD_COMMAND}`; export r; \
21459 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21460 $(SET_LIB_PATH) \
378fce5b 21461 $(HOST_EXPORTS) \
72b2455a 21462 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
4fa63067
NN
21463 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21464 done; \
b813574b
PB
21465 echo "Doing clean in tk" ; \
21466 (cd tk && \
4fa63067
NN
21467 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21468 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21469 "RANLIB=$${RANLIB}" \
21470 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 21471 clean) \
4fa63067
NN
21472 || exit 1
21473
b813574b 21474@endif tk
4fa63067 21475
b813574b
PB
21476.PHONY: maybe-distclean-tk distclean-tk
21477maybe-distclean-tk:
21478@if tk
21479maybe-distclean-tk: distclean-tk
4fa63067 21480
b813574b
PB
21481distclean-tk:
21482 @[ -f ./tk/Makefile ] || exit 0; \
4fa63067
NN
21483 r=`${PWD_COMMAND}`; export r; \
21484 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21485 $(SET_LIB_PATH) \
378fce5b 21486 $(HOST_EXPORTS) \
72b2455a 21487 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
4fa63067
NN
21488 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21489 done; \
b813574b
PB
21490 echo "Doing distclean in tk" ; \
21491 (cd tk && \
4fa63067
NN
21492 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21493 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21494 "RANLIB=$${RANLIB}" \
21495 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 21496 distclean) \
4fa63067
NN
21497 || exit 1
21498
b813574b 21499@endif tk
4fa63067 21500
b813574b
PB
21501.PHONY: maybe-maintainer-clean-tk maintainer-clean-tk
21502maybe-maintainer-clean-tk:
21503@if tk
21504maybe-maintainer-clean-tk: maintainer-clean-tk
16ae0395 21505
b813574b
PB
21506maintainer-clean-tk:
21507 @[ -f ./tk/Makefile ] || exit 0; \
4fa63067 21508 r=`${PWD_COMMAND}`; export r; \
b40e3958 21509 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 21510 $(SET_LIB_PATH) \
378fce5b 21511 $(HOST_EXPORTS) \
72b2455a 21512 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
4fa63067
NN
21513 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21514 done; \
b813574b
PB
21515 echo "Doing maintainer-clean in tk" ; \
21516 (cd tk && \
4fa63067
NN
21517 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21518 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21519 "RANLIB=$${RANLIB}" \
21520 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 21521 maintainer-clean) \
4fa63067 21522 || exit 1
3866be5d 21523
b813574b 21524@endif tk
3866be5d 21525
4fa63067 21526
b813574b
PB
21527.PHONY: configure-libtermcap maybe-configure-libtermcap
21528maybe-configure-libtermcap:
21529@if libtermcap
21530maybe-configure-libtermcap: configure-libtermcap
21531configure-libtermcap:
21532 @test ! -f libtermcap/Makefile || exit 0; \
21533 [ -d libtermcap ] || mkdir libtermcap; \
21534 r=`${PWD_COMMAND}`; export r; \
21535 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21536 $(HOST_EXPORTS) \
21537 echo Configuring in libtermcap; \
21538 cd libtermcap || exit 1; \
21539 case $(srcdir) in \
21540 \.) \
21541 srcdiroption="--srcdir=."; \
21542 libsrcdir=".";; \
21543 /* | [A-Za-z]:[\\/]*) \
21544 srcdiroption="--srcdir=$(srcdir)/libtermcap"; \
21545 libsrcdir="$$s/libtermcap";; \
21546 *) \
21547 srcdiroption="--srcdir=../$(srcdir)/libtermcap"; \
21548 libsrcdir="$$s/libtermcap";; \
21549 esac; \
21550 $(SHELL) $${libsrcdir}/configure \
21551 $(HOST_CONFIGARGS) $${srcdiroption} \
21552 || exit 1
21553@endif libtermcap
21554
21555.PHONY: all-libtermcap maybe-all-libtermcap
21556maybe-all-libtermcap:
21557@if libtermcap
21558maybe-all-libtermcap: all-libtermcap
21559all-libtermcap: configure-libtermcap
21560 @r=`${PWD_COMMAND}`; export r; \
21561 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21562 $(SET_LIB_PATH) \
21563 $(HOST_EXPORTS) \
21564 (cd libtermcap && $(MAKE) $(FLAGS_TO_PASS) all)
21565@endif libtermcap
21566
21567.PHONY: check-libtermcap maybe-check-libtermcap
21568maybe-check-libtermcap:
21569@if libtermcap
21570maybe-check-libtermcap: check-libtermcap
21571
21572check-libtermcap:
4fa63067 21573
6bd3dfaa 21574@endif libtermcap
4fa63067
NN
21575
21576.PHONY: install-libtermcap maybe-install-libtermcap
21577maybe-install-libtermcap:
6bd3dfaa
PB
21578@if libtermcap
21579maybe-install-libtermcap: install-libtermcap
4fa63067
NN
21580
21581install-libtermcap: installdirs
b40e3958
L
21582 @r=`${PWD_COMMAND}`; export r; \
21583 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 21584 $(SET_LIB_PATH) \
378fce5b 21585 $(HOST_EXPORTS) \
72b2455a 21586 (cd libtermcap && $(MAKE) $(FLAGS_TO_PASS) install)
3866be5d 21587
6bd3dfaa 21588@endif libtermcap
3866be5d 21589
4fa63067 21590# Other targets (info, dvi, etc.)
16ae0395 21591
4fa63067
NN
21592.PHONY: maybe-info-libtermcap info-libtermcap
21593maybe-info-libtermcap:
6bd3dfaa
PB
21594@if libtermcap
21595maybe-info-libtermcap: info-libtermcap
4fa63067
NN
21596
21597info-libtermcap: \
21598 configure-libtermcap
21599 @[ -f ./libtermcap/Makefile ] || exit 0; \
21600 r=`${PWD_COMMAND}`; export r; \
b40e3958 21601 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 21602 $(SET_LIB_PATH) \
378fce5b 21603 $(HOST_EXPORTS) \
b813574b 21604 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
21605 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21606 done; \
21607 echo "Doing info in libtermcap" ; \
21608 (cd libtermcap && \
21609 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21610 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21611 "RANLIB=$${RANLIB}" \
21612 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 21613 info) \
4fa63067 21614 || exit 1
3866be5d 21615
6bd3dfaa 21616@endif libtermcap
3866be5d 21617
4fa63067
NN
21618.PHONY: maybe-dvi-libtermcap dvi-libtermcap
21619maybe-dvi-libtermcap:
6bd3dfaa
PB
21620@if libtermcap
21621maybe-dvi-libtermcap: dvi-libtermcap
4fa63067
NN
21622
21623dvi-libtermcap: \
21624 configure-libtermcap
21625 @[ -f ./libtermcap/Makefile ] || exit 0; \
21626 r=`${PWD_COMMAND}`; export r; \
21627 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21628 $(SET_LIB_PATH) \
378fce5b 21629 $(HOST_EXPORTS) \
b813574b 21630 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
21631 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21632 done; \
21633 echo "Doing dvi in libtermcap" ; \
21634 (cd libtermcap && \
21635 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21636 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21637 "RANLIB=$${RANLIB}" \
21638 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 21639 dvi) \
4fa63067
NN
21640 || exit 1
21641
6bd3dfaa 21642@endif libtermcap
4fa63067
NN
21643
21644.PHONY: maybe-TAGS-libtermcap TAGS-libtermcap
21645maybe-TAGS-libtermcap:
6bd3dfaa
PB
21646@if libtermcap
21647maybe-TAGS-libtermcap: TAGS-libtermcap
4fa63067
NN
21648
21649TAGS-libtermcap: \
21650 configure-libtermcap
21651 @[ -f ./libtermcap/Makefile ] || exit 0; \
21652 r=`${PWD_COMMAND}`; export r; \
21653 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21654 $(SET_LIB_PATH) \
378fce5b 21655 $(HOST_EXPORTS) \
b813574b 21656 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
21657 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21658 done; \
21659 echo "Doing TAGS in libtermcap" ; \
21660 (cd libtermcap && \
21661 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21662 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21663 "RANLIB=$${RANLIB}" \
21664 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 21665 TAGS) \
4fa63067
NN
21666 || exit 1
21667
6bd3dfaa 21668@endif libtermcap
4fa63067
NN
21669
21670.PHONY: maybe-install-info-libtermcap install-info-libtermcap
21671maybe-install-info-libtermcap:
6bd3dfaa
PB
21672@if libtermcap
21673maybe-install-info-libtermcap: install-info-libtermcap
4fa63067
NN
21674
21675install-info-libtermcap: \
21676 configure-libtermcap \
21677 info-libtermcap
21678 @[ -f ./libtermcap/Makefile ] || exit 0; \
21679 r=`${PWD_COMMAND}`; export r; \
21680 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21681 $(SET_LIB_PATH) \
378fce5b 21682 $(HOST_EXPORTS) \
b813574b 21683 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
21684 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21685 done; \
21686 echo "Doing install-info in libtermcap" ; \
21687 (cd libtermcap && \
21688 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21689 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21690 "RANLIB=$${RANLIB}" \
21691 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 21692 install-info) \
4fa63067
NN
21693 || exit 1
21694
6bd3dfaa 21695@endif libtermcap
4fa63067
NN
21696
21697.PHONY: maybe-installcheck-libtermcap installcheck-libtermcap
21698maybe-installcheck-libtermcap:
6bd3dfaa
PB
21699@if libtermcap
21700maybe-installcheck-libtermcap: installcheck-libtermcap
4fa63067
NN
21701
21702installcheck-libtermcap: \
21703 configure-libtermcap
21704 @[ -f ./libtermcap/Makefile ] || exit 0; \
21705 r=`${PWD_COMMAND}`; export r; \
21706 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21707 $(SET_LIB_PATH) \
378fce5b 21708 $(HOST_EXPORTS) \
b813574b 21709 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
21710 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21711 done; \
21712 echo "Doing installcheck in libtermcap" ; \
21713 (cd libtermcap && \
21714 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21715 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21716 "RANLIB=$${RANLIB}" \
21717 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 21718 installcheck) \
4fa63067
NN
21719 || exit 1
21720
6bd3dfaa 21721@endif libtermcap
4fa63067
NN
21722
21723.PHONY: maybe-mostlyclean-libtermcap mostlyclean-libtermcap
21724maybe-mostlyclean-libtermcap:
6bd3dfaa
PB
21725@if libtermcap
21726maybe-mostlyclean-libtermcap: mostlyclean-libtermcap
4fa63067
NN
21727
21728# libtermcap doesn't support mostlyclean.
21729mostlyclean-libtermcap:
21730
6bd3dfaa 21731@endif libtermcap
4fa63067
NN
21732
21733.PHONY: maybe-clean-libtermcap clean-libtermcap
21734maybe-clean-libtermcap:
6bd3dfaa
PB
21735@if libtermcap
21736maybe-clean-libtermcap: clean-libtermcap
4fa63067
NN
21737
21738# libtermcap doesn't support clean.
21739clean-libtermcap:
21740
6bd3dfaa 21741@endif libtermcap
4fa63067
NN
21742
21743.PHONY: maybe-distclean-libtermcap distclean-libtermcap
21744maybe-distclean-libtermcap:
6bd3dfaa
PB
21745@if libtermcap
21746maybe-distclean-libtermcap: distclean-libtermcap
4fa63067
NN
21747
21748# libtermcap doesn't support distclean.
21749distclean-libtermcap:
21750
6bd3dfaa 21751@endif libtermcap
4fa63067
NN
21752
21753.PHONY: maybe-maintainer-clean-libtermcap maintainer-clean-libtermcap
21754maybe-maintainer-clean-libtermcap:
6bd3dfaa
PB
21755@if libtermcap
21756maybe-maintainer-clean-libtermcap: maintainer-clean-libtermcap
4fa63067
NN
21757
21758# libtermcap doesn't support maintainer-clean.
21759maintainer-clean-libtermcap:
21760
6bd3dfaa 21761@endif libtermcap
4fa63067
NN
21762
21763
21764.PHONY: configure-utils maybe-configure-utils
21765maybe-configure-utils:
6bd3dfaa
PB
21766@if utils
21767maybe-configure-utils: configure-utils
4fa63067
NN
21768configure-utils:
21769 @test ! -f utils/Makefile || exit 0; \
21770 [ -d utils ] || mkdir utils; \
b40e3958
L
21771 r=`${PWD_COMMAND}`; export r; \
21772 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 21773 $(HOST_EXPORTS) \
4fa63067
NN
21774 echo Configuring in utils; \
21775 cd utils || exit 1; \
e2b9e2dc
NN
21776 case $(srcdir) in \
21777 \.) \
21778 srcdiroption="--srcdir=."; \
21779 libsrcdir=".";; \
21780 /* | [A-Za-z]:[\\/]*) \
4fa63067
NN
21781 srcdiroption="--srcdir=$(srcdir)/utils"; \
21782 libsrcdir="$$s/utils";; \
e2b9e2dc 21783 *) \
4fa63067
NN
21784 srcdiroption="--srcdir=../$(srcdir)/utils"; \
21785 libsrcdir="$$s/utils";; \
e2b9e2dc
NN
21786 esac; \
21787 $(SHELL) $${libsrcdir}/configure \
7ffa0b57 21788 $(HOST_CONFIGARGS) $${srcdiroption} \
e2b9e2dc 21789 || exit 1
6bd3dfaa 21790@endif utils
e2b9e2dc 21791
4fa63067
NN
21792.PHONY: all-utils maybe-all-utils
21793maybe-all-utils:
6bd3dfaa
PB
21794@if utils
21795maybe-all-utils: all-utils
4fa63067
NN
21796all-utils: configure-utils
21797 @r=`${PWD_COMMAND}`; export r; \
21798 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21799 $(SET_LIB_PATH) \
378fce5b 21800 $(HOST_EXPORTS) \
7ffa0b57 21801 (cd utils && $(MAKE) $(FLAGS_TO_PASS) all)
6bd3dfaa 21802@endif utils
4fa63067
NN
21803
21804.PHONY: check-utils maybe-check-utils
21805maybe-check-utils:
6bd3dfaa
PB
21806@if utils
21807maybe-check-utils: check-utils
4fa63067
NN
21808
21809check-utils:
21810
6bd3dfaa 21811@endif utils
4fa63067
NN
21812
21813.PHONY: install-utils maybe-install-utils
21814maybe-install-utils:
6bd3dfaa
PB
21815@if utils
21816maybe-install-utils: install-utils
4fa63067
NN
21817
21818install-utils: installdirs
21819 @r=`${PWD_COMMAND}`; export r; \
21820 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21821 $(SET_LIB_PATH) \
378fce5b 21822 $(HOST_EXPORTS) \
72b2455a 21823 (cd utils && $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 21824
6bd3dfaa 21825@endif utils
4fa63067
NN
21826
21827# Other targets (info, dvi, etc.)
21828
21829.PHONY: maybe-info-utils info-utils
21830maybe-info-utils:
6bd3dfaa
PB
21831@if utils
21832maybe-info-utils: info-utils
4fa63067
NN
21833
21834info-utils: \
21835 configure-utils
21836 @[ -f ./utils/Makefile ] || exit 0; \
21837 r=`${PWD_COMMAND}`; export r; \
21838 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21839 $(SET_LIB_PATH) \
378fce5b 21840 $(HOST_EXPORTS) \
b813574b 21841 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
21842 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21843 done; \
21844 echo "Doing info in utils" ; \
21845 (cd utils && \
21846 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21847 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21848 "RANLIB=$${RANLIB}" \
21849 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 21850 info) \
4fa63067
NN
21851 || exit 1
21852
6bd3dfaa 21853@endif utils
4fa63067
NN
21854
21855.PHONY: maybe-dvi-utils dvi-utils
21856maybe-dvi-utils:
6bd3dfaa
PB
21857@if utils
21858maybe-dvi-utils: dvi-utils
4fa63067
NN
21859
21860dvi-utils: \
21861 configure-utils
21862 @[ -f ./utils/Makefile ] || exit 0; \
21863 r=`${PWD_COMMAND}`; export r; \
b40e3958 21864 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 21865 $(SET_LIB_PATH) \
378fce5b 21866 $(HOST_EXPORTS) \
b813574b 21867 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
21868 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21869 done; \
21870 echo "Doing dvi in utils" ; \
21871 (cd utils && \
21872 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21873 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21874 "RANLIB=$${RANLIB}" \
21875 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 21876 dvi) \
4fa63067 21877 || exit 1
3866be5d 21878
6bd3dfaa 21879@endif utils
3866be5d 21880
4fa63067
NN
21881.PHONY: maybe-TAGS-utils TAGS-utils
21882maybe-TAGS-utils:
6bd3dfaa
PB
21883@if utils
21884maybe-TAGS-utils: TAGS-utils
4fa63067
NN
21885
21886TAGS-utils: \
21887 configure-utils
21888 @[ -f ./utils/Makefile ] || exit 0; \
21889 r=`${PWD_COMMAND}`; export r; \
b40e3958 21890 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 21891 $(SET_LIB_PATH) \
378fce5b 21892 $(HOST_EXPORTS) \
b813574b 21893 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
21894 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21895 done; \
21896 echo "Doing TAGS in utils" ; \
21897 (cd utils && \
21898 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21899 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21900 "RANLIB=$${RANLIB}" \
21901 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 21902 TAGS) \
4fa63067 21903 || exit 1
3866be5d 21904
6bd3dfaa 21905@endif utils
3866be5d 21906
4fa63067
NN
21907.PHONY: maybe-install-info-utils install-info-utils
21908maybe-install-info-utils:
6bd3dfaa
PB
21909@if utils
21910maybe-install-info-utils: install-info-utils
16ae0395 21911
4fa63067
NN
21912install-info-utils: \
21913 configure-utils \
21914 info-utils
21915 @[ -f ./utils/Makefile ] || exit 0; \
21916 r=`${PWD_COMMAND}`; export r; \
b40e3958 21917 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 21918 $(SET_LIB_PATH) \
378fce5b 21919 $(HOST_EXPORTS) \
b813574b 21920 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
21921 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21922 done; \
21923 echo "Doing install-info in utils" ; \
21924 (cd utils && \
21925 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21926 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21927 "RANLIB=$${RANLIB}" \
21928 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 21929 install-info) \
4fa63067 21930 || exit 1
3866be5d 21931
6bd3dfaa 21932@endif utils
3866be5d 21933
4fa63067
NN
21934.PHONY: maybe-installcheck-utils installcheck-utils
21935maybe-installcheck-utils:
6bd3dfaa
PB
21936@if utils
21937maybe-installcheck-utils: installcheck-utils
4fa63067
NN
21938
21939installcheck-utils: \
21940 configure-utils
21941 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
21942 r=`${PWD_COMMAND}`; export r; \
21943 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fa63067 21944 $(SET_LIB_PATH) \
378fce5b 21945 $(HOST_EXPORTS) \
b813574b 21946 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
21947 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21948 done; \
21949 echo "Doing installcheck in utils" ; \
21950 (cd utils && \
21951 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21952 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21953 "RANLIB=$${RANLIB}" \
21954 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 21955 installcheck) \
e2b9e2dc
NN
21956 || exit 1
21957
6bd3dfaa 21958@endif utils
4fa63067
NN
21959
21960.PHONY: maybe-mostlyclean-utils mostlyclean-utils
21961maybe-mostlyclean-utils:
6bd3dfaa
PB
21962@if utils
21963maybe-mostlyclean-utils: mostlyclean-utils
4fa63067
NN
21964
21965mostlyclean-utils:
21966 @[ -f ./utils/Makefile ] || exit 0; \
21967 r=`${PWD_COMMAND}`; export r; \
b40e3958 21968 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 21969 $(SET_LIB_PATH) \
378fce5b 21970 $(HOST_EXPORTS) \
b813574b 21971 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
21972 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21973 done; \
21974 echo "Doing mostlyclean in utils" ; \
21975 (cd utils && \
21976 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21977 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21978 "RANLIB=$${RANLIB}" \
21979 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 21980 mostlyclean) \
4fa63067 21981 || exit 1
3866be5d 21982
6bd3dfaa 21983@endif utils
3866be5d 21984
4fa63067
NN
21985.PHONY: maybe-clean-utils clean-utils
21986maybe-clean-utils:
6bd3dfaa
PB
21987@if utils
21988maybe-clean-utils: clean-utils
4fa63067
NN
21989
21990clean-utils:
21991 @[ -f ./utils/Makefile ] || exit 0; \
21992 r=`${PWD_COMMAND}`; export r; \
b40e3958 21993 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 21994 $(SET_LIB_PATH) \
378fce5b 21995 $(HOST_EXPORTS) \
b813574b 21996 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
21997 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21998 done; \
21999 echo "Doing clean in utils" ; \
22000 (cd utils && \
22001 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22002 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22003 "RANLIB=$${RANLIB}" \
22004 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 22005 clean) \
4fa63067 22006 || exit 1
3866be5d 22007
6bd3dfaa 22008@endif utils
3866be5d 22009
4fa63067
NN
22010.PHONY: maybe-distclean-utils distclean-utils
22011maybe-distclean-utils:
6bd3dfaa
PB
22012@if utils
22013maybe-distclean-utils: distclean-utils
16ae0395 22014
4fa63067
NN
22015distclean-utils:
22016 @[ -f ./utils/Makefile ] || exit 0; \
22017 r=`${PWD_COMMAND}`; export r; \
b40e3958 22018 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 22019 $(SET_LIB_PATH) \
378fce5b 22020 $(HOST_EXPORTS) \
b813574b 22021 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
22022 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22023 done; \
22024 echo "Doing distclean in utils" ; \
22025 (cd utils && \
22026 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22027 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22028 "RANLIB=$${RANLIB}" \
22029 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 22030 distclean) \
4fa63067 22031 || exit 1
3866be5d 22032
6bd3dfaa 22033@endif utils
3866be5d 22034
4fa63067
NN
22035.PHONY: maybe-maintainer-clean-utils maintainer-clean-utils
22036maybe-maintainer-clean-utils:
6bd3dfaa
PB
22037@if utils
22038maybe-maintainer-clean-utils: maintainer-clean-utils
4fa63067
NN
22039
22040maintainer-clean-utils:
22041 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
22042 r=`${PWD_COMMAND}`; export r; \
22043 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fa63067 22044 $(SET_LIB_PATH) \
378fce5b 22045 $(HOST_EXPORTS) \
b813574b 22046 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
22047 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22048 done; \
22049 echo "Doing maintainer-clean in utils" ; \
22050 (cd utils && \
22051 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22052 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22053 "RANLIB=$${RANLIB}" \
22054 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
b813574b 22055 maintainer-clean) \
e2b9e2dc
NN
22056 || exit 1
22057
6bd3dfaa 22058@endif utils
3866be5d 22059
3866be5d
NN
22060
22061
4fa63067
NN
22062# ---------------------------------------
22063# Modules which run on the target machine
22064# ---------------------------------------
16ae0395 22065
4fa63067
NN
22066.PHONY: configure-target-libstdc++-v3 maybe-configure-target-libstdc++-v3
22067maybe-configure-target-libstdc++-v3:
6bd3dfaa
PB
22068@if target-libstdc++-v3
22069maybe-configure-target-libstdc++-v3: configure-target-libstdc++-v3
3866be5d 22070
4fa63067
NN
22071# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
22072$(TARGET_SUBDIR)/libstdc++-v3/multilib.out: multilib.out
22073 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
22074 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || : ; \
22075 cp multilib.out $(TARGET_SUBDIR)/libstdc++-v3/multilib.out
3866be5d 22076
4fa63067
NN
22077configure-target-libstdc++-v3: $(TARGET_SUBDIR)/libstdc++-v3/multilib.out
22078 @test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
22079 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
b40e3958
L
22080 r=`${PWD_COMMAND}`; export r; \
22081 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fa63067 22082 $(SET_LIB_PATH) \
378fce5b 22083 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
22084 echo Configuring in $(TARGET_SUBDIR)/libstdc++-v3; \
22085 cd "$(TARGET_SUBDIR)/libstdc++-v3" || exit 1; \
e2b9e2dc 22086 case $(srcdir) in \
e2b9e2dc 22087 /* | [A-Za-z]:[\\/]*) \
4fa63067 22088 topdir=$(srcdir) ;; \
e2b9e2dc 22089 *) \
4fa63067
NN
22090 case "$(TARGET_SUBDIR)" in \
22091 .) topdir="../$(srcdir)" ;; \
22092 *) topdir="../../$(srcdir)" ;; \
22093 esac ;; \
e2b9e2dc 22094 esac; \
4fa63067
NN
22095 srcdiroption="--srcdir=$${topdir}/libstdc++-v3"; \
22096 libsrcdir="$$s/libstdc++-v3"; \
22097 rm -f no-such-file || : ; \
22098 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
22099 $(TARGET_CONFIGARGS) $${srcdiroption} \
7ffa0b57 22100 --with-target-subdir="$(TARGET_SUBDIR)" \
e2b9e2dc 22101 || exit 1
6bd3dfaa 22102@endif target-libstdc++-v3
e2b9e2dc 22103
4fa63067
NN
22104.PHONY: all-target-libstdc++-v3 maybe-all-target-libstdc++-v3
22105maybe-all-target-libstdc++-v3:
6bd3dfaa 22106@if target-libstdc++-v3
72b2455a 22107TARGET-target-libstdc++-v3=all
6bd3dfaa 22108maybe-all-target-libstdc++-v3: all-target-libstdc++-v3
4fa63067 22109all-target-libstdc++-v3: configure-target-libstdc++-v3
b40e3958
L
22110 @r=`${PWD_COMMAND}`; export r; \
22111 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 22112 $(SET_LIB_PATH) \
378fce5b 22113 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067 22114 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
72b2455a 22115 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' $(TARGET-target-libstdc++-v3))
6bd3dfaa 22116@endif target-libstdc++-v3
3866be5d 22117
4fa63067
NN
22118.PHONY: check-target-libstdc++-v3 maybe-check-target-libstdc++-v3
22119maybe-check-target-libstdc++-v3:
6bd3dfaa
PB
22120@if target-libstdc++-v3
22121maybe-check-target-libstdc++-v3: check-target-libstdc++-v3
3866be5d 22122
4fa63067 22123check-target-libstdc++-v3:
b40e3958
L
22124 @r=`${PWD_COMMAND}`; export r; \
22125 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 22126 $(SET_LIB_PATH) \
378fce5b 22127 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067 22128 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
7ffa0b57 22129 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
3866be5d 22130
6bd3dfaa 22131@endif target-libstdc++-v3
3866be5d 22132
4fa63067
NN
22133.PHONY: install-target-libstdc++-v3 maybe-install-target-libstdc++-v3
22134maybe-install-target-libstdc++-v3:
6bd3dfaa
PB
22135@if target-libstdc++-v3
22136maybe-install-target-libstdc++-v3: install-target-libstdc++-v3
16ae0395 22137
4fa63067 22138install-target-libstdc++-v3: installdirs
b40e3958
L
22139 @r=`${PWD_COMMAND}`; export r; \
22140 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 22141 $(SET_LIB_PATH) \
378fce5b 22142 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067 22143 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
7ffa0b57 22144 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 22145
6bd3dfaa 22146@endif target-libstdc++-v3
e2b9e2dc 22147
4fa63067 22148# Other targets (info, dvi, etc.)
3866be5d 22149
4fa63067
NN
22150.PHONY: maybe-info-target-libstdc++-v3 info-target-libstdc++-v3
22151maybe-info-target-libstdc++-v3:
6bd3dfaa
PB
22152@if target-libstdc++-v3
22153maybe-info-target-libstdc++-v3: info-target-libstdc++-v3
3866be5d 22154
4fa63067
NN
22155info-target-libstdc++-v3: \
22156 configure-target-libstdc++-v3
22157 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
22158 r=`${PWD_COMMAND}`; export r; \
b40e3958 22159 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 22160 $(SET_LIB_PATH) \
378fce5b 22161 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
22162 echo "Doing info in $(TARGET_SUBDIR)/libstdc++-v3" ; \
22163 for flag in $(EXTRA_TARGET_FLAGS); do \
22164 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22165 done; \
22166 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
22167 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22168 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22169 "RANLIB=$${RANLIB}" \
22170 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 22171 info) \
4fa63067 22172 || exit 1
3866be5d 22173
6bd3dfaa 22174@endif target-libstdc++-v3
3866be5d 22175
4fa63067
NN
22176.PHONY: maybe-dvi-target-libstdc++-v3 dvi-target-libstdc++-v3
22177maybe-dvi-target-libstdc++-v3:
6bd3dfaa
PB
22178@if target-libstdc++-v3
22179maybe-dvi-target-libstdc++-v3: dvi-target-libstdc++-v3
16ae0395 22180
4fa63067
NN
22181dvi-target-libstdc++-v3: \
22182 configure-target-libstdc++-v3
22183 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
22184 r=`${PWD_COMMAND}`; export r; \
b40e3958 22185 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 22186 $(SET_LIB_PATH) \
378fce5b 22187 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
22188 echo "Doing dvi in $(TARGET_SUBDIR)/libstdc++-v3" ; \
22189 for flag in $(EXTRA_TARGET_FLAGS); do \
22190 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22191 done; \
22192 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
22193 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22194 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22195 "RANLIB=$${RANLIB}" \
22196 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 22197 dvi) \
4fa63067 22198 || exit 1
3866be5d 22199
6bd3dfaa 22200@endif target-libstdc++-v3
3866be5d 22201
4fa63067
NN
22202.PHONY: maybe-TAGS-target-libstdc++-v3 TAGS-target-libstdc++-v3
22203maybe-TAGS-target-libstdc++-v3:
6bd3dfaa
PB
22204@if target-libstdc++-v3
22205maybe-TAGS-target-libstdc++-v3: TAGS-target-libstdc++-v3
4fa63067
NN
22206
22207TAGS-target-libstdc++-v3: \
22208 configure-target-libstdc++-v3
22209 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
b40e3958
L
22210 r=`${PWD_COMMAND}`; export r; \
22211 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fa63067 22212 $(SET_LIB_PATH) \
378fce5b 22213 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
22214 echo "Doing TAGS in $(TARGET_SUBDIR)/libstdc++-v3" ; \
22215 for flag in $(EXTRA_TARGET_FLAGS); do \
22216 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22217 done; \
22218 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
22219 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22220 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22221 "RANLIB=$${RANLIB}" \
22222 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 22223 TAGS) \
e2b9e2dc
NN
22224 || exit 1
22225
6bd3dfaa 22226@endif target-libstdc++-v3
3866be5d 22227
4fa63067
NN
22228.PHONY: maybe-install-info-target-libstdc++-v3 install-info-target-libstdc++-v3
22229maybe-install-info-target-libstdc++-v3:
6bd3dfaa
PB
22230@if target-libstdc++-v3
22231maybe-install-info-target-libstdc++-v3: install-info-target-libstdc++-v3
3866be5d 22232
4fa63067
NN
22233install-info-target-libstdc++-v3: \
22234 configure-target-libstdc++-v3 \
22235 info-target-libstdc++-v3
22236 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
22237 r=`${PWD_COMMAND}`; export r; \
b40e3958 22238 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 22239 $(SET_LIB_PATH) \
378fce5b 22240 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
22241 echo "Doing install-info in $(TARGET_SUBDIR)/libstdc++-v3" ; \
22242 for flag in $(EXTRA_TARGET_FLAGS); do \
22243 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22244 done; \
22245 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
22246 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22247 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22248 "RANLIB=$${RANLIB}" \
22249 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 22250 install-info) \
4fa63067 22251 || exit 1
3866be5d 22252
6bd3dfaa 22253@endif target-libstdc++-v3
3866be5d 22254
4fa63067
NN
22255.PHONY: maybe-installcheck-target-libstdc++-v3 installcheck-target-libstdc++-v3
22256maybe-installcheck-target-libstdc++-v3:
6bd3dfaa
PB
22257@if target-libstdc++-v3
22258maybe-installcheck-target-libstdc++-v3: installcheck-target-libstdc++-v3
16ae0395 22259
4fa63067
NN
22260installcheck-target-libstdc++-v3: \
22261 configure-target-libstdc++-v3
22262 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
22263 r=`${PWD_COMMAND}`; export r; \
b40e3958 22264 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 22265 $(SET_LIB_PATH) \
378fce5b 22266 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
22267 echo "Doing installcheck in $(TARGET_SUBDIR)/libstdc++-v3" ; \
22268 for flag in $(EXTRA_TARGET_FLAGS); do \
22269 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22270 done; \
22271 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
22272 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22273 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22274 "RANLIB=$${RANLIB}" \
22275 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 22276 installcheck) \
4fa63067 22277 || exit 1
3866be5d 22278
6bd3dfaa 22279@endif target-libstdc++-v3
3866be5d 22280
4fa63067
NN
22281.PHONY: maybe-mostlyclean-target-libstdc++-v3 mostlyclean-target-libstdc++-v3
22282maybe-mostlyclean-target-libstdc++-v3:
6bd3dfaa
PB
22283@if target-libstdc++-v3
22284maybe-mostlyclean-target-libstdc++-v3: mostlyclean-target-libstdc++-v3
4fa63067
NN
22285
22286mostlyclean-target-libstdc++-v3:
22287 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
b40e3958
L
22288 r=`${PWD_COMMAND}`; export r; \
22289 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fa63067 22290 $(SET_LIB_PATH) \
378fce5b 22291 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
22292 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
22293 for flag in $(EXTRA_TARGET_FLAGS); do \
22294 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22295 done; \
22296 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
22297 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22298 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22299 "RANLIB=$${RANLIB}" \
22300 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 22301 mostlyclean) \
e2b9e2dc
NN
22302 || exit 1
22303
6bd3dfaa 22304@endif target-libstdc++-v3
4fa63067
NN
22305
22306.PHONY: maybe-clean-target-libstdc++-v3 clean-target-libstdc++-v3
22307maybe-clean-target-libstdc++-v3:
6bd3dfaa
PB
22308@if target-libstdc++-v3
22309maybe-clean-target-libstdc++-v3: clean-target-libstdc++-v3
4fa63067
NN
22310
22311clean-target-libstdc++-v3:
22312 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
22313 r=`${PWD_COMMAND}`; export r; \
b40e3958 22314 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 22315 $(SET_LIB_PATH) \
378fce5b 22316 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
22317 echo "Doing clean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
22318 for flag in $(EXTRA_TARGET_FLAGS); do \
22319 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22320 done; \
22321 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
22322 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22323 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22324 "RANLIB=$${RANLIB}" \
22325 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 22326 clean) \
4fa63067 22327 || exit 1
3866be5d 22328
6bd3dfaa 22329@endif target-libstdc++-v3
3866be5d 22330
4fa63067
NN
22331.PHONY: maybe-distclean-target-libstdc++-v3 distclean-target-libstdc++-v3
22332maybe-distclean-target-libstdc++-v3:
6bd3dfaa
PB
22333@if target-libstdc++-v3
22334maybe-distclean-target-libstdc++-v3: distclean-target-libstdc++-v3
4fa63067
NN
22335
22336distclean-target-libstdc++-v3:
22337 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
22338 r=`${PWD_COMMAND}`; export r; \
b40e3958 22339 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 22340 $(SET_LIB_PATH) \
378fce5b 22341 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
22342 echo "Doing distclean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
22343 for flag in $(EXTRA_TARGET_FLAGS); do \
22344 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22345 done; \
22346 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
22347 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22348 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22349 "RANLIB=$${RANLIB}" \
22350 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 22351 distclean) \
4fa63067 22352 || exit 1
3866be5d 22353
6bd3dfaa 22354@endif target-libstdc++-v3
3866be5d 22355
4fa63067
NN
22356.PHONY: maybe-maintainer-clean-target-libstdc++-v3 maintainer-clean-target-libstdc++-v3
22357maybe-maintainer-clean-target-libstdc++-v3:
6bd3dfaa
PB
22358@if target-libstdc++-v3
22359maybe-maintainer-clean-target-libstdc++-v3: maintainer-clean-target-libstdc++-v3
16ae0395 22360
4fa63067
NN
22361maintainer-clean-target-libstdc++-v3:
22362 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
22363 r=`${PWD_COMMAND}`; export r; \
b40e3958 22364 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 22365 $(SET_LIB_PATH) \
378fce5b 22366 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
22367 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
22368 for flag in $(EXTRA_TARGET_FLAGS); do \
22369 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22370 done; \
22371 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
22372 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22373 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22374 "RANLIB=$${RANLIB}" \
22375 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 22376 maintainer-clean) \
4fa63067 22377 || exit 1
3866be5d 22378
6bd3dfaa 22379@endif target-libstdc++-v3
3866be5d 22380
4fa63067 22381
4b1cb4fe
DD
22382.PHONY: configure-target-libmudflap maybe-configure-target-libmudflap
22383maybe-configure-target-libmudflap:
6bd3dfaa
PB
22384@if target-libmudflap
22385maybe-configure-target-libmudflap: configure-target-libmudflap
4fa63067
NN
22386
22387# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
4b1cb4fe
DD
22388$(TARGET_SUBDIR)/libmudflap/multilib.out: multilib.out
22389 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmudflap ; \
22390 rm -f $(TARGET_SUBDIR)/libmudflap/Makefile || : ; \
22391 cp multilib.out $(TARGET_SUBDIR)/libmudflap/multilib.out
4fa63067 22392
4b1cb4fe
DD
22393configure-target-libmudflap: $(TARGET_SUBDIR)/libmudflap/multilib.out
22394 @test ! -f $(TARGET_SUBDIR)/libmudflap/Makefile || exit 0; \
22395 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmudflap ; \
b40e3958
L
22396 r=`${PWD_COMMAND}`; export r; \
22397 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fa63067 22398 $(SET_LIB_PATH) \
378fce5b 22399 $(NORMAL_TARGET_EXPORTS) \
4b1cb4fe
DD
22400 echo Configuring in $(TARGET_SUBDIR)/libmudflap; \
22401 cd "$(TARGET_SUBDIR)/libmudflap" || exit 1; \
e2b9e2dc 22402 case $(srcdir) in \
e2b9e2dc 22403 /* | [A-Za-z]:[\\/]*) \
4fa63067 22404 topdir=$(srcdir) ;; \
e2b9e2dc 22405 *) \
4fa63067
NN
22406 case "$(TARGET_SUBDIR)" in \
22407 .) topdir="../$(srcdir)" ;; \
22408 *) topdir="../../$(srcdir)" ;; \
22409 esac ;; \
e2b9e2dc 22410 esac; \
4b1cb4fe
DD
22411 srcdiroption="--srcdir=$${topdir}/libmudflap"; \
22412 libsrcdir="$$s/libmudflap"; \
4fa63067
NN
22413 rm -f no-such-file || : ; \
22414 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
22415 $(TARGET_CONFIGARGS) $${srcdiroption} \
7ffa0b57 22416 --with-target-subdir="$(TARGET_SUBDIR)" \
e2b9e2dc 22417 || exit 1
6bd3dfaa 22418@endif target-libmudflap
e2b9e2dc 22419
4b1cb4fe
DD
22420.PHONY: all-target-libmudflap maybe-all-target-libmudflap
22421maybe-all-target-libmudflap:
6bd3dfaa 22422@if target-libmudflap
72b2455a 22423TARGET-target-libmudflap=all
6bd3dfaa 22424maybe-all-target-libmudflap: all-target-libmudflap
4b1cb4fe 22425all-target-libmudflap: configure-target-libmudflap
b40e3958
L
22426 @r=`${PWD_COMMAND}`; export r; \
22427 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 22428 $(SET_LIB_PATH) \
378fce5b 22429 $(NORMAL_TARGET_EXPORTS) \
4b1cb4fe 22430 (cd $(TARGET_SUBDIR)/libmudflap && \
72b2455a 22431 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libmudflap))
6bd3dfaa 22432@endif target-libmudflap
3866be5d 22433
4b1cb4fe
DD
22434.PHONY: check-target-libmudflap maybe-check-target-libmudflap
22435maybe-check-target-libmudflap:
6bd3dfaa
PB
22436@if target-libmudflap
22437maybe-check-target-libmudflap: check-target-libmudflap
16ae0395 22438
4b1cb4fe
DD
22439check-target-libmudflap:
22440 @r=`${PWD_COMMAND}`; export r; \
22441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22442 $(SET_LIB_PATH) \
378fce5b 22443 $(NORMAL_TARGET_EXPORTS) \
4b1cb4fe 22444 (cd $(TARGET_SUBDIR)/libmudflap && \
7ffa0b57 22445 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4b1cb4fe 22446
6bd3dfaa 22447@endif target-libmudflap
4b1cb4fe
DD
22448
22449.PHONY: install-target-libmudflap maybe-install-target-libmudflap
22450maybe-install-target-libmudflap:
6bd3dfaa
PB
22451@if target-libmudflap
22452maybe-install-target-libmudflap: install-target-libmudflap
4b1cb4fe
DD
22453
22454install-target-libmudflap: installdirs
22455 @r=`${PWD_COMMAND}`; export r; \
22456 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22457 $(SET_LIB_PATH) \
378fce5b 22458 $(NORMAL_TARGET_EXPORTS) \
4b1cb4fe 22459 (cd $(TARGET_SUBDIR)/libmudflap && \
7ffa0b57 22460 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4b1cb4fe 22461
6bd3dfaa 22462@endif target-libmudflap
4b1cb4fe
DD
22463
22464# Other targets (info, dvi, etc.)
22465
22466.PHONY: maybe-info-target-libmudflap info-target-libmudflap
22467maybe-info-target-libmudflap:
6bd3dfaa
PB
22468@if target-libmudflap
22469maybe-info-target-libmudflap: info-target-libmudflap
4b1cb4fe
DD
22470
22471info-target-libmudflap: \
22472 configure-target-libmudflap
22473 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
22474 r=`${PWD_COMMAND}`; export r; \
22475 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22476 $(SET_LIB_PATH) \
378fce5b 22477 $(NORMAL_TARGET_EXPORTS) \
4b1cb4fe
DD
22478 echo "Doing info in $(TARGET_SUBDIR)/libmudflap" ; \
22479 for flag in $(EXTRA_TARGET_FLAGS); do \
22480 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22481 done; \
22482 (cd $(TARGET_SUBDIR)/libmudflap && \
22483 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22484 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22485 "RANLIB=$${RANLIB}" \
22486 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 22487 info) \
4b1cb4fe
DD
22488 || exit 1
22489
6bd3dfaa 22490@endif target-libmudflap
4b1cb4fe
DD
22491
22492.PHONY: maybe-dvi-target-libmudflap dvi-target-libmudflap
22493maybe-dvi-target-libmudflap:
6bd3dfaa
PB
22494@if target-libmudflap
22495maybe-dvi-target-libmudflap: dvi-target-libmudflap
4b1cb4fe
DD
22496
22497dvi-target-libmudflap: \
22498 configure-target-libmudflap
22499 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
22500 r=`${PWD_COMMAND}`; export r; \
22501 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22502 $(SET_LIB_PATH) \
378fce5b 22503 $(NORMAL_TARGET_EXPORTS) \
4b1cb4fe
DD
22504 echo "Doing dvi in $(TARGET_SUBDIR)/libmudflap" ; \
22505 for flag in $(EXTRA_TARGET_FLAGS); do \
22506 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22507 done; \
22508 (cd $(TARGET_SUBDIR)/libmudflap && \
22509 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22510 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22511 "RANLIB=$${RANLIB}" \
22512 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 22513 dvi) \
4b1cb4fe
DD
22514 || exit 1
22515
6bd3dfaa 22516@endif target-libmudflap
4b1cb4fe
DD
22517
22518.PHONY: maybe-TAGS-target-libmudflap TAGS-target-libmudflap
22519maybe-TAGS-target-libmudflap:
6bd3dfaa
PB
22520@if target-libmudflap
22521maybe-TAGS-target-libmudflap: TAGS-target-libmudflap
4b1cb4fe
DD
22522
22523TAGS-target-libmudflap: \
22524 configure-target-libmudflap
22525 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
22526 r=`${PWD_COMMAND}`; export r; \
22527 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22528 $(SET_LIB_PATH) \
378fce5b 22529 $(NORMAL_TARGET_EXPORTS) \
4b1cb4fe
DD
22530 echo "Doing TAGS in $(TARGET_SUBDIR)/libmudflap" ; \
22531 for flag in $(EXTRA_TARGET_FLAGS); do \
22532 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22533 done; \
22534 (cd $(TARGET_SUBDIR)/libmudflap && \
22535 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22536 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22537 "RANLIB=$${RANLIB}" \
22538 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 22539 TAGS) \
4b1cb4fe
DD
22540 || exit 1
22541
6bd3dfaa 22542@endif target-libmudflap
4b1cb4fe
DD
22543
22544.PHONY: maybe-install-info-target-libmudflap install-info-target-libmudflap
22545maybe-install-info-target-libmudflap:
6bd3dfaa
PB
22546@if target-libmudflap
22547maybe-install-info-target-libmudflap: install-info-target-libmudflap
4b1cb4fe
DD
22548
22549install-info-target-libmudflap: \
22550 configure-target-libmudflap \
22551 info-target-libmudflap
22552 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
22553 r=`${PWD_COMMAND}`; export r; \
22554 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22555 $(SET_LIB_PATH) \
378fce5b 22556 $(NORMAL_TARGET_EXPORTS) \
4b1cb4fe
DD
22557 echo "Doing install-info in $(TARGET_SUBDIR)/libmudflap" ; \
22558 for flag in $(EXTRA_TARGET_FLAGS); do \
22559 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22560 done; \
22561 (cd $(TARGET_SUBDIR)/libmudflap && \
22562 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22563 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22564 "RANLIB=$${RANLIB}" \
22565 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 22566 install-info) \
4b1cb4fe
DD
22567 || exit 1
22568
6bd3dfaa 22569@endif target-libmudflap
4b1cb4fe
DD
22570
22571.PHONY: maybe-installcheck-target-libmudflap installcheck-target-libmudflap
22572maybe-installcheck-target-libmudflap:
6bd3dfaa
PB
22573@if target-libmudflap
22574maybe-installcheck-target-libmudflap: installcheck-target-libmudflap
4b1cb4fe
DD
22575
22576installcheck-target-libmudflap: \
22577 configure-target-libmudflap
22578 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
22579 r=`${PWD_COMMAND}`; export r; \
22580 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22581 $(SET_LIB_PATH) \
378fce5b 22582 $(NORMAL_TARGET_EXPORTS) \
4b1cb4fe
DD
22583 echo "Doing installcheck in $(TARGET_SUBDIR)/libmudflap" ; \
22584 for flag in $(EXTRA_TARGET_FLAGS); do \
22585 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22586 done; \
22587 (cd $(TARGET_SUBDIR)/libmudflap && \
22588 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22589 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22590 "RANLIB=$${RANLIB}" \
22591 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 22592 installcheck) \
4b1cb4fe
DD
22593 || exit 1
22594
6bd3dfaa 22595@endif target-libmudflap
4b1cb4fe
DD
22596
22597.PHONY: maybe-mostlyclean-target-libmudflap mostlyclean-target-libmudflap
22598maybe-mostlyclean-target-libmudflap:
6bd3dfaa
PB
22599@if target-libmudflap
22600maybe-mostlyclean-target-libmudflap: mostlyclean-target-libmudflap
4b1cb4fe
DD
22601
22602mostlyclean-target-libmudflap:
22603 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
22604 r=`${PWD_COMMAND}`; export r; \
22605 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22606 $(SET_LIB_PATH) \
378fce5b 22607 $(NORMAL_TARGET_EXPORTS) \
4b1cb4fe
DD
22608 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libmudflap" ; \
22609 for flag in $(EXTRA_TARGET_FLAGS); do \
22610 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22611 done; \
22612 (cd $(TARGET_SUBDIR)/libmudflap && \
22613 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22614 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22615 "RANLIB=$${RANLIB}" \
22616 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 22617 mostlyclean) \
4b1cb4fe
DD
22618 || exit 1
22619
6bd3dfaa 22620@endif target-libmudflap
4b1cb4fe
DD
22621
22622.PHONY: maybe-clean-target-libmudflap clean-target-libmudflap
22623maybe-clean-target-libmudflap:
6bd3dfaa
PB
22624@if target-libmudflap
22625maybe-clean-target-libmudflap: clean-target-libmudflap
4b1cb4fe
DD
22626
22627clean-target-libmudflap:
22628 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
22629 r=`${PWD_COMMAND}`; export r; \
22630 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22631 $(SET_LIB_PATH) \
378fce5b 22632 $(NORMAL_TARGET_EXPORTS) \
4b1cb4fe
DD
22633 echo "Doing clean in $(TARGET_SUBDIR)/libmudflap" ; \
22634 for flag in $(EXTRA_TARGET_FLAGS); do \
22635 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22636 done; \
22637 (cd $(TARGET_SUBDIR)/libmudflap && \
22638 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22639 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22640 "RANLIB=$${RANLIB}" \
22641 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 22642 clean) \
4b1cb4fe
DD
22643 || exit 1
22644
6bd3dfaa 22645@endif target-libmudflap
4b1cb4fe
DD
22646
22647.PHONY: maybe-distclean-target-libmudflap distclean-target-libmudflap
22648maybe-distclean-target-libmudflap:
6bd3dfaa
PB
22649@if target-libmudflap
22650maybe-distclean-target-libmudflap: distclean-target-libmudflap
4b1cb4fe
DD
22651
22652distclean-target-libmudflap:
22653 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
22654 r=`${PWD_COMMAND}`; export r; \
22655 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22656 $(SET_LIB_PATH) \
378fce5b 22657 $(NORMAL_TARGET_EXPORTS) \
4b1cb4fe
DD
22658 echo "Doing distclean in $(TARGET_SUBDIR)/libmudflap" ; \
22659 for flag in $(EXTRA_TARGET_FLAGS); do \
22660 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22661 done; \
22662 (cd $(TARGET_SUBDIR)/libmudflap && \
22663 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22664 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22665 "RANLIB=$${RANLIB}" \
22666 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 22667 distclean) \
4b1cb4fe
DD
22668 || exit 1
22669
6bd3dfaa 22670@endif target-libmudflap
4b1cb4fe
DD
22671
22672.PHONY: maybe-maintainer-clean-target-libmudflap maintainer-clean-target-libmudflap
22673maybe-maintainer-clean-target-libmudflap:
6bd3dfaa
PB
22674@if target-libmudflap
22675maybe-maintainer-clean-target-libmudflap: maintainer-clean-target-libmudflap
4b1cb4fe
DD
22676
22677maintainer-clean-target-libmudflap:
22678 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
22679 r=`${PWD_COMMAND}`; export r; \
22680 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22681 $(SET_LIB_PATH) \
378fce5b 22682 $(NORMAL_TARGET_EXPORTS) \
4b1cb4fe
DD
22683 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libmudflap" ; \
22684 for flag in $(EXTRA_TARGET_FLAGS); do \
22685 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22686 done; \
22687 (cd $(TARGET_SUBDIR)/libmudflap && \
22688 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22689 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22690 "RANLIB=$${RANLIB}" \
22691 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 22692 maintainer-clean) \
4b1cb4fe
DD
22693 || exit 1
22694
6bd3dfaa 22695@endif target-libmudflap
4b1cb4fe
DD
22696
22697
22698.PHONY: configure-target-newlib maybe-configure-target-newlib
22699maybe-configure-target-newlib:
6bd3dfaa
PB
22700@if target-newlib
22701maybe-configure-target-newlib: configure-target-newlib
4b1cb4fe
DD
22702
22703# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
22704$(TARGET_SUBDIR)/newlib/multilib.out: multilib.out
22705 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib ; \
22706 rm -f $(TARGET_SUBDIR)/newlib/Makefile || : ; \
22707 cp multilib.out $(TARGET_SUBDIR)/newlib/multilib.out
22708
22709configure-target-newlib: $(TARGET_SUBDIR)/newlib/multilib.out
22710 @test ! -f $(TARGET_SUBDIR)/newlib/Makefile || exit 0; \
22711 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib ; \
22712 r=`${PWD_COMMAND}`; export r; \
22713 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22714 $(SET_LIB_PATH) \
378fce5b 22715 $(NORMAL_TARGET_EXPORTS) \
4b1cb4fe
DD
22716 echo Configuring in $(TARGET_SUBDIR)/newlib; \
22717 cd "$(TARGET_SUBDIR)/newlib" || exit 1; \
22718 case $(srcdir) in \
22719 /* | [A-Za-z]:[\\/]*) \
22720 topdir=$(srcdir) ;; \
22721 *) \
22722 case "$(TARGET_SUBDIR)" in \
22723 .) topdir="../$(srcdir)" ;; \
22724 *) topdir="../../$(srcdir)" ;; \
22725 esac ;; \
22726 esac; \
22727 srcdiroption="--srcdir=$${topdir}/newlib"; \
22728 libsrcdir="$$s/newlib"; \
22729 rm -f no-such-file || : ; \
22730 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
22731 $(TARGET_CONFIGARGS) $${srcdiroption} \
7ffa0b57 22732 --with-target-subdir="$(TARGET_SUBDIR)" \
4b1cb4fe 22733 || exit 1
6bd3dfaa 22734@endif target-newlib
4b1cb4fe
DD
22735
22736.PHONY: all-target-newlib maybe-all-target-newlib
22737maybe-all-target-newlib:
6bd3dfaa 22738@if target-newlib
72b2455a 22739TARGET-target-newlib=all
6bd3dfaa 22740maybe-all-target-newlib: all-target-newlib
4b1cb4fe
DD
22741all-target-newlib: configure-target-newlib
22742 @r=`${PWD_COMMAND}`; export r; \
22743 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22744 $(SET_LIB_PATH) \
378fce5b 22745 $(NORMAL_TARGET_EXPORTS) \
4b1cb4fe 22746 (cd $(TARGET_SUBDIR)/newlib && \
72b2455a 22747 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-newlib))
6bd3dfaa 22748@endif target-newlib
4b1cb4fe
DD
22749
22750.PHONY: check-target-newlib maybe-check-target-newlib
22751maybe-check-target-newlib:
6bd3dfaa
PB
22752@if target-newlib
22753maybe-check-target-newlib: check-target-newlib
4b1cb4fe
DD
22754
22755check-target-newlib:
b40e3958
L
22756 @r=`${PWD_COMMAND}`; export r; \
22757 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 22758 $(SET_LIB_PATH) \
378fce5b 22759 $(NORMAL_TARGET_EXPORTS) \
4fa63067 22760 (cd $(TARGET_SUBDIR)/newlib && \
7ffa0b57 22761 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
3866be5d 22762
6bd3dfaa 22763@endif target-newlib
3866be5d 22764
4fa63067
NN
22765.PHONY: install-target-newlib maybe-install-target-newlib
22766maybe-install-target-newlib:
6bd3dfaa
PB
22767@if target-newlib
22768maybe-install-target-newlib: install-target-newlib
e2b9e2dc 22769
4fa63067 22770install-target-newlib: installdirs
b40e3958
L
22771 @r=`${PWD_COMMAND}`; export r; \
22772 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 22773 $(SET_LIB_PATH) \
378fce5b 22774 $(NORMAL_TARGET_EXPORTS) \
4fa63067 22775 (cd $(TARGET_SUBDIR)/newlib && \
7ffa0b57 22776 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 22777
6bd3dfaa 22778@endif target-newlib
3866be5d 22779
4fa63067 22780# Other targets (info, dvi, etc.)
3866be5d 22781
4fa63067
NN
22782.PHONY: maybe-info-target-newlib info-target-newlib
22783maybe-info-target-newlib:
6bd3dfaa
PB
22784@if target-newlib
22785maybe-info-target-newlib: info-target-newlib
3866be5d 22786
4fa63067
NN
22787info-target-newlib: \
22788 configure-target-newlib
22789 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
22790 r=`${PWD_COMMAND}`; export r; \
22791 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22792 $(SET_LIB_PATH) \
378fce5b 22793 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
22794 echo "Doing info in $(TARGET_SUBDIR)/newlib" ; \
22795 for flag in $(EXTRA_TARGET_FLAGS); do \
22796 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22797 done; \
22798 (cd $(TARGET_SUBDIR)/newlib && \
22799 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22800 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22801 "RANLIB=$${RANLIB}" \
22802 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 22803 info) \
4fa63067 22804 || exit 1
16ae0395 22805
6bd3dfaa 22806@endif target-newlib
3866be5d 22807
4fa63067
NN
22808.PHONY: maybe-dvi-target-newlib dvi-target-newlib
22809maybe-dvi-target-newlib:
6bd3dfaa
PB
22810@if target-newlib
22811maybe-dvi-target-newlib: dvi-target-newlib
3866be5d 22812
4fa63067
NN
22813dvi-target-newlib: \
22814 configure-target-newlib
22815 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
b40e3958
L
22816 r=`${PWD_COMMAND}`; export r; \
22817 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fa63067 22818 $(SET_LIB_PATH) \
378fce5b 22819 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
22820 echo "Doing dvi in $(TARGET_SUBDIR)/newlib" ; \
22821 for flag in $(EXTRA_TARGET_FLAGS); do \
22822 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22823 done; \
22824 (cd $(TARGET_SUBDIR)/newlib && \
22825 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22826 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22827 "RANLIB=$${RANLIB}" \
22828 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 22829 dvi) \
e2b9e2dc
NN
22830 || exit 1
22831
6bd3dfaa 22832@endif target-newlib
3866be5d 22833
4fa63067
NN
22834.PHONY: maybe-TAGS-target-newlib TAGS-target-newlib
22835maybe-TAGS-target-newlib:
6bd3dfaa
PB
22836@if target-newlib
22837maybe-TAGS-target-newlib: TAGS-target-newlib
3866be5d 22838
4fa63067
NN
22839TAGS-target-newlib: \
22840 configure-target-newlib
22841 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
22842 r=`${PWD_COMMAND}`; export r; \
b40e3958 22843 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 22844 $(SET_LIB_PATH) \
378fce5b 22845 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
22846 echo "Doing TAGS in $(TARGET_SUBDIR)/newlib" ; \
22847 for flag in $(EXTRA_TARGET_FLAGS); do \
22848 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22849 done; \
22850 (cd $(TARGET_SUBDIR)/newlib && \
22851 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22852 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22853 "RANLIB=$${RANLIB}" \
22854 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 22855 TAGS) \
4fa63067 22856 || exit 1
3866be5d 22857
6bd3dfaa 22858@endif target-newlib
3866be5d 22859
4fa63067
NN
22860.PHONY: maybe-install-info-target-newlib install-info-target-newlib
22861maybe-install-info-target-newlib:
6bd3dfaa
PB
22862@if target-newlib
22863maybe-install-info-target-newlib: install-info-target-newlib
16ae0395 22864
4fa63067
NN
22865install-info-target-newlib: \
22866 configure-target-newlib \
22867 info-target-newlib
22868 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
22869 r=`${PWD_COMMAND}`; export r; \
b40e3958 22870 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 22871 $(SET_LIB_PATH) \
378fce5b 22872 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
22873 echo "Doing install-info in $(TARGET_SUBDIR)/newlib" ; \
22874 for flag in $(EXTRA_TARGET_FLAGS); do \
22875 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22876 done; \
22877 (cd $(TARGET_SUBDIR)/newlib && \
22878 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22879 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22880 "RANLIB=$${RANLIB}" \
22881 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 22882 install-info) \
4fa63067 22883 || exit 1
3866be5d 22884
6bd3dfaa 22885@endif target-newlib
3866be5d 22886
4fa63067
NN
22887.PHONY: maybe-installcheck-target-newlib installcheck-target-newlib
22888maybe-installcheck-target-newlib:
6bd3dfaa
PB
22889@if target-newlib
22890maybe-installcheck-target-newlib: installcheck-target-newlib
4fa63067
NN
22891
22892installcheck-target-newlib: \
22893 configure-target-newlib
22894 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
b40e3958
L
22895 r=`${PWD_COMMAND}`; export r; \
22896 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fa63067 22897 $(SET_LIB_PATH) \
378fce5b 22898 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
22899 echo "Doing installcheck in $(TARGET_SUBDIR)/newlib" ; \
22900 for flag in $(EXTRA_TARGET_FLAGS); do \
22901 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22902 done; \
22903 (cd $(TARGET_SUBDIR)/newlib && \
22904 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22905 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22906 "RANLIB=$${RANLIB}" \
22907 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 22908 installcheck) \
e2b9e2dc
NN
22909 || exit 1
22910
6bd3dfaa 22911@endif target-newlib
3866be5d 22912
4fa63067
NN
22913.PHONY: maybe-mostlyclean-target-newlib mostlyclean-target-newlib
22914maybe-mostlyclean-target-newlib:
6bd3dfaa
PB
22915@if target-newlib
22916maybe-mostlyclean-target-newlib: mostlyclean-target-newlib
3866be5d 22917
4fa63067
NN
22918mostlyclean-target-newlib:
22919 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
22920 r=`${PWD_COMMAND}`; export r; \
b40e3958 22921 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 22922 $(SET_LIB_PATH) \
378fce5b 22923 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
22924 echo "Doing mostlyclean in $(TARGET_SUBDIR)/newlib" ; \
22925 for flag in $(EXTRA_TARGET_FLAGS); do \
22926 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22927 done; \
22928 (cd $(TARGET_SUBDIR)/newlib && \
22929 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22930 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22931 "RANLIB=$${RANLIB}" \
22932 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 22933 mostlyclean) \
4fa63067 22934 || exit 1
3866be5d 22935
6bd3dfaa 22936@endif target-newlib
3866be5d 22937
4fa63067
NN
22938.PHONY: maybe-clean-target-newlib clean-target-newlib
22939maybe-clean-target-newlib:
6bd3dfaa
PB
22940@if target-newlib
22941maybe-clean-target-newlib: clean-target-newlib
16ae0395 22942
4fa63067
NN
22943clean-target-newlib:
22944 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
22945 r=`${PWD_COMMAND}`; export r; \
b40e3958 22946 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 22947 $(SET_LIB_PATH) \
378fce5b 22948 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
22949 echo "Doing clean in $(TARGET_SUBDIR)/newlib" ; \
22950 for flag in $(EXTRA_TARGET_FLAGS); do \
22951 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22952 done; \
22953 (cd $(TARGET_SUBDIR)/newlib && \
22954 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22955 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22956 "RANLIB=$${RANLIB}" \
22957 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 22958 clean) \
4fa63067 22959 || exit 1
3866be5d 22960
6bd3dfaa 22961@endif target-newlib
3866be5d 22962
4fa63067
NN
22963.PHONY: maybe-distclean-target-newlib distclean-target-newlib
22964maybe-distclean-target-newlib:
6bd3dfaa
PB
22965@if target-newlib
22966maybe-distclean-target-newlib: distclean-target-newlib
4fa63067
NN
22967
22968distclean-target-newlib:
22969 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
b40e3958
L
22970 r=`${PWD_COMMAND}`; export r; \
22971 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fa63067 22972 $(SET_LIB_PATH) \
378fce5b 22973 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
22974 echo "Doing distclean in $(TARGET_SUBDIR)/newlib" ; \
22975 for flag in $(EXTRA_TARGET_FLAGS); do \
22976 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22977 done; \
22978 (cd $(TARGET_SUBDIR)/newlib && \
22979 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22980 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22981 "RANLIB=$${RANLIB}" \
22982 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 22983 distclean) \
e2b9e2dc
NN
22984 || exit 1
22985
6bd3dfaa 22986@endif target-newlib
3866be5d 22987
4fa63067
NN
22988.PHONY: maybe-maintainer-clean-target-newlib maintainer-clean-target-newlib
22989maybe-maintainer-clean-target-newlib:
6bd3dfaa
PB
22990@if target-newlib
22991maybe-maintainer-clean-target-newlib: maintainer-clean-target-newlib
3866be5d 22992
4fa63067
NN
22993maintainer-clean-target-newlib:
22994 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
22995 r=`${PWD_COMMAND}`; export r; \
b40e3958 22996 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 22997 $(SET_LIB_PATH) \
378fce5b 22998 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
22999 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/newlib" ; \
23000 for flag in $(EXTRA_TARGET_FLAGS); do \
23001 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23002 done; \
23003 (cd $(TARGET_SUBDIR)/newlib && \
23004 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23005 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23006 "RANLIB=$${RANLIB}" \
23007 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 23008 maintainer-clean) \
4fa63067 23009 || exit 1
3866be5d 23010
6bd3dfaa 23011@endif target-newlib
3866be5d 23012
16ae0395 23013
4b1cb4fe
DD
23014.PHONY: configure-target-libgfortran maybe-configure-target-libgfortran
23015maybe-configure-target-libgfortran:
6bd3dfaa
PB
23016@if target-libgfortran
23017maybe-configure-target-libgfortran: configure-target-libgfortran
4b1cb4fe
DD
23018
23019# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
23020$(TARGET_SUBDIR)/libgfortran/multilib.out: multilib.out
23021 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran ; \
23022 rm -f $(TARGET_SUBDIR)/libgfortran/Makefile || : ; \
23023 cp multilib.out $(TARGET_SUBDIR)/libgfortran/multilib.out
23024
23025configure-target-libgfortran: $(TARGET_SUBDIR)/libgfortran/multilib.out
23026 @test ! -f $(TARGET_SUBDIR)/libgfortran/Makefile || exit 0; \
23027 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran ; \
23028 r=`${PWD_COMMAND}`; export r; \
23029 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23030 $(SET_LIB_PATH) \
378fce5b 23031 $(NORMAL_TARGET_EXPORTS) \
4b1cb4fe
DD
23032 echo Configuring in $(TARGET_SUBDIR)/libgfortran; \
23033 cd "$(TARGET_SUBDIR)/libgfortran" || exit 1; \
23034 case $(srcdir) in \
23035 /* | [A-Za-z]:[\\/]*) \
23036 topdir=$(srcdir) ;; \
23037 *) \
23038 case "$(TARGET_SUBDIR)" in \
23039 .) topdir="../$(srcdir)" ;; \
23040 *) topdir="../../$(srcdir)" ;; \
23041 esac ;; \
23042 esac; \
23043 srcdiroption="--srcdir=$${topdir}/libgfortran"; \
23044 libsrcdir="$$s/libgfortran"; \
23045 rm -f no-such-file || : ; \
23046 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
23047 $(TARGET_CONFIGARGS) $${srcdiroption} \
7ffa0b57 23048 --with-target-subdir="$(TARGET_SUBDIR)" \
4b1cb4fe 23049 || exit 1
6bd3dfaa 23050@endif target-libgfortran
4b1cb4fe
DD
23051
23052.PHONY: all-target-libgfortran maybe-all-target-libgfortran
23053maybe-all-target-libgfortran:
6bd3dfaa 23054@if target-libgfortran
72b2455a 23055TARGET-target-libgfortran=all
6bd3dfaa 23056maybe-all-target-libgfortran: all-target-libgfortran
4b1cb4fe
DD
23057all-target-libgfortran: configure-target-libgfortran
23058 @r=`${PWD_COMMAND}`; export r; \
23059 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23060 $(SET_LIB_PATH) \
378fce5b 23061 $(NORMAL_TARGET_EXPORTS) \
4b1cb4fe 23062 (cd $(TARGET_SUBDIR)/libgfortran && \
72b2455a 23063 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libgfortran))
6bd3dfaa 23064@endif target-libgfortran
4b1cb4fe
DD
23065
23066.PHONY: check-target-libgfortran maybe-check-target-libgfortran
23067maybe-check-target-libgfortran:
6bd3dfaa
PB
23068@if target-libgfortran
23069maybe-check-target-libgfortran: check-target-libgfortran
4b1cb4fe
DD
23070
23071check-target-libgfortran:
23072 @r=`${PWD_COMMAND}`; export r; \
23073 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23074 $(SET_LIB_PATH) \
378fce5b 23075 $(NORMAL_TARGET_EXPORTS) \
4b1cb4fe 23076 (cd $(TARGET_SUBDIR)/libgfortran && \
7ffa0b57 23077 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4b1cb4fe 23078
6bd3dfaa 23079@endif target-libgfortran
4b1cb4fe
DD
23080
23081.PHONY: install-target-libgfortran maybe-install-target-libgfortran
23082maybe-install-target-libgfortran:
6bd3dfaa
PB
23083@if target-libgfortran
23084maybe-install-target-libgfortran: install-target-libgfortran
4b1cb4fe
DD
23085
23086install-target-libgfortran: installdirs
23087 @r=`${PWD_COMMAND}`; export r; \
23088 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23089 $(SET_LIB_PATH) \
378fce5b 23090 $(NORMAL_TARGET_EXPORTS) \
4b1cb4fe 23091 (cd $(TARGET_SUBDIR)/libgfortran && \
7ffa0b57 23092 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4b1cb4fe 23093
6bd3dfaa 23094@endif target-libgfortran
4b1cb4fe
DD
23095
23096# Other targets (info, dvi, etc.)
23097
23098.PHONY: maybe-info-target-libgfortran info-target-libgfortran
23099maybe-info-target-libgfortran:
6bd3dfaa
PB
23100@if target-libgfortran
23101maybe-info-target-libgfortran: info-target-libgfortran
4b1cb4fe
DD
23102
23103info-target-libgfortran: \
23104 configure-target-libgfortran
23105 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
23106 r=`${PWD_COMMAND}`; export r; \
23107 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23108 $(SET_LIB_PATH) \
378fce5b 23109 $(NORMAL_TARGET_EXPORTS) \
4b1cb4fe
DD
23110 echo "Doing info in $(TARGET_SUBDIR)/libgfortran" ; \
23111 for flag in $(EXTRA_TARGET_FLAGS); do \
23112 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23113 done; \
23114 (cd $(TARGET_SUBDIR)/libgfortran && \
23115 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23116 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23117 "RANLIB=$${RANLIB}" \
23118 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 23119 info) \
4b1cb4fe
DD
23120 || exit 1
23121
6bd3dfaa 23122@endif target-libgfortran
4b1cb4fe
DD
23123
23124.PHONY: maybe-dvi-target-libgfortran dvi-target-libgfortran
23125maybe-dvi-target-libgfortran:
6bd3dfaa
PB
23126@if target-libgfortran
23127maybe-dvi-target-libgfortran: dvi-target-libgfortran
4b1cb4fe
DD
23128
23129dvi-target-libgfortran: \
23130 configure-target-libgfortran
23131 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
23132 r=`${PWD_COMMAND}`; export r; \
23133 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23134 $(SET_LIB_PATH) \
378fce5b 23135 $(NORMAL_TARGET_EXPORTS) \
4b1cb4fe
DD
23136 echo "Doing dvi in $(TARGET_SUBDIR)/libgfortran" ; \
23137 for flag in $(EXTRA_TARGET_FLAGS); do \
23138 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23139 done; \
23140 (cd $(TARGET_SUBDIR)/libgfortran && \
23141 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23142 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23143 "RANLIB=$${RANLIB}" \
23144 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 23145 dvi) \
4b1cb4fe
DD
23146 || exit 1
23147
6bd3dfaa 23148@endif target-libgfortran
4b1cb4fe
DD
23149
23150.PHONY: maybe-TAGS-target-libgfortran TAGS-target-libgfortran
23151maybe-TAGS-target-libgfortran:
6bd3dfaa
PB
23152@if target-libgfortran
23153maybe-TAGS-target-libgfortran: TAGS-target-libgfortran
4b1cb4fe
DD
23154
23155TAGS-target-libgfortran: \
23156 configure-target-libgfortran
23157 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
23158 r=`${PWD_COMMAND}`; export r; \
23159 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23160 $(SET_LIB_PATH) \
378fce5b 23161 $(NORMAL_TARGET_EXPORTS) \
4b1cb4fe
DD
23162 echo "Doing TAGS in $(TARGET_SUBDIR)/libgfortran" ; \
23163 for flag in $(EXTRA_TARGET_FLAGS); do \
23164 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23165 done; \
23166 (cd $(TARGET_SUBDIR)/libgfortran && \
23167 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23168 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23169 "RANLIB=$${RANLIB}" \
23170 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 23171 TAGS) \
4b1cb4fe
DD
23172 || exit 1
23173
6bd3dfaa 23174@endif target-libgfortran
4b1cb4fe
DD
23175
23176.PHONY: maybe-install-info-target-libgfortran install-info-target-libgfortran
23177maybe-install-info-target-libgfortran:
6bd3dfaa
PB
23178@if target-libgfortran
23179maybe-install-info-target-libgfortran: install-info-target-libgfortran
4b1cb4fe
DD
23180
23181install-info-target-libgfortran: \
23182 configure-target-libgfortran \
23183 info-target-libgfortran
23184 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
23185 r=`${PWD_COMMAND}`; export r; \
23186 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23187 $(SET_LIB_PATH) \
378fce5b 23188 $(NORMAL_TARGET_EXPORTS) \
4b1cb4fe
DD
23189 echo "Doing install-info in $(TARGET_SUBDIR)/libgfortran" ; \
23190 for flag in $(EXTRA_TARGET_FLAGS); do \
23191 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23192 done; \
23193 (cd $(TARGET_SUBDIR)/libgfortran && \
23194 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23195 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23196 "RANLIB=$${RANLIB}" \
23197 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 23198 install-info) \
4b1cb4fe
DD
23199 || exit 1
23200
6bd3dfaa 23201@endif target-libgfortran
4b1cb4fe
DD
23202
23203.PHONY: maybe-installcheck-target-libgfortran installcheck-target-libgfortran
23204maybe-installcheck-target-libgfortran:
6bd3dfaa
PB
23205@if target-libgfortran
23206maybe-installcheck-target-libgfortran: installcheck-target-libgfortran
4b1cb4fe
DD
23207
23208installcheck-target-libgfortran: \
23209 configure-target-libgfortran
23210 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
23211 r=`${PWD_COMMAND}`; export r; \
23212 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23213 $(SET_LIB_PATH) \
378fce5b 23214 $(NORMAL_TARGET_EXPORTS) \
4b1cb4fe
DD
23215 echo "Doing installcheck in $(TARGET_SUBDIR)/libgfortran" ; \
23216 for flag in $(EXTRA_TARGET_FLAGS); do \
23217 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23218 done; \
23219 (cd $(TARGET_SUBDIR)/libgfortran && \
23220 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23221 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23222 "RANLIB=$${RANLIB}" \
23223 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 23224 installcheck) \
4b1cb4fe
DD
23225 || exit 1
23226
6bd3dfaa 23227@endif target-libgfortran
4b1cb4fe
DD
23228
23229.PHONY: maybe-mostlyclean-target-libgfortran mostlyclean-target-libgfortran
23230maybe-mostlyclean-target-libgfortran:
6bd3dfaa
PB
23231@if target-libgfortran
23232maybe-mostlyclean-target-libgfortran: mostlyclean-target-libgfortran
4b1cb4fe
DD
23233
23234mostlyclean-target-libgfortran:
23235 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
23236 r=`${PWD_COMMAND}`; export r; \
23237 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23238 $(SET_LIB_PATH) \
378fce5b 23239 $(NORMAL_TARGET_EXPORTS) \
4b1cb4fe
DD
23240 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgfortran" ; \
23241 for flag in $(EXTRA_TARGET_FLAGS); do \
23242 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23243 done; \
23244 (cd $(TARGET_SUBDIR)/libgfortran && \
23245 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23246 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23247 "RANLIB=$${RANLIB}" \
23248 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 23249 mostlyclean) \
4b1cb4fe
DD
23250 || exit 1
23251
6bd3dfaa 23252@endif target-libgfortran
4b1cb4fe
DD
23253
23254.PHONY: maybe-clean-target-libgfortran clean-target-libgfortran
23255maybe-clean-target-libgfortran:
6bd3dfaa
PB
23256@if target-libgfortran
23257maybe-clean-target-libgfortran: clean-target-libgfortran
4b1cb4fe
DD
23258
23259clean-target-libgfortran:
23260 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
23261 r=`${PWD_COMMAND}`; export r; \
23262 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23263 $(SET_LIB_PATH) \
378fce5b 23264 $(NORMAL_TARGET_EXPORTS) \
4b1cb4fe
DD
23265 echo "Doing clean in $(TARGET_SUBDIR)/libgfortran" ; \
23266 for flag in $(EXTRA_TARGET_FLAGS); do \
23267 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23268 done; \
23269 (cd $(TARGET_SUBDIR)/libgfortran && \
23270 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23271 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23272 "RANLIB=$${RANLIB}" \
23273 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 23274 clean) \
4b1cb4fe
DD
23275 || exit 1
23276
6bd3dfaa 23277@endif target-libgfortran
4b1cb4fe
DD
23278
23279.PHONY: maybe-distclean-target-libgfortran distclean-target-libgfortran
23280maybe-distclean-target-libgfortran:
6bd3dfaa
PB
23281@if target-libgfortran
23282maybe-distclean-target-libgfortran: distclean-target-libgfortran
4b1cb4fe
DD
23283
23284distclean-target-libgfortran:
23285 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
23286 r=`${PWD_COMMAND}`; export r; \
23287 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23288 $(SET_LIB_PATH) \
378fce5b 23289 $(NORMAL_TARGET_EXPORTS) \
4b1cb4fe
DD
23290 echo "Doing distclean in $(TARGET_SUBDIR)/libgfortran" ; \
23291 for flag in $(EXTRA_TARGET_FLAGS); do \
23292 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23293 done; \
23294 (cd $(TARGET_SUBDIR)/libgfortran && \
23295 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23296 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23297 "RANLIB=$${RANLIB}" \
23298 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 23299 distclean) \
4b1cb4fe
DD
23300 || exit 1
23301
6bd3dfaa 23302@endif target-libgfortran
4b1cb4fe
DD
23303
23304.PHONY: maybe-maintainer-clean-target-libgfortran maintainer-clean-target-libgfortran
23305maybe-maintainer-clean-target-libgfortran:
6bd3dfaa
PB
23306@if target-libgfortran
23307maybe-maintainer-clean-target-libgfortran: maintainer-clean-target-libgfortran
4b1cb4fe
DD
23308
23309maintainer-clean-target-libgfortran:
23310 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
23311 r=`${PWD_COMMAND}`; export r; \
23312 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23313 $(SET_LIB_PATH) \
378fce5b 23314 $(NORMAL_TARGET_EXPORTS) \
4b1cb4fe
DD
23315 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgfortran" ; \
23316 for flag in $(EXTRA_TARGET_FLAGS); do \
23317 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23318 done; \
23319 (cd $(TARGET_SUBDIR)/libgfortran && \
23320 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23321 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23322 "RANLIB=$${RANLIB}" \
23323 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 23324 maintainer-clean) \
4b1cb4fe
DD
23325 || exit 1
23326
6bd3dfaa 23327@endif target-libgfortran
4b1cb4fe
DD
23328
23329
4fa63067
NN
23330.PHONY: configure-target-libobjc maybe-configure-target-libobjc
23331maybe-configure-target-libobjc:
6bd3dfaa
PB
23332@if target-libobjc
23333maybe-configure-target-libobjc: configure-target-libobjc
3866be5d 23334
4fa63067
NN
23335# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
23336$(TARGET_SUBDIR)/libobjc/multilib.out: multilib.out
23337 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc ; \
23338 rm -f $(TARGET_SUBDIR)/libobjc/Makefile || : ; \
23339 cp multilib.out $(TARGET_SUBDIR)/libobjc/multilib.out
3866be5d 23340
4fa63067
NN
23341configure-target-libobjc: $(TARGET_SUBDIR)/libobjc/multilib.out
23342 @test ! -f $(TARGET_SUBDIR)/libobjc/Makefile || exit 0; \
23343 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc ; \
b40e3958 23344 r=`${PWD_COMMAND}`; export r; \
378fce5b
DD
23345 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23346 $(SET_LIB_PATH) \
23347 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
23348 echo Configuring in $(TARGET_SUBDIR)/libobjc; \
23349 cd "$(TARGET_SUBDIR)/libobjc" || exit 1; \
e2b9e2dc 23350 case $(srcdir) in \
e2b9e2dc 23351 /* | [A-Za-z]:[\\/]*) \
4fa63067 23352 topdir=$(srcdir) ;; \
e2b9e2dc 23353 *) \
4fa63067
NN
23354 case "$(TARGET_SUBDIR)" in \
23355 .) topdir="../$(srcdir)" ;; \
23356 *) topdir="../../$(srcdir)" ;; \
23357 esac ;; \
e2b9e2dc 23358 esac; \
4fa63067
NN
23359 srcdiroption="--srcdir=$${topdir}/libobjc"; \
23360 libsrcdir="$$s/libobjc"; \
23361 rm -f no-such-file || : ; \
23362 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
23363 $(TARGET_CONFIGARGS) $${srcdiroption} \
7ffa0b57 23364 --with-target-subdir="$(TARGET_SUBDIR)" \
e2b9e2dc 23365 || exit 1
6bd3dfaa 23366@endif target-libobjc
e2b9e2dc 23367
4fa63067
NN
23368.PHONY: all-target-libobjc maybe-all-target-libobjc
23369maybe-all-target-libobjc:
6bd3dfaa 23370@if target-libobjc
72b2455a 23371TARGET-target-libobjc=all
6bd3dfaa 23372maybe-all-target-libobjc: all-target-libobjc
4fa63067 23373all-target-libobjc: configure-target-libobjc
b40e3958
L
23374 @r=`${PWD_COMMAND}`; export r; \
23375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 23376 $(SET_LIB_PATH) \
378fce5b 23377 $(NORMAL_TARGET_EXPORTS) \
4fa63067 23378 (cd $(TARGET_SUBDIR)/libobjc && \
72b2455a 23379 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libobjc))
6bd3dfaa 23380@endif target-libobjc
3866be5d 23381
4fa63067
NN
23382.PHONY: check-target-libobjc maybe-check-target-libobjc
23383maybe-check-target-libobjc:
6bd3dfaa
PB
23384@if target-libobjc
23385maybe-check-target-libobjc: check-target-libobjc
3866be5d 23386
4fa63067 23387check-target-libobjc:
b40e3958
L
23388 @r=`${PWD_COMMAND}`; export r; \
23389 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 23390 $(SET_LIB_PATH) \
378fce5b 23391 $(NORMAL_TARGET_EXPORTS) \
4fa63067 23392 (cd $(TARGET_SUBDIR)/libobjc && \
7ffa0b57 23393 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
3866be5d 23394
6bd3dfaa 23395@endif target-libobjc
3866be5d 23396
4fa63067
NN
23397.PHONY: install-target-libobjc maybe-install-target-libobjc
23398maybe-install-target-libobjc:
6bd3dfaa
PB
23399@if target-libobjc
23400maybe-install-target-libobjc: install-target-libobjc
e2b9e2dc 23401
4fa63067 23402install-target-libobjc: installdirs
b40e3958
L
23403 @r=`${PWD_COMMAND}`; export r; \
23404 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 23405 $(SET_LIB_PATH) \
378fce5b 23406 $(NORMAL_TARGET_EXPORTS) \
4fa63067 23407 (cd $(TARGET_SUBDIR)/libobjc && \
7ffa0b57 23408 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 23409
6bd3dfaa 23410@endif target-libobjc
3866be5d 23411
4fa63067
NN
23412# Other targets (info, dvi, etc.)
23413
23414.PHONY: maybe-info-target-libobjc info-target-libobjc
23415maybe-info-target-libobjc:
6bd3dfaa
PB
23416@if target-libobjc
23417maybe-info-target-libobjc: info-target-libobjc
4fa63067
NN
23418
23419info-target-libobjc: \
23420 configure-target-libobjc
23421 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
23422 r=`${PWD_COMMAND}`; export r; \
b40e3958 23423 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 23424 $(SET_LIB_PATH) \
378fce5b 23425 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
23426 echo "Doing info in $(TARGET_SUBDIR)/libobjc" ; \
23427 for flag in $(EXTRA_TARGET_FLAGS); do \
23428 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23429 done; \
23430 (cd $(TARGET_SUBDIR)/libobjc && \
23431 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23432 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23433 "RANLIB=$${RANLIB}" \
23434 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 23435 info) \
4fa63067 23436 || exit 1
3866be5d 23437
6bd3dfaa 23438@endif target-libobjc
3866be5d 23439
4fa63067
NN
23440.PHONY: maybe-dvi-target-libobjc dvi-target-libobjc
23441maybe-dvi-target-libobjc:
6bd3dfaa
PB
23442@if target-libobjc
23443maybe-dvi-target-libobjc: dvi-target-libobjc
16ae0395 23444
4fa63067
NN
23445dvi-target-libobjc: \
23446 configure-target-libobjc
23447 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
23448 r=`${PWD_COMMAND}`; export r; \
b40e3958 23449 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 23450 $(SET_LIB_PATH) \
378fce5b 23451 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
23452 echo "Doing dvi in $(TARGET_SUBDIR)/libobjc" ; \
23453 for flag in $(EXTRA_TARGET_FLAGS); do \
23454 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23455 done; \
23456 (cd $(TARGET_SUBDIR)/libobjc && \
23457 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23458 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23459 "RANLIB=$${RANLIB}" \
23460 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 23461 dvi) \
4fa63067 23462 || exit 1
3866be5d 23463
6bd3dfaa 23464@endif target-libobjc
3866be5d 23465
4fa63067
NN
23466.PHONY: maybe-TAGS-target-libobjc TAGS-target-libobjc
23467maybe-TAGS-target-libobjc:
6bd3dfaa
PB
23468@if target-libobjc
23469maybe-TAGS-target-libobjc: TAGS-target-libobjc
4fa63067
NN
23470
23471TAGS-target-libobjc: \
23472 configure-target-libobjc
23473 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
b40e3958
L
23474 r=`${PWD_COMMAND}`; export r; \
23475 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fa63067 23476 $(SET_LIB_PATH) \
378fce5b 23477 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
23478 echo "Doing TAGS in $(TARGET_SUBDIR)/libobjc" ; \
23479 for flag in $(EXTRA_TARGET_FLAGS); do \
23480 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23481 done; \
23482 (cd $(TARGET_SUBDIR)/libobjc && \
23483 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23484 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23485 "RANLIB=$${RANLIB}" \
23486 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 23487 TAGS) \
e2b9e2dc
NN
23488 || exit 1
23489
6bd3dfaa 23490@endif target-libobjc
4fa63067
NN
23491
23492.PHONY: maybe-install-info-target-libobjc install-info-target-libobjc
23493maybe-install-info-target-libobjc:
6bd3dfaa
PB
23494@if target-libobjc
23495maybe-install-info-target-libobjc: install-info-target-libobjc
4fa63067
NN
23496
23497install-info-target-libobjc: \
23498 configure-target-libobjc \
23499 info-target-libobjc
23500 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
23501 r=`${PWD_COMMAND}`; export r; \
b40e3958 23502 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 23503 $(SET_LIB_PATH) \
378fce5b 23504 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
23505 echo "Doing install-info in $(TARGET_SUBDIR)/libobjc" ; \
23506 for flag in $(EXTRA_TARGET_FLAGS); do \
23507 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23508 done; \
23509 (cd $(TARGET_SUBDIR)/libobjc && \
23510 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23511 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23512 "RANLIB=$${RANLIB}" \
23513 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 23514 install-info) \
4fa63067 23515 || exit 1
3866be5d 23516
6bd3dfaa 23517@endif target-libobjc
3866be5d 23518
4fa63067
NN
23519.PHONY: maybe-installcheck-target-libobjc installcheck-target-libobjc
23520maybe-installcheck-target-libobjc:
6bd3dfaa
PB
23521@if target-libobjc
23522maybe-installcheck-target-libobjc: installcheck-target-libobjc
4fa63067
NN
23523
23524installcheck-target-libobjc: \
23525 configure-target-libobjc
23526 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
23527 r=`${PWD_COMMAND}`; export r; \
b40e3958 23528 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 23529 $(SET_LIB_PATH) \
378fce5b 23530 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
23531 echo "Doing installcheck in $(TARGET_SUBDIR)/libobjc" ; \
23532 for flag in $(EXTRA_TARGET_FLAGS); do \
23533 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23534 done; \
23535 (cd $(TARGET_SUBDIR)/libobjc && \
23536 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23537 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23538 "RANLIB=$${RANLIB}" \
23539 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 23540 installcheck) \
4fa63067 23541 || exit 1
3866be5d 23542
6bd3dfaa 23543@endif target-libobjc
3866be5d 23544
4fa63067
NN
23545.PHONY: maybe-mostlyclean-target-libobjc mostlyclean-target-libobjc
23546maybe-mostlyclean-target-libobjc:
6bd3dfaa
PB
23547@if target-libobjc
23548maybe-mostlyclean-target-libobjc: mostlyclean-target-libobjc
16ae0395 23549
4fa63067
NN
23550mostlyclean-target-libobjc:
23551 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
23552 r=`${PWD_COMMAND}`; export r; \
b40e3958 23553 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 23554 $(SET_LIB_PATH) \
378fce5b 23555 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
23556 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libobjc" ; \
23557 for flag in $(EXTRA_TARGET_FLAGS); do \
23558 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23559 done; \
23560 (cd $(TARGET_SUBDIR)/libobjc && \
23561 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23562 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23563 "RANLIB=$${RANLIB}" \
23564 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 23565 mostlyclean) \
4fa63067 23566 || exit 1
3866be5d 23567
6bd3dfaa 23568@endif target-libobjc
3866be5d 23569
4fa63067
NN
23570.PHONY: maybe-clean-target-libobjc clean-target-libobjc
23571maybe-clean-target-libobjc:
6bd3dfaa
PB
23572@if target-libobjc
23573maybe-clean-target-libobjc: clean-target-libobjc
4fa63067
NN
23574
23575clean-target-libobjc:
23576 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
b40e3958
L
23577 r=`${PWD_COMMAND}`; export r; \
23578 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fa63067 23579 $(SET_LIB_PATH) \
378fce5b 23580 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
23581 echo "Doing clean in $(TARGET_SUBDIR)/libobjc" ; \
23582 for flag in $(EXTRA_TARGET_FLAGS); do \
23583 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23584 done; \
23585 (cd $(TARGET_SUBDIR)/libobjc && \
23586 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23587 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23588 "RANLIB=$${RANLIB}" \
23589 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 23590 clean) \
e2b9e2dc
NN
23591 || exit 1
23592
6bd3dfaa 23593@endif target-libobjc
3866be5d 23594
4fa63067
NN
23595.PHONY: maybe-distclean-target-libobjc distclean-target-libobjc
23596maybe-distclean-target-libobjc:
6bd3dfaa
PB
23597@if target-libobjc
23598maybe-distclean-target-libobjc: distclean-target-libobjc
3866be5d 23599
4fa63067
NN
23600distclean-target-libobjc:
23601 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
23602 r=`${PWD_COMMAND}`; export r; \
b40e3958 23603 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 23604 $(SET_LIB_PATH) \
378fce5b 23605 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
23606 echo "Doing distclean in $(TARGET_SUBDIR)/libobjc" ; \
23607 for flag in $(EXTRA_TARGET_FLAGS); do \
23608 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23609 done; \
23610 (cd $(TARGET_SUBDIR)/libobjc && \
23611 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23612 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23613 "RANLIB=$${RANLIB}" \
23614 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 23615 distclean) \
4fa63067 23616 || exit 1
3866be5d 23617
6bd3dfaa 23618@endif target-libobjc
3866be5d 23619
4fa63067
NN
23620.PHONY: maybe-maintainer-clean-target-libobjc maintainer-clean-target-libobjc
23621maybe-maintainer-clean-target-libobjc:
6bd3dfaa
PB
23622@if target-libobjc
23623maybe-maintainer-clean-target-libobjc: maintainer-clean-target-libobjc
16ae0395 23624
4fa63067
NN
23625maintainer-clean-target-libobjc:
23626 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
23627 r=`${PWD_COMMAND}`; export r; \
b40e3958 23628 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 23629 $(SET_LIB_PATH) \
378fce5b 23630 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
23631 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libobjc" ; \
23632 for flag in $(EXTRA_TARGET_FLAGS); do \
23633 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23634 done; \
23635 (cd $(TARGET_SUBDIR)/libobjc && \
23636 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23637 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23638 "RANLIB=$${RANLIB}" \
23639 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 23640 maintainer-clean) \
4fa63067 23641 || exit 1
3866be5d 23642
6bd3dfaa 23643@endif target-libobjc
3866be5d 23644
4fa63067
NN
23645
23646.PHONY: configure-target-libtermcap maybe-configure-target-libtermcap
23647maybe-configure-target-libtermcap:
6bd3dfaa
PB
23648@if target-libtermcap
23649maybe-configure-target-libtermcap: configure-target-libtermcap
4fa63067
NN
23650
23651# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
23652$(TARGET_SUBDIR)/libtermcap/multilib.out: multilib.out
23653 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap ; \
23654 rm -f $(TARGET_SUBDIR)/libtermcap/Makefile || : ; \
23655 cp multilib.out $(TARGET_SUBDIR)/libtermcap/multilib.out
23656
23657configure-target-libtermcap: $(TARGET_SUBDIR)/libtermcap/multilib.out
23658 @test ! -f $(TARGET_SUBDIR)/libtermcap/Makefile || exit 0; \
23659 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap ; \
b40e3958
L
23660 r=`${PWD_COMMAND}`; export r; \
23661 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fa63067 23662 $(SET_LIB_PATH) \
378fce5b 23663 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
23664 echo Configuring in $(TARGET_SUBDIR)/libtermcap; \
23665 cd "$(TARGET_SUBDIR)/libtermcap" || exit 1; \
e2b9e2dc 23666 case $(srcdir) in \
e2b9e2dc 23667 /* | [A-Za-z]:[\\/]*) \
4fa63067 23668 topdir=$(srcdir) ;; \
e2b9e2dc 23669 *) \
4fa63067
NN
23670 case "$(TARGET_SUBDIR)" in \
23671 .) topdir="../$(srcdir)" ;; \
23672 *) topdir="../../$(srcdir)" ;; \
23673 esac ;; \
e2b9e2dc 23674 esac; \
4fa63067
NN
23675 if [ "$(srcdir)" = "." ] ; then \
23676 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
23677 if $(SHELL) $$s/symlink-tree $${topdir}/libtermcap "no-such-file" ; then \
23678 if [ -f Makefile ]; then \
23679 if $(MAKE) distclean; then \
23680 true; \
23681 else \
23682 exit 1; \
23683 fi; \
23684 else \
23685 true; \
23686 fi; \
23687 else \
23688 exit 1; \
23689 fi; \
23690 else \
23691 true; \
23692 fi; \
23693 srcdiroption="--srcdir=."; \
23694 libsrcdir="."; \
23695 else \
23696 srcdiroption="--srcdir=$${topdir}/libtermcap"; \
23697 libsrcdir="$$s/libtermcap"; \
23698 fi; \
23699 rm -f no-such-file || : ; \
23700 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
23701 $(TARGET_CONFIGARGS) $${srcdiroption} \
7ffa0b57 23702 --with-target-subdir="$(TARGET_SUBDIR)" \
e2b9e2dc 23703 || exit 1
6bd3dfaa 23704@endif target-libtermcap
e2b9e2dc 23705
4fa63067
NN
23706.PHONY: all-target-libtermcap maybe-all-target-libtermcap
23707maybe-all-target-libtermcap:
6bd3dfaa 23708@if target-libtermcap
72b2455a 23709TARGET-target-libtermcap=all
6bd3dfaa 23710maybe-all-target-libtermcap: all-target-libtermcap
4fa63067 23711all-target-libtermcap: configure-target-libtermcap
b40e3958
L
23712 @r=`${PWD_COMMAND}`; export r; \
23713 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 23714 $(SET_LIB_PATH) \
378fce5b 23715 $(NORMAL_TARGET_EXPORTS) \
4fa63067 23716 (cd $(TARGET_SUBDIR)/libtermcap && \
72b2455a 23717 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libtermcap))
6bd3dfaa 23718@endif target-libtermcap
3866be5d 23719
4fa63067
NN
23720.PHONY: check-target-libtermcap maybe-check-target-libtermcap
23721maybe-check-target-libtermcap:
6bd3dfaa
PB
23722@if target-libtermcap
23723maybe-check-target-libtermcap: check-target-libtermcap
3866be5d 23724
4fa63067
NN
23725# Dummy target for uncheckable module.
23726check-target-libtermcap:
23727
6bd3dfaa 23728@endif target-libtermcap
4fa63067
NN
23729
23730.PHONY: install-target-libtermcap maybe-install-target-libtermcap
23731maybe-install-target-libtermcap:
6bd3dfaa
PB
23732@if target-libtermcap
23733maybe-install-target-libtermcap: install-target-libtermcap
4fa63067
NN
23734
23735install-target-libtermcap: installdirs
b40e3958
L
23736 @r=`${PWD_COMMAND}`; export r; \
23737 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 23738 $(SET_LIB_PATH) \
378fce5b 23739 $(NORMAL_TARGET_EXPORTS) \
4fa63067 23740 (cd $(TARGET_SUBDIR)/libtermcap && \
7ffa0b57 23741 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 23742
6bd3dfaa 23743@endif target-libtermcap
3866be5d 23744
4fa63067 23745# Other targets (info, dvi, etc.)
16ae0395 23746
4fa63067
NN
23747.PHONY: maybe-info-target-libtermcap info-target-libtermcap
23748maybe-info-target-libtermcap:
6bd3dfaa
PB
23749@if target-libtermcap
23750maybe-info-target-libtermcap: info-target-libtermcap
4fa63067
NN
23751
23752info-target-libtermcap: \
23753 configure-target-libtermcap
23754 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
23755 r=`${PWD_COMMAND}`; export r; \
b40e3958 23756 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 23757 $(SET_LIB_PATH) \
378fce5b 23758 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
23759 echo "Doing info in $(TARGET_SUBDIR)/libtermcap" ; \
23760 for flag in $(EXTRA_TARGET_FLAGS); do \
23761 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23762 done; \
23763 (cd $(TARGET_SUBDIR)/libtermcap && \
23764 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23765 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23766 "RANLIB=$${RANLIB}" \
23767 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 23768 info) \
4fa63067 23769 || exit 1
3866be5d 23770
6bd3dfaa 23771@endif target-libtermcap
3866be5d 23772
4fa63067
NN
23773.PHONY: maybe-dvi-target-libtermcap dvi-target-libtermcap
23774maybe-dvi-target-libtermcap:
6bd3dfaa
PB
23775@if target-libtermcap
23776maybe-dvi-target-libtermcap: dvi-target-libtermcap
4fa63067
NN
23777
23778dvi-target-libtermcap: \
23779 configure-target-libtermcap
23780 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
b40e3958
L
23781 r=`${PWD_COMMAND}`; export r; \
23782 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fa63067 23783 $(SET_LIB_PATH) \
378fce5b 23784 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
23785 echo "Doing dvi in $(TARGET_SUBDIR)/libtermcap" ; \
23786 for flag in $(EXTRA_TARGET_FLAGS); do \
23787 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23788 done; \
23789 (cd $(TARGET_SUBDIR)/libtermcap && \
23790 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23791 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23792 "RANLIB=$${RANLIB}" \
23793 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 23794 dvi) \
e2b9e2dc
NN
23795 || exit 1
23796
6bd3dfaa 23797@endif target-libtermcap
4fa63067
NN
23798
23799.PHONY: maybe-TAGS-target-libtermcap TAGS-target-libtermcap
23800maybe-TAGS-target-libtermcap:
6bd3dfaa
PB
23801@if target-libtermcap
23802maybe-TAGS-target-libtermcap: TAGS-target-libtermcap
4fa63067
NN
23803
23804TAGS-target-libtermcap: \
23805 configure-target-libtermcap
23806 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
23807 r=`${PWD_COMMAND}`; export r; \
b40e3958 23808 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 23809 $(SET_LIB_PATH) \
378fce5b 23810 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
23811 echo "Doing TAGS in $(TARGET_SUBDIR)/libtermcap" ; \
23812 for flag in $(EXTRA_TARGET_FLAGS); do \
23813 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23814 done; \
23815 (cd $(TARGET_SUBDIR)/libtermcap && \
23816 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23817 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23818 "RANLIB=$${RANLIB}" \
23819 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 23820 TAGS) \
4fa63067 23821 || exit 1
3866be5d 23822
6bd3dfaa 23823@endif target-libtermcap
3866be5d 23824
4fa63067
NN
23825.PHONY: maybe-install-info-target-libtermcap install-info-target-libtermcap
23826maybe-install-info-target-libtermcap:
6bd3dfaa
PB
23827@if target-libtermcap
23828maybe-install-info-target-libtermcap: install-info-target-libtermcap
3866be5d 23829
4fa63067
NN
23830install-info-target-libtermcap: \
23831 configure-target-libtermcap \
23832 info-target-libtermcap
23833 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
23834 r=`${PWD_COMMAND}`; export r; \
23835 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23836 $(SET_LIB_PATH) \
378fce5b 23837 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
23838 echo "Doing install-info in $(TARGET_SUBDIR)/libtermcap" ; \
23839 for flag in $(EXTRA_TARGET_FLAGS); do \
23840 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23841 done; \
23842 (cd $(TARGET_SUBDIR)/libtermcap && \
23843 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23844 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23845 "RANLIB=$${RANLIB}" \
23846 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 23847 install-info) \
4fa63067 23848 || exit 1
3866be5d 23849
6bd3dfaa 23850@endif target-libtermcap
16ae0395 23851
4fa63067
NN
23852.PHONY: maybe-installcheck-target-libtermcap installcheck-target-libtermcap
23853maybe-installcheck-target-libtermcap:
6bd3dfaa
PB
23854@if target-libtermcap
23855maybe-installcheck-target-libtermcap: installcheck-target-libtermcap
4fa63067
NN
23856
23857installcheck-target-libtermcap: \
23858 configure-target-libtermcap
23859 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
23860 r=`${PWD_COMMAND}`; export r; \
b40e3958 23861 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 23862 $(SET_LIB_PATH) \
378fce5b 23863 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
23864 echo "Doing installcheck in $(TARGET_SUBDIR)/libtermcap" ; \
23865 for flag in $(EXTRA_TARGET_FLAGS); do \
23866 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23867 done; \
23868 (cd $(TARGET_SUBDIR)/libtermcap && \
23869 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23870 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23871 "RANLIB=$${RANLIB}" \
23872 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 23873 installcheck) \
4fa63067 23874 || exit 1
3866be5d 23875
6bd3dfaa 23876@endif target-libtermcap
3866be5d 23877
4fa63067
NN
23878.PHONY: maybe-mostlyclean-target-libtermcap mostlyclean-target-libtermcap
23879maybe-mostlyclean-target-libtermcap:
6bd3dfaa
PB
23880@if target-libtermcap
23881maybe-mostlyclean-target-libtermcap: mostlyclean-target-libtermcap
4fa63067
NN
23882
23883# libtermcap doesn't support mostlyclean.
23884mostlyclean-target-libtermcap:
23885
6bd3dfaa 23886@endif target-libtermcap
4fa63067
NN
23887
23888.PHONY: maybe-clean-target-libtermcap clean-target-libtermcap
23889maybe-clean-target-libtermcap:
6bd3dfaa
PB
23890@if target-libtermcap
23891maybe-clean-target-libtermcap: clean-target-libtermcap
4fa63067
NN
23892
23893# libtermcap doesn't support clean.
23894clean-target-libtermcap:
23895
6bd3dfaa 23896@endif target-libtermcap
4fa63067
NN
23897
23898.PHONY: maybe-distclean-target-libtermcap distclean-target-libtermcap
23899maybe-distclean-target-libtermcap:
6bd3dfaa
PB
23900@if target-libtermcap
23901maybe-distclean-target-libtermcap: distclean-target-libtermcap
4fa63067
NN
23902
23903# libtermcap doesn't support distclean.
23904distclean-target-libtermcap:
23905
6bd3dfaa 23906@endif target-libtermcap
4fa63067
NN
23907
23908.PHONY: maybe-maintainer-clean-target-libtermcap maintainer-clean-target-libtermcap
23909maybe-maintainer-clean-target-libtermcap:
6bd3dfaa
PB
23910@if target-libtermcap
23911maybe-maintainer-clean-target-libtermcap: maintainer-clean-target-libtermcap
4fa63067
NN
23912
23913# libtermcap doesn't support maintainer-clean.
23914maintainer-clean-target-libtermcap:
23915
6bd3dfaa 23916@endif target-libtermcap
4fa63067
NN
23917
23918
23919.PHONY: configure-target-winsup maybe-configure-target-winsup
23920maybe-configure-target-winsup:
6bd3dfaa
PB
23921@if target-winsup
23922maybe-configure-target-winsup: configure-target-winsup
4fa63067
NN
23923
23924# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
23925$(TARGET_SUBDIR)/winsup/multilib.out: multilib.out
23926 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup ; \
23927 rm -f $(TARGET_SUBDIR)/winsup/Makefile || : ; \
23928 cp multilib.out $(TARGET_SUBDIR)/winsup/multilib.out
23929
23930configure-target-winsup: $(TARGET_SUBDIR)/winsup/multilib.out
23931 @test ! -f $(TARGET_SUBDIR)/winsup/Makefile || exit 0; \
23932 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup ; \
b40e3958
L
23933 r=`${PWD_COMMAND}`; export r; \
23934 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fa63067 23935 $(SET_LIB_PATH) \
378fce5b 23936 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
23937 echo Configuring in $(TARGET_SUBDIR)/winsup; \
23938 cd "$(TARGET_SUBDIR)/winsup" || exit 1; \
e2b9e2dc 23939 case $(srcdir) in \
e2b9e2dc 23940 /* | [A-Za-z]:[\\/]*) \
4fa63067 23941 topdir=$(srcdir) ;; \
e2b9e2dc 23942 *) \
4fa63067
NN
23943 case "$(TARGET_SUBDIR)" in \
23944 .) topdir="../$(srcdir)" ;; \
23945 *) topdir="../../$(srcdir)" ;; \
23946 esac ;; \
e2b9e2dc 23947 esac; \
4fa63067
NN
23948 srcdiroption="--srcdir=$${topdir}/winsup"; \
23949 libsrcdir="$$s/winsup"; \
23950 rm -f no-such-file || : ; \
23951 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
23952 $(TARGET_CONFIGARGS) $${srcdiroption} \
7ffa0b57 23953 --with-target-subdir="$(TARGET_SUBDIR)" \
e2b9e2dc 23954 || exit 1
6bd3dfaa 23955@endif target-winsup
e2b9e2dc 23956
4fa63067
NN
23957.PHONY: all-target-winsup maybe-all-target-winsup
23958maybe-all-target-winsup:
6bd3dfaa 23959@if target-winsup
72b2455a 23960TARGET-target-winsup=all
6bd3dfaa 23961maybe-all-target-winsup: all-target-winsup
4fa63067 23962all-target-winsup: configure-target-winsup
b40e3958
L
23963 @r=`${PWD_COMMAND}`; export r; \
23964 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 23965 $(SET_LIB_PATH) \
378fce5b 23966 $(NORMAL_TARGET_EXPORTS) \
4fa63067 23967 (cd $(TARGET_SUBDIR)/winsup && \
72b2455a 23968 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-winsup))
6bd3dfaa 23969@endif target-winsup
3866be5d 23970
4fa63067
NN
23971.PHONY: check-target-winsup maybe-check-target-winsup
23972maybe-check-target-winsup:
6bd3dfaa
PB
23973@if target-winsup
23974maybe-check-target-winsup: check-target-winsup
3866be5d 23975
4fa63067
NN
23976check-target-winsup:
23977 @r=`${PWD_COMMAND}`; export r; \
23978 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23979 $(SET_LIB_PATH) \
378fce5b 23980 $(NORMAL_TARGET_EXPORTS) \
4fa63067 23981 (cd $(TARGET_SUBDIR)/winsup && \
7ffa0b57 23982 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
3866be5d 23983
6bd3dfaa 23984@endif target-winsup
3866be5d 23985
4fa63067
NN
23986.PHONY: install-target-winsup maybe-install-target-winsup
23987maybe-install-target-winsup:
6bd3dfaa
PB
23988@if target-winsup
23989maybe-install-target-winsup: install-target-winsup
16ae0395 23990
4fa63067
NN
23991install-target-winsup: installdirs
23992 @r=`${PWD_COMMAND}`; export r; \
23993 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23994 $(SET_LIB_PATH) \
378fce5b 23995 $(NORMAL_TARGET_EXPORTS) \
4fa63067 23996 (cd $(TARGET_SUBDIR)/winsup && \
7ffa0b57 23997 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 23998
6bd3dfaa 23999@endif target-winsup
3866be5d 24000
4fa63067
NN
24001# Other targets (info, dvi, etc.)
24002
24003.PHONY: maybe-info-target-winsup info-target-winsup
24004maybe-info-target-winsup:
6bd3dfaa
PB
24005@if target-winsup
24006maybe-info-target-winsup: info-target-winsup
4fa63067
NN
24007
24008info-target-winsup: \
24009 configure-target-winsup
24010 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
b40e3958
L
24011 r=`${PWD_COMMAND}`; export r; \
24012 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fa63067 24013 $(SET_LIB_PATH) \
378fce5b 24014 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
24015 echo "Doing info in $(TARGET_SUBDIR)/winsup" ; \
24016 for flag in $(EXTRA_TARGET_FLAGS); do \
24017 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24018 done; \
24019 (cd $(TARGET_SUBDIR)/winsup && \
24020 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24021 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24022 "RANLIB=$${RANLIB}" \
24023 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 24024 info) \
e2b9e2dc
NN
24025 || exit 1
24026
6bd3dfaa 24027@endif target-winsup
3866be5d 24028
4fa63067
NN
24029.PHONY: maybe-dvi-target-winsup dvi-target-winsup
24030maybe-dvi-target-winsup:
6bd3dfaa
PB
24031@if target-winsup
24032maybe-dvi-target-winsup: dvi-target-winsup
3866be5d 24033
4fa63067
NN
24034dvi-target-winsup: \
24035 configure-target-winsup
24036 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
24037 r=`${PWD_COMMAND}`; export r; \
b40e3958 24038 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 24039 $(SET_LIB_PATH) \
378fce5b 24040 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
24041 echo "Doing dvi in $(TARGET_SUBDIR)/winsup" ; \
24042 for flag in $(EXTRA_TARGET_FLAGS); do \
24043 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24044 done; \
24045 (cd $(TARGET_SUBDIR)/winsup && \
24046 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24047 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24048 "RANLIB=$${RANLIB}" \
24049 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 24050 dvi) \
4fa63067 24051 || exit 1
3866be5d 24052
6bd3dfaa 24053@endif target-winsup
3866be5d 24054
4fa63067
NN
24055.PHONY: maybe-TAGS-target-winsup TAGS-target-winsup
24056maybe-TAGS-target-winsup:
6bd3dfaa
PB
24057@if target-winsup
24058maybe-TAGS-target-winsup: TAGS-target-winsup
16ae0395 24059
4fa63067
NN
24060TAGS-target-winsup: \
24061 configure-target-winsup
24062 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
24063 r=`${PWD_COMMAND}`; export r; \
b40e3958 24064 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 24065 $(SET_LIB_PATH) \
378fce5b 24066 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
24067 echo "Doing TAGS in $(TARGET_SUBDIR)/winsup" ; \
24068 for flag in $(EXTRA_TARGET_FLAGS); do \
24069 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24070 done; \
24071 (cd $(TARGET_SUBDIR)/winsup && \
24072 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24073 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24074 "RANLIB=$${RANLIB}" \
24075 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 24076 TAGS) \
4fa63067 24077 || exit 1
3866be5d 24078
6bd3dfaa 24079@endif target-winsup
3866be5d 24080
4fa63067
NN
24081.PHONY: maybe-install-info-target-winsup install-info-target-winsup
24082maybe-install-info-target-winsup:
6bd3dfaa
PB
24083@if target-winsup
24084maybe-install-info-target-winsup: install-info-target-winsup
4fa63067
NN
24085
24086install-info-target-winsup: \
24087 configure-target-winsup \
24088 info-target-winsup
24089 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
b40e3958
L
24090 r=`${PWD_COMMAND}`; export r; \
24091 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fa63067 24092 $(SET_LIB_PATH) \
378fce5b 24093 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
24094 echo "Doing install-info in $(TARGET_SUBDIR)/winsup" ; \
24095 for flag in $(EXTRA_TARGET_FLAGS); do \
24096 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24097 done; \
24098 (cd $(TARGET_SUBDIR)/winsup && \
24099 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24100 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24101 "RANLIB=$${RANLIB}" \
24102 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 24103 install-info) \
e2b9e2dc
NN
24104 || exit 1
24105
6bd3dfaa 24106@endif target-winsup
4fa63067
NN
24107
24108.PHONY: maybe-installcheck-target-winsup installcheck-target-winsup
24109maybe-installcheck-target-winsup:
6bd3dfaa
PB
24110@if target-winsup
24111maybe-installcheck-target-winsup: installcheck-target-winsup
4fa63067
NN
24112
24113installcheck-target-winsup: \
24114 configure-target-winsup
24115 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
24116 r=`${PWD_COMMAND}`; export r; \
b40e3958 24117 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 24118 $(SET_LIB_PATH) \
378fce5b 24119 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
24120 echo "Doing installcheck in $(TARGET_SUBDIR)/winsup" ; \
24121 for flag in $(EXTRA_TARGET_FLAGS); do \
24122 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24123 done; \
24124 (cd $(TARGET_SUBDIR)/winsup && \
24125 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24126 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24127 "RANLIB=$${RANLIB}" \
24128 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 24129 installcheck) \
4fa63067 24130 || exit 1
3866be5d 24131
6bd3dfaa 24132@endif target-winsup
3866be5d 24133
4fa63067
NN
24134.PHONY: maybe-mostlyclean-target-winsup mostlyclean-target-winsup
24135maybe-mostlyclean-target-winsup:
6bd3dfaa
PB
24136@if target-winsup
24137maybe-mostlyclean-target-winsup: mostlyclean-target-winsup
4fa63067
NN
24138
24139mostlyclean-target-winsup:
24140 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
24141 r=`${PWD_COMMAND}`; export r; \
b40e3958 24142 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 24143 $(SET_LIB_PATH) \
378fce5b 24144 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
24145 echo "Doing mostlyclean in $(TARGET_SUBDIR)/winsup" ; \
24146 for flag in $(EXTRA_TARGET_FLAGS); do \
24147 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24148 done; \
24149 (cd $(TARGET_SUBDIR)/winsup && \
24150 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24151 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24152 "RANLIB=$${RANLIB}" \
24153 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 24154 mostlyclean) \
4fa63067 24155 || exit 1
3866be5d 24156
6bd3dfaa 24157@endif target-winsup
3866be5d 24158
4fa63067
NN
24159.PHONY: maybe-clean-target-winsup clean-target-winsup
24160maybe-clean-target-winsup:
6bd3dfaa
PB
24161@if target-winsup
24162maybe-clean-target-winsup: clean-target-winsup
16ae0395 24163
4fa63067
NN
24164clean-target-winsup:
24165 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
24166 r=`${PWD_COMMAND}`; export r; \
b40e3958 24167 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 24168 $(SET_LIB_PATH) \
378fce5b 24169 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
24170 echo "Doing clean in $(TARGET_SUBDIR)/winsup" ; \
24171 for flag in $(EXTRA_TARGET_FLAGS); do \
24172 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24173 done; \
24174 (cd $(TARGET_SUBDIR)/winsup && \
24175 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24176 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24177 "RANLIB=$${RANLIB}" \
24178 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 24179 clean) \
4fa63067 24180 || exit 1
3866be5d 24181
6bd3dfaa 24182@endif target-winsup
3866be5d 24183
4fa63067
NN
24184.PHONY: maybe-distclean-target-winsup distclean-target-winsup
24185maybe-distclean-target-winsup:
6bd3dfaa
PB
24186@if target-winsup
24187maybe-distclean-target-winsup: distclean-target-winsup
4fa63067
NN
24188
24189distclean-target-winsup:
24190 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
b40e3958
L
24191 r=`${PWD_COMMAND}`; export r; \
24192 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fa63067 24193 $(SET_LIB_PATH) \
378fce5b 24194 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
24195 echo "Doing distclean in $(TARGET_SUBDIR)/winsup" ; \
24196 for flag in $(EXTRA_TARGET_FLAGS); do \
24197 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24198 done; \
24199 (cd $(TARGET_SUBDIR)/winsup && \
24200 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24201 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24202 "RANLIB=$${RANLIB}" \
24203 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 24204 distclean) \
e2b9e2dc
NN
24205 || exit 1
24206
6bd3dfaa 24207@endif target-winsup
3866be5d 24208
4fa63067
NN
24209.PHONY: maybe-maintainer-clean-target-winsup maintainer-clean-target-winsup
24210maybe-maintainer-clean-target-winsup:
6bd3dfaa
PB
24211@if target-winsup
24212maybe-maintainer-clean-target-winsup: maintainer-clean-target-winsup
3866be5d 24213
4fa63067
NN
24214maintainer-clean-target-winsup:
24215 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
24216 r=`${PWD_COMMAND}`; export r; \
b40e3958 24217 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 24218 $(SET_LIB_PATH) \
378fce5b 24219 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
24220 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/winsup" ; \
24221 for flag in $(EXTRA_TARGET_FLAGS); do \
24222 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24223 done; \
24224 (cd $(TARGET_SUBDIR)/winsup && \
24225 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24226 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24227 "RANLIB=$${RANLIB}" \
24228 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 24229 maintainer-clean) \
4fa63067 24230 || exit 1
3866be5d 24231
6bd3dfaa 24232@endif target-winsup
3866be5d 24233
16ae0395 24234
4fa63067
NN
24235.PHONY: configure-target-libgloss maybe-configure-target-libgloss
24236maybe-configure-target-libgloss:
6bd3dfaa
PB
24237@if target-libgloss
24238maybe-configure-target-libgloss: configure-target-libgloss
3866be5d 24239
4fa63067
NN
24240# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
24241$(TARGET_SUBDIR)/libgloss/multilib.out: multilib.out
24242 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss ; \
24243 rm -f $(TARGET_SUBDIR)/libgloss/Makefile || : ; \
24244 cp multilib.out $(TARGET_SUBDIR)/libgloss/multilib.out
3866be5d 24245
4fa63067
NN
24246configure-target-libgloss: $(TARGET_SUBDIR)/libgloss/multilib.out
24247 @test ! -f $(TARGET_SUBDIR)/libgloss/Makefile || exit 0; \
24248 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss ; \
b40e3958
L
24249 r=`${PWD_COMMAND}`; export r; \
24250 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fa63067 24251 $(SET_LIB_PATH) \
378fce5b 24252 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
24253 echo Configuring in $(TARGET_SUBDIR)/libgloss; \
24254 cd "$(TARGET_SUBDIR)/libgloss" || exit 1; \
e2b9e2dc 24255 case $(srcdir) in \
e2b9e2dc 24256 /* | [A-Za-z]:[\\/]*) \
4fa63067 24257 topdir=$(srcdir) ;; \
e2b9e2dc 24258 *) \
4fa63067
NN
24259 case "$(TARGET_SUBDIR)" in \
24260 .) topdir="../$(srcdir)" ;; \
24261 *) topdir="../../$(srcdir)" ;; \
24262 esac ;; \
e2b9e2dc 24263 esac; \
4fa63067
NN
24264 srcdiroption="--srcdir=$${topdir}/libgloss"; \
24265 libsrcdir="$$s/libgloss"; \
24266 rm -f no-such-file || : ; \
24267 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
24268 $(TARGET_CONFIGARGS) $${srcdiroption} \
7ffa0b57 24269 --with-target-subdir="$(TARGET_SUBDIR)" \
e2b9e2dc 24270 || exit 1
6bd3dfaa 24271@endif target-libgloss
e2b9e2dc 24272
4fa63067
NN
24273.PHONY: all-target-libgloss maybe-all-target-libgloss
24274maybe-all-target-libgloss:
6bd3dfaa 24275@if target-libgloss
72b2455a 24276TARGET-target-libgloss=all
6bd3dfaa 24277maybe-all-target-libgloss: all-target-libgloss
4fa63067 24278all-target-libgloss: configure-target-libgloss
b40e3958
L
24279 @r=`${PWD_COMMAND}`; export r; \
24280 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 24281 $(SET_LIB_PATH) \
378fce5b 24282 $(NORMAL_TARGET_EXPORTS) \
4fa63067 24283 (cd $(TARGET_SUBDIR)/libgloss && \
72b2455a 24284 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libgloss))
6bd3dfaa 24285@endif target-libgloss
e393202e 24286
4fa63067
NN
24287.PHONY: check-target-libgloss maybe-check-target-libgloss
24288maybe-check-target-libgloss:
6bd3dfaa
PB
24289@if target-libgloss
24290maybe-check-target-libgloss: check-target-libgloss
e393202e 24291
4fa63067
NN
24292# Dummy target for uncheckable module.
24293check-target-libgloss:
e393202e 24294
6bd3dfaa 24295@endif target-libgloss
e393202e 24296
4fa63067
NN
24297.PHONY: install-target-libgloss maybe-install-target-libgloss
24298maybe-install-target-libgloss:
6bd3dfaa
PB
24299@if target-libgloss
24300maybe-install-target-libgloss: install-target-libgloss
16ae0395 24301
4fa63067 24302install-target-libgloss: installdirs
b40e3958
L
24303 @r=`${PWD_COMMAND}`; export r; \
24304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 24305 $(SET_LIB_PATH) \
378fce5b 24306 $(NORMAL_TARGET_EXPORTS) \
4fa63067 24307 (cd $(TARGET_SUBDIR)/libgloss && \
7ffa0b57 24308 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 24309
6bd3dfaa 24310@endif target-libgloss
3866be5d 24311
4fa63067
NN
24312# Other targets (info, dvi, etc.)
24313
24314.PHONY: maybe-info-target-libgloss info-target-libgloss
24315maybe-info-target-libgloss:
6bd3dfaa
PB
24316@if target-libgloss
24317maybe-info-target-libgloss: info-target-libgloss
4fa63067
NN
24318
24319info-target-libgloss: \
24320 configure-target-libgloss
24321 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
b40e3958
L
24322 r=`${PWD_COMMAND}`; export r; \
24323 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fa63067 24324 $(SET_LIB_PATH) \
378fce5b 24325 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
24326 echo "Doing info in $(TARGET_SUBDIR)/libgloss" ; \
24327 for flag in $(EXTRA_TARGET_FLAGS); do \
24328 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24329 done; \
24330 (cd $(TARGET_SUBDIR)/libgloss && \
24331 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24332 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24333 "RANLIB=$${RANLIB}" \
24334 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 24335 info) \
ce5b542e
MC
24336 || exit 1
24337
6bd3dfaa 24338@endif target-libgloss
ce5b542e 24339
4fa63067
NN
24340.PHONY: maybe-dvi-target-libgloss dvi-target-libgloss
24341maybe-dvi-target-libgloss:
6bd3dfaa
PB
24342@if target-libgloss
24343maybe-dvi-target-libgloss: dvi-target-libgloss
ce5b542e 24344
4fa63067
NN
24345dvi-target-libgloss: \
24346 configure-target-libgloss
24347 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
24348 r=`${PWD_COMMAND}`; export r; \
b40e3958 24349 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ce5b542e 24350 $(SET_LIB_PATH) \
378fce5b 24351 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
24352 echo "Doing dvi in $(TARGET_SUBDIR)/libgloss" ; \
24353 for flag in $(EXTRA_TARGET_FLAGS); do \
24354 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24355 done; \
24356 (cd $(TARGET_SUBDIR)/libgloss && \
24357 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24358 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24359 "RANLIB=$${RANLIB}" \
24360 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 24361 dvi) \
4fa63067 24362 || exit 1
ce5b542e 24363
6bd3dfaa 24364@endif target-libgloss
ce5b542e 24365
4fa63067
NN
24366.PHONY: maybe-TAGS-target-libgloss TAGS-target-libgloss
24367maybe-TAGS-target-libgloss:
6bd3dfaa
PB
24368@if target-libgloss
24369maybe-TAGS-target-libgloss: TAGS-target-libgloss
16ae0395 24370
4fa63067
NN
24371TAGS-target-libgloss: \
24372 configure-target-libgloss
24373 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
24374 r=`${PWD_COMMAND}`; export r; \
b40e3958 24375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ce5b542e 24376 $(SET_LIB_PATH) \
378fce5b 24377 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
24378 echo "Doing TAGS in $(TARGET_SUBDIR)/libgloss" ; \
24379 for flag in $(EXTRA_TARGET_FLAGS); do \
24380 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24381 done; \
24382 (cd $(TARGET_SUBDIR)/libgloss && \
24383 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24384 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24385 "RANLIB=$${RANLIB}" \
24386 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 24387 TAGS) \
4fa63067 24388 || exit 1
ce5b542e 24389
6bd3dfaa 24390@endif target-libgloss
ce5b542e 24391
4fa63067
NN
24392.PHONY: maybe-install-info-target-libgloss install-info-target-libgloss
24393maybe-install-info-target-libgloss:
6bd3dfaa
PB
24394@if target-libgloss
24395maybe-install-info-target-libgloss: install-info-target-libgloss
4fa63067
NN
24396
24397install-info-target-libgloss: \
24398 configure-target-libgloss \
24399 info-target-libgloss
24400 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
b40e3958
L
24401 r=`${PWD_COMMAND}`; export r; \
24402 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fa63067 24403 $(SET_LIB_PATH) \
378fce5b 24404 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
24405 echo "Doing install-info in $(TARGET_SUBDIR)/libgloss" ; \
24406 for flag in $(EXTRA_TARGET_FLAGS); do \
24407 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24408 done; \
24409 (cd $(TARGET_SUBDIR)/libgloss && \
24410 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24411 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24412 "RANLIB=$${RANLIB}" \
24413 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 24414 install-info) \
e2b9e2dc
NN
24415 || exit 1
24416
6bd3dfaa 24417@endif target-libgloss
e393202e 24418
4fa63067
NN
24419.PHONY: maybe-installcheck-target-libgloss installcheck-target-libgloss
24420maybe-installcheck-target-libgloss:
6bd3dfaa
PB
24421@if target-libgloss
24422maybe-installcheck-target-libgloss: installcheck-target-libgloss
e393202e 24423
4fa63067
NN
24424installcheck-target-libgloss: \
24425 configure-target-libgloss
24426 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
24427 r=`${PWD_COMMAND}`; export r; \
24428 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24429 $(SET_LIB_PATH) \
378fce5b 24430 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
24431 echo "Doing installcheck in $(TARGET_SUBDIR)/libgloss" ; \
24432 for flag in $(EXTRA_TARGET_FLAGS); do \
24433 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24434 done; \
24435 (cd $(TARGET_SUBDIR)/libgloss && \
24436 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24437 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24438 "RANLIB=$${RANLIB}" \
24439 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 24440 installcheck) \
4fa63067 24441 || exit 1
3866be5d 24442
6bd3dfaa 24443@endif target-libgloss
3866be5d 24444
4fa63067
NN
24445.PHONY: maybe-mostlyclean-target-libgloss mostlyclean-target-libgloss
24446maybe-mostlyclean-target-libgloss:
6bd3dfaa
PB
24447@if target-libgloss
24448maybe-mostlyclean-target-libgloss: mostlyclean-target-libgloss
16ae0395 24449
4fa63067
NN
24450mostlyclean-target-libgloss:
24451 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
24452 r=`${PWD_COMMAND}`; export r; \
b40e3958 24453 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 24454 $(SET_LIB_PATH) \
378fce5b 24455 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
24456 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgloss" ; \
24457 for flag in $(EXTRA_TARGET_FLAGS); do \
24458 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24459 done; \
24460 (cd $(TARGET_SUBDIR)/libgloss && \
24461 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24462 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24463 "RANLIB=$${RANLIB}" \
24464 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 24465 mostlyclean) \
4fa63067 24466 || exit 1
e393202e 24467
6bd3dfaa 24468@endif target-libgloss
3866be5d 24469
4fa63067
NN
24470.PHONY: maybe-clean-target-libgloss clean-target-libgloss
24471maybe-clean-target-libgloss:
6bd3dfaa
PB
24472@if target-libgloss
24473maybe-clean-target-libgloss: clean-target-libgloss
4fa63067
NN
24474
24475clean-target-libgloss:
24476 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
b40e3958
L
24477 r=`${PWD_COMMAND}`; export r; \
24478 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fa63067 24479 $(SET_LIB_PATH) \
378fce5b 24480 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
24481 echo "Doing clean in $(TARGET_SUBDIR)/libgloss" ; \
24482 for flag in $(EXTRA_TARGET_FLAGS); do \
24483 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24484 done; \
24485 (cd $(TARGET_SUBDIR)/libgloss && \
24486 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24487 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24488 "RANLIB=$${RANLIB}" \
24489 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 24490 clean) \
e2b9e2dc
NN
24491 || exit 1
24492
6bd3dfaa 24493@endif target-libgloss
e393202e 24494
4fa63067
NN
24495.PHONY: maybe-distclean-target-libgloss distclean-target-libgloss
24496maybe-distclean-target-libgloss:
6bd3dfaa
PB
24497@if target-libgloss
24498maybe-distclean-target-libgloss: distclean-target-libgloss
3866be5d 24499
4fa63067
NN
24500distclean-target-libgloss:
24501 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
24502 r=`${PWD_COMMAND}`; export r; \
24503 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24504 $(SET_LIB_PATH) \
378fce5b 24505 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
24506 echo "Doing distclean in $(TARGET_SUBDIR)/libgloss" ; \
24507 for flag in $(EXTRA_TARGET_FLAGS); do \
24508 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24509 done; \
24510 (cd $(TARGET_SUBDIR)/libgloss && \
24511 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24512 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24513 "RANLIB=$${RANLIB}" \
24514 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 24515 distclean) \
4fa63067 24516 || exit 1
3866be5d 24517
6bd3dfaa 24518@endif target-libgloss
3866be5d 24519
4fa63067
NN
24520.PHONY: maybe-maintainer-clean-target-libgloss maintainer-clean-target-libgloss
24521maybe-maintainer-clean-target-libgloss:
6bd3dfaa
PB
24522@if target-libgloss
24523maybe-maintainer-clean-target-libgloss: maintainer-clean-target-libgloss
16ae0395 24524
4fa63067
NN
24525maintainer-clean-target-libgloss:
24526 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
24527 r=`${PWD_COMMAND}`; export r; \
b40e3958 24528 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 24529 $(SET_LIB_PATH) \
378fce5b 24530 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
24531 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgloss" ; \
24532 for flag in $(EXTRA_TARGET_FLAGS); do \
24533 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24534 done; \
24535 (cd $(TARGET_SUBDIR)/libgloss && \
24536 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24537 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24538 "RANLIB=$${RANLIB}" \
24539 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 24540 maintainer-clean) \
4fa63067 24541 || exit 1
3866be5d 24542
6bd3dfaa 24543@endif target-libgloss
3866be5d 24544
e393202e 24545
4fa63067
NN
24546.PHONY: configure-target-libiberty maybe-configure-target-libiberty
24547maybe-configure-target-libiberty:
6bd3dfaa
PB
24548@if target-libiberty
24549maybe-configure-target-libiberty: configure-target-libiberty
15723a45 24550
1086bc09 24551# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
4fa63067
NN
24552$(TARGET_SUBDIR)/libiberty/multilib.out: multilib.out
24553 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libiberty ; \
24554 rm -f $(TARGET_SUBDIR)/libiberty/Makefile || : ; \
24555 cp multilib.out $(TARGET_SUBDIR)/libiberty/multilib.out
15723a45 24556
4fa63067
NN
24557configure-target-libiberty: $(TARGET_SUBDIR)/libiberty/multilib.out
24558 @test ! -f $(TARGET_SUBDIR)/libiberty/Makefile || exit 0; \
24559 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libiberty ; \
b40e3958
L
24560 r=`${PWD_COMMAND}`; export r; \
24561 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 24562 $(SET_LIB_PATH) \
378fce5b 24563 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
24564 echo Configuring in $(TARGET_SUBDIR)/libiberty; \
24565 cd "$(TARGET_SUBDIR)/libiberty" || exit 1; \
bba45b8b
NN
24566 case $(srcdir) in \
24567 /* | [A-Za-z]:[\\/]*) \
24568 topdir=$(srcdir) ;; \
24569 *) \
24570 case "$(TARGET_SUBDIR)" in \
e393202e
NN
24571 .) topdir="../$(srcdir)" ;; \
24572 *) topdir="../../$(srcdir)" ;; \
bba45b8b
NN
24573 esac ;; \
24574 esac; \
4fa63067
NN
24575 srcdiroption="--srcdir=$${topdir}/libiberty"; \
24576 libsrcdir="$$s/libiberty"; \
bba45b8b
NN
24577 rm -f no-such-file || : ; \
24578 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
24579 $(TARGET_CONFIGARGS) $${srcdiroption} \
7ffa0b57 24580 --with-target-subdir="$(TARGET_SUBDIR)" \
bba45b8b 24581 || exit 1
6bd3dfaa 24582@endif target-libiberty
e393202e 24583
4fa63067
NN
24584.PHONY: all-target-libiberty maybe-all-target-libiberty
24585maybe-all-target-libiberty:
6bd3dfaa 24586@if target-libiberty
72b2455a 24587TARGET-target-libiberty=all
6bd3dfaa 24588maybe-all-target-libiberty: all-target-libiberty
4fa63067 24589all-target-libiberty: configure-target-libiberty
b40e3958
L
24590 @r=`${PWD_COMMAND}`; export r; \
24591 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 24592 $(SET_LIB_PATH) \
378fce5b 24593 $(NORMAL_TARGET_EXPORTS) \
4fa63067 24594 (cd $(TARGET_SUBDIR)/libiberty && \
72b2455a 24595 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libiberty))
6bd3dfaa 24596@endif target-libiberty
e393202e 24597
4fa63067
NN
24598.PHONY: check-target-libiberty maybe-check-target-libiberty
24599maybe-check-target-libiberty:
6bd3dfaa
PB
24600@if target-libiberty
24601maybe-check-target-libiberty: check-target-libiberty
16ae0395 24602
4fa63067 24603check-target-libiberty:
b40e3958
L
24604 @r=`${PWD_COMMAND}`; export r; \
24605 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 24606 $(SET_LIB_PATH) \
378fce5b 24607 $(NORMAL_TARGET_EXPORTS) \
4fa63067 24608 (cd $(TARGET_SUBDIR)/libiberty && \
7ffa0b57 24609 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
930314a4 24610
6bd3dfaa 24611@endif target-libiberty
e393202e 24612
4fa63067
NN
24613.PHONY: install-target-libiberty maybe-install-target-libiberty
24614maybe-install-target-libiberty:
6bd3dfaa
PB
24615@if target-libiberty
24616maybe-install-target-libiberty: install-target-libiberty
4fa63067
NN
24617
24618install-target-libiberty: installdirs
24619 @r=`${PWD_COMMAND}`; export r; \
24620 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24621 $(SET_LIB_PATH) \
378fce5b 24622 $(NORMAL_TARGET_EXPORTS) \
4fa63067 24623 (cd $(TARGET_SUBDIR)/libiberty && \
7ffa0b57 24624 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4fa63067 24625
6bd3dfaa 24626@endif target-libiberty
4fa63067
NN
24627
24628# Other targets (info, dvi, etc.)
24629
24630.PHONY: maybe-info-target-libiberty info-target-libiberty
24631maybe-info-target-libiberty:
6bd3dfaa
PB
24632@if target-libiberty
24633maybe-info-target-libiberty: info-target-libiberty
4fa63067
NN
24634
24635info-target-libiberty: \
24636 configure-target-libiberty
24637 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
24638 r=`${PWD_COMMAND}`; export r; \
24639 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24640 $(SET_LIB_PATH) \
378fce5b 24641 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
24642 echo "Doing info in $(TARGET_SUBDIR)/libiberty" ; \
24643 for flag in $(EXTRA_TARGET_FLAGS); do \
24644 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24645 done; \
24646 (cd $(TARGET_SUBDIR)/libiberty && \
24647 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24648 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24649 "RANLIB=$${RANLIB}" \
24650 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 24651 info) \
4fa63067
NN
24652 || exit 1
24653
6bd3dfaa 24654@endif target-libiberty
4fa63067
NN
24655
24656.PHONY: maybe-dvi-target-libiberty dvi-target-libiberty
24657maybe-dvi-target-libiberty:
6bd3dfaa
PB
24658@if target-libiberty
24659maybe-dvi-target-libiberty: dvi-target-libiberty
4fa63067
NN
24660
24661dvi-target-libiberty: \
24662 configure-target-libiberty
24663 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
24664 r=`${PWD_COMMAND}`; export r; \
24665 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24666 $(SET_LIB_PATH) \
378fce5b 24667 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
24668 echo "Doing dvi in $(TARGET_SUBDIR)/libiberty" ; \
24669 for flag in $(EXTRA_TARGET_FLAGS); do \
24670 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24671 done; \
24672 (cd $(TARGET_SUBDIR)/libiberty && \
24673 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24674 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24675 "RANLIB=$${RANLIB}" \
24676 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 24677 dvi) \
4fa63067
NN
24678 || exit 1
24679
6bd3dfaa 24680@endif target-libiberty
4fa63067
NN
24681
24682.PHONY: maybe-TAGS-target-libiberty TAGS-target-libiberty
24683maybe-TAGS-target-libiberty:
6bd3dfaa
PB
24684@if target-libiberty
24685maybe-TAGS-target-libiberty: TAGS-target-libiberty
4fa63067
NN
24686
24687TAGS-target-libiberty: \
24688 configure-target-libiberty
24689 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
24690 r=`${PWD_COMMAND}`; export r; \
24691 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24692 $(SET_LIB_PATH) \
378fce5b 24693 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
24694 echo "Doing TAGS in $(TARGET_SUBDIR)/libiberty" ; \
24695 for flag in $(EXTRA_TARGET_FLAGS); do \
24696 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24697 done; \
24698 (cd $(TARGET_SUBDIR)/libiberty && \
24699 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24700 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24701 "RANLIB=$${RANLIB}" \
24702 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 24703 TAGS) \
4fa63067
NN
24704 || exit 1
24705
6bd3dfaa 24706@endif target-libiberty
4fa63067
NN
24707
24708.PHONY: maybe-install-info-target-libiberty install-info-target-libiberty
24709maybe-install-info-target-libiberty:
6bd3dfaa
PB
24710@if target-libiberty
24711maybe-install-info-target-libiberty: install-info-target-libiberty
4fa63067
NN
24712
24713install-info-target-libiberty: \
24714 configure-target-libiberty \
24715 info-target-libiberty
24716 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
24717 r=`${PWD_COMMAND}`; export r; \
24718 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24719 $(SET_LIB_PATH) \
378fce5b 24720 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
24721 echo "Doing install-info in $(TARGET_SUBDIR)/libiberty" ; \
24722 for flag in $(EXTRA_TARGET_FLAGS); do \
24723 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24724 done; \
24725 (cd $(TARGET_SUBDIR)/libiberty && \
24726 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24727 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24728 "RANLIB=$${RANLIB}" \
24729 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 24730 install-info) \
4fa63067
NN
24731 || exit 1
24732
6bd3dfaa 24733@endif target-libiberty
4fa63067
NN
24734
24735.PHONY: maybe-installcheck-target-libiberty installcheck-target-libiberty
24736maybe-installcheck-target-libiberty:
6bd3dfaa
PB
24737@if target-libiberty
24738maybe-installcheck-target-libiberty: installcheck-target-libiberty
4fa63067
NN
24739
24740installcheck-target-libiberty: \
24741 configure-target-libiberty
24742 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
24743 r=`${PWD_COMMAND}`; export r; \
24744 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24745 $(SET_LIB_PATH) \
378fce5b 24746 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
24747 echo "Doing installcheck in $(TARGET_SUBDIR)/libiberty" ; \
24748 for flag in $(EXTRA_TARGET_FLAGS); do \
24749 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24750 done; \
24751 (cd $(TARGET_SUBDIR)/libiberty && \
24752 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24753 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24754 "RANLIB=$${RANLIB}" \
24755 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 24756 installcheck) \
4fa63067
NN
24757 || exit 1
24758
6bd3dfaa 24759@endif target-libiberty
4fa63067
NN
24760
24761.PHONY: maybe-mostlyclean-target-libiberty mostlyclean-target-libiberty
24762maybe-mostlyclean-target-libiberty:
6bd3dfaa
PB
24763@if target-libiberty
24764maybe-mostlyclean-target-libiberty: mostlyclean-target-libiberty
4fa63067
NN
24765
24766mostlyclean-target-libiberty:
24767 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
24768 r=`${PWD_COMMAND}`; export r; \
24769 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24770 $(SET_LIB_PATH) \
378fce5b 24771 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
24772 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libiberty" ; \
24773 for flag in $(EXTRA_TARGET_FLAGS); do \
24774 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24775 done; \
24776 (cd $(TARGET_SUBDIR)/libiberty && \
24777 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24778 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24779 "RANLIB=$${RANLIB}" \
24780 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 24781 mostlyclean) \
4fa63067
NN
24782 || exit 1
24783
6bd3dfaa 24784@endif target-libiberty
4fa63067
NN
24785
24786.PHONY: maybe-clean-target-libiberty clean-target-libiberty
24787maybe-clean-target-libiberty:
6bd3dfaa
PB
24788@if target-libiberty
24789maybe-clean-target-libiberty: clean-target-libiberty
4fa63067
NN
24790
24791clean-target-libiberty:
24792 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
24793 r=`${PWD_COMMAND}`; export r; \
24794 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24795 $(SET_LIB_PATH) \
378fce5b 24796 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
24797 echo "Doing clean in $(TARGET_SUBDIR)/libiberty" ; \
24798 for flag in $(EXTRA_TARGET_FLAGS); do \
24799 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24800 done; \
24801 (cd $(TARGET_SUBDIR)/libiberty && \
24802 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24803 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24804 "RANLIB=$${RANLIB}" \
24805 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 24806 clean) \
4fa63067
NN
24807 || exit 1
24808
6bd3dfaa 24809@endif target-libiberty
4fa63067
NN
24810
24811.PHONY: maybe-distclean-target-libiberty distclean-target-libiberty
24812maybe-distclean-target-libiberty:
6bd3dfaa
PB
24813@if target-libiberty
24814maybe-distclean-target-libiberty: distclean-target-libiberty
4fa63067
NN
24815
24816distclean-target-libiberty:
24817 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
24818 r=`${PWD_COMMAND}`; export r; \
24819 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24820 $(SET_LIB_PATH) \
378fce5b 24821 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
24822 echo "Doing distclean in $(TARGET_SUBDIR)/libiberty" ; \
24823 for flag in $(EXTRA_TARGET_FLAGS); do \
24824 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24825 done; \
24826 (cd $(TARGET_SUBDIR)/libiberty && \
24827 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24828 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24829 "RANLIB=$${RANLIB}" \
24830 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 24831 distclean) \
4fa63067
NN
24832 || exit 1
24833
6bd3dfaa 24834@endif target-libiberty
4fa63067
NN
24835
24836.PHONY: maybe-maintainer-clean-target-libiberty maintainer-clean-target-libiberty
24837maybe-maintainer-clean-target-libiberty:
6bd3dfaa
PB
24838@if target-libiberty
24839maybe-maintainer-clean-target-libiberty: maintainer-clean-target-libiberty
4fa63067
NN
24840
24841maintainer-clean-target-libiberty:
24842 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
24843 r=`${PWD_COMMAND}`; export r; \
24844 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24845 $(SET_LIB_PATH) \
378fce5b 24846 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
24847 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libiberty" ; \
24848 for flag in $(EXTRA_TARGET_FLAGS); do \
24849 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24850 done; \
24851 (cd $(TARGET_SUBDIR)/libiberty && \
24852 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24853 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24854 "RANLIB=$${RANLIB}" \
24855 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 24856 maintainer-clean) \
4fa63067 24857 || exit 1
16ae0395 24858
6bd3dfaa 24859@endif target-libiberty
e393202e
NN
24860
24861
4fa63067
NN
24862.PHONY: configure-target-gperf maybe-configure-target-gperf
24863maybe-configure-target-gperf:
6bd3dfaa
PB
24864@if target-gperf
24865maybe-configure-target-gperf: configure-target-gperf
15723a45 24866
1086bc09 24867# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
4fa63067
NN
24868$(TARGET_SUBDIR)/gperf/multilib.out: multilib.out
24869 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/gperf ; \
24870 rm -f $(TARGET_SUBDIR)/gperf/Makefile || : ; \
24871 cp multilib.out $(TARGET_SUBDIR)/gperf/multilib.out
15723a45 24872
4fa63067
NN
24873configure-target-gperf: $(TARGET_SUBDIR)/gperf/multilib.out
24874 @test ! -f $(TARGET_SUBDIR)/gperf/Makefile || exit 0; \
24875 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/gperf ; \
b40e3958
L
24876 r=`${PWD_COMMAND}`; export r; \
24877 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 24878 $(SET_LIB_PATH) \
378fce5b 24879 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
24880 echo Configuring in $(TARGET_SUBDIR)/gperf; \
24881 cd "$(TARGET_SUBDIR)/gperf" || exit 1; \
bba45b8b
NN
24882 case $(srcdir) in \
24883 /* | [A-Za-z]:[\\/]*) \
24884 topdir=$(srcdir) ;; \
24885 *) \
24886 case "$(TARGET_SUBDIR)" in \
24887 .) topdir="../$(srcdir)" ;; \
24888 *) topdir="../../$(srcdir)" ;; \
24889 esac ;; \
24890 esac; \
4fa63067
NN
24891 srcdiroption="--srcdir=$${topdir}/gperf"; \
24892 libsrcdir="$$s/gperf"; \
bba45b8b
NN
24893 rm -f no-such-file || : ; \
24894 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
24895 $(TARGET_CONFIGARGS) $${srcdiroption} \
7ffa0b57 24896 --with-target-subdir="$(TARGET_SUBDIR)" \
bba45b8b 24897 || exit 1
6bd3dfaa 24898@endif target-gperf
e393202e 24899
4fa63067
NN
24900.PHONY: all-target-gperf maybe-all-target-gperf
24901maybe-all-target-gperf:
6bd3dfaa 24902@if target-gperf
72b2455a 24903TARGET-target-gperf=all
6bd3dfaa 24904maybe-all-target-gperf: all-target-gperf
4fa63067 24905all-target-gperf: configure-target-gperf
b40e3958
L
24906 @r=`${PWD_COMMAND}`; export r; \
24907 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 24908 $(SET_LIB_PATH) \
378fce5b 24909 $(NORMAL_TARGET_EXPORTS) \
4fa63067 24910 (cd $(TARGET_SUBDIR)/gperf && \
72b2455a 24911 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-gperf))
6bd3dfaa 24912@endif target-gperf
e393202e 24913
4fa63067
NN
24914.PHONY: check-target-gperf maybe-check-target-gperf
24915maybe-check-target-gperf:
6bd3dfaa
PB
24916@if target-gperf
24917maybe-check-target-gperf: check-target-gperf
16ae0395 24918
4fa63067 24919check-target-gperf:
b40e3958
L
24920 @r=`${PWD_COMMAND}`; export r; \
24921 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 24922 $(SET_LIB_PATH) \
378fce5b 24923 $(NORMAL_TARGET_EXPORTS) \
4fa63067 24924 (cd $(TARGET_SUBDIR)/gperf && \
7ffa0b57 24925 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
930314a4 24926
6bd3dfaa 24927@endif target-gperf
e393202e 24928
4fa63067
NN
24929.PHONY: install-target-gperf maybe-install-target-gperf
24930maybe-install-target-gperf:
6bd3dfaa
PB
24931@if target-gperf
24932maybe-install-target-gperf: install-target-gperf
4fa63067
NN
24933
24934install-target-gperf: installdirs
24935 @r=`${PWD_COMMAND}`; export r; \
24936 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24937 $(SET_LIB_PATH) \
378fce5b 24938 $(NORMAL_TARGET_EXPORTS) \
4fa63067 24939 (cd $(TARGET_SUBDIR)/gperf && \
7ffa0b57 24940 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4fa63067 24941
6bd3dfaa 24942@endif target-gperf
4fa63067
NN
24943
24944# Other targets (info, dvi, etc.)
24945
24946.PHONY: maybe-info-target-gperf info-target-gperf
24947maybe-info-target-gperf:
6bd3dfaa
PB
24948@if target-gperf
24949maybe-info-target-gperf: info-target-gperf
4fa63067
NN
24950
24951info-target-gperf: \
24952 configure-target-gperf
24953 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
24954 r=`${PWD_COMMAND}`; export r; \
24955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24956 $(SET_LIB_PATH) \
378fce5b 24957 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
24958 echo "Doing info in $(TARGET_SUBDIR)/gperf" ; \
24959 for flag in $(EXTRA_TARGET_FLAGS); do \
24960 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24961 done; \
24962 (cd $(TARGET_SUBDIR)/gperf && \
24963 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24964 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24965 "RANLIB=$${RANLIB}" \
24966 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 24967 info) \
4fa63067
NN
24968 || exit 1
24969
6bd3dfaa 24970@endif target-gperf
4fa63067
NN
24971
24972.PHONY: maybe-dvi-target-gperf dvi-target-gperf
24973maybe-dvi-target-gperf:
6bd3dfaa
PB
24974@if target-gperf
24975maybe-dvi-target-gperf: dvi-target-gperf
4fa63067
NN
24976
24977dvi-target-gperf: \
24978 configure-target-gperf
24979 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
24980 r=`${PWD_COMMAND}`; export r; \
24981 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24982 $(SET_LIB_PATH) \
378fce5b 24983 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
24984 echo "Doing dvi in $(TARGET_SUBDIR)/gperf" ; \
24985 for flag in $(EXTRA_TARGET_FLAGS); do \
24986 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24987 done; \
24988 (cd $(TARGET_SUBDIR)/gperf && \
24989 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24990 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24991 "RANLIB=$${RANLIB}" \
24992 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 24993 dvi) \
4fa63067
NN
24994 || exit 1
24995
6bd3dfaa 24996@endif target-gperf
4fa63067
NN
24997
24998.PHONY: maybe-TAGS-target-gperf TAGS-target-gperf
24999maybe-TAGS-target-gperf:
6bd3dfaa
PB
25000@if target-gperf
25001maybe-TAGS-target-gperf: TAGS-target-gperf
4fa63067
NN
25002
25003TAGS-target-gperf: \
25004 configure-target-gperf
25005 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
25006 r=`${PWD_COMMAND}`; export r; \
25007 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25008 $(SET_LIB_PATH) \
378fce5b 25009 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
25010 echo "Doing TAGS in $(TARGET_SUBDIR)/gperf" ; \
25011 for flag in $(EXTRA_TARGET_FLAGS); do \
25012 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25013 done; \
25014 (cd $(TARGET_SUBDIR)/gperf && \
25015 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25016 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25017 "RANLIB=$${RANLIB}" \
25018 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 25019 TAGS) \
4fa63067
NN
25020 || exit 1
25021
6bd3dfaa 25022@endif target-gperf
4fa63067
NN
25023
25024.PHONY: maybe-install-info-target-gperf install-info-target-gperf
25025maybe-install-info-target-gperf:
6bd3dfaa
PB
25026@if target-gperf
25027maybe-install-info-target-gperf: install-info-target-gperf
4fa63067
NN
25028
25029install-info-target-gperf: \
25030 configure-target-gperf \
25031 info-target-gperf
25032 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
25033 r=`${PWD_COMMAND}`; export r; \
25034 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25035 $(SET_LIB_PATH) \
378fce5b 25036 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
25037 echo "Doing install-info in $(TARGET_SUBDIR)/gperf" ; \
25038 for flag in $(EXTRA_TARGET_FLAGS); do \
25039 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25040 done; \
25041 (cd $(TARGET_SUBDIR)/gperf && \
25042 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25043 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25044 "RANLIB=$${RANLIB}" \
25045 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 25046 install-info) \
4fa63067
NN
25047 || exit 1
25048
6bd3dfaa 25049@endif target-gperf
4fa63067
NN
25050
25051.PHONY: maybe-installcheck-target-gperf installcheck-target-gperf
25052maybe-installcheck-target-gperf:
6bd3dfaa
PB
25053@if target-gperf
25054maybe-installcheck-target-gperf: installcheck-target-gperf
4fa63067
NN
25055
25056installcheck-target-gperf: \
25057 configure-target-gperf
25058 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
25059 r=`${PWD_COMMAND}`; export r; \
25060 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25061 $(SET_LIB_PATH) \
378fce5b 25062 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
25063 echo "Doing installcheck in $(TARGET_SUBDIR)/gperf" ; \
25064 for flag in $(EXTRA_TARGET_FLAGS); do \
25065 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25066 done; \
25067 (cd $(TARGET_SUBDIR)/gperf && \
25068 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25069 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25070 "RANLIB=$${RANLIB}" \
25071 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 25072 installcheck) \
4fa63067
NN
25073 || exit 1
25074
6bd3dfaa 25075@endif target-gperf
4fa63067
NN
25076
25077.PHONY: maybe-mostlyclean-target-gperf mostlyclean-target-gperf
25078maybe-mostlyclean-target-gperf:
6bd3dfaa
PB
25079@if target-gperf
25080maybe-mostlyclean-target-gperf: mostlyclean-target-gperf
4fa63067
NN
25081
25082mostlyclean-target-gperf:
25083 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
25084 r=`${PWD_COMMAND}`; export r; \
25085 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25086 $(SET_LIB_PATH) \
378fce5b 25087 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
25088 echo "Doing mostlyclean in $(TARGET_SUBDIR)/gperf" ; \
25089 for flag in $(EXTRA_TARGET_FLAGS); do \
25090 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25091 done; \
25092 (cd $(TARGET_SUBDIR)/gperf && \
25093 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25094 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25095 "RANLIB=$${RANLIB}" \
25096 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 25097 mostlyclean) \
4fa63067
NN
25098 || exit 1
25099
6bd3dfaa 25100@endif target-gperf
4fa63067
NN
25101
25102.PHONY: maybe-clean-target-gperf clean-target-gperf
25103maybe-clean-target-gperf:
6bd3dfaa
PB
25104@if target-gperf
25105maybe-clean-target-gperf: clean-target-gperf
4fa63067
NN
25106
25107clean-target-gperf:
25108 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
25109 r=`${PWD_COMMAND}`; export r; \
25110 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25111 $(SET_LIB_PATH) \
378fce5b 25112 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
25113 echo "Doing clean in $(TARGET_SUBDIR)/gperf" ; \
25114 for flag in $(EXTRA_TARGET_FLAGS); do \
25115 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25116 done; \
25117 (cd $(TARGET_SUBDIR)/gperf && \
25118 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25119 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25120 "RANLIB=$${RANLIB}" \
25121 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 25122 clean) \
4fa63067
NN
25123 || exit 1
25124
6bd3dfaa 25125@endif target-gperf
4fa63067
NN
25126
25127.PHONY: maybe-distclean-target-gperf distclean-target-gperf
25128maybe-distclean-target-gperf:
6bd3dfaa
PB
25129@if target-gperf
25130maybe-distclean-target-gperf: distclean-target-gperf
4fa63067
NN
25131
25132distclean-target-gperf:
25133 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
25134 r=`${PWD_COMMAND}`; export r; \
25135 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25136 $(SET_LIB_PATH) \
378fce5b 25137 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
25138 echo "Doing distclean in $(TARGET_SUBDIR)/gperf" ; \
25139 for flag in $(EXTRA_TARGET_FLAGS); do \
25140 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25141 done; \
25142 (cd $(TARGET_SUBDIR)/gperf && \
25143 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25144 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25145 "RANLIB=$${RANLIB}" \
25146 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 25147 distclean) \
4fa63067
NN
25148 || exit 1
25149
6bd3dfaa 25150@endif target-gperf
4fa63067
NN
25151
25152.PHONY: maybe-maintainer-clean-target-gperf maintainer-clean-target-gperf
25153maybe-maintainer-clean-target-gperf:
6bd3dfaa
PB
25154@if target-gperf
25155maybe-maintainer-clean-target-gperf: maintainer-clean-target-gperf
4fa63067
NN
25156
25157maintainer-clean-target-gperf:
25158 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
25159 r=`${PWD_COMMAND}`; export r; \
25160 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25161 $(SET_LIB_PATH) \
378fce5b 25162 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
25163 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/gperf" ; \
25164 for flag in $(EXTRA_TARGET_FLAGS); do \
25165 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25166 done; \
25167 (cd $(TARGET_SUBDIR)/gperf && \
25168 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25169 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25170 "RANLIB=$${RANLIB}" \
25171 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 25172 maintainer-clean) \
4fa63067 25173 || exit 1
16ae0395 25174
6bd3dfaa 25175@endif target-gperf
e393202e
NN
25176
25177
4fa63067
NN
25178.PHONY: configure-target-examples maybe-configure-target-examples
25179maybe-configure-target-examples:
6bd3dfaa
PB
25180@if target-examples
25181maybe-configure-target-examples: configure-target-examples
15723a45 25182
1086bc09 25183# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
4fa63067
NN
25184$(TARGET_SUBDIR)/examples/multilib.out: multilib.out
25185 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/examples ; \
25186 rm -f $(TARGET_SUBDIR)/examples/Makefile || : ; \
25187 cp multilib.out $(TARGET_SUBDIR)/examples/multilib.out
15723a45 25188
4fa63067
NN
25189configure-target-examples: $(TARGET_SUBDIR)/examples/multilib.out
25190 @test ! -f $(TARGET_SUBDIR)/examples/Makefile || exit 0; \
25191 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/examples ; \
b40e3958
L
25192 r=`${PWD_COMMAND}`; export r; \
25193 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 25194 $(SET_LIB_PATH) \
378fce5b 25195 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
25196 echo Configuring in $(TARGET_SUBDIR)/examples; \
25197 cd "$(TARGET_SUBDIR)/examples" || exit 1; \
bba45b8b
NN
25198 case $(srcdir) in \
25199 /* | [A-Za-z]:[\\/]*) \
25200 topdir=$(srcdir) ;; \
25201 *) \
25202 case "$(TARGET_SUBDIR)" in \
e393202e
NN
25203 .) topdir="../$(srcdir)" ;; \
25204 *) topdir="../../$(srcdir)" ;; \
bba45b8b
NN
25205 esac ;; \
25206 esac; \
4fa63067
NN
25207 srcdiroption="--srcdir=$${topdir}/examples"; \
25208 libsrcdir="$$s/examples"; \
bba45b8b
NN
25209 rm -f no-such-file || : ; \
25210 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25211 $(TARGET_CONFIGARGS) $${srcdiroption} \
7ffa0b57 25212 --with-target-subdir="$(TARGET_SUBDIR)" \
bba45b8b 25213 || exit 1
6bd3dfaa 25214@endif target-examples
e393202e 25215
4fa63067
NN
25216.PHONY: all-target-examples maybe-all-target-examples
25217maybe-all-target-examples:
6bd3dfaa 25218@if target-examples
72b2455a 25219TARGET-target-examples=all
6bd3dfaa 25220maybe-all-target-examples: all-target-examples
4fa63067 25221all-target-examples: configure-target-examples
b40e3958
L
25222 @r=`${PWD_COMMAND}`; export r; \
25223 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 25224 $(SET_LIB_PATH) \
378fce5b 25225 $(NORMAL_TARGET_EXPORTS) \
4fa63067 25226 (cd $(TARGET_SUBDIR)/examples && \
72b2455a 25227 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-examples))
6bd3dfaa 25228@endif target-examples
e393202e 25229
4fa63067
NN
25230.PHONY: check-target-examples maybe-check-target-examples
25231maybe-check-target-examples:
6bd3dfaa
PB
25232@if target-examples
25233maybe-check-target-examples: check-target-examples
16ae0395 25234
4fa63067
NN
25235# Dummy target for uncheckable module.
25236check-target-examples:
25237
6bd3dfaa 25238@endif target-examples
4fa63067
NN
25239
25240.PHONY: install-target-examples maybe-install-target-examples
25241maybe-install-target-examples:
6bd3dfaa
PB
25242@if target-examples
25243maybe-install-target-examples: install-target-examples
4fa63067
NN
25244
25245# Dummy target for uninstallable.
25246install-target-examples:
25247
6bd3dfaa 25248@endif target-examples
4fa63067
NN
25249
25250# Other targets (info, dvi, etc.)
25251
25252.PHONY: maybe-info-target-examples info-target-examples
25253maybe-info-target-examples:
6bd3dfaa
PB
25254@if target-examples
25255maybe-info-target-examples: info-target-examples
4fa63067
NN
25256
25257info-target-examples: \
25258 configure-target-examples
25259 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
25260 r=`${PWD_COMMAND}`; export r; \
b40e3958 25261 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 25262 $(SET_LIB_PATH) \
378fce5b 25263 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
25264 echo "Doing info in $(TARGET_SUBDIR)/examples" ; \
25265 for flag in $(EXTRA_TARGET_FLAGS); do \
25266 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25267 done; \
25268 (cd $(TARGET_SUBDIR)/examples && \
25269 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25270 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25271 "RANLIB=$${RANLIB}" \
25272 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 25273 info) \
4fa63067 25274 || exit 1
930314a4 25275
6bd3dfaa 25276@endif target-examples
e393202e 25277
4fa63067
NN
25278.PHONY: maybe-dvi-target-examples dvi-target-examples
25279maybe-dvi-target-examples:
6bd3dfaa
PB
25280@if target-examples
25281maybe-dvi-target-examples: dvi-target-examples
16ae0395 25282
4fa63067
NN
25283dvi-target-examples: \
25284 configure-target-examples
25285 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
25286 r=`${PWD_COMMAND}`; export r; \
b40e3958 25287 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 25288 $(SET_LIB_PATH) \
378fce5b 25289 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
25290 echo "Doing dvi in $(TARGET_SUBDIR)/examples" ; \
25291 for flag in $(EXTRA_TARGET_FLAGS); do \
25292 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25293 done; \
25294 (cd $(TARGET_SUBDIR)/examples && \
25295 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25296 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25297 "RANLIB=$${RANLIB}" \
25298 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 25299 dvi) \
4fa63067
NN
25300 || exit 1
25301
6bd3dfaa 25302@endif target-examples
4fa63067
NN
25303
25304.PHONY: maybe-TAGS-target-examples TAGS-target-examples
25305maybe-TAGS-target-examples:
6bd3dfaa
PB
25306@if target-examples
25307maybe-TAGS-target-examples: TAGS-target-examples
4fa63067
NN
25308
25309TAGS-target-examples: \
25310 configure-target-examples
25311 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
25312 r=`${PWD_COMMAND}`; export r; \
25313 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25314 $(SET_LIB_PATH) \
378fce5b 25315 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
25316 echo "Doing TAGS in $(TARGET_SUBDIR)/examples" ; \
25317 for flag in $(EXTRA_TARGET_FLAGS); do \
25318 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25319 done; \
25320 (cd $(TARGET_SUBDIR)/examples && \
25321 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25322 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25323 "RANLIB=$${RANLIB}" \
25324 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 25325 TAGS) \
4fa63067
NN
25326 || exit 1
25327
6bd3dfaa 25328@endif target-examples
4fa63067
NN
25329
25330.PHONY: maybe-install-info-target-examples install-info-target-examples
25331maybe-install-info-target-examples:
6bd3dfaa
PB
25332@if target-examples
25333maybe-install-info-target-examples: install-info-target-examples
4fa63067
NN
25334
25335install-info-target-examples: \
25336 configure-target-examples \
25337 info-target-examples
25338 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
25339 r=`${PWD_COMMAND}`; export r; \
25340 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25341 $(SET_LIB_PATH) \
378fce5b 25342 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
25343 echo "Doing install-info in $(TARGET_SUBDIR)/examples" ; \
25344 for flag in $(EXTRA_TARGET_FLAGS); do \
25345 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25346 done; \
25347 (cd $(TARGET_SUBDIR)/examples && \
25348 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25349 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25350 "RANLIB=$${RANLIB}" \
25351 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 25352 install-info) \
4fa63067
NN
25353 || exit 1
25354
6bd3dfaa 25355@endif target-examples
4fa63067
NN
25356
25357.PHONY: maybe-installcheck-target-examples installcheck-target-examples
25358maybe-installcheck-target-examples:
6bd3dfaa
PB
25359@if target-examples
25360maybe-installcheck-target-examples: installcheck-target-examples
4fa63067
NN
25361
25362installcheck-target-examples: \
25363 configure-target-examples
25364 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
25365 r=`${PWD_COMMAND}`; export r; \
25366 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25367 $(SET_LIB_PATH) \
378fce5b 25368 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
25369 echo "Doing installcheck in $(TARGET_SUBDIR)/examples" ; \
25370 for flag in $(EXTRA_TARGET_FLAGS); do \
25371 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25372 done; \
25373 (cd $(TARGET_SUBDIR)/examples && \
25374 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25375 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25376 "RANLIB=$${RANLIB}" \
25377 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 25378 installcheck) \
4fa63067
NN
25379 || exit 1
25380
6bd3dfaa 25381@endif target-examples
4fa63067
NN
25382
25383.PHONY: maybe-mostlyclean-target-examples mostlyclean-target-examples
25384maybe-mostlyclean-target-examples:
6bd3dfaa
PB
25385@if target-examples
25386maybe-mostlyclean-target-examples: mostlyclean-target-examples
4fa63067
NN
25387
25388mostlyclean-target-examples:
25389 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
25390 r=`${PWD_COMMAND}`; export r; \
25391 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25392 $(SET_LIB_PATH) \
378fce5b 25393 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
25394 echo "Doing mostlyclean in $(TARGET_SUBDIR)/examples" ; \
25395 for flag in $(EXTRA_TARGET_FLAGS); do \
25396 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25397 done; \
25398 (cd $(TARGET_SUBDIR)/examples && \
25399 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25400 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25401 "RANLIB=$${RANLIB}" \
25402 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 25403 mostlyclean) \
4fa63067
NN
25404 || exit 1
25405
6bd3dfaa 25406@endif target-examples
4fa63067
NN
25407
25408.PHONY: maybe-clean-target-examples clean-target-examples
25409maybe-clean-target-examples:
6bd3dfaa
PB
25410@if target-examples
25411maybe-clean-target-examples: clean-target-examples
4fa63067
NN
25412
25413clean-target-examples:
25414 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
25415 r=`${PWD_COMMAND}`; export r; \
25416 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25417 $(SET_LIB_PATH) \
378fce5b 25418 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
25419 echo "Doing clean in $(TARGET_SUBDIR)/examples" ; \
25420 for flag in $(EXTRA_TARGET_FLAGS); do \
25421 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25422 done; \
25423 (cd $(TARGET_SUBDIR)/examples && \
25424 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25425 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25426 "RANLIB=$${RANLIB}" \
25427 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 25428 clean) \
4fa63067
NN
25429 || exit 1
25430
6bd3dfaa 25431@endif target-examples
4fa63067
NN
25432
25433.PHONY: maybe-distclean-target-examples distclean-target-examples
25434maybe-distclean-target-examples:
6bd3dfaa
PB
25435@if target-examples
25436maybe-distclean-target-examples: distclean-target-examples
4fa63067
NN
25437
25438distclean-target-examples:
25439 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
25440 r=`${PWD_COMMAND}`; export r; \
25441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25442 $(SET_LIB_PATH) \
378fce5b 25443 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
25444 echo "Doing distclean in $(TARGET_SUBDIR)/examples" ; \
25445 for flag in $(EXTRA_TARGET_FLAGS); do \
25446 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25447 done; \
25448 (cd $(TARGET_SUBDIR)/examples && \
25449 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25450 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25451 "RANLIB=$${RANLIB}" \
25452 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 25453 distclean) \
4fa63067
NN
25454 || exit 1
25455
6bd3dfaa 25456@endif target-examples
4fa63067
NN
25457
25458.PHONY: maybe-maintainer-clean-target-examples maintainer-clean-target-examples
25459maybe-maintainer-clean-target-examples:
6bd3dfaa
PB
25460@if target-examples
25461maybe-maintainer-clean-target-examples: maintainer-clean-target-examples
4fa63067
NN
25462
25463maintainer-clean-target-examples:
25464 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
25465 r=`${PWD_COMMAND}`; export r; \
25466 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25467 $(SET_LIB_PATH) \
378fce5b 25468 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
25469 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/examples" ; \
25470 for flag in $(EXTRA_TARGET_FLAGS); do \
25471 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25472 done; \
25473 (cd $(TARGET_SUBDIR)/examples && \
25474 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25475 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25476 "RANLIB=$${RANLIB}" \
25477 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 25478 maintainer-clean) \
4fa63067
NN
25479 || exit 1
25480
6bd3dfaa 25481@endif target-examples
e393202e
NN
25482
25483
4fa63067
NN
25484.PHONY: configure-target-libffi maybe-configure-target-libffi
25485maybe-configure-target-libffi:
6bd3dfaa
PB
25486@if target-libffi
25487maybe-configure-target-libffi: configure-target-libffi
15723a45 25488
1086bc09 25489# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
4fa63067
NN
25490$(TARGET_SUBDIR)/libffi/multilib.out: multilib.out
25491 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi ; \
25492 rm -f $(TARGET_SUBDIR)/libffi/Makefile || : ; \
25493 cp multilib.out $(TARGET_SUBDIR)/libffi/multilib.out
15723a45 25494
4fa63067
NN
25495configure-target-libffi: $(TARGET_SUBDIR)/libffi/multilib.out
25496 @test ! -f $(TARGET_SUBDIR)/libffi/Makefile || exit 0; \
25497 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi ; \
b40e3958
L
25498 r=`${PWD_COMMAND}`; export r; \
25499 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 25500 $(SET_LIB_PATH) \
378fce5b 25501 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
25502 echo Configuring in $(TARGET_SUBDIR)/libffi; \
25503 cd "$(TARGET_SUBDIR)/libffi" || exit 1; \
bba45b8b
NN
25504 case $(srcdir) in \
25505 /* | [A-Za-z]:[\\/]*) \
25506 topdir=$(srcdir) ;; \
25507 *) \
25508 case "$(TARGET_SUBDIR)" in \
e393202e
NN
25509 .) topdir="../$(srcdir)" ;; \
25510 *) topdir="../../$(srcdir)" ;; \
bba45b8b
NN
25511 esac ;; \
25512 esac; \
4fa63067
NN
25513 srcdiroption="--srcdir=$${topdir}/libffi"; \
25514 libsrcdir="$$s/libffi"; \
bba45b8b
NN
25515 rm -f no-such-file || : ; \
25516 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25517 $(TARGET_CONFIGARGS) $${srcdiroption} \
7ffa0b57 25518 --with-target-subdir="$(TARGET_SUBDIR)" \
bba45b8b 25519 || exit 1
6bd3dfaa 25520@endif target-libffi
e393202e 25521
4fa63067
NN
25522.PHONY: all-target-libffi maybe-all-target-libffi
25523maybe-all-target-libffi:
6bd3dfaa 25524@if target-libffi
72b2455a 25525TARGET-target-libffi=all
6bd3dfaa 25526maybe-all-target-libffi: all-target-libffi
4fa63067 25527all-target-libffi: configure-target-libffi
b40e3958
L
25528 @r=`${PWD_COMMAND}`; export r; \
25529 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 25530 $(SET_LIB_PATH) \
378fce5b 25531 $(NORMAL_TARGET_EXPORTS) \
4fa63067 25532 (cd $(TARGET_SUBDIR)/libffi && \
72b2455a 25533 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libffi))
6bd3dfaa 25534@endif target-libffi
e393202e 25535
4fa63067
NN
25536.PHONY: check-target-libffi maybe-check-target-libffi
25537maybe-check-target-libffi:
6bd3dfaa
PB
25538@if target-libffi
25539maybe-check-target-libffi: check-target-libffi
16ae0395 25540
4fa63067 25541check-target-libffi:
b40e3958
L
25542 @r=`${PWD_COMMAND}`; export r; \
25543 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 25544 $(SET_LIB_PATH) \
378fce5b 25545 $(NORMAL_TARGET_EXPORTS) \
4fa63067 25546 (cd $(TARGET_SUBDIR)/libffi && \
7ffa0b57 25547 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
930314a4 25548
6bd3dfaa 25549@endif target-libffi
e393202e 25550
4fa63067
NN
25551.PHONY: install-target-libffi maybe-install-target-libffi
25552maybe-install-target-libffi:
6bd3dfaa
PB
25553@if target-libffi
25554maybe-install-target-libffi: install-target-libffi
16ae0395 25555
4fa63067 25556install-target-libffi: installdirs
b40e3958
L
25557 @r=`${PWD_COMMAND}`; export r; \
25558 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 25559 $(SET_LIB_PATH) \
378fce5b 25560 $(NORMAL_TARGET_EXPORTS) \
4fa63067 25561 (cd $(TARGET_SUBDIR)/libffi && \
7ffa0b57 25562 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 25563
6bd3dfaa 25564@endif target-libffi
e393202e 25565
4fa63067
NN
25566# Other targets (info, dvi, etc.)
25567
25568.PHONY: maybe-info-target-libffi info-target-libffi
25569maybe-info-target-libffi:
6bd3dfaa
PB
25570@if target-libffi
25571maybe-info-target-libffi: info-target-libffi
4fa63067
NN
25572
25573info-target-libffi: \
25574 configure-target-libffi
25575 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
25576 r=`${PWD_COMMAND}`; export r; \
25577 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25578 $(SET_LIB_PATH) \
378fce5b 25579 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
25580 echo "Doing info in $(TARGET_SUBDIR)/libffi" ; \
25581 for flag in $(EXTRA_TARGET_FLAGS); do \
25582 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25583 done; \
25584 (cd $(TARGET_SUBDIR)/libffi && \
25585 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25586 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25587 "RANLIB=$${RANLIB}" \
25588 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 25589 info) \
4fa63067
NN
25590 || exit 1
25591
6bd3dfaa 25592@endif target-libffi
4fa63067
NN
25593
25594.PHONY: maybe-dvi-target-libffi dvi-target-libffi
25595maybe-dvi-target-libffi:
6bd3dfaa
PB
25596@if target-libffi
25597maybe-dvi-target-libffi: dvi-target-libffi
4fa63067
NN
25598
25599dvi-target-libffi: \
25600 configure-target-libffi
25601 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
25602 r=`${PWD_COMMAND}`; export r; \
25603 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25604 $(SET_LIB_PATH) \
378fce5b 25605 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
25606 echo "Doing dvi in $(TARGET_SUBDIR)/libffi" ; \
25607 for flag in $(EXTRA_TARGET_FLAGS); do \
25608 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25609 done; \
25610 (cd $(TARGET_SUBDIR)/libffi && \
25611 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25612 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25613 "RANLIB=$${RANLIB}" \
25614 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 25615 dvi) \
4fa63067
NN
25616 || exit 1
25617
6bd3dfaa 25618@endif target-libffi
4fa63067
NN
25619
25620.PHONY: maybe-TAGS-target-libffi TAGS-target-libffi
25621maybe-TAGS-target-libffi:
6bd3dfaa
PB
25622@if target-libffi
25623maybe-TAGS-target-libffi: TAGS-target-libffi
4fa63067
NN
25624
25625TAGS-target-libffi: \
25626 configure-target-libffi
25627 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
25628 r=`${PWD_COMMAND}`; export r; \
25629 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25630 $(SET_LIB_PATH) \
378fce5b 25631 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
25632 echo "Doing TAGS in $(TARGET_SUBDIR)/libffi" ; \
25633 for flag in $(EXTRA_TARGET_FLAGS); do \
25634 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25635 done; \
25636 (cd $(TARGET_SUBDIR)/libffi && \
25637 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25638 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25639 "RANLIB=$${RANLIB}" \
25640 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 25641 TAGS) \
4fa63067
NN
25642 || exit 1
25643
6bd3dfaa 25644@endif target-libffi
4fa63067
NN
25645
25646.PHONY: maybe-install-info-target-libffi install-info-target-libffi
25647maybe-install-info-target-libffi:
6bd3dfaa
PB
25648@if target-libffi
25649maybe-install-info-target-libffi: install-info-target-libffi
4fa63067
NN
25650
25651install-info-target-libffi: \
25652 configure-target-libffi \
25653 info-target-libffi
25654 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
25655 r=`${PWD_COMMAND}`; export r; \
25656 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25657 $(SET_LIB_PATH) \
378fce5b 25658 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
25659 echo "Doing install-info in $(TARGET_SUBDIR)/libffi" ; \
25660 for flag in $(EXTRA_TARGET_FLAGS); do \
25661 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25662 done; \
25663 (cd $(TARGET_SUBDIR)/libffi && \
25664 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25665 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25666 "RANLIB=$${RANLIB}" \
25667 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 25668 install-info) \
4fa63067
NN
25669 || exit 1
25670
6bd3dfaa 25671@endif target-libffi
4fa63067
NN
25672
25673.PHONY: maybe-installcheck-target-libffi installcheck-target-libffi
25674maybe-installcheck-target-libffi:
6bd3dfaa
PB
25675@if target-libffi
25676maybe-installcheck-target-libffi: installcheck-target-libffi
4fa63067
NN
25677
25678installcheck-target-libffi: \
25679 configure-target-libffi
25680 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
25681 r=`${PWD_COMMAND}`; export r; \
25682 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25683 $(SET_LIB_PATH) \
378fce5b 25684 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
25685 echo "Doing installcheck in $(TARGET_SUBDIR)/libffi" ; \
25686 for flag in $(EXTRA_TARGET_FLAGS); do \
25687 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25688 done; \
25689 (cd $(TARGET_SUBDIR)/libffi && \
25690 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25691 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25692 "RANLIB=$${RANLIB}" \
25693 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 25694 installcheck) \
4fa63067
NN
25695 || exit 1
25696
6bd3dfaa 25697@endif target-libffi
4fa63067
NN
25698
25699.PHONY: maybe-mostlyclean-target-libffi mostlyclean-target-libffi
25700maybe-mostlyclean-target-libffi:
6bd3dfaa
PB
25701@if target-libffi
25702maybe-mostlyclean-target-libffi: mostlyclean-target-libffi
4fa63067
NN
25703
25704mostlyclean-target-libffi:
25705 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
25706 r=`${PWD_COMMAND}`; export r; \
25707 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25708 $(SET_LIB_PATH) \
378fce5b 25709 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
25710 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libffi" ; \
25711 for flag in $(EXTRA_TARGET_FLAGS); do \
25712 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25713 done; \
25714 (cd $(TARGET_SUBDIR)/libffi && \
25715 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25716 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25717 "RANLIB=$${RANLIB}" \
25718 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 25719 mostlyclean) \
4fa63067
NN
25720 || exit 1
25721
6bd3dfaa 25722@endif target-libffi
4fa63067
NN
25723
25724.PHONY: maybe-clean-target-libffi clean-target-libffi
25725maybe-clean-target-libffi:
6bd3dfaa
PB
25726@if target-libffi
25727maybe-clean-target-libffi: clean-target-libffi
4fa63067
NN
25728
25729clean-target-libffi:
25730 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
25731 r=`${PWD_COMMAND}`; export r; \
25732 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25733 $(SET_LIB_PATH) \
378fce5b 25734 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
25735 echo "Doing clean in $(TARGET_SUBDIR)/libffi" ; \
25736 for flag in $(EXTRA_TARGET_FLAGS); do \
25737 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25738 done; \
25739 (cd $(TARGET_SUBDIR)/libffi && \
25740 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25741 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25742 "RANLIB=$${RANLIB}" \
25743 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 25744 clean) \
4fa63067
NN
25745 || exit 1
25746
6bd3dfaa 25747@endif target-libffi
4fa63067
NN
25748
25749.PHONY: maybe-distclean-target-libffi distclean-target-libffi
25750maybe-distclean-target-libffi:
6bd3dfaa
PB
25751@if target-libffi
25752maybe-distclean-target-libffi: distclean-target-libffi
4fa63067
NN
25753
25754distclean-target-libffi:
25755 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
25756 r=`${PWD_COMMAND}`; export r; \
25757 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25758 $(SET_LIB_PATH) \
378fce5b 25759 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
25760 echo "Doing distclean in $(TARGET_SUBDIR)/libffi" ; \
25761 for flag in $(EXTRA_TARGET_FLAGS); do \
25762 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25763 done; \
25764 (cd $(TARGET_SUBDIR)/libffi && \
25765 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25766 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25767 "RANLIB=$${RANLIB}" \
25768 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 25769 distclean) \
4fa63067
NN
25770 || exit 1
25771
6bd3dfaa 25772@endif target-libffi
4fa63067
NN
25773
25774.PHONY: maybe-maintainer-clean-target-libffi maintainer-clean-target-libffi
25775maybe-maintainer-clean-target-libffi:
6bd3dfaa
PB
25776@if target-libffi
25777maybe-maintainer-clean-target-libffi: maintainer-clean-target-libffi
4fa63067
NN
25778
25779maintainer-clean-target-libffi:
25780 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
25781 r=`${PWD_COMMAND}`; export r; \
25782 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25783 $(SET_LIB_PATH) \
378fce5b 25784 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
25785 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libffi" ; \
25786 for flag in $(EXTRA_TARGET_FLAGS); do \
25787 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25788 done; \
25789 (cd $(TARGET_SUBDIR)/libffi && \
25790 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25791 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25792 "RANLIB=$${RANLIB}" \
25793 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 25794 maintainer-clean) \
4fa63067
NN
25795 || exit 1
25796
6bd3dfaa 25797@endif target-libffi
4fa63067
NN
25798
25799
25800.PHONY: configure-target-libjava maybe-configure-target-libjava
25801maybe-configure-target-libjava:
6bd3dfaa
PB
25802@if target-libjava
25803maybe-configure-target-libjava: configure-target-libjava
15723a45 25804
1086bc09 25805# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
4fa63067
NN
25806$(TARGET_SUBDIR)/libjava/multilib.out: multilib.out
25807 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libjava ; \
25808 rm -f $(TARGET_SUBDIR)/libjava/Makefile || : ; \
25809 cp multilib.out $(TARGET_SUBDIR)/libjava/multilib.out
15723a45 25810
4fa63067
NN
25811configure-target-libjava: $(TARGET_SUBDIR)/libjava/multilib.out
25812 @test ! -f $(TARGET_SUBDIR)/libjava/Makefile || exit 0; \
25813 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libjava ; \
b40e3958
L
25814 r=`${PWD_COMMAND}`; export r; \
25815 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 25816 $(SET_LIB_PATH) \
378fce5b 25817 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
25818 echo Configuring in $(TARGET_SUBDIR)/libjava; \
25819 cd "$(TARGET_SUBDIR)/libjava" || exit 1; \
bba45b8b
NN
25820 case $(srcdir) in \
25821 /* | [A-Za-z]:[\\/]*) \
25822 topdir=$(srcdir) ;; \
25823 *) \
25824 case "$(TARGET_SUBDIR)" in \
e393202e
NN
25825 .) topdir="../$(srcdir)" ;; \
25826 *) topdir="../../$(srcdir)" ;; \
bba45b8b
NN
25827 esac ;; \
25828 esac; \
4fa63067
NN
25829 srcdiroption="--srcdir=$${topdir}/libjava"; \
25830 libsrcdir="$$s/libjava"; \
bba45b8b
NN
25831 rm -f no-such-file || : ; \
25832 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25833 $(TARGET_CONFIGARGS) $${srcdiroption} \
7ffa0b57 25834 --with-target-subdir="$(TARGET_SUBDIR)" \
bba45b8b 25835 || exit 1
6bd3dfaa 25836@endif target-libjava
e393202e 25837
4fa63067
NN
25838.PHONY: all-target-libjava maybe-all-target-libjava
25839maybe-all-target-libjava:
6bd3dfaa 25840@if target-libjava
72b2455a 25841TARGET-target-libjava=all
6bd3dfaa 25842maybe-all-target-libjava: all-target-libjava
4fa63067 25843all-target-libjava: configure-target-libjava
b40e3958
L
25844 @r=`${PWD_COMMAND}`; export r; \
25845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 25846 $(SET_LIB_PATH) \
378fce5b 25847 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067 25848 (cd $(TARGET_SUBDIR)/libjava && \
72b2455a 25849 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' $(TARGET-target-libjava))
6bd3dfaa 25850@endif target-libjava
e393202e 25851
4fa63067
NN
25852.PHONY: check-target-libjava maybe-check-target-libjava
25853maybe-check-target-libjava:
6bd3dfaa
PB
25854@if target-libjava
25855maybe-check-target-libjava: check-target-libjava
16ae0395 25856
4fa63067
NN
25857check-target-libjava:
25858 @r=`${PWD_COMMAND}`; export r; \
25859 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25860 $(SET_LIB_PATH) \
378fce5b 25861 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067 25862 (cd $(TARGET_SUBDIR)/libjava && \
7ffa0b57 25863 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
3866be5d 25864
6bd3dfaa 25865@endif target-libjava
930314a4 25866
4fa63067
NN
25867.PHONY: install-target-libjava maybe-install-target-libjava
25868maybe-install-target-libjava:
6bd3dfaa
PB
25869@if target-libjava
25870maybe-install-target-libjava: install-target-libjava
16ae0395 25871
4fa63067 25872install-target-libjava: installdirs
b40e3958
L
25873 @r=`${PWD_COMMAND}`; export r; \
25874 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 25875 $(SET_LIB_PATH) \
378fce5b 25876 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067 25877 (cd $(TARGET_SUBDIR)/libjava && \
7ffa0b57 25878 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 25879
6bd3dfaa 25880@endif target-libjava
e393202e 25881
4fa63067 25882# Other targets (info, dvi, etc.)
15723a45 25883
4fa63067
NN
25884.PHONY: maybe-info-target-libjava info-target-libjava
25885maybe-info-target-libjava:
6bd3dfaa
PB
25886@if target-libjava
25887maybe-info-target-libjava: info-target-libjava
15723a45 25888
4fa63067
NN
25889info-target-libjava: \
25890 configure-target-libjava
25891 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
b40e3958
L
25892 r=`${PWD_COMMAND}`; export r; \
25893 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 25894 $(SET_LIB_PATH) \
378fce5b 25895 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
25896 echo "Doing info in $(TARGET_SUBDIR)/libjava" ; \
25897 for flag in $(EXTRA_TARGET_FLAGS); do \
25898 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25899 done; \
25900 (cd $(TARGET_SUBDIR)/libjava && \
25901 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25902 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25903 "RANLIB=$${RANLIB}" \
25904 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 25905 info) \
bba45b8b 25906 || exit 1
e393202e 25907
6bd3dfaa 25908@endif target-libjava
4fa63067
NN
25909
25910.PHONY: maybe-dvi-target-libjava dvi-target-libjava
25911maybe-dvi-target-libjava:
6bd3dfaa
PB
25912@if target-libjava
25913maybe-dvi-target-libjava: dvi-target-libjava
4fa63067
NN
25914
25915dvi-target-libjava: \
25916 configure-target-libjava
25917 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
25918 r=`${PWD_COMMAND}`; export r; \
b40e3958 25919 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 25920 $(SET_LIB_PATH) \
378fce5b 25921 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
25922 echo "Doing dvi in $(TARGET_SUBDIR)/libjava" ; \
25923 for flag in $(EXTRA_TARGET_FLAGS); do \
25924 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25925 done; \
25926 (cd $(TARGET_SUBDIR)/libjava && \
25927 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25928 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25929 "RANLIB=$${RANLIB}" \
25930 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 25931 dvi) \
4fa63067 25932 || exit 1
e393202e 25933
6bd3dfaa 25934@endif target-libjava
16ae0395 25935
4fa63067
NN
25936.PHONY: maybe-TAGS-target-libjava TAGS-target-libjava
25937maybe-TAGS-target-libjava:
6bd3dfaa
PB
25938@if target-libjava
25939maybe-TAGS-target-libjava: TAGS-target-libjava
4fa63067
NN
25940
25941TAGS-target-libjava: \
25942 configure-target-libjava
25943 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
25944 r=`${PWD_COMMAND}`; export r; \
b40e3958 25945 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 25946 $(SET_LIB_PATH) \
378fce5b 25947 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
25948 echo "Doing TAGS in $(TARGET_SUBDIR)/libjava" ; \
25949 for flag in $(EXTRA_TARGET_FLAGS); do \
25950 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25951 done; \
25952 (cd $(TARGET_SUBDIR)/libjava && \
25953 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25954 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25955 "RANLIB=$${RANLIB}" \
25956 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 25957 TAGS) \
4fa63067 25958 || exit 1
e393202e 25959
6bd3dfaa 25960@endif target-libjava
930314a4 25961
4fa63067
NN
25962.PHONY: maybe-install-info-target-libjava install-info-target-libjava
25963maybe-install-info-target-libjava:
6bd3dfaa
PB
25964@if target-libjava
25965maybe-install-info-target-libjava: install-info-target-libjava
16ae0395 25966
4fa63067
NN
25967install-info-target-libjava: \
25968 configure-target-libjava \
25969 info-target-libjava
25970 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
25971 r=`${PWD_COMMAND}`; export r; \
b40e3958 25972 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 25973 $(SET_LIB_PATH) \
378fce5b 25974 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
25975 echo "Doing install-info in $(TARGET_SUBDIR)/libjava" ; \
25976 for flag in $(EXTRA_TARGET_FLAGS); do \
25977 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25978 done; \
25979 (cd $(TARGET_SUBDIR)/libjava && \
25980 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25981 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25982 "RANLIB=$${RANLIB}" \
25983 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 25984 install-info) \
4fa63067 25985 || exit 1
e393202e 25986
6bd3dfaa 25987@endif target-libjava
e393202e 25988
4fa63067
NN
25989.PHONY: maybe-installcheck-target-libjava installcheck-target-libjava
25990maybe-installcheck-target-libjava:
6bd3dfaa
PB
25991@if target-libjava
25992maybe-installcheck-target-libjava: installcheck-target-libjava
15723a45 25993
4fa63067
NN
25994installcheck-target-libjava: \
25995 configure-target-libjava
25996 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
25997 r=`${PWD_COMMAND}`; export r; \
25998 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25999 $(SET_LIB_PATH) \
378fce5b 26000 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
26001 echo "Doing installcheck in $(TARGET_SUBDIR)/libjava" ; \
26002 for flag in $(EXTRA_TARGET_FLAGS); do \
26003 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26004 done; \
26005 (cd $(TARGET_SUBDIR)/libjava && \
26006 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26007 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26008 "RANLIB=$${RANLIB}" \
26009 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 26010 installcheck) \
4fa63067 26011 || exit 1
15723a45 26012
6bd3dfaa 26013@endif target-libjava
4fa63067
NN
26014
26015.PHONY: maybe-mostlyclean-target-libjava mostlyclean-target-libjava
26016maybe-mostlyclean-target-libjava:
6bd3dfaa
PB
26017@if target-libjava
26018maybe-mostlyclean-target-libjava: mostlyclean-target-libjava
4fa63067
NN
26019
26020mostlyclean-target-libjava:
26021 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
26022 r=`${PWD_COMMAND}`; export r; \
26023 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26024 $(SET_LIB_PATH) \
378fce5b 26025 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
26026 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libjava" ; \
26027 for flag in $(EXTRA_TARGET_FLAGS); do \
26028 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26029 done; \
26030 (cd $(TARGET_SUBDIR)/libjava && \
26031 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26032 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26033 "RANLIB=$${RANLIB}" \
26034 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 26035 mostlyclean) \
4fa63067
NN
26036 || exit 1
26037
6bd3dfaa 26038@endif target-libjava
4fa63067
NN
26039
26040.PHONY: maybe-clean-target-libjava clean-target-libjava
26041maybe-clean-target-libjava:
6bd3dfaa
PB
26042@if target-libjava
26043maybe-clean-target-libjava: clean-target-libjava
4fa63067
NN
26044
26045clean-target-libjava:
26046 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
b40e3958
L
26047 r=`${PWD_COMMAND}`; export r; \
26048 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 26049 $(SET_LIB_PATH) \
378fce5b 26050 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
26051 echo "Doing clean in $(TARGET_SUBDIR)/libjava" ; \
26052 for flag in $(EXTRA_TARGET_FLAGS); do \
26053 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26054 done; \
26055 (cd $(TARGET_SUBDIR)/libjava && \
26056 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26057 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26058 "RANLIB=$${RANLIB}" \
26059 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 26060 clean) \
bba45b8b 26061 || exit 1
e393202e 26062
6bd3dfaa 26063@endif target-libjava
e393202e 26064
4fa63067
NN
26065.PHONY: maybe-distclean-target-libjava distclean-target-libjava
26066maybe-distclean-target-libjava:
6bd3dfaa
PB
26067@if target-libjava
26068maybe-distclean-target-libjava: distclean-target-libjava
16ae0395 26069
4fa63067
NN
26070distclean-target-libjava:
26071 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
26072 r=`${PWD_COMMAND}`; export r; \
26073 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26074 $(SET_LIB_PATH) \
378fce5b 26075 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
26076 echo "Doing distclean in $(TARGET_SUBDIR)/libjava" ; \
26077 for flag in $(EXTRA_TARGET_FLAGS); do \
26078 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26079 done; \
26080 (cd $(TARGET_SUBDIR)/libjava && \
26081 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26082 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26083 "RANLIB=$${RANLIB}" \
26084 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 26085 distclean) \
4fa63067 26086 || exit 1
3866be5d 26087
6bd3dfaa 26088@endif target-libjava
930314a4 26089
4fa63067
NN
26090.PHONY: maybe-maintainer-clean-target-libjava maintainer-clean-target-libjava
26091maybe-maintainer-clean-target-libjava:
6bd3dfaa
PB
26092@if target-libjava
26093maybe-maintainer-clean-target-libjava: maintainer-clean-target-libjava
16ae0395 26094
4fa63067
NN
26095maintainer-clean-target-libjava:
26096 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
26097 r=`${PWD_COMMAND}`; export r; \
b40e3958 26098 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 26099 $(SET_LIB_PATH) \
378fce5b 26100 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
26101 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libjava" ; \
26102 for flag in $(EXTRA_TARGET_FLAGS); do \
26103 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26104 done; \
26105 (cd $(TARGET_SUBDIR)/libjava && \
26106 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26107 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26108 "RANLIB=$${RANLIB}" \
26109 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 26110 maintainer-clean) \
4fa63067 26111 || exit 1
e393202e 26112
6bd3dfaa 26113@endif target-libjava
e393202e 26114
4fa63067
NN
26115
26116.PHONY: configure-target-zlib maybe-configure-target-zlib
26117maybe-configure-target-zlib:
6bd3dfaa
PB
26118@if target-zlib
26119maybe-configure-target-zlib: configure-target-zlib
15723a45 26120
1086bc09 26121# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
4fa63067
NN
26122$(TARGET_SUBDIR)/zlib/multilib.out: multilib.out
26123 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib ; \
26124 rm -f $(TARGET_SUBDIR)/zlib/Makefile || : ; \
26125 cp multilib.out $(TARGET_SUBDIR)/zlib/multilib.out
15723a45 26126
4fa63067
NN
26127configure-target-zlib: $(TARGET_SUBDIR)/zlib/multilib.out
26128 @test ! -f $(TARGET_SUBDIR)/zlib/Makefile || exit 0; \
26129 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib ; \
b40e3958
L
26130 r=`${PWD_COMMAND}`; export r; \
26131 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 26132 $(SET_LIB_PATH) \
378fce5b 26133 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
26134 echo Configuring in $(TARGET_SUBDIR)/zlib; \
26135 cd "$(TARGET_SUBDIR)/zlib" || exit 1; \
bba45b8b
NN
26136 case $(srcdir) in \
26137 /* | [A-Za-z]:[\\/]*) \
26138 topdir=$(srcdir) ;; \
26139 *) \
26140 case "$(TARGET_SUBDIR)" in \
e393202e
NN
26141 .) topdir="../$(srcdir)" ;; \
26142 *) topdir="../../$(srcdir)" ;; \
bba45b8b
NN
26143 esac ;; \
26144 esac; \
4fa63067
NN
26145 if [ "$(srcdir)" = "." ] ; then \
26146 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
26147 if $(SHELL) $$s/symlink-tree $${topdir}/zlib "no-such-file" ; then \
26148 if [ -f Makefile ]; then \
26149 if $(MAKE) distclean; then \
26150 true; \
26151 else \
26152 exit 1; \
26153 fi; \
26154 else \
26155 true; \
26156 fi; \
26157 else \
26158 exit 1; \
26159 fi; \
26160 else \
26161 true; \
26162 fi; \
26163 srcdiroption="--srcdir=."; \
26164 libsrcdir="."; \
26165 else \
26166 srcdiroption="--srcdir=$${topdir}/zlib"; \
26167 libsrcdir="$$s/zlib"; \
26168 fi; \
bba45b8b
NN
26169 rm -f no-such-file || : ; \
26170 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
26171 $(TARGET_CONFIGARGS) $${srcdiroption} \
7ffa0b57 26172 --with-target-subdir="$(TARGET_SUBDIR)" \
bba45b8b 26173 || exit 1
6bd3dfaa 26174@endif target-zlib
e393202e 26175
4fa63067
NN
26176.PHONY: all-target-zlib maybe-all-target-zlib
26177maybe-all-target-zlib:
6bd3dfaa 26178@if target-zlib
72b2455a 26179TARGET-target-zlib=all
6bd3dfaa 26180maybe-all-target-zlib: all-target-zlib
4fa63067 26181all-target-zlib: configure-target-zlib
b40e3958
L
26182 @r=`${PWD_COMMAND}`; export r; \
26183 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 26184 $(SET_LIB_PATH) \
378fce5b 26185 $(NORMAL_TARGET_EXPORTS) \
4fa63067 26186 (cd $(TARGET_SUBDIR)/zlib && \
72b2455a 26187 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-zlib))
6bd3dfaa 26188@endif target-zlib
e393202e 26189
4fa63067
NN
26190.PHONY: check-target-zlib maybe-check-target-zlib
26191maybe-check-target-zlib:
6bd3dfaa
PB
26192@if target-zlib
26193maybe-check-target-zlib: check-target-zlib
16ae0395 26194
4fa63067 26195check-target-zlib:
b40e3958
L
26196 @r=`${PWD_COMMAND}`; export r; \
26197 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 26198 $(SET_LIB_PATH) \
378fce5b 26199 $(NORMAL_TARGET_EXPORTS) \
4fa63067 26200 (cd $(TARGET_SUBDIR)/zlib && \
7ffa0b57 26201 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
e393202e 26202
6bd3dfaa 26203@endif target-zlib
930314a4 26204
4fa63067
NN
26205.PHONY: install-target-zlib maybe-install-target-zlib
26206maybe-install-target-zlib:
6bd3dfaa
PB
26207@if target-zlib
26208maybe-install-target-zlib: install-target-zlib
16ae0395 26209
4fa63067 26210install-target-zlib: installdirs
b40e3958
L
26211 @r=`${PWD_COMMAND}`; export r; \
26212 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 26213 $(SET_LIB_PATH) \
378fce5b 26214 $(NORMAL_TARGET_EXPORTS) \
4fa63067 26215 (cd $(TARGET_SUBDIR)/zlib && \
7ffa0b57 26216 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 26217
6bd3dfaa 26218@endif target-zlib
e393202e 26219
4fa63067 26220# Other targets (info, dvi, etc.)
15723a45 26221
4fa63067
NN
26222.PHONY: maybe-info-target-zlib info-target-zlib
26223maybe-info-target-zlib:
6bd3dfaa
PB
26224@if target-zlib
26225maybe-info-target-zlib: info-target-zlib
15723a45 26226
4fa63067
NN
26227info-target-zlib: \
26228 configure-target-zlib
26229 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
b40e3958
L
26230 r=`${PWD_COMMAND}`; export r; \
26231 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 26232 $(SET_LIB_PATH) \
378fce5b 26233 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
26234 echo "Doing info in $(TARGET_SUBDIR)/zlib" ; \
26235 for flag in $(EXTRA_TARGET_FLAGS); do \
26236 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26237 done; \
26238 (cd $(TARGET_SUBDIR)/zlib && \
26239 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26240 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26241 "RANLIB=$${RANLIB}" \
26242 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 26243 info) \
bba45b8b 26244 || exit 1
e393202e 26245
6bd3dfaa 26246@endif target-zlib
e393202e 26247
4fa63067
NN
26248.PHONY: maybe-dvi-target-zlib dvi-target-zlib
26249maybe-dvi-target-zlib:
6bd3dfaa
PB
26250@if target-zlib
26251maybe-dvi-target-zlib: dvi-target-zlib
16ae0395 26252
4fa63067
NN
26253dvi-target-zlib: \
26254 configure-target-zlib
26255 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
26256 r=`${PWD_COMMAND}`; export r; \
b40e3958 26257 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 26258 $(SET_LIB_PATH) \
378fce5b 26259 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
26260 echo "Doing dvi in $(TARGET_SUBDIR)/zlib" ; \
26261 for flag in $(EXTRA_TARGET_FLAGS); do \
26262 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26263 done; \
26264 (cd $(TARGET_SUBDIR)/zlib && \
26265 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26266 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26267 "RANLIB=$${RANLIB}" \
26268 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 26269 dvi) \
4fa63067 26270 || exit 1
e393202e 26271
6bd3dfaa 26272@endif target-zlib
930314a4 26273
4fa63067
NN
26274.PHONY: maybe-TAGS-target-zlib TAGS-target-zlib
26275maybe-TAGS-target-zlib:
6bd3dfaa
PB
26276@if target-zlib
26277maybe-TAGS-target-zlib: TAGS-target-zlib
16ae0395 26278
4fa63067
NN
26279TAGS-target-zlib: \
26280 configure-target-zlib
26281 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
26282 r=`${PWD_COMMAND}`; export r; \
b40e3958 26283 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 26284 $(SET_LIB_PATH) \
378fce5b 26285 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
26286 echo "Doing TAGS in $(TARGET_SUBDIR)/zlib" ; \
26287 for flag in $(EXTRA_TARGET_FLAGS); do \
26288 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26289 done; \
26290 (cd $(TARGET_SUBDIR)/zlib && \
26291 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26292 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26293 "RANLIB=$${RANLIB}" \
26294 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 26295 TAGS) \
4fa63067 26296 || exit 1
e393202e 26297
6bd3dfaa 26298@endif target-zlib
15723a45 26299
4fa63067
NN
26300.PHONY: maybe-install-info-target-zlib install-info-target-zlib
26301maybe-install-info-target-zlib:
6bd3dfaa
PB
26302@if target-zlib
26303maybe-install-info-target-zlib: install-info-target-zlib
15723a45 26304
4fa63067
NN
26305install-info-target-zlib: \
26306 configure-target-zlib \
26307 info-target-zlib
26308 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
b40e3958
L
26309 r=`${PWD_COMMAND}`; export r; \
26310 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 26311 $(SET_LIB_PATH) \
378fce5b 26312 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
26313 echo "Doing install-info in $(TARGET_SUBDIR)/zlib" ; \
26314 for flag in $(EXTRA_TARGET_FLAGS); do \
26315 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26316 done; \
26317 (cd $(TARGET_SUBDIR)/zlib && \
26318 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26319 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26320 "RANLIB=$${RANLIB}" \
26321 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 26322 install-info) \
bba45b8b 26323 || exit 1
e393202e 26324
6bd3dfaa 26325@endif target-zlib
16ae0395 26326
4fa63067
NN
26327.PHONY: maybe-installcheck-target-zlib installcheck-target-zlib
26328maybe-installcheck-target-zlib:
6bd3dfaa
PB
26329@if target-zlib
26330maybe-installcheck-target-zlib: installcheck-target-zlib
3866be5d 26331
4fa63067
NN
26332installcheck-target-zlib: \
26333 configure-target-zlib
26334 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
26335 r=`${PWD_COMMAND}`; export r; \
26336 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26337 $(SET_LIB_PATH) \
378fce5b 26338 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
26339 echo "Doing installcheck in $(TARGET_SUBDIR)/zlib" ; \
26340 for flag in $(EXTRA_TARGET_FLAGS); do \
26341 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26342 done; \
26343 (cd $(TARGET_SUBDIR)/zlib && \
26344 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26345 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26346 "RANLIB=$${RANLIB}" \
26347 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 26348 installcheck) \
4fa63067 26349 || exit 1
e393202e 26350
6bd3dfaa 26351@endif target-zlib
16ae0395 26352
4fa63067
NN
26353.PHONY: maybe-mostlyclean-target-zlib mostlyclean-target-zlib
26354maybe-mostlyclean-target-zlib:
6bd3dfaa
PB
26355@if target-zlib
26356maybe-mostlyclean-target-zlib: mostlyclean-target-zlib
930314a4 26357
4fa63067
NN
26358mostlyclean-target-zlib:
26359 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
26360 r=`${PWD_COMMAND}`; export r; \
26361 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26362 $(SET_LIB_PATH) \
378fce5b 26363 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
26364 echo "Doing mostlyclean in $(TARGET_SUBDIR)/zlib" ; \
26365 for flag in $(EXTRA_TARGET_FLAGS); do \
26366 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26367 done; \
26368 (cd $(TARGET_SUBDIR)/zlib && \
26369 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26370 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26371 "RANLIB=$${RANLIB}" \
26372 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 26373 mostlyclean) \
4fa63067 26374 || exit 1
e393202e 26375
6bd3dfaa 26376@endif target-zlib
15723a45 26377
4fa63067
NN
26378.PHONY: maybe-clean-target-zlib clean-target-zlib
26379maybe-clean-target-zlib:
6bd3dfaa
PB
26380@if target-zlib
26381maybe-clean-target-zlib: clean-target-zlib
15723a45 26382
4fa63067
NN
26383clean-target-zlib:
26384 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
b40e3958
L
26385 r=`${PWD_COMMAND}`; export r; \
26386 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 26387 $(SET_LIB_PATH) \
378fce5b 26388 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
26389 echo "Doing clean in $(TARGET_SUBDIR)/zlib" ; \
26390 for flag in $(EXTRA_TARGET_FLAGS); do \
26391 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26392 done; \
26393 (cd $(TARGET_SUBDIR)/zlib && \
26394 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26395 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26396 "RANLIB=$${RANLIB}" \
26397 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 26398 clean) \
bba45b8b 26399 || exit 1
e393202e 26400
6bd3dfaa 26401@endif target-zlib
e393202e 26402
4fa63067
NN
26403.PHONY: maybe-distclean-target-zlib distclean-target-zlib
26404maybe-distclean-target-zlib:
6bd3dfaa
PB
26405@if target-zlib
26406maybe-distclean-target-zlib: distclean-target-zlib
16ae0395 26407
4fa63067
NN
26408distclean-target-zlib:
26409 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
26410 r=`${PWD_COMMAND}`; export r; \
b40e3958 26411 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 26412 $(SET_LIB_PATH) \
378fce5b 26413 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
26414 echo "Doing distclean in $(TARGET_SUBDIR)/zlib" ; \
26415 for flag in $(EXTRA_TARGET_FLAGS); do \
26416 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26417 done; \
26418 (cd $(TARGET_SUBDIR)/zlib && \
26419 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26420 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26421 "RANLIB=$${RANLIB}" \
26422 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 26423 distclean) \
4fa63067 26424 || exit 1
e393202e 26425
6bd3dfaa 26426@endif target-zlib
e393202e 26427
4fa63067
NN
26428.PHONY: maybe-maintainer-clean-target-zlib maintainer-clean-target-zlib
26429maybe-maintainer-clean-target-zlib:
6bd3dfaa
PB
26430@if target-zlib
26431maybe-maintainer-clean-target-zlib: maintainer-clean-target-zlib
16ae0395 26432
4fa63067
NN
26433maintainer-clean-target-zlib:
26434 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
26435 r=`${PWD_COMMAND}`; export r; \
b40e3958 26436 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 26437 $(SET_LIB_PATH) \
378fce5b 26438 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
26439 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/zlib" ; \
26440 for flag in $(EXTRA_TARGET_FLAGS); do \
26441 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26442 done; \
26443 (cd $(TARGET_SUBDIR)/zlib && \
26444 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26445 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26446 "RANLIB=$${RANLIB}" \
26447 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 26448 maintainer-clean) \
4fa63067 26449 || exit 1
e393202e 26450
6bd3dfaa 26451@endif target-zlib
930314a4 26452
4fa63067
NN
26453
26454.PHONY: configure-target-boehm-gc maybe-configure-target-boehm-gc
26455maybe-configure-target-boehm-gc:
6bd3dfaa
PB
26456@if target-boehm-gc
26457maybe-configure-target-boehm-gc: configure-target-boehm-gc
15723a45 26458
1086bc09 26459# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
4fa63067
NN
26460$(TARGET_SUBDIR)/boehm-gc/multilib.out: multilib.out
26461 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/boehm-gc ; \
26462 rm -f $(TARGET_SUBDIR)/boehm-gc/Makefile || : ; \
26463 cp multilib.out $(TARGET_SUBDIR)/boehm-gc/multilib.out
15723a45 26464
4fa63067
NN
26465configure-target-boehm-gc: $(TARGET_SUBDIR)/boehm-gc/multilib.out
26466 @test ! -f $(TARGET_SUBDIR)/boehm-gc/Makefile || exit 0; \
26467 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/boehm-gc ; \
b40e3958
L
26468 r=`${PWD_COMMAND}`; export r; \
26469 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 26470 $(SET_LIB_PATH) \
378fce5b 26471 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
26472 echo Configuring in $(TARGET_SUBDIR)/boehm-gc; \
26473 cd "$(TARGET_SUBDIR)/boehm-gc" || exit 1; \
bba45b8b
NN
26474 case $(srcdir) in \
26475 /* | [A-Za-z]:[\\/]*) \
26476 topdir=$(srcdir) ;; \
26477 *) \
26478 case "$(TARGET_SUBDIR)" in \
e393202e
NN
26479 .) topdir="../$(srcdir)" ;; \
26480 *) topdir="../../$(srcdir)" ;; \
bba45b8b
NN
26481 esac ;; \
26482 esac; \
4fa63067
NN
26483 srcdiroption="--srcdir=$${topdir}/boehm-gc"; \
26484 libsrcdir="$$s/boehm-gc"; \
bba45b8b
NN
26485 rm -f no-such-file || : ; \
26486 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
26487 $(TARGET_CONFIGARGS) $${srcdiroption} \
7ffa0b57 26488 --with-target-subdir="$(TARGET_SUBDIR)" \
bba45b8b 26489 || exit 1
6bd3dfaa 26490@endif target-boehm-gc
e393202e 26491
4fa63067
NN
26492.PHONY: all-target-boehm-gc maybe-all-target-boehm-gc
26493maybe-all-target-boehm-gc:
6bd3dfaa 26494@if target-boehm-gc
72b2455a 26495TARGET-target-boehm-gc=all
6bd3dfaa 26496maybe-all-target-boehm-gc: all-target-boehm-gc
4fa63067 26497all-target-boehm-gc: configure-target-boehm-gc
b40e3958
L
26498 @r=`${PWD_COMMAND}`; export r; \
26499 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 26500 $(SET_LIB_PATH) \
378fce5b 26501 $(NORMAL_TARGET_EXPORTS) \
4fa63067 26502 (cd $(TARGET_SUBDIR)/boehm-gc && \
72b2455a 26503 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-boehm-gc))
6bd3dfaa 26504@endif target-boehm-gc
e393202e 26505
4fa63067
NN
26506.PHONY: check-target-boehm-gc maybe-check-target-boehm-gc
26507maybe-check-target-boehm-gc:
6bd3dfaa
PB
26508@if target-boehm-gc
26509maybe-check-target-boehm-gc: check-target-boehm-gc
16ae0395 26510
4fa63067 26511check-target-boehm-gc:
b40e3958
L
26512 @r=`${PWD_COMMAND}`; export r; \
26513 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 26514 $(SET_LIB_PATH) \
378fce5b 26515 $(NORMAL_TARGET_EXPORTS) \
4fa63067 26516 (cd $(TARGET_SUBDIR)/boehm-gc && \
7ffa0b57 26517 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
e393202e 26518
6bd3dfaa 26519@endif target-boehm-gc
930314a4 26520
4fa63067
NN
26521.PHONY: install-target-boehm-gc maybe-install-target-boehm-gc
26522maybe-install-target-boehm-gc:
6bd3dfaa
PB
26523@if target-boehm-gc
26524maybe-install-target-boehm-gc: install-target-boehm-gc
16ae0395 26525
4fa63067 26526install-target-boehm-gc: installdirs
b40e3958
L
26527 @r=`${PWD_COMMAND}`; export r; \
26528 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 26529 $(SET_LIB_PATH) \
378fce5b 26530 $(NORMAL_TARGET_EXPORTS) \
4fa63067 26531 (cd $(TARGET_SUBDIR)/boehm-gc && \
7ffa0b57 26532 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 26533
6bd3dfaa 26534@endif target-boehm-gc
e393202e 26535
4fa63067
NN
26536# Other targets (info, dvi, etc.)
26537
26538.PHONY: maybe-info-target-boehm-gc info-target-boehm-gc
26539maybe-info-target-boehm-gc:
6bd3dfaa
PB
26540@if target-boehm-gc
26541maybe-info-target-boehm-gc: info-target-boehm-gc
4fa63067
NN
26542
26543info-target-boehm-gc: \
26544 configure-target-boehm-gc
26545 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
26546 r=`${PWD_COMMAND}`; export r; \
26547 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26548 $(SET_LIB_PATH) \
378fce5b 26549 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
26550 echo "Doing info in $(TARGET_SUBDIR)/boehm-gc" ; \
26551 for flag in $(EXTRA_TARGET_FLAGS); do \
26552 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26553 done; \
26554 (cd $(TARGET_SUBDIR)/boehm-gc && \
26555 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26556 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26557 "RANLIB=$${RANLIB}" \
26558 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 26559 info) \
4fa63067
NN
26560 || exit 1
26561
6bd3dfaa 26562@endif target-boehm-gc
4fa63067
NN
26563
26564.PHONY: maybe-dvi-target-boehm-gc dvi-target-boehm-gc
26565maybe-dvi-target-boehm-gc:
6bd3dfaa
PB
26566@if target-boehm-gc
26567maybe-dvi-target-boehm-gc: dvi-target-boehm-gc
4fa63067
NN
26568
26569dvi-target-boehm-gc: \
26570 configure-target-boehm-gc
26571 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
26572 r=`${PWD_COMMAND}`; export r; \
26573 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26574 $(SET_LIB_PATH) \
378fce5b 26575 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
26576 echo "Doing dvi in $(TARGET_SUBDIR)/boehm-gc" ; \
26577 for flag in $(EXTRA_TARGET_FLAGS); do \
26578 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26579 done; \
26580 (cd $(TARGET_SUBDIR)/boehm-gc && \
26581 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26582 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26583 "RANLIB=$${RANLIB}" \
26584 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 26585 dvi) \
4fa63067
NN
26586 || exit 1
26587
6bd3dfaa 26588@endif target-boehm-gc
4fa63067
NN
26589
26590.PHONY: maybe-TAGS-target-boehm-gc TAGS-target-boehm-gc
26591maybe-TAGS-target-boehm-gc:
6bd3dfaa
PB
26592@if target-boehm-gc
26593maybe-TAGS-target-boehm-gc: TAGS-target-boehm-gc
4fa63067
NN
26594
26595TAGS-target-boehm-gc: \
26596 configure-target-boehm-gc
26597 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
26598 r=`${PWD_COMMAND}`; export r; \
26599 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26600 $(SET_LIB_PATH) \
378fce5b 26601 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
26602 echo "Doing TAGS in $(TARGET_SUBDIR)/boehm-gc" ; \
26603 for flag in $(EXTRA_TARGET_FLAGS); do \
26604 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26605 done; \
26606 (cd $(TARGET_SUBDIR)/boehm-gc && \
26607 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26608 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26609 "RANLIB=$${RANLIB}" \
26610 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 26611 TAGS) \
4fa63067
NN
26612 || exit 1
26613
6bd3dfaa 26614@endif target-boehm-gc
4fa63067
NN
26615
26616.PHONY: maybe-install-info-target-boehm-gc install-info-target-boehm-gc
26617maybe-install-info-target-boehm-gc:
6bd3dfaa
PB
26618@if target-boehm-gc
26619maybe-install-info-target-boehm-gc: install-info-target-boehm-gc
4fa63067
NN
26620
26621install-info-target-boehm-gc: \
26622 configure-target-boehm-gc \
26623 info-target-boehm-gc
26624 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
26625 r=`${PWD_COMMAND}`; export r; \
26626 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26627 $(SET_LIB_PATH) \
378fce5b 26628 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
26629 echo "Doing install-info in $(TARGET_SUBDIR)/boehm-gc" ; \
26630 for flag in $(EXTRA_TARGET_FLAGS); do \
26631 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26632 done; \
26633 (cd $(TARGET_SUBDIR)/boehm-gc && \
26634 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26635 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26636 "RANLIB=$${RANLIB}" \
26637 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 26638 install-info) \
4fa63067
NN
26639 || exit 1
26640
6bd3dfaa 26641@endif target-boehm-gc
4fa63067
NN
26642
26643.PHONY: maybe-installcheck-target-boehm-gc installcheck-target-boehm-gc
26644maybe-installcheck-target-boehm-gc:
6bd3dfaa
PB
26645@if target-boehm-gc
26646maybe-installcheck-target-boehm-gc: installcheck-target-boehm-gc
4fa63067
NN
26647
26648installcheck-target-boehm-gc: \
26649 configure-target-boehm-gc
26650 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
26651 r=`${PWD_COMMAND}`; export r; \
26652 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26653 $(SET_LIB_PATH) \
378fce5b 26654 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
26655 echo "Doing installcheck in $(TARGET_SUBDIR)/boehm-gc" ; \
26656 for flag in $(EXTRA_TARGET_FLAGS); do \
26657 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26658 done; \
26659 (cd $(TARGET_SUBDIR)/boehm-gc && \
26660 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26661 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26662 "RANLIB=$${RANLIB}" \
26663 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 26664 installcheck) \
4fa63067
NN
26665 || exit 1
26666
6bd3dfaa 26667@endif target-boehm-gc
4fa63067
NN
26668
26669.PHONY: maybe-mostlyclean-target-boehm-gc mostlyclean-target-boehm-gc
26670maybe-mostlyclean-target-boehm-gc:
6bd3dfaa
PB
26671@if target-boehm-gc
26672maybe-mostlyclean-target-boehm-gc: mostlyclean-target-boehm-gc
4fa63067
NN
26673
26674mostlyclean-target-boehm-gc:
26675 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
26676 r=`${PWD_COMMAND}`; export r; \
26677 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26678 $(SET_LIB_PATH) \
378fce5b 26679 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
26680 echo "Doing mostlyclean in $(TARGET_SUBDIR)/boehm-gc" ; \
26681 for flag in $(EXTRA_TARGET_FLAGS); do \
26682 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26683 done; \
26684 (cd $(TARGET_SUBDIR)/boehm-gc && \
26685 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26686 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26687 "RANLIB=$${RANLIB}" \
26688 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 26689 mostlyclean) \
4fa63067
NN
26690 || exit 1
26691
6bd3dfaa 26692@endif target-boehm-gc
4fa63067
NN
26693
26694.PHONY: maybe-clean-target-boehm-gc clean-target-boehm-gc
26695maybe-clean-target-boehm-gc:
6bd3dfaa
PB
26696@if target-boehm-gc
26697maybe-clean-target-boehm-gc: clean-target-boehm-gc
4fa63067
NN
26698
26699clean-target-boehm-gc:
26700 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
26701 r=`${PWD_COMMAND}`; export r; \
26702 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26703 $(SET_LIB_PATH) \
378fce5b 26704 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
26705 echo "Doing clean in $(TARGET_SUBDIR)/boehm-gc" ; \
26706 for flag in $(EXTRA_TARGET_FLAGS); do \
26707 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26708 done; \
26709 (cd $(TARGET_SUBDIR)/boehm-gc && \
26710 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26711 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26712 "RANLIB=$${RANLIB}" \
26713 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 26714 clean) \
4fa63067
NN
26715 || exit 1
26716
6bd3dfaa 26717@endif target-boehm-gc
4fa63067
NN
26718
26719.PHONY: maybe-distclean-target-boehm-gc distclean-target-boehm-gc
26720maybe-distclean-target-boehm-gc:
6bd3dfaa
PB
26721@if target-boehm-gc
26722maybe-distclean-target-boehm-gc: distclean-target-boehm-gc
4fa63067
NN
26723
26724distclean-target-boehm-gc:
26725 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
26726 r=`${PWD_COMMAND}`; export r; \
26727 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26728 $(SET_LIB_PATH) \
378fce5b 26729 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
26730 echo "Doing distclean in $(TARGET_SUBDIR)/boehm-gc" ; \
26731 for flag in $(EXTRA_TARGET_FLAGS); do \
26732 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26733 done; \
26734 (cd $(TARGET_SUBDIR)/boehm-gc && \
26735 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26736 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26737 "RANLIB=$${RANLIB}" \
26738 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 26739 distclean) \
4fa63067
NN
26740 || exit 1
26741
6bd3dfaa 26742@endif target-boehm-gc
4fa63067
NN
26743
26744.PHONY: maybe-maintainer-clean-target-boehm-gc maintainer-clean-target-boehm-gc
26745maybe-maintainer-clean-target-boehm-gc:
6bd3dfaa
PB
26746@if target-boehm-gc
26747maybe-maintainer-clean-target-boehm-gc: maintainer-clean-target-boehm-gc
4fa63067
NN
26748
26749maintainer-clean-target-boehm-gc:
26750 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
26751 r=`${PWD_COMMAND}`; export r; \
26752 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26753 $(SET_LIB_PATH) \
378fce5b 26754 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
26755 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/boehm-gc" ; \
26756 for flag in $(EXTRA_TARGET_FLAGS); do \
26757 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26758 done; \
26759 (cd $(TARGET_SUBDIR)/boehm-gc && \
26760 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26761 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26762 "RANLIB=$${RANLIB}" \
26763 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 26764 maintainer-clean) \
4fa63067
NN
26765 || exit 1
26766
6bd3dfaa 26767@endif target-boehm-gc
4fa63067
NN
26768
26769
26770.PHONY: configure-target-qthreads maybe-configure-target-qthreads
26771maybe-configure-target-qthreads:
6bd3dfaa
PB
26772@if target-qthreads
26773maybe-configure-target-qthreads: configure-target-qthreads
15723a45 26774
1086bc09 26775# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
4fa63067
NN
26776$(TARGET_SUBDIR)/qthreads/multilib.out: multilib.out
26777 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/qthreads ; \
26778 rm -f $(TARGET_SUBDIR)/qthreads/Makefile || : ; \
26779 cp multilib.out $(TARGET_SUBDIR)/qthreads/multilib.out
15723a45 26780
4fa63067
NN
26781configure-target-qthreads: $(TARGET_SUBDIR)/qthreads/multilib.out
26782 @test ! -f $(TARGET_SUBDIR)/qthreads/Makefile || exit 0; \
26783 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/qthreads ; \
b40e3958
L
26784 r=`${PWD_COMMAND}`; export r; \
26785 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 26786 $(SET_LIB_PATH) \
378fce5b 26787 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
26788 echo Configuring in $(TARGET_SUBDIR)/qthreads; \
26789 cd "$(TARGET_SUBDIR)/qthreads" || exit 1; \
bba45b8b
NN
26790 case $(srcdir) in \
26791 /* | [A-Za-z]:[\\/]*) \
26792 topdir=$(srcdir) ;; \
26793 *) \
26794 case "$(TARGET_SUBDIR)" in \
e393202e
NN
26795 .) topdir="../$(srcdir)" ;; \
26796 *) topdir="../../$(srcdir)" ;; \
bba45b8b
NN
26797 esac ;; \
26798 esac; \
4fa63067
NN
26799 srcdiroption="--srcdir=$${topdir}/qthreads"; \
26800 libsrcdir="$$s/qthreads"; \
bba45b8b
NN
26801 rm -f no-such-file || : ; \
26802 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
26803 $(TARGET_CONFIGARGS) $${srcdiroption} \
7ffa0b57 26804 --with-target-subdir="$(TARGET_SUBDIR)" \
bba45b8b 26805 || exit 1
6bd3dfaa 26806@endif target-qthreads
252b5132 26807
4fa63067
NN
26808.PHONY: all-target-qthreads maybe-all-target-qthreads
26809maybe-all-target-qthreads:
6bd3dfaa 26810@if target-qthreads
72b2455a 26811TARGET-target-qthreads=all
6bd3dfaa 26812maybe-all-target-qthreads: all-target-qthreads
4fa63067 26813all-target-qthreads: configure-target-qthreads
b40e3958
L
26814 @r=`${PWD_COMMAND}`; export r; \
26815 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 26816 $(SET_LIB_PATH) \
378fce5b 26817 $(NORMAL_TARGET_EXPORTS) \
4fa63067 26818 (cd $(TARGET_SUBDIR)/qthreads && \
72b2455a 26819 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-qthreads))
6bd3dfaa 26820@endif target-qthreads
252b5132 26821
4fa63067
NN
26822.PHONY: check-target-qthreads maybe-check-target-qthreads
26823maybe-check-target-qthreads:
6bd3dfaa
PB
26824@if target-qthreads
26825maybe-check-target-qthreads: check-target-qthreads
16ae0395 26826
4fa63067 26827check-target-qthreads:
b40e3958
L
26828 @r=`${PWD_COMMAND}`; export r; \
26829 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 26830 $(SET_LIB_PATH) \
378fce5b 26831 $(NORMAL_TARGET_EXPORTS) \
4fa63067 26832 (cd $(TARGET_SUBDIR)/qthreads && \
7ffa0b57 26833 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
252b5132 26834
6bd3dfaa 26835@endif target-qthreads
930314a4 26836
4fa63067
NN
26837.PHONY: install-target-qthreads maybe-install-target-qthreads
26838maybe-install-target-qthreads:
6bd3dfaa
PB
26839@if target-qthreads
26840maybe-install-target-qthreads: install-target-qthreads
4fa63067
NN
26841
26842install-target-qthreads: installdirs
26843 @r=`${PWD_COMMAND}`; export r; \
26844 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26845 $(SET_LIB_PATH) \
378fce5b 26846 $(NORMAL_TARGET_EXPORTS) \
4fa63067 26847 (cd $(TARGET_SUBDIR)/qthreads && \
7ffa0b57 26848 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4fa63067 26849
6bd3dfaa 26850@endif target-qthreads
4fa63067
NN
26851
26852# Other targets (info, dvi, etc.)
26853
26854.PHONY: maybe-info-target-qthreads info-target-qthreads
26855maybe-info-target-qthreads:
6bd3dfaa
PB
26856@if target-qthreads
26857maybe-info-target-qthreads: info-target-qthreads
4fa63067
NN
26858
26859info-target-qthreads: \
26860 configure-target-qthreads
26861 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
26862 r=`${PWD_COMMAND}`; export r; \
26863 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26864 $(SET_LIB_PATH) \
378fce5b 26865 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
26866 echo "Doing info in $(TARGET_SUBDIR)/qthreads" ; \
26867 for flag in $(EXTRA_TARGET_FLAGS); do \
26868 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26869 done; \
26870 (cd $(TARGET_SUBDIR)/qthreads && \
26871 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26872 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26873 "RANLIB=$${RANLIB}" \
26874 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 26875 info) \
4fa63067
NN
26876 || exit 1
26877
6bd3dfaa 26878@endif target-qthreads
4fa63067
NN
26879
26880.PHONY: maybe-dvi-target-qthreads dvi-target-qthreads
26881maybe-dvi-target-qthreads:
6bd3dfaa
PB
26882@if target-qthreads
26883maybe-dvi-target-qthreads: dvi-target-qthreads
4fa63067
NN
26884
26885dvi-target-qthreads: \
26886 configure-target-qthreads
26887 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
26888 r=`${PWD_COMMAND}`; export r; \
26889 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26890 $(SET_LIB_PATH) \
378fce5b 26891 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
26892 echo "Doing dvi in $(TARGET_SUBDIR)/qthreads" ; \
26893 for flag in $(EXTRA_TARGET_FLAGS); do \
26894 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26895 done; \
26896 (cd $(TARGET_SUBDIR)/qthreads && \
26897 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26898 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26899 "RANLIB=$${RANLIB}" \
26900 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 26901 dvi) \
4fa63067
NN
26902 || exit 1
26903
6bd3dfaa 26904@endif target-qthreads
4fa63067
NN
26905
26906.PHONY: maybe-TAGS-target-qthreads TAGS-target-qthreads
26907maybe-TAGS-target-qthreads:
6bd3dfaa
PB
26908@if target-qthreads
26909maybe-TAGS-target-qthreads: TAGS-target-qthreads
4fa63067
NN
26910
26911TAGS-target-qthreads: \
26912 configure-target-qthreads
26913 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
26914 r=`${PWD_COMMAND}`; export r; \
26915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26916 $(SET_LIB_PATH) \
378fce5b 26917 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
26918 echo "Doing TAGS in $(TARGET_SUBDIR)/qthreads" ; \
26919 for flag in $(EXTRA_TARGET_FLAGS); do \
26920 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26921 done; \
26922 (cd $(TARGET_SUBDIR)/qthreads && \
26923 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26924 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26925 "RANLIB=$${RANLIB}" \
26926 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 26927 TAGS) \
4fa63067
NN
26928 || exit 1
26929
6bd3dfaa 26930@endif target-qthreads
4fa63067
NN
26931
26932.PHONY: maybe-install-info-target-qthreads install-info-target-qthreads
26933maybe-install-info-target-qthreads:
6bd3dfaa
PB
26934@if target-qthreads
26935maybe-install-info-target-qthreads: install-info-target-qthreads
4fa63067
NN
26936
26937install-info-target-qthreads: \
26938 configure-target-qthreads \
26939 info-target-qthreads
26940 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
26941 r=`${PWD_COMMAND}`; export r; \
26942 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26943 $(SET_LIB_PATH) \
378fce5b 26944 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
26945 echo "Doing install-info in $(TARGET_SUBDIR)/qthreads" ; \
26946 for flag in $(EXTRA_TARGET_FLAGS); do \
26947 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26948 done; \
26949 (cd $(TARGET_SUBDIR)/qthreads && \
26950 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26951 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26952 "RANLIB=$${RANLIB}" \
26953 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 26954 install-info) \
4fa63067
NN
26955 || exit 1
26956
6bd3dfaa 26957@endif target-qthreads
4fa63067
NN
26958
26959.PHONY: maybe-installcheck-target-qthreads installcheck-target-qthreads
26960maybe-installcheck-target-qthreads:
6bd3dfaa
PB
26961@if target-qthreads
26962maybe-installcheck-target-qthreads: installcheck-target-qthreads
4fa63067
NN
26963
26964installcheck-target-qthreads: \
26965 configure-target-qthreads
26966 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
26967 r=`${PWD_COMMAND}`; export r; \
26968 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26969 $(SET_LIB_PATH) \
378fce5b 26970 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
26971 echo "Doing installcheck in $(TARGET_SUBDIR)/qthreads" ; \
26972 for flag in $(EXTRA_TARGET_FLAGS); do \
26973 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26974 done; \
26975 (cd $(TARGET_SUBDIR)/qthreads && \
26976 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26977 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26978 "RANLIB=$${RANLIB}" \
26979 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 26980 installcheck) \
4fa63067
NN
26981 || exit 1
26982
6bd3dfaa 26983@endif target-qthreads
4fa63067
NN
26984
26985.PHONY: maybe-mostlyclean-target-qthreads mostlyclean-target-qthreads
26986maybe-mostlyclean-target-qthreads:
6bd3dfaa
PB
26987@if target-qthreads
26988maybe-mostlyclean-target-qthreads: mostlyclean-target-qthreads
4fa63067
NN
26989
26990mostlyclean-target-qthreads:
26991 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
26992 r=`${PWD_COMMAND}`; export r; \
26993 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26994 $(SET_LIB_PATH) \
378fce5b 26995 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
26996 echo "Doing mostlyclean in $(TARGET_SUBDIR)/qthreads" ; \
26997 for flag in $(EXTRA_TARGET_FLAGS); do \
26998 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26999 done; \
27000 (cd $(TARGET_SUBDIR)/qthreads && \
27001 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27002 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27003 "RANLIB=$${RANLIB}" \
27004 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 27005 mostlyclean) \
4fa63067
NN
27006 || exit 1
27007
6bd3dfaa 27008@endif target-qthreads
4fa63067
NN
27009
27010.PHONY: maybe-clean-target-qthreads clean-target-qthreads
27011maybe-clean-target-qthreads:
6bd3dfaa
PB
27012@if target-qthreads
27013maybe-clean-target-qthreads: clean-target-qthreads
4fa63067
NN
27014
27015clean-target-qthreads:
27016 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
27017 r=`${PWD_COMMAND}`; export r; \
27018 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27019 $(SET_LIB_PATH) \
378fce5b 27020 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
27021 echo "Doing clean in $(TARGET_SUBDIR)/qthreads" ; \
27022 for flag in $(EXTRA_TARGET_FLAGS); do \
27023 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27024 done; \
27025 (cd $(TARGET_SUBDIR)/qthreads && \
27026 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27027 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27028 "RANLIB=$${RANLIB}" \
27029 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 27030 clean) \
4fa63067
NN
27031 || exit 1
27032
6bd3dfaa 27033@endif target-qthreads
4fa63067
NN
27034
27035.PHONY: maybe-distclean-target-qthreads distclean-target-qthreads
27036maybe-distclean-target-qthreads:
6bd3dfaa
PB
27037@if target-qthreads
27038maybe-distclean-target-qthreads: distclean-target-qthreads
4fa63067
NN
27039
27040distclean-target-qthreads:
27041 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
27042 r=`${PWD_COMMAND}`; export r; \
27043 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27044 $(SET_LIB_PATH) \
378fce5b 27045 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
27046 echo "Doing distclean in $(TARGET_SUBDIR)/qthreads" ; \
27047 for flag in $(EXTRA_TARGET_FLAGS); do \
27048 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27049 done; \
27050 (cd $(TARGET_SUBDIR)/qthreads && \
27051 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27052 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27053 "RANLIB=$${RANLIB}" \
27054 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 27055 distclean) \
4fa63067
NN
27056 || exit 1
27057
6bd3dfaa 27058@endif target-qthreads
4fa63067
NN
27059
27060.PHONY: maybe-maintainer-clean-target-qthreads maintainer-clean-target-qthreads
27061maybe-maintainer-clean-target-qthreads:
6bd3dfaa
PB
27062@if target-qthreads
27063maybe-maintainer-clean-target-qthreads: maintainer-clean-target-qthreads
4fa63067
NN
27064
27065maintainer-clean-target-qthreads:
27066 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
27067 r=`${PWD_COMMAND}`; export r; \
27068 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27069 $(SET_LIB_PATH) \
378fce5b 27070 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
27071 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/qthreads" ; \
27072 for flag in $(EXTRA_TARGET_FLAGS); do \
27073 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27074 done; \
27075 (cd $(TARGET_SUBDIR)/qthreads && \
27076 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27077 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27078 "RANLIB=$${RANLIB}" \
27079 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 27080 maintainer-clean) \
4fa63067 27081 || exit 1
16ae0395 27082
6bd3dfaa 27083@endif target-qthreads
49b7683b 27084
e393202e 27085
4fa63067
NN
27086.PHONY: configure-target-rda maybe-configure-target-rda
27087maybe-configure-target-rda:
6bd3dfaa
PB
27088@if target-rda
27089maybe-configure-target-rda: configure-target-rda
15723a45 27090
1086bc09 27091# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
4fa63067
NN
27092$(TARGET_SUBDIR)/rda/multilib.out: multilib.out
27093 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda ; \
27094 rm -f $(TARGET_SUBDIR)/rda/Makefile || : ; \
27095 cp multilib.out $(TARGET_SUBDIR)/rda/multilib.out
15723a45 27096
4fa63067
NN
27097configure-target-rda: $(TARGET_SUBDIR)/rda/multilib.out
27098 @test ! -f $(TARGET_SUBDIR)/rda/Makefile || exit 0; \
27099 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda ; \
b40e3958
L
27100 r=`${PWD_COMMAND}`; export r; \
27101 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 27102 $(SET_LIB_PATH) \
378fce5b 27103 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
27104 echo Configuring in $(TARGET_SUBDIR)/rda; \
27105 cd "$(TARGET_SUBDIR)/rda" || exit 1; \
bba45b8b
NN
27106 case $(srcdir) in \
27107 /* | [A-Za-z]:[\\/]*) \
27108 topdir=$(srcdir) ;; \
27109 *) \
27110 case "$(TARGET_SUBDIR)" in \
49b7683b
DD
27111 .) topdir="../$(srcdir)" ;; \
27112 *) topdir="../../$(srcdir)" ;; \
bba45b8b
NN
27113 esac ;; \
27114 esac; \
4fa63067
NN
27115 srcdiroption="--srcdir=$${topdir}/rda"; \
27116 libsrcdir="$$s/rda"; \
bba45b8b
NN
27117 rm -f no-such-file || : ; \
27118 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
27119 $(TARGET_CONFIGARGS) $${srcdiroption} \
7ffa0b57 27120 --with-target-subdir="$(TARGET_SUBDIR)" \
bba45b8b 27121 || exit 1
6bd3dfaa 27122@endif target-rda
49b7683b 27123
4fa63067
NN
27124.PHONY: all-target-rda maybe-all-target-rda
27125maybe-all-target-rda:
6bd3dfaa 27126@if target-rda
72b2455a 27127TARGET-target-rda=all
6bd3dfaa 27128maybe-all-target-rda: all-target-rda
4fa63067 27129all-target-rda: configure-target-rda
b40e3958
L
27130 @r=`${PWD_COMMAND}`; export r; \
27131 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 27132 $(SET_LIB_PATH) \
378fce5b 27133 $(NORMAL_TARGET_EXPORTS) \
4fa63067 27134 (cd $(TARGET_SUBDIR)/rda && \
72b2455a 27135 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-rda))
6bd3dfaa 27136@endif target-rda
252b5132 27137
4fa63067
NN
27138.PHONY: check-target-rda maybe-check-target-rda
27139maybe-check-target-rda:
6bd3dfaa
PB
27140@if target-rda
27141maybe-check-target-rda: check-target-rda
16ae0395 27142
4fa63067 27143check-target-rda:
b40e3958
L
27144 @r=`${PWD_COMMAND}`; export r; \
27145 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 27146 $(SET_LIB_PATH) \
378fce5b 27147 $(NORMAL_TARGET_EXPORTS) \
4fa63067 27148 (cd $(TARGET_SUBDIR)/rda && \
7ffa0b57 27149 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
252b5132 27150
6bd3dfaa 27151@endif target-rda
930314a4 27152
4fa63067
NN
27153.PHONY: install-target-rda maybe-install-target-rda
27154maybe-install-target-rda:
6bd3dfaa
PB
27155@if target-rda
27156maybe-install-target-rda: install-target-rda
16ae0395 27157
4fa63067 27158install-target-rda: installdirs
b40e3958
L
27159 @r=`${PWD_COMMAND}`; export r; \
27160 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 27161 $(SET_LIB_PATH) \
378fce5b 27162 $(NORMAL_TARGET_EXPORTS) \
4fa63067 27163 (cd $(TARGET_SUBDIR)/rda && \
7ffa0b57 27164 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 27165
6bd3dfaa 27166@endif target-rda
e393202e 27167
4fa63067 27168# Other targets (info, dvi, etc.)
15723a45 27169
4fa63067
NN
27170.PHONY: maybe-info-target-rda info-target-rda
27171maybe-info-target-rda:
6bd3dfaa
PB
27172@if target-rda
27173maybe-info-target-rda: info-target-rda
15723a45 27174
4fa63067
NN
27175info-target-rda: \
27176 configure-target-rda
27177 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
b40e3958
L
27178 r=`${PWD_COMMAND}`; export r; \
27179 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 27180 $(SET_LIB_PATH) \
378fce5b 27181 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
27182 echo "Doing info in $(TARGET_SUBDIR)/rda" ; \
27183 for flag in $(EXTRA_TARGET_FLAGS); do \
27184 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27185 done; \
27186 (cd $(TARGET_SUBDIR)/rda && \
27187 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27188 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27189 "RANLIB=$${RANLIB}" \
27190 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 27191 info) \
bba45b8b 27192 || exit 1
252b5132 27193
6bd3dfaa 27194@endif target-rda
4fa63067
NN
27195
27196.PHONY: maybe-dvi-target-rda dvi-target-rda
27197maybe-dvi-target-rda:
6bd3dfaa
PB
27198@if target-rda
27199maybe-dvi-target-rda: dvi-target-rda
4fa63067
NN
27200
27201dvi-target-rda: \
27202 configure-target-rda
27203 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
27204 r=`${PWD_COMMAND}`; export r; \
b40e3958 27205 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 27206 $(SET_LIB_PATH) \
378fce5b 27207 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
27208 echo "Doing dvi in $(TARGET_SUBDIR)/rda" ; \
27209 for flag in $(EXTRA_TARGET_FLAGS); do \
27210 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27211 done; \
27212 (cd $(TARGET_SUBDIR)/rda && \
27213 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27214 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27215 "RANLIB=$${RANLIB}" \
27216 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 27217 dvi) \
4fa63067 27218 || exit 1
252b5132 27219
6bd3dfaa 27220@endif target-rda
16ae0395 27221
4fa63067
NN
27222.PHONY: maybe-TAGS-target-rda TAGS-target-rda
27223maybe-TAGS-target-rda:
6bd3dfaa
PB
27224@if target-rda
27225maybe-TAGS-target-rda: TAGS-target-rda
4fa63067
NN
27226
27227TAGS-target-rda: \
27228 configure-target-rda
27229 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
27230 r=`${PWD_COMMAND}`; export r; \
b40e3958 27231 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 27232 $(SET_LIB_PATH) \
378fce5b 27233 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
27234 echo "Doing TAGS in $(TARGET_SUBDIR)/rda" ; \
27235 for flag in $(EXTRA_TARGET_FLAGS); do \
27236 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27237 done; \
27238 (cd $(TARGET_SUBDIR)/rda && \
27239 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27240 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27241 "RANLIB=$${RANLIB}" \
27242 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 27243 TAGS) \
4fa63067 27244 || exit 1
e393202e 27245
6bd3dfaa 27246@endif target-rda
930314a4 27247
4fa63067
NN
27248.PHONY: maybe-install-info-target-rda install-info-target-rda
27249maybe-install-info-target-rda:
6bd3dfaa
PB
27250@if target-rda
27251maybe-install-info-target-rda: install-info-target-rda
16ae0395 27252
4fa63067
NN
27253install-info-target-rda: \
27254 configure-target-rda \
27255 info-target-rda
27256 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
27257 r=`${PWD_COMMAND}`; export r; \
b40e3958 27258 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 27259 $(SET_LIB_PATH) \
378fce5b 27260 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
27261 echo "Doing install-info in $(TARGET_SUBDIR)/rda" ; \
27262 for flag in $(EXTRA_TARGET_FLAGS); do \
27263 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27264 done; \
27265 (cd $(TARGET_SUBDIR)/rda && \
27266 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27267 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27268 "RANLIB=$${RANLIB}" \
27269 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 27270 install-info) \
4fa63067 27271 || exit 1
252b5132 27272
6bd3dfaa 27273@endif target-rda
e393202e 27274
4fa63067
NN
27275.PHONY: maybe-installcheck-target-rda installcheck-target-rda
27276maybe-installcheck-target-rda:
6bd3dfaa
PB
27277@if target-rda
27278maybe-installcheck-target-rda: installcheck-target-rda
15723a45 27279
4fa63067
NN
27280installcheck-target-rda: \
27281 configure-target-rda
27282 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
27283 r=`${PWD_COMMAND}`; export r; \
27284 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27285 $(SET_LIB_PATH) \
378fce5b 27286 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
27287 echo "Doing installcheck in $(TARGET_SUBDIR)/rda" ; \
27288 for flag in $(EXTRA_TARGET_FLAGS); do \
27289 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27290 done; \
27291 (cd $(TARGET_SUBDIR)/rda && \
27292 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27293 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27294 "RANLIB=$${RANLIB}" \
27295 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 27296 installcheck) \
4fa63067 27297 || exit 1
15723a45 27298
6bd3dfaa 27299@endif target-rda
4fa63067
NN
27300
27301.PHONY: maybe-mostlyclean-target-rda mostlyclean-target-rda
27302maybe-mostlyclean-target-rda:
6bd3dfaa
PB
27303@if target-rda
27304maybe-mostlyclean-target-rda: mostlyclean-target-rda
4fa63067
NN
27305
27306mostlyclean-target-rda:
27307 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
b40e3958
L
27308 r=`${PWD_COMMAND}`; export r; \
27309 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 27310 $(SET_LIB_PATH) \
378fce5b 27311 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
27312 echo "Doing mostlyclean in $(TARGET_SUBDIR)/rda" ; \
27313 for flag in $(EXTRA_TARGET_FLAGS); do \
27314 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27315 done; \
27316 (cd $(TARGET_SUBDIR)/rda && \
27317 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27318 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27319 "RANLIB=$${RANLIB}" \
27320 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 27321 mostlyclean) \
bba45b8b 27322 || exit 1
252b5132 27323
6bd3dfaa 27324@endif target-rda
4fa63067
NN
27325
27326.PHONY: maybe-clean-target-rda clean-target-rda
27327maybe-clean-target-rda:
6bd3dfaa
PB
27328@if target-rda
27329maybe-clean-target-rda: clean-target-rda
4fa63067
NN
27330
27331clean-target-rda:
27332 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
27333 r=`${PWD_COMMAND}`; export r; \
b40e3958 27334 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 27335 $(SET_LIB_PATH) \
378fce5b 27336 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
27337 echo "Doing clean in $(TARGET_SUBDIR)/rda" ; \
27338 for flag in $(EXTRA_TARGET_FLAGS); do \
27339 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27340 done; \
bba45b8b 27341 (cd $(TARGET_SUBDIR)/rda && \
4fa63067
NN
27342 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27343 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27344 "RANLIB=$${RANLIB}" \
27345 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 27346 clean) \
4fa63067 27347 || exit 1
252b5132 27348
6bd3dfaa 27349@endif target-rda
16ae0395 27350
4fa63067
NN
27351.PHONY: maybe-distclean-target-rda distclean-target-rda
27352maybe-distclean-target-rda:
6bd3dfaa
PB
27353@if target-rda
27354maybe-distclean-target-rda: distclean-target-rda
4fa63067
NN
27355
27356distclean-target-rda:
27357 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
27358 r=`${PWD_COMMAND}`; export r; \
b40e3958 27359 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 27360 $(SET_LIB_PATH) \
378fce5b 27361 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
27362 echo "Doing distclean in $(TARGET_SUBDIR)/rda" ; \
27363 for flag in $(EXTRA_TARGET_FLAGS); do \
27364 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27365 done; \
bba45b8b 27366 (cd $(TARGET_SUBDIR)/rda && \
4fa63067
NN
27367 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27368 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27369 "RANLIB=$${RANLIB}" \
27370 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 27371 distclean) \
4fa63067 27372 || exit 1
252b5132 27373
6bd3dfaa 27374@endif target-rda
930314a4 27375
4fa63067
NN
27376.PHONY: maybe-maintainer-clean-target-rda maintainer-clean-target-rda
27377maybe-maintainer-clean-target-rda:
6bd3dfaa
PB
27378@if target-rda
27379maybe-maintainer-clean-target-rda: maintainer-clean-target-rda
16ae0395 27380
4fa63067
NN
27381maintainer-clean-target-rda:
27382 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
27383 r=`${PWD_COMMAND}`; export r; \
b40e3958 27384 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bba45b8b 27385 $(SET_LIB_PATH) \
378fce5b 27386 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
27387 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/rda" ; \
27388 for flag in $(EXTRA_TARGET_FLAGS); do \
27389 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27390 done; \
bba45b8b 27391 (cd $(TARGET_SUBDIR)/rda && \
4fa63067
NN
27392 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27393 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27394 "RANLIB=$${RANLIB}" \
27395 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 27396 maintainer-clean) \
4fa63067
NN
27397 || exit 1
27398
6bd3dfaa 27399@endif target-rda
252b5132 27400
e393202e 27401
a2592b1b
DD
27402.PHONY: configure-target-libada maybe-configure-target-libada
27403maybe-configure-target-libada:
6bd3dfaa
PB
27404@if target-libada
27405maybe-configure-target-libada: configure-target-libada
a2592b1b
DD
27406
27407# There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
27408$(TARGET_SUBDIR)/libada/multilib.out: multilib.out
27409 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada ; \
27410 rm -f $(TARGET_SUBDIR)/libada/Makefile || : ; \
27411 cp multilib.out $(TARGET_SUBDIR)/libada/multilib.out
27412
27413configure-target-libada: $(TARGET_SUBDIR)/libada/multilib.out
27414 @test ! -f $(TARGET_SUBDIR)/libada/Makefile || exit 0; \
27415 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada ; \
27416 r=`${PWD_COMMAND}`; export r; \
27417 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27418 $(SET_LIB_PATH) \
378fce5b 27419 $(NORMAL_TARGET_EXPORTS) \
a2592b1b
DD
27420 echo Configuring in $(TARGET_SUBDIR)/libada; \
27421 cd "$(TARGET_SUBDIR)/libada" || exit 1; \
27422 case $(srcdir) in \
27423 /* | [A-Za-z]:[\\/]*) \
27424 topdir=$(srcdir) ;; \
27425 *) \
27426 case "$(TARGET_SUBDIR)" in \
27427 .) topdir="../$(srcdir)" ;; \
27428 *) topdir="../../$(srcdir)" ;; \
27429 esac ;; \
27430 esac; \
a2592b1b
DD
27431 srcdiroption="--srcdir=$${topdir}/libada"; \
27432 libsrcdir="$$s/libada"; \
a2592b1b
DD
27433 rm -f no-such-file || : ; \
27434 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
27435 $(TARGET_CONFIGARGS) $${srcdiroption} \
7ffa0b57 27436 --with-target-subdir="$(TARGET_SUBDIR)" \
a2592b1b 27437 || exit 1
6bd3dfaa 27438@endif target-libada
a2592b1b 27439
4fa63067
NN
27440.PHONY: all-target-libada maybe-all-target-libada
27441maybe-all-target-libada:
6bd3dfaa 27442@if target-libada
72b2455a 27443TARGET-target-libada=all
6bd3dfaa 27444maybe-all-target-libada: all-target-libada
4fa63067
NN
27445all-target-libada: configure-target-libada
27446 @r=`${PWD_COMMAND}`; export r; \
27447 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27448 $(SET_LIB_PATH) \
378fce5b 27449 $(NORMAL_TARGET_EXPORTS) \
4fa63067 27450 (cd $(TARGET_SUBDIR)/libada && \
72b2455a 27451 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libada))
6bd3dfaa 27452@endif target-libada
4fa63067
NN
27453
27454.PHONY: check-target-libada maybe-check-target-libada
27455maybe-check-target-libada:
6bd3dfaa
PB
27456@if target-libada
27457maybe-check-target-libada: check-target-libada
4fa63067
NN
27458
27459check-target-libada:
27460 @r=`${PWD_COMMAND}`; export r; \
27461 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27462 $(SET_LIB_PATH) \
378fce5b 27463 $(NORMAL_TARGET_EXPORTS) \
4fa63067 27464 (cd $(TARGET_SUBDIR)/libada && \
7ffa0b57 27465 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4fa63067 27466
6bd3dfaa 27467@endif target-libada
4fa63067
NN
27468
27469.PHONY: install-target-libada maybe-install-target-libada
27470maybe-install-target-libada:
6bd3dfaa
PB
27471@if target-libada
27472maybe-install-target-libada: install-target-libada
4fa63067
NN
27473
27474install-target-libada: installdirs
27475 @r=`${PWD_COMMAND}`; export r; \
27476 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27477 $(SET_LIB_PATH) \
378fce5b 27478 $(NORMAL_TARGET_EXPORTS) \
4fa63067 27479 (cd $(TARGET_SUBDIR)/libada && \
7ffa0b57 27480 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4fa63067 27481
6bd3dfaa 27482@endif target-libada
4fa63067
NN
27483
27484# Other targets (info, dvi, etc.)
27485
27486.PHONY: maybe-info-target-libada info-target-libada
27487maybe-info-target-libada:
6bd3dfaa
PB
27488@if target-libada
27489maybe-info-target-libada: info-target-libada
4fa63067
NN
27490
27491info-target-libada: \
27492 configure-target-libada
27493 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
27494 r=`${PWD_COMMAND}`; export r; \
27495 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27496 $(SET_LIB_PATH) \
378fce5b 27497 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
27498 echo "Doing info in $(TARGET_SUBDIR)/libada" ; \
27499 for flag in $(EXTRA_TARGET_FLAGS); do \
27500 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27501 done; \
27502 (cd $(TARGET_SUBDIR)/libada && \
27503 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27504 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27505 "RANLIB=$${RANLIB}" \
27506 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 27507 info) \
4fa63067
NN
27508 || exit 1
27509
6bd3dfaa 27510@endif target-libada
4fa63067
NN
27511
27512.PHONY: maybe-dvi-target-libada dvi-target-libada
27513maybe-dvi-target-libada:
6bd3dfaa
PB
27514@if target-libada
27515maybe-dvi-target-libada: dvi-target-libada
4fa63067
NN
27516
27517dvi-target-libada: \
27518 configure-target-libada
27519 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
27520 r=`${PWD_COMMAND}`; export r; \
27521 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27522 $(SET_LIB_PATH) \
378fce5b 27523 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
27524 echo "Doing dvi in $(TARGET_SUBDIR)/libada" ; \
27525 for flag in $(EXTRA_TARGET_FLAGS); do \
27526 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27527 done; \
27528 (cd $(TARGET_SUBDIR)/libada && \
27529 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27530 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27531 "RANLIB=$${RANLIB}" \
27532 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 27533 dvi) \
4fa63067
NN
27534 || exit 1
27535
6bd3dfaa 27536@endif target-libada
4fa63067
NN
27537
27538.PHONY: maybe-TAGS-target-libada TAGS-target-libada
27539maybe-TAGS-target-libada:
6bd3dfaa
PB
27540@if target-libada
27541maybe-TAGS-target-libada: TAGS-target-libada
4fa63067
NN
27542
27543TAGS-target-libada: \
27544 configure-target-libada
27545 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
27546 r=`${PWD_COMMAND}`; export r; \
27547 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27548 $(SET_LIB_PATH) \
378fce5b 27549 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
27550 echo "Doing TAGS in $(TARGET_SUBDIR)/libada" ; \
27551 for flag in $(EXTRA_TARGET_FLAGS); do \
27552 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27553 done; \
27554 (cd $(TARGET_SUBDIR)/libada && \
27555 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27556 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27557 "RANLIB=$${RANLIB}" \
27558 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 27559 TAGS) \
4fa63067
NN
27560 || exit 1
27561
6bd3dfaa 27562@endif target-libada
4fa63067
NN
27563
27564.PHONY: maybe-install-info-target-libada install-info-target-libada
27565maybe-install-info-target-libada:
6bd3dfaa
PB
27566@if target-libada
27567maybe-install-info-target-libada: install-info-target-libada
4fa63067
NN
27568
27569install-info-target-libada: \
27570 configure-target-libada \
27571 info-target-libada
27572 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
27573 r=`${PWD_COMMAND}`; export r; \
27574 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27575 $(SET_LIB_PATH) \
378fce5b 27576 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
27577 echo "Doing install-info in $(TARGET_SUBDIR)/libada" ; \
27578 for flag in $(EXTRA_TARGET_FLAGS); do \
27579 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27580 done; \
27581 (cd $(TARGET_SUBDIR)/libada && \
27582 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27583 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27584 "RANLIB=$${RANLIB}" \
27585 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 27586 install-info) \
4fa63067
NN
27587 || exit 1
27588
6bd3dfaa 27589@endif target-libada
4fa63067
NN
27590
27591.PHONY: maybe-installcheck-target-libada installcheck-target-libada
27592maybe-installcheck-target-libada:
6bd3dfaa
PB
27593@if target-libada
27594maybe-installcheck-target-libada: installcheck-target-libada
4fa63067
NN
27595
27596installcheck-target-libada: \
27597 configure-target-libada
27598 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
27599 r=`${PWD_COMMAND}`; export r; \
27600 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27601 $(SET_LIB_PATH) \
378fce5b 27602 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
27603 echo "Doing installcheck in $(TARGET_SUBDIR)/libada" ; \
27604 for flag in $(EXTRA_TARGET_FLAGS); do \
27605 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27606 done; \
27607 (cd $(TARGET_SUBDIR)/libada && \
27608 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27609 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27610 "RANLIB=$${RANLIB}" \
27611 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 27612 installcheck) \
4fa63067
NN
27613 || exit 1
27614
6bd3dfaa 27615@endif target-libada
4fa63067
NN
27616
27617.PHONY: maybe-mostlyclean-target-libada mostlyclean-target-libada
27618maybe-mostlyclean-target-libada:
6bd3dfaa
PB
27619@if target-libada
27620maybe-mostlyclean-target-libada: mostlyclean-target-libada
4fa63067
NN
27621
27622mostlyclean-target-libada:
27623 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
27624 r=`${PWD_COMMAND}`; export r; \
27625 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27626 $(SET_LIB_PATH) \
378fce5b 27627 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
27628 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libada" ; \
27629 for flag in $(EXTRA_TARGET_FLAGS); do \
27630 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27631 done; \
27632 (cd $(TARGET_SUBDIR)/libada && \
27633 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27634 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27635 "RANLIB=$${RANLIB}" \
27636 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 27637 mostlyclean) \
4fa63067
NN
27638 || exit 1
27639
6bd3dfaa 27640@endif target-libada
4fa63067
NN
27641
27642.PHONY: maybe-clean-target-libada clean-target-libada
27643maybe-clean-target-libada:
6bd3dfaa
PB
27644@if target-libada
27645maybe-clean-target-libada: clean-target-libada
4fa63067
NN
27646
27647clean-target-libada:
27648 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
27649 r=`${PWD_COMMAND}`; export r; \
27650 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27651 $(SET_LIB_PATH) \
378fce5b 27652 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
27653 echo "Doing clean in $(TARGET_SUBDIR)/libada" ; \
27654 for flag in $(EXTRA_TARGET_FLAGS); do \
27655 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27656 done; \
27657 (cd $(TARGET_SUBDIR)/libada && \
27658 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27659 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27660 "RANLIB=$${RANLIB}" \
27661 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 27662 clean) \
4fa63067
NN
27663 || exit 1
27664
6bd3dfaa 27665@endif target-libada
a2592b1b 27666
4fa63067
NN
27667.PHONY: maybe-distclean-target-libada distclean-target-libada
27668maybe-distclean-target-libada:
6bd3dfaa
PB
27669@if target-libada
27670maybe-distclean-target-libada: distclean-target-libada
a2592b1b 27671
4fa63067
NN
27672distclean-target-libada:
27673 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
27674 r=`${PWD_COMMAND}`; export r; \
a2592b1b
DD
27675 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27676 $(SET_LIB_PATH) \
378fce5b 27677 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
27678 echo "Doing distclean in $(TARGET_SUBDIR)/libada" ; \
27679 for flag in $(EXTRA_TARGET_FLAGS); do \
27680 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27681 done; \
a2592b1b 27682 (cd $(TARGET_SUBDIR)/libada && \
4fa63067
NN
27683 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27684 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27685 "RANLIB=$${RANLIB}" \
27686 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 27687 distclean) \
4fa63067 27688 || exit 1
a2592b1b 27689
6bd3dfaa 27690@endif target-libada
a2592b1b 27691
4fa63067
NN
27692.PHONY: maybe-maintainer-clean-target-libada maintainer-clean-target-libada
27693maybe-maintainer-clean-target-libada:
6bd3dfaa
PB
27694@if target-libada
27695maybe-maintainer-clean-target-libada: maintainer-clean-target-libada
a2592b1b 27696
4fa63067
NN
27697maintainer-clean-target-libada:
27698 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
27699 r=`${PWD_COMMAND}`; export r; \
a2592b1b
DD
27700 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27701 $(SET_LIB_PATH) \
378fce5b 27702 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
27703 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libada" ; \
27704 for flag in $(EXTRA_TARGET_FLAGS); do \
27705 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27706 done; \
a2592b1b 27707 (cd $(TARGET_SUBDIR)/libada && \
4fa63067
NN
27708 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27709 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27710 "RANLIB=$${RANLIB}" \
27711 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7ffa0b57 27712 maintainer-clean) \
4fa63067
NN
27713 || exit 1
27714
6bd3dfaa 27715@endif target-libada
a2592b1b
DD
27716
27717
e393202e 27718
15723a45
NN
27719# ----------
27720# GCC module
27721# ----------
27722
319cab08 27723@if gcc-no-bootstrap
b813574b
PB
27724# GCC has some more recursive targets, which trigger the old
27725# (but still current, until the toplevel bootstrap project
27726# is finished) compiler bootstrapping rules.
252b5132 27727
5b474aa8
DD
27728GCC_STRAP_TARGETS = bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean bubblestrap quickstrap cleanstrap restrap
27729.PHONY: $(GCC_STRAP_TARGETS)
9e6ce191 27730$(GCC_STRAP_TARGETS): all-prebootstrap configure-gcc
b40e3958
L
27731 @r=`${PWD_COMMAND}`; export r; \
27732 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
252b5132 27733 $(SET_LIB_PATH) \
7ffa0b57 27734 $(HOST_EXPORTS) \
252b5132 27735 echo "Bootstrapping the compiler"; \
5cec67bf 27736 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $@
b40e3958
L
27737 @r=`${PWD_COMMAND}`; export r; \
27738 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
252b5132
RH
27739 case "$@" in \
27740 *bootstrap4-lean ) \
bba45b8b
NN
27741 msg="Comparing stage3 and stage4 of the compiler"; \
27742 compare=compare3-lean ;; \
27743 *bootstrap4 ) \
27744 msg="Comparing stage3 and stage4 of the compiler"; \
27745 compare=compare3 ;; \
27746 *-lean ) \
27747 msg="Comparing stage2 and stage3 of the compiler"; \
27748 compare=compare-lean ;; \
27749 * ) \
27750 msg="Comparing stage2 and stage3 of the compiler"; \
27751 compare=compare ;; \
252b5132
RH
27752 esac; \
27753 $(SET_LIB_PATH) \
7ffa0b57 27754 $(HOST_EXPORTS) \
252b5132 27755 echo "$$msg"; \
5cec67bf 27756 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $$compare
b40e3958
L
27757 @r=`${PWD_COMMAND}`; export r; \
27758 s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
252b5132
RH
27759 $(SET_LIB_PATH) \
27760 echo "Building runtime libraries"; \
656fdd47 27761 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all
252b5132 27762
9e6ce191 27763profiledbootstrap: all-prebootstrap configure-gcc
b40e3958
L
27764 @r=`${PWD_COMMAND}`; export r; \
27765 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec7e0995 27766 $(SET_LIB_PATH) \
7ffa0b57 27767 $(HOST_EXPORTS) \
3e707e94 27768 echo "Bootstrapping training compiler"; \
ec7e0995 27769 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) stageprofile_build
b40e3958 27770 @r=`${PWD_COMMAND}`; export r; \
b40e3958 27771 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec7e0995 27772 $(SET_LIB_PATH) \
7ffa0b57 27773 $(HOST_EXPORTS) \
ec7e0995
NN
27774 echo "Building feedback based compiler"; \
27775 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) stagefeedback_build
3e707e94
PB
27776 @r=`${PWD_COMMAND}`; export r; \
27777 s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
27778 $(SET_LIB_PATH) \
27779 echo "Building runtime libraries"; \
27780 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all
ec7e0995 27781
252b5132 27782.PHONY: cross
72b2455a 27783cross: all-build all-gas all-ld
b40e3958
L
27784 @r=`${PWD_COMMAND}`; export r; \
27785 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
252b5132 27786 $(SET_LIB_PATH) \
7ffa0b57 27787 $(HOST_EXPORTS) \
252b5132 27788 echo "Building the C and C++ compiler"; \
5cec67bf 27789 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++"
b40e3958
L
27790 @r=`${PWD_COMMAND}`; export r; \
27791 s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
252b5132
RH
27792 $(SET_LIB_PATH) \
27793 echo "Building runtime libraries"; \
656fdd47 27794 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LANGUAGES="c c++" all
319cab08 27795@endif gcc-no-bootstrap
252b5132 27796
6bd3dfaa 27797@if gcc
7d695d07
JM
27798.PHONY: check-gcc-c++
27799check-gcc-c++:
75205f78 27800 @if [ -f ./gcc/Makefile ] ; then \
b40e3958
L
27801 r=`${PWD_COMMAND}`; export r; \
27802 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
75205f78 27803 $(SET_LIB_PATH) \
7ffa0b57 27804 $(HOST_EXPORTS) \
1086bc09 27805 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++); \
75205f78
DD
27806 else \
27807 true; \
7d695d07
JM
27808 fi
27809
27810.PHONY: check-c++
ede4fbe4 27811check-c++: check-target-libstdc++-v3 check-gcc-c++
252b5132 27812
15723a45
NN
27813# Install the gcc headers files, but not the fixed include files,
27814# which Cygnus is not allowed to distribute. This rule is very
27815# dependent on the workings of the gcc Makefile.in.
27816.PHONY: gcc-no-fixedincludes
27817gcc-no-fixedincludes:
27818 @if [ -f ./gcc/Makefile ]; then \
27819 rm -rf gcc/tmp-include; \
27820 mv gcc/include gcc/tmp-include 2>/dev/null; \
27821 mkdir gcc/include; \
27822 cp $(srcdir)/gcc/gsyslimits.h gcc/include/syslimits.h; \
27823 touch gcc/stmp-fixinc gcc/include/fixed; \
27824 rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \
b40e3958
L
27825 r=`${PWD_COMMAND}`; export r; \
27826 s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
15723a45 27827 $(SET_LIB_PATH) \
7ffa0b57 27828 $(HOST_EXPORTS) \
1086bc09 27829 (cd ./gcc && \
15723a45
NN
27830 $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
27831 rm -rf gcc/include; \
27832 mv gcc/tmp-include gcc/include 2>/dev/null; \
27833 else true; fi
6bd3dfaa 27834@endif gcc
4fa63067 27835
b813574b
PB
27836# ---------------------
27837# GCC bootstrap support
27838# ---------------------
4fa63067 27839
b813574b
PB
27840# We track the current stage (the one in 'gcc') in the stage_current file.
27841# stage_last instead tracks the stage that was built last. These targets
27842# are dummy when toplevel bootstrap is not active.
4fa63067 27843
b813574b
PB
27844.PHONY: unstage
27845unstage:
27846@if gcc-bootstrap
27847 @[ -f stage_current ] || $(MAKE) `cat stage_last`-start
27848@endif gcc-bootstrap
4fa63067 27849
b813574b
PB
27850.PHONY: stage
27851stage:
319cab08 27852@if gcc-bootstrap
b813574b
PB
27853 @$(MAKE) `cat stage_current`-end
27854@endif gcc-bootstrap
1d39f329 27855
dfdffa2c
PB
27856# We name the build directories for the various stages "stage1-gcc",
27857# "stage2-gcc","stage3-gcc", etc.
27858
27859# Since the 'compare' process will fail (on debugging information) if any
27860# directory names are different, we need to link the gcc directory for
27861# the previous stage to a constant name ('gcc-prev'), and to make the name of
27862# the build directories constant as well. For the latter, we use naked names
27863# like 'gcc', because the scripts in that directory assume it. We use
27864# mv on platforms where symlinks to directories do not work or are not
27865# reliable.
27866
27867# At the end of the bootstrap, a symlink to 'stage3-gcc' named 'gcc' must
27868# be kept, so that libraries can find it. Ick!
27869
27870# It would be best to preinstall gcc into a staging area (and in the
27871# future, gather there all prebootstrap packages). This would allow
27872# assemblers and linkers can be bootstrapped as well as the compiler
27873# (both in a combined tree, or separately). This however requires some
27874# change to the gcc driver, again in order to avoid comparison failures.
1d39f329 27875
0df3d27f
PB
27876# Bugs: This is crippled when doing parallel make, the `make all-host'
27877# and `make all-target' phases can be parallelized.
27878
1d39f329
NN
27879
27880# 'touch' doesn't work right on some platforms.
27881STAMP = echo timestamp >
27882
27883# Only build the C compiler for stage1, because that is the only one that
27884# we can guarantee will build with the native compiler, and also it is the
27885# only thing useful for building stage2. STAGE1_CFLAGS (via CFLAGS),
27886# MAKEINFO and MAKEINFOFLAGS are explicitly passed here to make them
27887# overrideable (for a bootstrap build stage1 also builds gcc.info).
27888
27889STAGE1_CFLAGS=@stage1_cflags@
27890STAGE1_LANGUAGES=@stage1_languages@
27891
dfdffa2c
PB
27892# We only want to compare .o files, so set this!
27893objext = .o
27894
dfdffa2c 27895# Flags to pass to stage2 and later makes.
dfdffa2c 27896POSTSTAGE1_FLAGS_TO_PASS = \
656fdd47
PB
27897 CC="$${CC}" CC_FOR_BUILD="$${CC_FOR_BUILD}" \
27898 STAGE_PREFIX=$$r/stage-gcc/ \
dfdffa2c
PB
27899 CFLAGS="$(BOOT_CFLAGS)" \
27900 ADAC="\$$(CC)"
27901
4fa63067
NN
27902# For stage 1:
27903# * We force-disable intermodule optimizations, even if
27904# --enable-intermodule was passed, since the installed compiler probably
27905# can't handle them. Luckily, autoconf always respects
27906# the last argument when conflicting --enable arguments are passed.
27907# * Likewise, we force-disable coverage flags, since the installed compiler
27908# probably has never heard of them.
27909# * We build only C (and possibly Ada).
dfdffa2c
PB
27910
27911
319cab08 27912.PHONY: stage1-start stage1-end
dfdffa2c 27913
656fdd47 27914stage1-start::
9cb3fa6f 27915 @[ -f stage_current ] && $(MAKE) `cat stage_current`-end || : ; \
b813574b 27916 echo stage1 > stage_current ; \
72b2455a
PB
27917 echo stage1 > stage_last
27918@if bfd
9cb3fa6f 27919 @[ -d stage1-bfd ] || mkdir stage1-bfd; \
72b2455a
PB
27920 set stage1-bfd bfd ; @CREATE_LINK_TO_DIR@
27921@endif bfd
27922@if opcodes
9cb3fa6f 27923 @[ -d stage1-opcodes ] || mkdir stage1-opcodes; \
72b2455a
PB
27924 set stage1-opcodes opcodes ; @CREATE_LINK_TO_DIR@
27925@endif opcodes
27926@if binutils
9cb3fa6f 27927 @[ -d stage1-binutils ] || mkdir stage1-binutils; \
72b2455a
PB
27928 set stage1-binutils binutils ; @CREATE_LINK_TO_DIR@
27929@endif binutils
27930@if gas
9cb3fa6f 27931 @[ -d stage1-gas ] || mkdir stage1-gas; \
72b2455a
PB
27932 set stage1-gas gas ; @CREATE_LINK_TO_DIR@
27933@endif gas
27934@if gcc
9cb3fa6f 27935 @[ -d stage1-gcc ] || mkdir stage1-gcc; \
dfdffa2c 27936 set stage1-gcc gcc ; @CREATE_LINK_TO_DIR@
72b2455a
PB
27937@endif gcc
27938@if intl
9cb3fa6f 27939 @[ -d stage1-intl ] || mkdir stage1-intl; \
72b2455a
PB
27940 set stage1-intl intl ; @CREATE_LINK_TO_DIR@
27941@endif intl
27942@if ld
9cb3fa6f 27943 @[ -d stage1-ld ] || mkdir stage1-ld; \
72b2455a
PB
27944 set stage1-ld ld ; @CREATE_LINK_TO_DIR@
27945@endif ld
27946@if libcpp
9cb3fa6f 27947 @[ -d stage1-libcpp ] || mkdir stage1-libcpp; \
72b2455a
PB
27948 set stage1-libcpp libcpp ; @CREATE_LINK_TO_DIR@
27949@endif libcpp
72b2455a 27950@if libiberty
9cb3fa6f 27951 @[ -d stage1-libiberty ] || mkdir stage1-libiberty; \
72b2455a
PB
27952 set stage1-libiberty libiberty ; @CREATE_LINK_TO_DIR@
27953@endif libiberty
27954@if zlib
9cb3fa6f 27955 @[ -d stage1-zlib ] || mkdir stage1-zlib; \
72b2455a
PB
27956 set stage1-zlib zlib ; @CREATE_LINK_TO_DIR@
27957@endif zlib
dfdffa2c 27958
656fdd47 27959stage1-end::
9cb3fa6f 27960 @rm -f stage_current
72b2455a 27961@if bfd
9cb3fa6f 27962 @set bfd stage1-bfd ; @UNDO_LINK_TO_DIR@
72b2455a
PB
27963@endif bfd
27964@if opcodes
9cb3fa6f 27965 @set opcodes stage1-opcodes ; @UNDO_LINK_TO_DIR@
72b2455a
PB
27966@endif opcodes
27967@if binutils
9cb3fa6f 27968 @set binutils stage1-binutils ; @UNDO_LINK_TO_DIR@
72b2455a
PB
27969@endif binutils
27970@if gas
9cb3fa6f 27971 @set gas stage1-gas ; @UNDO_LINK_TO_DIR@
72b2455a
PB
27972@endif gas
27973@if gcc
9cb3fa6f 27974 @set gcc stage1-gcc ; @UNDO_LINK_TO_DIR@
72b2455a
PB
27975@endif gcc
27976@if intl
9cb3fa6f 27977 @set intl stage1-intl ; @UNDO_LINK_TO_DIR@
72b2455a
PB
27978@endif intl
27979@if ld
9cb3fa6f 27980 @set ld stage1-ld ; @UNDO_LINK_TO_DIR@
72b2455a
PB
27981@endif ld
27982@if libcpp
9cb3fa6f 27983 @set libcpp stage1-libcpp ; @UNDO_LINK_TO_DIR@
72b2455a 27984@endif libcpp
72b2455a 27985@if libiberty
9cb3fa6f 27986 @set libiberty stage1-libiberty ; @UNDO_LINK_TO_DIR@
72b2455a
PB
27987@endif libiberty
27988@if zlib
9cb3fa6f 27989 @set zlib stage1-zlib ; @UNDO_LINK_TO_DIR@
72b2455a 27990@endif zlib
dfdffa2c
PB
27991
27992# Bubble a bugfix through all the stages up to stage 1. They
27993# are remade, but not reconfigured. The next stage (if any) will not
27994# be reconfigured as well.
319cab08 27995.PHONY: stage1-bubble
656fdd47 27996stage1-bubble::
9cb3fa6f
PB
27997 @if test -f stage1-lean ; then \
27998 echo Skipping rebuild of stage1 ; \
27999 else \
0df3d27f 28000 $(MAKE) $(RECURSE_FLAGS_TO_PASS) NOTPARALLEL= all-stage1; \
9cb3fa6f 28001 fi
72b2455a 28002
0df3d27f 28003.PHONY: all-stage1 clean-stage1
72b2455a
PB
28004all-stage1: \
28005 maybe-all-stage1-bfd \
28006 maybe-all-stage1-opcodes \
28007 maybe-all-stage1-binutils \
28008 maybe-all-stage1-gas \
28009 maybe-all-stage1-gcc \
28010 maybe-all-stage1-intl \
28011 maybe-all-stage1-ld \
28012 maybe-all-stage1-libcpp \
72b2455a
PB
28013 maybe-all-stage1-libiberty \
28014 maybe-all-stage1-zlib
28015
0df3d27f
PB
28016do-clean: clean-stage1
28017clean-stage1: \
28018 maybe-clean-stage1-bfd \
28019 maybe-clean-stage1-opcodes \
28020 maybe-clean-stage1-binutils \
28021 maybe-clean-stage1-gas \
28022 maybe-clean-stage1-gcc \
28023 maybe-clean-stage1-intl \
28024 maybe-clean-stage1-ld \
28025 maybe-clean-stage1-libcpp \
0df3d27f
PB
28026 maybe-clean-stage1-libiberty \
28027 maybe-clean-stage1-zlib
28028
72b2455a 28029
9cb3fa6f
PB
28030.PHONY: configure-stage1-bfd maybe-configure-stage1-bfd
28031.PHONY: all-stage1-bfd maybe-all-stage1-bfd
0df3d27f 28032.PHONY: clean-stage1-bfd maybe-clean-stage1-bfd
9cb3fa6f 28033
72b2455a
PB
28034maybe-configure-stage1-bfd:
28035maybe-all-stage1-bfd:
0df3d27f 28036maybe-clean-stage1-bfd:
72b2455a
PB
28037
28038@if bfd-bootstrap
28039maybe-configure-stage1-bfd: configure-stage1-bfd
9cb3fa6f
PB
28040configure-stage1-bfd:
28041 @$(MAKE) stage1-start
28042 @[ -f bfd/Makefile ] && exit 0 || : ; \
1d39f329 28043 r=`${PWD_COMMAND}`; export r; \
378fce5b 28044 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ffa0b57 28045 $(HOST_EXPORTS) \
72b2455a
PB
28046 echo Configuring stage 1 in bfd ; \
28047 cd bfd || exit 1; \
1d39f329
NN
28048 case $(srcdir) in \
28049 \.) \
28050 srcdiroption="--srcdir=."; \
28051 libsrcdir=".";; \
28052 /* | [A-Za-z]:[\\/]*) \
72b2455a
PB
28053 srcdiroption="--srcdir=$(srcdir)/bfd"; \
28054 libsrcdir="$$s/bfd";; \
1d39f329 28055 *) \
72b2455a
PB
28056 srcdiroption="--srcdir=../$(srcdir)/bfd"; \
28057 libsrcdir="$$s/bfd";; \
1d39f329
NN
28058 esac; \
28059 $(SHELL) $${libsrcdir}/configure \
4fa63067 28060 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 28061 --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
1d39f329 28062
72b2455a
PB
28063maybe-all-stage1-bfd: all-stage1-bfd
28064all-stage1-bfd: configure-stage1-bfd
9cb3fa6f 28065 @$(MAKE) stage1-start
dfdffa2c 28066 @r=`${PWD_COMMAND}`; export r; \
378fce5b 28067 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ffa0b57 28068 $(HOST_EXPORTS) \
72b2455a
PB
28069 cd bfd && \
28070 $(MAKE) $(FLAGS_TO_PASS) \
9cb3fa6f 28071 CFLAGS="$(STAGE1_CFLAGS)"
0df3d27f
PB
28072
28073maybe-clean-stage1-bfd: clean-stage1-bfd
28074clean-stage1-bfd:
28075 @[ -f bfd/Makefile ] || [ -f stage1-bfd/Makefile ] \
28076 || exit 0 ; \
28077 [ -f bfd/Makefile ] || $(MAKE) stage1-start ; \
28078 cd bfd && \
28079 $(MAKE) $(FLAGS_TO_PASS) \
28080 CFLAGS="$(STAGE1_CFLAGS)" clean
72b2455a
PB
28081@endif bfd-bootstrap
28082
0df3d27f 28083
9cb3fa6f
PB
28084.PHONY: configure-stage1-opcodes maybe-configure-stage1-opcodes
28085.PHONY: all-stage1-opcodes maybe-all-stage1-opcodes
0df3d27f 28086.PHONY: clean-stage1-opcodes maybe-clean-stage1-opcodes
9cb3fa6f 28087
72b2455a
PB
28088maybe-configure-stage1-opcodes:
28089maybe-all-stage1-opcodes:
0df3d27f 28090maybe-clean-stage1-opcodes:
72b2455a
PB
28091
28092@if opcodes-bootstrap
28093maybe-configure-stage1-opcodes: configure-stage1-opcodes
9cb3fa6f
PB
28094configure-stage1-opcodes:
28095 @$(MAKE) stage1-start
28096 @[ -f opcodes/Makefile ] && exit 0 || : ; \
1d39f329 28097 r=`${PWD_COMMAND}`; export r; \
378fce5b 28098 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
72b2455a
PB
28099 $(HOST_EXPORTS) \
28100 echo Configuring stage 1 in opcodes ; \
28101 cd opcodes || exit 1; \
1d39f329
NN
28102 case $(srcdir) in \
28103 \.) \
28104 srcdiroption="--srcdir=."; \
28105 libsrcdir=".";; \
28106 /* | [A-Za-z]:[\\/]*) \
72b2455a
PB
28107 srcdiroption="--srcdir=$(srcdir)/opcodes"; \
28108 libsrcdir="$$s/opcodes";; \
1d39f329 28109 *) \
72b2455a
PB
28110 srcdiroption="--srcdir=../$(srcdir)/opcodes"; \
28111 libsrcdir="$$s/opcodes";; \
1d39f329
NN
28112 esac; \
28113 $(SHELL) $${libsrcdir}/configure \
dfdffa2c 28114 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 28115 --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
1d39f329 28116
72b2455a
PB
28117maybe-all-stage1-opcodes: all-stage1-opcodes
28118all-stage1-opcodes: configure-stage1-opcodes
9cb3fa6f 28119 @$(MAKE) stage1-start
dfdffa2c 28120 @r=`${PWD_COMMAND}`; export r; \
378fce5b 28121 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
72b2455a
PB
28122 $(HOST_EXPORTS) \
28123 cd opcodes && \
28124 $(MAKE) $(FLAGS_TO_PASS) \
9cb3fa6f 28125 CFLAGS="$(STAGE1_CFLAGS)"
0df3d27f
PB
28126
28127maybe-clean-stage1-opcodes: clean-stage1-opcodes
28128clean-stage1-opcodes:
28129 @[ -f opcodes/Makefile ] || [ -f stage1-opcodes/Makefile ] \
28130 || exit 0 ; \
28131 [ -f opcodes/Makefile ] || $(MAKE) stage1-start ; \
28132 cd opcodes && \
28133 $(MAKE) $(FLAGS_TO_PASS) \
28134 CFLAGS="$(STAGE1_CFLAGS)" clean
72b2455a
PB
28135@endif opcodes-bootstrap
28136
0df3d27f 28137
9cb3fa6f
PB
28138.PHONY: configure-stage1-binutils maybe-configure-stage1-binutils
28139.PHONY: all-stage1-binutils maybe-all-stage1-binutils
0df3d27f 28140.PHONY: clean-stage1-binutils maybe-clean-stage1-binutils
9cb3fa6f 28141
72b2455a
PB
28142maybe-configure-stage1-binutils:
28143maybe-all-stage1-binutils:
0df3d27f 28144maybe-clean-stage1-binutils:
72b2455a
PB
28145
28146@if binutils-bootstrap
28147maybe-configure-stage1-binutils: configure-stage1-binutils
9cb3fa6f
PB
28148configure-stage1-binutils:
28149 @$(MAKE) stage1-start
28150 @[ -f binutils/Makefile ] && exit 0 || : ; \
72b2455a
PB
28151 r=`${PWD_COMMAND}`; export r; \
28152 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28153 $(HOST_EXPORTS) \
28154 echo Configuring stage 1 in binutils ; \
28155 cd binutils || exit 1; \
28156 case $(srcdir) in \
28157 \.) \
28158 srcdiroption="--srcdir=."; \
28159 libsrcdir=".";; \
28160 /* | [A-Za-z]:[\\/]*) \
28161 srcdiroption="--srcdir=$(srcdir)/binutils"; \
28162 libsrcdir="$$s/binutils";; \
28163 *) \
28164 srcdiroption="--srcdir=../$(srcdir)/binutils"; \
28165 libsrcdir="$$s/binutils";; \
28166 esac; \
28167 $(SHELL) $${libsrcdir}/configure \
28168 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 28169 --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
72b2455a
PB
28170
28171maybe-all-stage1-binutils: all-stage1-binutils
28172all-stage1-binutils: configure-stage1-binutils
9cb3fa6f 28173 @$(MAKE) stage1-start
72b2455a
PB
28174 @r=`${PWD_COMMAND}`; export r; \
28175 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28176 $(HOST_EXPORTS) \
28177 cd binutils && \
28178 $(MAKE) $(FLAGS_TO_PASS) \
9cb3fa6f 28179 CFLAGS="$(STAGE1_CFLAGS)"
0df3d27f
PB
28180
28181maybe-clean-stage1-binutils: clean-stage1-binutils
28182clean-stage1-binutils:
28183 @[ -f binutils/Makefile ] || [ -f stage1-binutils/Makefile ] \
28184 || exit 0 ; \
28185 [ -f binutils/Makefile ] || $(MAKE) stage1-start ; \
28186 cd binutils && \
28187 $(MAKE) $(FLAGS_TO_PASS) \
28188 CFLAGS="$(STAGE1_CFLAGS)" clean
72b2455a
PB
28189@endif binutils-bootstrap
28190
0df3d27f 28191
9cb3fa6f
PB
28192.PHONY: configure-stage1-gas maybe-configure-stage1-gas
28193.PHONY: all-stage1-gas maybe-all-stage1-gas
0df3d27f 28194.PHONY: clean-stage1-gas maybe-clean-stage1-gas
9cb3fa6f 28195
72b2455a
PB
28196maybe-configure-stage1-gas:
28197maybe-all-stage1-gas:
0df3d27f 28198maybe-clean-stage1-gas:
72b2455a
PB
28199
28200@if gas-bootstrap
28201maybe-configure-stage1-gas: configure-stage1-gas
9cb3fa6f
PB
28202configure-stage1-gas:
28203 @$(MAKE) stage1-start
28204 @[ -f gas/Makefile ] && exit 0 || : ; \
72b2455a
PB
28205 r=`${PWD_COMMAND}`; export r; \
28206 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28207 $(HOST_EXPORTS) \
28208 echo Configuring stage 1 in gas ; \
28209 cd gas || exit 1; \
28210 case $(srcdir) in \
28211 \.) \
28212 srcdiroption="--srcdir=."; \
28213 libsrcdir=".";; \
28214 /* | [A-Za-z]:[\\/]*) \
28215 srcdiroption="--srcdir=$(srcdir)/gas"; \
28216 libsrcdir="$$s/gas";; \
28217 *) \
28218 srcdiroption="--srcdir=../$(srcdir)/gas"; \
28219 libsrcdir="$$s/gas";; \
28220 esac; \
28221 $(SHELL) $${libsrcdir}/configure \
28222 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 28223 --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
72b2455a
PB
28224
28225maybe-all-stage1-gas: all-stage1-gas
28226all-stage1-gas: configure-stage1-gas
9cb3fa6f 28227 @$(MAKE) stage1-start
72b2455a
PB
28228 @r=`${PWD_COMMAND}`; export r; \
28229 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28230 $(HOST_EXPORTS) \
28231 cd gas && \
28232 $(MAKE) $(FLAGS_TO_PASS) \
9cb3fa6f 28233 CFLAGS="$(STAGE1_CFLAGS)"
0df3d27f
PB
28234
28235maybe-clean-stage1-gas: clean-stage1-gas
28236clean-stage1-gas:
28237 @[ -f gas/Makefile ] || [ -f stage1-gas/Makefile ] \
28238 || exit 0 ; \
28239 [ -f gas/Makefile ] || $(MAKE) stage1-start ; \
28240 cd gas && \
28241 $(MAKE) $(FLAGS_TO_PASS) \
28242 CFLAGS="$(STAGE1_CFLAGS)" clean
72b2455a
PB
28243@endif gas-bootstrap
28244
0df3d27f 28245
9cb3fa6f
PB
28246.PHONY: configure-stage1-gcc maybe-configure-stage1-gcc
28247.PHONY: all-stage1-gcc maybe-all-stage1-gcc
0df3d27f 28248.PHONY: clean-stage1-gcc maybe-clean-stage1-gcc
9cb3fa6f 28249
72b2455a
PB
28250maybe-configure-stage1-gcc:
28251maybe-all-stage1-gcc:
0df3d27f 28252maybe-clean-stage1-gcc:
72b2455a
PB
28253
28254@if gcc-bootstrap
28255maybe-configure-stage1-gcc: configure-stage1-gcc
9cb3fa6f
PB
28256configure-stage1-gcc:
28257 @$(MAKE) stage1-start
28258 @[ -f gcc/Makefile ] && exit 0 || : ; \
72b2455a
PB
28259 r=`${PWD_COMMAND}`; export r; \
28260 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28261 $(HOST_EXPORTS) \
28262 echo Configuring stage 1 in gcc ; \
28263 cd gcc || exit 1; \
28264 case $(srcdir) in \
28265 \.) \
28266 srcdiroption="--srcdir=."; \
28267 libsrcdir=".";; \
28268 /* | [A-Za-z]:[\\/]*) \
28269 srcdiroption="--srcdir=$(srcdir)/gcc"; \
28270 libsrcdir="$$s/gcc";; \
28271 *) \
28272 srcdiroption="--srcdir=../$(srcdir)/gcc"; \
28273 libsrcdir="$$s/gcc";; \
28274 esac; \
28275 $(SHELL) $${libsrcdir}/configure \
28276 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 28277 --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
72b2455a
PB
28278
28279maybe-all-stage1-gcc: all-stage1-gcc
28280all-stage1-gcc: configure-stage1-gcc
9cb3fa6f 28281 @$(MAKE) stage1-start
72b2455a
PB
28282 @r=`${PWD_COMMAND}`; export r; \
28283 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28284 $(HOST_EXPORTS) \
28285 cd gcc && \
28286 $(MAKE) $(FLAGS_TO_PASS) \
9cb3fa6f 28287 CFLAGS="$(STAGE1_CFLAGS)" $(EXTRA_GCC_FLAGS)
0df3d27f
PB
28288
28289maybe-clean-stage1-gcc: clean-stage1-gcc
28290clean-stage1-gcc:
28291 @[ -f gcc/Makefile ] || [ -f stage1-gcc/Makefile ] \
28292 || exit 0 ; \
28293 [ -f gcc/Makefile ] || $(MAKE) stage1-start ; \
28294 cd gcc && \
28295 $(MAKE) $(FLAGS_TO_PASS) \
28296 CFLAGS="$(STAGE1_CFLAGS)" $(EXTRA_GCC_FLAGS) clean
72b2455a
PB
28297@endif gcc-bootstrap
28298
0df3d27f 28299
9cb3fa6f
PB
28300.PHONY: configure-stage1-intl maybe-configure-stage1-intl
28301.PHONY: all-stage1-intl maybe-all-stage1-intl
0df3d27f 28302.PHONY: clean-stage1-intl maybe-clean-stage1-intl
9cb3fa6f 28303
72b2455a
PB
28304maybe-configure-stage1-intl:
28305maybe-all-stage1-intl:
0df3d27f 28306maybe-clean-stage1-intl:
72b2455a
PB
28307
28308@if intl-bootstrap
28309maybe-configure-stage1-intl: configure-stage1-intl
9cb3fa6f
PB
28310configure-stage1-intl:
28311 @$(MAKE) stage1-start
28312 @[ -f intl/Makefile ] && exit 0 || : ; \
72b2455a
PB
28313 r=`${PWD_COMMAND}`; export r; \
28314 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28315 $(HOST_EXPORTS) \
28316 echo Configuring stage 1 in intl ; \
28317 cd intl || exit 1; \
28318 case $(srcdir) in \
28319 \.) \
28320 srcdiroption="--srcdir=."; \
28321 libsrcdir=".";; \
28322 /* | [A-Za-z]:[\\/]*) \
28323 srcdiroption="--srcdir=$(srcdir)/intl"; \
28324 libsrcdir="$$s/intl";; \
28325 *) \
28326 srcdiroption="--srcdir=../$(srcdir)/intl"; \
28327 libsrcdir="$$s/intl";; \
28328 esac; \
28329 $(SHELL) $${libsrcdir}/configure \
28330 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 28331 --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
72b2455a
PB
28332
28333maybe-all-stage1-intl: all-stage1-intl
28334all-stage1-intl: configure-stage1-intl
9cb3fa6f 28335 @$(MAKE) stage1-start
72b2455a
PB
28336 @r=`${PWD_COMMAND}`; export r; \
28337 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28338 $(HOST_EXPORTS) \
28339 cd intl && \
28340 $(MAKE) $(FLAGS_TO_PASS) \
9cb3fa6f 28341 CFLAGS="$(STAGE1_CFLAGS)"
0df3d27f
PB
28342
28343maybe-clean-stage1-intl: clean-stage1-intl
28344clean-stage1-intl:
28345 @[ -f intl/Makefile ] || [ -f stage1-intl/Makefile ] \
28346 || exit 0 ; \
28347 [ -f intl/Makefile ] || $(MAKE) stage1-start ; \
28348 cd intl && \
28349 $(MAKE) $(FLAGS_TO_PASS) \
28350 CFLAGS="$(STAGE1_CFLAGS)" clean
72b2455a
PB
28351@endif intl-bootstrap
28352
0df3d27f 28353
9cb3fa6f
PB
28354.PHONY: configure-stage1-ld maybe-configure-stage1-ld
28355.PHONY: all-stage1-ld maybe-all-stage1-ld
0df3d27f 28356.PHONY: clean-stage1-ld maybe-clean-stage1-ld
9cb3fa6f 28357
72b2455a
PB
28358maybe-configure-stage1-ld:
28359maybe-all-stage1-ld:
0df3d27f 28360maybe-clean-stage1-ld:
72b2455a
PB
28361
28362@if ld-bootstrap
28363maybe-configure-stage1-ld: configure-stage1-ld
9cb3fa6f
PB
28364configure-stage1-ld:
28365 @$(MAKE) stage1-start
28366 @[ -f ld/Makefile ] && exit 0 || : ; \
72b2455a
PB
28367 r=`${PWD_COMMAND}`; export r; \
28368 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28369 $(HOST_EXPORTS) \
28370 echo Configuring stage 1 in ld ; \
28371 cd ld || exit 1; \
28372 case $(srcdir) in \
28373 \.) \
28374 srcdiroption="--srcdir=."; \
28375 libsrcdir=".";; \
28376 /* | [A-Za-z]:[\\/]*) \
28377 srcdiroption="--srcdir=$(srcdir)/ld"; \
28378 libsrcdir="$$s/ld";; \
28379 *) \
28380 srcdiroption="--srcdir=../$(srcdir)/ld"; \
28381 libsrcdir="$$s/ld";; \
28382 esac; \
28383 $(SHELL) $${libsrcdir}/configure \
28384 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 28385 --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
72b2455a
PB
28386
28387maybe-all-stage1-ld: all-stage1-ld
28388all-stage1-ld: configure-stage1-ld
9cb3fa6f 28389 @$(MAKE) stage1-start
72b2455a
PB
28390 @r=`${PWD_COMMAND}`; export r; \
28391 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28392 $(HOST_EXPORTS) \
28393 cd ld && \
28394 $(MAKE) $(FLAGS_TO_PASS) \
9cb3fa6f 28395 CFLAGS="$(STAGE1_CFLAGS)"
0df3d27f
PB
28396
28397maybe-clean-stage1-ld: clean-stage1-ld
28398clean-stage1-ld:
28399 @[ -f ld/Makefile ] || [ -f stage1-ld/Makefile ] \
28400 || exit 0 ; \
28401 [ -f ld/Makefile ] || $(MAKE) stage1-start ; \
28402 cd ld && \
28403 $(MAKE) $(FLAGS_TO_PASS) \
28404 CFLAGS="$(STAGE1_CFLAGS)" clean
72b2455a
PB
28405@endif ld-bootstrap
28406
0df3d27f 28407
9cb3fa6f
PB
28408.PHONY: configure-stage1-libcpp maybe-configure-stage1-libcpp
28409.PHONY: all-stage1-libcpp maybe-all-stage1-libcpp
0df3d27f 28410.PHONY: clean-stage1-libcpp maybe-clean-stage1-libcpp
9cb3fa6f 28411
72b2455a
PB
28412maybe-configure-stage1-libcpp:
28413maybe-all-stage1-libcpp:
0df3d27f 28414maybe-clean-stage1-libcpp:
72b2455a
PB
28415
28416@if libcpp-bootstrap
28417maybe-configure-stage1-libcpp: configure-stage1-libcpp
9cb3fa6f
PB
28418configure-stage1-libcpp:
28419 @$(MAKE) stage1-start
28420 @[ -f libcpp/Makefile ] && exit 0 || : ; \
72b2455a
PB
28421 r=`${PWD_COMMAND}`; export r; \
28422 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28423 $(HOST_EXPORTS) \
28424 echo Configuring stage 1 in libcpp ; \
28425 cd libcpp || exit 1; \
28426 case $(srcdir) in \
28427 \.) \
28428 srcdiroption="--srcdir=."; \
28429 libsrcdir=".";; \
28430 /* | [A-Za-z]:[\\/]*) \
28431 srcdiroption="--srcdir=$(srcdir)/libcpp"; \
28432 libsrcdir="$$s/libcpp";; \
28433 *) \
28434 srcdiroption="--srcdir=../$(srcdir)/libcpp"; \
28435 libsrcdir="$$s/libcpp";; \
28436 esac; \
28437 $(SHELL) $${libsrcdir}/configure \
28438 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 28439 --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
72b2455a
PB
28440
28441maybe-all-stage1-libcpp: all-stage1-libcpp
28442all-stage1-libcpp: configure-stage1-libcpp
9cb3fa6f 28443 @$(MAKE) stage1-start
72b2455a
PB
28444 @r=`${PWD_COMMAND}`; export r; \
28445 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28446 $(HOST_EXPORTS) \
28447 cd libcpp && \
28448 $(MAKE) $(FLAGS_TO_PASS) \
9cb3fa6f 28449 CFLAGS="$(STAGE1_CFLAGS)"
0df3d27f
PB
28450
28451maybe-clean-stage1-libcpp: clean-stage1-libcpp
28452clean-stage1-libcpp:
28453 @[ -f libcpp/Makefile ] || [ -f stage1-libcpp/Makefile ] \
28454 || exit 0 ; \
28455 [ -f libcpp/Makefile ] || $(MAKE) stage1-start ; \
28456 cd libcpp && \
28457 $(MAKE) $(FLAGS_TO_PASS) \
28458 CFLAGS="$(STAGE1_CFLAGS)" clean
72b2455a
PB
28459@endif libcpp-bootstrap
28460
0df3d27f 28461
9cb3fa6f
PB
28462.PHONY: configure-stage1-libiberty maybe-configure-stage1-libiberty
28463.PHONY: all-stage1-libiberty maybe-all-stage1-libiberty
0df3d27f 28464.PHONY: clean-stage1-libiberty maybe-clean-stage1-libiberty
9cb3fa6f 28465
72b2455a
PB
28466maybe-configure-stage1-libiberty:
28467maybe-all-stage1-libiberty:
0df3d27f 28468maybe-clean-stage1-libiberty:
72b2455a
PB
28469
28470@if libiberty-bootstrap
28471maybe-configure-stage1-libiberty: configure-stage1-libiberty
9cb3fa6f
PB
28472configure-stage1-libiberty:
28473 @$(MAKE) stage1-start
28474 @[ -f libiberty/Makefile ] && exit 0 || : ; \
72b2455a
PB
28475 r=`${PWD_COMMAND}`; export r; \
28476 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28477 $(HOST_EXPORTS) \
28478 echo Configuring stage 1 in libiberty ; \
28479 cd libiberty || exit 1; \
28480 case $(srcdir) in \
28481 \.) \
28482 srcdiroption="--srcdir=."; \
28483 libsrcdir=".";; \
28484 /* | [A-Za-z]:[\\/]*) \
28485 srcdiroption="--srcdir=$(srcdir)/libiberty"; \
28486 libsrcdir="$$s/libiberty";; \
28487 *) \
28488 srcdiroption="--srcdir=../$(srcdir)/libiberty"; \
28489 libsrcdir="$$s/libiberty";; \
28490 esac; \
28491 $(SHELL) $${libsrcdir}/configure \
28492 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 28493 --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
72b2455a
PB
28494
28495maybe-all-stage1-libiberty: all-stage1-libiberty
28496all-stage1-libiberty: configure-stage1-libiberty
9cb3fa6f 28497 @$(MAKE) stage1-start
72b2455a
PB
28498 @r=`${PWD_COMMAND}`; export r; \
28499 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28500 $(HOST_EXPORTS) \
28501 cd libiberty && \
28502 $(MAKE) $(FLAGS_TO_PASS) \
9cb3fa6f 28503 CFLAGS="$(STAGE1_CFLAGS)"
0df3d27f
PB
28504
28505maybe-clean-stage1-libiberty: clean-stage1-libiberty
28506clean-stage1-libiberty:
28507 @[ -f libiberty/Makefile ] || [ -f stage1-libiberty/Makefile ] \
28508 || exit 0 ; \
28509 [ -f libiberty/Makefile ] || $(MAKE) stage1-start ; \
28510 cd libiberty && \
28511 $(MAKE) $(FLAGS_TO_PASS) \
28512 CFLAGS="$(STAGE1_CFLAGS)" clean
72b2455a
PB
28513@endif libiberty-bootstrap
28514
0df3d27f 28515
9cb3fa6f
PB
28516.PHONY: configure-stage1-zlib maybe-configure-stage1-zlib
28517.PHONY: all-stage1-zlib maybe-all-stage1-zlib
0df3d27f 28518.PHONY: clean-stage1-zlib maybe-clean-stage1-zlib
9cb3fa6f 28519
72b2455a
PB
28520maybe-configure-stage1-zlib:
28521maybe-all-stage1-zlib:
0df3d27f 28522maybe-clean-stage1-zlib:
72b2455a
PB
28523
28524@if zlib-bootstrap
28525maybe-configure-stage1-zlib: configure-stage1-zlib
9cb3fa6f
PB
28526configure-stage1-zlib:
28527 @$(MAKE) stage1-start
28528 @[ -f zlib/Makefile ] && exit 0 || : ; \
72b2455a
PB
28529 r=`${PWD_COMMAND}`; export r; \
28530 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28531 $(HOST_EXPORTS) \
28532 echo Configuring stage 1 in zlib ; \
28533 cd zlib || exit 1; \
28534 case $(srcdir) in \
28535 \.) \
28536 srcdiroption="--srcdir=."; \
28537 libsrcdir=".";; \
28538 /* | [A-Za-z]:[\\/]*) \
28539 srcdiroption="--srcdir=$(srcdir)/zlib"; \
28540 libsrcdir="$$s/zlib";; \
28541 *) \
28542 srcdiroption="--srcdir=../$(srcdir)/zlib"; \
28543 libsrcdir="$$s/zlib";; \
28544 esac; \
28545 $(SHELL) $${libsrcdir}/configure \
28546 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 28547 --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
72b2455a
PB
28548
28549maybe-all-stage1-zlib: all-stage1-zlib
28550all-stage1-zlib: configure-stage1-zlib
9cb3fa6f 28551 @$(MAKE) stage1-start
72b2455a
PB
28552 @r=`${PWD_COMMAND}`; export r; \
28553 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28554 $(HOST_EXPORTS) \
28555 cd zlib && \
28556 $(MAKE) $(FLAGS_TO_PASS) \
9cb3fa6f 28557 CFLAGS="$(STAGE1_CFLAGS)"
0df3d27f
PB
28558
28559maybe-clean-stage1-zlib: clean-stage1-zlib
28560clean-stage1-zlib:
28561 @[ -f zlib/Makefile ] || [ -f stage1-zlib/Makefile ] \
28562 || exit 0 ; \
28563 [ -f zlib/Makefile ] || $(MAKE) stage1-start ; \
28564 cd zlib && \
28565 $(MAKE) $(FLAGS_TO_PASS) \
28566 CFLAGS="$(STAGE1_CFLAGS)" clean
72b2455a
PB
28567@endif zlib-bootstrap
28568
28569
0df3d27f 28570
72b2455a
PB
28571# FIXME: Will not need to be conditional when toplevel bootstrap is the
28572# only possibility, but now it conflicts with no-bootstrap rules
28573@if gcc-bootstrap
28574
28575
28576
28577
0df3d27f 28578# Rules to wipe a stage and all the following ones, also used for cleanstrap
72b2455a 28579
0df3d27f 28580.PHONY: distclean-stage1
72b2455a
PB
28581distclean-stage1::
28582 [ -f stage_current ] && $(MAKE) `cat stage_current`-end || :
9cb3fa6f 28583 rm -rf stage1-*
72b2455a
PB
28584
28585
28586@endif gcc-bootstrap
28587
28588
28589.PHONY: stage2-start stage2-end
28590
28591stage2-start::
9cb3fa6f 28592 @[ -f stage_current ] && $(MAKE) `cat stage_current`-end || : ; \
72b2455a
PB
28593 echo stage2 > stage_current ; \
28594 echo stage2 > stage_last
28595@if bfd
9cb3fa6f 28596 @[ -d stage2-bfd ] || mkdir stage2-bfd; \
72b2455a
PB
28597 set stage2-bfd bfd ; @CREATE_LINK_TO_DIR@ ; \
28598 set stage1-bfd prev-bfd ; @CREATE_LINK_TO_DIR@
28599@endif bfd
28600@if opcodes
9cb3fa6f 28601 @[ -d stage2-opcodes ] || mkdir stage2-opcodes; \
72b2455a
PB
28602 set stage2-opcodes opcodes ; @CREATE_LINK_TO_DIR@ ; \
28603 set stage1-opcodes prev-opcodes ; @CREATE_LINK_TO_DIR@
28604@endif opcodes
28605@if binutils
9cb3fa6f 28606 @[ -d stage2-binutils ] || mkdir stage2-binutils; \
72b2455a
PB
28607 set stage2-binutils binutils ; @CREATE_LINK_TO_DIR@ ; \
28608 set stage1-binutils prev-binutils ; @CREATE_LINK_TO_DIR@
28609@endif binutils
28610@if gas
9cb3fa6f 28611 @[ -d stage2-gas ] || mkdir stage2-gas; \
72b2455a
PB
28612 set stage2-gas gas ; @CREATE_LINK_TO_DIR@ ; \
28613 set stage1-gas prev-gas ; @CREATE_LINK_TO_DIR@
28614@endif gas
28615@if gcc
9cb3fa6f 28616 @[ -d stage2-gcc ] || mkdir stage2-gcc; \
72b2455a
PB
28617 set stage2-gcc gcc ; @CREATE_LINK_TO_DIR@ ; \
28618 set stage1-gcc prev-gcc ; @CREATE_LINK_TO_DIR@
28619@endif gcc
28620@if intl
9cb3fa6f 28621 @[ -d stage2-intl ] || mkdir stage2-intl; \
72b2455a
PB
28622 set stage2-intl intl ; @CREATE_LINK_TO_DIR@ ; \
28623 set stage1-intl prev-intl ; @CREATE_LINK_TO_DIR@
28624@endif intl
28625@if ld
9cb3fa6f 28626 @[ -d stage2-ld ] || mkdir stage2-ld; \
72b2455a
PB
28627 set stage2-ld ld ; @CREATE_LINK_TO_DIR@ ; \
28628 set stage1-ld prev-ld ; @CREATE_LINK_TO_DIR@
28629@endif ld
28630@if libcpp
9cb3fa6f 28631 @[ -d stage2-libcpp ] || mkdir stage2-libcpp; \
72b2455a
PB
28632 set stage2-libcpp libcpp ; @CREATE_LINK_TO_DIR@ ; \
28633 set stage1-libcpp prev-libcpp ; @CREATE_LINK_TO_DIR@
28634@endif libcpp
72b2455a 28635@if libiberty
9cb3fa6f 28636 @[ -d stage2-libiberty ] || mkdir stage2-libiberty; \
72b2455a
PB
28637 set stage2-libiberty libiberty ; @CREATE_LINK_TO_DIR@ ; \
28638 set stage1-libiberty prev-libiberty ; @CREATE_LINK_TO_DIR@
28639@endif libiberty
28640@if zlib
9cb3fa6f 28641 @[ -d stage2-zlib ] || mkdir stage2-zlib; \
72b2455a
PB
28642 set stage2-zlib zlib ; @CREATE_LINK_TO_DIR@ ; \
28643 set stage1-zlib prev-zlib ; @CREATE_LINK_TO_DIR@
28644@endif zlib
28645
28646stage2-end::
9cb3fa6f 28647 @rm -f stage_current
72b2455a 28648@if bfd
9cb3fa6f 28649 @set bfd stage2-bfd ; @UNDO_LINK_TO_DIR@ ; \
72b2455a
PB
28650 set prev-bfd stage1-bfd ; @UNDO_LINK_TO_DIR@
28651@endif bfd
28652@if opcodes
9cb3fa6f 28653 @set opcodes stage2-opcodes ; @UNDO_LINK_TO_DIR@ ; \
72b2455a
PB
28654 set prev-opcodes stage1-opcodes ; @UNDO_LINK_TO_DIR@
28655@endif opcodes
28656@if binutils
9cb3fa6f 28657 @set binutils stage2-binutils ; @UNDO_LINK_TO_DIR@ ; \
72b2455a
PB
28658 set prev-binutils stage1-binutils ; @UNDO_LINK_TO_DIR@
28659@endif binutils
28660@if gas
9cb3fa6f 28661 @set gas stage2-gas ; @UNDO_LINK_TO_DIR@ ; \
72b2455a
PB
28662 set prev-gas stage1-gas ; @UNDO_LINK_TO_DIR@
28663@endif gas
28664@if gcc
9cb3fa6f 28665 @set gcc stage2-gcc ; @UNDO_LINK_TO_DIR@ ; \
72b2455a
PB
28666 set prev-gcc stage1-gcc ; @UNDO_LINK_TO_DIR@
28667@endif gcc
28668@if intl
9cb3fa6f 28669 @set intl stage2-intl ; @UNDO_LINK_TO_DIR@ ; \
72b2455a
PB
28670 set prev-intl stage1-intl ; @UNDO_LINK_TO_DIR@
28671@endif intl
28672@if ld
9cb3fa6f 28673 @set ld stage2-ld ; @UNDO_LINK_TO_DIR@ ; \
72b2455a
PB
28674 set prev-ld stage1-ld ; @UNDO_LINK_TO_DIR@
28675@endif ld
28676@if libcpp
9cb3fa6f 28677 @set libcpp stage2-libcpp ; @UNDO_LINK_TO_DIR@ ; \
72b2455a
PB
28678 set prev-libcpp stage1-libcpp ; @UNDO_LINK_TO_DIR@
28679@endif libcpp
72b2455a 28680@if libiberty
9cb3fa6f 28681 @set libiberty stage2-libiberty ; @UNDO_LINK_TO_DIR@ ; \
72b2455a
PB
28682 set prev-libiberty stage1-libiberty ; @UNDO_LINK_TO_DIR@
28683@endif libiberty
28684@if zlib
9cb3fa6f 28685 @set zlib stage2-zlib ; @UNDO_LINK_TO_DIR@ ; \
72b2455a
PB
28686 set prev-zlib stage1-zlib ; @UNDO_LINK_TO_DIR@
28687@endif zlib
28688
28689# Bubble a bugfix through all the stages up to stage 2. They
28690# are remade, but not reconfigured. The next stage (if any) will not
28691# be reconfigured as well.
28692.PHONY: stage2-bubble
28693stage2-bubble:: stage1-bubble
9cb3fa6f
PB
28694 @if test -f stage2-lean || test -f stage1-lean ; then \
28695 echo Skipping rebuild of stage2 ; \
28696 else \
0df3d27f 28697 $(MAKE) $(RECURSE_FLAGS_TO_PASS) NOTPARALLEL= all-stage2; \
9cb3fa6f 28698 fi
72b2455a 28699
0df3d27f 28700.PHONY: all-stage2 clean-stage2
72b2455a
PB
28701all-stage2: \
28702 maybe-all-stage2-bfd \
28703 maybe-all-stage2-opcodes \
28704 maybe-all-stage2-binutils \
28705 maybe-all-stage2-gas \
28706 maybe-all-stage2-gcc \
28707 maybe-all-stage2-intl \
28708 maybe-all-stage2-ld \
28709 maybe-all-stage2-libcpp \
72b2455a
PB
28710 maybe-all-stage2-libiberty \
28711 maybe-all-stage2-zlib
28712
0df3d27f
PB
28713do-clean: clean-stage2
28714clean-stage2: \
28715 maybe-clean-stage2-bfd \
28716 maybe-clean-stage2-opcodes \
28717 maybe-clean-stage2-binutils \
28718 maybe-clean-stage2-gas \
28719 maybe-clean-stage2-gcc \
28720 maybe-clean-stage2-intl \
28721 maybe-clean-stage2-ld \
28722 maybe-clean-stage2-libcpp \
0df3d27f
PB
28723 maybe-clean-stage2-libiberty \
28724 maybe-clean-stage2-zlib
28725
72b2455a 28726
9cb3fa6f
PB
28727.PHONY: configure-stage2-bfd maybe-configure-stage2-bfd
28728.PHONY: all-stage2-bfd maybe-all-stage2-bfd
0df3d27f 28729.PHONY: clean-stage2-bfd maybe-clean-stage2-bfd
9cb3fa6f 28730
72b2455a
PB
28731maybe-configure-stage2-bfd:
28732maybe-all-stage2-bfd:
0df3d27f 28733maybe-clean-stage2-bfd:
72b2455a
PB
28734
28735@if bfd-bootstrap
28736maybe-configure-stage2-bfd: configure-stage2-bfd
9cb3fa6f
PB
28737configure-stage2-bfd:
28738 @$(MAKE) stage2-start
28739 @[ -f bfd/Makefile ] && exit 0 || : ; \
72b2455a
PB
28740 r=`${PWD_COMMAND}`; export r; \
28741 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28742 $(STAGE_HOST_EXPORTS) \
28743 echo Configuring stage 2 in bfd ; \
28744 cd bfd || exit 1; \
28745 case $(srcdir) in \
28746 \.) \
28747 srcdiroption="--srcdir=."; \
28748 libsrcdir=".";; \
28749 /* | [A-Za-z]:[\\/]*) \
28750 srcdiroption="--srcdir=$(srcdir)/bfd"; \
28751 libsrcdir="$$s/bfd";; \
28752 *) \
28753 srcdiroption="--srcdir=../$(srcdir)/bfd"; \
28754 libsrcdir="$$s/bfd";; \
28755 esac; \
28756 $(SHELL) $${libsrcdir}/configure \
28757 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 28758 @stage2_werror_flag@
72b2455a
PB
28759
28760maybe-all-stage2-bfd: all-stage2-bfd
28761all-stage2-bfd: configure-stage2-bfd
9cb3fa6f 28762 @$(MAKE) stage2-start
72b2455a
PB
28763 @r=`${PWD_COMMAND}`; export r; \
28764 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28765 $(STAGE_HOST_EXPORTS) \
28766 cd bfd && \
28767 $(MAKE) $(FLAGS_TO_PASS) \
28768 $(POSTSTAGE1_FLAGS_TO_PASS) \
9cb3fa6f 28769
0df3d27f
PB
28770
28771maybe-clean-stage2-bfd: clean-stage2-bfd
28772clean-stage2-bfd:
28773 @[ -f bfd/Makefile ] || [ -f stage2-bfd/Makefile ] \
28774 || exit 0 ; \
28775 [ -f bfd/Makefile ] || $(MAKE) stage2-start ; \
28776 cd bfd && \
28777 $(MAKE) $(FLAGS_TO_PASS) \
28778 $(POSTSTAGE1_FLAGS_TO_PASS) \
28779 clean
72b2455a
PB
28780@endif bfd-bootstrap
28781
0df3d27f 28782
9cb3fa6f
PB
28783.PHONY: configure-stage2-opcodes maybe-configure-stage2-opcodes
28784.PHONY: all-stage2-opcodes maybe-all-stage2-opcodes
0df3d27f 28785.PHONY: clean-stage2-opcodes maybe-clean-stage2-opcodes
9cb3fa6f 28786
72b2455a
PB
28787maybe-configure-stage2-opcodes:
28788maybe-all-stage2-opcodes:
0df3d27f 28789maybe-clean-stage2-opcodes:
72b2455a
PB
28790
28791@if opcodes-bootstrap
28792maybe-configure-stage2-opcodes: configure-stage2-opcodes
9cb3fa6f
PB
28793configure-stage2-opcodes:
28794 @$(MAKE) stage2-start
28795 @[ -f opcodes/Makefile ] && exit 0 || : ; \
72b2455a
PB
28796 r=`${PWD_COMMAND}`; export r; \
28797 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28798 $(STAGE_HOST_EXPORTS) \
28799 echo Configuring stage 2 in opcodes ; \
28800 cd opcodes || exit 1; \
28801 case $(srcdir) in \
28802 \.) \
28803 srcdiroption="--srcdir=."; \
28804 libsrcdir=".";; \
28805 /* | [A-Za-z]:[\\/]*) \
28806 srcdiroption="--srcdir=$(srcdir)/opcodes"; \
28807 libsrcdir="$$s/opcodes";; \
28808 *) \
28809 srcdiroption="--srcdir=../$(srcdir)/opcodes"; \
28810 libsrcdir="$$s/opcodes";; \
28811 esac; \
28812 $(SHELL) $${libsrcdir}/configure \
28813 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 28814 @stage2_werror_flag@
72b2455a
PB
28815
28816maybe-all-stage2-opcodes: all-stage2-opcodes
28817all-stage2-opcodes: configure-stage2-opcodes
9cb3fa6f 28818 @$(MAKE) stage2-start
72b2455a
PB
28819 @r=`${PWD_COMMAND}`; export r; \
28820 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28821 $(STAGE_HOST_EXPORTS) \
28822 cd opcodes && \
28823 $(MAKE) $(FLAGS_TO_PASS) \
28824 $(POSTSTAGE1_FLAGS_TO_PASS) \
9cb3fa6f 28825
0df3d27f
PB
28826
28827maybe-clean-stage2-opcodes: clean-stage2-opcodes
28828clean-stage2-opcodes:
28829 @[ -f opcodes/Makefile ] || [ -f stage2-opcodes/Makefile ] \
28830 || exit 0 ; \
28831 [ -f opcodes/Makefile ] || $(MAKE) stage2-start ; \
28832 cd opcodes && \
28833 $(MAKE) $(FLAGS_TO_PASS) \
28834 $(POSTSTAGE1_FLAGS_TO_PASS) \
28835 clean
72b2455a
PB
28836@endif opcodes-bootstrap
28837
0df3d27f 28838
9cb3fa6f
PB
28839.PHONY: configure-stage2-binutils maybe-configure-stage2-binutils
28840.PHONY: all-stage2-binutils maybe-all-stage2-binutils
0df3d27f 28841.PHONY: clean-stage2-binutils maybe-clean-stage2-binutils
9cb3fa6f 28842
72b2455a
PB
28843maybe-configure-stage2-binutils:
28844maybe-all-stage2-binutils:
0df3d27f 28845maybe-clean-stage2-binutils:
72b2455a
PB
28846
28847@if binutils-bootstrap
28848maybe-configure-stage2-binutils: configure-stage2-binutils
9cb3fa6f
PB
28849configure-stage2-binutils:
28850 @$(MAKE) stage2-start
28851 @[ -f binutils/Makefile ] && exit 0 || : ; \
72b2455a
PB
28852 r=`${PWD_COMMAND}`; export r; \
28853 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28854 $(STAGE_HOST_EXPORTS) \
28855 echo Configuring stage 2 in binutils ; \
28856 cd binutils || exit 1; \
28857 case $(srcdir) in \
28858 \.) \
28859 srcdiroption="--srcdir=."; \
28860 libsrcdir=".";; \
28861 /* | [A-Za-z]:[\\/]*) \
28862 srcdiroption="--srcdir=$(srcdir)/binutils"; \
28863 libsrcdir="$$s/binutils";; \
28864 *) \
28865 srcdiroption="--srcdir=../$(srcdir)/binutils"; \
28866 libsrcdir="$$s/binutils";; \
28867 esac; \
28868 $(SHELL) $${libsrcdir}/configure \
28869 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 28870 @stage2_werror_flag@
72b2455a
PB
28871
28872maybe-all-stage2-binutils: all-stage2-binutils
28873all-stage2-binutils: configure-stage2-binutils
9cb3fa6f 28874 @$(MAKE) stage2-start
72b2455a
PB
28875 @r=`${PWD_COMMAND}`; export r; \
28876 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28877 $(STAGE_HOST_EXPORTS) \
28878 cd binutils && \
28879 $(MAKE) $(FLAGS_TO_PASS) \
28880 $(POSTSTAGE1_FLAGS_TO_PASS) \
9cb3fa6f 28881
0df3d27f
PB
28882
28883maybe-clean-stage2-binutils: clean-stage2-binutils
28884clean-stage2-binutils:
28885 @[ -f binutils/Makefile ] || [ -f stage2-binutils/Makefile ] \
28886 || exit 0 ; \
28887 [ -f binutils/Makefile ] || $(MAKE) stage2-start ; \
28888 cd binutils && \
28889 $(MAKE) $(FLAGS_TO_PASS) \
28890 $(POSTSTAGE1_FLAGS_TO_PASS) \
28891 clean
72b2455a
PB
28892@endif binutils-bootstrap
28893
0df3d27f 28894
9cb3fa6f
PB
28895.PHONY: configure-stage2-gas maybe-configure-stage2-gas
28896.PHONY: all-stage2-gas maybe-all-stage2-gas
0df3d27f 28897.PHONY: clean-stage2-gas maybe-clean-stage2-gas
9cb3fa6f 28898
72b2455a
PB
28899maybe-configure-stage2-gas:
28900maybe-all-stage2-gas:
0df3d27f 28901maybe-clean-stage2-gas:
72b2455a
PB
28902
28903@if gas-bootstrap
28904maybe-configure-stage2-gas: configure-stage2-gas
9cb3fa6f
PB
28905configure-stage2-gas:
28906 @$(MAKE) stage2-start
28907 @[ -f gas/Makefile ] && exit 0 || : ; \
72b2455a
PB
28908 r=`${PWD_COMMAND}`; export r; \
28909 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28910 $(STAGE_HOST_EXPORTS) \
28911 echo Configuring stage 2 in gas ; \
28912 cd gas || exit 1; \
28913 case $(srcdir) in \
28914 \.) \
28915 srcdiroption="--srcdir=."; \
28916 libsrcdir=".";; \
28917 /* | [A-Za-z]:[\\/]*) \
28918 srcdiroption="--srcdir=$(srcdir)/gas"; \
28919 libsrcdir="$$s/gas";; \
28920 *) \
28921 srcdiroption="--srcdir=../$(srcdir)/gas"; \
28922 libsrcdir="$$s/gas";; \
28923 esac; \
28924 $(SHELL) $${libsrcdir}/configure \
28925 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 28926 @stage2_werror_flag@
72b2455a
PB
28927
28928maybe-all-stage2-gas: all-stage2-gas
28929all-stage2-gas: configure-stage2-gas
9cb3fa6f 28930 @$(MAKE) stage2-start
72b2455a
PB
28931 @r=`${PWD_COMMAND}`; export r; \
28932 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28933 $(STAGE_HOST_EXPORTS) \
28934 cd gas && \
28935 $(MAKE) $(FLAGS_TO_PASS) \
28936 $(POSTSTAGE1_FLAGS_TO_PASS) \
9cb3fa6f 28937
0df3d27f
PB
28938
28939maybe-clean-stage2-gas: clean-stage2-gas
28940clean-stage2-gas:
28941 @[ -f gas/Makefile ] || [ -f stage2-gas/Makefile ] \
28942 || exit 0 ; \
28943 [ -f gas/Makefile ] || $(MAKE) stage2-start ; \
28944 cd gas && \
28945 $(MAKE) $(FLAGS_TO_PASS) \
28946 $(POSTSTAGE1_FLAGS_TO_PASS) \
28947 clean
72b2455a
PB
28948@endif gas-bootstrap
28949
0df3d27f 28950
9cb3fa6f
PB
28951.PHONY: configure-stage2-gcc maybe-configure-stage2-gcc
28952.PHONY: all-stage2-gcc maybe-all-stage2-gcc
0df3d27f 28953.PHONY: clean-stage2-gcc maybe-clean-stage2-gcc
9cb3fa6f 28954
72b2455a
PB
28955maybe-configure-stage2-gcc:
28956maybe-all-stage2-gcc:
0df3d27f 28957maybe-clean-stage2-gcc:
72b2455a
PB
28958
28959@if gcc-bootstrap
28960maybe-configure-stage2-gcc: configure-stage2-gcc
9cb3fa6f
PB
28961configure-stage2-gcc:
28962 @$(MAKE) stage2-start
28963 @[ -f gcc/Makefile ] && exit 0 || : ; \
72b2455a
PB
28964 r=`${PWD_COMMAND}`; export r; \
28965 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28966 $(STAGE_HOST_EXPORTS) \
28967 echo Configuring stage 2 in gcc ; \
28968 cd gcc || exit 1; \
28969 case $(srcdir) in \
28970 \.) \
28971 srcdiroption="--srcdir=."; \
28972 libsrcdir=".";; \
28973 /* | [A-Za-z]:[\\/]*) \
28974 srcdiroption="--srcdir=$(srcdir)/gcc"; \
28975 libsrcdir="$$s/gcc";; \
28976 *) \
28977 srcdiroption="--srcdir=../$(srcdir)/gcc"; \
28978 libsrcdir="$$s/gcc";; \
28979 esac; \
28980 $(SHELL) $${libsrcdir}/configure \
28981 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 28982 @stage2_werror_flag@
72b2455a
PB
28983
28984maybe-all-stage2-gcc: all-stage2-gcc
28985all-stage2-gcc: configure-stage2-gcc
9cb3fa6f 28986 @$(MAKE) stage2-start
72b2455a
PB
28987 @r=`${PWD_COMMAND}`; export r; \
28988 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28989 $(STAGE_HOST_EXPORTS) \
28990 cd gcc && \
28991 $(MAKE) $(FLAGS_TO_PASS) \
28992 $(POSTSTAGE1_FLAGS_TO_PASS) \
9cb3fa6f 28993 $(EXTRA_GCC_FLAGS)
0df3d27f
PB
28994
28995maybe-clean-stage2-gcc: clean-stage2-gcc
28996clean-stage2-gcc:
28997 @[ -f gcc/Makefile ] || [ -f stage2-gcc/Makefile ] \
28998 || exit 0 ; \
28999 [ -f gcc/Makefile ] || $(MAKE) stage2-start ; \
29000 cd gcc && \
29001 $(MAKE) $(FLAGS_TO_PASS) \
29002 $(POSTSTAGE1_FLAGS_TO_PASS) \
29003 $(EXTRA_GCC_FLAGS) clean
72b2455a
PB
29004@endif gcc-bootstrap
29005
0df3d27f 29006
9cb3fa6f
PB
29007.PHONY: configure-stage2-intl maybe-configure-stage2-intl
29008.PHONY: all-stage2-intl maybe-all-stage2-intl
0df3d27f 29009.PHONY: clean-stage2-intl maybe-clean-stage2-intl
9cb3fa6f 29010
72b2455a
PB
29011maybe-configure-stage2-intl:
29012maybe-all-stage2-intl:
0df3d27f 29013maybe-clean-stage2-intl:
72b2455a
PB
29014
29015@if intl-bootstrap
29016maybe-configure-stage2-intl: configure-stage2-intl
9cb3fa6f
PB
29017configure-stage2-intl:
29018 @$(MAKE) stage2-start
29019 @[ -f intl/Makefile ] && exit 0 || : ; \
72b2455a
PB
29020 r=`${PWD_COMMAND}`; export r; \
29021 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29022 $(STAGE_HOST_EXPORTS) \
29023 echo Configuring stage 2 in intl ; \
29024 cd intl || exit 1; \
29025 case $(srcdir) in \
29026 \.) \
29027 srcdiroption="--srcdir=."; \
29028 libsrcdir=".";; \
29029 /* | [A-Za-z]:[\\/]*) \
29030 srcdiroption="--srcdir=$(srcdir)/intl"; \
29031 libsrcdir="$$s/intl";; \
29032 *) \
29033 srcdiroption="--srcdir=../$(srcdir)/intl"; \
29034 libsrcdir="$$s/intl";; \
29035 esac; \
29036 $(SHELL) $${libsrcdir}/configure \
29037 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 29038 @stage2_werror_flag@
72b2455a
PB
29039
29040maybe-all-stage2-intl: all-stage2-intl
29041all-stage2-intl: configure-stage2-intl
9cb3fa6f 29042 @$(MAKE) stage2-start
72b2455a
PB
29043 @r=`${PWD_COMMAND}`; export r; \
29044 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29045 $(STAGE_HOST_EXPORTS) \
29046 cd intl && \
29047 $(MAKE) $(FLAGS_TO_PASS) \
29048 $(POSTSTAGE1_FLAGS_TO_PASS) \
9cb3fa6f 29049
0df3d27f
PB
29050
29051maybe-clean-stage2-intl: clean-stage2-intl
29052clean-stage2-intl:
29053 @[ -f intl/Makefile ] || [ -f stage2-intl/Makefile ] \
29054 || exit 0 ; \
29055 [ -f intl/Makefile ] || $(MAKE) stage2-start ; \
29056 cd intl && \
29057 $(MAKE) $(FLAGS_TO_PASS) \
29058 $(POSTSTAGE1_FLAGS_TO_PASS) \
29059 clean
72b2455a
PB
29060@endif intl-bootstrap
29061
0df3d27f 29062
9cb3fa6f
PB
29063.PHONY: configure-stage2-ld maybe-configure-stage2-ld
29064.PHONY: all-stage2-ld maybe-all-stage2-ld
0df3d27f 29065.PHONY: clean-stage2-ld maybe-clean-stage2-ld
9cb3fa6f 29066
72b2455a
PB
29067maybe-configure-stage2-ld:
29068maybe-all-stage2-ld:
0df3d27f 29069maybe-clean-stage2-ld:
72b2455a
PB
29070
29071@if ld-bootstrap
29072maybe-configure-stage2-ld: configure-stage2-ld
9cb3fa6f
PB
29073configure-stage2-ld:
29074 @$(MAKE) stage2-start
29075 @[ -f ld/Makefile ] && exit 0 || : ; \
72b2455a
PB
29076 r=`${PWD_COMMAND}`; export r; \
29077 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29078 $(STAGE_HOST_EXPORTS) \
29079 echo Configuring stage 2 in ld ; \
29080 cd ld || exit 1; \
29081 case $(srcdir) in \
29082 \.) \
29083 srcdiroption="--srcdir=."; \
29084 libsrcdir=".";; \
29085 /* | [A-Za-z]:[\\/]*) \
29086 srcdiroption="--srcdir=$(srcdir)/ld"; \
29087 libsrcdir="$$s/ld";; \
29088 *) \
29089 srcdiroption="--srcdir=../$(srcdir)/ld"; \
29090 libsrcdir="$$s/ld";; \
29091 esac; \
29092 $(SHELL) $${libsrcdir}/configure \
29093 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 29094 @stage2_werror_flag@
72b2455a
PB
29095
29096maybe-all-stage2-ld: all-stage2-ld
29097all-stage2-ld: configure-stage2-ld
9cb3fa6f 29098 @$(MAKE) stage2-start
72b2455a
PB
29099 @r=`${PWD_COMMAND}`; export r; \
29100 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29101 $(STAGE_HOST_EXPORTS) \
29102 cd ld && \
29103 $(MAKE) $(FLAGS_TO_PASS) \
29104 $(POSTSTAGE1_FLAGS_TO_PASS) \
9cb3fa6f 29105
0df3d27f
PB
29106
29107maybe-clean-stage2-ld: clean-stage2-ld
29108clean-stage2-ld:
29109 @[ -f ld/Makefile ] || [ -f stage2-ld/Makefile ] \
29110 || exit 0 ; \
29111 [ -f ld/Makefile ] || $(MAKE) stage2-start ; \
29112 cd ld && \
29113 $(MAKE) $(FLAGS_TO_PASS) \
29114 $(POSTSTAGE1_FLAGS_TO_PASS) \
29115 clean
72b2455a
PB
29116@endif ld-bootstrap
29117
0df3d27f 29118
9cb3fa6f
PB
29119.PHONY: configure-stage2-libcpp maybe-configure-stage2-libcpp
29120.PHONY: all-stage2-libcpp maybe-all-stage2-libcpp
0df3d27f 29121.PHONY: clean-stage2-libcpp maybe-clean-stage2-libcpp
9cb3fa6f 29122
72b2455a
PB
29123maybe-configure-stage2-libcpp:
29124maybe-all-stage2-libcpp:
0df3d27f 29125maybe-clean-stage2-libcpp:
72b2455a
PB
29126
29127@if libcpp-bootstrap
29128maybe-configure-stage2-libcpp: configure-stage2-libcpp
9cb3fa6f
PB
29129configure-stage2-libcpp:
29130 @$(MAKE) stage2-start
29131 @[ -f libcpp/Makefile ] && exit 0 || : ; \
72b2455a
PB
29132 r=`${PWD_COMMAND}`; export r; \
29133 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29134 $(STAGE_HOST_EXPORTS) \
29135 echo Configuring stage 2 in libcpp ; \
29136 cd libcpp || exit 1; \
29137 case $(srcdir) in \
29138 \.) \
29139 srcdiroption="--srcdir=."; \
29140 libsrcdir=".";; \
29141 /* | [A-Za-z]:[\\/]*) \
29142 srcdiroption="--srcdir=$(srcdir)/libcpp"; \
29143 libsrcdir="$$s/libcpp";; \
29144 *) \
29145 srcdiroption="--srcdir=../$(srcdir)/libcpp"; \
29146 libsrcdir="$$s/libcpp";; \
29147 esac; \
29148 $(SHELL) $${libsrcdir}/configure \
29149 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 29150 @stage2_werror_flag@
72b2455a
PB
29151
29152maybe-all-stage2-libcpp: all-stage2-libcpp
29153all-stage2-libcpp: configure-stage2-libcpp
9cb3fa6f 29154 @$(MAKE) stage2-start
72b2455a
PB
29155 @r=`${PWD_COMMAND}`; export r; \
29156 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29157 $(STAGE_HOST_EXPORTS) \
29158 cd libcpp && \
29159 $(MAKE) $(FLAGS_TO_PASS) \
29160 $(POSTSTAGE1_FLAGS_TO_PASS) \
9cb3fa6f 29161
0df3d27f
PB
29162
29163maybe-clean-stage2-libcpp: clean-stage2-libcpp
29164clean-stage2-libcpp:
29165 @[ -f libcpp/Makefile ] || [ -f stage2-libcpp/Makefile ] \
29166 || exit 0 ; \
29167 [ -f libcpp/Makefile ] || $(MAKE) stage2-start ; \
29168 cd libcpp && \
29169 $(MAKE) $(FLAGS_TO_PASS) \
29170 $(POSTSTAGE1_FLAGS_TO_PASS) \
29171 clean
72b2455a
PB
29172@endif libcpp-bootstrap
29173
0df3d27f 29174
9cb3fa6f
PB
29175.PHONY: configure-stage2-libiberty maybe-configure-stage2-libiberty
29176.PHONY: all-stage2-libiberty maybe-all-stage2-libiberty
0df3d27f 29177.PHONY: clean-stage2-libiberty maybe-clean-stage2-libiberty
9cb3fa6f 29178
72b2455a
PB
29179maybe-configure-stage2-libiberty:
29180maybe-all-stage2-libiberty:
0df3d27f 29181maybe-clean-stage2-libiberty:
72b2455a
PB
29182
29183@if libiberty-bootstrap
29184maybe-configure-stage2-libiberty: configure-stage2-libiberty
9cb3fa6f
PB
29185configure-stage2-libiberty:
29186 @$(MAKE) stage2-start
29187 @[ -f libiberty/Makefile ] && exit 0 || : ; \
72b2455a
PB
29188 r=`${PWD_COMMAND}`; export r; \
29189 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29190 $(STAGE_HOST_EXPORTS) \
29191 echo Configuring stage 2 in libiberty ; \
29192 cd libiberty || exit 1; \
29193 case $(srcdir) in \
29194 \.) \
29195 srcdiroption="--srcdir=."; \
29196 libsrcdir=".";; \
29197 /* | [A-Za-z]:[\\/]*) \
29198 srcdiroption="--srcdir=$(srcdir)/libiberty"; \
29199 libsrcdir="$$s/libiberty";; \
29200 *) \
29201 srcdiroption="--srcdir=../$(srcdir)/libiberty"; \
29202 libsrcdir="$$s/libiberty";; \
29203 esac; \
29204 $(SHELL) $${libsrcdir}/configure \
29205 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 29206 @stage2_werror_flag@
72b2455a
PB
29207
29208maybe-all-stage2-libiberty: all-stage2-libiberty
29209all-stage2-libiberty: configure-stage2-libiberty
9cb3fa6f 29210 @$(MAKE) stage2-start
72b2455a
PB
29211 @r=`${PWD_COMMAND}`; export r; \
29212 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29213 $(STAGE_HOST_EXPORTS) \
29214 cd libiberty && \
29215 $(MAKE) $(FLAGS_TO_PASS) \
29216 $(POSTSTAGE1_FLAGS_TO_PASS) \
9cb3fa6f 29217
0df3d27f
PB
29218
29219maybe-clean-stage2-libiberty: clean-stage2-libiberty
29220clean-stage2-libiberty:
29221 @[ -f libiberty/Makefile ] || [ -f stage2-libiberty/Makefile ] \
29222 || exit 0 ; \
29223 [ -f libiberty/Makefile ] || $(MAKE) stage2-start ; \
29224 cd libiberty && \
29225 $(MAKE) $(FLAGS_TO_PASS) \
29226 $(POSTSTAGE1_FLAGS_TO_PASS) \
29227 clean
72b2455a
PB
29228@endif libiberty-bootstrap
29229
0df3d27f 29230
9cb3fa6f
PB
29231.PHONY: configure-stage2-zlib maybe-configure-stage2-zlib
29232.PHONY: all-stage2-zlib maybe-all-stage2-zlib
0df3d27f 29233.PHONY: clean-stage2-zlib maybe-clean-stage2-zlib
9cb3fa6f 29234
72b2455a
PB
29235maybe-configure-stage2-zlib:
29236maybe-all-stage2-zlib:
0df3d27f 29237maybe-clean-stage2-zlib:
72b2455a
PB
29238
29239@if zlib-bootstrap
29240maybe-configure-stage2-zlib: configure-stage2-zlib
9cb3fa6f
PB
29241configure-stage2-zlib:
29242 @$(MAKE) stage2-start
29243 @[ -f zlib/Makefile ] && exit 0 || : ; \
72b2455a
PB
29244 r=`${PWD_COMMAND}`; export r; \
29245 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29246 $(STAGE_HOST_EXPORTS) \
29247 echo Configuring stage 2 in zlib ; \
29248 cd zlib || exit 1; \
29249 case $(srcdir) in \
29250 \.) \
29251 srcdiroption="--srcdir=."; \
29252 libsrcdir=".";; \
29253 /* | [A-Za-z]:[\\/]*) \
29254 srcdiroption="--srcdir=$(srcdir)/zlib"; \
29255 libsrcdir="$$s/zlib";; \
29256 *) \
29257 srcdiroption="--srcdir=../$(srcdir)/zlib"; \
29258 libsrcdir="$$s/zlib";; \
29259 esac; \
29260 $(SHELL) $${libsrcdir}/configure \
29261 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 29262 @stage2_werror_flag@
72b2455a
PB
29263
29264maybe-all-stage2-zlib: all-stage2-zlib
29265all-stage2-zlib: configure-stage2-zlib
9cb3fa6f 29266 @$(MAKE) stage2-start
72b2455a
PB
29267 @r=`${PWD_COMMAND}`; export r; \
29268 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29269 $(STAGE_HOST_EXPORTS) \
29270 cd zlib && \
29271 $(MAKE) $(FLAGS_TO_PASS) \
29272 $(POSTSTAGE1_FLAGS_TO_PASS) \
9cb3fa6f 29273
0df3d27f
PB
29274
29275maybe-clean-stage2-zlib: clean-stage2-zlib
29276clean-stage2-zlib:
29277 @[ -f zlib/Makefile ] || [ -f stage2-zlib/Makefile ] \
29278 || exit 0 ; \
29279 [ -f zlib/Makefile ] || $(MAKE) stage2-start ; \
29280 cd zlib && \
29281 $(MAKE) $(FLAGS_TO_PASS) \
29282 $(POSTSTAGE1_FLAGS_TO_PASS) \
29283 clean
72b2455a
PB
29284@endif zlib-bootstrap
29285
29286
0df3d27f 29287
72b2455a
PB
29288# FIXME: Will not need to be conditional when toplevel bootstrap is the
29289# only possibility, but now it conflicts with no-bootstrap rules
29290@if gcc-bootstrap
29291
29292
29293
29294.PHONY: bootstrap2
29295bootstrap2: stage2-bubble all
29296
29297
0df3d27f 29298# Rules to wipe a stage and all the following ones, also used for cleanstrap
72b2455a 29299distclean-stage1:: distclean-stage2
0df3d27f 29300.PHONY: distclean-stage2
72b2455a
PB
29301distclean-stage2::
29302 [ -f stage_current ] && $(MAKE) `cat stage_current`-end || :
9cb3fa6f 29303 rm -rf stage2-*
72b2455a
PB
29304
29305
29306@endif gcc-bootstrap
29307
29308
29309.PHONY: stage3-start stage3-end
29310
29311stage3-start::
9cb3fa6f 29312 @[ -f stage_current ] && $(MAKE) `cat stage_current`-end || : ; \
72b2455a
PB
29313 echo stage3 > stage_current ; \
29314 echo stage3 > stage_last
29315@if bfd
9cb3fa6f 29316 @[ -d stage3-bfd ] || mkdir stage3-bfd; \
72b2455a
PB
29317 set stage3-bfd bfd ; @CREATE_LINK_TO_DIR@ ; \
29318 set stage2-bfd prev-bfd ; @CREATE_LINK_TO_DIR@
29319@endif bfd
29320@if opcodes
9cb3fa6f 29321 @[ -d stage3-opcodes ] || mkdir stage3-opcodes; \
72b2455a
PB
29322 set stage3-opcodes opcodes ; @CREATE_LINK_TO_DIR@ ; \
29323 set stage2-opcodes prev-opcodes ; @CREATE_LINK_TO_DIR@
29324@endif opcodes
29325@if binutils
9cb3fa6f 29326 @[ -d stage3-binutils ] || mkdir stage3-binutils; \
72b2455a
PB
29327 set stage3-binutils binutils ; @CREATE_LINK_TO_DIR@ ; \
29328 set stage2-binutils prev-binutils ; @CREATE_LINK_TO_DIR@
29329@endif binutils
29330@if gas
9cb3fa6f 29331 @[ -d stage3-gas ] || mkdir stage3-gas; \
72b2455a
PB
29332 set stage3-gas gas ; @CREATE_LINK_TO_DIR@ ; \
29333 set stage2-gas prev-gas ; @CREATE_LINK_TO_DIR@
29334@endif gas
29335@if gcc
9cb3fa6f 29336 @[ -d stage3-gcc ] || mkdir stage3-gcc; \
72b2455a
PB
29337 set stage3-gcc gcc ; @CREATE_LINK_TO_DIR@ ; \
29338 set stage2-gcc prev-gcc ; @CREATE_LINK_TO_DIR@
29339@endif gcc
29340@if intl
9cb3fa6f 29341 @[ -d stage3-intl ] || mkdir stage3-intl; \
72b2455a
PB
29342 set stage3-intl intl ; @CREATE_LINK_TO_DIR@ ; \
29343 set stage2-intl prev-intl ; @CREATE_LINK_TO_DIR@
29344@endif intl
29345@if ld
9cb3fa6f 29346 @[ -d stage3-ld ] || mkdir stage3-ld; \
72b2455a
PB
29347 set stage3-ld ld ; @CREATE_LINK_TO_DIR@ ; \
29348 set stage2-ld prev-ld ; @CREATE_LINK_TO_DIR@
29349@endif ld
29350@if libcpp
9cb3fa6f 29351 @[ -d stage3-libcpp ] || mkdir stage3-libcpp; \
72b2455a
PB
29352 set stage3-libcpp libcpp ; @CREATE_LINK_TO_DIR@ ; \
29353 set stage2-libcpp prev-libcpp ; @CREATE_LINK_TO_DIR@
29354@endif libcpp
72b2455a 29355@if libiberty
9cb3fa6f 29356 @[ -d stage3-libiberty ] || mkdir stage3-libiberty; \
72b2455a
PB
29357 set stage3-libiberty libiberty ; @CREATE_LINK_TO_DIR@ ; \
29358 set stage2-libiberty prev-libiberty ; @CREATE_LINK_TO_DIR@
29359@endif libiberty
29360@if zlib
9cb3fa6f 29361 @[ -d stage3-zlib ] || mkdir stage3-zlib; \
72b2455a
PB
29362 set stage3-zlib zlib ; @CREATE_LINK_TO_DIR@ ; \
29363 set stage2-zlib prev-zlib ; @CREATE_LINK_TO_DIR@
29364@endif zlib
29365
29366stage3-end::
9cb3fa6f 29367 @rm -f stage_current
72b2455a 29368@if bfd
9cb3fa6f 29369 @set bfd stage3-bfd ; @UNDO_LINK_TO_DIR@ ; \
72b2455a
PB
29370 set prev-bfd stage2-bfd ; @UNDO_LINK_TO_DIR@
29371@endif bfd
29372@if opcodes
9cb3fa6f 29373 @set opcodes stage3-opcodes ; @UNDO_LINK_TO_DIR@ ; \
72b2455a
PB
29374 set prev-opcodes stage2-opcodes ; @UNDO_LINK_TO_DIR@
29375@endif opcodes
29376@if binutils
9cb3fa6f 29377 @set binutils stage3-binutils ; @UNDO_LINK_TO_DIR@ ; \
72b2455a
PB
29378 set prev-binutils stage2-binutils ; @UNDO_LINK_TO_DIR@
29379@endif binutils
29380@if gas
9cb3fa6f 29381 @set gas stage3-gas ; @UNDO_LINK_TO_DIR@ ; \
72b2455a
PB
29382 set prev-gas stage2-gas ; @UNDO_LINK_TO_DIR@
29383@endif gas
29384@if gcc
9cb3fa6f 29385 @set gcc stage3-gcc ; @UNDO_LINK_TO_DIR@ ; \
72b2455a
PB
29386 set prev-gcc stage2-gcc ; @UNDO_LINK_TO_DIR@
29387@endif gcc
29388@if intl
9cb3fa6f 29389 @set intl stage3-intl ; @UNDO_LINK_TO_DIR@ ; \
72b2455a
PB
29390 set prev-intl stage2-intl ; @UNDO_LINK_TO_DIR@
29391@endif intl
29392@if ld
9cb3fa6f 29393 @set ld stage3-ld ; @UNDO_LINK_TO_DIR@ ; \
72b2455a
PB
29394 set prev-ld stage2-ld ; @UNDO_LINK_TO_DIR@
29395@endif ld
29396@if libcpp
9cb3fa6f 29397 @set libcpp stage3-libcpp ; @UNDO_LINK_TO_DIR@ ; \
72b2455a
PB
29398 set prev-libcpp stage2-libcpp ; @UNDO_LINK_TO_DIR@
29399@endif libcpp
72b2455a 29400@if libiberty
9cb3fa6f 29401 @set libiberty stage3-libiberty ; @UNDO_LINK_TO_DIR@ ; \
72b2455a
PB
29402 set prev-libiberty stage2-libiberty ; @UNDO_LINK_TO_DIR@
29403@endif libiberty
29404@if zlib
9cb3fa6f 29405 @set zlib stage3-zlib ; @UNDO_LINK_TO_DIR@ ; \
72b2455a
PB
29406 set prev-zlib stage2-zlib ; @UNDO_LINK_TO_DIR@
29407@endif zlib
29408
29409# Bubble a bugfix through all the stages up to stage 3. They
29410# are remade, but not reconfigured. The next stage (if any) will not
29411# be reconfigured as well.
29412.PHONY: stage3-bubble
29413stage3-bubble:: stage2-bubble
9cb3fa6f
PB
29414 @bootstrap_lean@-rm -rf stage1-* ; $(STAMP) stage1-lean
29415 @if test -f stage3-lean || test -f stage2-lean ; then \
29416 echo Skipping rebuild of stage3 ; \
29417 else \
0df3d27f 29418 $(MAKE) $(RECURSE_FLAGS_TO_PASS) NOTPARALLEL= all-stage3; \
9cb3fa6f 29419 fi
72b2455a 29420
0df3d27f 29421.PHONY: all-stage3 clean-stage3
72b2455a
PB
29422all-stage3: \
29423 maybe-all-stage3-bfd \
29424 maybe-all-stage3-opcodes \
29425 maybe-all-stage3-binutils \
29426 maybe-all-stage3-gas \
29427 maybe-all-stage3-gcc \
29428 maybe-all-stage3-intl \
29429 maybe-all-stage3-ld \
29430 maybe-all-stage3-libcpp \
72b2455a
PB
29431 maybe-all-stage3-libiberty \
29432 maybe-all-stage3-zlib
29433
0df3d27f
PB
29434do-clean: clean-stage3
29435clean-stage3: \
29436 maybe-clean-stage3-bfd \
29437 maybe-clean-stage3-opcodes \
29438 maybe-clean-stage3-binutils \
29439 maybe-clean-stage3-gas \
29440 maybe-clean-stage3-gcc \
29441 maybe-clean-stage3-intl \
29442 maybe-clean-stage3-ld \
29443 maybe-clean-stage3-libcpp \
0df3d27f
PB
29444 maybe-clean-stage3-libiberty \
29445 maybe-clean-stage3-zlib
29446
72b2455a 29447
9cb3fa6f
PB
29448.PHONY: configure-stage3-bfd maybe-configure-stage3-bfd
29449.PHONY: all-stage3-bfd maybe-all-stage3-bfd
0df3d27f 29450.PHONY: clean-stage3-bfd maybe-clean-stage3-bfd
9cb3fa6f 29451
72b2455a
PB
29452maybe-configure-stage3-bfd:
29453maybe-all-stage3-bfd:
0df3d27f 29454maybe-clean-stage3-bfd:
72b2455a
PB
29455
29456@if bfd-bootstrap
29457maybe-configure-stage3-bfd: configure-stage3-bfd
9cb3fa6f
PB
29458configure-stage3-bfd:
29459 @$(MAKE) stage3-start
29460 @[ -f bfd/Makefile ] && exit 0 || : ; \
72b2455a
PB
29461 r=`${PWD_COMMAND}`; export r; \
29462 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29463 $(STAGE_HOST_EXPORTS) \
29464 echo Configuring stage 3 in bfd ; \
29465 cd bfd || exit 1; \
29466 case $(srcdir) in \
29467 \.) \
29468 srcdiroption="--srcdir=."; \
29469 libsrcdir=".";; \
29470 /* | [A-Za-z]:[\\/]*) \
29471 srcdiroption="--srcdir=$(srcdir)/bfd"; \
29472 libsrcdir="$$s/bfd";; \
29473 *) \
29474 srcdiroption="--srcdir=../$(srcdir)/bfd"; \
29475 libsrcdir="$$s/bfd";; \
29476 esac; \
29477 $(SHELL) $${libsrcdir}/configure \
29478 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 29479 @stage2_werror_flag@
72b2455a
PB
29480
29481maybe-all-stage3-bfd: all-stage3-bfd
29482all-stage3-bfd: configure-stage3-bfd
9cb3fa6f 29483 @$(MAKE) stage3-start
72b2455a
PB
29484 @r=`${PWD_COMMAND}`; export r; \
29485 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29486 $(STAGE_HOST_EXPORTS) \
29487 cd bfd && \
29488 $(MAKE) $(FLAGS_TO_PASS) \
29489 $(POSTSTAGE1_FLAGS_TO_PASS) \
9cb3fa6f 29490
0df3d27f
PB
29491
29492maybe-clean-stage3-bfd: clean-stage3-bfd
29493clean-stage3-bfd:
29494 @[ -f bfd/Makefile ] || [ -f stage3-bfd/Makefile ] \
29495 || exit 0 ; \
29496 [ -f bfd/Makefile ] || $(MAKE) stage3-start ; \
29497 cd bfd && \
29498 $(MAKE) $(FLAGS_TO_PASS) \
29499 $(POSTSTAGE1_FLAGS_TO_PASS) \
29500 clean
72b2455a
PB
29501@endif bfd-bootstrap
29502
0df3d27f 29503
9cb3fa6f
PB
29504.PHONY: configure-stage3-opcodes maybe-configure-stage3-opcodes
29505.PHONY: all-stage3-opcodes maybe-all-stage3-opcodes
0df3d27f 29506.PHONY: clean-stage3-opcodes maybe-clean-stage3-opcodes
9cb3fa6f 29507
72b2455a
PB
29508maybe-configure-stage3-opcodes:
29509maybe-all-stage3-opcodes:
0df3d27f 29510maybe-clean-stage3-opcodes:
72b2455a
PB
29511
29512@if opcodes-bootstrap
29513maybe-configure-stage3-opcodes: configure-stage3-opcodes
9cb3fa6f
PB
29514configure-stage3-opcodes:
29515 @$(MAKE) stage3-start
29516 @[ -f opcodes/Makefile ] && exit 0 || : ; \
72b2455a
PB
29517 r=`${PWD_COMMAND}`; export r; \
29518 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29519 $(STAGE_HOST_EXPORTS) \
29520 echo Configuring stage 3 in opcodes ; \
29521 cd opcodes || exit 1; \
29522 case $(srcdir) in \
29523 \.) \
29524 srcdiroption="--srcdir=."; \
29525 libsrcdir=".";; \
29526 /* | [A-Za-z]:[\\/]*) \
29527 srcdiroption="--srcdir=$(srcdir)/opcodes"; \
29528 libsrcdir="$$s/opcodes";; \
29529 *) \
29530 srcdiroption="--srcdir=../$(srcdir)/opcodes"; \
29531 libsrcdir="$$s/opcodes";; \
29532 esac; \
29533 $(SHELL) $${libsrcdir}/configure \
29534 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 29535 @stage2_werror_flag@
72b2455a
PB
29536
29537maybe-all-stage3-opcodes: all-stage3-opcodes
29538all-stage3-opcodes: configure-stage3-opcodes
9cb3fa6f 29539 @$(MAKE) stage3-start
72b2455a
PB
29540 @r=`${PWD_COMMAND}`; export r; \
29541 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29542 $(STAGE_HOST_EXPORTS) \
29543 cd opcodes && \
29544 $(MAKE) $(FLAGS_TO_PASS) \
29545 $(POSTSTAGE1_FLAGS_TO_PASS) \
9cb3fa6f 29546
0df3d27f
PB
29547
29548maybe-clean-stage3-opcodes: clean-stage3-opcodes
29549clean-stage3-opcodes:
29550 @[ -f opcodes/Makefile ] || [ -f stage3-opcodes/Makefile ] \
29551 || exit 0 ; \
29552 [ -f opcodes/Makefile ] || $(MAKE) stage3-start ; \
29553 cd opcodes && \
29554 $(MAKE) $(FLAGS_TO_PASS) \
29555 $(POSTSTAGE1_FLAGS_TO_PASS) \
29556 clean
72b2455a
PB
29557@endif opcodes-bootstrap
29558
0df3d27f 29559
9cb3fa6f
PB
29560.PHONY: configure-stage3-binutils maybe-configure-stage3-binutils
29561.PHONY: all-stage3-binutils maybe-all-stage3-binutils
0df3d27f 29562.PHONY: clean-stage3-binutils maybe-clean-stage3-binutils
9cb3fa6f 29563
72b2455a
PB
29564maybe-configure-stage3-binutils:
29565maybe-all-stage3-binutils:
0df3d27f 29566maybe-clean-stage3-binutils:
72b2455a
PB
29567
29568@if binutils-bootstrap
29569maybe-configure-stage3-binutils: configure-stage3-binutils
9cb3fa6f
PB
29570configure-stage3-binutils:
29571 @$(MAKE) stage3-start
29572 @[ -f binutils/Makefile ] && exit 0 || : ; \
72b2455a
PB
29573 r=`${PWD_COMMAND}`; export r; \
29574 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29575 $(STAGE_HOST_EXPORTS) \
29576 echo Configuring stage 3 in binutils ; \
29577 cd binutils || exit 1; \
29578 case $(srcdir) in \
29579 \.) \
29580 srcdiroption="--srcdir=."; \
29581 libsrcdir=".";; \
29582 /* | [A-Za-z]:[\\/]*) \
29583 srcdiroption="--srcdir=$(srcdir)/binutils"; \
29584 libsrcdir="$$s/binutils";; \
29585 *) \
29586 srcdiroption="--srcdir=../$(srcdir)/binutils"; \
29587 libsrcdir="$$s/binutils";; \
29588 esac; \
29589 $(SHELL) $${libsrcdir}/configure \
29590 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 29591 @stage2_werror_flag@
72b2455a
PB
29592
29593maybe-all-stage3-binutils: all-stage3-binutils
29594all-stage3-binutils: configure-stage3-binutils
9cb3fa6f 29595 @$(MAKE) stage3-start
72b2455a
PB
29596 @r=`${PWD_COMMAND}`; export r; \
29597 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29598 $(STAGE_HOST_EXPORTS) \
29599 cd binutils && \
29600 $(MAKE) $(FLAGS_TO_PASS) \
29601 $(POSTSTAGE1_FLAGS_TO_PASS) \
9cb3fa6f 29602
0df3d27f
PB
29603
29604maybe-clean-stage3-binutils: clean-stage3-binutils
29605clean-stage3-binutils:
29606 @[ -f binutils/Makefile ] || [ -f stage3-binutils/Makefile ] \
29607 || exit 0 ; \
29608 [ -f binutils/Makefile ] || $(MAKE) stage3-start ; \
29609 cd binutils && \
29610 $(MAKE) $(FLAGS_TO_PASS) \
29611 $(POSTSTAGE1_FLAGS_TO_PASS) \
29612 clean
72b2455a
PB
29613@endif binutils-bootstrap
29614
0df3d27f 29615
9cb3fa6f
PB
29616.PHONY: configure-stage3-gas maybe-configure-stage3-gas
29617.PHONY: all-stage3-gas maybe-all-stage3-gas
0df3d27f 29618.PHONY: clean-stage3-gas maybe-clean-stage3-gas
9cb3fa6f 29619
72b2455a
PB
29620maybe-configure-stage3-gas:
29621maybe-all-stage3-gas:
0df3d27f 29622maybe-clean-stage3-gas:
72b2455a
PB
29623
29624@if gas-bootstrap
29625maybe-configure-stage3-gas: configure-stage3-gas
9cb3fa6f
PB
29626configure-stage3-gas:
29627 @$(MAKE) stage3-start
29628 @[ -f gas/Makefile ] && exit 0 || : ; \
72b2455a
PB
29629 r=`${PWD_COMMAND}`; export r; \
29630 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29631 $(STAGE_HOST_EXPORTS) \
29632 echo Configuring stage 3 in gas ; \
29633 cd gas || exit 1; \
29634 case $(srcdir) in \
29635 \.) \
29636 srcdiroption="--srcdir=."; \
29637 libsrcdir=".";; \
29638 /* | [A-Za-z]:[\\/]*) \
29639 srcdiroption="--srcdir=$(srcdir)/gas"; \
29640 libsrcdir="$$s/gas";; \
29641 *) \
29642 srcdiroption="--srcdir=../$(srcdir)/gas"; \
29643 libsrcdir="$$s/gas";; \
29644 esac; \
29645 $(SHELL) $${libsrcdir}/configure \
29646 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 29647 @stage2_werror_flag@
72b2455a
PB
29648
29649maybe-all-stage3-gas: all-stage3-gas
29650all-stage3-gas: configure-stage3-gas
9cb3fa6f 29651 @$(MAKE) stage3-start
72b2455a
PB
29652 @r=`${PWD_COMMAND}`; export r; \
29653 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29654 $(STAGE_HOST_EXPORTS) \
29655 cd gas && \
29656 $(MAKE) $(FLAGS_TO_PASS) \
29657 $(POSTSTAGE1_FLAGS_TO_PASS) \
9cb3fa6f 29658
0df3d27f
PB
29659
29660maybe-clean-stage3-gas: clean-stage3-gas
29661clean-stage3-gas:
29662 @[ -f gas/Makefile ] || [ -f stage3-gas/Makefile ] \
29663 || exit 0 ; \
29664 [ -f gas/Makefile ] || $(MAKE) stage3-start ; \
29665 cd gas && \
29666 $(MAKE) $(FLAGS_TO_PASS) \
29667 $(POSTSTAGE1_FLAGS_TO_PASS) \
29668 clean
72b2455a
PB
29669@endif gas-bootstrap
29670
0df3d27f 29671
9cb3fa6f
PB
29672.PHONY: configure-stage3-gcc maybe-configure-stage3-gcc
29673.PHONY: all-stage3-gcc maybe-all-stage3-gcc
0df3d27f 29674.PHONY: clean-stage3-gcc maybe-clean-stage3-gcc
9cb3fa6f 29675
72b2455a
PB
29676maybe-configure-stage3-gcc:
29677maybe-all-stage3-gcc:
0df3d27f 29678maybe-clean-stage3-gcc:
72b2455a
PB
29679
29680@if gcc-bootstrap
29681maybe-configure-stage3-gcc: configure-stage3-gcc
9cb3fa6f
PB
29682configure-stage3-gcc:
29683 @$(MAKE) stage3-start
29684 @[ -f gcc/Makefile ] && exit 0 || : ; \
72b2455a
PB
29685 r=`${PWD_COMMAND}`; export r; \
29686 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29687 $(STAGE_HOST_EXPORTS) \
29688 echo Configuring stage 3 in gcc ; \
29689 cd gcc || exit 1; \
29690 case $(srcdir) in \
29691 \.) \
29692 srcdiroption="--srcdir=."; \
29693 libsrcdir=".";; \
29694 /* | [A-Za-z]:[\\/]*) \
29695 srcdiroption="--srcdir=$(srcdir)/gcc"; \
29696 libsrcdir="$$s/gcc";; \
29697 *) \
29698 srcdiroption="--srcdir=../$(srcdir)/gcc"; \
29699 libsrcdir="$$s/gcc";; \
29700 esac; \
29701 $(SHELL) $${libsrcdir}/configure \
29702 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 29703 @stage2_werror_flag@
72b2455a
PB
29704
29705maybe-all-stage3-gcc: all-stage3-gcc
29706all-stage3-gcc: configure-stage3-gcc
9cb3fa6f 29707 @$(MAKE) stage3-start
72b2455a
PB
29708 @r=`${PWD_COMMAND}`; export r; \
29709 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29710 $(STAGE_HOST_EXPORTS) \
29711 cd gcc && \
29712 $(MAKE) $(FLAGS_TO_PASS) \
29713 $(POSTSTAGE1_FLAGS_TO_PASS) \
9cb3fa6f 29714 $(EXTRA_GCC_FLAGS)
0df3d27f
PB
29715
29716maybe-clean-stage3-gcc: clean-stage3-gcc
29717clean-stage3-gcc:
29718 @[ -f gcc/Makefile ] || [ -f stage3-gcc/Makefile ] \
29719 || exit 0 ; \
29720 [ -f gcc/Makefile ] || $(MAKE) stage3-start ; \
29721 cd gcc && \
29722 $(MAKE) $(FLAGS_TO_PASS) \
29723 $(POSTSTAGE1_FLAGS_TO_PASS) \
29724 $(EXTRA_GCC_FLAGS) clean
72b2455a
PB
29725@endif gcc-bootstrap
29726
0df3d27f 29727
9cb3fa6f
PB
29728.PHONY: configure-stage3-intl maybe-configure-stage3-intl
29729.PHONY: all-stage3-intl maybe-all-stage3-intl
0df3d27f 29730.PHONY: clean-stage3-intl maybe-clean-stage3-intl
9cb3fa6f 29731
72b2455a
PB
29732maybe-configure-stage3-intl:
29733maybe-all-stage3-intl:
0df3d27f 29734maybe-clean-stage3-intl:
72b2455a
PB
29735
29736@if intl-bootstrap
29737maybe-configure-stage3-intl: configure-stage3-intl
9cb3fa6f
PB
29738configure-stage3-intl:
29739 @$(MAKE) stage3-start
29740 @[ -f intl/Makefile ] && exit 0 || : ; \
72b2455a
PB
29741 r=`${PWD_COMMAND}`; export r; \
29742 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29743 $(STAGE_HOST_EXPORTS) \
29744 echo Configuring stage 3 in intl ; \
29745 cd intl || exit 1; \
29746 case $(srcdir) in \
29747 \.) \
29748 srcdiroption="--srcdir=."; \
29749 libsrcdir=".";; \
29750 /* | [A-Za-z]:[\\/]*) \
29751 srcdiroption="--srcdir=$(srcdir)/intl"; \
29752 libsrcdir="$$s/intl";; \
29753 *) \
29754 srcdiroption="--srcdir=../$(srcdir)/intl"; \
29755 libsrcdir="$$s/intl";; \
29756 esac; \
29757 $(SHELL) $${libsrcdir}/configure \
29758 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 29759 @stage2_werror_flag@
72b2455a
PB
29760
29761maybe-all-stage3-intl: all-stage3-intl
29762all-stage3-intl: configure-stage3-intl
9cb3fa6f 29763 @$(MAKE) stage3-start
72b2455a
PB
29764 @r=`${PWD_COMMAND}`; export r; \
29765 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29766 $(STAGE_HOST_EXPORTS) \
29767 cd intl && \
29768 $(MAKE) $(FLAGS_TO_PASS) \
29769 $(POSTSTAGE1_FLAGS_TO_PASS) \
9cb3fa6f 29770
0df3d27f
PB
29771
29772maybe-clean-stage3-intl: clean-stage3-intl
29773clean-stage3-intl:
29774 @[ -f intl/Makefile ] || [ -f stage3-intl/Makefile ] \
29775 || exit 0 ; \
29776 [ -f intl/Makefile ] || $(MAKE) stage3-start ; \
29777 cd intl && \
29778 $(MAKE) $(FLAGS_TO_PASS) \
29779 $(POSTSTAGE1_FLAGS_TO_PASS) \
29780 clean
72b2455a
PB
29781@endif intl-bootstrap
29782
0df3d27f 29783
9cb3fa6f
PB
29784.PHONY: configure-stage3-ld maybe-configure-stage3-ld
29785.PHONY: all-stage3-ld maybe-all-stage3-ld
0df3d27f 29786.PHONY: clean-stage3-ld maybe-clean-stage3-ld
9cb3fa6f 29787
72b2455a
PB
29788maybe-configure-stage3-ld:
29789maybe-all-stage3-ld:
0df3d27f 29790maybe-clean-stage3-ld:
72b2455a
PB
29791
29792@if ld-bootstrap
29793maybe-configure-stage3-ld: configure-stage3-ld
9cb3fa6f
PB
29794configure-stage3-ld:
29795 @$(MAKE) stage3-start
29796 @[ -f ld/Makefile ] && exit 0 || : ; \
72b2455a
PB
29797 r=`${PWD_COMMAND}`; export r; \
29798 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29799 $(STAGE_HOST_EXPORTS) \
29800 echo Configuring stage 3 in ld ; \
29801 cd ld || exit 1; \
29802 case $(srcdir) in \
29803 \.) \
29804 srcdiroption="--srcdir=."; \
29805 libsrcdir=".";; \
29806 /* | [A-Za-z]:[\\/]*) \
29807 srcdiroption="--srcdir=$(srcdir)/ld"; \
29808 libsrcdir="$$s/ld";; \
29809 *) \
29810 srcdiroption="--srcdir=../$(srcdir)/ld"; \
29811 libsrcdir="$$s/ld";; \
29812 esac; \
29813 $(SHELL) $${libsrcdir}/configure \
29814 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 29815 @stage2_werror_flag@
72b2455a
PB
29816
29817maybe-all-stage3-ld: all-stage3-ld
29818all-stage3-ld: configure-stage3-ld
9cb3fa6f 29819 @$(MAKE) stage3-start
72b2455a
PB
29820 @r=`${PWD_COMMAND}`; export r; \
29821 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29822 $(STAGE_HOST_EXPORTS) \
29823 cd ld && \
29824 $(MAKE) $(FLAGS_TO_PASS) \
29825 $(POSTSTAGE1_FLAGS_TO_PASS) \
9cb3fa6f 29826
0df3d27f
PB
29827
29828maybe-clean-stage3-ld: clean-stage3-ld
29829clean-stage3-ld:
29830 @[ -f ld/Makefile ] || [ -f stage3-ld/Makefile ] \
29831 || exit 0 ; \
29832 [ -f ld/Makefile ] || $(MAKE) stage3-start ; \
29833 cd ld && \
29834 $(MAKE) $(FLAGS_TO_PASS) \
29835 $(POSTSTAGE1_FLAGS_TO_PASS) \
29836 clean
72b2455a
PB
29837@endif ld-bootstrap
29838
0df3d27f 29839
9cb3fa6f
PB
29840.PHONY: configure-stage3-libcpp maybe-configure-stage3-libcpp
29841.PHONY: all-stage3-libcpp maybe-all-stage3-libcpp
0df3d27f 29842.PHONY: clean-stage3-libcpp maybe-clean-stage3-libcpp
9cb3fa6f 29843
72b2455a
PB
29844maybe-configure-stage3-libcpp:
29845maybe-all-stage3-libcpp:
0df3d27f 29846maybe-clean-stage3-libcpp:
72b2455a
PB
29847
29848@if libcpp-bootstrap
29849maybe-configure-stage3-libcpp: configure-stage3-libcpp
9cb3fa6f
PB
29850configure-stage3-libcpp:
29851 @$(MAKE) stage3-start
29852 @[ -f libcpp/Makefile ] && exit 0 || : ; \
72b2455a
PB
29853 r=`${PWD_COMMAND}`; export r; \
29854 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29855 $(STAGE_HOST_EXPORTS) \
29856 echo Configuring stage 3 in libcpp ; \
29857 cd libcpp || exit 1; \
29858 case $(srcdir) in \
29859 \.) \
29860 srcdiroption="--srcdir=."; \
29861 libsrcdir=".";; \
29862 /* | [A-Za-z]:[\\/]*) \
29863 srcdiroption="--srcdir=$(srcdir)/libcpp"; \
29864 libsrcdir="$$s/libcpp";; \
29865 *) \
29866 srcdiroption="--srcdir=../$(srcdir)/libcpp"; \
29867 libsrcdir="$$s/libcpp";; \
29868 esac; \
29869 $(SHELL) $${libsrcdir}/configure \
29870 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 29871 @stage2_werror_flag@
72b2455a
PB
29872
29873maybe-all-stage3-libcpp: all-stage3-libcpp
29874all-stage3-libcpp: configure-stage3-libcpp
9cb3fa6f 29875 @$(MAKE) stage3-start
72b2455a
PB
29876 @r=`${PWD_COMMAND}`; export r; \
29877 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29878 $(STAGE_HOST_EXPORTS) \
29879 cd libcpp && \
29880 $(MAKE) $(FLAGS_TO_PASS) \
29881 $(POSTSTAGE1_FLAGS_TO_PASS) \
9cb3fa6f 29882
0df3d27f
PB
29883
29884maybe-clean-stage3-libcpp: clean-stage3-libcpp
29885clean-stage3-libcpp:
29886 @[ -f libcpp/Makefile ] || [ -f stage3-libcpp/Makefile ] \
29887 || exit 0 ; \
29888 [ -f libcpp/Makefile ] || $(MAKE) stage3-start ; \
29889 cd libcpp && \
29890 $(MAKE) $(FLAGS_TO_PASS) \
29891 $(POSTSTAGE1_FLAGS_TO_PASS) \
29892 clean
72b2455a
PB
29893@endif libcpp-bootstrap
29894
0df3d27f 29895
9cb3fa6f
PB
29896.PHONY: configure-stage3-libiberty maybe-configure-stage3-libiberty
29897.PHONY: all-stage3-libiberty maybe-all-stage3-libiberty
0df3d27f 29898.PHONY: clean-stage3-libiberty maybe-clean-stage3-libiberty
9cb3fa6f 29899
72b2455a
PB
29900maybe-configure-stage3-libiberty:
29901maybe-all-stage3-libiberty:
0df3d27f 29902maybe-clean-stage3-libiberty:
72b2455a
PB
29903
29904@if libiberty-bootstrap
29905maybe-configure-stage3-libiberty: configure-stage3-libiberty
9cb3fa6f
PB
29906configure-stage3-libiberty:
29907 @$(MAKE) stage3-start
29908 @[ -f libiberty/Makefile ] && exit 0 || : ; \
72b2455a
PB
29909 r=`${PWD_COMMAND}`; export r; \
29910 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29911 $(STAGE_HOST_EXPORTS) \
29912 echo Configuring stage 3 in libiberty ; \
29913 cd libiberty || exit 1; \
29914 case $(srcdir) in \
29915 \.) \
29916 srcdiroption="--srcdir=."; \
29917 libsrcdir=".";; \
29918 /* | [A-Za-z]:[\\/]*) \
29919 srcdiroption="--srcdir=$(srcdir)/libiberty"; \
29920 libsrcdir="$$s/libiberty";; \
29921 *) \
29922 srcdiroption="--srcdir=../$(srcdir)/libiberty"; \
29923 libsrcdir="$$s/libiberty";; \
29924 esac; \
29925 $(SHELL) $${libsrcdir}/configure \
29926 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 29927 @stage2_werror_flag@
72b2455a
PB
29928
29929maybe-all-stage3-libiberty: all-stage3-libiberty
29930all-stage3-libiberty: configure-stage3-libiberty
9cb3fa6f 29931 @$(MAKE) stage3-start
72b2455a
PB
29932 @r=`${PWD_COMMAND}`; export r; \
29933 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29934 $(STAGE_HOST_EXPORTS) \
29935 cd libiberty && \
29936 $(MAKE) $(FLAGS_TO_PASS) \
29937 $(POSTSTAGE1_FLAGS_TO_PASS) \
9cb3fa6f 29938
0df3d27f
PB
29939
29940maybe-clean-stage3-libiberty: clean-stage3-libiberty
29941clean-stage3-libiberty:
29942 @[ -f libiberty/Makefile ] || [ -f stage3-libiberty/Makefile ] \
29943 || exit 0 ; \
29944 [ -f libiberty/Makefile ] || $(MAKE) stage3-start ; \
29945 cd libiberty && \
29946 $(MAKE) $(FLAGS_TO_PASS) \
29947 $(POSTSTAGE1_FLAGS_TO_PASS) \
29948 clean
72b2455a
PB
29949@endif libiberty-bootstrap
29950
0df3d27f 29951
9cb3fa6f
PB
29952.PHONY: configure-stage3-zlib maybe-configure-stage3-zlib
29953.PHONY: all-stage3-zlib maybe-all-stage3-zlib
0df3d27f 29954.PHONY: clean-stage3-zlib maybe-clean-stage3-zlib
9cb3fa6f 29955
72b2455a
PB
29956maybe-configure-stage3-zlib:
29957maybe-all-stage3-zlib:
0df3d27f 29958maybe-clean-stage3-zlib:
72b2455a
PB
29959
29960@if zlib-bootstrap
29961maybe-configure-stage3-zlib: configure-stage3-zlib
9cb3fa6f
PB
29962configure-stage3-zlib:
29963 @$(MAKE) stage3-start
29964 @[ -f zlib/Makefile ] && exit 0 || : ; \
72b2455a
PB
29965 r=`${PWD_COMMAND}`; export r; \
29966 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29967 $(STAGE_HOST_EXPORTS) \
29968 echo Configuring stage 3 in zlib ; \
29969 cd zlib || exit 1; \
29970 case $(srcdir) in \
29971 \.) \
29972 srcdiroption="--srcdir=."; \
29973 libsrcdir=".";; \
29974 /* | [A-Za-z]:[\\/]*) \
29975 srcdiroption="--srcdir=$(srcdir)/zlib"; \
29976 libsrcdir="$$s/zlib";; \
29977 *) \
29978 srcdiroption="--srcdir=../$(srcdir)/zlib"; \
29979 libsrcdir="$$s/zlib";; \
29980 esac; \
29981 $(SHELL) $${libsrcdir}/configure \
29982 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 29983 @stage2_werror_flag@
72b2455a
PB
29984
29985maybe-all-stage3-zlib: all-stage3-zlib
29986all-stage3-zlib: configure-stage3-zlib
9cb3fa6f 29987 @$(MAKE) stage3-start
72b2455a
PB
29988 @r=`${PWD_COMMAND}`; export r; \
29989 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29990 $(STAGE_HOST_EXPORTS) \
29991 cd zlib && \
29992 $(MAKE) $(FLAGS_TO_PASS) \
29993 $(POSTSTAGE1_FLAGS_TO_PASS) \
9cb3fa6f 29994
0df3d27f
PB
29995
29996maybe-clean-stage3-zlib: clean-stage3-zlib
29997clean-stage3-zlib:
29998 @[ -f zlib/Makefile ] || [ -f stage3-zlib/Makefile ] \
29999 || exit 0 ; \
30000 [ -f zlib/Makefile ] || $(MAKE) stage3-start ; \
30001 cd zlib && \
30002 $(MAKE) $(FLAGS_TO_PASS) \
30003 $(POSTSTAGE1_FLAGS_TO_PASS) \
30004 clean
72b2455a
PB
30005@endif zlib-bootstrap
30006
30007
0df3d27f 30008
72b2455a
PB
30009# FIXME: Will not need to be conditional when toplevel bootstrap is the
30010# only possibility, but now it conflicts with no-bootstrap rules
30011@if gcc-bootstrap
30012
9cb3fa6f
PB
30013compare:
30014 @if test -f stage2-lean; then \
30015 echo Cannot compare object files as stage 2 was deleted. ; \
30016 exit 0 ; \
30017 fi; \
30018 [ -f stage_current ] && $(MAKE) `cat stage_current`-end || : ; \
72b2455a
PB
30019 @r=`${PWD_COMMAND}`; export r; \
30020 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30021 rm -f .bad_compare ; \
30022 cd stage3-gcc; \
30023 files=`find . -name "*$(objext)" -print` ; \
30024 cd .. ; \
30025 for file in $${files} ; do \
30026 f1=$$r/stage2-gcc/$$file; f2=$$r/stage3-gcc/$$file; \
30027 @do_compare@ > /dev/null 2>&1; \
30028 test $$? -eq 1 && echo $$file differs >> .bad_compare || true; \
30029 done ; \
30030 if [ -f .bad_compare ]; then \
30031 echo "Bootstrap comparison failure!"; \
30032 cat .bad_compare; \
30033 exit 1; \
30034 else \
30035 true; \
30036 fi ; \
30037 $(STAMP) compare
9cb3fa6f 30038 @bootstrap_lean@-rm -rf stage2-* ; $(STAMP) stage2-lean
72b2455a
PB
30039
30040
30041
30042.PHONY: bootstrap
9cb3fa6f 30043bootstrap: stage3-bubble compare all
72b2455a
PB
30044
30045
0df3d27f 30046# Rules to wipe a stage and all the following ones, also used for cleanstrap
72b2455a 30047distclean-stage2:: distclean-stage3
0df3d27f 30048.PHONY: distclean-stage3
72b2455a
PB
30049distclean-stage3::
30050 [ -f stage_current ] && $(MAKE) `cat stage_current`-end || :
9cb3fa6f 30051 rm -rf stage3-* compare
72b2455a
PB
30052
30053
30054.PHONY: cleanstrap
0df3d27f 30055cleanstrap: distclean bootstrap
72b2455a
PB
30056
30057@endif gcc-bootstrap
30058
30059
30060.PHONY: stage4-start stage4-end
30061
30062stage4-start::
9cb3fa6f 30063 @[ -f stage_current ] && $(MAKE) `cat stage_current`-end || : ; \
72b2455a
PB
30064 echo stage4 > stage_current ; \
30065 echo stage4 > stage_last
30066@if bfd
9cb3fa6f 30067 @[ -d stage4-bfd ] || mkdir stage4-bfd; \
72b2455a
PB
30068 set stage4-bfd bfd ; @CREATE_LINK_TO_DIR@ ; \
30069 set stage3-bfd prev-bfd ; @CREATE_LINK_TO_DIR@
30070@endif bfd
30071@if opcodes
9cb3fa6f 30072 @[ -d stage4-opcodes ] || mkdir stage4-opcodes; \
72b2455a
PB
30073 set stage4-opcodes opcodes ; @CREATE_LINK_TO_DIR@ ; \
30074 set stage3-opcodes prev-opcodes ; @CREATE_LINK_TO_DIR@
30075@endif opcodes
30076@if binutils
9cb3fa6f 30077 @[ -d stage4-binutils ] || mkdir stage4-binutils; \
72b2455a
PB
30078 set stage4-binutils binutils ; @CREATE_LINK_TO_DIR@ ; \
30079 set stage3-binutils prev-binutils ; @CREATE_LINK_TO_DIR@
30080@endif binutils
30081@if gas
9cb3fa6f 30082 @[ -d stage4-gas ] || mkdir stage4-gas; \
72b2455a
PB
30083 set stage4-gas gas ; @CREATE_LINK_TO_DIR@ ; \
30084 set stage3-gas prev-gas ; @CREATE_LINK_TO_DIR@
30085@endif gas
30086@if gcc
9cb3fa6f 30087 @[ -d stage4-gcc ] || mkdir stage4-gcc; \
72b2455a
PB
30088 set stage4-gcc gcc ; @CREATE_LINK_TO_DIR@ ; \
30089 set stage3-gcc prev-gcc ; @CREATE_LINK_TO_DIR@
30090@endif gcc
30091@if intl
9cb3fa6f 30092 @[ -d stage4-intl ] || mkdir stage4-intl; \
72b2455a
PB
30093 set stage4-intl intl ; @CREATE_LINK_TO_DIR@ ; \
30094 set stage3-intl prev-intl ; @CREATE_LINK_TO_DIR@
30095@endif intl
30096@if ld
9cb3fa6f 30097 @[ -d stage4-ld ] || mkdir stage4-ld; \
72b2455a
PB
30098 set stage4-ld ld ; @CREATE_LINK_TO_DIR@ ; \
30099 set stage3-ld prev-ld ; @CREATE_LINK_TO_DIR@
30100@endif ld
30101@if libcpp
9cb3fa6f 30102 @[ -d stage4-libcpp ] || mkdir stage4-libcpp; \
72b2455a
PB
30103 set stage4-libcpp libcpp ; @CREATE_LINK_TO_DIR@ ; \
30104 set stage3-libcpp prev-libcpp ; @CREATE_LINK_TO_DIR@
30105@endif libcpp
72b2455a 30106@if libiberty
9cb3fa6f 30107 @[ -d stage4-libiberty ] || mkdir stage4-libiberty; \
72b2455a
PB
30108 set stage4-libiberty libiberty ; @CREATE_LINK_TO_DIR@ ; \
30109 set stage3-libiberty prev-libiberty ; @CREATE_LINK_TO_DIR@
30110@endif libiberty
30111@if zlib
9cb3fa6f 30112 @[ -d stage4-zlib ] || mkdir stage4-zlib; \
72b2455a
PB
30113 set stage4-zlib zlib ; @CREATE_LINK_TO_DIR@ ; \
30114 set stage3-zlib prev-zlib ; @CREATE_LINK_TO_DIR@
30115@endif zlib
30116
30117stage4-end::
9cb3fa6f 30118 @rm -f stage_current
72b2455a 30119@if bfd
9cb3fa6f 30120 @set bfd stage4-bfd ; @UNDO_LINK_TO_DIR@ ; \
72b2455a
PB
30121 set prev-bfd stage3-bfd ; @UNDO_LINK_TO_DIR@
30122@endif bfd
30123@if opcodes
9cb3fa6f 30124 @set opcodes stage4-opcodes ; @UNDO_LINK_TO_DIR@ ; \
72b2455a
PB
30125 set prev-opcodes stage3-opcodes ; @UNDO_LINK_TO_DIR@
30126@endif opcodes
30127@if binutils
9cb3fa6f 30128 @set binutils stage4-binutils ; @UNDO_LINK_TO_DIR@ ; \
72b2455a
PB
30129 set prev-binutils stage3-binutils ; @UNDO_LINK_TO_DIR@
30130@endif binutils
30131@if gas
9cb3fa6f 30132 @set gas stage4-gas ; @UNDO_LINK_TO_DIR@ ; \
72b2455a
PB
30133 set prev-gas stage3-gas ; @UNDO_LINK_TO_DIR@
30134@endif gas
30135@if gcc
9cb3fa6f 30136 @set gcc stage4-gcc ; @UNDO_LINK_TO_DIR@ ; \
72b2455a
PB
30137 set prev-gcc stage3-gcc ; @UNDO_LINK_TO_DIR@
30138@endif gcc
30139@if intl
9cb3fa6f 30140 @set intl stage4-intl ; @UNDO_LINK_TO_DIR@ ; \
72b2455a
PB
30141 set prev-intl stage3-intl ; @UNDO_LINK_TO_DIR@
30142@endif intl
30143@if ld
9cb3fa6f 30144 @set ld stage4-ld ; @UNDO_LINK_TO_DIR@ ; \
72b2455a
PB
30145 set prev-ld stage3-ld ; @UNDO_LINK_TO_DIR@
30146@endif ld
30147@if libcpp
9cb3fa6f 30148 @set libcpp stage4-libcpp ; @UNDO_LINK_TO_DIR@ ; \
72b2455a
PB
30149 set prev-libcpp stage3-libcpp ; @UNDO_LINK_TO_DIR@
30150@endif libcpp
72b2455a 30151@if libiberty
9cb3fa6f 30152 @set libiberty stage4-libiberty ; @UNDO_LINK_TO_DIR@ ; \
72b2455a
PB
30153 set prev-libiberty stage3-libiberty ; @UNDO_LINK_TO_DIR@
30154@endif libiberty
30155@if zlib
9cb3fa6f 30156 @set zlib stage4-zlib ; @UNDO_LINK_TO_DIR@ ; \
72b2455a
PB
30157 set prev-zlib stage3-zlib ; @UNDO_LINK_TO_DIR@
30158@endif zlib
30159
30160# Bubble a bugfix through all the stages up to stage 4. They
30161# are remade, but not reconfigured. The next stage (if any) will not
30162# be reconfigured as well.
30163.PHONY: stage4-bubble
30164stage4-bubble:: stage3-bubble
9cb3fa6f
PB
30165 @bootstrap_lean@-rm -rf stage2-* ; $(STAMP) stage2-lean
30166 @if test -f stage4-lean || test -f stage3-lean ; then \
30167 echo Skipping rebuild of stage4 ; \
30168 else \
0df3d27f 30169 $(MAKE) $(RECURSE_FLAGS_TO_PASS) NOTPARALLEL= all-stage4; \
9cb3fa6f 30170 fi
72b2455a 30171
0df3d27f 30172.PHONY: all-stage4 clean-stage4
72b2455a
PB
30173all-stage4: \
30174 maybe-all-stage4-bfd \
30175 maybe-all-stage4-opcodes \
30176 maybe-all-stage4-binutils \
30177 maybe-all-stage4-gas \
30178 maybe-all-stage4-gcc \
30179 maybe-all-stage4-intl \
30180 maybe-all-stage4-ld \
30181 maybe-all-stage4-libcpp \
72b2455a
PB
30182 maybe-all-stage4-libiberty \
30183 maybe-all-stage4-zlib
30184
0df3d27f
PB
30185do-clean: clean-stage4
30186clean-stage4: \
30187 maybe-clean-stage4-bfd \
30188 maybe-clean-stage4-opcodes \
30189 maybe-clean-stage4-binutils \
30190 maybe-clean-stage4-gas \
30191 maybe-clean-stage4-gcc \
30192 maybe-clean-stage4-intl \
30193 maybe-clean-stage4-ld \
30194 maybe-clean-stage4-libcpp \
0df3d27f
PB
30195 maybe-clean-stage4-libiberty \
30196 maybe-clean-stage4-zlib
30197
72b2455a 30198
9cb3fa6f
PB
30199.PHONY: configure-stage4-bfd maybe-configure-stage4-bfd
30200.PHONY: all-stage4-bfd maybe-all-stage4-bfd
0df3d27f 30201.PHONY: clean-stage4-bfd maybe-clean-stage4-bfd
9cb3fa6f 30202
72b2455a
PB
30203maybe-configure-stage4-bfd:
30204maybe-all-stage4-bfd:
0df3d27f 30205maybe-clean-stage4-bfd:
72b2455a
PB
30206
30207@if bfd-bootstrap
30208maybe-configure-stage4-bfd: configure-stage4-bfd
9cb3fa6f
PB
30209configure-stage4-bfd:
30210 @$(MAKE) stage4-start
30211 @[ -f bfd/Makefile ] && exit 0 || : ; \
72b2455a
PB
30212 r=`${PWD_COMMAND}`; export r; \
30213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30214 $(STAGE_HOST_EXPORTS) \
30215 echo Configuring stage 4 in bfd ; \
30216 cd bfd || exit 1; \
30217 case $(srcdir) in \
30218 \.) \
30219 srcdiroption="--srcdir=."; \
30220 libsrcdir=".";; \
30221 /* | [A-Za-z]:[\\/]*) \
30222 srcdiroption="--srcdir=$(srcdir)/bfd"; \
30223 libsrcdir="$$s/bfd";; \
30224 *) \
30225 srcdiroption="--srcdir=../$(srcdir)/bfd"; \
30226 libsrcdir="$$s/bfd";; \
30227 esac; \
30228 $(SHELL) $${libsrcdir}/configure \
30229 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 30230 @stage2_werror_flag@
72b2455a
PB
30231
30232maybe-all-stage4-bfd: all-stage4-bfd
30233all-stage4-bfd: configure-stage4-bfd
9cb3fa6f 30234 @$(MAKE) stage4-start
72b2455a
PB
30235 @r=`${PWD_COMMAND}`; export r; \
30236 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30237 $(STAGE_HOST_EXPORTS) \
30238 cd bfd && \
30239 $(MAKE) $(FLAGS_TO_PASS) \
30240 $(POSTSTAGE1_FLAGS_TO_PASS) \
9cb3fa6f 30241
0df3d27f
PB
30242
30243maybe-clean-stage4-bfd: clean-stage4-bfd
30244clean-stage4-bfd:
30245 @[ -f bfd/Makefile ] || [ -f stage4-bfd/Makefile ] \
30246 || exit 0 ; \
30247 [ -f bfd/Makefile ] || $(MAKE) stage4-start ; \
30248 cd bfd && \
30249 $(MAKE) $(FLAGS_TO_PASS) \
30250 $(POSTSTAGE1_FLAGS_TO_PASS) \
30251 clean
72b2455a
PB
30252@endif bfd-bootstrap
30253
0df3d27f 30254
9cb3fa6f
PB
30255.PHONY: configure-stage4-opcodes maybe-configure-stage4-opcodes
30256.PHONY: all-stage4-opcodes maybe-all-stage4-opcodes
0df3d27f 30257.PHONY: clean-stage4-opcodes maybe-clean-stage4-opcodes
9cb3fa6f 30258
72b2455a
PB
30259maybe-configure-stage4-opcodes:
30260maybe-all-stage4-opcodes:
0df3d27f 30261maybe-clean-stage4-opcodes:
72b2455a
PB
30262
30263@if opcodes-bootstrap
30264maybe-configure-stage4-opcodes: configure-stage4-opcodes
9cb3fa6f
PB
30265configure-stage4-opcodes:
30266 @$(MAKE) stage4-start
30267 @[ -f opcodes/Makefile ] && exit 0 || : ; \
72b2455a
PB
30268 r=`${PWD_COMMAND}`; export r; \
30269 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30270 $(STAGE_HOST_EXPORTS) \
30271 echo Configuring stage 4 in opcodes ; \
30272 cd opcodes || exit 1; \
30273 case $(srcdir) in \
30274 \.) \
30275 srcdiroption="--srcdir=."; \
30276 libsrcdir=".";; \
30277 /* | [A-Za-z]:[\\/]*) \
30278 srcdiroption="--srcdir=$(srcdir)/opcodes"; \
30279 libsrcdir="$$s/opcodes";; \
30280 *) \
30281 srcdiroption="--srcdir=../$(srcdir)/opcodes"; \
30282 libsrcdir="$$s/opcodes";; \
30283 esac; \
30284 $(SHELL) $${libsrcdir}/configure \
30285 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 30286 @stage2_werror_flag@
72b2455a
PB
30287
30288maybe-all-stage4-opcodes: all-stage4-opcodes
30289all-stage4-opcodes: configure-stage4-opcodes
9cb3fa6f 30290 @$(MAKE) stage4-start
72b2455a
PB
30291 @r=`${PWD_COMMAND}`; export r; \
30292 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30293 $(STAGE_HOST_EXPORTS) \
30294 cd opcodes && \
30295 $(MAKE) $(FLAGS_TO_PASS) \
30296 $(POSTSTAGE1_FLAGS_TO_PASS) \
9cb3fa6f 30297
0df3d27f
PB
30298
30299maybe-clean-stage4-opcodes: clean-stage4-opcodes
30300clean-stage4-opcodes:
30301 @[ -f opcodes/Makefile ] || [ -f stage4-opcodes/Makefile ] \
30302 || exit 0 ; \
30303 [ -f opcodes/Makefile ] || $(MAKE) stage4-start ; \
30304 cd opcodes && \
30305 $(MAKE) $(FLAGS_TO_PASS) \
30306 $(POSTSTAGE1_FLAGS_TO_PASS) \
30307 clean
72b2455a
PB
30308@endif opcodes-bootstrap
30309
0df3d27f 30310
9cb3fa6f
PB
30311.PHONY: configure-stage4-binutils maybe-configure-stage4-binutils
30312.PHONY: all-stage4-binutils maybe-all-stage4-binutils
0df3d27f 30313.PHONY: clean-stage4-binutils maybe-clean-stage4-binutils
9cb3fa6f 30314
72b2455a
PB
30315maybe-configure-stage4-binutils:
30316maybe-all-stage4-binutils:
0df3d27f 30317maybe-clean-stage4-binutils:
72b2455a
PB
30318
30319@if binutils-bootstrap
30320maybe-configure-stage4-binutils: configure-stage4-binutils
9cb3fa6f
PB
30321configure-stage4-binutils:
30322 @$(MAKE) stage4-start
30323 @[ -f binutils/Makefile ] && exit 0 || : ; \
72b2455a
PB
30324 r=`${PWD_COMMAND}`; export r; \
30325 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30326 $(STAGE_HOST_EXPORTS) \
30327 echo Configuring stage 4 in binutils ; \
30328 cd binutils || exit 1; \
30329 case $(srcdir) in \
30330 \.) \
30331 srcdiroption="--srcdir=."; \
30332 libsrcdir=".";; \
30333 /* | [A-Za-z]:[\\/]*) \
30334 srcdiroption="--srcdir=$(srcdir)/binutils"; \
30335 libsrcdir="$$s/binutils";; \
30336 *) \
30337 srcdiroption="--srcdir=../$(srcdir)/binutils"; \
30338 libsrcdir="$$s/binutils";; \
30339 esac; \
30340 $(SHELL) $${libsrcdir}/configure \
30341 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 30342 @stage2_werror_flag@
72b2455a
PB
30343
30344maybe-all-stage4-binutils: all-stage4-binutils
30345all-stage4-binutils: configure-stage4-binutils
9cb3fa6f 30346 @$(MAKE) stage4-start
72b2455a
PB
30347 @r=`${PWD_COMMAND}`; export r; \
30348 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30349 $(STAGE_HOST_EXPORTS) \
30350 cd binutils && \
30351 $(MAKE) $(FLAGS_TO_PASS) \
30352 $(POSTSTAGE1_FLAGS_TO_PASS) \
9cb3fa6f 30353
0df3d27f
PB
30354
30355maybe-clean-stage4-binutils: clean-stage4-binutils
30356clean-stage4-binutils:
30357 @[ -f binutils/Makefile ] || [ -f stage4-binutils/Makefile ] \
30358 || exit 0 ; \
30359 [ -f binutils/Makefile ] || $(MAKE) stage4-start ; \
30360 cd binutils && \
30361 $(MAKE) $(FLAGS_TO_PASS) \
30362 $(POSTSTAGE1_FLAGS_TO_PASS) \
30363 clean
72b2455a
PB
30364@endif binutils-bootstrap
30365
0df3d27f 30366
9cb3fa6f
PB
30367.PHONY: configure-stage4-gas maybe-configure-stage4-gas
30368.PHONY: all-stage4-gas maybe-all-stage4-gas
0df3d27f 30369.PHONY: clean-stage4-gas maybe-clean-stage4-gas
9cb3fa6f 30370
72b2455a
PB
30371maybe-configure-stage4-gas:
30372maybe-all-stage4-gas:
0df3d27f 30373maybe-clean-stage4-gas:
72b2455a
PB
30374
30375@if gas-bootstrap
30376maybe-configure-stage4-gas: configure-stage4-gas
9cb3fa6f
PB
30377configure-stage4-gas:
30378 @$(MAKE) stage4-start
30379 @[ -f gas/Makefile ] && exit 0 || : ; \
72b2455a
PB
30380 r=`${PWD_COMMAND}`; export r; \
30381 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30382 $(STAGE_HOST_EXPORTS) \
30383 echo Configuring stage 4 in gas ; \
30384 cd gas || exit 1; \
30385 case $(srcdir) in \
30386 \.) \
30387 srcdiroption="--srcdir=."; \
30388 libsrcdir=".";; \
30389 /* | [A-Za-z]:[\\/]*) \
30390 srcdiroption="--srcdir=$(srcdir)/gas"; \
30391 libsrcdir="$$s/gas";; \
30392 *) \
30393 srcdiroption="--srcdir=../$(srcdir)/gas"; \
30394 libsrcdir="$$s/gas";; \
30395 esac; \
30396 $(SHELL) $${libsrcdir}/configure \
30397 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 30398 @stage2_werror_flag@
72b2455a
PB
30399
30400maybe-all-stage4-gas: all-stage4-gas
30401all-stage4-gas: configure-stage4-gas
9cb3fa6f 30402 @$(MAKE) stage4-start
72b2455a
PB
30403 @r=`${PWD_COMMAND}`; export r; \
30404 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30405 $(STAGE_HOST_EXPORTS) \
30406 cd gas && \
30407 $(MAKE) $(FLAGS_TO_PASS) \
30408 $(POSTSTAGE1_FLAGS_TO_PASS) \
9cb3fa6f 30409
0df3d27f
PB
30410
30411maybe-clean-stage4-gas: clean-stage4-gas
30412clean-stage4-gas:
30413 @[ -f gas/Makefile ] || [ -f stage4-gas/Makefile ] \
30414 || exit 0 ; \
30415 [ -f gas/Makefile ] || $(MAKE) stage4-start ; \
30416 cd gas && \
30417 $(MAKE) $(FLAGS_TO_PASS) \
30418 $(POSTSTAGE1_FLAGS_TO_PASS) \
30419 clean
72b2455a
PB
30420@endif gas-bootstrap
30421
0df3d27f 30422
9cb3fa6f
PB
30423.PHONY: configure-stage4-gcc maybe-configure-stage4-gcc
30424.PHONY: all-stage4-gcc maybe-all-stage4-gcc
0df3d27f 30425.PHONY: clean-stage4-gcc maybe-clean-stage4-gcc
9cb3fa6f 30426
72b2455a
PB
30427maybe-configure-stage4-gcc:
30428maybe-all-stage4-gcc:
0df3d27f 30429maybe-clean-stage4-gcc:
72b2455a
PB
30430
30431@if gcc-bootstrap
30432maybe-configure-stage4-gcc: configure-stage4-gcc
9cb3fa6f
PB
30433configure-stage4-gcc:
30434 @$(MAKE) stage4-start
30435 @[ -f gcc/Makefile ] && exit 0 || : ; \
72b2455a
PB
30436 r=`${PWD_COMMAND}`; export r; \
30437 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30438 $(STAGE_HOST_EXPORTS) \
30439 echo Configuring stage 4 in gcc ; \
30440 cd gcc || exit 1; \
30441 case $(srcdir) in \
30442 \.) \
30443 srcdiroption="--srcdir=."; \
30444 libsrcdir=".";; \
30445 /* | [A-Za-z]:[\\/]*) \
30446 srcdiroption="--srcdir=$(srcdir)/gcc"; \
30447 libsrcdir="$$s/gcc";; \
30448 *) \
30449 srcdiroption="--srcdir=../$(srcdir)/gcc"; \
30450 libsrcdir="$$s/gcc";; \
30451 esac; \
30452 $(SHELL) $${libsrcdir}/configure \
30453 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 30454 @stage2_werror_flag@
72b2455a
PB
30455
30456maybe-all-stage4-gcc: all-stage4-gcc
30457all-stage4-gcc: configure-stage4-gcc
9cb3fa6f 30458 @$(MAKE) stage4-start
72b2455a
PB
30459 @r=`${PWD_COMMAND}`; export r; \
30460 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30461 $(STAGE_HOST_EXPORTS) \
30462 cd gcc && \
30463 $(MAKE) $(FLAGS_TO_PASS) \
30464 $(POSTSTAGE1_FLAGS_TO_PASS) \
9cb3fa6f 30465 $(EXTRA_GCC_FLAGS)
0df3d27f
PB
30466
30467maybe-clean-stage4-gcc: clean-stage4-gcc
30468clean-stage4-gcc:
30469 @[ -f gcc/Makefile ] || [ -f stage4-gcc/Makefile ] \
30470 || exit 0 ; \
30471 [ -f gcc/Makefile ] || $(MAKE) stage4-start ; \
30472 cd gcc && \
30473 $(MAKE) $(FLAGS_TO_PASS) \
30474 $(POSTSTAGE1_FLAGS_TO_PASS) \
30475 $(EXTRA_GCC_FLAGS) clean
72b2455a
PB
30476@endif gcc-bootstrap
30477
0df3d27f 30478
9cb3fa6f
PB
30479.PHONY: configure-stage4-intl maybe-configure-stage4-intl
30480.PHONY: all-stage4-intl maybe-all-stage4-intl
0df3d27f 30481.PHONY: clean-stage4-intl maybe-clean-stage4-intl
9cb3fa6f 30482
72b2455a
PB
30483maybe-configure-stage4-intl:
30484maybe-all-stage4-intl:
0df3d27f 30485maybe-clean-stage4-intl:
72b2455a
PB
30486
30487@if intl-bootstrap
30488maybe-configure-stage4-intl: configure-stage4-intl
9cb3fa6f
PB
30489configure-stage4-intl:
30490 @$(MAKE) stage4-start
30491 @[ -f intl/Makefile ] && exit 0 || : ; \
72b2455a
PB
30492 r=`${PWD_COMMAND}`; export r; \
30493 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30494 $(STAGE_HOST_EXPORTS) \
30495 echo Configuring stage 4 in intl ; \
30496 cd intl || exit 1; \
30497 case $(srcdir) in \
30498 \.) \
30499 srcdiroption="--srcdir=."; \
30500 libsrcdir=".";; \
30501 /* | [A-Za-z]:[\\/]*) \
30502 srcdiroption="--srcdir=$(srcdir)/intl"; \
30503 libsrcdir="$$s/intl";; \
30504 *) \
30505 srcdiroption="--srcdir=../$(srcdir)/intl"; \
30506 libsrcdir="$$s/intl";; \
30507 esac; \
30508 $(SHELL) $${libsrcdir}/configure \
30509 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 30510 @stage2_werror_flag@
72b2455a
PB
30511
30512maybe-all-stage4-intl: all-stage4-intl
30513all-stage4-intl: configure-stage4-intl
9cb3fa6f 30514 @$(MAKE) stage4-start
72b2455a
PB
30515 @r=`${PWD_COMMAND}`; export r; \
30516 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30517 $(STAGE_HOST_EXPORTS) \
30518 cd intl && \
30519 $(MAKE) $(FLAGS_TO_PASS) \
30520 $(POSTSTAGE1_FLAGS_TO_PASS) \
9cb3fa6f 30521
0df3d27f
PB
30522
30523maybe-clean-stage4-intl: clean-stage4-intl
30524clean-stage4-intl:
30525 @[ -f intl/Makefile ] || [ -f stage4-intl/Makefile ] \
30526 || exit 0 ; \
30527 [ -f intl/Makefile ] || $(MAKE) stage4-start ; \
30528 cd intl && \
30529 $(MAKE) $(FLAGS_TO_PASS) \
30530 $(POSTSTAGE1_FLAGS_TO_PASS) \
30531 clean
72b2455a
PB
30532@endif intl-bootstrap
30533
0df3d27f 30534
9cb3fa6f
PB
30535.PHONY: configure-stage4-ld maybe-configure-stage4-ld
30536.PHONY: all-stage4-ld maybe-all-stage4-ld
0df3d27f 30537.PHONY: clean-stage4-ld maybe-clean-stage4-ld
9cb3fa6f 30538
72b2455a
PB
30539maybe-configure-stage4-ld:
30540maybe-all-stage4-ld:
0df3d27f 30541maybe-clean-stage4-ld:
72b2455a
PB
30542
30543@if ld-bootstrap
30544maybe-configure-stage4-ld: configure-stage4-ld
9cb3fa6f
PB
30545configure-stage4-ld:
30546 @$(MAKE) stage4-start
30547 @[ -f ld/Makefile ] && exit 0 || : ; \
72b2455a
PB
30548 r=`${PWD_COMMAND}`; export r; \
30549 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30550 $(STAGE_HOST_EXPORTS) \
30551 echo Configuring stage 4 in ld ; \
30552 cd ld || exit 1; \
30553 case $(srcdir) in \
30554 \.) \
30555 srcdiroption="--srcdir=."; \
30556 libsrcdir=".";; \
30557 /* | [A-Za-z]:[\\/]*) \
30558 srcdiroption="--srcdir=$(srcdir)/ld"; \
30559 libsrcdir="$$s/ld";; \
30560 *) \
30561 srcdiroption="--srcdir=../$(srcdir)/ld"; \
30562 libsrcdir="$$s/ld";; \
30563 esac; \
30564 $(SHELL) $${libsrcdir}/configure \
30565 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 30566 @stage2_werror_flag@
72b2455a
PB
30567
30568maybe-all-stage4-ld: all-stage4-ld
30569all-stage4-ld: configure-stage4-ld
9cb3fa6f 30570 @$(MAKE) stage4-start
72b2455a
PB
30571 @r=`${PWD_COMMAND}`; export r; \
30572 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30573 $(STAGE_HOST_EXPORTS) \
30574 cd ld && \
30575 $(MAKE) $(FLAGS_TO_PASS) \
30576 $(POSTSTAGE1_FLAGS_TO_PASS) \
9cb3fa6f 30577
0df3d27f
PB
30578
30579maybe-clean-stage4-ld: clean-stage4-ld
30580clean-stage4-ld:
30581 @[ -f ld/Makefile ] || [ -f stage4-ld/Makefile ] \
30582 || exit 0 ; \
30583 [ -f ld/Makefile ] || $(MAKE) stage4-start ; \
30584 cd ld && \
30585 $(MAKE) $(FLAGS_TO_PASS) \
30586 $(POSTSTAGE1_FLAGS_TO_PASS) \
30587 clean
72b2455a
PB
30588@endif ld-bootstrap
30589
0df3d27f 30590
9cb3fa6f
PB
30591.PHONY: configure-stage4-libcpp maybe-configure-stage4-libcpp
30592.PHONY: all-stage4-libcpp maybe-all-stage4-libcpp
0df3d27f 30593.PHONY: clean-stage4-libcpp maybe-clean-stage4-libcpp
9cb3fa6f 30594
72b2455a
PB
30595maybe-configure-stage4-libcpp:
30596maybe-all-stage4-libcpp:
0df3d27f 30597maybe-clean-stage4-libcpp:
72b2455a
PB
30598
30599@if libcpp-bootstrap
30600maybe-configure-stage4-libcpp: configure-stage4-libcpp
9cb3fa6f
PB
30601configure-stage4-libcpp:
30602 @$(MAKE) stage4-start
30603 @[ -f libcpp/Makefile ] && exit 0 || : ; \
72b2455a
PB
30604 r=`${PWD_COMMAND}`; export r; \
30605 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30606 $(STAGE_HOST_EXPORTS) \
30607 echo Configuring stage 4 in libcpp ; \
30608 cd libcpp || exit 1; \
30609 case $(srcdir) in \
30610 \.) \
30611 srcdiroption="--srcdir=."; \
30612 libsrcdir=".";; \
30613 /* | [A-Za-z]:[\\/]*) \
30614 srcdiroption="--srcdir=$(srcdir)/libcpp"; \
30615 libsrcdir="$$s/libcpp";; \
30616 *) \
30617 srcdiroption="--srcdir=../$(srcdir)/libcpp"; \
30618 libsrcdir="$$s/libcpp";; \
30619 esac; \
30620 $(SHELL) $${libsrcdir}/configure \
30621 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 30622 @stage2_werror_flag@
72b2455a
PB
30623
30624maybe-all-stage4-libcpp: all-stage4-libcpp
30625all-stage4-libcpp: configure-stage4-libcpp
9cb3fa6f 30626 @$(MAKE) stage4-start
72b2455a
PB
30627 @r=`${PWD_COMMAND}`; export r; \
30628 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30629 $(STAGE_HOST_EXPORTS) \
30630 cd libcpp && \
30631 $(MAKE) $(FLAGS_TO_PASS) \
30632 $(POSTSTAGE1_FLAGS_TO_PASS) \
9cb3fa6f 30633
0df3d27f
PB
30634
30635maybe-clean-stage4-libcpp: clean-stage4-libcpp
30636clean-stage4-libcpp:
30637 @[ -f libcpp/Makefile ] || [ -f stage4-libcpp/Makefile ] \
30638 || exit 0 ; \
30639 [ -f libcpp/Makefile ] || $(MAKE) stage4-start ; \
30640 cd libcpp && \
30641 $(MAKE) $(FLAGS_TO_PASS) \
30642 $(POSTSTAGE1_FLAGS_TO_PASS) \
30643 clean
72b2455a
PB
30644@endif libcpp-bootstrap
30645
0df3d27f 30646
9cb3fa6f
PB
30647.PHONY: configure-stage4-libiberty maybe-configure-stage4-libiberty
30648.PHONY: all-stage4-libiberty maybe-all-stage4-libiberty
0df3d27f 30649.PHONY: clean-stage4-libiberty maybe-clean-stage4-libiberty
9cb3fa6f 30650
72b2455a
PB
30651maybe-configure-stage4-libiberty:
30652maybe-all-stage4-libiberty:
0df3d27f 30653maybe-clean-stage4-libiberty:
72b2455a
PB
30654
30655@if libiberty-bootstrap
30656maybe-configure-stage4-libiberty: configure-stage4-libiberty
9cb3fa6f
PB
30657configure-stage4-libiberty:
30658 @$(MAKE) stage4-start
30659 @[ -f libiberty/Makefile ] && exit 0 || : ; \
72b2455a
PB
30660 r=`${PWD_COMMAND}`; export r; \
30661 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30662 $(STAGE_HOST_EXPORTS) \
30663 echo Configuring stage 4 in libiberty ; \
30664 cd libiberty || exit 1; \
30665 case $(srcdir) in \
30666 \.) \
30667 srcdiroption="--srcdir=."; \
30668 libsrcdir=".";; \
30669 /* | [A-Za-z]:[\\/]*) \
30670 srcdiroption="--srcdir=$(srcdir)/libiberty"; \
30671 libsrcdir="$$s/libiberty";; \
30672 *) \
30673 srcdiroption="--srcdir=../$(srcdir)/libiberty"; \
30674 libsrcdir="$$s/libiberty";; \
30675 esac; \
30676 $(SHELL) $${libsrcdir}/configure \
30677 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 30678 @stage2_werror_flag@
72b2455a
PB
30679
30680maybe-all-stage4-libiberty: all-stage4-libiberty
30681all-stage4-libiberty: configure-stage4-libiberty
9cb3fa6f 30682 @$(MAKE) stage4-start
72b2455a
PB
30683 @r=`${PWD_COMMAND}`; export r; \
30684 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30685 $(STAGE_HOST_EXPORTS) \
30686 cd libiberty && \
30687 $(MAKE) $(FLAGS_TO_PASS) \
30688 $(POSTSTAGE1_FLAGS_TO_PASS) \
9cb3fa6f 30689
0df3d27f
PB
30690
30691maybe-clean-stage4-libiberty: clean-stage4-libiberty
30692clean-stage4-libiberty:
30693 @[ -f libiberty/Makefile ] || [ -f stage4-libiberty/Makefile ] \
30694 || exit 0 ; \
30695 [ -f libiberty/Makefile ] || $(MAKE) stage4-start ; \
30696 cd libiberty && \
30697 $(MAKE) $(FLAGS_TO_PASS) \
30698 $(POSTSTAGE1_FLAGS_TO_PASS) \
30699 clean
72b2455a
PB
30700@endif libiberty-bootstrap
30701
0df3d27f 30702
9cb3fa6f
PB
30703.PHONY: configure-stage4-zlib maybe-configure-stage4-zlib
30704.PHONY: all-stage4-zlib maybe-all-stage4-zlib
0df3d27f 30705.PHONY: clean-stage4-zlib maybe-clean-stage4-zlib
9cb3fa6f 30706
72b2455a
PB
30707maybe-configure-stage4-zlib:
30708maybe-all-stage4-zlib:
0df3d27f 30709maybe-clean-stage4-zlib:
72b2455a
PB
30710
30711@if zlib-bootstrap
30712maybe-configure-stage4-zlib: configure-stage4-zlib
9cb3fa6f
PB
30713configure-stage4-zlib:
30714 @$(MAKE) stage4-start
30715 @[ -f zlib/Makefile ] && exit 0 || : ; \
72b2455a
PB
30716 r=`${PWD_COMMAND}`; export r; \
30717 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30718 $(STAGE_HOST_EXPORTS) \
30719 echo Configuring stage 4 in zlib ; \
30720 cd zlib || exit 1; \
30721 case $(srcdir) in \
30722 \.) \
30723 srcdiroption="--srcdir=."; \
30724 libsrcdir=".";; \
30725 /* | [A-Za-z]:[\\/]*) \
30726 srcdiroption="--srcdir=$(srcdir)/zlib"; \
30727 libsrcdir="$$s/zlib";; \
30728 *) \
30729 srcdiroption="--srcdir=../$(srcdir)/zlib"; \
30730 libsrcdir="$$s/zlib";; \
30731 esac; \
30732 $(SHELL) $${libsrcdir}/configure \
30733 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 30734 @stage2_werror_flag@
72b2455a
PB
30735
30736maybe-all-stage4-zlib: all-stage4-zlib
30737all-stage4-zlib: configure-stage4-zlib
9cb3fa6f 30738 @$(MAKE) stage4-start
72b2455a
PB
30739 @r=`${PWD_COMMAND}`; export r; \
30740 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30741 $(STAGE_HOST_EXPORTS) \
30742 cd zlib && \
30743 $(MAKE) $(FLAGS_TO_PASS) \
30744 $(POSTSTAGE1_FLAGS_TO_PASS) \
9cb3fa6f 30745
0df3d27f
PB
30746
30747maybe-clean-stage4-zlib: clean-stage4-zlib
30748clean-stage4-zlib:
30749 @[ -f zlib/Makefile ] || [ -f stage4-zlib/Makefile ] \
30750 || exit 0 ; \
30751 [ -f zlib/Makefile ] || $(MAKE) stage4-start ; \
30752 cd zlib && \
30753 $(MAKE) $(FLAGS_TO_PASS) \
30754 $(POSTSTAGE1_FLAGS_TO_PASS) \
30755 clean
72b2455a
PB
30756@endif zlib-bootstrap
30757
30758
0df3d27f 30759
72b2455a
PB
30760# FIXME: Will not need to be conditional when toplevel bootstrap is the
30761# only possibility, but now it conflicts with no-bootstrap rules
30762@if gcc-bootstrap
30763
9cb3fa6f
PB
30764compare3:
30765 @if test -f stage3-lean; then \
30766 echo Cannot compare object files as stage 3 was deleted. ; \
30767 exit 0 ; \
30768 fi; \
30769 [ -f stage_current ] && $(MAKE) `cat stage_current`-end || : ; \
72b2455a
PB
30770 @r=`${PWD_COMMAND}`; export r; \
30771 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30772 rm -f .bad_compare ; \
30773 cd stage4-gcc; \
30774 files=`find . -name "*$(objext)" -print` ; \
30775 cd .. ; \
30776 for file in $${files} ; do \
30777 f1=$$r/stage3-gcc/$$file; f2=$$r/stage4-gcc/$$file; \
30778 @do_compare@ > /dev/null 2>&1; \
30779 test $$? -eq 1 && echo $$file differs >> .bad_compare || true; \
30780 done ; \
30781 if [ -f .bad_compare ]; then \
30782 echo "Bootstrap comparison failure!"; \
30783 cat .bad_compare; \
30784 exit 1; \
30785 else \
30786 true; \
30787 fi ; \
30788 $(STAMP) compare3
9cb3fa6f 30789 @bootstrap_lean@-rm -rf stage3-* ; $(STAMP) stage3-lean
72b2455a
PB
30790
30791
30792
30793.PHONY: bootstrap4
9cb3fa6f 30794bootstrap4: stage4-bubble compare3 all
72b2455a
PB
30795
30796
0df3d27f 30797# Rules to wipe a stage and all the following ones, also used for cleanstrap
72b2455a 30798distclean-stage3:: distclean-stage4
0df3d27f 30799.PHONY: distclean-stage4
72b2455a
PB
30800distclean-stage4::
30801 [ -f stage_current ] && $(MAKE) `cat stage_current`-end || :
9cb3fa6f 30802 rm -rf stage4-* compare3
72b2455a
PB
30803
30804
30805@endif gcc-bootstrap
30806
30807
30808.PHONY: stageprofile-start stageprofile-end
30809
30810stageprofile-start::
9cb3fa6f 30811 @[ -f stage_current ] && $(MAKE) `cat stage_current`-end || : ; \
72b2455a
PB
30812 echo stageprofile > stage_current ; \
30813 echo stageprofile > stage_last
30814@if bfd
9cb3fa6f 30815 @[ -d stageprofile-bfd ] || mkdir stageprofile-bfd; \
72b2455a
PB
30816 set stageprofile-bfd bfd ; @CREATE_LINK_TO_DIR@ ; \
30817 set stage1-bfd prev-bfd ; @CREATE_LINK_TO_DIR@
30818@endif bfd
30819@if opcodes
9cb3fa6f 30820 @[ -d stageprofile-opcodes ] || mkdir stageprofile-opcodes; \
72b2455a
PB
30821 set stageprofile-opcodes opcodes ; @CREATE_LINK_TO_DIR@ ; \
30822 set stage1-opcodes prev-opcodes ; @CREATE_LINK_TO_DIR@
30823@endif opcodes
30824@if binutils
9cb3fa6f 30825 @[ -d stageprofile-binutils ] || mkdir stageprofile-binutils; \
72b2455a
PB
30826 set stageprofile-binutils binutils ; @CREATE_LINK_TO_DIR@ ; \
30827 set stage1-binutils prev-binutils ; @CREATE_LINK_TO_DIR@
30828@endif binutils
30829@if gas
9cb3fa6f 30830 @[ -d stageprofile-gas ] || mkdir stageprofile-gas; \
72b2455a
PB
30831 set stageprofile-gas gas ; @CREATE_LINK_TO_DIR@ ; \
30832 set stage1-gas prev-gas ; @CREATE_LINK_TO_DIR@
30833@endif gas
30834@if gcc
9cb3fa6f 30835 @[ -d stageprofile-gcc ] || mkdir stageprofile-gcc; \
72b2455a
PB
30836 set stageprofile-gcc gcc ; @CREATE_LINK_TO_DIR@ ; \
30837 set stage1-gcc prev-gcc ; @CREATE_LINK_TO_DIR@
30838@endif gcc
30839@if intl
9cb3fa6f 30840 @[ -d stageprofile-intl ] || mkdir stageprofile-intl; \
72b2455a
PB
30841 set stageprofile-intl intl ; @CREATE_LINK_TO_DIR@ ; \
30842 set stage1-intl prev-intl ; @CREATE_LINK_TO_DIR@
30843@endif intl
30844@if ld
9cb3fa6f 30845 @[ -d stageprofile-ld ] || mkdir stageprofile-ld; \
72b2455a
PB
30846 set stageprofile-ld ld ; @CREATE_LINK_TO_DIR@ ; \
30847 set stage1-ld prev-ld ; @CREATE_LINK_TO_DIR@
30848@endif ld
30849@if libcpp
9cb3fa6f 30850 @[ -d stageprofile-libcpp ] || mkdir stageprofile-libcpp; \
72b2455a
PB
30851 set stageprofile-libcpp libcpp ; @CREATE_LINK_TO_DIR@ ; \
30852 set stage1-libcpp prev-libcpp ; @CREATE_LINK_TO_DIR@
30853@endif libcpp
72b2455a 30854@if libiberty
9cb3fa6f 30855 @[ -d stageprofile-libiberty ] || mkdir stageprofile-libiberty; \
72b2455a
PB
30856 set stageprofile-libiberty libiberty ; @CREATE_LINK_TO_DIR@ ; \
30857 set stage1-libiberty prev-libiberty ; @CREATE_LINK_TO_DIR@
30858@endif libiberty
30859@if zlib
9cb3fa6f 30860 @[ -d stageprofile-zlib ] || mkdir stageprofile-zlib; \
72b2455a
PB
30861 set stageprofile-zlib zlib ; @CREATE_LINK_TO_DIR@ ; \
30862 set stage1-zlib prev-zlib ; @CREATE_LINK_TO_DIR@
30863@endif zlib
30864
30865stageprofile-end::
9cb3fa6f 30866 @rm -f stage_current
72b2455a 30867@if bfd
9cb3fa6f 30868 @set bfd stageprofile-bfd ; @UNDO_LINK_TO_DIR@ ; \
72b2455a
PB
30869 set prev-bfd stage1-bfd ; @UNDO_LINK_TO_DIR@
30870@endif bfd
30871@if opcodes
9cb3fa6f 30872 @set opcodes stageprofile-opcodes ; @UNDO_LINK_TO_DIR@ ; \
72b2455a
PB
30873 set prev-opcodes stage1-opcodes ; @UNDO_LINK_TO_DIR@
30874@endif opcodes
30875@if binutils
9cb3fa6f 30876 @set binutils stageprofile-binutils ; @UNDO_LINK_TO_DIR@ ; \
72b2455a
PB
30877 set prev-binutils stage1-binutils ; @UNDO_LINK_TO_DIR@
30878@endif binutils
30879@if gas
9cb3fa6f 30880 @set gas stageprofile-gas ; @UNDO_LINK_TO_DIR@ ; \
72b2455a
PB
30881 set prev-gas stage1-gas ; @UNDO_LINK_TO_DIR@
30882@endif gas
30883@if gcc
9cb3fa6f 30884 @set gcc stageprofile-gcc ; @UNDO_LINK_TO_DIR@ ; \
72b2455a
PB
30885 set prev-gcc stage1-gcc ; @UNDO_LINK_TO_DIR@
30886@endif gcc
30887@if intl
9cb3fa6f 30888 @set intl stageprofile-intl ; @UNDO_LINK_TO_DIR@ ; \
72b2455a
PB
30889 set prev-intl stage1-intl ; @UNDO_LINK_TO_DIR@
30890@endif intl
30891@if ld
9cb3fa6f 30892 @set ld stageprofile-ld ; @UNDO_LINK_TO_DIR@ ; \
72b2455a
PB
30893 set prev-ld stage1-ld ; @UNDO_LINK_TO_DIR@
30894@endif ld
30895@if libcpp
9cb3fa6f 30896 @set libcpp stageprofile-libcpp ; @UNDO_LINK_TO_DIR@ ; \
72b2455a
PB
30897 set prev-libcpp stage1-libcpp ; @UNDO_LINK_TO_DIR@
30898@endif libcpp
72b2455a 30899@if libiberty
9cb3fa6f 30900 @set libiberty stageprofile-libiberty ; @UNDO_LINK_TO_DIR@ ; \
72b2455a
PB
30901 set prev-libiberty stage1-libiberty ; @UNDO_LINK_TO_DIR@
30902@endif libiberty
30903@if zlib
9cb3fa6f 30904 @set zlib stageprofile-zlib ; @UNDO_LINK_TO_DIR@ ; \
72b2455a
PB
30905 set prev-zlib stage1-zlib ; @UNDO_LINK_TO_DIR@
30906@endif zlib
30907
30908# Bubble a bugfix through all the stages up to stage profile. They
30909# are remade, but not reconfigured. The next stage (if any) will not
30910# be reconfigured as well.
30911.PHONY: stageprofile-bubble
30912stageprofile-bubble:: stage1-bubble
9cb3fa6f
PB
30913 @if test -f stageprofile-lean || test -f stage1-lean ; then \
30914 echo Skipping rebuild of stageprofile ; \
30915 else \
0df3d27f 30916 $(MAKE) $(RECURSE_FLAGS_TO_PASS) NOTPARALLEL= all-stageprofile; \
9cb3fa6f 30917 fi
72b2455a 30918
0df3d27f 30919.PHONY: all-stageprofile clean-stageprofile
72b2455a
PB
30920all-stageprofile: \
30921 maybe-all-stageprofile-bfd \
30922 maybe-all-stageprofile-opcodes \
30923 maybe-all-stageprofile-binutils \
30924 maybe-all-stageprofile-gas \
30925 maybe-all-stageprofile-gcc \
30926 maybe-all-stageprofile-intl \
30927 maybe-all-stageprofile-ld \
30928 maybe-all-stageprofile-libcpp \
72b2455a
PB
30929 maybe-all-stageprofile-libiberty \
30930 maybe-all-stageprofile-zlib
30931
0df3d27f
PB
30932do-clean: clean-stageprofile
30933clean-stageprofile: \
30934 maybe-clean-stageprofile-bfd \
30935 maybe-clean-stageprofile-opcodes \
30936 maybe-clean-stageprofile-binutils \
30937 maybe-clean-stageprofile-gas \
30938 maybe-clean-stageprofile-gcc \
30939 maybe-clean-stageprofile-intl \
30940 maybe-clean-stageprofile-ld \
30941 maybe-clean-stageprofile-libcpp \
0df3d27f
PB
30942 maybe-clean-stageprofile-libiberty \
30943 maybe-clean-stageprofile-zlib
30944
72b2455a 30945
9cb3fa6f
PB
30946.PHONY: configure-stageprofile-bfd maybe-configure-stageprofile-bfd
30947.PHONY: all-stageprofile-bfd maybe-all-stageprofile-bfd
0df3d27f 30948.PHONY: clean-stageprofile-bfd maybe-clean-stageprofile-bfd
9cb3fa6f 30949
72b2455a
PB
30950maybe-configure-stageprofile-bfd:
30951maybe-all-stageprofile-bfd:
0df3d27f 30952maybe-clean-stageprofile-bfd:
72b2455a
PB
30953
30954@if bfd-bootstrap
30955maybe-configure-stageprofile-bfd: configure-stageprofile-bfd
9cb3fa6f
PB
30956configure-stageprofile-bfd:
30957 @$(MAKE) stageprofile-start
30958 @[ -f bfd/Makefile ] && exit 0 || : ; \
72b2455a
PB
30959 r=`${PWD_COMMAND}`; export r; \
30960 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30961 $(STAGE_HOST_EXPORTS) \
30962 echo Configuring stage profile in bfd ; \
30963 cd bfd || exit 1; \
30964 case $(srcdir) in \
30965 \.) \
30966 srcdiroption="--srcdir=."; \
30967 libsrcdir=".";; \
30968 /* | [A-Za-z]:[\\/]*) \
30969 srcdiroption="--srcdir=$(srcdir)/bfd"; \
30970 libsrcdir="$$s/bfd";; \
30971 *) \
30972 srcdiroption="--srcdir=../$(srcdir)/bfd"; \
30973 libsrcdir="$$s/bfd";; \
30974 esac; \
30975 $(SHELL) $${libsrcdir}/configure \
30976 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 30977 @stage2_werror_flag@
72b2455a
PB
30978
30979maybe-all-stageprofile-bfd: all-stageprofile-bfd
30980all-stageprofile-bfd: configure-stageprofile-bfd
9cb3fa6f 30981 @$(MAKE) stageprofile-start
72b2455a
PB
30982 @r=`${PWD_COMMAND}`; export r; \
30983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30984 $(STAGE_HOST_EXPORTS) \
30985 cd bfd && \
30986 $(MAKE) $(FLAGS_TO_PASS) \
30987 $(POSTSTAGE1_FLAGS_TO_PASS) \
9cb3fa6f 30988 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate"
0df3d27f
PB
30989
30990maybe-clean-stageprofile-bfd: clean-stageprofile-bfd
30991clean-stageprofile-bfd:
30992 @[ -f bfd/Makefile ] || [ -f stageprofile-bfd/Makefile ] \
30993 || exit 0 ; \
30994 [ -f bfd/Makefile ] || $(MAKE) stageprofile-start ; \
30995 cd bfd && \
30996 $(MAKE) $(FLAGS_TO_PASS) \
30997 $(POSTSTAGE1_FLAGS_TO_PASS) \
30998 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
72b2455a
PB
30999@endif bfd-bootstrap
31000
0df3d27f 31001
9cb3fa6f
PB
31002.PHONY: configure-stageprofile-opcodes maybe-configure-stageprofile-opcodes
31003.PHONY: all-stageprofile-opcodes maybe-all-stageprofile-opcodes
0df3d27f 31004.PHONY: clean-stageprofile-opcodes maybe-clean-stageprofile-opcodes
9cb3fa6f 31005
72b2455a
PB
31006maybe-configure-stageprofile-opcodes:
31007maybe-all-stageprofile-opcodes:
0df3d27f 31008maybe-clean-stageprofile-opcodes:
72b2455a
PB
31009
31010@if opcodes-bootstrap
31011maybe-configure-stageprofile-opcodes: configure-stageprofile-opcodes
9cb3fa6f
PB
31012configure-stageprofile-opcodes:
31013 @$(MAKE) stageprofile-start
31014 @[ -f opcodes/Makefile ] && exit 0 || : ; \
72b2455a
PB
31015 r=`${PWD_COMMAND}`; export r; \
31016 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31017 $(STAGE_HOST_EXPORTS) \
31018 echo Configuring stage profile in opcodes ; \
31019 cd opcodes || exit 1; \
31020 case $(srcdir) in \
31021 \.) \
31022 srcdiroption="--srcdir=."; \
31023 libsrcdir=".";; \
31024 /* | [A-Za-z]:[\\/]*) \
31025 srcdiroption="--srcdir=$(srcdir)/opcodes"; \
31026 libsrcdir="$$s/opcodes";; \
31027 *) \
31028 srcdiroption="--srcdir=../$(srcdir)/opcodes"; \
31029 libsrcdir="$$s/opcodes";; \
31030 esac; \
31031 $(SHELL) $${libsrcdir}/configure \
31032 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 31033 @stage2_werror_flag@
72b2455a
PB
31034
31035maybe-all-stageprofile-opcodes: all-stageprofile-opcodes
31036all-stageprofile-opcodes: configure-stageprofile-opcodes
9cb3fa6f 31037 @$(MAKE) stageprofile-start
72b2455a
PB
31038 @r=`${PWD_COMMAND}`; export r; \
31039 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31040 $(STAGE_HOST_EXPORTS) \
31041 cd opcodes && \
31042 $(MAKE) $(FLAGS_TO_PASS) \
31043 $(POSTSTAGE1_FLAGS_TO_PASS) \
9cb3fa6f 31044 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate"
0df3d27f
PB
31045
31046maybe-clean-stageprofile-opcodes: clean-stageprofile-opcodes
31047clean-stageprofile-opcodes:
31048 @[ -f opcodes/Makefile ] || [ -f stageprofile-opcodes/Makefile ] \
31049 || exit 0 ; \
31050 [ -f opcodes/Makefile ] || $(MAKE) stageprofile-start ; \
31051 cd opcodes && \
31052 $(MAKE) $(FLAGS_TO_PASS) \
31053 $(POSTSTAGE1_FLAGS_TO_PASS) \
31054 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
72b2455a
PB
31055@endif opcodes-bootstrap
31056
0df3d27f 31057
9cb3fa6f
PB
31058.PHONY: configure-stageprofile-binutils maybe-configure-stageprofile-binutils
31059.PHONY: all-stageprofile-binutils maybe-all-stageprofile-binutils
0df3d27f 31060.PHONY: clean-stageprofile-binutils maybe-clean-stageprofile-binutils
9cb3fa6f 31061
72b2455a
PB
31062maybe-configure-stageprofile-binutils:
31063maybe-all-stageprofile-binutils:
0df3d27f 31064maybe-clean-stageprofile-binutils:
72b2455a
PB
31065
31066@if binutils-bootstrap
31067maybe-configure-stageprofile-binutils: configure-stageprofile-binutils
9cb3fa6f
PB
31068configure-stageprofile-binutils:
31069 @$(MAKE) stageprofile-start
31070 @[ -f binutils/Makefile ] && exit 0 || : ; \
72b2455a
PB
31071 r=`${PWD_COMMAND}`; export r; \
31072 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31073 $(STAGE_HOST_EXPORTS) \
31074 echo Configuring stage profile in binutils ; \
31075 cd binutils || exit 1; \
31076 case $(srcdir) in \
31077 \.) \
31078 srcdiroption="--srcdir=."; \
31079 libsrcdir=".";; \
31080 /* | [A-Za-z]:[\\/]*) \
31081 srcdiroption="--srcdir=$(srcdir)/binutils"; \
31082 libsrcdir="$$s/binutils";; \
31083 *) \
31084 srcdiroption="--srcdir=../$(srcdir)/binutils"; \
31085 libsrcdir="$$s/binutils";; \
31086 esac; \
31087 $(SHELL) $${libsrcdir}/configure \
31088 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 31089 @stage2_werror_flag@
72b2455a
PB
31090
31091maybe-all-stageprofile-binutils: all-stageprofile-binutils
31092all-stageprofile-binutils: configure-stageprofile-binutils
9cb3fa6f 31093 @$(MAKE) stageprofile-start
72b2455a
PB
31094 @r=`${PWD_COMMAND}`; export r; \
31095 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31096 $(STAGE_HOST_EXPORTS) \
31097 cd binutils && \
31098 $(MAKE) $(FLAGS_TO_PASS) \
31099 $(POSTSTAGE1_FLAGS_TO_PASS) \
9cb3fa6f 31100 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate"
0df3d27f
PB
31101
31102maybe-clean-stageprofile-binutils: clean-stageprofile-binutils
31103clean-stageprofile-binutils:
31104 @[ -f binutils/Makefile ] || [ -f stageprofile-binutils/Makefile ] \
31105 || exit 0 ; \
31106 [ -f binutils/Makefile ] || $(MAKE) stageprofile-start ; \
31107 cd binutils && \
31108 $(MAKE) $(FLAGS_TO_PASS) \
31109 $(POSTSTAGE1_FLAGS_TO_PASS) \
31110 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
72b2455a
PB
31111@endif binutils-bootstrap
31112
0df3d27f 31113
9cb3fa6f
PB
31114.PHONY: configure-stageprofile-gas maybe-configure-stageprofile-gas
31115.PHONY: all-stageprofile-gas maybe-all-stageprofile-gas
0df3d27f 31116.PHONY: clean-stageprofile-gas maybe-clean-stageprofile-gas
9cb3fa6f 31117
72b2455a
PB
31118maybe-configure-stageprofile-gas:
31119maybe-all-stageprofile-gas:
0df3d27f 31120maybe-clean-stageprofile-gas:
72b2455a
PB
31121
31122@if gas-bootstrap
31123maybe-configure-stageprofile-gas: configure-stageprofile-gas
9cb3fa6f
PB
31124configure-stageprofile-gas:
31125 @$(MAKE) stageprofile-start
31126 @[ -f gas/Makefile ] && exit 0 || : ; \
72b2455a
PB
31127 r=`${PWD_COMMAND}`; export r; \
31128 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31129 $(STAGE_HOST_EXPORTS) \
31130 echo Configuring stage profile in gas ; \
31131 cd gas || exit 1; \
31132 case $(srcdir) in \
31133 \.) \
31134 srcdiroption="--srcdir=."; \
31135 libsrcdir=".";; \
31136 /* | [A-Za-z]:[\\/]*) \
31137 srcdiroption="--srcdir=$(srcdir)/gas"; \
31138 libsrcdir="$$s/gas";; \
31139 *) \
31140 srcdiroption="--srcdir=../$(srcdir)/gas"; \
31141 libsrcdir="$$s/gas";; \
31142 esac; \
31143 $(SHELL) $${libsrcdir}/configure \
31144 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 31145 @stage2_werror_flag@
72b2455a
PB
31146
31147maybe-all-stageprofile-gas: all-stageprofile-gas
31148all-stageprofile-gas: configure-stageprofile-gas
9cb3fa6f 31149 @$(MAKE) stageprofile-start
72b2455a
PB
31150 @r=`${PWD_COMMAND}`; export r; \
31151 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31152 $(STAGE_HOST_EXPORTS) \
31153 cd gas && \
31154 $(MAKE) $(FLAGS_TO_PASS) \
31155 $(POSTSTAGE1_FLAGS_TO_PASS) \
9cb3fa6f 31156 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate"
0df3d27f
PB
31157
31158maybe-clean-stageprofile-gas: clean-stageprofile-gas
31159clean-stageprofile-gas:
31160 @[ -f gas/Makefile ] || [ -f stageprofile-gas/Makefile ] \
31161 || exit 0 ; \
31162 [ -f gas/Makefile ] || $(MAKE) stageprofile-start ; \
31163 cd gas && \
31164 $(MAKE) $(FLAGS_TO_PASS) \
31165 $(POSTSTAGE1_FLAGS_TO_PASS) \
31166 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
72b2455a
PB
31167@endif gas-bootstrap
31168
0df3d27f 31169
9cb3fa6f
PB
31170.PHONY: configure-stageprofile-gcc maybe-configure-stageprofile-gcc
31171.PHONY: all-stageprofile-gcc maybe-all-stageprofile-gcc
0df3d27f 31172.PHONY: clean-stageprofile-gcc maybe-clean-stageprofile-gcc
9cb3fa6f 31173
72b2455a
PB
31174maybe-configure-stageprofile-gcc:
31175maybe-all-stageprofile-gcc:
0df3d27f 31176maybe-clean-stageprofile-gcc:
72b2455a
PB
31177
31178@if gcc-bootstrap
31179maybe-configure-stageprofile-gcc: configure-stageprofile-gcc
9cb3fa6f
PB
31180configure-stageprofile-gcc:
31181 @$(MAKE) stageprofile-start
31182 @[ -f gcc/Makefile ] && exit 0 || : ; \
72b2455a
PB
31183 r=`${PWD_COMMAND}`; export r; \
31184 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31185 $(STAGE_HOST_EXPORTS) \
31186 echo Configuring stage profile in gcc ; \
31187 cd gcc || exit 1; \
31188 case $(srcdir) in \
31189 \.) \
31190 srcdiroption="--srcdir=."; \
31191 libsrcdir=".";; \
31192 /* | [A-Za-z]:[\\/]*) \
31193 srcdiroption="--srcdir=$(srcdir)/gcc"; \
31194 libsrcdir="$$s/gcc";; \
31195 *) \
31196 srcdiroption="--srcdir=../$(srcdir)/gcc"; \
31197 libsrcdir="$$s/gcc";; \
31198 esac; \
31199 $(SHELL) $${libsrcdir}/configure \
31200 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 31201 @stage2_werror_flag@
72b2455a
PB
31202
31203maybe-all-stageprofile-gcc: all-stageprofile-gcc
31204all-stageprofile-gcc: configure-stageprofile-gcc
9cb3fa6f 31205 @$(MAKE) stageprofile-start
72b2455a
PB
31206 @r=`${PWD_COMMAND}`; export r; \
31207 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31208 $(STAGE_HOST_EXPORTS) \
31209 cd gcc && \
31210 $(MAKE) $(FLAGS_TO_PASS) \
31211 $(POSTSTAGE1_FLAGS_TO_PASS) \
9cb3fa6f 31212 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" $(EXTRA_GCC_FLAGS)
0df3d27f
PB
31213
31214maybe-clean-stageprofile-gcc: clean-stageprofile-gcc
31215clean-stageprofile-gcc:
31216 @[ -f gcc/Makefile ] || [ -f stageprofile-gcc/Makefile ] \
31217 || exit 0 ; \
31218 [ -f gcc/Makefile ] || $(MAKE) stageprofile-start ; \
31219 cd gcc && \
31220 $(MAKE) $(FLAGS_TO_PASS) \
31221 $(POSTSTAGE1_FLAGS_TO_PASS) \
31222 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" $(EXTRA_GCC_FLAGS) clean
72b2455a
PB
31223@endif gcc-bootstrap
31224
0df3d27f 31225
9cb3fa6f
PB
31226.PHONY: configure-stageprofile-intl maybe-configure-stageprofile-intl
31227.PHONY: all-stageprofile-intl maybe-all-stageprofile-intl
0df3d27f 31228.PHONY: clean-stageprofile-intl maybe-clean-stageprofile-intl
9cb3fa6f 31229
72b2455a
PB
31230maybe-configure-stageprofile-intl:
31231maybe-all-stageprofile-intl:
0df3d27f 31232maybe-clean-stageprofile-intl:
72b2455a
PB
31233
31234@if intl-bootstrap
31235maybe-configure-stageprofile-intl: configure-stageprofile-intl
9cb3fa6f
PB
31236configure-stageprofile-intl:
31237 @$(MAKE) stageprofile-start
31238 @[ -f intl/Makefile ] && exit 0 || : ; \
72b2455a
PB
31239 r=`${PWD_COMMAND}`; export r; \
31240 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31241 $(STAGE_HOST_EXPORTS) \
31242 echo Configuring stage profile in intl ; \
31243 cd intl || exit 1; \
31244 case $(srcdir) in \
31245 \.) \
31246 srcdiroption="--srcdir=."; \
31247 libsrcdir=".";; \
31248 /* | [A-Za-z]:[\\/]*) \
31249 srcdiroption="--srcdir=$(srcdir)/intl"; \
31250 libsrcdir="$$s/intl";; \
31251 *) \
31252 srcdiroption="--srcdir=../$(srcdir)/intl"; \
31253 libsrcdir="$$s/intl";; \
31254 esac; \
31255 $(SHELL) $${libsrcdir}/configure \
31256 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 31257 @stage2_werror_flag@
72b2455a
PB
31258
31259maybe-all-stageprofile-intl: all-stageprofile-intl
31260all-stageprofile-intl: configure-stageprofile-intl
9cb3fa6f 31261 @$(MAKE) stageprofile-start
72b2455a
PB
31262 @r=`${PWD_COMMAND}`; export r; \
31263 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31264 $(STAGE_HOST_EXPORTS) \
31265 cd intl && \
31266 $(MAKE) $(FLAGS_TO_PASS) \
31267 $(POSTSTAGE1_FLAGS_TO_PASS) \
9cb3fa6f 31268 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate"
0df3d27f
PB
31269
31270maybe-clean-stageprofile-intl: clean-stageprofile-intl
31271clean-stageprofile-intl:
31272 @[ -f intl/Makefile ] || [ -f stageprofile-intl/Makefile ] \
31273 || exit 0 ; \
31274 [ -f intl/Makefile ] || $(MAKE) stageprofile-start ; \
31275 cd intl && \
31276 $(MAKE) $(FLAGS_TO_PASS) \
31277 $(POSTSTAGE1_FLAGS_TO_PASS) \
31278 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
72b2455a
PB
31279@endif intl-bootstrap
31280
0df3d27f 31281
9cb3fa6f
PB
31282.PHONY: configure-stageprofile-ld maybe-configure-stageprofile-ld
31283.PHONY: all-stageprofile-ld maybe-all-stageprofile-ld
0df3d27f 31284.PHONY: clean-stageprofile-ld maybe-clean-stageprofile-ld
9cb3fa6f 31285
72b2455a
PB
31286maybe-configure-stageprofile-ld:
31287maybe-all-stageprofile-ld:
0df3d27f 31288maybe-clean-stageprofile-ld:
72b2455a
PB
31289
31290@if ld-bootstrap
31291maybe-configure-stageprofile-ld: configure-stageprofile-ld
9cb3fa6f
PB
31292configure-stageprofile-ld:
31293 @$(MAKE) stageprofile-start
31294 @[ -f ld/Makefile ] && exit 0 || : ; \
72b2455a
PB
31295 r=`${PWD_COMMAND}`; export r; \
31296 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31297 $(STAGE_HOST_EXPORTS) \
31298 echo Configuring stage profile in ld ; \
31299 cd ld || exit 1; \
31300 case $(srcdir) in \
31301 \.) \
31302 srcdiroption="--srcdir=."; \
31303 libsrcdir=".";; \
31304 /* | [A-Za-z]:[\\/]*) \
31305 srcdiroption="--srcdir=$(srcdir)/ld"; \
31306 libsrcdir="$$s/ld";; \
31307 *) \
31308 srcdiroption="--srcdir=../$(srcdir)/ld"; \
31309 libsrcdir="$$s/ld";; \
31310 esac; \
31311 $(SHELL) $${libsrcdir}/configure \
31312 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 31313 @stage2_werror_flag@
72b2455a
PB
31314
31315maybe-all-stageprofile-ld: all-stageprofile-ld
31316all-stageprofile-ld: configure-stageprofile-ld
9cb3fa6f 31317 @$(MAKE) stageprofile-start
72b2455a
PB
31318 @r=`${PWD_COMMAND}`; export r; \
31319 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31320 $(STAGE_HOST_EXPORTS) \
31321 cd ld && \
31322 $(MAKE) $(FLAGS_TO_PASS) \
31323 $(POSTSTAGE1_FLAGS_TO_PASS) \
9cb3fa6f 31324 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate"
0df3d27f
PB
31325
31326maybe-clean-stageprofile-ld: clean-stageprofile-ld
31327clean-stageprofile-ld:
31328 @[ -f ld/Makefile ] || [ -f stageprofile-ld/Makefile ] \
31329 || exit 0 ; \
31330 [ -f ld/Makefile ] || $(MAKE) stageprofile-start ; \
31331 cd ld && \
31332 $(MAKE) $(FLAGS_TO_PASS) \
31333 $(POSTSTAGE1_FLAGS_TO_PASS) \
31334 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
72b2455a
PB
31335@endif ld-bootstrap
31336
0df3d27f 31337
9cb3fa6f
PB
31338.PHONY: configure-stageprofile-libcpp maybe-configure-stageprofile-libcpp
31339.PHONY: all-stageprofile-libcpp maybe-all-stageprofile-libcpp
0df3d27f 31340.PHONY: clean-stageprofile-libcpp maybe-clean-stageprofile-libcpp
9cb3fa6f 31341
72b2455a
PB
31342maybe-configure-stageprofile-libcpp:
31343maybe-all-stageprofile-libcpp:
0df3d27f 31344maybe-clean-stageprofile-libcpp:
72b2455a
PB
31345
31346@if libcpp-bootstrap
31347maybe-configure-stageprofile-libcpp: configure-stageprofile-libcpp
9cb3fa6f
PB
31348configure-stageprofile-libcpp:
31349 @$(MAKE) stageprofile-start
31350 @[ -f libcpp/Makefile ] && exit 0 || : ; \
72b2455a
PB
31351 r=`${PWD_COMMAND}`; export r; \
31352 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31353 $(STAGE_HOST_EXPORTS) \
31354 echo Configuring stage profile in libcpp ; \
31355 cd libcpp || exit 1; \
31356 case $(srcdir) in \
31357 \.) \
31358 srcdiroption="--srcdir=."; \
31359 libsrcdir=".";; \
31360 /* | [A-Za-z]:[\\/]*) \
31361 srcdiroption="--srcdir=$(srcdir)/libcpp"; \
31362 libsrcdir="$$s/libcpp";; \
31363 *) \
31364 srcdiroption="--srcdir=../$(srcdir)/libcpp"; \
31365 libsrcdir="$$s/libcpp";; \
31366 esac; \
31367 $(SHELL) $${libsrcdir}/configure \
31368 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 31369 @stage2_werror_flag@
72b2455a
PB
31370
31371maybe-all-stageprofile-libcpp: all-stageprofile-libcpp
31372all-stageprofile-libcpp: configure-stageprofile-libcpp
9cb3fa6f 31373 @$(MAKE) stageprofile-start
72b2455a
PB
31374 @r=`${PWD_COMMAND}`; export r; \
31375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31376 $(STAGE_HOST_EXPORTS) \
31377 cd libcpp && \
31378 $(MAKE) $(FLAGS_TO_PASS) \
31379 $(POSTSTAGE1_FLAGS_TO_PASS) \
9cb3fa6f 31380 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate"
0df3d27f
PB
31381
31382maybe-clean-stageprofile-libcpp: clean-stageprofile-libcpp
31383clean-stageprofile-libcpp:
31384 @[ -f libcpp/Makefile ] || [ -f stageprofile-libcpp/Makefile ] \
31385 || exit 0 ; \
31386 [ -f libcpp/Makefile ] || $(MAKE) stageprofile-start ; \
31387 cd libcpp && \
31388 $(MAKE) $(FLAGS_TO_PASS) \
31389 $(POSTSTAGE1_FLAGS_TO_PASS) \
31390 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
72b2455a
PB
31391@endif libcpp-bootstrap
31392
0df3d27f 31393
9cb3fa6f
PB
31394.PHONY: configure-stageprofile-libiberty maybe-configure-stageprofile-libiberty
31395.PHONY: all-stageprofile-libiberty maybe-all-stageprofile-libiberty
0df3d27f 31396.PHONY: clean-stageprofile-libiberty maybe-clean-stageprofile-libiberty
9cb3fa6f 31397
72b2455a
PB
31398maybe-configure-stageprofile-libiberty:
31399maybe-all-stageprofile-libiberty:
0df3d27f 31400maybe-clean-stageprofile-libiberty:
72b2455a
PB
31401
31402@if libiberty-bootstrap
31403maybe-configure-stageprofile-libiberty: configure-stageprofile-libiberty
9cb3fa6f
PB
31404configure-stageprofile-libiberty:
31405 @$(MAKE) stageprofile-start
31406 @[ -f libiberty/Makefile ] && exit 0 || : ; \
72b2455a
PB
31407 r=`${PWD_COMMAND}`; export r; \
31408 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31409 $(STAGE_HOST_EXPORTS) \
31410 echo Configuring stage profile in libiberty ; \
31411 cd libiberty || exit 1; \
31412 case $(srcdir) in \
31413 \.) \
31414 srcdiroption="--srcdir=."; \
31415 libsrcdir=".";; \
31416 /* | [A-Za-z]:[\\/]*) \
31417 srcdiroption="--srcdir=$(srcdir)/libiberty"; \
31418 libsrcdir="$$s/libiberty";; \
31419 *) \
31420 srcdiroption="--srcdir=../$(srcdir)/libiberty"; \
31421 libsrcdir="$$s/libiberty";; \
31422 esac; \
31423 $(SHELL) $${libsrcdir}/configure \
31424 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 31425 @stage2_werror_flag@
72b2455a
PB
31426
31427maybe-all-stageprofile-libiberty: all-stageprofile-libiberty
31428all-stageprofile-libiberty: configure-stageprofile-libiberty
9cb3fa6f 31429 @$(MAKE) stageprofile-start
72b2455a
PB
31430 @r=`${PWD_COMMAND}`; export r; \
31431 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31432 $(STAGE_HOST_EXPORTS) \
31433 cd libiberty && \
31434 $(MAKE) $(FLAGS_TO_PASS) \
31435 $(POSTSTAGE1_FLAGS_TO_PASS) \
9cb3fa6f 31436 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate"
0df3d27f
PB
31437
31438maybe-clean-stageprofile-libiberty: clean-stageprofile-libiberty
31439clean-stageprofile-libiberty:
31440 @[ -f libiberty/Makefile ] || [ -f stageprofile-libiberty/Makefile ] \
31441 || exit 0 ; \
31442 [ -f libiberty/Makefile ] || $(MAKE) stageprofile-start ; \
31443 cd libiberty && \
31444 $(MAKE) $(FLAGS_TO_PASS) \
31445 $(POSTSTAGE1_FLAGS_TO_PASS) \
31446 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
72b2455a
PB
31447@endif libiberty-bootstrap
31448
0df3d27f 31449
9cb3fa6f
PB
31450.PHONY: configure-stageprofile-zlib maybe-configure-stageprofile-zlib
31451.PHONY: all-stageprofile-zlib maybe-all-stageprofile-zlib
0df3d27f 31452.PHONY: clean-stageprofile-zlib maybe-clean-stageprofile-zlib
9cb3fa6f 31453
72b2455a
PB
31454maybe-configure-stageprofile-zlib:
31455maybe-all-stageprofile-zlib:
0df3d27f 31456maybe-clean-stageprofile-zlib:
72b2455a
PB
31457
31458@if zlib-bootstrap
31459maybe-configure-stageprofile-zlib: configure-stageprofile-zlib
9cb3fa6f
PB
31460configure-stageprofile-zlib:
31461 @$(MAKE) stageprofile-start
31462 @[ -f zlib/Makefile ] && exit 0 || : ; \
72b2455a
PB
31463 r=`${PWD_COMMAND}`; export r; \
31464 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31465 $(STAGE_HOST_EXPORTS) \
31466 echo Configuring stage profile in zlib ; \
31467 cd zlib || exit 1; \
31468 case $(srcdir) in \
31469 \.) \
31470 srcdiroption="--srcdir=."; \
31471 libsrcdir=".";; \
31472 /* | [A-Za-z]:[\\/]*) \
31473 srcdiroption="--srcdir=$(srcdir)/zlib"; \
31474 libsrcdir="$$s/zlib";; \
31475 *) \
31476 srcdiroption="--srcdir=../$(srcdir)/zlib"; \
31477 libsrcdir="$$s/zlib";; \
31478 esac; \
31479 $(SHELL) $${libsrcdir}/configure \
31480 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 31481 @stage2_werror_flag@
72b2455a
PB
31482
31483maybe-all-stageprofile-zlib: all-stageprofile-zlib
31484all-stageprofile-zlib: configure-stageprofile-zlib
9cb3fa6f 31485 @$(MAKE) stageprofile-start
72b2455a
PB
31486 @r=`${PWD_COMMAND}`; export r; \
31487 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31488 $(STAGE_HOST_EXPORTS) \
31489 cd zlib && \
31490 $(MAKE) $(FLAGS_TO_PASS) \
31491 $(POSTSTAGE1_FLAGS_TO_PASS) \
9cb3fa6f 31492 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate"
0df3d27f
PB
31493
31494maybe-clean-stageprofile-zlib: clean-stageprofile-zlib
31495clean-stageprofile-zlib:
31496 @[ -f zlib/Makefile ] || [ -f stageprofile-zlib/Makefile ] \
31497 || exit 0 ; \
31498 [ -f zlib/Makefile ] || $(MAKE) stageprofile-start ; \
31499 cd zlib && \
31500 $(MAKE) $(FLAGS_TO_PASS) \
31501 $(POSTSTAGE1_FLAGS_TO_PASS) \
31502 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
72b2455a
PB
31503@endif zlib-bootstrap
31504
31505
0df3d27f 31506
72b2455a
PB
31507# FIXME: Will not need to be conditional when toplevel bootstrap is the
31508# only possibility, but now it conflicts with no-bootstrap rules
31509@if gcc-bootstrap
31510
31511
31512
31513
0df3d27f 31514# Rules to wipe a stage and all the following ones, also used for cleanstrap
72b2455a 31515distclean-stage1:: distclean-stageprofile
0df3d27f 31516.PHONY: distclean-stageprofile
72b2455a
PB
31517distclean-stageprofile::
31518 [ -f stage_current ] && $(MAKE) `cat stage_current`-end || :
9cb3fa6f 31519 rm -rf stageprofile-*
dfdffa2c
PB
31520
31521
72b2455a 31522@endif gcc-bootstrap
dfdffa2c
PB
31523
31524
72b2455a 31525.PHONY: stagefeedback-start stagefeedback-end
dfdffa2c 31526
72b2455a 31527stagefeedback-start::
9cb3fa6f 31528 @[ -f stage_current ] && $(MAKE) `cat stage_current`-end || : ; \
72b2455a
PB
31529 echo stagefeedback > stage_current ; \
31530 echo stagefeedback > stage_last
31531@if bfd
9cb3fa6f 31532 @[ -d stagefeedback-bfd ] || mkdir stagefeedback-bfd; \
72b2455a
PB
31533 set stagefeedback-bfd bfd ; @CREATE_LINK_TO_DIR@ ; \
31534 set stage1-bfd prev-bfd ; @CREATE_LINK_TO_DIR@
31535@endif bfd
31536@if opcodes
9cb3fa6f 31537 @[ -d stagefeedback-opcodes ] || mkdir stagefeedback-opcodes; \
72b2455a
PB
31538 set stagefeedback-opcodes opcodes ; @CREATE_LINK_TO_DIR@ ; \
31539 set stage1-opcodes prev-opcodes ; @CREATE_LINK_TO_DIR@
31540@endif opcodes
31541@if binutils
9cb3fa6f 31542 @[ -d stagefeedback-binutils ] || mkdir stagefeedback-binutils; \
72b2455a
PB
31543 set stagefeedback-binutils binutils ; @CREATE_LINK_TO_DIR@ ; \
31544 set stage1-binutils prev-binutils ; @CREATE_LINK_TO_DIR@
31545@endif binutils
31546@if gas
9cb3fa6f 31547 @[ -d stagefeedback-gas ] || mkdir stagefeedback-gas; \
72b2455a
PB
31548 set stagefeedback-gas gas ; @CREATE_LINK_TO_DIR@ ; \
31549 set stage1-gas prev-gas ; @CREATE_LINK_TO_DIR@
31550@endif gas
31551@if gcc
9cb3fa6f 31552 @[ -d stagefeedback-gcc ] || mkdir stagefeedback-gcc; \
72b2455a
PB
31553 set stagefeedback-gcc gcc ; @CREATE_LINK_TO_DIR@ ; \
31554 set stage1-gcc prev-gcc ; @CREATE_LINK_TO_DIR@
31555@endif gcc
31556@if intl
9cb3fa6f 31557 @[ -d stagefeedback-intl ] || mkdir stagefeedback-intl; \
72b2455a
PB
31558 set stagefeedback-intl intl ; @CREATE_LINK_TO_DIR@ ; \
31559 set stage1-intl prev-intl ; @CREATE_LINK_TO_DIR@
31560@endif intl
31561@if ld
9cb3fa6f 31562 @[ -d stagefeedback-ld ] || mkdir stagefeedback-ld; \
72b2455a
PB
31563 set stagefeedback-ld ld ; @CREATE_LINK_TO_DIR@ ; \
31564 set stage1-ld prev-ld ; @CREATE_LINK_TO_DIR@
31565@endif ld
31566@if libcpp
9cb3fa6f 31567 @[ -d stagefeedback-libcpp ] || mkdir stagefeedback-libcpp; \
72b2455a
PB
31568 set stagefeedback-libcpp libcpp ; @CREATE_LINK_TO_DIR@ ; \
31569 set stage1-libcpp prev-libcpp ; @CREATE_LINK_TO_DIR@
31570@endif libcpp
72b2455a 31571@if libiberty
9cb3fa6f 31572 @[ -d stagefeedback-libiberty ] || mkdir stagefeedback-libiberty; \
72b2455a
PB
31573 set stagefeedback-libiberty libiberty ; @CREATE_LINK_TO_DIR@ ; \
31574 set stage1-libiberty prev-libiberty ; @CREATE_LINK_TO_DIR@
31575@endif libiberty
31576@if zlib
9cb3fa6f 31577 @[ -d stagefeedback-zlib ] || mkdir stagefeedback-zlib; \
72b2455a
PB
31578 set stagefeedback-zlib zlib ; @CREATE_LINK_TO_DIR@ ; \
31579 set stage1-zlib prev-zlib ; @CREATE_LINK_TO_DIR@
31580@endif zlib
dfdffa2c 31581
72b2455a 31582stagefeedback-end::
9cb3fa6f 31583 @rm -f stage_current
72b2455a 31584@if bfd
9cb3fa6f 31585 @set bfd stagefeedback-bfd ; @UNDO_LINK_TO_DIR@ ; \
72b2455a
PB
31586 set prev-bfd stage1-bfd ; @UNDO_LINK_TO_DIR@
31587@endif bfd
31588@if opcodes
9cb3fa6f 31589 @set opcodes stagefeedback-opcodes ; @UNDO_LINK_TO_DIR@ ; \
72b2455a
PB
31590 set prev-opcodes stage1-opcodes ; @UNDO_LINK_TO_DIR@
31591@endif opcodes
31592@if binutils
9cb3fa6f 31593 @set binutils stagefeedback-binutils ; @UNDO_LINK_TO_DIR@ ; \
72b2455a
PB
31594 set prev-binutils stage1-binutils ; @UNDO_LINK_TO_DIR@
31595@endif binutils
31596@if gas
9cb3fa6f 31597 @set gas stagefeedback-gas ; @UNDO_LINK_TO_DIR@ ; \
72b2455a
PB
31598 set prev-gas stage1-gas ; @UNDO_LINK_TO_DIR@
31599@endif gas
31600@if gcc
9cb3fa6f 31601 @set gcc stagefeedback-gcc ; @UNDO_LINK_TO_DIR@ ; \
72b2455a
PB
31602 set prev-gcc stage1-gcc ; @UNDO_LINK_TO_DIR@
31603@endif gcc
31604@if intl
9cb3fa6f 31605 @set intl stagefeedback-intl ; @UNDO_LINK_TO_DIR@ ; \
72b2455a
PB
31606 set prev-intl stage1-intl ; @UNDO_LINK_TO_DIR@
31607@endif intl
31608@if ld
9cb3fa6f 31609 @set ld stagefeedback-ld ; @UNDO_LINK_TO_DIR@ ; \
72b2455a
PB
31610 set prev-ld stage1-ld ; @UNDO_LINK_TO_DIR@
31611@endif ld
31612@if libcpp
9cb3fa6f 31613 @set libcpp stagefeedback-libcpp ; @UNDO_LINK_TO_DIR@ ; \
72b2455a
PB
31614 set prev-libcpp stage1-libcpp ; @UNDO_LINK_TO_DIR@
31615@endif libcpp
72b2455a 31616@if libiberty
9cb3fa6f 31617 @set libiberty stagefeedback-libiberty ; @UNDO_LINK_TO_DIR@ ; \
72b2455a
PB
31618 set prev-libiberty stage1-libiberty ; @UNDO_LINK_TO_DIR@
31619@endif libiberty
31620@if zlib
9cb3fa6f 31621 @set zlib stagefeedback-zlib ; @UNDO_LINK_TO_DIR@ ; \
72b2455a
PB
31622 set prev-zlib stage1-zlib ; @UNDO_LINK_TO_DIR@
31623@endif zlib
dfdffa2c 31624
72b2455a 31625# Bubble a bugfix through all the stages up to stage feedback. They
dfdffa2c
PB
31626# are remade, but not reconfigured. The next stage (if any) will not
31627# be reconfigured as well.
72b2455a
PB
31628.PHONY: stagefeedback-bubble
31629stagefeedback-bubble:: stage1-bubble
9cb3fa6f
PB
31630 @if test -f stagefeedback-lean || test -f stage1-lean ; then \
31631 echo Skipping rebuild of stagefeedback ; \
31632 else \
0df3d27f 31633 $(MAKE) $(RECURSE_FLAGS_TO_PASS) NOTPARALLEL= all-stagefeedback; \
9cb3fa6f 31634 fi
72b2455a 31635
0df3d27f 31636.PHONY: all-stagefeedback clean-stagefeedback
72b2455a
PB
31637all-stagefeedback: \
31638 maybe-all-stagefeedback-bfd \
31639 maybe-all-stagefeedback-opcodes \
31640 maybe-all-stagefeedback-binutils \
31641 maybe-all-stagefeedback-gas \
31642 maybe-all-stagefeedback-gcc \
31643 maybe-all-stagefeedback-intl \
31644 maybe-all-stagefeedback-ld \
31645 maybe-all-stagefeedback-libcpp \
72b2455a
PB
31646 maybe-all-stagefeedback-libiberty \
31647 maybe-all-stagefeedback-zlib
31648
0df3d27f
PB
31649do-clean: clean-stagefeedback
31650clean-stagefeedback: \
31651 maybe-clean-stagefeedback-bfd \
31652 maybe-clean-stagefeedback-opcodes \
31653 maybe-clean-stagefeedback-binutils \
31654 maybe-clean-stagefeedback-gas \
31655 maybe-clean-stagefeedback-gcc \
31656 maybe-clean-stagefeedback-intl \
31657 maybe-clean-stagefeedback-ld \
31658 maybe-clean-stagefeedback-libcpp \
0df3d27f
PB
31659 maybe-clean-stagefeedback-libiberty \
31660 maybe-clean-stagefeedback-zlib
31661
72b2455a 31662
9cb3fa6f
PB
31663.PHONY: configure-stagefeedback-bfd maybe-configure-stagefeedback-bfd
31664.PHONY: all-stagefeedback-bfd maybe-all-stagefeedback-bfd
0df3d27f 31665.PHONY: clean-stagefeedback-bfd maybe-clean-stagefeedback-bfd
9cb3fa6f 31666
72b2455a
PB
31667maybe-configure-stagefeedback-bfd:
31668maybe-all-stagefeedback-bfd:
0df3d27f 31669maybe-clean-stagefeedback-bfd:
72b2455a
PB
31670
31671@if bfd-bootstrap
31672maybe-configure-stagefeedback-bfd: configure-stagefeedback-bfd
9cb3fa6f
PB
31673configure-stagefeedback-bfd:
31674 @$(MAKE) stagefeedback-start
31675 @[ -f bfd/Makefile ] && exit 0 || : ; \
72b2455a
PB
31676 r=`${PWD_COMMAND}`; export r; \
31677 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31678 $(STAGE_HOST_EXPORTS) \
31679 echo Configuring stage feedback in bfd ; \
31680 cd bfd || exit 1; \
31681 case $(srcdir) in \
31682 \.) \
31683 srcdiroption="--srcdir=."; \
31684 libsrcdir=".";; \
31685 /* | [A-Za-z]:[\\/]*) \
31686 srcdiroption="--srcdir=$(srcdir)/bfd"; \
31687 libsrcdir="$$s/bfd";; \
31688 *) \
31689 srcdiroption="--srcdir=../$(srcdir)/bfd"; \
31690 libsrcdir="$$s/bfd";; \
31691 esac; \
31692 $(SHELL) $${libsrcdir}/configure \
31693 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 31694 @stage2_werror_flag@
656fdd47 31695
72b2455a
PB
31696maybe-all-stagefeedback-bfd: all-stagefeedback-bfd
31697all-stagefeedback-bfd: configure-stagefeedback-bfd
9cb3fa6f 31698 @$(MAKE) stagefeedback-start
72b2455a
PB
31699 @r=`${PWD_COMMAND}`; export r; \
31700 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31701 $(STAGE_HOST_EXPORTS) \
31702 cd bfd && \
31703 $(MAKE) $(FLAGS_TO_PASS) \
31704 $(POSTSTAGE1_FLAGS_TO_PASS) \
9cb3fa6f 31705 CFLAGS="$(BOOT_CFLAGS) -fprofile-use"
0df3d27f
PB
31706
31707maybe-clean-stagefeedback-bfd: clean-stagefeedback-bfd
31708clean-stagefeedback-bfd:
31709 @[ -f bfd/Makefile ] || [ -f stagefeedback-bfd/Makefile ] \
31710 || exit 0 ; \
31711 [ -f bfd/Makefile ] || $(MAKE) stagefeedback-start ; \
31712 cd bfd && \
31713 $(MAKE) $(FLAGS_TO_PASS) \
31714 $(POSTSTAGE1_FLAGS_TO_PASS) \
31715 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
72b2455a 31716@endif bfd-bootstrap
dfdffa2c 31717
0df3d27f 31718
9cb3fa6f
PB
31719.PHONY: configure-stagefeedback-opcodes maybe-configure-stagefeedback-opcodes
31720.PHONY: all-stagefeedback-opcodes maybe-all-stagefeedback-opcodes
0df3d27f 31721.PHONY: clean-stagefeedback-opcodes maybe-clean-stagefeedback-opcodes
9cb3fa6f 31722
72b2455a
PB
31723maybe-configure-stagefeedback-opcodes:
31724maybe-all-stagefeedback-opcodes:
0df3d27f 31725maybe-clean-stagefeedback-opcodes:
656fdd47 31726
72b2455a
PB
31727@if opcodes-bootstrap
31728maybe-configure-stagefeedback-opcodes: configure-stagefeedback-opcodes
9cb3fa6f
PB
31729configure-stagefeedback-opcodes:
31730 @$(MAKE) stagefeedback-start
31731 @[ -f opcodes/Makefile ] && exit 0 || : ; \
1d39f329 31732 r=`${PWD_COMMAND}`; export r; \
378fce5b
DD
31733 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31734 $(STAGE_HOST_EXPORTS) \
72b2455a
PB
31735 echo Configuring stage feedback in opcodes ; \
31736 cd opcodes || exit 1; \
1d39f329
NN
31737 case $(srcdir) in \
31738 \.) \
31739 srcdiroption="--srcdir=."; \
31740 libsrcdir=".";; \
31741 /* | [A-Za-z]:[\\/]*) \
72b2455a
PB
31742 srcdiroption="--srcdir=$(srcdir)/opcodes"; \
31743 libsrcdir="$$s/opcodes";; \
1d39f329 31744 *) \
72b2455a
PB
31745 srcdiroption="--srcdir=../$(srcdir)/opcodes"; \
31746 libsrcdir="$$s/opcodes";; \
1d39f329
NN
31747 esac; \
31748 $(SHELL) $${libsrcdir}/configure \
dfdffa2c 31749 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 31750 @stage2_werror_flag@
1d39f329 31751
72b2455a
PB
31752maybe-all-stagefeedback-opcodes: all-stagefeedback-opcodes
31753all-stagefeedback-opcodes: configure-stagefeedback-opcodes
9cb3fa6f 31754 @$(MAKE) stagefeedback-start
dfdffa2c 31755 @r=`${PWD_COMMAND}`; export r; \
378fce5b
DD
31756 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31757 $(STAGE_HOST_EXPORTS) \
72b2455a
PB
31758 cd opcodes && \
31759 $(MAKE) $(FLAGS_TO_PASS) \
656fdd47 31760 $(POSTSTAGE1_FLAGS_TO_PASS) \
9cb3fa6f 31761 CFLAGS="$(BOOT_CFLAGS) -fprofile-use"
0df3d27f
PB
31762
31763maybe-clean-stagefeedback-opcodes: clean-stagefeedback-opcodes
31764clean-stagefeedback-opcodes:
31765 @[ -f opcodes/Makefile ] || [ -f stagefeedback-opcodes/Makefile ] \
31766 || exit 0 ; \
31767 [ -f opcodes/Makefile ] || $(MAKE) stagefeedback-start ; \
31768 cd opcodes && \
31769 $(MAKE) $(FLAGS_TO_PASS) \
31770 $(POSTSTAGE1_FLAGS_TO_PASS) \
31771 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
72b2455a 31772@endif opcodes-bootstrap
1d39f329 31773
0df3d27f 31774
9cb3fa6f
PB
31775.PHONY: configure-stagefeedback-binutils maybe-configure-stagefeedback-binutils
31776.PHONY: all-stagefeedback-binutils maybe-all-stagefeedback-binutils
0df3d27f 31777.PHONY: clean-stagefeedback-binutils maybe-clean-stagefeedback-binutils
9cb3fa6f 31778
72b2455a
PB
31779maybe-configure-stagefeedback-binutils:
31780maybe-all-stagefeedback-binutils:
0df3d27f 31781maybe-clean-stagefeedback-binutils:
1d39f329 31782
72b2455a
PB
31783@if binutils-bootstrap
31784maybe-configure-stagefeedback-binutils: configure-stagefeedback-binutils
9cb3fa6f
PB
31785configure-stagefeedback-binutils:
31786 @$(MAKE) stagefeedback-start
31787 @[ -f binutils/Makefile ] && exit 0 || : ; \
72b2455a
PB
31788 r=`${PWD_COMMAND}`; export r; \
31789 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31790 $(STAGE_HOST_EXPORTS) \
31791 echo Configuring stage feedback in binutils ; \
31792 cd binutils || exit 1; \
31793 case $(srcdir) in \
31794 \.) \
31795 srcdiroption="--srcdir=."; \
31796 libsrcdir=".";; \
31797 /* | [A-Za-z]:[\\/]*) \
31798 srcdiroption="--srcdir=$(srcdir)/binutils"; \
31799 libsrcdir="$$s/binutils";; \
31800 *) \
31801 srcdiroption="--srcdir=../$(srcdir)/binutils"; \
31802 libsrcdir="$$s/binutils";; \
31803 esac; \
31804 $(SHELL) $${libsrcdir}/configure \
31805 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 31806 @stage2_werror_flag@
319cab08 31807
72b2455a
PB
31808maybe-all-stagefeedback-binutils: all-stagefeedback-binutils
31809all-stagefeedback-binutils: configure-stagefeedback-binutils
9cb3fa6f 31810 @$(MAKE) stagefeedback-start
72b2455a
PB
31811 @r=`${PWD_COMMAND}`; export r; \
31812 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31813 $(STAGE_HOST_EXPORTS) \
31814 cd binutils && \
31815 $(MAKE) $(FLAGS_TO_PASS) \
31816 $(POSTSTAGE1_FLAGS_TO_PASS) \
9cb3fa6f 31817 CFLAGS="$(BOOT_CFLAGS) -fprofile-use"
0df3d27f
PB
31818
31819maybe-clean-stagefeedback-binutils: clean-stagefeedback-binutils
31820clean-stagefeedback-binutils:
31821 @[ -f binutils/Makefile ] || [ -f stagefeedback-binutils/Makefile ] \
31822 || exit 0 ; \
31823 [ -f binutils/Makefile ] || $(MAKE) stagefeedback-start ; \
31824 cd binutils && \
31825 $(MAKE) $(FLAGS_TO_PASS) \
31826 $(POSTSTAGE1_FLAGS_TO_PASS) \
31827 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
72b2455a 31828@endif binutils-bootstrap
319cab08 31829
0df3d27f 31830
9cb3fa6f
PB
31831.PHONY: configure-stagefeedback-gas maybe-configure-stagefeedback-gas
31832.PHONY: all-stagefeedback-gas maybe-all-stagefeedback-gas
0df3d27f 31833.PHONY: clean-stagefeedback-gas maybe-clean-stagefeedback-gas
9cb3fa6f 31834
72b2455a
PB
31835maybe-configure-stagefeedback-gas:
31836maybe-all-stagefeedback-gas:
0df3d27f 31837maybe-clean-stagefeedback-gas:
319cab08 31838
72b2455a
PB
31839@if gas-bootstrap
31840maybe-configure-stagefeedback-gas: configure-stagefeedback-gas
9cb3fa6f
PB
31841configure-stagefeedback-gas:
31842 @$(MAKE) stagefeedback-start
31843 @[ -f gas/Makefile ] && exit 0 || : ; \
72b2455a
PB
31844 r=`${PWD_COMMAND}`; export r; \
31845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31846 $(STAGE_HOST_EXPORTS) \
31847 echo Configuring stage feedback in gas ; \
31848 cd gas || exit 1; \
31849 case $(srcdir) in \
31850 \.) \
31851 srcdiroption="--srcdir=."; \
31852 libsrcdir=".";; \
31853 /* | [A-Za-z]:[\\/]*) \
31854 srcdiroption="--srcdir=$(srcdir)/gas"; \
31855 libsrcdir="$$s/gas";; \
31856 *) \
31857 srcdiroption="--srcdir=../$(srcdir)/gas"; \
31858 libsrcdir="$$s/gas";; \
31859 esac; \
31860 $(SHELL) $${libsrcdir}/configure \
31861 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 31862 @stage2_werror_flag@
319cab08 31863
72b2455a
PB
31864maybe-all-stagefeedback-gas: all-stagefeedback-gas
31865all-stagefeedback-gas: configure-stagefeedback-gas
9cb3fa6f 31866 @$(MAKE) stagefeedback-start
72b2455a
PB
31867 @r=`${PWD_COMMAND}`; export r; \
31868 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31869 $(STAGE_HOST_EXPORTS) \
31870 cd gas && \
31871 $(MAKE) $(FLAGS_TO_PASS) \
31872 $(POSTSTAGE1_FLAGS_TO_PASS) \
9cb3fa6f 31873 CFLAGS="$(BOOT_CFLAGS) -fprofile-use"
0df3d27f
PB
31874
31875maybe-clean-stagefeedback-gas: clean-stagefeedback-gas
31876clean-stagefeedback-gas:
31877 @[ -f gas/Makefile ] || [ -f stagefeedback-gas/Makefile ] \
31878 || exit 0 ; \
31879 [ -f gas/Makefile ] || $(MAKE) stagefeedback-start ; \
31880 cd gas && \
31881 $(MAKE) $(FLAGS_TO_PASS) \
31882 $(POSTSTAGE1_FLAGS_TO_PASS) \
31883 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
72b2455a 31884@endif gas-bootstrap
319cab08 31885
0df3d27f 31886
9cb3fa6f
PB
31887.PHONY: configure-stagefeedback-gcc maybe-configure-stagefeedback-gcc
31888.PHONY: all-stagefeedback-gcc maybe-all-stagefeedback-gcc
0df3d27f 31889.PHONY: clean-stagefeedback-gcc maybe-clean-stagefeedback-gcc
9cb3fa6f 31890
72b2455a
PB
31891maybe-configure-stagefeedback-gcc:
31892maybe-all-stagefeedback-gcc:
0df3d27f 31893maybe-clean-stagefeedback-gcc:
319cab08 31894
72b2455a
PB
31895@if gcc-bootstrap
31896maybe-configure-stagefeedback-gcc: configure-stagefeedback-gcc
9cb3fa6f
PB
31897configure-stagefeedback-gcc:
31898 @$(MAKE) stagefeedback-start
31899 @[ -f gcc/Makefile ] && exit 0 || : ; \
72b2455a
PB
31900 r=`${PWD_COMMAND}`; export r; \
31901 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31902 $(STAGE_HOST_EXPORTS) \
31903 echo Configuring stage feedback in gcc ; \
31904 cd gcc || exit 1; \
31905 case $(srcdir) in \
31906 \.) \
31907 srcdiroption="--srcdir=."; \
31908 libsrcdir=".";; \
31909 /* | [A-Za-z]:[\\/]*) \
31910 srcdiroption="--srcdir=$(srcdir)/gcc"; \
31911 libsrcdir="$$s/gcc";; \
31912 *) \
31913 srcdiroption="--srcdir=../$(srcdir)/gcc"; \
31914 libsrcdir="$$s/gcc";; \
31915 esac; \
31916 $(SHELL) $${libsrcdir}/configure \
31917 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 31918 @stage2_werror_flag@
656fdd47 31919
72b2455a
PB
31920maybe-all-stagefeedback-gcc: all-stagefeedback-gcc
31921all-stagefeedback-gcc: configure-stagefeedback-gcc
9cb3fa6f 31922 @$(MAKE) stagefeedback-start
72b2455a
PB
31923 @r=`${PWD_COMMAND}`; export r; \
31924 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31925 $(STAGE_HOST_EXPORTS) \
31926 cd gcc && \
31927 $(MAKE) $(FLAGS_TO_PASS) \
31928 $(POSTSTAGE1_FLAGS_TO_PASS) \
9cb3fa6f 31929 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" $(EXTRA_GCC_FLAGS)
0df3d27f
PB
31930
31931maybe-clean-stagefeedback-gcc: clean-stagefeedback-gcc
31932clean-stagefeedback-gcc:
31933 @[ -f gcc/Makefile ] || [ -f stagefeedback-gcc/Makefile ] \
31934 || exit 0 ; \
31935 [ -f gcc/Makefile ] || $(MAKE) stagefeedback-start ; \
31936 cd gcc && \
31937 $(MAKE) $(FLAGS_TO_PASS) \
31938 $(POSTSTAGE1_FLAGS_TO_PASS) \
31939 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" $(EXTRA_GCC_FLAGS) clean
72b2455a 31940@endif gcc-bootstrap
319cab08 31941
0df3d27f 31942
9cb3fa6f
PB
31943.PHONY: configure-stagefeedback-intl maybe-configure-stagefeedback-intl
31944.PHONY: all-stagefeedback-intl maybe-all-stagefeedback-intl
0df3d27f 31945.PHONY: clean-stagefeedback-intl maybe-clean-stagefeedback-intl
9cb3fa6f 31946
72b2455a
PB
31947maybe-configure-stagefeedback-intl:
31948maybe-all-stagefeedback-intl:
0df3d27f 31949maybe-clean-stagefeedback-intl:
656fdd47 31950
72b2455a
PB
31951@if intl-bootstrap
31952maybe-configure-stagefeedback-intl: configure-stagefeedback-intl
9cb3fa6f
PB
31953configure-stagefeedback-intl:
31954 @$(MAKE) stagefeedback-start
31955 @[ -f intl/Makefile ] && exit 0 || : ; \
319cab08
PB
31956 r=`${PWD_COMMAND}`; export r; \
31957 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31958 $(STAGE_HOST_EXPORTS) \
72b2455a
PB
31959 echo Configuring stage feedback in intl ; \
31960 cd intl || exit 1; \
319cab08
PB
31961 case $(srcdir) in \
31962 \.) \
31963 srcdiroption="--srcdir=."; \
31964 libsrcdir=".";; \
31965 /* | [A-Za-z]:[\\/]*) \
72b2455a
PB
31966 srcdiroption="--srcdir=$(srcdir)/intl"; \
31967 libsrcdir="$$s/intl";; \
319cab08 31968 *) \
72b2455a
PB
31969 srcdiroption="--srcdir=../$(srcdir)/intl"; \
31970 libsrcdir="$$s/intl";; \
319cab08
PB
31971 esac; \
31972 $(SHELL) $${libsrcdir}/configure \
31973 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 31974 @stage2_werror_flag@
319cab08 31975
72b2455a
PB
31976maybe-all-stagefeedback-intl: all-stagefeedback-intl
31977all-stagefeedback-intl: configure-stagefeedback-intl
9cb3fa6f 31978 @$(MAKE) stagefeedback-start
319cab08
PB
31979 @r=`${PWD_COMMAND}`; export r; \
31980 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31981 $(STAGE_HOST_EXPORTS) \
72b2455a
PB
31982 cd intl && \
31983 $(MAKE) $(FLAGS_TO_PASS) \
656fdd47 31984 $(POSTSTAGE1_FLAGS_TO_PASS) \
9cb3fa6f 31985 CFLAGS="$(BOOT_CFLAGS) -fprofile-use"
0df3d27f
PB
31986
31987maybe-clean-stagefeedback-intl: clean-stagefeedback-intl
31988clean-stagefeedback-intl:
31989 @[ -f intl/Makefile ] || [ -f stagefeedback-intl/Makefile ] \
31990 || exit 0 ; \
31991 [ -f intl/Makefile ] || $(MAKE) stagefeedback-start ; \
31992 cd intl && \
31993 $(MAKE) $(FLAGS_TO_PASS) \
31994 $(POSTSTAGE1_FLAGS_TO_PASS) \
31995 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
72b2455a 31996@endif intl-bootstrap
319cab08 31997
0df3d27f 31998
9cb3fa6f
PB
31999.PHONY: configure-stagefeedback-ld maybe-configure-stagefeedback-ld
32000.PHONY: all-stagefeedback-ld maybe-all-stagefeedback-ld
0df3d27f 32001.PHONY: clean-stagefeedback-ld maybe-clean-stagefeedback-ld
9cb3fa6f 32002
72b2455a
PB
32003maybe-configure-stagefeedback-ld:
32004maybe-all-stagefeedback-ld:
0df3d27f 32005maybe-clean-stagefeedback-ld:
319cab08 32006
72b2455a
PB
32007@if ld-bootstrap
32008maybe-configure-stagefeedback-ld: configure-stagefeedback-ld
9cb3fa6f
PB
32009configure-stagefeedback-ld:
32010 @$(MAKE) stagefeedback-start
32011 @[ -f ld/Makefile ] && exit 0 || : ; \
72b2455a
PB
32012 r=`${PWD_COMMAND}`; export r; \
32013 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32014 $(STAGE_HOST_EXPORTS) \
32015 echo Configuring stage feedback in ld ; \
32016 cd ld || exit 1; \
32017 case $(srcdir) in \
32018 \.) \
32019 srcdiroption="--srcdir=."; \
32020 libsrcdir=".";; \
32021 /* | [A-Za-z]:[\\/]*) \
32022 srcdiroption="--srcdir=$(srcdir)/ld"; \
32023 libsrcdir="$$s/ld";; \
32024 *) \
32025 srcdiroption="--srcdir=../$(srcdir)/ld"; \
32026 libsrcdir="$$s/ld";; \
32027 esac; \
32028 $(SHELL) $${libsrcdir}/configure \
32029 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 32030 @stage2_werror_flag@
656fdd47 32031
72b2455a
PB
32032maybe-all-stagefeedback-ld: all-stagefeedback-ld
32033all-stagefeedback-ld: configure-stagefeedback-ld
9cb3fa6f 32034 @$(MAKE) stagefeedback-start
72b2455a
PB
32035 @r=`${PWD_COMMAND}`; export r; \
32036 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32037 $(STAGE_HOST_EXPORTS) \
32038 cd ld && \
32039 $(MAKE) $(FLAGS_TO_PASS) \
32040 $(POSTSTAGE1_FLAGS_TO_PASS) \
9cb3fa6f 32041 CFLAGS="$(BOOT_CFLAGS) -fprofile-use"
0df3d27f
PB
32042
32043maybe-clean-stagefeedback-ld: clean-stagefeedback-ld
32044clean-stagefeedback-ld:
32045 @[ -f ld/Makefile ] || [ -f stagefeedback-ld/Makefile ] \
32046 || exit 0 ; \
32047 [ -f ld/Makefile ] || $(MAKE) stagefeedback-start ; \
32048 cd ld && \
32049 $(MAKE) $(FLAGS_TO_PASS) \
32050 $(POSTSTAGE1_FLAGS_TO_PASS) \
32051 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
72b2455a 32052@endif ld-bootstrap
656fdd47 32053
0df3d27f 32054
9cb3fa6f
PB
32055.PHONY: configure-stagefeedback-libcpp maybe-configure-stagefeedback-libcpp
32056.PHONY: all-stagefeedback-libcpp maybe-all-stagefeedback-libcpp
0df3d27f 32057.PHONY: clean-stagefeedback-libcpp maybe-clean-stagefeedback-libcpp
9cb3fa6f 32058
72b2455a
PB
32059maybe-configure-stagefeedback-libcpp:
32060maybe-all-stagefeedback-libcpp:
0df3d27f 32061maybe-clean-stagefeedback-libcpp:
656fdd47 32062
72b2455a
PB
32063@if libcpp-bootstrap
32064maybe-configure-stagefeedback-libcpp: configure-stagefeedback-libcpp
9cb3fa6f
PB
32065configure-stagefeedback-libcpp:
32066 @$(MAKE) stagefeedback-start
32067 @[ -f libcpp/Makefile ] && exit 0 || : ; \
72b2455a
PB
32068 r=`${PWD_COMMAND}`; export r; \
32069 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32070 $(STAGE_HOST_EXPORTS) \
32071 echo Configuring stage feedback in libcpp ; \
32072 cd libcpp || exit 1; \
32073 case $(srcdir) in \
32074 \.) \
32075 srcdiroption="--srcdir=."; \
32076 libsrcdir=".";; \
32077 /* | [A-Za-z]:[\\/]*) \
32078 srcdiroption="--srcdir=$(srcdir)/libcpp"; \
32079 libsrcdir="$$s/libcpp";; \
32080 *) \
32081 srcdiroption="--srcdir=../$(srcdir)/libcpp"; \
32082 libsrcdir="$$s/libcpp";; \
32083 esac; \
32084 $(SHELL) $${libsrcdir}/configure \
32085 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 32086 @stage2_werror_flag@
656fdd47 32087
72b2455a
PB
32088maybe-all-stagefeedback-libcpp: all-stagefeedback-libcpp
32089all-stagefeedback-libcpp: configure-stagefeedback-libcpp
9cb3fa6f 32090 @$(MAKE) stagefeedback-start
72b2455a
PB
32091 @r=`${PWD_COMMAND}`; export r; \
32092 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32093 $(STAGE_HOST_EXPORTS) \
32094 cd libcpp && \
32095 $(MAKE) $(FLAGS_TO_PASS) \
32096 $(POSTSTAGE1_FLAGS_TO_PASS) \
9cb3fa6f 32097 CFLAGS="$(BOOT_CFLAGS) -fprofile-use"
0df3d27f
PB
32098
32099maybe-clean-stagefeedback-libcpp: clean-stagefeedback-libcpp
32100clean-stagefeedback-libcpp:
32101 @[ -f libcpp/Makefile ] || [ -f stagefeedback-libcpp/Makefile ] \
32102 || exit 0 ; \
32103 [ -f libcpp/Makefile ] || $(MAKE) stagefeedback-start ; \
32104 cd libcpp && \
32105 $(MAKE) $(FLAGS_TO_PASS) \
32106 $(POSTSTAGE1_FLAGS_TO_PASS) \
32107 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
72b2455a 32108@endif libcpp-bootstrap
dfdffa2c 32109
0df3d27f 32110
9cb3fa6f
PB
32111.PHONY: configure-stagefeedback-libiberty maybe-configure-stagefeedback-libiberty
32112.PHONY: all-stagefeedback-libiberty maybe-all-stagefeedback-libiberty
0df3d27f 32113.PHONY: clean-stagefeedback-libiberty maybe-clean-stagefeedback-libiberty
9cb3fa6f 32114
72b2455a
PB
32115maybe-configure-stagefeedback-libiberty:
32116maybe-all-stagefeedback-libiberty:
0df3d27f 32117maybe-clean-stagefeedback-libiberty:
656fdd47 32118
72b2455a
PB
32119@if libiberty-bootstrap
32120maybe-configure-stagefeedback-libiberty: configure-stagefeedback-libiberty
9cb3fa6f
PB
32121configure-stagefeedback-libiberty:
32122 @$(MAKE) stagefeedback-start
32123 @[ -f libiberty/Makefile ] && exit 0 || : ; \
72b2455a
PB
32124 r=`${PWD_COMMAND}`; export r; \
32125 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32126 $(STAGE_HOST_EXPORTS) \
32127 echo Configuring stage feedback in libiberty ; \
32128 cd libiberty || exit 1; \
32129 case $(srcdir) in \
32130 \.) \
32131 srcdiroption="--srcdir=."; \
32132 libsrcdir=".";; \
32133 /* | [A-Za-z]:[\\/]*) \
32134 srcdiroption="--srcdir=$(srcdir)/libiberty"; \
32135 libsrcdir="$$s/libiberty";; \
32136 *) \
32137 srcdiroption="--srcdir=../$(srcdir)/libiberty"; \
32138 libsrcdir="$$s/libiberty";; \
32139 esac; \
32140 $(SHELL) $${libsrcdir}/configure \
32141 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 32142 @stage2_werror_flag@
656fdd47 32143
72b2455a
PB
32144maybe-all-stagefeedback-libiberty: all-stagefeedback-libiberty
32145all-stagefeedback-libiberty: configure-stagefeedback-libiberty
9cb3fa6f 32146 @$(MAKE) stagefeedback-start
72b2455a
PB
32147 @r=`${PWD_COMMAND}`; export r; \
32148 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32149 $(STAGE_HOST_EXPORTS) \
32150 cd libiberty && \
32151 $(MAKE) $(FLAGS_TO_PASS) \
32152 $(POSTSTAGE1_FLAGS_TO_PASS) \
9cb3fa6f 32153 CFLAGS="$(BOOT_CFLAGS) -fprofile-use"
0df3d27f
PB
32154
32155maybe-clean-stagefeedback-libiberty: clean-stagefeedback-libiberty
32156clean-stagefeedback-libiberty:
32157 @[ -f libiberty/Makefile ] || [ -f stagefeedback-libiberty/Makefile ] \
32158 || exit 0 ; \
32159 [ -f libiberty/Makefile ] || $(MAKE) stagefeedback-start ; \
32160 cd libiberty && \
32161 $(MAKE) $(FLAGS_TO_PASS) \
32162 $(POSTSTAGE1_FLAGS_TO_PASS) \
32163 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
72b2455a 32164@endif libiberty-bootstrap
656fdd47 32165
0df3d27f 32166
9cb3fa6f
PB
32167.PHONY: configure-stagefeedback-zlib maybe-configure-stagefeedback-zlib
32168.PHONY: all-stagefeedback-zlib maybe-all-stagefeedback-zlib
0df3d27f 32169.PHONY: clean-stagefeedback-zlib maybe-clean-stagefeedback-zlib
9cb3fa6f 32170
72b2455a
PB
32171maybe-configure-stagefeedback-zlib:
32172maybe-all-stagefeedback-zlib:
0df3d27f 32173maybe-clean-stagefeedback-zlib:
656fdd47 32174
72b2455a
PB
32175@if zlib-bootstrap
32176maybe-configure-stagefeedback-zlib: configure-stagefeedback-zlib
9cb3fa6f
PB
32177configure-stagefeedback-zlib:
32178 @$(MAKE) stagefeedback-start
32179 @[ -f zlib/Makefile ] && exit 0 || : ; \
656fdd47
PB
32180 r=`${PWD_COMMAND}`; export r; \
32181 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32182 $(STAGE_HOST_EXPORTS) \
72b2455a
PB
32183 echo Configuring stage feedback in zlib ; \
32184 cd zlib || exit 1; \
656fdd47
PB
32185 case $(srcdir) in \
32186 \.) \
32187 srcdiroption="--srcdir=."; \
32188 libsrcdir=".";; \
32189 /* | [A-Za-z]:[\\/]*) \
72b2455a
PB
32190 srcdiroption="--srcdir=$(srcdir)/zlib"; \
32191 libsrcdir="$$s/zlib";; \
656fdd47 32192 *) \
72b2455a
PB
32193 srcdiroption="--srcdir=../$(srcdir)/zlib"; \
32194 libsrcdir="$$s/zlib";; \
656fdd47
PB
32195 esac; \
32196 $(SHELL) $${libsrcdir}/configure \
32197 $(HOST_CONFIGARGS) $${srcdiroption} \
9cb3fa6f 32198 @stage2_werror_flag@
656fdd47 32199
72b2455a
PB
32200maybe-all-stagefeedback-zlib: all-stagefeedback-zlib
32201all-stagefeedback-zlib: configure-stagefeedback-zlib
9cb3fa6f 32202 @$(MAKE) stagefeedback-start
656fdd47
PB
32203 @r=`${PWD_COMMAND}`; export r; \
32204 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32205 $(STAGE_HOST_EXPORTS) \
72b2455a
PB
32206 cd zlib && \
32207 $(MAKE) $(FLAGS_TO_PASS) \
656fdd47 32208 $(POSTSTAGE1_FLAGS_TO_PASS) \
9cb3fa6f 32209 CFLAGS="$(BOOT_CFLAGS) -fprofile-use"
0df3d27f
PB
32210
32211maybe-clean-stagefeedback-zlib: clean-stagefeedback-zlib
32212clean-stagefeedback-zlib:
32213 @[ -f zlib/Makefile ] || [ -f stagefeedback-zlib/Makefile ] \
32214 || exit 0 ; \
32215 [ -f zlib/Makefile ] || $(MAKE) stagefeedback-start ; \
32216 cd zlib && \
32217 $(MAKE) $(FLAGS_TO_PASS) \
32218 $(POSTSTAGE1_FLAGS_TO_PASS) \
32219 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
72b2455a
PB
32220@endif zlib-bootstrap
32221
656fdd47 32222
0df3d27f 32223
72b2455a
PB
32224# FIXME: Will not need to be conditional when toplevel bootstrap is the
32225# only possibility, but now it conflicts with no-bootstrap rules
32226@if gcc-bootstrap
656fdd47
PB
32227
32228
32229
32230
0df3d27f 32231# Rules to wipe a stage and all the following ones, also used for cleanstrap
656fdd47 32232distclean-stage1:: distclean-stagefeedback
0df3d27f 32233.PHONY: distclean-stagefeedback
656fdd47 32234distclean-stagefeedback::
b813574b 32235 [ -f stage_current ] && $(MAKE) `cat stage_current`-end || :
9cb3fa6f 32236 rm -rf stagefeedback-*
656fdd47
PB
32237
32238
72b2455a 32239@endif gcc-bootstrap
656fdd47
PB
32240
32241
32242
32243stagefeedback-start::
32244 @r=`${PWD_COMMAND}`; export r; \
32245 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32246 cd stageprofile-gcc && \
32247 { find . -type d | sort | sed 's,.*,$(SHELL) '"$$s"'/mkinstalldirs "../gcc/&",' | $(SHELL); } && \
32248 { find . -name '*.*da' | sed 's,.*,$(LN) -f "&" "../gcc/&",' | $(SHELL); }
32249
72b2455a
PB
32250# FIXME: Will not need to be conditional when toplevel bootstrap is the
32251# only possibility, but now it conflicts with no-bootstrap rules
32252@if gcc-bootstrap
32253profiledbootstrap:
656fdd47
PB
32254 @r=`${PWD_COMMAND}`; export r; \
32255 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32256 $(SET_LIB_PATH) \
7ffa0b57 32257 $(HOST_EXPORTS) \
656fdd47 32258 echo "Bootstrapping the compiler"; \
b813574b 32259 $(MAKE) stageprofile-bubble distclean-stagefeedback
656fdd47
PB
32260 @r=`${PWD_COMMAND}`; export r; \
32261 s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
32262 $(SET_LIB_PATH) \
32263 echo "Building runtime libraries and training compiler"; \
32264 $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) all
32265 @r=`${PWD_COMMAND}`; export r; \
32266 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32267 $(SET_LIB_PATH) \
7ffa0b57 32268 $(HOST_EXPORTS) \
656fdd47
PB
32269 echo "Building feedback based compiler"; \
32270 $(MAKE) stagefeedback-bubble stagefeedback-end
319cab08 32271@endif gcc-bootstrap
b8908782 32272
0df3d27f
PB
32273@if gcc-bootstrap
32274NOTPARALLEL = .NOTPARALLEL
32275$(NOTPARALLEL):
32276do-distclean: distclean-stage1
32277@endif gcc-bootstrap
32278
ae831be5
NN
32279# --------------------------------------
32280# Dependencies between different modules
32281# --------------------------------------
252b5132 32282
9e6ce191
PB
32283# Generic dependencies for target modules on host stuff, especially gcc
32284
32285configure-target-libstdc++-v3: maybe-all-gcc
32286
32287configure-target-libmudflap: maybe-all-gcc
32288
32289configure-target-newlib: maybe-all-gcc
32290
32291configure-target-libgfortran: maybe-all-gcc
32292
32293configure-target-libobjc: maybe-all-gcc
32294
32295configure-target-libtermcap: maybe-all-gcc
32296
32297configure-target-winsup: maybe-all-gcc
32298
32299configure-target-libgloss: maybe-all-gcc
32300
32301configure-target-libiberty: maybe-all-gcc
32302
32303configure-target-gperf: maybe-all-gcc
32304
32305configure-target-examples: maybe-all-gcc
32306
32307configure-target-libffi: maybe-all-gcc
32308
32309configure-target-libjava: maybe-all-gcc
32310
32311configure-target-zlib: maybe-all-gcc
32312
32313configure-target-boehm-gc: maybe-all-gcc
32314
32315configure-target-qthreads: maybe-all-gcc
32316
32317configure-target-rda: maybe-all-gcc
32318
32319configure-target-libada: maybe-all-gcc
32320
32321
32322
32323configure-target-boehm-gc: maybe-all-target-newlib maybe-all-target-libgloss
32324
32325configure-target-gperf: maybe-all-target-newlib maybe-all-target-libgloss
32326configure-target-gperf: maybe-all-target-libstdc++-v3
32327
32328configure-target-libada: maybe-all-target-newlib maybe-all-target-libgloss
32329
32330configure-target-libgfortran: maybe-all-target-newlib maybe-all-target-libgloss
32331
32332configure-target-libffi: maybe-all-target-newlib maybe-all-target-libgloss
32333
32334configure-target-libjava: maybe-all-target-newlib maybe-all-target-libgloss
32335configure-target-libjava: maybe-all-target-libstdc++-v3
32336
32337configure-target-libobjc: maybe-all-target-newlib maybe-all-target-libgloss
32338
32339configure-target-libstdc++-v3: maybe-all-target-newlib maybe-all-target-libgloss
32340
32341configure-target-zlib: maybe-all-target-newlib maybe-all-target-libgloss
32342
32343configure-target-examples: maybe-all-target-newlib maybe-all-target-libgloss
32344
32345configure-target-libtermcap: maybe-all-target-newlib maybe-all-target-libgloss
32346
32347configure-target-rda: maybe-all-target-newlib maybe-all-target-libgloss
32348
32349configure-target-winsup: maybe-all-target-newlib maybe-all-target-libgloss
32350
32351configure-target-qthreads: maybe-all-target-newlib maybe-all-target-libgloss
32352
32353
ae831be5
NN
32354# There are two types of dependencies here: 'hard' dependencies, where one
32355# module simply won't build without the other; and 'soft' dependencies, where
32356# if the depended-on module is missing, the depending module will do without
32357# or find a substitute somewhere (perhaps installed). Soft dependencies
9e6ce191 32358# are made here to depend on a 'maybe-' target. If you're not sure,
ae831be5
NN
32359# it's safer to use a soft dependency.
32360
9e6ce191
PB
32361
32362
32363
32364
32365# With all the machinery above in place, it is pretty easy to generate
32366# dependencies. Host dependencies are a bit more complex because we have
32367# to check for bootstrap/prebootstrap dependencies. To resolve
32368# prebootstrap dependencies, prebootstrap modules are gathered in
32369# a hash table.
6a9cf61e 32370all-build-bison: maybe-all-build-texinfo
9e6ce191 32371all-build-byacc: maybe-all-build-texinfo
6a9cf61e 32372all-build-flex: maybe-all-build-texinfo
9e6ce191
PB
32373all-build-flex: maybe-all-build-bison
32374all-build-flex: maybe-all-build-byacc
32375all-build-flex: maybe-all-build-m4
6a9cf61e 32376all-build-libiberty: maybe-all-build-texinfo
9e6ce191 32377all-build-m4: maybe-all-build-texinfo
ee025550 32378all-build-fixincludes: maybe-all-build-libiberty
9e6ce191
PB
32379configure-gcc: maybe-configure-intl
32380
32381configure-stage1-gcc: maybe-configure-stage1-intl
32382configure-stage2-gcc: maybe-configure-stage2-intl
32383configure-stage3-gcc: maybe-configure-stage3-intl
32384configure-stage4-gcc: maybe-configure-stage4-intl
32385configure-stageprofile-gcc: maybe-configure-stageprofile-intl
32386configure-stagefeedback-gcc: maybe-configure-stagefeedback-intl
32387configure-gcc: maybe-configure-binutils
32388
32389configure-stage1-gcc: maybe-configure-stage1-binutils
32390configure-stage2-gcc: maybe-configure-stage2-binutils
32391configure-stage3-gcc: maybe-configure-stage3-binutils
32392configure-stage4-gcc: maybe-configure-stage4-binutils
32393configure-stageprofile-gcc: maybe-configure-stageprofile-binutils
32394configure-stagefeedback-gcc: maybe-configure-stagefeedback-binutils
32395configure-gcc: maybe-configure-gas
32396
32397configure-stage1-gcc: maybe-configure-stage1-gas
32398configure-stage2-gcc: maybe-configure-stage2-gas
32399configure-stage3-gcc: maybe-configure-stage3-gas
32400configure-stage4-gcc: maybe-configure-stage4-gas
32401configure-stageprofile-gcc: maybe-configure-stageprofile-gas
32402configure-stagefeedback-gcc: maybe-configure-stagefeedback-gas
32403configure-gcc: maybe-configure-ld
32404
32405configure-stage1-gcc: maybe-configure-stage1-ld
32406configure-stage2-gcc: maybe-configure-stage2-ld
32407configure-stage3-gcc: maybe-configure-stage3-ld
32408configure-stage4-gcc: maybe-configure-stage4-ld
32409configure-stageprofile-gcc: maybe-configure-stageprofile-ld
32410configure-stagefeedback-gcc: maybe-configure-stagefeedback-ld
9e6ce191
PB
32411all-gcc: all-libiberty
32412
32413all-stage1-gcc: all-stage1-libiberty
32414all-stage2-gcc: all-stage2-libiberty
32415all-stage3-gcc: all-stage3-libiberty
32416all-stage4-gcc: all-stage4-libiberty
32417all-stageprofile-gcc: all-stageprofile-libiberty
32418all-stagefeedback-gcc: all-stagefeedback-libiberty
32419all-gcc: maybe-all-intl
32420
32421all-stage1-gcc: maybe-all-stage1-intl
32422all-stage2-gcc: maybe-all-stage2-intl
32423all-stage3-gcc: maybe-all-stage3-intl
32424all-stage4-gcc: maybe-all-stage4-intl
32425all-stageprofile-gcc: maybe-all-stageprofile-intl
32426all-stagefeedback-gcc: maybe-all-stagefeedback-intl
72b2455a
PB
32427all-gcc: maybe-all-build-texinfo
32428
32429all-stage1-gcc: maybe-all-build-texinfo
32430all-stage2-gcc: maybe-all-build-texinfo
32431all-stage3-gcc: maybe-all-build-texinfo
32432all-stage4-gcc: maybe-all-build-texinfo
32433all-stageprofile-gcc: maybe-all-build-texinfo
32434all-stagefeedback-gcc: maybe-all-build-texinfo
32435all-prebootstrap: maybe-all-build-texinfo
32436all-gcc: maybe-all-build-bison
32437
32438all-stage1-gcc: maybe-all-build-bison
32439all-stage2-gcc: maybe-all-build-bison
32440all-stage3-gcc: maybe-all-build-bison
32441all-stage4-gcc: maybe-all-build-bison
32442all-stageprofile-gcc: maybe-all-build-bison
32443all-stagefeedback-gcc: maybe-all-build-bison
32444all-prebootstrap: maybe-all-build-bison
32445all-gcc: maybe-all-build-byacc
32446
32447all-stage1-gcc: maybe-all-build-byacc
32448all-stage2-gcc: maybe-all-build-byacc
32449all-stage3-gcc: maybe-all-build-byacc
32450all-stage4-gcc: maybe-all-build-byacc
32451all-stageprofile-gcc: maybe-all-build-byacc
32452all-stagefeedback-gcc: maybe-all-build-byacc
32453all-prebootstrap: maybe-all-build-byacc
32454all-gcc: maybe-all-build-flex
32455
32456all-stage1-gcc: maybe-all-build-flex
32457all-stage2-gcc: maybe-all-build-flex
32458all-stage3-gcc: maybe-all-build-flex
32459all-stage4-gcc: maybe-all-build-flex
32460all-stageprofile-gcc: maybe-all-build-flex
32461all-stagefeedback-gcc: maybe-all-build-flex
32462all-prebootstrap: maybe-all-build-flex
ee025550
PB
32463all-gcc: maybe-all-build-libiberty
32464
32465all-stage1-gcc: maybe-all-build-libiberty
32466all-stage2-gcc: maybe-all-build-libiberty
32467all-stage3-gcc: maybe-all-build-libiberty
32468all-stage4-gcc: maybe-all-build-libiberty
32469all-stageprofile-gcc: maybe-all-build-libiberty
32470all-stagefeedback-gcc: maybe-all-build-libiberty
32471all-prebootstrap: maybe-all-build-libiberty
32472all-gcc: maybe-all-build-fixincludes
32473
32474all-stage1-gcc: maybe-all-build-fixincludes
32475all-stage2-gcc: maybe-all-build-fixincludes
32476all-stage3-gcc: maybe-all-build-fixincludes
32477all-stage4-gcc: maybe-all-build-fixincludes
32478all-stageprofile-gcc: maybe-all-build-fixincludes
32479all-stagefeedback-gcc: maybe-all-build-fixincludes
32480all-prebootstrap: maybe-all-build-fixincludes
9e6ce191
PB
32481all-gcc: maybe-all-binutils
32482
32483all-stage1-gcc: maybe-all-stage1-binutils
32484all-stage2-gcc: maybe-all-stage2-binutils
32485all-stage3-gcc: maybe-all-stage3-binutils
32486all-stage4-gcc: maybe-all-stage4-binutils
32487all-stageprofile-gcc: maybe-all-stageprofile-binutils
32488all-stagefeedback-gcc: maybe-all-stagefeedback-binutils
32489all-gcc: maybe-all-gas
32490
32491all-stage1-gcc: maybe-all-stage1-gas
32492all-stage2-gcc: maybe-all-stage2-gas
32493all-stage3-gcc: maybe-all-stage3-gas
32494all-stage4-gcc: maybe-all-stage4-gas
32495all-stageprofile-gcc: maybe-all-stageprofile-gas
32496all-stagefeedback-gcc: maybe-all-stagefeedback-gas
32497all-gcc: maybe-all-ld
32498
32499all-stage1-gcc: maybe-all-stage1-ld
32500all-stage2-gcc: maybe-all-stage2-ld
32501all-stage3-gcc: maybe-all-stage3-ld
32502all-stage4-gcc: maybe-all-stage4-ld
32503all-stageprofile-gcc: maybe-all-stageprofile-ld
32504all-stagefeedback-gcc: maybe-all-stagefeedback-ld
32505all-gcc: maybe-all-zlib
32506
32507all-stage1-gcc: maybe-all-stage1-zlib
32508all-stage2-gcc: maybe-all-stage2-zlib
32509all-stage3-gcc: maybe-all-stage3-zlib
32510all-stage4-gcc: maybe-all-stage4-zlib
32511all-stageprofile-gcc: maybe-all-stageprofile-zlib
32512all-stagefeedback-gcc: maybe-all-stagefeedback-zlib
9e6ce191
PB
32513all-gcc: all-libcpp
32514
32515all-stage1-gcc: all-stage1-libcpp
32516all-stage2-gcc: all-stage2-libcpp
32517all-stage3-gcc: all-stage3-libcpp
32518all-stage4-gcc: all-stage4-libcpp
32519all-stageprofile-gcc: all-stageprofile-libcpp
32520all-stagefeedback-gcc: all-stagefeedback-libcpp
04cf1b77 32521all-gcc: maybe-all-build-libiberty
72b2455a
PB
32522
32523all-stage1-gcc: maybe-all-build-libiberty
32524all-stage2-gcc: maybe-all-build-libiberty
32525all-stage3-gcc: maybe-all-build-libiberty
32526all-stage4-gcc: maybe-all-build-libiberty
32527all-stageprofile-gcc: maybe-all-build-libiberty
32528all-stagefeedback-gcc: maybe-all-build-libiberty
32529all-prebootstrap: maybe-all-build-libiberty
9e6ce191
PB
32530configure-libcpp: configure-libiberty
32531
32532configure-stage1-libcpp: configure-stage1-libiberty
32533configure-stage2-libcpp: configure-stage2-libiberty
32534configure-stage3-libcpp: configure-stage3-libiberty
32535configure-stage4-libcpp: configure-stage4-libiberty
32536configure-stageprofile-libcpp: configure-stageprofile-libiberty
32537configure-stagefeedback-libcpp: configure-stagefeedback-libiberty
32538configure-libcpp: maybe-configure-intl
32539
32540configure-stage1-libcpp: maybe-configure-stage1-intl
32541configure-stage2-libcpp: maybe-configure-stage2-intl
32542configure-stage3-libcpp: maybe-configure-stage3-intl
32543configure-stage4-libcpp: maybe-configure-stage4-intl
32544configure-stageprofile-libcpp: maybe-configure-stageprofile-intl
32545configure-stagefeedback-libcpp: maybe-configure-stagefeedback-intl
32546all-libcpp: all-libiberty
32547
32548all-stage1-libcpp: all-stage1-libiberty
32549all-stage2-libcpp: all-stage2-libiberty
32550all-stage3-libcpp: all-stage3-libiberty
32551all-stage4-libcpp: all-stage4-libiberty
32552all-stageprofile-libcpp: all-stageprofile-libiberty
32553all-stagefeedback-libcpp: all-stagefeedback-libiberty
32554all-libcpp: maybe-all-intl
32555
32556all-stage1-libcpp: maybe-all-stage1-intl
32557all-stage2-libcpp: maybe-all-stage2-intl
32558all-stage3-libcpp: maybe-all-stage3-intl
32559all-stage4-libcpp: maybe-all-stage4-intl
32560all-stageprofile-libcpp: maybe-all-stageprofile-intl
32561all-stagefeedback-libcpp: maybe-all-stagefeedback-intl
32562configure-gdb: maybe-configure-itcl
32563configure-gdb: maybe-configure-tcl
32564configure-gdb: maybe-configure-tk
32565configure-gdb: maybe-configure-sim
32566all-gdb: maybe-all-libiberty
32567all-gdb: maybe-all-opcodes
32568all-gdb: maybe-all-bfd
9e6ce191 32569all-gdb: maybe-all-readline
72b2455a
PB
32570all-gdb: maybe-all-build-bison
32571all-gdb: maybe-all-build-byacc
9e6ce191
PB
32572all-gdb: maybe-all-sim
32573install-gdb: maybe-install-tcl
32574install-gdb: maybe-install-tk
32575install-gdb: maybe-install-itcl
9e6ce191
PB
32576install-gdb: maybe-install-libgui
32577configure-libgui: maybe-configure-tcl
32578configure-libgui: maybe-configure-tk
32579all-libgui: maybe-all-tcl
32580all-libgui: maybe-all-tk
32581all-libgui: maybe-all-itcl
b4a77b47 32582configure-bfd: configure-libiberty
9e6ce191
PB
32583
32584configure-stage1-bfd: configure-stage1-libiberty
32585configure-stage2-bfd: configure-stage2-libiberty
32586configure-stage3-bfd: configure-stage3-libiberty
32587configure-stage4-bfd: configure-stage4-libiberty
32588configure-stageprofile-bfd: configure-stageprofile-libiberty
32589configure-stagefeedback-bfd: configure-stagefeedback-libiberty
32590all-bfd: maybe-all-libiberty
32591
32592all-stage1-bfd: maybe-all-stage1-libiberty
32593all-stage2-bfd: maybe-all-stage2-libiberty
32594all-stage3-bfd: maybe-all-stage3-libiberty
32595all-stage4-bfd: maybe-all-stage4-libiberty
32596all-stageprofile-bfd: maybe-all-stageprofile-libiberty
32597all-stagefeedback-bfd: maybe-all-stagefeedback-libiberty
32598all-bfd: maybe-all-intl
32599
32600all-stage1-bfd: maybe-all-stage1-intl
32601all-stage2-bfd: maybe-all-stage2-intl
32602all-stage3-bfd: maybe-all-stage3-intl
32603all-stage4-bfd: maybe-all-stage4-intl
32604all-stageprofile-bfd: maybe-all-stageprofile-intl
32605all-stagefeedback-bfd: maybe-all-stagefeedback-intl
32606all-binutils: maybe-all-libiberty
32607
32608all-stage1-binutils: maybe-all-stage1-libiberty
32609all-stage2-binutils: maybe-all-stage2-libiberty
32610all-stage3-binutils: maybe-all-stage3-libiberty
32611all-stage4-binutils: maybe-all-stage4-libiberty
32612all-stageprofile-binutils: maybe-all-stageprofile-libiberty
32613all-stagefeedback-binutils: maybe-all-stagefeedback-libiberty
32614all-binutils: maybe-all-opcodes
32615
32616all-stage1-binutils: maybe-all-stage1-opcodes
32617all-stage2-binutils: maybe-all-stage2-opcodes
32618all-stage3-binutils: maybe-all-stage3-opcodes
32619all-stage4-binutils: maybe-all-stage4-opcodes
32620all-stageprofile-binutils: maybe-all-stageprofile-opcodes
32621all-stagefeedback-binutils: maybe-all-stagefeedback-opcodes
32622all-binutils: maybe-all-bfd
32623
32624all-stage1-binutils: maybe-all-stage1-bfd
32625all-stage2-binutils: maybe-all-stage2-bfd
32626all-stage3-binutils: maybe-all-stage3-bfd
32627all-stage4-binutils: maybe-all-stage4-bfd
32628all-stageprofile-binutils: maybe-all-stageprofile-bfd
32629all-stagefeedback-binutils: maybe-all-stagefeedback-bfd
72b2455a
PB
32630all-binutils: maybe-all-build-flex
32631
32632all-stage1-binutils: maybe-all-build-flex
32633all-stage2-binutils: maybe-all-build-flex
32634all-stage3-binutils: maybe-all-build-flex
32635all-stage4-binutils: maybe-all-build-flex
32636all-stageprofile-binutils: maybe-all-build-flex
32637all-stagefeedback-binutils: maybe-all-build-flex
32638all-prebootstrap: maybe-all-build-flex
32639all-binutils: maybe-all-build-bison
32640
32641all-stage1-binutils: maybe-all-build-bison
32642all-stage2-binutils: maybe-all-build-bison
32643all-stage3-binutils: maybe-all-build-bison
32644all-stage4-binutils: maybe-all-build-bison
32645all-stageprofile-binutils: maybe-all-build-bison
32646all-stagefeedback-binutils: maybe-all-build-bison
32647all-prebootstrap: maybe-all-build-bison
32648all-binutils: maybe-all-build-byacc
32649
32650all-stage1-binutils: maybe-all-build-byacc
32651all-stage2-binutils: maybe-all-build-byacc
32652all-stage3-binutils: maybe-all-build-byacc
32653all-stage4-binutils: maybe-all-build-byacc
32654all-stageprofile-binutils: maybe-all-build-byacc
32655all-stagefeedback-binutils: maybe-all-build-byacc
32656all-prebootstrap: maybe-all-build-byacc
9e6ce191
PB
32657all-binutils: maybe-all-intl
32658
32659all-stage1-binutils: maybe-all-stage1-intl
32660all-stage2-binutils: maybe-all-stage2-intl
32661all-stage3-binutils: maybe-all-stage3-intl
32662all-stage4-binutils: maybe-all-stage4-intl
32663all-stageprofile-binutils: maybe-all-stageprofile-intl
32664all-stagefeedback-binutils: maybe-all-stagefeedback-intl
ae831be5 32665install-binutils: maybe-install-opcodes
cf662e21 32666install-opcodes: maybe-install-bfd
9e6ce191
PB
32667all-gas: maybe-all-libiberty
32668
32669all-stage1-gas: maybe-all-stage1-libiberty
32670all-stage2-gas: maybe-all-stage2-libiberty
32671all-stage3-gas: maybe-all-stage3-libiberty
32672all-stage4-gas: maybe-all-stage4-libiberty
32673all-stageprofile-gas: maybe-all-stageprofile-libiberty
32674all-stagefeedback-gas: maybe-all-stagefeedback-libiberty
32675all-gas: maybe-all-opcodes
32676
32677all-stage1-gas: maybe-all-stage1-opcodes
32678all-stage2-gas: maybe-all-stage2-opcodes
32679all-stage3-gas: maybe-all-stage3-opcodes
32680all-stage4-gas: maybe-all-stage4-opcodes
32681all-stageprofile-gas: maybe-all-stageprofile-opcodes
32682all-stagefeedback-gas: maybe-all-stagefeedback-opcodes
32683all-gas: maybe-all-bfd
32684
32685all-stage1-gas: maybe-all-stage1-bfd
32686all-stage2-gas: maybe-all-stage2-bfd
32687all-stage3-gas: maybe-all-stage3-bfd
32688all-stage4-gas: maybe-all-stage4-bfd
32689all-stageprofile-gas: maybe-all-stageprofile-bfd
32690all-stagefeedback-gas: maybe-all-stagefeedback-bfd
32691all-gas: maybe-all-intl
32692
32693all-stage1-gas: maybe-all-stage1-intl
32694all-stage2-gas: maybe-all-stage2-intl
32695all-stage3-gas: maybe-all-stage3-intl
32696all-stage4-gas: maybe-all-stage4-intl
32697all-stageprofile-gas: maybe-all-stageprofile-intl
32698all-stagefeedback-gas: maybe-all-stagefeedback-intl
32699all-gprof: maybe-all-libiberty
32700all-gprof: maybe-all-bfd
32701all-gprof: maybe-all-opcodes
32702all-gprof: maybe-all-intl
32703all-ld: maybe-all-libiberty
32704
32705all-stage1-ld: maybe-all-stage1-libiberty
32706all-stage2-ld: maybe-all-stage2-libiberty
32707all-stage3-ld: maybe-all-stage3-libiberty
32708all-stage4-ld: maybe-all-stage4-libiberty
32709all-stageprofile-ld: maybe-all-stageprofile-libiberty
32710all-stagefeedback-ld: maybe-all-stagefeedback-libiberty
32711all-ld: maybe-all-bfd
32712
32713all-stage1-ld: maybe-all-stage1-bfd
32714all-stage2-ld: maybe-all-stage2-bfd
32715all-stage3-ld: maybe-all-stage3-bfd
32716all-stage4-ld: maybe-all-stage4-bfd
32717all-stageprofile-ld: maybe-all-stageprofile-bfd
32718all-stagefeedback-ld: maybe-all-stagefeedback-bfd
32719all-ld: maybe-all-opcodes
32720
32721all-stage1-ld: maybe-all-stage1-opcodes
32722all-stage2-ld: maybe-all-stage2-opcodes
32723all-stage3-ld: maybe-all-stage3-opcodes
32724all-stage4-ld: maybe-all-stage4-opcodes
32725all-stageprofile-ld: maybe-all-stageprofile-opcodes
32726all-stagefeedback-ld: maybe-all-stagefeedback-opcodes
72b2455a
PB
32727all-ld: maybe-all-build-bison
32728
32729all-stage1-ld: maybe-all-build-bison
32730all-stage2-ld: maybe-all-build-bison
32731all-stage3-ld: maybe-all-build-bison
32732all-stage4-ld: maybe-all-build-bison
32733all-stageprofile-ld: maybe-all-build-bison
32734all-stagefeedback-ld: maybe-all-build-bison
32735all-prebootstrap: maybe-all-build-bison
32736all-ld: maybe-all-build-byacc
32737
32738all-stage1-ld: maybe-all-build-byacc
32739all-stage2-ld: maybe-all-build-byacc
32740all-stage3-ld: maybe-all-build-byacc
32741all-stage4-ld: maybe-all-build-byacc
32742all-stageprofile-ld: maybe-all-build-byacc
32743all-stagefeedback-ld: maybe-all-build-byacc
32744all-prebootstrap: maybe-all-build-byacc
32745all-ld: maybe-all-build-flex
32746
32747all-stage1-ld: maybe-all-build-flex
32748all-stage2-ld: maybe-all-build-flex
32749all-stage3-ld: maybe-all-build-flex
32750all-stage4-ld: maybe-all-build-flex
32751all-stageprofile-ld: maybe-all-build-flex
32752all-stagefeedback-ld: maybe-all-build-flex
32753all-prebootstrap: maybe-all-build-flex
9e6ce191
PB
32754all-ld: maybe-all-intl
32755
32756all-stage1-ld: maybe-all-stage1-intl
32757all-stage2-ld: maybe-all-stage2-intl
32758all-stage3-ld: maybe-all-stage3-intl
32759all-stage4-ld: maybe-all-stage4-intl
32760all-stageprofile-ld: maybe-all-stageprofile-intl
32761all-stagefeedback-ld: maybe-all-stagefeedback-intl
32762all-opcodes: maybe-all-bfd
32763
32764all-stage1-opcodes: maybe-all-stage1-bfd
32765all-stage2-opcodes: maybe-all-stage2-bfd
32766all-stage3-opcodes: maybe-all-stage3-bfd
32767all-stage4-opcodes: maybe-all-stage4-bfd
32768all-stageprofile-opcodes: maybe-all-stageprofile-bfd
32769all-stagefeedback-opcodes: maybe-all-stagefeedback-bfd
32770all-opcodes: maybe-all-libiberty
32771
32772all-stage1-opcodes: maybe-all-stage1-libiberty
32773all-stage2-opcodes: maybe-all-stage2-libiberty
32774all-stage3-opcodes: maybe-all-stage3-libiberty
32775all-stage4-opcodes: maybe-all-stage4-libiberty
32776all-stageprofile-opcodes: maybe-all-stageprofile-libiberty
32777all-stagefeedback-opcodes: maybe-all-stagefeedback-libiberty
32778all-dejagnu: maybe-all-tcl
32779all-dejagnu: maybe-all-expect
32780all-dejagnu: maybe-all-tk
32781configure-expect: maybe-configure-tcl
32782configure-expect: maybe-configure-tk
32783all-expect: maybe-all-tcl
32784all-expect: maybe-all-tk
32785configure-itcl: maybe-configure-tcl
32786configure-itcl: maybe-configure-tk
32787all-itcl: maybe-all-tcl
32788all-itcl: maybe-all-tk
ae831be5 32789install-itcl: maybe-install-tcl
b4a77b47 32790configure-tk: maybe-configure-tcl
ae831be5 32791all-tk: maybe-all-tcl
9e6ce191
PB
32792all-sid: maybe-all-libiberty
32793all-sid: maybe-all-bfd
32794all-sid: maybe-all-opcodes
32795all-sid: maybe-all-tcl
32796all-sid: maybe-all-tk
32797install-sid: maybe-install-tcl
32798install-sid: maybe-install-tk
32799all-sim: maybe-all-libiberty
32800all-sim: maybe-all-bfd
32801all-sim: maybe-all-opcodes
32802all-sim: maybe-all-readline
32803all-sim: maybe-configure-gdb
32804all-fastjar: maybe-all-zlib
72b2455a 32805all-fastjar: maybe-all-build-texinfo
9e6ce191
PB
32806all-fastjar: maybe-all-libiberty
32807all-autoconf: maybe-all-m4
72b2455a 32808all-autoconf: maybe-all-build-texinfo
9e6ce191 32809all-automake: maybe-all-m4
72b2455a 32810all-automake: maybe-all-build-texinfo
9e6ce191
PB
32811all-automake: maybe-all-autoconf
32812all-bison: maybe-all-intl
72b2455a 32813all-bison: maybe-all-build-texinfo
9e6ce191 32814all-diff: maybe-all-intl
72b2455a 32815all-diff: maybe-all-build-texinfo
9e6ce191 32816all-fileutils: maybe-all-intl
72b2455a
PB
32817all-fileutils: maybe-all-build-texinfo
32818all-flex: maybe-all-build-bison
32819all-flex: maybe-all-build-byacc
9e6ce191
PB
32820all-flex: maybe-all-intl
32821all-flex: maybe-all-m4
72b2455a 32822all-flex: maybe-all-build-texinfo
9e6ce191
PB
32823all-gzip: maybe-all-intl
32824all-gzip: maybe-all-zlib
72b2455a 32825all-gzip: maybe-all-build-texinfo
9e6ce191 32826all-hello: maybe-all-intl
72b2455a 32827all-hello: maybe-all-build-texinfo
9e6ce191 32828all-m4: maybe-all-intl
72b2455a 32829all-m4: maybe-all-build-texinfo
9e6ce191 32830all-make: maybe-all-intl
72b2455a
PB
32831all-make: maybe-all-build-texinfo
32832all-patch: maybe-all-build-texinfo
32833all-make: maybe-all-build-texinfo
930314a4 32834all-prms: maybe-all-libiberty
72b2455a
PB
32835all-recode: maybe-all-build-texinfo
32836all-sed: maybe-all-build-texinfo
930314a4 32837all-send-pr: maybe-all-prms
72b2455a
PB
32838all-tar: maybe-all-build-texinfo
32839all-uudecode: maybe-all-build-texinfo
9e6ce191 32840configure-target-boehm-gc: maybe-configure-target-qthreads
b4a77b47 32841configure-target-fastjar: maybe-configure-target-zlib
9e6ce191
PB
32842all-target-fastjar: maybe-all-target-zlib
32843all-target-fastjar: maybe-all-target-libiberty
32844configure-target-libjava: maybe-configure-target-zlib
32845configure-target-libjava: maybe-configure-target-boehm-gc
32846configure-target-libjava: maybe-configure-target-qthreads
32847configure-target-libjava: maybe-configure-target-libffi
32848all-target-libjava: maybe-all-fastjar
32849all-target-libjava: maybe-all-target-zlib
32850all-target-libjava: maybe-all-target-boehm-gc
32851all-target-libjava: maybe-all-target-qthreads
32852all-target-libjava: maybe-all-target-libffi
ae831be5 32853all-target-libobjc: maybe-all-target-libiberty
ae831be5 32854all-target-libstdc++-v3: maybe-all-target-libiberty
ae831be5 32855all-target-libgloss: maybe-configure-target-newlib
9e6ce191
PB
32856all-target-winsup: maybe-all-target-libiberty
32857all-target-winsup: maybe-all-target-libtermcap
32858
32859
72b2455a
PB
32860# Non-toplevel bootstrap rules must depend on several packages, to be built
32861# before gcc. Another wart that will go away, hopefully soon.
9e6ce191
PB
32862@if gcc-no-bootstrap
32863
32864all-prebootstrap: maybe-all-bfd
32865all-prebootstrap: maybe-all-opcodes
32866all-prebootstrap: maybe-all-binutils
32867all-prebootstrap: maybe-all-gas
32868all-prebootstrap: maybe-all-intl
32869all-prebootstrap: maybe-all-ld
32870all-prebootstrap: maybe-all-libcpp
9e6ce191
PB
32871all-prebootstrap: maybe-all-libiberty
32872all-prebootstrap: maybe-all-zlib
32873@endif gcc-no-bootstrap
32874
32875GDB_TK = @GDB_TK@
32876all-gdb: $(gdbnlmrequirements) $(GDB_TK)
907a7241 32877
a2cc058a
NN
32878# Serialization dependencies. Host configures don't work well in parallel to
32879# each other, due to contention over config.cache. Target configures and
32880# build configures are similar.
32881@serialization_dependencies@
32882
15723a45
NN
32883# --------------------------------
32884# Regenerating top level configury
32885# --------------------------------
252b5132 32886
1086bc09
NN
32887# Multilib.out tells target dirs what multilibs they should build.
32888# There is really only one copy. We use the 'timestamp' method to
32889# work around various timestamp bugs on some systems.
32890# We use move-if-change so that it's only considered updated when it
32891# actually changes, because it has to depend on a phony target.
e6bfb94a 32892multilib.out: maybe-all-gcc
b40e3958 32893 @r=`${PWD_COMMAND}`; export r; \
1086bc09
NN
32894 echo "Checking multilib configuration..."; \
32895 $(CC_FOR_TARGET) --print-multi-lib > multilib.tmp 2> /dev/null ; \
32896 $(SHELL) $(srcdir)/move-if-change multilib.tmp multilib.out ; \
1086bc09 32897
14a2a2f1 32898# Rebuilding Makefile.in, using autogen.
43be203f 32899AUTOGEN = autogen
6b784d9f 32900$(srcdir)/Makefile.in: @MAINT@ $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def
43be203f 32901 cd $(srcdir) && $(AUTOGEN) Makefile.def
14a2a2f1 32902
a0da8069 32903# Rebuilding Makefile.
43be203f
AO
32904Makefile: $(srcdir)/Makefile.in config.status
32905 CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
32906
32907config.status: configure $(gcc_version_trigger)
10ecffb9 32908 CONFIG_SHELL="$(SHELL)" $(SHELL) ./config.status --recheck
252b5132 32909
a0da8069 32910# Rebuilding configure.
43be203f 32911AUTOCONF = autoconf
6b784d9f 32912$(srcdir)/configure: @MAINT@ $(srcdir)/configure.in $(srcdir)/config/acx.m4
43be203f 32913 cd $(srcdir) && $(AUTOCONF)
252b5132 32914
3728fade
NN
32915# ------------------------------
32916# Special directives to GNU Make
32917# ------------------------------
32918
3728fade
NN
32919# Don't pass command-line variables to submakes.
32920.NOEXPORT:
32921MAKEOVERRIDES=
32922
252b5132 32923# end of Makefile.in
This page took 3.011808 seconds and 4 git commands to generate.