]>
Commit | Line | Data |
---|---|---|
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 | 26 | VPATH=@srcdir@ |
583d52d7 NN |
27 | |
28 | build_alias=@build_alias@ | |
7f121bbf | 29 | build=@build@ |
583d52d7 | 30 | host_alias=@host_alias@ |
7f121bbf | 31 | host=@host@ |
583d52d7 | 32 | target_alias=@target_alias@ |
7f121bbf | 33 | target=@target@ |
583d52d7 | 34 | |
50212802 | 35 | program_transform_name = @program_transform_name@ |
403d9505 NN |
36 | |
37 | prefix = @prefix@ | |
38 | exec_prefix = @exec_prefix@ | |
39 | ||
50212802 NN |
40 | srcdir = @srcdir@ |
41 | ||
403d9505 NN |
42 | bindir = @bindir@ |
43 | sbindir = @sbindir@ | |
44 | libexecdir = @libexecdir@ | |
45 | datadir = @datadir@ | |
46 | sysconfdir = @sysconfdir@ | |
47 | sharedstatedir = @sharedstatedir@ | |
48 | localstatedir = @localstatedir@ | |
49 | libdir = @libdir@ | |
50 | includedir = @includedir@ | |
51 | oldincludedir = @oldincludedir@ | |
52 | infodir = @infodir@ | |
53 | mandir = @mandir@ | |
252b5132 RH |
54 | man1dir = $(mandir)/man1 |
55 | man2dir = $(mandir)/man2 | |
56 | man3dir = $(mandir)/man3 | |
57 | man4dir = $(mandir)/man4 | |
58 | man5dir = $(mandir)/man5 | |
59 | man6dir = $(mandir)/man6 | |
60 | man7dir = $(mandir)/man7 | |
61 | man8dir = $(mandir)/man8 | |
62 | man9dir = $(mandir)/man9 | |
d5de0a84 | 63 | |
e5c3f801 NN |
64 | INSTALL = @INSTALL@ |
65 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | |
66 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | |
67 | INSTALL_DATA = @INSTALL_DATA@ | |
656fdd47 PB |
68 | LN = @LN@ |
69 | LN_S = @LN_S@ | |
252b5132 | 70 | |
50212802 NN |
71 | # ------------------------------------------------- |
72 | # Miscellaneous non-standard autoconf-set variables | |
73 | # ------------------------------------------------- | |
252b5132 | 74 | |
50212802 NN |
75 | # The gcc driver likes to know the arguments it was configured with. |
76 | TOPLEVEL_CONFIGURE_ARGUMENTS=@TOPLEVEL_CONFIGURE_ARGUMENTS@ | |
252b5132 | 77 | |
50212802 NN |
78 | tooldir = @tooldir@ |
79 | build_tooldir = @build_tooldir@ | |
252b5132 | 80 | |
50212802 | 81 | GDB_NLM_DEPS = |
252b5132 | 82 | |
50212802 NN |
83 | # This is the name of the environment variable used for the path to |
84 | # the libraries. | |
85 | RPATH_ENVVAR = @RPATH_ENVVAR@ | |
252b5132 | 86 | |
50212802 | 87 | # This is the list of directories to be built for the build system. |
be75bbe1 | 88 | BUILD_CONFIGDIRS = libiberty |
50212802 NN |
89 | # Build programs are put under this directory. |
90 | BUILD_SUBDIR = @build_subdir@ | |
91 | # This is set by the configure script to the arguments to use when configuring | |
92 | # directories built for the build system. | |
a7254363 | 93 | BUILD_CONFIGARGS = @build_configargs@ --with-build-subdir="$(BUILD_SUBDIR)" |
6a9cf61e PB |
94 | |
95 | # This is the list of variables to export in the environment when | |
96 | # configuring any subdirectory. It must also be exported whenever | |
97 | # recursing into a build directory in case that directory's Makefile | |
98 | # re-runs configure. | |
99 | BASE_EXPORTS = \ | |
100 | FLEX="$(FLEX)"; export FLEX; \ | |
101 | LEX="$(LEX)"; export LEX; \ | |
102 | BISON="$(BISON)"; export BISON; \ | |
103 | YACC="$(YACC)"; export YACC; \ | |
104 | M4="$(M4)"; export M4; \ | |
105 | MAKEINFO="$(MAKEINFO)"; export MAKEINFO; | |
106 | ||
378fce5b | 107 | # This is the list of variables to export in the environment when |
6a9cf61e | 108 | # configuring subdirectories for the build system. |
378fce5b | 109 | BUILD_EXPORTS = \ |
6a9cf61e | 110 | $(BASE_EXPORTS) \ |
378fce5b DD |
111 | AR="$(AR_FOR_BUILD)"; export AR; \ |
112 | AS="$(AS_FOR_BUILD)"; export AS; \ | |
113 | CC="$(CC_FOR_BUILD)"; export CC; \ | |
114 | CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \ | |
115 | CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \ | |
116 | CXX="$(CXX_FOR_BUILD)"; export CXX; \ | |
117 | CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \ | |
118 | GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \ | |
119 | GFORTRAN="$(GFORTRAN_FOR_BUILD)"; export GFORTRAN; \ | |
120 | DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \ | |
121 | LD="$(LD_FOR_BUILD)"; export LD; \ | |
122 | LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \ | |
123 | NM="$(NM_FOR_BUILD)"; export NM; \ | |
124 | RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \ | |
125 | WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES; | |
50212802 NN |
126 | |
127 | # This is the list of directories to built for the host system. | |
128 | SUBDIRS = @configdirs@ | |
129 | # This is set by the configure script to the arguments to use when configuring | |
130 | # directories built for the host system. | |
131 | HOST_CONFIGARGS = @host_configargs@ | |
b00612cc PB |
132 | # Host programs are put under this directory, which is . except if building |
133 | # with srcdir=.. | |
134 | HOST_SUBDIR = @host_subdir@ | |
378fce5b | 135 | # This is the list of variables to export in the environment when |
6a9cf61e | 136 | # configuring subdirectories for the host system. |
378fce5b | 137 | HOST_EXPORTS = \ |
6a9cf61e | 138 | $(BASE_EXPORTS) \ |
378fce5b DD |
139 | CC="$(CC)"; export CC; \ |
140 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
141 | CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \ | |
142 | CXX="$(CXX)"; export CXX; \ | |
143 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
144 | AR="$(AR)"; export AR; \ | |
145 | AS="$(AS)"; export AS; \ | |
146 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
147 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
148 | LD="$(LD)"; export LD; \ | |
149 | LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \ | |
150 | NM="$(NM)"; export NM; \ | |
151 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
152 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
153 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
95b6a1f2 | 154 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ |
378fce5b DD |
155 | TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \ |
156 | GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \ | |
315b3b02 | 157 | GMPINC="$(HOST_GMPINC)"; export GMPINC; \ |
e90269c8 | 158 | $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); |
378fce5b DD |
159 | |
160 | # Similar, for later GCC stages. | |
161 | STAGE_HOST_EXPORTS = \ | |
e90269c8 | 162 | $(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \ |
7ffa0b57 | 163 | $(HOST_EXPORTS) \ |
b00612cc PB |
164 | CC="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/xgcc$(exeext) \ |
165 | -B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/"; export CC; \ | |
166 | CC_FOR_BUILD="$(STAGE_CC_WRAPPER) \ | |
167 | $$r/$(HOST_SUBDIR)/prev-gcc/xgcc$(exeext) \ | |
168 | -B$$r/$(HOST_SUBDIR)/prev-gcc/ \ | |
169 | -B$(build_tooldir)/bin/"; export CC_FOR_BUILD; | |
50212802 NN |
170 | |
171 | # This is set by the configure script to the list of directories which | |
172 | # should be built using the target tools. | |
173 | TARGET_CONFIGDIRS = @target_configdirs@ | |
174 | # Target libraries are put under this directory: | |
175 | TARGET_SUBDIR = @target_subdir@ | |
176 | # This is set by the configure script to the arguments to use when configuring | |
177 | # directories built for the target. | |
a7254363 | 178 | TARGET_CONFIGARGS = @target_configargs@ --with-target-subdir="$(TARGET_SUBDIR)" |
378fce5b | 179 | # This is the list of variables to export in the environment when |
6a9cf61e | 180 | # configuring subdirectories for the host system. |
378fce5b | 181 | BASE_TARGET_EXPORTS = \ |
6a9cf61e | 182 | $(BASE_EXPORTS) \ |
378fce5b DD |
183 | AR="$(AR_FOR_TARGET)"; export AR; \ |
184 | AS="$(AS_FOR_TARGET)"; export AS; \ | |
185 | CC="$(CC_FOR_TARGET)"; export CC; \ | |
186 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
187 | CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \ | |
06bcb89d | 188 | CPPFLAGS="$(CPPFLAGS_FOR_TARGET)"; export CPPFLAGS; \ |
378fce5b DD |
189 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ |
190 | GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \ | |
191 | GFORTRAN="$(GFORTRAN_FOR_TARGET)"; export GFORTRAN; \ | |
192 | DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \ | |
193 | LD="$(LD_FOR_TARGET)"; export LD; \ | |
194 | LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \ | |
195 | NM="$(NM_FOR_TARGET)"; export NM; \ | |
196 | RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \ | |
315b3b02 | 197 | WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \ |
e90269c8 | 198 | $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); |
378fce5b DD |
199 | |
200 | RAW_CXX_TARGET_EXPORTS = \ | |
201 | $(BASE_TARGET_EXPORTS) \ | |
202 | CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \ | |
203 | CXX="$(RAW_CXX_FOR_TARGET)"; export CXX; | |
204 | ||
205 | NORMAL_TARGET_EXPORTS = \ | |
206 | $(BASE_TARGET_EXPORTS) \ | |
207 | CXX="$(CXX_FOR_TARGET)"; export CXX; | |
50212802 | 208 | |
4b1cb4fe DD |
209 | # Where to find GMP |
210 | HOST_GMPLIBS = @gmplibs@ | |
211 | HOST_GMPINC = @gmpinc@ | |
212 | ||
50212802 NN |
213 | # ---------------------------------------------- |
214 | # Programs producing files for the BUILD machine | |
215 | # ---------------------------------------------- | |
216 | ||
217 | SHELL = @config_shell@ | |
218 | ||
219 | # pwd command to use. Allow user to override default by setting PWDCMD in | |
220 | # the environment to account for automounters. The make variable must not | |
221 | # be called PWDCMD, otherwise the value set here is passed to make | |
222 | # subprocesses and overrides the setting from the user's environment. | |
b40e3958 L |
223 | # Don't use PWD since it is a common shell environment variable and we |
224 | # don't want to corrupt it. | |
225 | PWD_COMMAND = $${PWDCMD-pwd} | |
50212802 NN |
226 | |
227 | # compilers to use to create programs which must be run in the build | |
228 | # environment. | |
229 | CC_FOR_BUILD = @CC_FOR_BUILD@ | |
5fbad20a | 230 | CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@ |
50212802 NN |
231 | |
232 | CXX_FOR_BUILD = $(CXX) | |
233 | ||
234 | # Special variables passed down in EXTRA_GCC_FLAGS. They are defined | |
235 | # here so that they can be overridden by Makefile fragments. | |
50212802 NN |
236 | BUILD_PREFIX = @BUILD_PREFIX@ |
237 | BUILD_PREFIX_1 = @BUILD_PREFIX_1@ | |
252b5132 | 238 | |
0df3d27f PB |
239 | # Flags to pass to stage2 and later makes. They are defined |
240 | # here so that they can be overridden by Makefile fragments. | |
241 | BOOT_CFLAGS= -g -O2 | |
242 | ||
6a9cf61e | 243 | CONFIGURED_BISON = @CONFIGURED_BISON@ |
72b2455a PB |
244 | BISON = `if [ -f $$r/$(BUILD_SUBDIR)/bison/tests/bison ] ; then \ |
245 | echo $$r/$(BUILD_SUBDIR)/bison/tests/bison ; \ | |
252b5132 | 246 | else \ |
6a9cf61e | 247 | echo ${CONFIGURED_BISON} ; \ |
252b5132 RH |
248 | fi` |
249 | ||
6a9cf61e | 250 | CONFIGURED_YACC = @CONFIGURED_YACC@ |
72b2455a PB |
251 | YACC = `if [ -f $$r/$(BUILD_SUBDIR)/bison/tests/bison ] ; then \ |
252 | echo $$r/$(BUILD_SUBDIR)/bison/tests/bison -y ; \ | |
253 | elif [ -f $$r/$(BUILD_SUBDIR)/byacc/byacc ] ; then \ | |
254 | echo $$r/$(BUILD_SUBDIR)/byacc/byacc ; \ | |
252b5132 | 255 | else \ |
6a9cf61e | 256 | echo ${CONFIGURED_YACC} ; \ |
252b5132 RH |
257 | fi` |
258 | ||
6a9cf61e | 259 | CONFIGURED_FLEX = @CONFIGURED_FLEX@ |
72b2455a PB |
260 | FLEX = `if [ -f $$r/$(BUILD_SUBDIR)/flex/flex ] ; \ |
261 | then echo $$r/$(BUILD_SUBDIR)/flex/flex ; \ | |
6a9cf61e | 262 | else echo ${CONFIGURED_FLEX} ; fi` |
252b5132 | 263 | |
6a9cf61e | 264 | CONFIGURED_LEX = @CONFIGURED_LEX@ |
72b2455a PB |
265 | LEX = `if [ -f $$r/$(BUILD_SUBDIR)/flex/flex ] ; \ |
266 | then echo $$r/$(BUILD_SUBDIR)/flex/flex ; \ | |
6a9cf61e PB |
267 | else echo ${CONFIGURED_LEX} ; fi` |
268 | ||
269 | CONFIGURED_M4 = @CONFIGURED_M4@ | |
72b2455a PB |
270 | M4 = `if [ -f $$r/$(BUILD_SUBDIR)/m4/m4 ] ; \ |
271 | then echo $$r/$(BUILD_SUBDIR)/m4/m4 ; \ | |
6a9cf61e | 272 | else echo ${CONFIGURED_M4} ; fi` |
252b5132 | 273 | |
77f7441a | 274 | # For an installed makeinfo, we require it to be from texinfo 4.2 or |
6a9cf61e PB |
275 | # higher, else we use the "missing" dummy. We also pass the subdirectory |
276 | # makeinfo even if only the Makefile is there, because Texinfo builds its | |
277 | # manual when made, and it requires its own version. | |
278 | CONFIGURED_MAKEINFO = @CONFIGURED_MAKEINFO@ | |
72b2455a PB |
279 | MAKEINFO = `if [ -f $$r/$(BUILD_SUBDIR)/texinfo/makeinfo/Makefile ] ; \ |
280 | then echo $$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo ; \ | |
6a9cf61e | 281 | else if (${CONFIGURED_MAKEINFO} --version \ |
77f7441a | 282 | | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[2-9]|[5-9])') >/dev/null 2>&1; \ |
6a9cf61e | 283 | then echo ${CONFIGURED_MAKEINFO}; else echo $$s/missing makeinfo; fi; fi` |
252b5132 RH |
284 | |
285 | # This just becomes part of the MAKEINFO definition passed down to | |
286 | # sub-makes. It lets flags be given on the command line while still | |
287 | # using the makeinfo from the object tree. | |
62a3fc85 DD |
288 | # (Default to avoid splitting info files by setting the threshold high.) |
289 | MAKEINFOFLAGS = --split-size=5000000 | |
252b5132 | 290 | |
b00612cc PB |
291 | # FIXME: expect may become a build tool? |
292 | EXPECT = `if [ -f $$r/$(HOST_SUBDIR)/expect/expect ] ; \ | |
293 | then echo $$r/$(HOST_SUBDIR)/expect/expect ; \ | |
252b5132 RH |
294 | else echo expect ; fi` |
295 | ||
296 | RUNTEST = `if [ -f $$s/dejagnu/runtest ] ; \ | |
297 | then echo $$s/dejagnu/runtest ; \ | |
298 | else echo runtest ; fi` | |
299 | ||
50212802 NN |
300 | # --------------------------------------------- |
301 | # Programs producing files for the HOST machine | |
302 | # --------------------------------------------- | |
252b5132 | 303 | |
50212802 | 304 | AS = @AS@ |
252b5132 | 305 | |
50212802 NN |
306 | AR = @AR@ |
307 | AR_FLAGS = rc | |
252b5132 | 308 | |
50212802 NN |
309 | CC = @CC@ |
310 | CFLAGS = @CFLAGS@ | |
311 | LIBCFLAGS = $(CFLAGS) | |
252b5132 | 312 | |
50212802 NN |
313 | CXX = @CXX@ |
314 | CXXFLAGS = @CXXFLAGS@ | |
315 | LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates | |
49b7683b | 316 | |
50212802 | 317 | DLLTOOL = @DLLTOOL@ |
252b5132 | 318 | |
50212802 | 319 | NM = @NM@ |
15723a45 | 320 | |
50212802 NN |
321 | LD = @LD@ |
322 | LDFLAGS = | |
15723a45 | 323 | |
50212802 | 324 | RANLIB = @RANLIB@ |
252b5132 | 325 | |
50212802 | 326 | WINDRES = @WINDRES@ |
252b5132 | 327 | |
50212802 NN |
328 | PICFLAG = |
329 | ||
330 | # ----------------------------------------------- | |
331 | # Programs producing files for the TARGET machine | |
332 | # ----------------------------------------------- | |
0da52010 | 333 | |
58daee98 | 334 | FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@ |
252b5132 | 335 | |
50212802 | 336 | AR_FOR_TARGET=@AR_FOR_TARGET@ |
54752a6b | 337 | CONFIGURED_AR_FOR_TARGET=@CONFIGURED_AR_FOR_TARGET@ |
50212802 | 338 | USUAL_AR_FOR_TARGET = ` \ |
b00612cc PB |
339 | if [ -f $$r/$(HOST_SUBDIR)/binutils/ar ] ; then \ |
340 | echo $$r/$(HOST_SUBDIR)/binutils/ar ; \ | |
50212802 | 341 | else \ |
7f121bbf | 342 | if [ '$(host)' = '$(target)' ] ; then \ |
50212802 NN |
343 | echo $(AR); \ |
344 | else \ | |
54752a6b | 345 | echo $(CONFIGURED_AR_FOR_TARGET) ; \ |
50212802 NN |
346 | fi; \ |
347 | fi` | |
252b5132 | 348 | |
852e5f18 | 349 | AS_FOR_TARGET=@AS_FOR_TARGET@ |
54752a6b | 350 | CONFIGURED_AS_FOR_TARGET=@CONFIGURED_AS_FOR_TARGET@ |
852e5f18 | 351 | USUAL_AS_FOR_TARGET = ` \ |
b00612cc PB |
352 | if [ -f $$r/$(HOST_SUBDIR)/gas/as-new ] ; then \ |
353 | echo $$r/$(HOST_SUBDIR)/gas/as-new ; \ | |
354 | elif [ -f $$r/$(HOST_SUBDIR)/gcc/xgcc ]; then \ | |
dc70af01 | 355 | $(CC_FOR_TARGET) -print-prog-name=as ; \ |
252b5132 | 356 | else \ |
7f121bbf | 357 | if [ '$(host)' = '$(target)' ] ; then \ |
252b5132 RH |
358 | echo $(AS); \ |
359 | else \ | |
54752a6b | 360 | echo $(CONFIGURED_AS_FOR_TARGET) ; \ |
252b5132 RH |
361 | fi; \ |
362 | fi` | |
363 | ||
50212802 NN |
364 | CC_FOR_TARGET = @CC_FOR_TARGET@ |
365 | # During gcc bootstrap, if we use some random cc for stage1 then | |
366 | # CFLAGS will be just -g. We want to ensure that TARGET libraries | |
367 | # (which we know are built with gcc) are built with optimizations so | |
368 | # prepend -O2 when setting CFLAGS_FOR_TARGET. | |
369 | CFLAGS_FOR_TARGET = -O2 $(CFLAGS) | |
370 | # If GCC_FOR_TARGET is not overriden on the command line, then this | |
371 | # variable is passed down to the gcc Makefile, where it is used to | |
372 | # build libgcc2.a. We define it here so that it can itself be | |
373 | # overridden on the command line. | |
374 | GCC_FOR_TARGET=@GCC_FOR_TARGET@ | |
b00612cc PB |
375 | USUAL_GCC_FOR_TARGET = $(STAGE_CC_WRAPPER) \ |
376 | $$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/ $(FLAGS_FOR_TARGET) | |
50212802 NN |
377 | LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET) |
378 | ||
379 | CXX_FOR_TARGET = @CXX_FOR_TARGET@ | |
380 | RAW_CXX_FOR_TARGET = @RAW_CXX_FOR_TARGET@ | |
381 | CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@ | |
382 | RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@ | |
383 | CXXFLAGS_FOR_TARGET = $(CXXFLAGS) | |
384 | LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates | |
252b5132 | 385 | |
852e5f18 | 386 | DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@ |
54752a6b | 387 | CONFIGURED_DLLTOOL_FOR_TARGET=@CONFIGURED_DLLTOOL_FOR_TARGET@ |
852e5f18 | 388 | USUAL_DLLTOOL_FOR_TARGET = ` \ |
b00612cc PB |
389 | if [ -f $$r/$(HOST_SUBDIR)/binutils/dlltool ] ; then \ |
390 | echo $$r/$(HOST_SUBDIR)/binutils/dlltool ; \ | |
252b5132 | 391 | else \ |
7f121bbf | 392 | if [ '$(host)' = '$(target)' ] ; then \ |
252b5132 RH |
393 | echo $(DLLTOOL); \ |
394 | else \ | |
54752a6b | 395 | echo $(CONFIGURED_DLLTOOL_FOR_TARGET) ; \ |
252b5132 RH |
396 | fi; \ |
397 | fi` | |
398 | ||
50212802 | 399 | GCJ_FOR_TARGET = @GCJ_FOR_TARGET@ |
4b1cb4fe | 400 | GFORTRAN_FOR_TARGET = @GFORTRAN_FOR_TARGET@ |
50212802 NN |
401 | |
402 | LD_FOR_TARGET=@LD_FOR_TARGET@ | |
54752a6b | 403 | CONFIGURED_LD_FOR_TARGET=@CONFIGURED_LD_FOR_TARGET@ |
50212802 | 404 | USUAL_LD_FOR_TARGET = ` \ |
b00612cc PB |
405 | if [ -f $$r/$(HOST_SUBDIR)/ld/ld-new ] ; then \ |
406 | echo $$r/$(HOST_SUBDIR)/ld/ld-new ; \ | |
407 | elif [ -f $$r/$(HOST_SUBDIR)/gcc/xgcc ]; then \ | |
50212802 | 408 | $(CC_FOR_TARGET) -print-prog-name=ld ; \ |
252b5132 | 409 | else \ |
7f121bbf | 410 | if [ '$(host)' = '$(target)' ] ; then \ |
50212802 | 411 | echo $(LD); \ |
252b5132 | 412 | else \ |
54752a6b | 413 | echo $(CONFIGURED_LD_FOR_TARGET) ; \ |
252b5132 RH |
414 | fi; \ |
415 | fi` | |
416 | ||
50212802 NN |
417 | LDFLAGS_FOR_TARGET = |
418 | ||
419 | NM_FOR_TARGET=@NM_FOR_TARGET@ | |
54752a6b | 420 | CONFIGURED_NM_FOR_TARGET=@CONFIGURED_NM_FOR_TARGET@ |
50212802 | 421 | USUAL_NM_FOR_TARGET = ` \ |
b00612cc PB |
422 | if [ -f $$r/$(HOST_SUBDIR)/binutils/nm-new ] ; then \ |
423 | echo $$r/$(HOST_SUBDIR)/binutils/nm-new ; \ | |
424 | elif [ -f $$r/$(HOST_SUBDIR)/gcc/xgcc ]; then \ | |
50212802 | 425 | $(CC_FOR_TARGET) -print-prog-name=nm ; \ |
252b5132 | 426 | else \ |
7f121bbf | 427 | if [ '$(host)' = '$(target)' ] ; then \ |
50212802 | 428 | echo $(NM); \ |
252b5132 | 429 | else \ |
54752a6b | 430 | echo $(CONFIGURED_NM_FOR_TARGET) ; \ |
252b5132 RH |
431 | fi; \ |
432 | fi` | |
433 | ||
852e5f18 | 434 | RANLIB_FOR_TARGET=@RANLIB_FOR_TARGET@ |
54752a6b | 435 | CONFIGURED_RANLIB_FOR_TARGET=@CONFIGURED_RANLIB_FOR_TARGET@ |
852e5f18 | 436 | USUAL_RANLIB_FOR_TARGET = ` \ |
b00612cc PB |
437 | if [ -f $$r/$(HOST_SUBDIR)/binutils/ranlib ] ; then \ |
438 | echo $$r/$(HOST_SUBDIR)/binutils/ranlib ; \ | |
252b5132 | 439 | else \ |
7f121bbf | 440 | if [ '$(host)' = '$(target)' ] ; then \ |
3f152009 AO |
441 | if [ x'$(RANLIB)' != x ]; then \ |
442 | echo $(RANLIB); \ | |
443 | else \ | |
444 | echo ranlib; \ | |
445 | fi; \ | |
252b5132 | 446 | else \ |
54752a6b | 447 | echo $(CONFIGURED_RANLIB_FOR_TARGET) ; \ |
252b5132 RH |
448 | fi; \ |
449 | fi` | |
450 | ||
50212802 | 451 | WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@ |
54752a6b | 452 | CONFIGURED_WINDRES_FOR_TARGET=@CONFIGURED_WINDRES_FOR_TARGET@ |
50212802 | 453 | USUAL_WINDRES_FOR_TARGET = ` \ |
b00612cc PB |
454 | if [ -f $$r/$(HOST_SUBDIR)/binutils/windres ] ; then \ |
455 | echo $$r/$(HOST_SUBDIR)/binutils/windres ; \ | |
252b5132 | 456 | else \ |
7f121bbf | 457 | if [ '$(host)' = '$(target)' ] ; then \ |
50212802 | 458 | echo $(WINDRES); \ |
252b5132 | 459 | else \ |
54752a6b | 460 | echo $(CONFIGURED_WINDRES_FOR_TARGET) ; \ |
252b5132 RH |
461 | fi; \ |
462 | fi` | |
463 | ||
50212802 NN |
464 | PICFLAG_FOR_TARGET = |
465 | ||
466 | # ------------------------------------ | |
467 | # Miscellaneous targets and flag lists | |
468 | # ------------------------------------ | |
469 | ||
252b5132 RH |
470 | # The first rule in the file had better be this one. Don't put any above it. |
471 | # This lives here to allow makefile fragments to contain dependencies. | |
319cab08 | 472 | @default_target@: |
252b5132 | 473 | |
252b5132 | 474 | #### host and target specific makefile fragments come in here. |
a0da8069 NN |
475 | @target_makefile_frag@ |
476 | @alphaieee_frag@ | |
477 | @ospace_frag@ | |
478 | @host_makefile_frag@ | |
252b5132 RH |
479 | ### |
480 | ||
e90269c8 PB |
481 | # This is the list of directories that may be needed in RPATH_ENVVAR |
482 | # so that prorgams built for the target machine work. | |
483 | TARGET_LIB_PATH = $(TARGET_LIB_PATH_libstdc++-v3)$(TARGET_LIB_PATH_libmudflap)$(HOST_LIB_PATH_gcc) | |
484 | ||
485 | @if target-libstdc++-v3 | |
486 | TARGET_LIB_PATH_libstdc++-v3 = $$r/$(TARGET_SUBDIR)/libstdc++-v3/.libs: | |
487 | @endif target-libstdc++-v3 | |
488 | ||
489 | @if target-libmudflap | |
490 | TARGET_LIB_PATH_libmudflap = $$r/$(TARGET_SUBDIR)/libmudflap/.libs: | |
491 | @endif target-libmudflap | |
492 | ||
493 | ||
494 | ||
495 | # This is the list of directories that may be needed in RPATH_ENVVAR | |
496 | # so that programs built for the host machine work. | |
497 | HOST_LIB_PATH = $(HOST_LIB_PATH_bfd)$(HOST_LIB_PATH_opcodes) | |
498 | ||
499 | # Define HOST_LIB_PATH_gcc here, for the sake of TARGET_LIB_PATH, ouch | |
500 | @if gcc | |
501 | HOST_LIB_PATH_gcc = $$r/$(HOST_SUBDIR)/gcc:$$r/$(HOST_SUBDIR)/prev-gcc: | |
502 | @endif gcc | |
503 | ||
504 | ||
505 | @if bfd | |
506 | HOST_LIB_PATH_bfd = \ | |
507 | $$r/$(HOST_SUBDIR)/bfd/.:$$r/$(HOST_SUBDIR)/prev-bfd/.: | |
508 | @endif bfd | |
509 | ||
510 | @if opcodes | |
511 | HOST_LIB_PATH_opcodes = \ | |
512 | $$r/$(HOST_SUBDIR)/opcodes/.:$$r/$(HOST_SUBDIR)/prev-opcodes/.: | |
513 | @endif opcodes | |
514 | ||
515 | ||
252b5132 | 516 | # Flags to pass down to all sub-makes. |
252b5132 | 517 | BASE_FLAGS_TO_PASS = \ |
497f816e | 518 | "DESTDIR=$(DESTDIR)" \ |
252b5132 | 519 | "RPATH_ENVVAR=$(RPATH_ENVVAR)" \ |
252b5132 | 520 | "TARGET_SUBDIR=$(TARGET_SUBDIR)" \ |
252b5132 RH |
521 | "bindir=$(bindir)" \ |
522 | "datadir=$(datadir)" \ | |
523 | "exec_prefix=$(exec_prefix)" \ | |
524 | "includedir=$(includedir)" \ | |
525 | "infodir=$(infodir)" \ | |
526 | "libdir=$(libdir)" \ | |
527 | "libexecdir=$(libexecdir)" \ | |
528 | "lispdir=$(lispdir)" \ | |
529 | "localstatedir=$(localstatedir)" \ | |
530 | "mandir=$(mandir)" \ | |
531 | "oldincludedir=$(oldincludedir)" \ | |
532 | "prefix=$(prefix)" \ | |
533 | "sbindir=$(sbindir)" \ | |
534 | "sharedstatedir=$(sharedstatedir)" \ | |
535 | "sysconfdir=$(sysconfdir)" \ | |
536 | "tooldir=$(tooldir)" \ | |
ba73c63f | 537 | "build_tooldir=$(build_tooldir)" \ |
12f0bd74 NN |
538 | "target_alias=$(target_alias)" \ |
539 | "BISON=$(BISON)" \ | |
540 | "CC_FOR_BUILD=$(CC_FOR_BUILD)" \ | |
541 | "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \ | |
542 | "EXPECT=$(EXPECT)" \ | |
6a9cf61e | 543 | "FLEX=$(FLEX)" \ |
12f0bd74 NN |
544 | "INSTALL=$(INSTALL)" \ |
545 | "INSTALL_DATA=$(INSTALL_DATA)" \ | |
546 | "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \ | |
547 | "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \ | |
548 | "LEX=$(LEX)" \ | |
549 | "M4=$(M4)" \ | |
550 | "MAKE=$(MAKE)" \ | |
551 | "RUNTEST=$(RUNTEST)" \ | |
552 | "RUNTESTFLAGS=$(RUNTESTFLAGS)" \ | |
553 | "SHELL=$(SHELL)" \ | |
554 | "YACC=$(YACC)" \ | |
555 | "AR_FLAGS=$(AR_FLAGS)" \ | |
556 | "CFLAGS=$(CFLAGS)" \ | |
557 | "CXXFLAGS=$(CXXFLAGS)" \ | |
558 | "LDFLAGS=$(LDFLAGS)" \ | |
559 | "LIBCFLAGS=$(LIBCFLAGS)" \ | |
560 | "LIBCXXFLAGS=$(LIBCXXFLAGS)" \ | |
561 | "AR_FOR_TARGET=$(AR_FOR_TARGET)" \ | |
562 | "AS_FOR_TARGET=$(AS_FOR_TARGET)" \ | |
563 | "CC_FOR_TARGET=$(CC_FOR_TARGET)" \ | |
564 | "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \ | |
06bcb89d | 565 | "CPPFLAGS_FOR_TARGET=$(CPPFLAGS_FOR_TARGET)" \ |
12f0bd74 NN |
566 | "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \ |
567 | "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \ | |
568 | "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \ | |
569 | "GCJ_FOR_TARGET=$(GCJ_FOR_TARGET)" \ | |
4b1cb4fe | 570 | "GFORTRAN_FOR_TARGET=$(GFORTRAN_FOR_TARGET)" \ |
12f0bd74 NN |
571 | "LD_FOR_TARGET=$(LD_FOR_TARGET)" \ |
572 | "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \ | |
573 | "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \ | |
574 | "NM_FOR_TARGET=$(NM_FOR_TARGET)" \ | |
575 | "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \ | |
576 | "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \ | |
10ecffb9 | 577 | "CONFIG_SHELL=$(SHELL)" \ |
12f0bd74 | 578 | "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" |
252b5132 | 579 | |
dec0cb0c AO |
580 | # For any flags above that may contain shell code that varies from one |
581 | # target library to another. When doing recursive invocations of the | |
582 | # top-level Makefile, we don't want the outer make to evaluate them, | |
583 | # so we pass these variables down unchanged. They must not contain | |
584 | # single nor double quotes. | |
585 | RECURSE_FLAGS = \ | |
930314a4 NN |
586 | CXX_FOR_TARGET='$(CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \ |
587 | RAW_CXX_FOR_TARGET='$(RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \ | |
dec0cb0c | 588 | |
656fdd47 PB |
589 | RECURSE_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) |
590 | ||
252b5132 RH |
591 | # Flags to pass down to most sub-makes, in which we're building with |
592 | # the host environment. | |
252b5132 RH |
593 | EXTRA_HOST_FLAGS = \ |
594 | 'AR=$(AR)' \ | |
595 | 'AS=$(AS)' \ | |
596 | 'CC=$(CC)' \ | |
597 | 'CXX=$(CXX)' \ | |
598 | 'DLLTOOL=$(DLLTOOL)' \ | |
599 | 'LD=$(LD)' \ | |
600 | 'NM=$(NM)' \ | |
b9459e83 | 601 | 'RANLIB=$(RANLIB)' \ |
252b5132 RH |
602 | 'WINDRES=$(WINDRES)' |
603 | ||
604 | FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) | |
605 | ||
606 | # Flags that are concerned with the location of the X11 include files | |
607 | # and library files | |
608 | # | |
609 | # NOTE: until the top-level is getting the values via autoconf, it only | |
610 | # causes problems to have this top-level Makefile overriding the autoconf-set | |
611 | # values in child directories. Only variables that don't conflict with | |
612 | # autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now. | |
613 | # | |
614 | X11_FLAGS_TO_PASS = \ | |
615 | 'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \ | |
616 | 'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)' | |
617 | ||
618 | # Flags to pass down to makes which are built with the target environment. | |
619 | # The double $ decreases the length of the command line; the variables | |
620 | # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them. | |
252b5132 RH |
621 | EXTRA_TARGET_FLAGS = \ |
622 | 'AR=$$(AR_FOR_TARGET)' \ | |
623 | 'AS=$$(AS_FOR_TARGET)' \ | |
624 | 'CC=$$(CC_FOR_TARGET)' \ | |
625 | 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \ | |
626 | 'CXX=$$(CXX_FOR_TARGET)' \ | |
627 | 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \ | |
628 | 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \ | |
629 | 'LD=$$(LD_FOR_TARGET)' \ | |
630 | 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \ | |
631 | 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \ | |
632 | 'NM=$$(NM_FOR_TARGET)' \ | |
633 | 'RANLIB=$$(RANLIB_FOR_TARGET)' \ | |
634 | 'WINDRES=$$(WINDRES_FOR_TARGET)' | |
635 | ||
636 | TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) | |
637 | ||
638 | # Flags to pass down to gcc. gcc builds a library, libgcc.a, so it | |
639 | # unfortunately needs the native compiler and the target ar and | |
640 | # ranlib. | |
641 | # If any variables are added here, they must be added to do-*, below. | |
2a4cbe27 | 642 | # The BUILD_* variables are a special case, which are used for the gcc |
252b5132 RH |
643 | # cross-building scheme. |
644 | EXTRA_GCC_FLAGS = \ | |
27f15fdd DD |
645 | 'BUILD_PREFIX=$(BUILD_PREFIX)' \ |
646 | 'BUILD_PREFIX_1=$(BUILD_PREFIX_1)' \ | |
252b5132 | 647 | "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \ |
75205f78 | 648 | "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \ |
3dee29da NN |
649 | "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \ |
650 | "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \ | |
651 | "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \ | |
652 | "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \ | |
653 | "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \ | |
654 | "`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \ | |
655 | "`echo 'STAGE1_CFLAGS=$(STAGE1_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \ | |
656 | "`echo 'BOOT_CFLAGS=$(BOOT_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \ | |
657 | "`echo 'BOOT_ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" | |
252b5132 | 658 | |
f0b24077 | 659 | GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS) |
252b5132 | 660 | |
dd12c3a8 | 661 | .PHONY: configure-host |
b813574b | 662 | configure-host: \ |
dd12c3a8 NN |
663 | maybe-configure-ash \ |
664 | maybe-configure-autoconf \ | |
665 | maybe-configure-automake \ | |
666 | maybe-configure-bash \ | |
667 | maybe-configure-bfd \ | |
668 | maybe-configure-opcodes \ | |
669 | maybe-configure-binutils \ | |
670 | maybe-configure-bison \ | |
671 | maybe-configure-byacc \ | |
672 | maybe-configure-bzip2 \ | |
673 | maybe-configure-dejagnu \ | |
674 | maybe-configure-diff \ | |
675 | maybe-configure-dosutils \ | |
676 | maybe-configure-etc \ | |
677 | maybe-configure-fastjar \ | |
678 | maybe-configure-fileutils \ | |
679 | maybe-configure-findutils \ | |
680 | maybe-configure-find \ | |
d3ed111c | 681 | maybe-configure-fixincludes \ |
dd12c3a8 NN |
682 | maybe-configure-flex \ |
683 | maybe-configure-gas \ | |
b813574b | 684 | maybe-configure-gcc \ |
dd12c3a8 NN |
685 | maybe-configure-gawk \ |
686 | maybe-configure-gettext \ | |
687 | maybe-configure-gnuserv \ | |
688 | maybe-configure-gprof \ | |
689 | maybe-configure-gzip \ | |
690 | maybe-configure-hello \ | |
691 | maybe-configure-indent \ | |
692 | maybe-configure-intl \ | |
693 | maybe-configure-tcl \ | |
694 | maybe-configure-itcl \ | |
695 | maybe-configure-ld \ | |
04cf1b77 | 696 | maybe-configure-libcpp \ |
dd12c3a8 NN |
697 | maybe-configure-libgui \ |
698 | maybe-configure-libiberty \ | |
699 | maybe-configure-libtool \ | |
700 | maybe-configure-m4 \ | |
701 | maybe-configure-make \ | |
702 | maybe-configure-mmalloc \ | |
703 | maybe-configure-patch \ | |
704 | maybe-configure-perl \ | |
705 | maybe-configure-prms \ | |
706 | maybe-configure-rcs \ | |
707 | maybe-configure-readline \ | |
708 | maybe-configure-release \ | |
709 | maybe-configure-recode \ | |
710 | maybe-configure-sed \ | |
711 | maybe-configure-send-pr \ | |
712 | maybe-configure-shellutils \ | |
713 | maybe-configure-sid \ | |
714 | maybe-configure-sim \ | |
715 | maybe-configure-tar \ | |
716 | maybe-configure-texinfo \ | |
717 | maybe-configure-textutils \ | |
718 | maybe-configure-time \ | |
719 | maybe-configure-uudecode \ | |
720 | maybe-configure-wdiff \ | |
721 | maybe-configure-zip \ | |
722 | maybe-configure-zlib \ | |
723 | maybe-configure-gdb \ | |
724 | maybe-configure-expect \ | |
725 | maybe-configure-guile \ | |
726 | maybe-configure-tk \ | |
dd12c3a8 | 727 | maybe-configure-libtermcap \ |
b00612cc PB |
728 | maybe-configure-utils \ |
729 | maybe-configure-gnattools | |
dd12c3a8 NN |
730 | .PHONY: configure-target |
731 | configure-target: \ | |
732 | maybe-configure-target-libstdc++-v3 \ | |
4b1cb4fe | 733 | maybe-configure-target-libmudflap \ |
dd12c3a8 | 734 | maybe-configure-target-newlib \ |
4b1cb4fe | 735 | maybe-configure-target-libgfortran \ |
dd12c3a8 NN |
736 | maybe-configure-target-libobjc \ |
737 | maybe-configure-target-libtermcap \ | |
738 | maybe-configure-target-winsup \ | |
739 | maybe-configure-target-libgloss \ | |
740 | maybe-configure-target-libiberty \ | |
741 | maybe-configure-target-gperf \ | |
742 | maybe-configure-target-examples \ | |
743 | maybe-configure-target-libffi \ | |
744 | maybe-configure-target-libjava \ | |
745 | maybe-configure-target-zlib \ | |
746 | maybe-configure-target-boehm-gc \ | |
747 | maybe-configure-target-qthreads \ | |
a2592b1b DD |
748 | maybe-configure-target-rda \ |
749 | maybe-configure-target-libada | |
252b5132 | 750 | |
319cab08 PB |
751 | # The target built for a native non-bootstrap build. |
752 | .PHONY: all | |
72b2455a | 753 | all: unstage all-host all-target stage |
6a9cf61e PB |
754 | |
755 | .PHONY: all-build | |
756 | all-build: \ | |
757 | maybe-all-build-libiberty \ | |
6a9cf61e PB |
758 | maybe-all-build-bison \ |
759 | maybe-all-build-byacc \ | |
760 | maybe-all-build-flex \ | |
761 | maybe-all-build-m4 \ | |
ee025550 PB |
762 | maybe-all-build-texinfo \ |
763 | maybe-all-build-fixincludes | |
dd12c3a8 | 764 | .PHONY: all-host |
b813574b | 765 | all-host: \ |
dd12c3a8 NN |
766 | maybe-all-ash \ |
767 | maybe-all-autoconf \ | |
768 | maybe-all-automake \ | |
769 | maybe-all-bash \ | |
770 | maybe-all-bfd \ | |
771 | maybe-all-opcodes \ | |
772 | maybe-all-binutils \ | |
773 | maybe-all-bison \ | |
774 | maybe-all-byacc \ | |
775 | maybe-all-bzip2 \ | |
776 | maybe-all-dejagnu \ | |
777 | maybe-all-diff \ | |
778 | maybe-all-dosutils \ | |
779 | maybe-all-etc \ | |
780 | maybe-all-fastjar \ | |
781 | maybe-all-fileutils \ | |
782 | maybe-all-findutils \ | |
783 | maybe-all-find \ | |
d3ed111c | 784 | maybe-all-fixincludes \ |
dd12c3a8 NN |
785 | maybe-all-flex \ |
786 | maybe-all-gas \ | |
b813574b | 787 | maybe-all-gcc \ |
dd12c3a8 NN |
788 | maybe-all-gawk \ |
789 | maybe-all-gettext \ | |
790 | maybe-all-gnuserv \ | |
791 | maybe-all-gprof \ | |
792 | maybe-all-gzip \ | |
793 | maybe-all-hello \ | |
794 | maybe-all-indent \ | |
795 | maybe-all-intl \ | |
796 | maybe-all-tcl \ | |
797 | maybe-all-itcl \ | |
798 | maybe-all-ld \ | |
04cf1b77 | 799 | maybe-all-libcpp \ |
dd12c3a8 NN |
800 | maybe-all-libgui \ |
801 | maybe-all-libiberty \ | |
802 | maybe-all-libtool \ | |
803 | maybe-all-m4 \ | |
804 | maybe-all-make \ | |
805 | maybe-all-mmalloc \ | |
806 | maybe-all-patch \ | |
807 | maybe-all-perl \ | |
808 | maybe-all-prms \ | |
809 | maybe-all-rcs \ | |
810 | maybe-all-readline \ | |
811 | maybe-all-release \ | |
812 | maybe-all-recode \ | |
813 | maybe-all-sed \ | |
814 | maybe-all-send-pr \ | |
815 | maybe-all-shellutils \ | |
816 | maybe-all-sid \ | |
817 | maybe-all-sim \ | |
818 | maybe-all-tar \ | |
819 | maybe-all-texinfo \ | |
820 | maybe-all-textutils \ | |
821 | maybe-all-time \ | |
822 | maybe-all-uudecode \ | |
823 | maybe-all-wdiff \ | |
824 | maybe-all-zip \ | |
825 | maybe-all-zlib \ | |
826 | maybe-all-gdb \ | |
827 | maybe-all-expect \ | |
828 | maybe-all-guile \ | |
829 | maybe-all-tk \ | |
dd12c3a8 | 830 | maybe-all-libtermcap \ |
b00612cc PB |
831 | maybe-all-utils \ |
832 | maybe-all-gnattools | |
dd12c3a8 NN |
833 | .PHONY: all-target |
834 | all-target: \ | |
835 | maybe-all-target-libstdc++-v3 \ | |
4b1cb4fe | 836 | maybe-all-target-libmudflap \ |
dd12c3a8 | 837 | maybe-all-target-newlib \ |
4b1cb4fe | 838 | maybe-all-target-libgfortran \ |
dd12c3a8 NN |
839 | maybe-all-target-libobjc \ |
840 | maybe-all-target-libtermcap \ | |
841 | maybe-all-target-winsup \ | |
842 | maybe-all-target-libgloss \ | |
843 | maybe-all-target-libiberty \ | |
844 | maybe-all-target-gperf \ | |
845 | maybe-all-target-examples \ | |
846 | maybe-all-target-libffi \ | |
847 | maybe-all-target-libjava \ | |
848 | maybe-all-target-zlib \ | |
849 | maybe-all-target-boehm-gc \ | |
850 | maybe-all-target-qthreads \ | |
a2592b1b DD |
851 | maybe-all-target-rda \ |
852 | maybe-all-target-libada | |
252b5132 RH |
853 | |
854 | # Do a target for all the subdirectories. A ``make do-X'' will do a | |
855 | # ``make X'' in all subdirectories (because, in general, there is a | |
856 | # dependency (below) of X upon do-X, a ``make X'' will also do this, | |
857 | # but it may do additional work as well). | |
e393202e | 858 | |
2a4cbe27 | 859 | .PHONY: do-info |
b813574b | 860 | do-info: unstage info-host info-target stage |
e393202e | 861 | |
2a4cbe27 | 862 | .PHONY: info-host |
b813574b | 863 | info-host: \ |
2a4cbe27 NN |
864 | maybe-info-ash \ |
865 | maybe-info-autoconf \ | |
866 | maybe-info-automake \ | |
867 | maybe-info-bash \ | |
868 | maybe-info-bfd \ | |
869 | maybe-info-opcodes \ | |
870 | maybe-info-binutils \ | |
871 | maybe-info-bison \ | |
872 | maybe-info-byacc \ | |
873 | maybe-info-bzip2 \ | |
874 | maybe-info-dejagnu \ | |
875 | maybe-info-diff \ | |
876 | maybe-info-dosutils \ | |
877 | maybe-info-etc \ | |
878 | maybe-info-fastjar \ | |
879 | maybe-info-fileutils \ | |
880 | maybe-info-findutils \ | |
881 | maybe-info-find \ | |
d3ed111c | 882 | maybe-info-fixincludes \ |
2a4cbe27 NN |
883 | maybe-info-flex \ |
884 | maybe-info-gas \ | |
b813574b | 885 | maybe-info-gcc \ |
2a4cbe27 NN |
886 | maybe-info-gawk \ |
887 | maybe-info-gettext \ | |
888 | maybe-info-gnuserv \ | |
889 | maybe-info-gprof \ | |
890 | maybe-info-gzip \ | |
891 | maybe-info-hello \ | |
892 | maybe-info-indent \ | |
893 | maybe-info-intl \ | |
894 | maybe-info-tcl \ | |
895 | maybe-info-itcl \ | |
896 | maybe-info-ld \ | |
04cf1b77 | 897 | maybe-info-libcpp \ |
2a4cbe27 NN |
898 | maybe-info-libgui \ |
899 | maybe-info-libiberty \ | |
900 | maybe-info-libtool \ | |
901 | maybe-info-m4 \ | |
902 | maybe-info-make \ | |
903 | maybe-info-mmalloc \ | |
904 | maybe-info-patch \ | |
905 | maybe-info-perl \ | |
906 | maybe-info-prms \ | |
907 | maybe-info-rcs \ | |
908 | maybe-info-readline \ | |
909 | maybe-info-release \ | |
910 | maybe-info-recode \ | |
911 | maybe-info-sed \ | |
912 | maybe-info-send-pr \ | |
913 | maybe-info-shellutils \ | |
914 | maybe-info-sid \ | |
915 | maybe-info-sim \ | |
916 | maybe-info-tar \ | |
917 | maybe-info-texinfo \ | |
918 | maybe-info-textutils \ | |
919 | maybe-info-time \ | |
920 | maybe-info-uudecode \ | |
921 | maybe-info-wdiff \ | |
922 | maybe-info-zip \ | |
923 | maybe-info-zlib \ | |
924 | maybe-info-gdb \ | |
925 | maybe-info-expect \ | |
926 | maybe-info-guile \ | |
927 | maybe-info-tk \ | |
2a4cbe27 | 928 | maybe-info-libtermcap \ |
b00612cc PB |
929 | maybe-info-utils \ |
930 | maybe-info-gnattools | |
252b5132 | 931 | |
2a4cbe27 NN |
932 | .PHONY: info-target |
933 | info-target: \ | |
934 | maybe-info-target-libstdc++-v3 \ | |
4b1cb4fe | 935 | maybe-info-target-libmudflap \ |
2a4cbe27 | 936 | maybe-info-target-newlib \ |
4b1cb4fe | 937 | maybe-info-target-libgfortran \ |
2a4cbe27 NN |
938 | maybe-info-target-libobjc \ |
939 | maybe-info-target-libtermcap \ | |
940 | maybe-info-target-winsup \ | |
941 | maybe-info-target-libgloss \ | |
942 | maybe-info-target-libiberty \ | |
943 | maybe-info-target-gperf \ | |
944 | maybe-info-target-examples \ | |
945 | maybe-info-target-libffi \ | |
946 | maybe-info-target-libjava \ | |
947 | maybe-info-target-zlib \ | |
948 | maybe-info-target-boehm-gc \ | |
949 | maybe-info-target-qthreads \ | |
a2592b1b DD |
950 | maybe-info-target-rda \ |
951 | maybe-info-target-libada | |
252b5132 | 952 | |
4fa63067 | 953 | .PHONY: do-dvi |
b813574b | 954 | do-dvi: unstage dvi-host dvi-target stage |
2a4cbe27 | 955 | |
4fa63067 | 956 | .PHONY: dvi-host |
b813574b | 957 | dvi-host: \ |
4fa63067 NN |
958 | maybe-dvi-ash \ |
959 | maybe-dvi-autoconf \ | |
960 | maybe-dvi-automake \ | |
961 | maybe-dvi-bash \ | |
962 | maybe-dvi-bfd \ | |
963 | maybe-dvi-opcodes \ | |
964 | maybe-dvi-binutils \ | |
965 | maybe-dvi-bison \ | |
966 | maybe-dvi-byacc \ | |
967 | maybe-dvi-bzip2 \ | |
968 | maybe-dvi-dejagnu \ | |
969 | maybe-dvi-diff \ | |
970 | maybe-dvi-dosutils \ | |
971 | maybe-dvi-etc \ | |
972 | maybe-dvi-fastjar \ | |
973 | maybe-dvi-fileutils \ | |
974 | maybe-dvi-findutils \ | |
975 | maybe-dvi-find \ | |
d3ed111c | 976 | maybe-dvi-fixincludes \ |
4fa63067 NN |
977 | maybe-dvi-flex \ |
978 | maybe-dvi-gas \ | |
b813574b | 979 | maybe-dvi-gcc \ |
4fa63067 NN |
980 | maybe-dvi-gawk \ |
981 | maybe-dvi-gettext \ | |
982 | maybe-dvi-gnuserv \ | |
983 | maybe-dvi-gprof \ | |
984 | maybe-dvi-gzip \ | |
985 | maybe-dvi-hello \ | |
986 | maybe-dvi-indent \ | |
987 | maybe-dvi-intl \ | |
988 | maybe-dvi-tcl \ | |
989 | maybe-dvi-itcl \ | |
990 | maybe-dvi-ld \ | |
04cf1b77 | 991 | maybe-dvi-libcpp \ |
4fa63067 NN |
992 | maybe-dvi-libgui \ |
993 | maybe-dvi-libiberty \ | |
994 | maybe-dvi-libtool \ | |
995 | maybe-dvi-m4 \ | |
996 | maybe-dvi-make \ | |
997 | maybe-dvi-mmalloc \ | |
998 | maybe-dvi-patch \ | |
999 | maybe-dvi-perl \ | |
1000 | maybe-dvi-prms \ | |
1001 | maybe-dvi-rcs \ | |
1002 | maybe-dvi-readline \ | |
1003 | maybe-dvi-release \ | |
1004 | maybe-dvi-recode \ | |
1005 | maybe-dvi-sed \ | |
1006 | maybe-dvi-send-pr \ | |
1007 | maybe-dvi-shellutils \ | |
1008 | maybe-dvi-sid \ | |
1009 | maybe-dvi-sim \ | |
1010 | maybe-dvi-tar \ | |
1011 | maybe-dvi-texinfo \ | |
1012 | maybe-dvi-textutils \ | |
1013 | maybe-dvi-time \ | |
1014 | maybe-dvi-uudecode \ | |
1015 | maybe-dvi-wdiff \ | |
1016 | maybe-dvi-zip \ | |
1017 | maybe-dvi-zlib \ | |
1018 | maybe-dvi-gdb \ | |
1019 | maybe-dvi-expect \ | |
1020 | maybe-dvi-guile \ | |
1021 | maybe-dvi-tk \ | |
4fa63067 | 1022 | maybe-dvi-libtermcap \ |
b00612cc PB |
1023 | maybe-dvi-utils \ |
1024 | maybe-dvi-gnattools | |
2a4cbe27 | 1025 | |
4fa63067 NN |
1026 | .PHONY: dvi-target |
1027 | dvi-target: \ | |
1028 | maybe-dvi-target-libstdc++-v3 \ | |
4b1cb4fe | 1029 | maybe-dvi-target-libmudflap \ |
4fa63067 | 1030 | maybe-dvi-target-newlib \ |
4b1cb4fe | 1031 | maybe-dvi-target-libgfortran \ |
4fa63067 NN |
1032 | maybe-dvi-target-libobjc \ |
1033 | maybe-dvi-target-libtermcap \ | |
1034 | maybe-dvi-target-winsup \ | |
1035 | maybe-dvi-target-libgloss \ | |
1036 | maybe-dvi-target-libiberty \ | |
1037 | maybe-dvi-target-gperf \ | |
1038 | maybe-dvi-target-examples \ | |
1039 | maybe-dvi-target-libffi \ | |
1040 | maybe-dvi-target-libjava \ | |
1041 | maybe-dvi-target-zlib \ | |
1042 | maybe-dvi-target-boehm-gc \ | |
1043 | maybe-dvi-target-qthreads \ | |
1044 | maybe-dvi-target-rda \ | |
1045 | maybe-dvi-target-libada | |
2a4cbe27 | 1046 | |
6d389afc MS |
1047 | .PHONY: do-html |
1048 | do-html: unstage html-host html-target stage | |
1049 | ||
1050 | .PHONY: html-host | |
1051 | html-host: \ | |
1052 | maybe-html-ash \ | |
1053 | maybe-html-autoconf \ | |
1054 | maybe-html-automake \ | |
1055 | maybe-html-bash \ | |
1056 | maybe-html-bfd \ | |
1057 | maybe-html-opcodes \ | |
1058 | maybe-html-binutils \ | |
1059 | maybe-html-bison \ | |
1060 | maybe-html-byacc \ | |
1061 | maybe-html-bzip2 \ | |
1062 | maybe-html-dejagnu \ | |
1063 | maybe-html-diff \ | |
1064 | maybe-html-dosutils \ | |
1065 | maybe-html-etc \ | |
1066 | maybe-html-fastjar \ | |
1067 | maybe-html-fileutils \ | |
1068 | maybe-html-findutils \ | |
1069 | maybe-html-find \ | |
1070 | maybe-html-fixincludes \ | |
1071 | maybe-html-flex \ | |
1072 | maybe-html-gas \ | |
1073 | maybe-html-gcc \ | |
1074 | maybe-html-gawk \ | |
1075 | maybe-html-gettext \ | |
1076 | maybe-html-gnuserv \ | |
1077 | maybe-html-gprof \ | |
1078 | maybe-html-gzip \ | |
1079 | maybe-html-hello \ | |
1080 | maybe-html-indent \ | |
1081 | maybe-html-intl \ | |
1082 | maybe-html-tcl \ | |
1083 | maybe-html-itcl \ | |
1084 | maybe-html-ld \ | |
1085 | maybe-html-libcpp \ | |
1086 | maybe-html-libgui \ | |
1087 | maybe-html-libiberty \ | |
1088 | maybe-html-libtool \ | |
1089 | maybe-html-m4 \ | |
1090 | maybe-html-make \ | |
1091 | maybe-html-mmalloc \ | |
1092 | maybe-html-patch \ | |
1093 | maybe-html-perl \ | |
1094 | maybe-html-prms \ | |
1095 | maybe-html-rcs \ | |
1096 | maybe-html-readline \ | |
1097 | maybe-html-release \ | |
1098 | maybe-html-recode \ | |
1099 | maybe-html-sed \ | |
1100 | maybe-html-send-pr \ | |
1101 | maybe-html-shellutils \ | |
1102 | maybe-html-sid \ | |
1103 | maybe-html-sim \ | |
1104 | maybe-html-tar \ | |
1105 | maybe-html-texinfo \ | |
1106 | maybe-html-textutils \ | |
1107 | maybe-html-time \ | |
1108 | maybe-html-uudecode \ | |
1109 | maybe-html-wdiff \ | |
1110 | maybe-html-zip \ | |
1111 | maybe-html-zlib \ | |
1112 | maybe-html-gdb \ | |
1113 | maybe-html-expect \ | |
1114 | maybe-html-guile \ | |
1115 | maybe-html-tk \ | |
1116 | maybe-html-libtermcap \ | |
b00612cc PB |
1117 | maybe-html-utils \ |
1118 | maybe-html-gnattools | |
6d389afc MS |
1119 | |
1120 | .PHONY: html-target | |
1121 | html-target: \ | |
1122 | maybe-html-target-libstdc++-v3 \ | |
1123 | maybe-html-target-libmudflap \ | |
1124 | maybe-html-target-newlib \ | |
1125 | maybe-html-target-libgfortran \ | |
1126 | maybe-html-target-libobjc \ | |
1127 | maybe-html-target-libtermcap \ | |
1128 | maybe-html-target-winsup \ | |
1129 | maybe-html-target-libgloss \ | |
1130 | maybe-html-target-libiberty \ | |
1131 | maybe-html-target-gperf \ | |
1132 | maybe-html-target-examples \ | |
1133 | maybe-html-target-libffi \ | |
1134 | maybe-html-target-libjava \ | |
1135 | maybe-html-target-zlib \ | |
1136 | maybe-html-target-boehm-gc \ | |
1137 | maybe-html-target-qthreads \ | |
1138 | maybe-html-target-rda \ | |
1139 | maybe-html-target-libada | |
1140 | ||
4fa63067 | 1141 | .PHONY: do-TAGS |
b813574b | 1142 | do-TAGS: unstage TAGS-host TAGS-target stage |
2a4cbe27 | 1143 | |
4fa63067 | 1144 | .PHONY: TAGS-host |
b813574b | 1145 | TAGS-host: \ |
4fa63067 NN |
1146 | maybe-TAGS-ash \ |
1147 | maybe-TAGS-autoconf \ | |
1148 | maybe-TAGS-automake \ | |
1149 | maybe-TAGS-bash \ | |
1150 | maybe-TAGS-bfd \ | |
1151 | maybe-TAGS-opcodes \ | |
1152 | maybe-TAGS-binutils \ | |
1153 | maybe-TAGS-bison \ | |
1154 | maybe-TAGS-byacc \ | |
1155 | maybe-TAGS-bzip2 \ | |
1156 | maybe-TAGS-dejagnu \ | |
1157 | maybe-TAGS-diff \ | |
1158 | maybe-TAGS-dosutils \ | |
1159 | maybe-TAGS-etc \ | |
1160 | maybe-TAGS-fastjar \ | |
1161 | maybe-TAGS-fileutils \ | |
1162 | maybe-TAGS-findutils \ | |
1163 | maybe-TAGS-find \ | |
d3ed111c | 1164 | maybe-TAGS-fixincludes \ |
4fa63067 NN |
1165 | maybe-TAGS-flex \ |
1166 | maybe-TAGS-gas \ | |
b813574b | 1167 | maybe-TAGS-gcc \ |
4fa63067 NN |
1168 | maybe-TAGS-gawk \ |
1169 | maybe-TAGS-gettext \ | |
1170 | maybe-TAGS-gnuserv \ | |
1171 | maybe-TAGS-gprof \ | |
1172 | maybe-TAGS-gzip \ | |
1173 | maybe-TAGS-hello \ | |
1174 | maybe-TAGS-indent \ | |
1175 | maybe-TAGS-intl \ | |
1176 | maybe-TAGS-tcl \ | |
1177 | maybe-TAGS-itcl \ | |
1178 | maybe-TAGS-ld \ | |
04cf1b77 | 1179 | maybe-TAGS-libcpp \ |
4fa63067 NN |
1180 | maybe-TAGS-libgui \ |
1181 | maybe-TAGS-libiberty \ | |
1182 | maybe-TAGS-libtool \ | |
1183 | maybe-TAGS-m4 \ | |
1184 | maybe-TAGS-make \ | |
1185 | maybe-TAGS-mmalloc \ | |
1186 | maybe-TAGS-patch \ | |
1187 | maybe-TAGS-perl \ | |
1188 | maybe-TAGS-prms \ | |
1189 | maybe-TAGS-rcs \ | |
1190 | maybe-TAGS-readline \ | |
1191 | maybe-TAGS-release \ | |
1192 | maybe-TAGS-recode \ | |
1193 | maybe-TAGS-sed \ | |
1194 | maybe-TAGS-send-pr \ | |
1195 | maybe-TAGS-shellutils \ | |
1196 | maybe-TAGS-sid \ | |
1197 | maybe-TAGS-sim \ | |
1198 | maybe-TAGS-tar \ | |
1199 | maybe-TAGS-texinfo \ | |
1200 | maybe-TAGS-textutils \ | |
1201 | maybe-TAGS-time \ | |
1202 | maybe-TAGS-uudecode \ | |
1203 | maybe-TAGS-wdiff \ | |
1204 | maybe-TAGS-zip \ | |
1205 | maybe-TAGS-zlib \ | |
1206 | maybe-TAGS-gdb \ | |
1207 | maybe-TAGS-expect \ | |
1208 | maybe-TAGS-guile \ | |
1209 | maybe-TAGS-tk \ | |
4fa63067 | 1210 | maybe-TAGS-libtermcap \ |
b00612cc PB |
1211 | maybe-TAGS-utils \ |
1212 | maybe-TAGS-gnattools | |
2a4cbe27 | 1213 | |
4fa63067 NN |
1214 | .PHONY: TAGS-target |
1215 | TAGS-target: \ | |
1216 | maybe-TAGS-target-libstdc++-v3 \ | |
4b1cb4fe | 1217 | maybe-TAGS-target-libmudflap \ |
4fa63067 | 1218 | maybe-TAGS-target-newlib \ |
4b1cb4fe | 1219 | maybe-TAGS-target-libgfortran \ |
4fa63067 NN |
1220 | maybe-TAGS-target-libobjc \ |
1221 | maybe-TAGS-target-libtermcap \ | |
1222 | maybe-TAGS-target-winsup \ | |
1223 | maybe-TAGS-target-libgloss \ | |
1224 | maybe-TAGS-target-libiberty \ | |
1225 | maybe-TAGS-target-gperf \ | |
1226 | maybe-TAGS-target-examples \ | |
1227 | maybe-TAGS-target-libffi \ | |
1228 | maybe-TAGS-target-libjava \ | |
1229 | maybe-TAGS-target-zlib \ | |
1230 | maybe-TAGS-target-boehm-gc \ | |
1231 | maybe-TAGS-target-qthreads \ | |
1232 | maybe-TAGS-target-rda \ | |
1233 | maybe-TAGS-target-libada | |
a2592b1b | 1234 | |
4fa63067 | 1235 | .PHONY: do-install-info |
b813574b | 1236 | do-install-info: unstage install-info-host install-info-target stage |
a2592b1b | 1237 | |
4fa63067 | 1238 | .PHONY: install-info-host |
b813574b | 1239 | install-info-host: \ |
4fa63067 NN |
1240 | maybe-install-info-ash \ |
1241 | maybe-install-info-autoconf \ | |
1242 | maybe-install-info-automake \ | |
1243 | maybe-install-info-bash \ | |
1244 | maybe-install-info-bfd \ | |
1245 | maybe-install-info-opcodes \ | |
1246 | maybe-install-info-binutils \ | |
1247 | maybe-install-info-bison \ | |
1248 | maybe-install-info-byacc \ | |
1249 | maybe-install-info-bzip2 \ | |
1250 | maybe-install-info-dejagnu \ | |
1251 | maybe-install-info-diff \ | |
1252 | maybe-install-info-dosutils \ | |
1253 | maybe-install-info-etc \ | |
1254 | maybe-install-info-fastjar \ | |
1255 | maybe-install-info-fileutils \ | |
1256 | maybe-install-info-findutils \ | |
1257 | maybe-install-info-find \ | |
d3ed111c | 1258 | maybe-install-info-fixincludes \ |
4fa63067 NN |
1259 | maybe-install-info-flex \ |
1260 | maybe-install-info-gas \ | |
b813574b | 1261 | maybe-install-info-gcc \ |
4fa63067 NN |
1262 | maybe-install-info-gawk \ |
1263 | maybe-install-info-gettext \ | |
1264 | maybe-install-info-gnuserv \ | |
1265 | maybe-install-info-gprof \ | |
1266 | maybe-install-info-gzip \ | |
1267 | maybe-install-info-hello \ | |
1268 | maybe-install-info-indent \ | |
1269 | maybe-install-info-intl \ | |
1270 | maybe-install-info-tcl \ | |
1271 | maybe-install-info-itcl \ | |
1272 | maybe-install-info-ld \ | |
04cf1b77 | 1273 | maybe-install-info-libcpp \ |
4fa63067 NN |
1274 | maybe-install-info-libgui \ |
1275 | maybe-install-info-libiberty \ | |
1276 | maybe-install-info-libtool \ | |
1277 | maybe-install-info-m4 \ | |
1278 | maybe-install-info-make \ | |
1279 | maybe-install-info-mmalloc \ | |
1280 | maybe-install-info-patch \ | |
1281 | maybe-install-info-perl \ | |
1282 | maybe-install-info-prms \ | |
1283 | maybe-install-info-rcs \ | |
1284 | maybe-install-info-readline \ | |
1285 | maybe-install-info-release \ | |
1286 | maybe-install-info-recode \ | |
1287 | maybe-install-info-sed \ | |
1288 | maybe-install-info-send-pr \ | |
1289 | maybe-install-info-shellutils \ | |
1290 | maybe-install-info-sid \ | |
1291 | maybe-install-info-sim \ | |
1292 | maybe-install-info-tar \ | |
1293 | maybe-install-info-texinfo \ | |
1294 | maybe-install-info-textutils \ | |
1295 | maybe-install-info-time \ | |
1296 | maybe-install-info-uudecode \ | |
1297 | maybe-install-info-wdiff \ | |
1298 | maybe-install-info-zip \ | |
1299 | maybe-install-info-zlib \ | |
1300 | maybe-install-info-gdb \ | |
1301 | maybe-install-info-expect \ | |
1302 | maybe-install-info-guile \ | |
1303 | maybe-install-info-tk \ | |
4fa63067 | 1304 | maybe-install-info-libtermcap \ |
b00612cc PB |
1305 | maybe-install-info-utils \ |
1306 | maybe-install-info-gnattools | |
a2592b1b | 1307 | |
4fa63067 NN |
1308 | .PHONY: install-info-target |
1309 | install-info-target: \ | |
1310 | maybe-install-info-target-libstdc++-v3 \ | |
4b1cb4fe | 1311 | maybe-install-info-target-libmudflap \ |
4fa63067 | 1312 | maybe-install-info-target-newlib \ |
4b1cb4fe | 1313 | maybe-install-info-target-libgfortran \ |
4fa63067 NN |
1314 | maybe-install-info-target-libobjc \ |
1315 | maybe-install-info-target-libtermcap \ | |
1316 | maybe-install-info-target-winsup \ | |
1317 | maybe-install-info-target-libgloss \ | |
1318 | maybe-install-info-target-libiberty \ | |
1319 | maybe-install-info-target-gperf \ | |
1320 | maybe-install-info-target-examples \ | |
1321 | maybe-install-info-target-libffi \ | |
1322 | maybe-install-info-target-libjava \ | |
1323 | maybe-install-info-target-zlib \ | |
1324 | maybe-install-info-target-boehm-gc \ | |
1325 | maybe-install-info-target-qthreads \ | |
1326 | maybe-install-info-target-rda \ | |
1327 | maybe-install-info-target-libada | |
2a4cbe27 NN |
1328 | |
1329 | .PHONY: do-installcheck | |
b813574b | 1330 | do-installcheck: unstage installcheck-host installcheck-target stage |
2a4cbe27 NN |
1331 | |
1332 | .PHONY: installcheck-host | |
b813574b | 1333 | installcheck-host: \ |
2a4cbe27 NN |
1334 | maybe-installcheck-ash \ |
1335 | maybe-installcheck-autoconf \ | |
1336 | maybe-installcheck-automake \ | |
1337 | maybe-installcheck-bash \ | |
1338 | maybe-installcheck-bfd \ | |
1339 | maybe-installcheck-opcodes \ | |
1340 | maybe-installcheck-binutils \ | |
1341 | maybe-installcheck-bison \ | |
1342 | maybe-installcheck-byacc \ | |
1343 | maybe-installcheck-bzip2 \ | |
1344 | maybe-installcheck-dejagnu \ | |
1345 | maybe-installcheck-diff \ | |
1346 | maybe-installcheck-dosutils \ | |
1347 | maybe-installcheck-etc \ | |
1348 | maybe-installcheck-fastjar \ | |
1349 | maybe-installcheck-fileutils \ | |
1350 | maybe-installcheck-findutils \ | |
1351 | maybe-installcheck-find \ | |
d3ed111c | 1352 | maybe-installcheck-fixincludes \ |
2a4cbe27 NN |
1353 | maybe-installcheck-flex \ |
1354 | maybe-installcheck-gas \ | |
b813574b | 1355 | maybe-installcheck-gcc \ |
2a4cbe27 NN |
1356 | maybe-installcheck-gawk \ |
1357 | maybe-installcheck-gettext \ | |
1358 | maybe-installcheck-gnuserv \ | |
1359 | maybe-installcheck-gprof \ | |
1360 | maybe-installcheck-gzip \ | |
1361 | maybe-installcheck-hello \ | |
1362 | maybe-installcheck-indent \ | |
1363 | maybe-installcheck-intl \ | |
1364 | maybe-installcheck-tcl \ | |
1365 | maybe-installcheck-itcl \ | |
1366 | maybe-installcheck-ld \ | |
04cf1b77 | 1367 | maybe-installcheck-libcpp \ |
2a4cbe27 NN |
1368 | maybe-installcheck-libgui \ |
1369 | maybe-installcheck-libiberty \ | |
1370 | maybe-installcheck-libtool \ | |
1371 | maybe-installcheck-m4 \ | |
1372 | maybe-installcheck-make \ | |
1373 | maybe-installcheck-mmalloc \ | |
1374 | maybe-installcheck-patch \ | |
1375 | maybe-installcheck-perl \ | |
1376 | maybe-installcheck-prms \ | |
1377 | maybe-installcheck-rcs \ | |
1378 | maybe-installcheck-readline \ | |
1379 | maybe-installcheck-release \ | |
1380 | maybe-installcheck-recode \ | |
1381 | maybe-installcheck-sed \ | |
1382 | maybe-installcheck-send-pr \ | |
1383 | maybe-installcheck-shellutils \ | |
1384 | maybe-installcheck-sid \ | |
1385 | maybe-installcheck-sim \ | |
1386 | maybe-installcheck-tar \ | |
1387 | maybe-installcheck-texinfo \ | |
1388 | maybe-installcheck-textutils \ | |
1389 | maybe-installcheck-time \ | |
1390 | maybe-installcheck-uudecode \ | |
1391 | maybe-installcheck-wdiff \ | |
1392 | maybe-installcheck-zip \ | |
1393 | maybe-installcheck-zlib \ | |
1394 | maybe-installcheck-gdb \ | |
1395 | maybe-installcheck-expect \ | |
1396 | maybe-installcheck-guile \ | |
1397 | maybe-installcheck-tk \ | |
2a4cbe27 | 1398 | maybe-installcheck-libtermcap \ |
b00612cc PB |
1399 | maybe-installcheck-utils \ |
1400 | maybe-installcheck-gnattools | |
2a4cbe27 NN |
1401 | |
1402 | .PHONY: installcheck-target | |
1403 | installcheck-target: \ | |
1404 | maybe-installcheck-target-libstdc++-v3 \ | |
4b1cb4fe | 1405 | maybe-installcheck-target-libmudflap \ |
2a4cbe27 | 1406 | maybe-installcheck-target-newlib \ |
4b1cb4fe | 1407 | maybe-installcheck-target-libgfortran \ |
2a4cbe27 NN |
1408 | maybe-installcheck-target-libobjc \ |
1409 | maybe-installcheck-target-libtermcap \ | |
1410 | maybe-installcheck-target-winsup \ | |
1411 | maybe-installcheck-target-libgloss \ | |
1412 | maybe-installcheck-target-libiberty \ | |
1413 | maybe-installcheck-target-gperf \ | |
1414 | maybe-installcheck-target-examples \ | |
1415 | maybe-installcheck-target-libffi \ | |
1416 | maybe-installcheck-target-libjava \ | |
1417 | maybe-installcheck-target-zlib \ | |
1418 | maybe-installcheck-target-boehm-gc \ | |
1419 | maybe-installcheck-target-qthreads \ | |
a2592b1b DD |
1420 | maybe-installcheck-target-rda \ |
1421 | maybe-installcheck-target-libada | |
2a4cbe27 | 1422 | |
4fa63067 | 1423 | .PHONY: do-mostlyclean |
b813574b | 1424 | do-mostlyclean: unstage mostlyclean-host mostlyclean-target stage |
2a4cbe27 | 1425 | |
4fa63067 | 1426 | .PHONY: mostlyclean-host |
b813574b | 1427 | mostlyclean-host: \ |
4fa63067 NN |
1428 | maybe-mostlyclean-ash \ |
1429 | maybe-mostlyclean-autoconf \ | |
1430 | maybe-mostlyclean-automake \ | |
1431 | maybe-mostlyclean-bash \ | |
1432 | maybe-mostlyclean-bfd \ | |
1433 | maybe-mostlyclean-opcodes \ | |
1434 | maybe-mostlyclean-binutils \ | |
1435 | maybe-mostlyclean-bison \ | |
1436 | maybe-mostlyclean-byacc \ | |
1437 | maybe-mostlyclean-bzip2 \ | |
1438 | maybe-mostlyclean-dejagnu \ | |
1439 | maybe-mostlyclean-diff \ | |
1440 | maybe-mostlyclean-dosutils \ | |
1441 | maybe-mostlyclean-etc \ | |
1442 | maybe-mostlyclean-fastjar \ | |
1443 | maybe-mostlyclean-fileutils \ | |
1444 | maybe-mostlyclean-findutils \ | |
1445 | maybe-mostlyclean-find \ | |
d3ed111c | 1446 | maybe-mostlyclean-fixincludes \ |
4fa63067 NN |
1447 | maybe-mostlyclean-flex \ |
1448 | maybe-mostlyclean-gas \ | |
b813574b | 1449 | maybe-mostlyclean-gcc \ |
4fa63067 NN |
1450 | maybe-mostlyclean-gawk \ |
1451 | maybe-mostlyclean-gettext \ | |
1452 | maybe-mostlyclean-gnuserv \ | |
1453 | maybe-mostlyclean-gprof \ | |
1454 | maybe-mostlyclean-gzip \ | |
1455 | maybe-mostlyclean-hello \ | |
1456 | maybe-mostlyclean-indent \ | |
1457 | maybe-mostlyclean-intl \ | |
1458 | maybe-mostlyclean-tcl \ | |
1459 | maybe-mostlyclean-itcl \ | |
1460 | maybe-mostlyclean-ld \ | |
04cf1b77 | 1461 | maybe-mostlyclean-libcpp \ |
4fa63067 NN |
1462 | maybe-mostlyclean-libgui \ |
1463 | maybe-mostlyclean-libiberty \ | |
1464 | maybe-mostlyclean-libtool \ | |
1465 | maybe-mostlyclean-m4 \ | |
1466 | maybe-mostlyclean-make \ | |
1467 | maybe-mostlyclean-mmalloc \ | |
1468 | maybe-mostlyclean-patch \ | |
1469 | maybe-mostlyclean-perl \ | |
1470 | maybe-mostlyclean-prms \ | |
1471 | maybe-mostlyclean-rcs \ | |
1472 | maybe-mostlyclean-readline \ | |
1473 | maybe-mostlyclean-release \ | |
1474 | maybe-mostlyclean-recode \ | |
1475 | maybe-mostlyclean-sed \ | |
1476 | maybe-mostlyclean-send-pr \ | |
1477 | maybe-mostlyclean-shellutils \ | |
1478 | maybe-mostlyclean-sid \ | |
1479 | maybe-mostlyclean-sim \ | |
1480 | maybe-mostlyclean-tar \ | |
1481 | maybe-mostlyclean-texinfo \ | |
1482 | maybe-mostlyclean-textutils \ | |
1483 | maybe-mostlyclean-time \ | |
1484 | maybe-mostlyclean-uudecode \ | |
1485 | maybe-mostlyclean-wdiff \ | |
1486 | maybe-mostlyclean-zip \ | |
1487 | maybe-mostlyclean-zlib \ | |
1488 | maybe-mostlyclean-gdb \ | |
1489 | maybe-mostlyclean-expect \ | |
1490 | maybe-mostlyclean-guile \ | |
1491 | maybe-mostlyclean-tk \ | |
4fa63067 | 1492 | maybe-mostlyclean-libtermcap \ |
b00612cc PB |
1493 | maybe-mostlyclean-utils \ |
1494 | maybe-mostlyclean-gnattools | |
2a4cbe27 | 1495 | |
4fa63067 NN |
1496 | .PHONY: mostlyclean-target |
1497 | mostlyclean-target: \ | |
1498 | maybe-mostlyclean-target-libstdc++-v3 \ | |
4b1cb4fe | 1499 | maybe-mostlyclean-target-libmudflap \ |
4fa63067 | 1500 | maybe-mostlyclean-target-newlib \ |
4b1cb4fe | 1501 | maybe-mostlyclean-target-libgfortran \ |
4fa63067 NN |
1502 | maybe-mostlyclean-target-libobjc \ |
1503 | maybe-mostlyclean-target-libtermcap \ | |
1504 | maybe-mostlyclean-target-winsup \ | |
1505 | maybe-mostlyclean-target-libgloss \ | |
1506 | maybe-mostlyclean-target-libiberty \ | |
1507 | maybe-mostlyclean-target-gperf \ | |
1508 | maybe-mostlyclean-target-examples \ | |
1509 | maybe-mostlyclean-target-libffi \ | |
1510 | maybe-mostlyclean-target-libjava \ | |
1511 | maybe-mostlyclean-target-zlib \ | |
1512 | maybe-mostlyclean-target-boehm-gc \ | |
1513 | maybe-mostlyclean-target-qthreads \ | |
1514 | maybe-mostlyclean-target-rda \ | |
1515 | maybe-mostlyclean-target-libada | |
2a4cbe27 | 1516 | |
4fa63067 | 1517 | .PHONY: do-clean |
b813574b | 1518 | do-clean: unstage clean-host clean-target stage |
2a4cbe27 | 1519 | |
4fa63067 | 1520 | .PHONY: clean-host |
b813574b | 1521 | clean-host: \ |
4fa63067 NN |
1522 | maybe-clean-ash \ |
1523 | maybe-clean-autoconf \ | |
1524 | maybe-clean-automake \ | |
1525 | maybe-clean-bash \ | |
1526 | maybe-clean-bfd \ | |
1527 | maybe-clean-opcodes \ | |
1528 | maybe-clean-binutils \ | |
1529 | maybe-clean-bison \ | |
1530 | maybe-clean-byacc \ | |
1531 | maybe-clean-bzip2 \ | |
1532 | maybe-clean-dejagnu \ | |
1533 | maybe-clean-diff \ | |
1534 | maybe-clean-dosutils \ | |
1535 | maybe-clean-etc \ | |
1536 | maybe-clean-fastjar \ | |
1537 | maybe-clean-fileutils \ | |
1538 | maybe-clean-findutils \ | |
1539 | maybe-clean-find \ | |
d3ed111c | 1540 | maybe-clean-fixincludes \ |
4fa63067 NN |
1541 | maybe-clean-flex \ |
1542 | maybe-clean-gas \ | |
b813574b | 1543 | maybe-clean-gcc \ |
4fa63067 NN |
1544 | maybe-clean-gawk \ |
1545 | maybe-clean-gettext \ | |
1546 | maybe-clean-gnuserv \ | |
1547 | maybe-clean-gprof \ | |
1548 | maybe-clean-gzip \ | |
1549 | maybe-clean-hello \ | |
1550 | maybe-clean-indent \ | |
1551 | maybe-clean-intl \ | |
1552 | maybe-clean-tcl \ | |
1553 | maybe-clean-itcl \ | |
1554 | maybe-clean-ld \ | |
04cf1b77 | 1555 | maybe-clean-libcpp \ |
4fa63067 NN |
1556 | maybe-clean-libgui \ |
1557 | maybe-clean-libiberty \ | |
1558 | maybe-clean-libtool \ | |
1559 | maybe-clean-m4 \ | |
1560 | maybe-clean-make \ | |
1561 | maybe-clean-mmalloc \ | |
1562 | maybe-clean-patch \ | |
1563 | maybe-clean-perl \ | |
1564 | maybe-clean-prms \ | |
1565 | maybe-clean-rcs \ | |
1566 | maybe-clean-readline \ | |
1567 | maybe-clean-release \ | |
1568 | maybe-clean-recode \ | |
1569 | maybe-clean-sed \ | |
1570 | maybe-clean-send-pr \ | |
1571 | maybe-clean-shellutils \ | |
1572 | maybe-clean-sid \ | |
1573 | maybe-clean-sim \ | |
1574 | maybe-clean-tar \ | |
1575 | maybe-clean-texinfo \ | |
1576 | maybe-clean-textutils \ | |
1577 | maybe-clean-time \ | |
1578 | maybe-clean-uudecode \ | |
1579 | maybe-clean-wdiff \ | |
1580 | maybe-clean-zip \ | |
1581 | maybe-clean-zlib \ | |
1582 | maybe-clean-gdb \ | |
1583 | maybe-clean-expect \ | |
1584 | maybe-clean-guile \ | |
1585 | maybe-clean-tk \ | |
4fa63067 | 1586 | maybe-clean-libtermcap \ |
b00612cc PB |
1587 | maybe-clean-utils \ |
1588 | maybe-clean-gnattools | |
2a4cbe27 | 1589 | |
4fa63067 NN |
1590 | .PHONY: clean-target |
1591 | clean-target: \ | |
1592 | maybe-clean-target-libstdc++-v3 \ | |
4b1cb4fe | 1593 | maybe-clean-target-libmudflap \ |
4fa63067 | 1594 | maybe-clean-target-newlib \ |
4b1cb4fe | 1595 | maybe-clean-target-libgfortran \ |
4fa63067 NN |
1596 | maybe-clean-target-libobjc \ |
1597 | maybe-clean-target-libtermcap \ | |
1598 | maybe-clean-target-winsup \ | |
1599 | maybe-clean-target-libgloss \ | |
1600 | maybe-clean-target-libiberty \ | |
1601 | maybe-clean-target-gperf \ | |
1602 | maybe-clean-target-examples \ | |
1603 | maybe-clean-target-libffi \ | |
1604 | maybe-clean-target-libjava \ | |
1605 | maybe-clean-target-zlib \ | |
1606 | maybe-clean-target-boehm-gc \ | |
1607 | maybe-clean-target-qthreads \ | |
1608 | maybe-clean-target-rda \ | |
1609 | maybe-clean-target-libada | |
2a4cbe27 | 1610 | |
4fa63067 | 1611 | .PHONY: do-distclean |
b813574b | 1612 | do-distclean: unstage distclean-host distclean-target stage |
2a4cbe27 | 1613 | |
4fa63067 | 1614 | .PHONY: distclean-host |
b813574b | 1615 | distclean-host: \ |
4fa63067 NN |
1616 | maybe-distclean-ash \ |
1617 | maybe-distclean-autoconf \ | |
1618 | maybe-distclean-automake \ | |
1619 | maybe-distclean-bash \ | |
1620 | maybe-distclean-bfd \ | |
1621 | maybe-distclean-opcodes \ | |
1622 | maybe-distclean-binutils \ | |
1623 | maybe-distclean-bison \ | |
1624 | maybe-distclean-byacc \ | |
1625 | maybe-distclean-bzip2 \ | |
1626 | maybe-distclean-dejagnu \ | |
1627 | maybe-distclean-diff \ | |
1628 | maybe-distclean-dosutils \ | |
1629 | maybe-distclean-etc \ | |
1630 | maybe-distclean-fastjar \ | |
1631 | maybe-distclean-fileutils \ | |
1632 | maybe-distclean-findutils \ | |
1633 | maybe-distclean-find \ | |
d3ed111c | 1634 | maybe-distclean-fixincludes \ |
4fa63067 NN |
1635 | maybe-distclean-flex \ |
1636 | maybe-distclean-gas \ | |
b813574b | 1637 | maybe-distclean-gcc \ |
4fa63067 NN |
1638 | maybe-distclean-gawk \ |
1639 | maybe-distclean-gettext \ | |
1640 | maybe-distclean-gnuserv \ | |
1641 | maybe-distclean-gprof \ | |
1642 | maybe-distclean-gzip \ | |
1643 | maybe-distclean-hello \ | |
1644 | maybe-distclean-indent \ | |
1645 | maybe-distclean-intl \ | |
1646 | maybe-distclean-tcl \ | |
1647 | maybe-distclean-itcl \ | |
1648 | maybe-distclean-ld \ | |
04cf1b77 | 1649 | maybe-distclean-libcpp \ |
4fa63067 NN |
1650 | maybe-distclean-libgui \ |
1651 | maybe-distclean-libiberty \ | |
1652 | maybe-distclean-libtool \ | |
1653 | maybe-distclean-m4 \ | |
1654 | maybe-distclean-make \ | |
1655 | maybe-distclean-mmalloc \ | |
1656 | maybe-distclean-patch \ | |
1657 | maybe-distclean-perl \ | |
1658 | maybe-distclean-prms \ | |
1659 | maybe-distclean-rcs \ | |
1660 | maybe-distclean-readline \ | |
1661 | maybe-distclean-release \ | |
1662 | maybe-distclean-recode \ | |
1663 | maybe-distclean-sed \ | |
1664 | maybe-distclean-send-pr \ | |
1665 | maybe-distclean-shellutils \ | |
1666 | maybe-distclean-sid \ | |
1667 | maybe-distclean-sim \ | |
1668 | maybe-distclean-tar \ | |
1669 | maybe-distclean-texinfo \ | |
1670 | maybe-distclean-textutils \ | |
1671 | maybe-distclean-time \ | |
1672 | maybe-distclean-uudecode \ | |
1673 | maybe-distclean-wdiff \ | |
1674 | maybe-distclean-zip \ | |
1675 | maybe-distclean-zlib \ | |
1676 | maybe-distclean-gdb \ | |
1677 | maybe-distclean-expect \ | |
1678 | maybe-distclean-guile \ | |
1679 | maybe-distclean-tk \ | |
4fa63067 | 1680 | maybe-distclean-libtermcap \ |
b00612cc PB |
1681 | maybe-distclean-utils \ |
1682 | maybe-distclean-gnattools | |
2a4cbe27 | 1683 | |
4fa63067 NN |
1684 | .PHONY: distclean-target |
1685 | distclean-target: \ | |
1686 | maybe-distclean-target-libstdc++-v3 \ | |
4b1cb4fe | 1687 | maybe-distclean-target-libmudflap \ |
4fa63067 | 1688 | maybe-distclean-target-newlib \ |
4b1cb4fe | 1689 | maybe-distclean-target-libgfortran \ |
4fa63067 NN |
1690 | maybe-distclean-target-libobjc \ |
1691 | maybe-distclean-target-libtermcap \ | |
1692 | maybe-distclean-target-winsup \ | |
1693 | maybe-distclean-target-libgloss \ | |
1694 | maybe-distclean-target-libiberty \ | |
1695 | maybe-distclean-target-gperf \ | |
1696 | maybe-distclean-target-examples \ | |
1697 | maybe-distclean-target-libffi \ | |
1698 | maybe-distclean-target-libjava \ | |
1699 | maybe-distclean-target-zlib \ | |
1700 | maybe-distclean-target-boehm-gc \ | |
1701 | maybe-distclean-target-qthreads \ | |
1702 | maybe-distclean-target-rda \ | |
1703 | maybe-distclean-target-libada | |
2a4cbe27 | 1704 | |
4fa63067 | 1705 | .PHONY: do-maintainer-clean |
b813574b | 1706 | do-maintainer-clean: unstage maintainer-clean-host maintainer-clean-target stage |
2a4cbe27 | 1707 | |
4fa63067 | 1708 | .PHONY: maintainer-clean-host |
b813574b | 1709 | maintainer-clean-host: \ |
4fa63067 NN |
1710 | maybe-maintainer-clean-ash \ |
1711 | maybe-maintainer-clean-autoconf \ | |
1712 | maybe-maintainer-clean-automake \ | |
1713 | maybe-maintainer-clean-bash \ | |
1714 | maybe-maintainer-clean-bfd \ | |
1715 | maybe-maintainer-clean-opcodes \ | |
1716 | maybe-maintainer-clean-binutils \ | |
1717 | maybe-maintainer-clean-bison \ | |
1718 | maybe-maintainer-clean-byacc \ | |
1719 | maybe-maintainer-clean-bzip2 \ | |
1720 | maybe-maintainer-clean-dejagnu \ | |
1721 | maybe-maintainer-clean-diff \ | |
1722 | maybe-maintainer-clean-dosutils \ | |
1723 | maybe-maintainer-clean-etc \ | |
1724 | maybe-maintainer-clean-fastjar \ | |
1725 | maybe-maintainer-clean-fileutils \ | |
1726 | maybe-maintainer-clean-findutils \ | |
1727 | maybe-maintainer-clean-find \ | |
d3ed111c | 1728 | maybe-maintainer-clean-fixincludes \ |
4fa63067 NN |
1729 | maybe-maintainer-clean-flex \ |
1730 | maybe-maintainer-clean-gas \ | |
b813574b | 1731 | maybe-maintainer-clean-gcc \ |
4fa63067 NN |
1732 | maybe-maintainer-clean-gawk \ |
1733 | maybe-maintainer-clean-gettext \ | |
1734 | maybe-maintainer-clean-gnuserv \ | |
1735 | maybe-maintainer-clean-gprof \ | |
1736 | maybe-maintainer-clean-gzip \ | |
1737 | maybe-maintainer-clean-hello \ | |
1738 | maybe-maintainer-clean-indent \ | |
1739 | maybe-maintainer-clean-intl \ | |
1740 | maybe-maintainer-clean-tcl \ | |
1741 | maybe-maintainer-clean-itcl \ | |
1742 | maybe-maintainer-clean-ld \ | |
04cf1b77 | 1743 | maybe-maintainer-clean-libcpp \ |
4fa63067 NN |
1744 | maybe-maintainer-clean-libgui \ |
1745 | maybe-maintainer-clean-libiberty \ | |
1746 | maybe-maintainer-clean-libtool \ | |
1747 | maybe-maintainer-clean-m4 \ | |
1748 | maybe-maintainer-clean-make \ | |
1749 | maybe-maintainer-clean-mmalloc \ | |
1750 | maybe-maintainer-clean-patch \ | |
1751 | maybe-maintainer-clean-perl \ | |
1752 | maybe-maintainer-clean-prms \ | |
1753 | maybe-maintainer-clean-rcs \ | |
1754 | maybe-maintainer-clean-readline \ | |
1755 | maybe-maintainer-clean-release \ | |
1756 | maybe-maintainer-clean-recode \ | |
1757 | maybe-maintainer-clean-sed \ | |
1758 | maybe-maintainer-clean-send-pr \ | |
1759 | maybe-maintainer-clean-shellutils \ | |
1760 | maybe-maintainer-clean-sid \ | |
1761 | maybe-maintainer-clean-sim \ | |
1762 | maybe-maintainer-clean-tar \ | |
1763 | maybe-maintainer-clean-texinfo \ | |
1764 | maybe-maintainer-clean-textutils \ | |
1765 | maybe-maintainer-clean-time \ | |
1766 | maybe-maintainer-clean-uudecode \ | |
1767 | maybe-maintainer-clean-wdiff \ | |
1768 | maybe-maintainer-clean-zip \ | |
1769 | maybe-maintainer-clean-zlib \ | |
1770 | maybe-maintainer-clean-gdb \ | |
1771 | maybe-maintainer-clean-expect \ | |
1772 | maybe-maintainer-clean-guile \ | |
1773 | maybe-maintainer-clean-tk \ | |
4fa63067 | 1774 | maybe-maintainer-clean-libtermcap \ |
b00612cc PB |
1775 | maybe-maintainer-clean-utils \ |
1776 | maybe-maintainer-clean-gnattools | |
2a4cbe27 | 1777 | |
4fa63067 NN |
1778 | .PHONY: maintainer-clean-target |
1779 | maintainer-clean-target: \ | |
1780 | maybe-maintainer-clean-target-libstdc++-v3 \ | |
4b1cb4fe | 1781 | maybe-maintainer-clean-target-libmudflap \ |
4fa63067 | 1782 | maybe-maintainer-clean-target-newlib \ |
4b1cb4fe | 1783 | maybe-maintainer-clean-target-libgfortran \ |
4fa63067 NN |
1784 | maybe-maintainer-clean-target-libobjc \ |
1785 | maybe-maintainer-clean-target-libtermcap \ | |
1786 | maybe-maintainer-clean-target-winsup \ | |
1787 | maybe-maintainer-clean-target-libgloss \ | |
1788 | maybe-maintainer-clean-target-libiberty \ | |
1789 | maybe-maintainer-clean-target-gperf \ | |
1790 | maybe-maintainer-clean-target-examples \ | |
1791 | maybe-maintainer-clean-target-libffi \ | |
1792 | maybe-maintainer-clean-target-libjava \ | |
1793 | maybe-maintainer-clean-target-zlib \ | |
1794 | maybe-maintainer-clean-target-boehm-gc \ | |
1795 | maybe-maintainer-clean-target-qthreads \ | |
1796 | maybe-maintainer-clean-target-rda \ | |
1797 | maybe-maintainer-clean-target-libada | |
2a4cbe27 | 1798 | |
2a4cbe27 | 1799 | |
4fa63067 | 1800 | # Here are the targets which correspond to the do-X targets. |
2a4cbe27 | 1801 | |
6d389afc | 1802 | .PHONY: info installcheck dvi html install-info |
4fa63067 NN |
1803 | .PHONY: clean distclean mostlyclean maintainer-clean realclean |
1804 | .PHONY: local-clean local-distclean local-maintainer-clean | |
1805 | info: do-info | |
1806 | installcheck: do-installcheck | |
1807 | dvi: do-dvi | |
6d389afc | 1808 | html: do-html |
2a4cbe27 | 1809 | |
4fa63067 NN |
1810 | # Make sure makeinfo is built before we do a `make info', if we're |
1811 | # in fact building texinfo. | |
1812 | do-info: maybe-all-texinfo | |
2a4cbe27 | 1813 | |
4fa63067 | 1814 | install-info: do-install-info dir.info |
b40e3958 | 1815 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
4fa63067 NN |
1816 | if [ -f dir.info ] ; then \ |
1817 | $(INSTALL_DATA) dir.info $(DESTDIR)$(infodir)/dir.info ; \ | |
1818 | else true ; fi | |
2a4cbe27 | 1819 | |
4fa63067 NN |
1820 | local-clean: |
1821 | -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log | |
2a4cbe27 | 1822 | |
4fa63067 NN |
1823 | local-distclean: |
1824 | -rm -f Makefile config.status config.cache mh-frag mt-frag | |
1825 | -rm -f multilib.out multilib.tmp maybedep.tmp serdep.tmp | |
1826 | -if [ "$(TARGET_SUBDIR)" != "." ]; then \ | |
1827 | rm -rf $(TARGET_SUBDIR); \ | |
1828 | else true; fi | |
1829 | -rm -rf $(BUILD_SUBDIR) | |
b00612cc PB |
1830 | -if [ "$(HOST_SUBDIR)" != "." ]; then \ |
1831 | rm -rf $(HOST_SUBDIR); \ | |
1832 | else true; fi | |
4fa63067 NN |
1833 | -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile |
1834 | -rm -f texinfo/doc/Makefile texinfo/po/POTFILES | |
1835 | -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null | |
1836 | -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null | |
1837 | -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null | |
2a4cbe27 | 1838 | |
4fa63067 NN |
1839 | local-maintainer-clean: |
1840 | @echo "This command is intended for maintainers to use;" | |
1841 | @echo "it deletes files that may require special tools to rebuild." | |
2a4cbe27 | 1842 | |
4fa63067 NN |
1843 | clean: do-clean local-clean |
1844 | mostlyclean: do-mostlyclean local-clean | |
1845 | distclean: do-distclean local-clean local-distclean | |
1846 | maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean | |
1847 | maintainer-clean: local-distclean | |
1848 | realclean: maintainer-clean | |
2a4cbe27 | 1849 | |
4fa63067 NN |
1850 | # Extra dependency for clean-target, owing to the mixed nature of gcc |
1851 | clean-target: clean-target-libgcc | |
1852 | clean-target-libgcc: | |
1853 | test ! -d gcc/libgcc || \ | |
1854 | (cd gcc/libgcc && find . -type d -print) | \ | |
1855 | while read d; do rm -f gcc/$$d/libgcc.a || : ; done | |
1856 | -rm -rf gcc/libgcc | |
6c8e6ce9 | 1857 | -rm -f gcc/stmp-dirs |
2a4cbe27 | 1858 | |
4fa63067 | 1859 | # Check target. |
2a4cbe27 | 1860 | |
4fa63067 NN |
1861 | .PHONY: check do-check |
1862 | check: do-check | |
2a4cbe27 | 1863 | |
4fa63067 | 1864 | # Only include modules actually being configured and built. |
b813574b | 1865 | do-check: unstage \ |
4fa63067 NN |
1866 | maybe-check-ash \ |
1867 | maybe-check-autoconf \ | |
1868 | maybe-check-automake \ | |
1869 | maybe-check-bash \ | |
1870 | maybe-check-bfd \ | |
1871 | maybe-check-opcodes \ | |
1872 | maybe-check-binutils \ | |
1873 | maybe-check-bison \ | |
1874 | maybe-check-byacc \ | |
1875 | maybe-check-bzip2 \ | |
1876 | maybe-check-dejagnu \ | |
1877 | maybe-check-diff \ | |
1878 | maybe-check-dosutils \ | |
1879 | maybe-check-etc \ | |
1880 | maybe-check-fastjar \ | |
1881 | maybe-check-fileutils \ | |
1882 | maybe-check-findutils \ | |
1883 | maybe-check-find \ | |
d3ed111c | 1884 | maybe-check-fixincludes \ |
4fa63067 NN |
1885 | maybe-check-flex \ |
1886 | maybe-check-gas \ | |
b813574b | 1887 | maybe-check-gcc \ |
4fa63067 NN |
1888 | maybe-check-gawk \ |
1889 | maybe-check-gettext \ | |
1890 | maybe-check-gnuserv \ | |
1891 | maybe-check-gprof \ | |
1892 | maybe-check-gzip \ | |
1893 | maybe-check-hello \ | |
1894 | maybe-check-indent \ | |
1895 | maybe-check-intl \ | |
1896 | maybe-check-tcl \ | |
1897 | maybe-check-itcl \ | |
1898 | maybe-check-ld \ | |
04cf1b77 | 1899 | maybe-check-libcpp \ |
4fa63067 NN |
1900 | maybe-check-libgui \ |
1901 | maybe-check-libiberty \ | |
1902 | maybe-check-libtool \ | |
1903 | maybe-check-m4 \ | |
1904 | maybe-check-make \ | |
1905 | maybe-check-mmalloc \ | |
1906 | maybe-check-patch \ | |
1907 | maybe-check-perl \ | |
1908 | maybe-check-prms \ | |
1909 | maybe-check-rcs \ | |
1910 | maybe-check-readline \ | |
1911 | maybe-check-release \ | |
1912 | maybe-check-recode \ | |
1913 | maybe-check-sed \ | |
1914 | maybe-check-send-pr \ | |
1915 | maybe-check-shellutils \ | |
1916 | maybe-check-sid \ | |
1917 | maybe-check-sim \ | |
1918 | maybe-check-tar \ | |
1919 | maybe-check-texinfo \ | |
1920 | maybe-check-textutils \ | |
1921 | maybe-check-time \ | |
1922 | maybe-check-uudecode \ | |
1923 | maybe-check-wdiff \ | |
1924 | maybe-check-zip \ | |
1925 | maybe-check-zlib \ | |
1926 | maybe-check-gdb \ | |
1927 | maybe-check-expect \ | |
1928 | maybe-check-guile \ | |
1929 | maybe-check-tk \ | |
4fa63067 NN |
1930 | maybe-check-libtermcap \ |
1931 | maybe-check-utils \ | |
b00612cc | 1932 | maybe-check-gnattools \ |
4fa63067 | 1933 | maybe-check-target-libstdc++-v3 \ |
4b1cb4fe | 1934 | maybe-check-target-libmudflap \ |
4fa63067 | 1935 | maybe-check-target-newlib \ |
4b1cb4fe | 1936 | maybe-check-target-libgfortran \ |
4fa63067 NN |
1937 | maybe-check-target-libobjc \ |
1938 | maybe-check-target-libtermcap \ | |
1939 | maybe-check-target-winsup \ | |
1940 | maybe-check-target-libgloss \ | |
1941 | maybe-check-target-libiberty \ | |
1942 | maybe-check-target-gperf \ | |
1943 | maybe-check-target-examples \ | |
1944 | maybe-check-target-libffi \ | |
1945 | maybe-check-target-libjava \ | |
1946 | maybe-check-target-zlib \ | |
1947 | maybe-check-target-boehm-gc \ | |
1948 | maybe-check-target-qthreads \ | |
1949 | maybe-check-target-rda \ | |
b813574b | 1950 | maybe-check-target-libada stage |
2a4cbe27 | 1951 | |
4fa63067 | 1952 | # Automated reporting of test results. |
2a4cbe27 | 1953 | |
4fa63067 NN |
1954 | warning.log: build.log |
1955 | $(srcdir)/contrib/warn_summary build.log > $@ | |
2a4cbe27 | 1956 | |
4fa63067 NN |
1957 | mail-report.log: |
1958 | if test x'$(BOOT_CFLAGS)' != x''; then \ | |
1959 | BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \ | |
1960 | fi; \ | |
1961 | $(srcdir)/contrib/test_summary -t >$@ | |
1962 | chmod +x $@ | |
1963 | echo If you really want to send e-mail, run ./$@ now | |
2a4cbe27 | 1964 | |
4fa63067 NN |
1965 | mail-report-with-warnings.log: warning.log |
1966 | if test x'$(BOOT_CFLAGS)' != x''; then \ | |
1967 | BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \ | |
1968 | fi; \ | |
1969 | $(srcdir)/contrib/test_summary -t -i warning.log >$@ | |
1970 | chmod +x $@ | |
1971 | echo If you really want to send e-mail, run ./$@ now | |
2a4cbe27 | 1972 | |
4fa63067 | 1973 | # Installation targets. |
2a4cbe27 | 1974 | |
4fa63067 NN |
1975 | .PHONY: install uninstall |
1976 | install: installdirs install-host install-target | |
2a4cbe27 | 1977 | |
4fa63067 NN |
1978 | .PHONY: install-host-nogcc |
1979 | install-host-nogcc: \ | |
1980 | maybe-install-ash \ | |
1981 | maybe-install-autoconf \ | |
1982 | maybe-install-automake \ | |
1983 | maybe-install-bash \ | |
1984 | maybe-install-bfd \ | |
1985 | maybe-install-opcodes \ | |
1986 | maybe-install-binutils \ | |
1987 | maybe-install-bison \ | |
1988 | maybe-install-byacc \ | |
1989 | maybe-install-bzip2 \ | |
1990 | maybe-install-dejagnu \ | |
1991 | maybe-install-diff \ | |
1992 | maybe-install-dosutils \ | |
1993 | maybe-install-etc \ | |
1994 | maybe-install-fastjar \ | |
1995 | maybe-install-fileutils \ | |
1996 | maybe-install-findutils \ | |
1997 | maybe-install-find \ | |
d3ed111c | 1998 | maybe-install-fixincludes \ |
4fa63067 NN |
1999 | maybe-install-flex \ |
2000 | maybe-install-gas \ | |
2001 | maybe-install-gawk \ | |
2002 | maybe-install-gettext \ | |
2003 | maybe-install-gnuserv \ | |
2004 | maybe-install-gprof \ | |
2005 | maybe-install-gzip \ | |
2006 | maybe-install-hello \ | |
2007 | maybe-install-indent \ | |
2008 | maybe-install-intl \ | |
2009 | maybe-install-tcl \ | |
2010 | maybe-install-itcl \ | |
2011 | maybe-install-ld \ | |
04cf1b77 | 2012 | maybe-install-libcpp \ |
4fa63067 NN |
2013 | maybe-install-libgui \ |
2014 | maybe-install-libiberty \ | |
2015 | maybe-install-libtool \ | |
2016 | maybe-install-m4 \ | |
2017 | maybe-install-make \ | |
2018 | maybe-install-mmalloc \ | |
2019 | maybe-install-patch \ | |
2020 | maybe-install-perl \ | |
2021 | maybe-install-prms \ | |
2022 | maybe-install-rcs \ | |
2023 | maybe-install-readline \ | |
2024 | maybe-install-release \ | |
2025 | maybe-install-recode \ | |
2026 | maybe-install-sed \ | |
2027 | maybe-install-send-pr \ | |
2028 | maybe-install-shellutils \ | |
2029 | maybe-install-sid \ | |
2030 | maybe-install-sim \ | |
2031 | maybe-install-tar \ | |
2032 | maybe-install-texinfo \ | |
2033 | maybe-install-textutils \ | |
2034 | maybe-install-time \ | |
2035 | maybe-install-uudecode \ | |
2036 | maybe-install-wdiff \ | |
2037 | maybe-install-zip \ | |
2038 | maybe-install-zlib \ | |
2039 | maybe-install-gdb \ | |
2040 | maybe-install-expect \ | |
2041 | maybe-install-guile \ | |
2042 | maybe-install-tk \ | |
4fa63067 | 2043 | maybe-install-libtermcap \ |
b00612cc PB |
2044 | maybe-install-utils \ |
2045 | maybe-install-gnattools | |
2a4cbe27 | 2046 | |
4fa63067 | 2047 | .PHONY: install-host |
b813574b | 2048 | install-host: \ |
4fa63067 NN |
2049 | maybe-install-ash \ |
2050 | maybe-install-autoconf \ | |
2051 | maybe-install-automake \ | |
2052 | maybe-install-bash \ | |
2053 | maybe-install-bfd \ | |
2054 | maybe-install-opcodes \ | |
2055 | maybe-install-binutils \ | |
2056 | maybe-install-bison \ | |
2057 | maybe-install-byacc \ | |
2058 | maybe-install-bzip2 \ | |
2059 | maybe-install-dejagnu \ | |
2060 | maybe-install-diff \ | |
2061 | maybe-install-dosutils \ | |
2062 | maybe-install-etc \ | |
2063 | maybe-install-fastjar \ | |
2064 | maybe-install-fileutils \ | |
2065 | maybe-install-findutils \ | |
2066 | maybe-install-find \ | |
d3ed111c | 2067 | maybe-install-fixincludes \ |
4fa63067 NN |
2068 | maybe-install-flex \ |
2069 | maybe-install-gas \ | |
b813574b | 2070 | maybe-install-gcc \ |
4fa63067 NN |
2071 | maybe-install-gawk \ |
2072 | maybe-install-gettext \ | |
2073 | maybe-install-gnuserv \ | |
2074 | maybe-install-gprof \ | |
2075 | maybe-install-gzip \ | |
2076 | maybe-install-hello \ | |
2077 | maybe-install-indent \ | |
2078 | maybe-install-intl \ | |
2079 | maybe-install-tcl \ | |
2080 | maybe-install-itcl \ | |
2081 | maybe-install-ld \ | |
04cf1b77 | 2082 | maybe-install-libcpp \ |
4fa63067 NN |
2083 | maybe-install-libgui \ |
2084 | maybe-install-libiberty \ | |
2085 | maybe-install-libtool \ | |
2086 | maybe-install-m4 \ | |
2087 | maybe-install-make \ | |
2088 | maybe-install-mmalloc \ | |
2089 | maybe-install-patch \ | |
2090 | maybe-install-perl \ | |
2091 | maybe-install-prms \ | |
2092 | maybe-install-rcs \ | |
2093 | maybe-install-readline \ | |
2094 | maybe-install-release \ | |
2095 | maybe-install-recode \ | |
2096 | maybe-install-sed \ | |
2097 | maybe-install-send-pr \ | |
2098 | maybe-install-shellutils \ | |
2099 | maybe-install-sid \ | |
2100 | maybe-install-sim \ | |
2101 | maybe-install-tar \ | |
2102 | maybe-install-texinfo \ | |
2103 | maybe-install-textutils \ | |
2104 | maybe-install-time \ | |
2105 | maybe-install-uudecode \ | |
2106 | maybe-install-wdiff \ | |
2107 | maybe-install-zip \ | |
2108 | maybe-install-zlib \ | |
2109 | maybe-install-gdb \ | |
2110 | maybe-install-expect \ | |
2111 | maybe-install-guile \ | |
2112 | maybe-install-tk \ | |
4fa63067 | 2113 | maybe-install-libtermcap \ |
b00612cc PB |
2114 | maybe-install-utils \ |
2115 | maybe-install-gnattools | |
2a4cbe27 | 2116 | |
4fa63067 NN |
2117 | .PHONY: install-target |
2118 | install-target: \ | |
2119 | maybe-install-target-libstdc++-v3 \ | |
4b1cb4fe | 2120 | maybe-install-target-libmudflap \ |
4fa63067 | 2121 | maybe-install-target-newlib \ |
4b1cb4fe | 2122 | maybe-install-target-libgfortran \ |
4fa63067 NN |
2123 | maybe-install-target-libobjc \ |
2124 | maybe-install-target-libtermcap \ | |
2125 | maybe-install-target-winsup \ | |
2126 | maybe-install-target-libgloss \ | |
2127 | maybe-install-target-libiberty \ | |
2128 | maybe-install-target-gperf \ | |
2129 | maybe-install-target-examples \ | |
2130 | maybe-install-target-libffi \ | |
2131 | maybe-install-target-libjava \ | |
2132 | maybe-install-target-zlib \ | |
2133 | maybe-install-target-boehm-gc \ | |
2134 | maybe-install-target-qthreads \ | |
2135 | maybe-install-target-rda \ | |
2136 | maybe-install-target-libada | |
2a4cbe27 | 2137 | |
4fa63067 NN |
2138 | uninstall: |
2139 | @echo "the uninstall target is not supported in this tree" | |
2a4cbe27 | 2140 | |
4fa63067 NN |
2141 | .PHONY: install.all |
2142 | install.all: install-no-fixedincludes | |
2143 | @if [ -f ./gcc/Makefile ] ; then \ | |
2144 | r=`${PWD_COMMAND}` ; export r ; \ | |
7ffa0b57 | 2145 | $(HOST_EXPORTS) \ |
4fa63067 NN |
2146 | (cd ./gcc && \ |
2147 | $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \ | |
2148 | else \ | |
2149 | true ; \ | |
2150 | fi | |
2a4cbe27 | 2151 | |
4fa63067 NN |
2152 | # install-no-fixedincludes is used because Cygnus can not distribute |
2153 | # the fixed header files. | |
2154 | .PHONY: install-no-fixedincludes | |
2155 | install-no-fixedincludes: installdirs install-host-nogcc \ | |
2156 | install-target gcc-no-fixedincludes | |
2a4cbe27 | 2157 | |
4fa63067 | 2158 | ### other supporting targets |
2a4cbe27 | 2159 | |
4fa63067 NN |
2160 | MAKEDIRS= \ |
2161 | $(DESTDIR)$(prefix) \ | |
2162 | $(DESTDIR)$(exec_prefix) | |
2163 | .PHONY: installdirs | |
2164 | installdirs: mkinstalldirs | |
2165 | $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS) | |
2a4cbe27 | 2166 | |
4fa63067 NN |
2167 | dir.info: do-install-info |
2168 | if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \ | |
2169 | $(srcdir)/texinfo/gen-info-dir $(DESTDIR)$(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \ | |
2170 | mv -f dir.info.new dir.info ; \ | |
2171 | else true ; \ | |
2172 | fi | |
2a4cbe27 | 2173 | |
4fa63067 NN |
2174 | dist: |
2175 | @echo "Building a full distribution of this tree isn't done" | |
2176 | @echo "via 'make dist'. Check out the etc/ subdirectory" | |
2a4cbe27 | 2177 | |
4fa63067 | 2178 | etags tags: TAGS |
2a4cbe27 | 2179 | |
4fa63067 NN |
2180 | # Right now this just builds TAGS in each subdirectory. emacs19 has the |
2181 | # ability to use several tags files at once, so there is probably no need | |
2182 | # to combine them into one big TAGS file (like CVS 1.3 does). We could | |
2183 | # (if we felt like it) have this Makefile write a piece of elisp which | |
2184 | # the user could load to tell emacs19 where all the TAGS files we just | |
2185 | # built are. | |
2186 | TAGS: do-TAGS | |
2a4cbe27 | 2187 | |
a7254363 PB |
2188 | # ------------------------------------ |
2189 | # Macros for configure and all targets | |
2190 | # ------------------------------------ | |
2191 | ||
2192 | ||
2193 | ||
2194 | ||
2195 | ||
4fa63067 NN |
2196 | # -------------------------------------- |
2197 | # Modules which run on the build machine | |
2198 | # -------------------------------------- | |
2199 | ||
a7254363 | 2200 | |
4fa63067 NN |
2201 | .PHONY: configure-build-libiberty maybe-configure-build-libiberty |
2202 | maybe-configure-build-libiberty: | |
6bd3dfaa PB |
2203 | @if build-libiberty |
2204 | maybe-configure-build-libiberty: configure-build-libiberty | |
a7254363 | 2205 | configure-build-libiberty: |
4fa63067 NN |
2206 | @test ! -f $(BUILD_SUBDIR)/libiberty/Makefile || exit 0; \ |
2207 | $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libiberty ; \ | |
b40e3958 L |
2208 | r=`${PWD_COMMAND}`; export r; \ |
2209 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 2210 | $(BUILD_EXPORTS) \ |
4fa63067 NN |
2211 | echo Configuring in $(BUILD_SUBDIR)/libiberty; \ |
2212 | cd "$(BUILD_SUBDIR)/libiberty" || exit 1; \ | |
2213 | case $(srcdir) in \ | |
b00612cc PB |
2214 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
2215 | *) topdir=`echo $(BUILD_SUBDIR)/libiberty/ | \ | |
2216 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 2217 | esac; \ |
b00612cc PB |
2218 | srcdiroption="--srcdir=$${topdir}/libiberty"; \ |
2219 | libsrcdir="$$s/libiberty"; \ | |
4fa63067 NN |
2220 | rm -f no-such-file || : ; \ |
2221 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
a7254363 | 2222 | $(BUILD_CONFIGARGS) $${srcdiroption} \ |
2a4cbe27 | 2223 | || exit 1 |
6bd3dfaa | 2224 | @endif build-libiberty |
2a4cbe27 | 2225 | |
a7254363 PB |
2226 | |
2227 | ||
4fa63067 NN |
2228 | .PHONY: all-build-libiberty maybe-all-build-libiberty |
2229 | maybe-all-build-libiberty: | |
6bd3dfaa | 2230 | @if build-libiberty |
72b2455a | 2231 | TARGET-build-libiberty=all |
6bd3dfaa | 2232 | maybe-all-build-libiberty: all-build-libiberty |
4fa63067 NN |
2233 | all-build-libiberty: configure-build-libiberty |
2234 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 2235 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 2236 | $(BUILD_EXPORTS) \ |
72b2455a | 2237 | (cd $(BUILD_SUBDIR)/libiberty && \ |
a7254363 | 2238 | $(MAKE) $(TARGET-build-libiberty)) |
6bd3dfaa | 2239 | @endif build-libiberty |
2a4cbe27 | 2240 | |
a7254363 PB |
2241 | |
2242 | ||
6a9cf61e PB |
2243 | .PHONY: configure-build-bison maybe-configure-build-bison |
2244 | maybe-configure-build-bison: | |
2245 | @if build-bison | |
2246 | maybe-configure-build-bison: configure-build-bison | |
a7254363 | 2247 | configure-build-bison: |
6a9cf61e PB |
2248 | @test ! -f $(BUILD_SUBDIR)/bison/Makefile || exit 0; \ |
2249 | $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/bison ; \ | |
2250 | r=`${PWD_COMMAND}`; export r; \ | |
2251 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
2252 | $(BUILD_EXPORTS) \ | |
2253 | echo Configuring in $(BUILD_SUBDIR)/bison; \ | |
2254 | cd "$(BUILD_SUBDIR)/bison" || exit 1; \ | |
2255 | case $(srcdir) in \ | |
b00612cc PB |
2256 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
2257 | *) topdir=`echo $(BUILD_SUBDIR)/bison/ | \ | |
2258 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
6a9cf61e | 2259 | esac; \ |
b00612cc PB |
2260 | srcdiroption="--srcdir=$${topdir}/bison"; \ |
2261 | libsrcdir="$$s/bison"; \ | |
6a9cf61e PB |
2262 | rm -f no-such-file || : ; \ |
2263 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
a7254363 | 2264 | $(BUILD_CONFIGARGS) $${srcdiroption} \ |
6a9cf61e PB |
2265 | || exit 1 |
2266 | @endif build-bison | |
2267 | ||
a7254363 PB |
2268 | |
2269 | ||
6a9cf61e PB |
2270 | .PHONY: all-build-bison maybe-all-build-bison |
2271 | maybe-all-build-bison: | |
2272 | @if build-bison | |
72b2455a | 2273 | TARGET-build-bison=all |
6a9cf61e PB |
2274 | maybe-all-build-bison: all-build-bison |
2275 | all-build-bison: configure-build-bison | |
2276 | @r=`${PWD_COMMAND}`; export r; \ | |
2277 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
2278 | $(BUILD_EXPORTS) \ | |
72b2455a | 2279 | (cd $(BUILD_SUBDIR)/bison && \ |
a7254363 | 2280 | $(MAKE) $(TARGET-build-bison)) |
6a9cf61e PB |
2281 | @endif build-bison |
2282 | ||
a7254363 PB |
2283 | |
2284 | ||
6a9cf61e PB |
2285 | .PHONY: configure-build-byacc maybe-configure-build-byacc |
2286 | maybe-configure-build-byacc: | |
2287 | @if build-byacc | |
2288 | maybe-configure-build-byacc: configure-build-byacc | |
a7254363 | 2289 | configure-build-byacc: |
6a9cf61e PB |
2290 | @test ! -f $(BUILD_SUBDIR)/byacc/Makefile || exit 0; \ |
2291 | $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/byacc ; \ | |
2292 | r=`${PWD_COMMAND}`; export r; \ | |
2293 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
2294 | $(BUILD_EXPORTS) \ | |
2295 | echo Configuring in $(BUILD_SUBDIR)/byacc; \ | |
2296 | cd "$(BUILD_SUBDIR)/byacc" || exit 1; \ | |
2297 | case $(srcdir) in \ | |
b00612cc PB |
2298 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
2299 | *) topdir=`echo $(BUILD_SUBDIR)/byacc/ | \ | |
2300 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
6a9cf61e | 2301 | esac; \ |
b00612cc PB |
2302 | srcdiroption="--srcdir=$${topdir}/byacc"; \ |
2303 | libsrcdir="$$s/byacc"; \ | |
6a9cf61e PB |
2304 | rm -f no-such-file || : ; \ |
2305 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
a7254363 | 2306 | $(BUILD_CONFIGARGS) $${srcdiroption} \ |
6a9cf61e PB |
2307 | || exit 1 |
2308 | @endif build-byacc | |
2309 | ||
a7254363 PB |
2310 | |
2311 | ||
6a9cf61e PB |
2312 | .PHONY: all-build-byacc maybe-all-build-byacc |
2313 | maybe-all-build-byacc: | |
2314 | @if build-byacc | |
72b2455a | 2315 | TARGET-build-byacc=all |
6a9cf61e PB |
2316 | maybe-all-build-byacc: all-build-byacc |
2317 | all-build-byacc: configure-build-byacc | |
2318 | @r=`${PWD_COMMAND}`; export r; \ | |
2319 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
2320 | $(BUILD_EXPORTS) \ | |
72b2455a | 2321 | (cd $(BUILD_SUBDIR)/byacc && \ |
a7254363 | 2322 | $(MAKE) $(TARGET-build-byacc)) |
6a9cf61e PB |
2323 | @endif build-byacc |
2324 | ||
a7254363 PB |
2325 | |
2326 | ||
6a9cf61e PB |
2327 | .PHONY: configure-build-flex maybe-configure-build-flex |
2328 | maybe-configure-build-flex: | |
2329 | @if build-flex | |
2330 | maybe-configure-build-flex: configure-build-flex | |
a7254363 | 2331 | configure-build-flex: |
6a9cf61e PB |
2332 | @test ! -f $(BUILD_SUBDIR)/flex/Makefile || exit 0; \ |
2333 | $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/flex ; \ | |
2334 | r=`${PWD_COMMAND}`; export r; \ | |
2335 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
2336 | $(BUILD_EXPORTS) \ | |
2337 | echo Configuring in $(BUILD_SUBDIR)/flex; \ | |
2338 | cd "$(BUILD_SUBDIR)/flex" || exit 1; \ | |
2339 | case $(srcdir) in \ | |
b00612cc PB |
2340 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
2341 | *) topdir=`echo $(BUILD_SUBDIR)/flex/ | \ | |
2342 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
6a9cf61e | 2343 | esac; \ |
b00612cc PB |
2344 | srcdiroption="--srcdir=$${topdir}/flex"; \ |
2345 | libsrcdir="$$s/flex"; \ | |
6a9cf61e PB |
2346 | rm -f no-such-file || : ; \ |
2347 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
a7254363 | 2348 | $(BUILD_CONFIGARGS) $${srcdiroption} \ |
6a9cf61e PB |
2349 | || exit 1 |
2350 | @endif build-flex | |
2351 | ||
a7254363 PB |
2352 | |
2353 | ||
6a9cf61e PB |
2354 | .PHONY: all-build-flex maybe-all-build-flex |
2355 | maybe-all-build-flex: | |
2356 | @if build-flex | |
72b2455a | 2357 | TARGET-build-flex=all |
6a9cf61e PB |
2358 | maybe-all-build-flex: all-build-flex |
2359 | all-build-flex: configure-build-flex | |
2360 | @r=`${PWD_COMMAND}`; export r; \ | |
2361 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
2362 | $(BUILD_EXPORTS) \ | |
72b2455a | 2363 | (cd $(BUILD_SUBDIR)/flex && \ |
a7254363 | 2364 | $(MAKE) $(TARGET-build-flex)) |
6a9cf61e PB |
2365 | @endif build-flex |
2366 | ||
a7254363 PB |
2367 | |
2368 | ||
6a9cf61e PB |
2369 | .PHONY: configure-build-m4 maybe-configure-build-m4 |
2370 | maybe-configure-build-m4: | |
2371 | @if build-m4 | |
2372 | maybe-configure-build-m4: configure-build-m4 | |
a7254363 | 2373 | configure-build-m4: |
6a9cf61e PB |
2374 | @test ! -f $(BUILD_SUBDIR)/m4/Makefile || exit 0; \ |
2375 | $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/m4 ; \ | |
2376 | r=`${PWD_COMMAND}`; export r; \ | |
2377 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
2378 | $(BUILD_EXPORTS) \ | |
2379 | echo Configuring in $(BUILD_SUBDIR)/m4; \ | |
2380 | cd "$(BUILD_SUBDIR)/m4" || exit 1; \ | |
2381 | case $(srcdir) in \ | |
b00612cc PB |
2382 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
2383 | *) topdir=`echo $(BUILD_SUBDIR)/m4/ | \ | |
2384 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
6a9cf61e | 2385 | esac; \ |
b00612cc PB |
2386 | srcdiroption="--srcdir=$${topdir}/m4"; \ |
2387 | libsrcdir="$$s/m4"; \ | |
6a9cf61e PB |
2388 | rm -f no-such-file || : ; \ |
2389 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
a7254363 | 2390 | $(BUILD_CONFIGARGS) $${srcdiroption} \ |
6a9cf61e PB |
2391 | || exit 1 |
2392 | @endif build-m4 | |
2393 | ||
a7254363 PB |
2394 | |
2395 | ||
6a9cf61e PB |
2396 | .PHONY: all-build-m4 maybe-all-build-m4 |
2397 | maybe-all-build-m4: | |
2398 | @if build-m4 | |
72b2455a | 2399 | TARGET-build-m4=all |
6a9cf61e PB |
2400 | maybe-all-build-m4: all-build-m4 |
2401 | all-build-m4: configure-build-m4 | |
2402 | @r=`${PWD_COMMAND}`; export r; \ | |
2403 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
2404 | $(BUILD_EXPORTS) \ | |
72b2455a | 2405 | (cd $(BUILD_SUBDIR)/m4 && \ |
a7254363 | 2406 | $(MAKE) $(TARGET-build-m4)) |
6a9cf61e PB |
2407 | @endif build-m4 |
2408 | ||
a7254363 PB |
2409 | |
2410 | ||
6a9cf61e PB |
2411 | .PHONY: configure-build-texinfo maybe-configure-build-texinfo |
2412 | maybe-configure-build-texinfo: | |
2413 | @if build-texinfo | |
2414 | maybe-configure-build-texinfo: configure-build-texinfo | |
a7254363 | 2415 | configure-build-texinfo: |
6a9cf61e PB |
2416 | @test ! -f $(BUILD_SUBDIR)/texinfo/Makefile || exit 0; \ |
2417 | $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/texinfo ; \ | |
2418 | r=`${PWD_COMMAND}`; export r; \ | |
2419 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
2420 | $(BUILD_EXPORTS) \ | |
2421 | echo Configuring in $(BUILD_SUBDIR)/texinfo; \ | |
2422 | cd "$(BUILD_SUBDIR)/texinfo" || exit 1; \ | |
2423 | case $(srcdir) in \ | |
b00612cc PB |
2424 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
2425 | *) topdir=`echo $(BUILD_SUBDIR)/texinfo/ | \ | |
2426 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
6a9cf61e | 2427 | esac; \ |
b00612cc PB |
2428 | srcdiroption="--srcdir=$${topdir}/texinfo"; \ |
2429 | libsrcdir="$$s/texinfo"; \ | |
6a9cf61e PB |
2430 | rm -f no-such-file || : ; \ |
2431 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
a7254363 | 2432 | $(BUILD_CONFIGARGS) $${srcdiroption} \ |
6a9cf61e PB |
2433 | || exit 1 |
2434 | @endif build-texinfo | |
2435 | ||
a7254363 PB |
2436 | |
2437 | ||
6a9cf61e PB |
2438 | .PHONY: all-build-texinfo maybe-all-build-texinfo |
2439 | maybe-all-build-texinfo: | |
2440 | @if build-texinfo | |
72b2455a | 2441 | TARGET-build-texinfo=all |
6a9cf61e PB |
2442 | maybe-all-build-texinfo: all-build-texinfo |
2443 | all-build-texinfo: configure-build-texinfo | |
2444 | @r=`${PWD_COMMAND}`; export r; \ | |
2445 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
2446 | $(BUILD_EXPORTS) \ | |
72b2455a | 2447 | (cd $(BUILD_SUBDIR)/texinfo && \ |
a7254363 | 2448 | $(MAKE) $(TARGET-build-texinfo)) |
6a9cf61e PB |
2449 | @endif build-texinfo |
2450 | ||
a7254363 PB |
2451 | |
2452 | ||
ee025550 PB |
2453 | .PHONY: configure-build-fixincludes maybe-configure-build-fixincludes |
2454 | maybe-configure-build-fixincludes: | |
2455 | @if build-fixincludes | |
2456 | maybe-configure-build-fixincludes: configure-build-fixincludes | |
a7254363 | 2457 | configure-build-fixincludes: |
ee025550 PB |
2458 | @test ! -f $(BUILD_SUBDIR)/fixincludes/Makefile || exit 0; \ |
2459 | $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/fixincludes ; \ | |
2460 | r=`${PWD_COMMAND}`; export r; \ | |
2461 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
2462 | $(BUILD_EXPORTS) \ | |
2463 | echo Configuring in $(BUILD_SUBDIR)/fixincludes; \ | |
2464 | cd "$(BUILD_SUBDIR)/fixincludes" || exit 1; \ | |
2465 | case $(srcdir) in \ | |
b00612cc PB |
2466 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
2467 | *) topdir=`echo $(BUILD_SUBDIR)/fixincludes/ | \ | |
2468 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
ee025550 | 2469 | esac; \ |
b00612cc PB |
2470 | srcdiroption="--srcdir=$${topdir}/fixincludes"; \ |
2471 | libsrcdir="$$s/fixincludes"; \ | |
ee025550 PB |
2472 | rm -f no-such-file || : ; \ |
2473 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
a7254363 | 2474 | $(BUILD_CONFIGARGS) $${srcdiroption} \ |
ee025550 PB |
2475 | || exit 1 |
2476 | @endif build-fixincludes | |
2477 | ||
a7254363 PB |
2478 | |
2479 | ||
ee025550 PB |
2480 | .PHONY: all-build-fixincludes maybe-all-build-fixincludes |
2481 | maybe-all-build-fixincludes: | |
2482 | @if build-fixincludes | |
2483 | TARGET-build-fixincludes=all | |
2484 | maybe-all-build-fixincludes: all-build-fixincludes | |
2485 | all-build-fixincludes: configure-build-fixincludes | |
2486 | @r=`${PWD_COMMAND}`; export r; \ | |
2487 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
2488 | $(BUILD_EXPORTS) \ | |
2489 | (cd $(BUILD_SUBDIR)/fixincludes && \ | |
a7254363 | 2490 | $(MAKE) $(TARGET-build-fixincludes)) |
ee025550 PB |
2491 | @endif build-fixincludes |
2492 | ||
2a4cbe27 | 2493 | |
a7254363 | 2494 | |
4fa63067 NN |
2495 | # -------------------------------------- |
2496 | # Modules which run on the host machine | |
2497 | # -------------------------------------- | |
2a4cbe27 | 2498 | |
a7254363 | 2499 | |
4fa63067 NN |
2500 | .PHONY: configure-ash maybe-configure-ash |
2501 | maybe-configure-ash: | |
6bd3dfaa PB |
2502 | @if ash |
2503 | maybe-configure-ash: configure-ash | |
a7254363 | 2504 | configure-ash: |
b00612cc PB |
2505 | @test ! -f $(HOST_SUBDIR)/ash/Makefile || exit 0; \ |
2506 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ash ; \ | |
b40e3958 L |
2507 | r=`${PWD_COMMAND}`; export r; \ |
2508 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 2509 | $(HOST_EXPORTS) \ |
a7254363 PB |
2510 | echo Configuring in $(HOST_SUBDIR)/ash; \ |
2511 | cd "$(HOST_SUBDIR)/ash" || exit 1; \ | |
4fa63067 | 2512 | case $(srcdir) in \ |
b00612cc PB |
2513 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
2514 | *) topdir=`echo $(HOST_SUBDIR)/ash/ | \ | |
2515 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 2516 | esac; \ |
b00612cc PB |
2517 | srcdiroption="--srcdir=$${topdir}/ash"; \ |
2518 | libsrcdir="$$s/ash"; \ | |
4fa63067 | 2519 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 2520 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
2a4cbe27 | 2521 | || exit 1 |
6bd3dfaa | 2522 | @endif ash |
2a4cbe27 | 2523 | |
a7254363 PB |
2524 | |
2525 | ||
4fa63067 NN |
2526 | .PHONY: all-ash maybe-all-ash |
2527 | maybe-all-ash: | |
6bd3dfaa | 2528 | @if ash |
d27cc32e | 2529 | TARGET-ash=all |
6bd3dfaa | 2530 | maybe-all-ash: all-ash |
4fa63067 NN |
2531 | all-ash: configure-ash |
2532 | @r=`${PWD_COMMAND}`; export r; \ | |
2533 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 2534 | $(HOST_EXPORTS) \ |
b00612cc PB |
2535 | (cd $(HOST_SUBDIR)/ash && \ |
2536 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-ash)) | |
6bd3dfaa | 2537 | @endif ash |
2a4cbe27 | 2538 | |
a7254363 | 2539 | |
4fa63067 NN |
2540 | .PHONY: check-ash maybe-check-ash |
2541 | maybe-check-ash: | |
6bd3dfaa PB |
2542 | @if ash |
2543 | maybe-check-ash: check-ash | |
2a4cbe27 | 2544 | |
4fa63067 NN |
2545 | check-ash: |
2546 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 2547 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 2548 | $(HOST_EXPORTS) \ |
b00612cc PB |
2549 | (cd $(HOST_SUBDIR)/ash && \ |
2550 | $(MAKE) $(FLAGS_TO_PASS) check) | |
2a4cbe27 | 2551 | |
6bd3dfaa | 2552 | @endif ash |
2a4cbe27 | 2553 | |
4fa63067 NN |
2554 | .PHONY: install-ash maybe-install-ash |
2555 | maybe-install-ash: | |
6bd3dfaa PB |
2556 | @if ash |
2557 | maybe-install-ash: install-ash | |
2a4cbe27 | 2558 | |
4fa63067 NN |
2559 | install-ash: installdirs |
2560 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 2561 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 2562 | $(HOST_EXPORTS) \ |
b00612cc | 2563 | (cd $(HOST_SUBDIR)/ash && \ |
2da12f12 | 2564 | $(MAKE) $(FLAGS_TO_PASS) install) |
2a4cbe27 | 2565 | |
6bd3dfaa | 2566 | @endif ash |
2a4cbe27 | 2567 | |
4fa63067 | 2568 | # Other targets (info, dvi, etc.) |
2a4cbe27 | 2569 | |
4fa63067 NN |
2570 | .PHONY: maybe-info-ash info-ash |
2571 | maybe-info-ash: | |
6bd3dfaa PB |
2572 | @if ash |
2573 | maybe-info-ash: info-ash | |
4fa63067 NN |
2574 | |
2575 | info-ash: \ | |
2576 | configure-ash | |
2577 | @[ -f ./ash/Makefile ] || exit 0; \ | |
b40e3958 L |
2578 | r=`${PWD_COMMAND}`; export r; \ |
2579 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 2580 | $(HOST_EXPORTS) \ |
b813574b | 2581 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
2582 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
2583 | done; \ | |
4fa63067 | 2584 | echo "Doing info in ash" ; \ |
b00612cc | 2585 | (cd $(HOST_SUBDIR)/ash && \ |
2a4cbe27 NN |
2586 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
2587 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
2588 | "RANLIB=$${RANLIB}" \ | |
2589 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 2590 | info) \ |
2a4cbe27 NN |
2591 | || exit 1 |
2592 | ||
6bd3dfaa | 2593 | @endif ash |
2a4cbe27 | 2594 | |
4fa63067 NN |
2595 | .PHONY: maybe-dvi-ash dvi-ash |
2596 | maybe-dvi-ash: | |
6bd3dfaa PB |
2597 | @if ash |
2598 | maybe-dvi-ash: dvi-ash | |
2a4cbe27 | 2599 | |
4fa63067 NN |
2600 | dvi-ash: \ |
2601 | configure-ash | |
2602 | @[ -f ./ash/Makefile ] || exit 0; \ | |
b40e3958 L |
2603 | r=`${PWD_COMMAND}`; export r; \ |
2604 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 2605 | $(HOST_EXPORTS) \ |
b813574b | 2606 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
2607 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
2608 | done; \ | |
4fa63067 | 2609 | echo "Doing dvi in ash" ; \ |
b00612cc | 2610 | (cd $(HOST_SUBDIR)/ash && \ |
2a4cbe27 NN |
2611 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
2612 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
2613 | "RANLIB=$${RANLIB}" \ | |
2614 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 2615 | dvi) \ |
2a4cbe27 NN |
2616 | || exit 1 |
2617 | ||
6bd3dfaa | 2618 | @endif ash |
2a4cbe27 | 2619 | |
6d389afc MS |
2620 | .PHONY: maybe-html-ash html-ash |
2621 | maybe-html-ash: | |
2622 | @if ash | |
2623 | maybe-html-ash: html-ash | |
2624 | ||
2625 | html-ash: \ | |
2626 | configure-ash | |
2627 | @[ -f ./ash/Makefile ] || exit 0; \ | |
2628 | r=`${PWD_COMMAND}`; export r; \ | |
2629 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
2630 | $(HOST_EXPORTS) \ |
2631 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
2632 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
2633 | done; \ | |
2634 | echo "Doing html in ash" ; \ | |
b00612cc | 2635 | (cd $(HOST_SUBDIR)/ash && \ |
6d389afc MS |
2636 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
2637 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
2638 | "RANLIB=$${RANLIB}" \ | |
2639 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
2640 | html) \ | |
2641 | || exit 1 | |
2642 | ||
2643 | @endif ash | |
2644 | ||
4fa63067 NN |
2645 | .PHONY: maybe-TAGS-ash TAGS-ash |
2646 | maybe-TAGS-ash: | |
6bd3dfaa PB |
2647 | @if ash |
2648 | maybe-TAGS-ash: TAGS-ash | |
2a4cbe27 | 2649 | |
4fa63067 NN |
2650 | TAGS-ash: \ |
2651 | configure-ash | |
2652 | @[ -f ./ash/Makefile ] || exit 0; \ | |
b40e3958 L |
2653 | r=`${PWD_COMMAND}`; export r; \ |
2654 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 2655 | $(HOST_EXPORTS) \ |
b813574b | 2656 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
2657 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
2658 | done; \ | |
4fa63067 | 2659 | echo "Doing TAGS in ash" ; \ |
b00612cc | 2660 | (cd $(HOST_SUBDIR)/ash && \ |
2a4cbe27 NN |
2661 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
2662 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
2663 | "RANLIB=$${RANLIB}" \ | |
2664 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 2665 | TAGS) \ |
2a4cbe27 NN |
2666 | || exit 1 |
2667 | ||
6bd3dfaa | 2668 | @endif ash |
2a4cbe27 | 2669 | |
4fa63067 NN |
2670 | .PHONY: maybe-install-info-ash install-info-ash |
2671 | maybe-install-info-ash: | |
6bd3dfaa PB |
2672 | @if ash |
2673 | maybe-install-info-ash: install-info-ash | |
2a4cbe27 | 2674 | |
4fa63067 NN |
2675 | install-info-ash: \ |
2676 | configure-ash \ | |
2677 | info-ash | |
2678 | @[ -f ./ash/Makefile ] || exit 0; \ | |
b40e3958 L |
2679 | r=`${PWD_COMMAND}`; export r; \ |
2680 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 2681 | $(HOST_EXPORTS) \ |
b813574b | 2682 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
2683 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
2684 | done; \ | |
4fa63067 | 2685 | echo "Doing install-info in ash" ; \ |
b00612cc | 2686 | (cd $(HOST_SUBDIR)/ash && \ |
2a4cbe27 NN |
2687 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
2688 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
2689 | "RANLIB=$${RANLIB}" \ | |
2690 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 2691 | install-info) \ |
2a4cbe27 NN |
2692 | || exit 1 |
2693 | ||
6bd3dfaa | 2694 | @endif ash |
2a4cbe27 | 2695 | |
4fa63067 NN |
2696 | .PHONY: maybe-installcheck-ash installcheck-ash |
2697 | maybe-installcheck-ash: | |
6bd3dfaa PB |
2698 | @if ash |
2699 | maybe-installcheck-ash: installcheck-ash | |
2a4cbe27 | 2700 | |
4fa63067 NN |
2701 | installcheck-ash: \ |
2702 | configure-ash | |
2703 | @[ -f ./ash/Makefile ] || exit 0; \ | |
b40e3958 L |
2704 | r=`${PWD_COMMAND}`; export r; \ |
2705 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 2706 | $(HOST_EXPORTS) \ |
b813574b | 2707 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
2708 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
2709 | done; \ | |
4fa63067 | 2710 | echo "Doing installcheck in ash" ; \ |
b00612cc | 2711 | (cd $(HOST_SUBDIR)/ash && \ |
2a4cbe27 NN |
2712 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
2713 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
2714 | "RANLIB=$${RANLIB}" \ | |
2715 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 2716 | installcheck) \ |
2a4cbe27 NN |
2717 | || exit 1 |
2718 | ||
6bd3dfaa | 2719 | @endif ash |
2a4cbe27 | 2720 | |
4fa63067 NN |
2721 | .PHONY: maybe-mostlyclean-ash mostlyclean-ash |
2722 | maybe-mostlyclean-ash: | |
6bd3dfaa PB |
2723 | @if ash |
2724 | maybe-mostlyclean-ash: mostlyclean-ash | |
2a4cbe27 | 2725 | |
4fa63067 NN |
2726 | mostlyclean-ash: |
2727 | @[ -f ./ash/Makefile ] || exit 0; \ | |
b40e3958 L |
2728 | r=`${PWD_COMMAND}`; export r; \ |
2729 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 2730 | $(HOST_EXPORTS) \ |
b813574b | 2731 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
2732 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
2733 | done; \ | |
4fa63067 | 2734 | echo "Doing mostlyclean in ash" ; \ |
b00612cc | 2735 | (cd $(HOST_SUBDIR)/ash && \ |
2a4cbe27 NN |
2736 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
2737 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
2738 | "RANLIB=$${RANLIB}" \ | |
2739 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 2740 | mostlyclean) \ |
2a4cbe27 NN |
2741 | || exit 1 |
2742 | ||
6bd3dfaa | 2743 | @endif ash |
2a4cbe27 | 2744 | |
4fa63067 NN |
2745 | .PHONY: maybe-clean-ash clean-ash |
2746 | maybe-clean-ash: | |
6bd3dfaa PB |
2747 | @if ash |
2748 | maybe-clean-ash: clean-ash | |
2a4cbe27 | 2749 | |
4fa63067 NN |
2750 | clean-ash: |
2751 | @[ -f ./ash/Makefile ] || exit 0; \ | |
b40e3958 L |
2752 | r=`${PWD_COMMAND}`; export r; \ |
2753 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 2754 | $(HOST_EXPORTS) \ |
b813574b | 2755 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
2756 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
2757 | done; \ | |
4fa63067 | 2758 | echo "Doing clean in ash" ; \ |
b00612cc | 2759 | (cd $(HOST_SUBDIR)/ash && \ |
2a4cbe27 NN |
2760 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
2761 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
2762 | "RANLIB=$${RANLIB}" \ | |
2763 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 2764 | clean) \ |
2a4cbe27 NN |
2765 | || exit 1 |
2766 | ||
6bd3dfaa | 2767 | @endif ash |
2a4cbe27 | 2768 | |
4fa63067 NN |
2769 | .PHONY: maybe-distclean-ash distclean-ash |
2770 | maybe-distclean-ash: | |
6bd3dfaa PB |
2771 | @if ash |
2772 | maybe-distclean-ash: distclean-ash | |
2a4cbe27 | 2773 | |
4fa63067 NN |
2774 | distclean-ash: |
2775 | @[ -f ./ash/Makefile ] || exit 0; \ | |
b40e3958 L |
2776 | r=`${PWD_COMMAND}`; export r; \ |
2777 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 2778 | $(HOST_EXPORTS) \ |
b813574b | 2779 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
2780 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
2781 | done; \ | |
4fa63067 | 2782 | echo "Doing distclean in ash" ; \ |
b00612cc | 2783 | (cd $(HOST_SUBDIR)/ash && \ |
2a4cbe27 NN |
2784 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
2785 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
2786 | "RANLIB=$${RANLIB}" \ | |
2787 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 2788 | distclean) \ |
2a4cbe27 NN |
2789 | || exit 1 |
2790 | ||
6bd3dfaa | 2791 | @endif ash |
2a4cbe27 | 2792 | |
4fa63067 NN |
2793 | .PHONY: maybe-maintainer-clean-ash maintainer-clean-ash |
2794 | maybe-maintainer-clean-ash: | |
6bd3dfaa PB |
2795 | @if ash |
2796 | maybe-maintainer-clean-ash: maintainer-clean-ash | |
2a4cbe27 | 2797 | |
4fa63067 NN |
2798 | maintainer-clean-ash: |
2799 | @[ -f ./ash/Makefile ] || exit 0; \ | |
b40e3958 L |
2800 | r=`${PWD_COMMAND}`; export r; \ |
2801 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 2802 | $(HOST_EXPORTS) \ |
b813574b | 2803 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
2804 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
2805 | done; \ | |
4fa63067 | 2806 | echo "Doing maintainer-clean in ash" ; \ |
b00612cc | 2807 | (cd $(HOST_SUBDIR)/ash && \ |
2a4cbe27 NN |
2808 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
2809 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
2810 | "RANLIB=$${RANLIB}" \ | |
2811 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 2812 | maintainer-clean) \ |
2a4cbe27 NN |
2813 | || exit 1 |
2814 | ||
6bd3dfaa | 2815 | @endif ash |
2a4cbe27 | 2816 | |
2a4cbe27 | 2817 | |
a7254363 | 2818 | |
4fa63067 NN |
2819 | .PHONY: configure-autoconf maybe-configure-autoconf |
2820 | maybe-configure-autoconf: | |
6bd3dfaa PB |
2821 | @if autoconf |
2822 | maybe-configure-autoconf: configure-autoconf | |
a7254363 | 2823 | configure-autoconf: |
b00612cc PB |
2824 | @test ! -f $(HOST_SUBDIR)/autoconf/Makefile || exit 0; \ |
2825 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/autoconf ; \ | |
b40e3958 L |
2826 | r=`${PWD_COMMAND}`; export r; \ |
2827 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 2828 | $(HOST_EXPORTS) \ |
a7254363 PB |
2829 | echo Configuring in $(HOST_SUBDIR)/autoconf; \ |
2830 | cd "$(HOST_SUBDIR)/autoconf" || exit 1; \ | |
4fa63067 | 2831 | case $(srcdir) in \ |
b00612cc PB |
2832 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
2833 | *) topdir=`echo $(HOST_SUBDIR)/autoconf/ | \ | |
2834 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 2835 | esac; \ |
b00612cc PB |
2836 | srcdiroption="--srcdir=$${topdir}/autoconf"; \ |
2837 | libsrcdir="$$s/autoconf"; \ | |
4fa63067 | 2838 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 2839 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
2a4cbe27 | 2840 | || exit 1 |
6bd3dfaa | 2841 | @endif autoconf |
2a4cbe27 | 2842 | |
a7254363 PB |
2843 | |
2844 | ||
4fa63067 NN |
2845 | .PHONY: all-autoconf maybe-all-autoconf |
2846 | maybe-all-autoconf: | |
6bd3dfaa | 2847 | @if autoconf |
d27cc32e | 2848 | TARGET-autoconf=all |
6bd3dfaa | 2849 | maybe-all-autoconf: all-autoconf |
4fa63067 NN |
2850 | all-autoconf: configure-autoconf |
2851 | @r=`${PWD_COMMAND}`; export r; \ | |
2852 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 2853 | $(HOST_EXPORTS) \ |
b00612cc PB |
2854 | (cd $(HOST_SUBDIR)/autoconf && \ |
2855 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-autoconf)) | |
6bd3dfaa | 2856 | @endif autoconf |
2a4cbe27 | 2857 | |
a7254363 | 2858 | |
4fa63067 NN |
2859 | .PHONY: check-autoconf maybe-check-autoconf |
2860 | maybe-check-autoconf: | |
6bd3dfaa PB |
2861 | @if autoconf |
2862 | maybe-check-autoconf: check-autoconf | |
2a4cbe27 | 2863 | |
4fa63067 NN |
2864 | check-autoconf: |
2865 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 2866 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 2867 | $(HOST_EXPORTS) \ |
b00612cc PB |
2868 | (cd $(HOST_SUBDIR)/autoconf && \ |
2869 | $(MAKE) $(FLAGS_TO_PASS) check) | |
2a4cbe27 | 2870 | |
6bd3dfaa | 2871 | @endif autoconf |
2a4cbe27 | 2872 | |
4fa63067 NN |
2873 | .PHONY: install-autoconf maybe-install-autoconf |
2874 | maybe-install-autoconf: | |
6bd3dfaa PB |
2875 | @if autoconf |
2876 | maybe-install-autoconf: install-autoconf | |
2a4cbe27 | 2877 | |
4fa63067 NN |
2878 | install-autoconf: installdirs |
2879 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 2880 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 2881 | $(HOST_EXPORTS) \ |
b00612cc | 2882 | (cd $(HOST_SUBDIR)/autoconf && \ |
2da12f12 | 2883 | $(MAKE) $(FLAGS_TO_PASS) install) |
2a4cbe27 | 2884 | |
6bd3dfaa | 2885 | @endif autoconf |
2a4cbe27 | 2886 | |
4fa63067 | 2887 | # Other targets (info, dvi, etc.) |
2a4cbe27 | 2888 | |
4fa63067 NN |
2889 | .PHONY: maybe-info-autoconf info-autoconf |
2890 | maybe-info-autoconf: | |
6bd3dfaa PB |
2891 | @if autoconf |
2892 | maybe-info-autoconf: info-autoconf | |
4fa63067 NN |
2893 | |
2894 | info-autoconf: \ | |
2895 | configure-autoconf | |
2896 | @[ -f ./autoconf/Makefile ] || exit 0; \ | |
b40e3958 L |
2897 | r=`${PWD_COMMAND}`; export r; \ |
2898 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 2899 | $(HOST_EXPORTS) \ |
b813574b | 2900 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
2901 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
2902 | done; \ | |
4fa63067 | 2903 | echo "Doing info in autoconf" ; \ |
b00612cc | 2904 | (cd $(HOST_SUBDIR)/autoconf && \ |
2a4cbe27 NN |
2905 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
2906 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
2907 | "RANLIB=$${RANLIB}" \ | |
2908 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 2909 | info) \ |
2a4cbe27 NN |
2910 | || exit 1 |
2911 | ||
6bd3dfaa | 2912 | @endif autoconf |
2a4cbe27 | 2913 | |
4fa63067 NN |
2914 | .PHONY: maybe-dvi-autoconf dvi-autoconf |
2915 | maybe-dvi-autoconf: | |
6bd3dfaa PB |
2916 | @if autoconf |
2917 | maybe-dvi-autoconf: dvi-autoconf | |
2a4cbe27 | 2918 | |
4fa63067 NN |
2919 | dvi-autoconf: \ |
2920 | configure-autoconf | |
2921 | @[ -f ./autoconf/Makefile ] || exit 0; \ | |
b40e3958 L |
2922 | r=`${PWD_COMMAND}`; export r; \ |
2923 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
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 | 2928 | echo "Doing dvi in autoconf" ; \ |
b00612cc | 2929 | (cd $(HOST_SUBDIR)/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 | |
6d389afc MS |
2939 | .PHONY: maybe-html-autoconf html-autoconf |
2940 | maybe-html-autoconf: | |
2941 | @if autoconf | |
2942 | maybe-html-autoconf: html-autoconf | |
2943 | ||
2944 | html-autoconf: \ | |
2945 | configure-autoconf | |
2946 | @[ -f ./autoconf/Makefile ] || exit 0; \ | |
2947 | r=`${PWD_COMMAND}`; export r; \ | |
2948 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
2949 | $(HOST_EXPORTS) \ |
2950 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
2951 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
2952 | done; \ | |
2953 | echo "Doing html in autoconf" ; \ | |
b00612cc | 2954 | (cd $(HOST_SUBDIR)/autoconf && \ |
6d389afc MS |
2955 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
2956 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
2957 | "RANLIB=$${RANLIB}" \ | |
2958 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
2959 | html) \ | |
2960 | || exit 1 | |
2961 | ||
2962 | @endif autoconf | |
2963 | ||
4fa63067 NN |
2964 | .PHONY: maybe-TAGS-autoconf TAGS-autoconf |
2965 | maybe-TAGS-autoconf: | |
6bd3dfaa PB |
2966 | @if autoconf |
2967 | maybe-TAGS-autoconf: TAGS-autoconf | |
2a4cbe27 | 2968 | |
4fa63067 NN |
2969 | TAGS-autoconf: \ |
2970 | configure-autoconf | |
2971 | @[ -f ./autoconf/Makefile ] || exit 0; \ | |
b40e3958 L |
2972 | r=`${PWD_COMMAND}`; export r; \ |
2973 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 2974 | $(HOST_EXPORTS) \ |
b813574b | 2975 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
2976 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
2977 | done; \ | |
4fa63067 | 2978 | echo "Doing TAGS in autoconf" ; \ |
b00612cc | 2979 | (cd $(HOST_SUBDIR)/autoconf && \ |
2a4cbe27 NN |
2980 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
2981 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
2982 | "RANLIB=$${RANLIB}" \ | |
2983 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 2984 | TAGS) \ |
2a4cbe27 NN |
2985 | || exit 1 |
2986 | ||
6bd3dfaa | 2987 | @endif autoconf |
2a4cbe27 | 2988 | |
4fa63067 NN |
2989 | .PHONY: maybe-install-info-autoconf install-info-autoconf |
2990 | maybe-install-info-autoconf: | |
6bd3dfaa PB |
2991 | @if autoconf |
2992 | maybe-install-info-autoconf: install-info-autoconf | |
2a4cbe27 | 2993 | |
4fa63067 NN |
2994 | install-info-autoconf: \ |
2995 | configure-autoconf \ | |
2996 | info-autoconf | |
2997 | @[ -f ./autoconf/Makefile ] || exit 0; \ | |
b40e3958 L |
2998 | r=`${PWD_COMMAND}`; export r; \ |
2999 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3000 | $(HOST_EXPORTS) \ |
b813574b | 3001 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3002 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3003 | done; \ | |
4fa63067 | 3004 | echo "Doing install-info in autoconf" ; \ |
b00612cc | 3005 | (cd $(HOST_SUBDIR)/autoconf && \ |
2a4cbe27 NN |
3006 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3007 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3008 | "RANLIB=$${RANLIB}" \ | |
3009 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 3010 | install-info) \ |
2a4cbe27 NN |
3011 | || exit 1 |
3012 | ||
6bd3dfaa | 3013 | @endif autoconf |
2a4cbe27 | 3014 | |
4fa63067 NN |
3015 | .PHONY: maybe-installcheck-autoconf installcheck-autoconf |
3016 | maybe-installcheck-autoconf: | |
6bd3dfaa PB |
3017 | @if autoconf |
3018 | maybe-installcheck-autoconf: installcheck-autoconf | |
2a4cbe27 | 3019 | |
4fa63067 NN |
3020 | installcheck-autoconf: \ |
3021 | configure-autoconf | |
3022 | @[ -f ./autoconf/Makefile ] || exit 0; \ | |
b40e3958 L |
3023 | r=`${PWD_COMMAND}`; export r; \ |
3024 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3025 | $(HOST_EXPORTS) \ |
b813574b | 3026 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3027 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3028 | done; \ | |
4fa63067 | 3029 | echo "Doing installcheck in autoconf" ; \ |
b00612cc | 3030 | (cd $(HOST_SUBDIR)/autoconf && \ |
2a4cbe27 NN |
3031 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3032 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3033 | "RANLIB=$${RANLIB}" \ | |
3034 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 3035 | installcheck) \ |
2a4cbe27 NN |
3036 | || exit 1 |
3037 | ||
6bd3dfaa | 3038 | @endif autoconf |
2a4cbe27 | 3039 | |
4fa63067 NN |
3040 | .PHONY: maybe-mostlyclean-autoconf mostlyclean-autoconf |
3041 | maybe-mostlyclean-autoconf: | |
6bd3dfaa PB |
3042 | @if autoconf |
3043 | maybe-mostlyclean-autoconf: mostlyclean-autoconf | |
2a4cbe27 | 3044 | |
4fa63067 NN |
3045 | mostlyclean-autoconf: |
3046 | @[ -f ./autoconf/Makefile ] || exit 0; \ | |
b40e3958 L |
3047 | r=`${PWD_COMMAND}`; export r; \ |
3048 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3049 | $(HOST_EXPORTS) \ |
b813574b | 3050 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3051 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3052 | done; \ | |
4fa63067 | 3053 | echo "Doing mostlyclean in autoconf" ; \ |
b00612cc | 3054 | (cd $(HOST_SUBDIR)/autoconf && \ |
2a4cbe27 NN |
3055 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3056 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3057 | "RANLIB=$${RANLIB}" \ | |
3058 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 3059 | mostlyclean) \ |
2a4cbe27 NN |
3060 | || exit 1 |
3061 | ||
6bd3dfaa | 3062 | @endif autoconf |
2a4cbe27 | 3063 | |
4fa63067 NN |
3064 | .PHONY: maybe-clean-autoconf clean-autoconf |
3065 | maybe-clean-autoconf: | |
6bd3dfaa PB |
3066 | @if autoconf |
3067 | maybe-clean-autoconf: clean-autoconf | |
2a4cbe27 | 3068 | |
4fa63067 NN |
3069 | clean-autoconf: |
3070 | @[ -f ./autoconf/Makefile ] || exit 0; \ | |
b40e3958 L |
3071 | r=`${PWD_COMMAND}`; export r; \ |
3072 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3073 | $(HOST_EXPORTS) \ |
b813574b | 3074 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3075 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3076 | done; \ | |
4fa63067 | 3077 | echo "Doing clean in autoconf" ; \ |
b00612cc | 3078 | (cd $(HOST_SUBDIR)/autoconf && \ |
2a4cbe27 NN |
3079 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3080 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3081 | "RANLIB=$${RANLIB}" \ | |
3082 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 3083 | clean) \ |
2a4cbe27 NN |
3084 | || exit 1 |
3085 | ||
6bd3dfaa | 3086 | @endif autoconf |
2a4cbe27 | 3087 | |
4fa63067 NN |
3088 | .PHONY: maybe-distclean-autoconf distclean-autoconf |
3089 | maybe-distclean-autoconf: | |
6bd3dfaa PB |
3090 | @if autoconf |
3091 | maybe-distclean-autoconf: distclean-autoconf | |
2a4cbe27 | 3092 | |
4fa63067 NN |
3093 | distclean-autoconf: |
3094 | @[ -f ./autoconf/Makefile ] || exit 0; \ | |
b40e3958 L |
3095 | r=`${PWD_COMMAND}`; export r; \ |
3096 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3097 | $(HOST_EXPORTS) \ |
b813574b | 3098 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3099 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3100 | done; \ | |
4fa63067 | 3101 | echo "Doing distclean in autoconf" ; \ |
b00612cc | 3102 | (cd $(HOST_SUBDIR)/autoconf && \ |
2a4cbe27 NN |
3103 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3104 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3105 | "RANLIB=$${RANLIB}" \ | |
3106 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 3107 | distclean) \ |
2a4cbe27 NN |
3108 | || exit 1 |
3109 | ||
6bd3dfaa | 3110 | @endif autoconf |
2a4cbe27 | 3111 | |
4fa63067 NN |
3112 | .PHONY: maybe-maintainer-clean-autoconf maintainer-clean-autoconf |
3113 | maybe-maintainer-clean-autoconf: | |
6bd3dfaa PB |
3114 | @if autoconf |
3115 | maybe-maintainer-clean-autoconf: maintainer-clean-autoconf | |
2a4cbe27 | 3116 | |
4fa63067 NN |
3117 | maintainer-clean-autoconf: |
3118 | @[ -f ./autoconf/Makefile ] || exit 0; \ | |
b40e3958 L |
3119 | r=`${PWD_COMMAND}`; export r; \ |
3120 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3121 | $(HOST_EXPORTS) \ |
b813574b | 3122 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3123 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3124 | done; \ | |
4fa63067 | 3125 | echo "Doing maintainer-clean in autoconf" ; \ |
b00612cc | 3126 | (cd $(HOST_SUBDIR)/autoconf && \ |
2a4cbe27 NN |
3127 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3128 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3129 | "RANLIB=$${RANLIB}" \ | |
3130 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 3131 | maintainer-clean) \ |
2a4cbe27 NN |
3132 | || exit 1 |
3133 | ||
6bd3dfaa | 3134 | @endif autoconf |
2a4cbe27 | 3135 | |
2a4cbe27 | 3136 | |
a7254363 | 3137 | |
4fa63067 NN |
3138 | .PHONY: configure-automake maybe-configure-automake |
3139 | maybe-configure-automake: | |
6bd3dfaa PB |
3140 | @if automake |
3141 | maybe-configure-automake: configure-automake | |
a7254363 | 3142 | configure-automake: |
b00612cc PB |
3143 | @test ! -f $(HOST_SUBDIR)/automake/Makefile || exit 0; \ |
3144 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/automake ; \ | |
b40e3958 L |
3145 | r=`${PWD_COMMAND}`; export r; \ |
3146 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3147 | $(HOST_EXPORTS) \ |
a7254363 PB |
3148 | echo Configuring in $(HOST_SUBDIR)/automake; \ |
3149 | cd "$(HOST_SUBDIR)/automake" || exit 1; \ | |
4fa63067 | 3150 | case $(srcdir) in \ |
b00612cc PB |
3151 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
3152 | *) topdir=`echo $(HOST_SUBDIR)/automake/ | \ | |
3153 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 3154 | esac; \ |
b00612cc PB |
3155 | srcdiroption="--srcdir=$${topdir}/automake"; \ |
3156 | libsrcdir="$$s/automake"; \ | |
4fa63067 | 3157 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 3158 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
2a4cbe27 | 3159 | || exit 1 |
6bd3dfaa | 3160 | @endif automake |
2a4cbe27 | 3161 | |
a7254363 PB |
3162 | |
3163 | ||
4fa63067 NN |
3164 | .PHONY: all-automake maybe-all-automake |
3165 | maybe-all-automake: | |
6bd3dfaa | 3166 | @if automake |
d27cc32e | 3167 | TARGET-automake=all |
6bd3dfaa | 3168 | maybe-all-automake: all-automake |
4fa63067 NN |
3169 | all-automake: configure-automake |
3170 | @r=`${PWD_COMMAND}`; export r; \ | |
3171 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3172 | $(HOST_EXPORTS) \ |
b00612cc PB |
3173 | (cd $(HOST_SUBDIR)/automake && \ |
3174 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-automake)) | |
6bd3dfaa | 3175 | @endif automake |
2a4cbe27 | 3176 | |
a7254363 | 3177 | |
4fa63067 NN |
3178 | .PHONY: check-automake maybe-check-automake |
3179 | maybe-check-automake: | |
6bd3dfaa PB |
3180 | @if automake |
3181 | maybe-check-automake: check-automake | |
2a4cbe27 | 3182 | |
4fa63067 NN |
3183 | check-automake: |
3184 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 3185 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 3186 | $(HOST_EXPORTS) \ |
b00612cc PB |
3187 | (cd $(HOST_SUBDIR)/automake && \ |
3188 | $(MAKE) $(FLAGS_TO_PASS) check) | |
4fa63067 | 3189 | |
6bd3dfaa | 3190 | @endif automake |
4fa63067 NN |
3191 | |
3192 | .PHONY: install-automake maybe-install-automake | |
3193 | maybe-install-automake: | |
6bd3dfaa PB |
3194 | @if automake |
3195 | maybe-install-automake: install-automake | |
2a4cbe27 | 3196 | |
4fa63067 NN |
3197 | install-automake: installdirs |
3198 | @r=`${PWD_COMMAND}`; export r; \ | |
3199 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3200 | $(HOST_EXPORTS) \ |
b00612cc | 3201 | (cd $(HOST_SUBDIR)/automake && \ |
2da12f12 | 3202 | $(MAKE) $(FLAGS_TO_PASS) install) |
2a4cbe27 | 3203 | |
6bd3dfaa | 3204 | @endif automake |
2a4cbe27 | 3205 | |
4fa63067 NN |
3206 | # Other targets (info, dvi, etc.) |
3207 | ||
3208 | .PHONY: maybe-info-automake info-automake | |
3209 | maybe-info-automake: | |
6bd3dfaa PB |
3210 | @if automake |
3211 | maybe-info-automake: info-automake | |
4fa63067 NN |
3212 | |
3213 | info-automake: \ | |
3214 | configure-automake | |
3215 | @[ -f ./automake/Makefile ] || exit 0; \ | |
b40e3958 L |
3216 | r=`${PWD_COMMAND}`; export r; \ |
3217 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3218 | $(HOST_EXPORTS) \ |
b813574b | 3219 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3220 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3221 | done; \ | |
4fa63067 | 3222 | echo "Doing info in automake" ; \ |
b00612cc | 3223 | (cd $(HOST_SUBDIR)/automake && \ |
2a4cbe27 NN |
3224 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3225 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3226 | "RANLIB=$${RANLIB}" \ | |
3227 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 3228 | info) \ |
2a4cbe27 NN |
3229 | || exit 1 |
3230 | ||
6bd3dfaa | 3231 | @endif automake |
2a4cbe27 | 3232 | |
4fa63067 NN |
3233 | .PHONY: maybe-dvi-automake dvi-automake |
3234 | maybe-dvi-automake: | |
6bd3dfaa PB |
3235 | @if automake |
3236 | maybe-dvi-automake: dvi-automake | |
2a4cbe27 | 3237 | |
4fa63067 NN |
3238 | dvi-automake: \ |
3239 | configure-automake | |
3240 | @[ -f ./automake/Makefile ] || exit 0; \ | |
b40e3958 L |
3241 | r=`${PWD_COMMAND}`; export r; \ |
3242 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3243 | $(HOST_EXPORTS) \ |
b813574b | 3244 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3245 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3246 | done; \ | |
4fa63067 | 3247 | echo "Doing dvi in automake" ; \ |
b00612cc | 3248 | (cd $(HOST_SUBDIR)/automake && \ |
2a4cbe27 NN |
3249 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3250 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3251 | "RANLIB=$${RANLIB}" \ | |
3252 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 3253 | dvi) \ |
2a4cbe27 NN |
3254 | || exit 1 |
3255 | ||
6bd3dfaa | 3256 | @endif automake |
2a4cbe27 | 3257 | |
6d389afc MS |
3258 | .PHONY: maybe-html-automake html-automake |
3259 | maybe-html-automake: | |
3260 | @if automake | |
3261 | maybe-html-automake: html-automake | |
3262 | ||
3263 | html-automake: \ | |
3264 | configure-automake | |
3265 | @[ -f ./automake/Makefile ] || exit 0; \ | |
3266 | r=`${PWD_COMMAND}`; export r; \ | |
3267 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
3268 | $(HOST_EXPORTS) \ |
3269 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
3270 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
3271 | done; \ | |
3272 | echo "Doing html in automake" ; \ | |
b00612cc | 3273 | (cd $(HOST_SUBDIR)/automake && \ |
6d389afc MS |
3274 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3275 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3276 | "RANLIB=$${RANLIB}" \ | |
3277 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
3278 | html) \ | |
3279 | || exit 1 | |
3280 | ||
3281 | @endif automake | |
3282 | ||
4fa63067 NN |
3283 | .PHONY: maybe-TAGS-automake TAGS-automake |
3284 | maybe-TAGS-automake: | |
6bd3dfaa PB |
3285 | @if automake |
3286 | maybe-TAGS-automake: TAGS-automake | |
2a4cbe27 | 3287 | |
4fa63067 NN |
3288 | TAGS-automake: \ |
3289 | configure-automake | |
3290 | @[ -f ./automake/Makefile ] || exit 0; \ | |
b40e3958 L |
3291 | r=`${PWD_COMMAND}`; export r; \ |
3292 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3293 | $(HOST_EXPORTS) \ |
b813574b | 3294 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3295 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3296 | done; \ | |
4fa63067 | 3297 | echo "Doing TAGS in automake" ; \ |
b00612cc | 3298 | (cd $(HOST_SUBDIR)/automake && \ |
2a4cbe27 NN |
3299 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3300 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3301 | "RANLIB=$${RANLIB}" \ | |
3302 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 3303 | TAGS) \ |
2a4cbe27 NN |
3304 | || exit 1 |
3305 | ||
6bd3dfaa | 3306 | @endif automake |
2a4cbe27 | 3307 | |
4fa63067 NN |
3308 | .PHONY: maybe-install-info-automake install-info-automake |
3309 | maybe-install-info-automake: | |
6bd3dfaa PB |
3310 | @if automake |
3311 | maybe-install-info-automake: install-info-automake | |
2a4cbe27 | 3312 | |
4fa63067 NN |
3313 | install-info-automake: \ |
3314 | configure-automake \ | |
3315 | info-automake | |
3316 | @[ -f ./automake/Makefile ] || exit 0; \ | |
b40e3958 L |
3317 | r=`${PWD_COMMAND}`; export r; \ |
3318 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3319 | $(HOST_EXPORTS) \ |
b813574b | 3320 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3321 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3322 | done; \ | |
4fa63067 | 3323 | echo "Doing install-info in automake" ; \ |
b00612cc | 3324 | (cd $(HOST_SUBDIR)/automake && \ |
2a4cbe27 NN |
3325 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3326 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3327 | "RANLIB=$${RANLIB}" \ | |
3328 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 3329 | install-info) \ |
2a4cbe27 NN |
3330 | || exit 1 |
3331 | ||
6bd3dfaa | 3332 | @endif automake |
2a4cbe27 | 3333 | |
4fa63067 NN |
3334 | .PHONY: maybe-installcheck-automake installcheck-automake |
3335 | maybe-installcheck-automake: | |
6bd3dfaa PB |
3336 | @if automake |
3337 | maybe-installcheck-automake: installcheck-automake | |
2a4cbe27 | 3338 | |
4fa63067 NN |
3339 | installcheck-automake: \ |
3340 | configure-automake | |
3341 | @[ -f ./automake/Makefile ] || exit 0; \ | |
b40e3958 L |
3342 | r=`${PWD_COMMAND}`; export r; \ |
3343 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3344 | $(HOST_EXPORTS) \ |
b813574b | 3345 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3346 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3347 | done; \ | |
4fa63067 | 3348 | echo "Doing installcheck in automake" ; \ |
b00612cc | 3349 | (cd $(HOST_SUBDIR)/automake && \ |
2a4cbe27 NN |
3350 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3351 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3352 | "RANLIB=$${RANLIB}" \ | |
3353 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 3354 | installcheck) \ |
2a4cbe27 NN |
3355 | || exit 1 |
3356 | ||
6bd3dfaa | 3357 | @endif automake |
2a4cbe27 | 3358 | |
4fa63067 NN |
3359 | .PHONY: maybe-mostlyclean-automake mostlyclean-automake |
3360 | maybe-mostlyclean-automake: | |
6bd3dfaa PB |
3361 | @if automake |
3362 | maybe-mostlyclean-automake: mostlyclean-automake | |
2a4cbe27 | 3363 | |
4fa63067 NN |
3364 | mostlyclean-automake: |
3365 | @[ -f ./automake/Makefile ] || exit 0; \ | |
b40e3958 L |
3366 | r=`${PWD_COMMAND}`; export r; \ |
3367 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3368 | $(HOST_EXPORTS) \ |
b813574b | 3369 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3370 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3371 | done; \ | |
4fa63067 | 3372 | echo "Doing mostlyclean in automake" ; \ |
b00612cc | 3373 | (cd $(HOST_SUBDIR)/automake && \ |
2a4cbe27 NN |
3374 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3375 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3376 | "RANLIB=$${RANLIB}" \ | |
3377 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 3378 | mostlyclean) \ |
2a4cbe27 NN |
3379 | || exit 1 |
3380 | ||
6bd3dfaa | 3381 | @endif automake |
2a4cbe27 | 3382 | |
4fa63067 NN |
3383 | .PHONY: maybe-clean-automake clean-automake |
3384 | maybe-clean-automake: | |
6bd3dfaa PB |
3385 | @if automake |
3386 | maybe-clean-automake: clean-automake | |
2a4cbe27 | 3387 | |
4fa63067 NN |
3388 | clean-automake: |
3389 | @[ -f ./automake/Makefile ] || exit 0; \ | |
b40e3958 L |
3390 | r=`${PWD_COMMAND}`; export r; \ |
3391 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3392 | $(HOST_EXPORTS) \ |
b813574b | 3393 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3394 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3395 | done; \ | |
4fa63067 | 3396 | echo "Doing clean in automake" ; \ |
b00612cc | 3397 | (cd $(HOST_SUBDIR)/automake && \ |
2a4cbe27 NN |
3398 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3399 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3400 | "RANLIB=$${RANLIB}" \ | |
3401 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 3402 | clean) \ |
2a4cbe27 NN |
3403 | || exit 1 |
3404 | ||
6bd3dfaa | 3405 | @endif automake |
2a4cbe27 | 3406 | |
4fa63067 NN |
3407 | .PHONY: maybe-distclean-automake distclean-automake |
3408 | maybe-distclean-automake: | |
6bd3dfaa PB |
3409 | @if automake |
3410 | maybe-distclean-automake: distclean-automake | |
2a4cbe27 | 3411 | |
4fa63067 NN |
3412 | distclean-automake: |
3413 | @[ -f ./automake/Makefile ] || exit 0; \ | |
b40e3958 L |
3414 | r=`${PWD_COMMAND}`; export r; \ |
3415 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3416 | $(HOST_EXPORTS) \ |
b813574b | 3417 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3418 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3419 | done; \ | |
4fa63067 | 3420 | echo "Doing distclean in automake" ; \ |
b00612cc | 3421 | (cd $(HOST_SUBDIR)/automake && \ |
2a4cbe27 NN |
3422 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3423 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3424 | "RANLIB=$${RANLIB}" \ | |
3425 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 3426 | distclean) \ |
2a4cbe27 NN |
3427 | || exit 1 |
3428 | ||
6bd3dfaa | 3429 | @endif automake |
2a4cbe27 | 3430 | |
4fa63067 NN |
3431 | .PHONY: maybe-maintainer-clean-automake maintainer-clean-automake |
3432 | maybe-maintainer-clean-automake: | |
6bd3dfaa PB |
3433 | @if automake |
3434 | maybe-maintainer-clean-automake: maintainer-clean-automake | |
2a4cbe27 | 3435 | |
4fa63067 NN |
3436 | maintainer-clean-automake: |
3437 | @[ -f ./automake/Makefile ] || exit 0; \ | |
b40e3958 L |
3438 | r=`${PWD_COMMAND}`; export r; \ |
3439 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3440 | $(HOST_EXPORTS) \ |
b813574b | 3441 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3442 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3443 | done; \ | |
4fa63067 | 3444 | echo "Doing maintainer-clean in automake" ; \ |
b00612cc | 3445 | (cd $(HOST_SUBDIR)/automake && \ |
2a4cbe27 NN |
3446 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3447 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3448 | "RANLIB=$${RANLIB}" \ | |
3449 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 3450 | maintainer-clean) \ |
2a4cbe27 NN |
3451 | || exit 1 |
3452 | ||
6bd3dfaa | 3453 | @endif automake |
2a4cbe27 | 3454 | |
2a4cbe27 | 3455 | |
a7254363 | 3456 | |
4fa63067 NN |
3457 | .PHONY: configure-bash maybe-configure-bash |
3458 | maybe-configure-bash: | |
6bd3dfaa PB |
3459 | @if bash |
3460 | maybe-configure-bash: configure-bash | |
a7254363 | 3461 | configure-bash: |
b00612cc PB |
3462 | @test ! -f $(HOST_SUBDIR)/bash/Makefile || exit 0; \ |
3463 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bash ; \ | |
b40e3958 L |
3464 | r=`${PWD_COMMAND}`; export r; \ |
3465 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3466 | $(HOST_EXPORTS) \ |
a7254363 PB |
3467 | echo Configuring in $(HOST_SUBDIR)/bash; \ |
3468 | cd "$(HOST_SUBDIR)/bash" || exit 1; \ | |
4fa63067 | 3469 | case $(srcdir) in \ |
b00612cc PB |
3470 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
3471 | *) topdir=`echo $(HOST_SUBDIR)/bash/ | \ | |
3472 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 3473 | esac; \ |
b00612cc PB |
3474 | srcdiroption="--srcdir=$${topdir}/bash"; \ |
3475 | libsrcdir="$$s/bash"; \ | |
4fa63067 | 3476 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 3477 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
2a4cbe27 | 3478 | || exit 1 |
6bd3dfaa | 3479 | @endif bash |
2a4cbe27 | 3480 | |
a7254363 PB |
3481 | |
3482 | ||
4fa63067 NN |
3483 | .PHONY: all-bash maybe-all-bash |
3484 | maybe-all-bash: | |
6bd3dfaa | 3485 | @if bash |
d27cc32e | 3486 | TARGET-bash=all |
6bd3dfaa | 3487 | maybe-all-bash: all-bash |
4fa63067 NN |
3488 | all-bash: configure-bash |
3489 | @r=`${PWD_COMMAND}`; export r; \ | |
3490 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3491 | $(HOST_EXPORTS) \ |
b00612cc PB |
3492 | (cd $(HOST_SUBDIR)/bash && \ |
3493 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-bash)) | |
6bd3dfaa | 3494 | @endif bash |
2a4cbe27 | 3495 | |
a7254363 | 3496 | |
4fa63067 NN |
3497 | .PHONY: check-bash maybe-check-bash |
3498 | maybe-check-bash: | |
6bd3dfaa PB |
3499 | @if bash |
3500 | maybe-check-bash: check-bash | |
2a4cbe27 | 3501 | |
4fa63067 NN |
3502 | check-bash: |
3503 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 3504 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 3505 | $(HOST_EXPORTS) \ |
b00612cc PB |
3506 | (cd $(HOST_SUBDIR)/bash && \ |
3507 | $(MAKE) $(FLAGS_TO_PASS) check) | |
2a4cbe27 | 3508 | |
6bd3dfaa | 3509 | @endif bash |
2a4cbe27 | 3510 | |
4fa63067 NN |
3511 | .PHONY: install-bash maybe-install-bash |
3512 | maybe-install-bash: | |
6bd3dfaa PB |
3513 | @if bash |
3514 | maybe-install-bash: install-bash | |
2a4cbe27 | 3515 | |
4fa63067 NN |
3516 | install-bash: installdirs |
3517 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 3518 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 3519 | $(HOST_EXPORTS) \ |
b00612cc | 3520 | (cd $(HOST_SUBDIR)/bash && \ |
2da12f12 | 3521 | $(MAKE) $(FLAGS_TO_PASS) install) |
2a4cbe27 | 3522 | |
6bd3dfaa | 3523 | @endif bash |
2a4cbe27 | 3524 | |
4fa63067 | 3525 | # Other targets (info, dvi, etc.) |
2a4cbe27 | 3526 | |
4fa63067 NN |
3527 | .PHONY: maybe-info-bash info-bash |
3528 | maybe-info-bash: | |
6bd3dfaa PB |
3529 | @if bash |
3530 | maybe-info-bash: info-bash | |
4fa63067 NN |
3531 | |
3532 | info-bash: \ | |
3533 | configure-bash | |
3534 | @[ -f ./bash/Makefile ] || exit 0; \ | |
b40e3958 L |
3535 | r=`${PWD_COMMAND}`; export r; \ |
3536 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3537 | $(HOST_EXPORTS) \ |
b813574b | 3538 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3539 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3540 | done; \ | |
4fa63067 | 3541 | echo "Doing info in bash" ; \ |
b00612cc | 3542 | (cd $(HOST_SUBDIR)/bash && \ |
2a4cbe27 NN |
3543 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3544 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3545 | "RANLIB=$${RANLIB}" \ | |
3546 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 3547 | info) \ |
2a4cbe27 NN |
3548 | || exit 1 |
3549 | ||
6bd3dfaa | 3550 | @endif bash |
2a4cbe27 | 3551 | |
4fa63067 NN |
3552 | .PHONY: maybe-dvi-bash dvi-bash |
3553 | maybe-dvi-bash: | |
6bd3dfaa PB |
3554 | @if bash |
3555 | maybe-dvi-bash: dvi-bash | |
2a4cbe27 | 3556 | |
4fa63067 NN |
3557 | dvi-bash: \ |
3558 | configure-bash | |
3559 | @[ -f ./bash/Makefile ] || exit 0; \ | |
b40e3958 L |
3560 | r=`${PWD_COMMAND}`; export r; \ |
3561 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3562 | $(HOST_EXPORTS) \ |
b813574b | 3563 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3564 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3565 | done; \ | |
4fa63067 | 3566 | echo "Doing dvi in bash" ; \ |
b00612cc | 3567 | (cd $(HOST_SUBDIR)/bash && \ |
2a4cbe27 NN |
3568 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3569 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3570 | "RANLIB=$${RANLIB}" \ | |
3571 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 3572 | dvi) \ |
2a4cbe27 NN |
3573 | || exit 1 |
3574 | ||
6bd3dfaa | 3575 | @endif bash |
2a4cbe27 | 3576 | |
6d389afc MS |
3577 | .PHONY: maybe-html-bash html-bash |
3578 | maybe-html-bash: | |
3579 | @if bash | |
3580 | maybe-html-bash: html-bash | |
3581 | ||
3582 | html-bash: \ | |
3583 | configure-bash | |
3584 | @[ -f ./bash/Makefile ] || exit 0; \ | |
3585 | r=`${PWD_COMMAND}`; export r; \ | |
3586 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
3587 | $(HOST_EXPORTS) \ |
3588 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
3589 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
3590 | done; \ | |
3591 | echo "Doing html in bash" ; \ | |
b00612cc | 3592 | (cd $(HOST_SUBDIR)/bash && \ |
6d389afc MS |
3593 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3594 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3595 | "RANLIB=$${RANLIB}" \ | |
3596 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
3597 | html) \ | |
3598 | || exit 1 | |
3599 | ||
3600 | @endif bash | |
3601 | ||
4fa63067 NN |
3602 | .PHONY: maybe-TAGS-bash TAGS-bash |
3603 | maybe-TAGS-bash: | |
6bd3dfaa PB |
3604 | @if bash |
3605 | maybe-TAGS-bash: TAGS-bash | |
2a4cbe27 | 3606 | |
4fa63067 NN |
3607 | TAGS-bash: \ |
3608 | configure-bash | |
3609 | @[ -f ./bash/Makefile ] || exit 0; \ | |
b40e3958 L |
3610 | r=`${PWD_COMMAND}`; export r; \ |
3611 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3612 | $(HOST_EXPORTS) \ |
b813574b | 3613 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3614 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3615 | done; \ | |
4fa63067 | 3616 | echo "Doing TAGS in bash" ; \ |
b00612cc | 3617 | (cd $(HOST_SUBDIR)/bash && \ |
2a4cbe27 NN |
3618 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3619 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3620 | "RANLIB=$${RANLIB}" \ | |
3621 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 3622 | TAGS) \ |
2a4cbe27 NN |
3623 | || exit 1 |
3624 | ||
6bd3dfaa | 3625 | @endif bash |
2a4cbe27 | 3626 | |
4fa63067 NN |
3627 | .PHONY: maybe-install-info-bash install-info-bash |
3628 | maybe-install-info-bash: | |
6bd3dfaa PB |
3629 | @if bash |
3630 | maybe-install-info-bash: install-info-bash | |
2a4cbe27 | 3631 | |
4fa63067 NN |
3632 | install-info-bash: \ |
3633 | configure-bash \ | |
3634 | info-bash | |
3635 | @[ -f ./bash/Makefile ] || exit 0; \ | |
b40e3958 L |
3636 | r=`${PWD_COMMAND}`; export r; \ |
3637 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3638 | $(HOST_EXPORTS) \ |
b813574b | 3639 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3640 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3641 | done; \ | |
4fa63067 | 3642 | echo "Doing install-info in bash" ; \ |
b00612cc | 3643 | (cd $(HOST_SUBDIR)/bash && \ |
2a4cbe27 NN |
3644 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3645 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3646 | "RANLIB=$${RANLIB}" \ | |
3647 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 3648 | install-info) \ |
2a4cbe27 NN |
3649 | || exit 1 |
3650 | ||
6bd3dfaa | 3651 | @endif bash |
2a4cbe27 | 3652 | |
4fa63067 NN |
3653 | .PHONY: maybe-installcheck-bash installcheck-bash |
3654 | maybe-installcheck-bash: | |
6bd3dfaa PB |
3655 | @if bash |
3656 | maybe-installcheck-bash: installcheck-bash | |
2a4cbe27 | 3657 | |
4fa63067 NN |
3658 | installcheck-bash: \ |
3659 | configure-bash | |
3660 | @[ -f ./bash/Makefile ] || exit 0; \ | |
b40e3958 L |
3661 | r=`${PWD_COMMAND}`; export r; \ |
3662 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3663 | $(HOST_EXPORTS) \ |
b813574b | 3664 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3665 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3666 | done; \ | |
4fa63067 | 3667 | echo "Doing installcheck in bash" ; \ |
b00612cc | 3668 | (cd $(HOST_SUBDIR)/bash && \ |
2a4cbe27 NN |
3669 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3670 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3671 | "RANLIB=$${RANLIB}" \ | |
3672 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 3673 | installcheck) \ |
2a4cbe27 NN |
3674 | || exit 1 |
3675 | ||
6bd3dfaa | 3676 | @endif bash |
2a4cbe27 | 3677 | |
4fa63067 NN |
3678 | .PHONY: maybe-mostlyclean-bash mostlyclean-bash |
3679 | maybe-mostlyclean-bash: | |
6bd3dfaa PB |
3680 | @if bash |
3681 | maybe-mostlyclean-bash: mostlyclean-bash | |
2a4cbe27 | 3682 | |
4fa63067 NN |
3683 | mostlyclean-bash: |
3684 | @[ -f ./bash/Makefile ] || exit 0; \ | |
b40e3958 L |
3685 | r=`${PWD_COMMAND}`; export r; \ |
3686 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3687 | $(HOST_EXPORTS) \ |
b813574b | 3688 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3689 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3690 | done; \ | |
4fa63067 | 3691 | echo "Doing mostlyclean in bash" ; \ |
b00612cc | 3692 | (cd $(HOST_SUBDIR)/bash && \ |
2a4cbe27 NN |
3693 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3694 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3695 | "RANLIB=$${RANLIB}" \ | |
3696 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 3697 | mostlyclean) \ |
2a4cbe27 NN |
3698 | || exit 1 |
3699 | ||
6bd3dfaa | 3700 | @endif bash |
2a4cbe27 | 3701 | |
4fa63067 NN |
3702 | .PHONY: maybe-clean-bash clean-bash |
3703 | maybe-clean-bash: | |
6bd3dfaa PB |
3704 | @if bash |
3705 | maybe-clean-bash: clean-bash | |
2a4cbe27 | 3706 | |
4fa63067 NN |
3707 | clean-bash: |
3708 | @[ -f ./bash/Makefile ] || exit 0; \ | |
b40e3958 L |
3709 | r=`${PWD_COMMAND}`; export r; \ |
3710 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3711 | $(HOST_EXPORTS) \ |
b813574b | 3712 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3713 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3714 | done; \ | |
4fa63067 | 3715 | echo "Doing clean in bash" ; \ |
b00612cc | 3716 | (cd $(HOST_SUBDIR)/bash && \ |
2a4cbe27 NN |
3717 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3718 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3719 | "RANLIB=$${RANLIB}" \ | |
3720 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 3721 | clean) \ |
2a4cbe27 NN |
3722 | || exit 1 |
3723 | ||
6bd3dfaa | 3724 | @endif bash |
2a4cbe27 | 3725 | |
4fa63067 NN |
3726 | .PHONY: maybe-distclean-bash distclean-bash |
3727 | maybe-distclean-bash: | |
6bd3dfaa PB |
3728 | @if bash |
3729 | maybe-distclean-bash: distclean-bash | |
2a4cbe27 | 3730 | |
4fa63067 NN |
3731 | distclean-bash: |
3732 | @[ -f ./bash/Makefile ] || exit 0; \ | |
b40e3958 L |
3733 | r=`${PWD_COMMAND}`; export r; \ |
3734 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3735 | $(HOST_EXPORTS) \ |
b813574b | 3736 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3737 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3738 | done; \ | |
4fa63067 | 3739 | echo "Doing distclean in bash" ; \ |
b00612cc | 3740 | (cd $(HOST_SUBDIR)/bash && \ |
2a4cbe27 NN |
3741 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3742 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3743 | "RANLIB=$${RANLIB}" \ | |
3744 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 3745 | distclean) \ |
2a4cbe27 NN |
3746 | || exit 1 |
3747 | ||
6bd3dfaa | 3748 | @endif bash |
2a4cbe27 | 3749 | |
4fa63067 NN |
3750 | .PHONY: maybe-maintainer-clean-bash maintainer-clean-bash |
3751 | maybe-maintainer-clean-bash: | |
6bd3dfaa PB |
3752 | @if bash |
3753 | maybe-maintainer-clean-bash: maintainer-clean-bash | |
2a4cbe27 | 3754 | |
4fa63067 NN |
3755 | maintainer-clean-bash: |
3756 | @[ -f ./bash/Makefile ] || exit 0; \ | |
b40e3958 L |
3757 | r=`${PWD_COMMAND}`; export r; \ |
3758 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3759 | $(HOST_EXPORTS) \ |
b813574b | 3760 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3761 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3762 | done; \ | |
4fa63067 | 3763 | echo "Doing maintainer-clean in bash" ; \ |
b00612cc | 3764 | (cd $(HOST_SUBDIR)/bash && \ |
2a4cbe27 NN |
3765 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3766 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3767 | "RANLIB=$${RANLIB}" \ | |
3768 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 3769 | maintainer-clean) \ |
2a4cbe27 NN |
3770 | || exit 1 |
3771 | ||
6bd3dfaa | 3772 | @endif bash |
2a4cbe27 | 3773 | |
2a4cbe27 | 3774 | |
a7254363 | 3775 | |
4fa63067 NN |
3776 | .PHONY: configure-bfd maybe-configure-bfd |
3777 | maybe-configure-bfd: | |
6bd3dfaa PB |
3778 | @if bfd |
3779 | maybe-configure-bfd: configure-bfd | |
a7254363 | 3780 | configure-bfd: |
72b2455a | 3781 | @test -f stage_last && exit 0; \ |
b00612cc PB |
3782 | test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \ |
3783 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \ | |
b40e3958 L |
3784 | r=`${PWD_COMMAND}`; export r; \ |
3785 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3786 | $(HOST_EXPORTS) \ |
a7254363 PB |
3787 | echo Configuring in $(HOST_SUBDIR)/bfd; \ |
3788 | cd "$(HOST_SUBDIR)/bfd" || exit 1; \ | |
4fa63067 | 3789 | case $(srcdir) in \ |
b00612cc PB |
3790 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
3791 | *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \ | |
3792 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 3793 | esac; \ |
b00612cc PB |
3794 | srcdiroption="--srcdir=$${topdir}/bfd"; \ |
3795 | libsrcdir="$$s/bfd"; \ | |
4fa63067 | 3796 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 3797 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
2a4cbe27 | 3798 | || exit 1 |
6bd3dfaa | 3799 | @endif bfd |
2a4cbe27 | 3800 | |
a7254363 PB |
3801 | |
3802 | ||
4fa63067 NN |
3803 | .PHONY: all-bfd maybe-all-bfd |
3804 | maybe-all-bfd: | |
6bd3dfaa | 3805 | @if bfd |
d27cc32e | 3806 | TARGET-bfd=all |
6bd3dfaa | 3807 | maybe-all-bfd: all-bfd |
4fa63067 | 3808 | all-bfd: configure-bfd |
72b2455a PB |
3809 | @test -f stage_last && exit 0; \ |
3810 | r=`${PWD_COMMAND}`; export r; \ | |
4fa63067 | 3811 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 3812 | $(HOST_EXPORTS) \ |
b00612cc PB |
3813 | (cd $(HOST_SUBDIR)/bfd && \ |
3814 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-bfd)) | |
6bd3dfaa | 3815 | @endif bfd |
2a4cbe27 | 3816 | |
a7254363 | 3817 | |
4fa63067 NN |
3818 | .PHONY: check-bfd maybe-check-bfd |
3819 | maybe-check-bfd: | |
6bd3dfaa PB |
3820 | @if bfd |
3821 | maybe-check-bfd: check-bfd | |
2a4cbe27 | 3822 | |
4fa63067 NN |
3823 | check-bfd: |
3824 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 3825 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 3826 | $(HOST_EXPORTS) \ |
b00612cc PB |
3827 | (cd $(HOST_SUBDIR)/bfd && \ |
3828 | $(MAKE) $(FLAGS_TO_PASS) check) | |
2a4cbe27 | 3829 | |
6bd3dfaa | 3830 | @endif bfd |
2a4cbe27 | 3831 | |
4fa63067 NN |
3832 | .PHONY: install-bfd maybe-install-bfd |
3833 | maybe-install-bfd: | |
6bd3dfaa PB |
3834 | @if bfd |
3835 | maybe-install-bfd: install-bfd | |
2a4cbe27 | 3836 | |
4fa63067 NN |
3837 | install-bfd: installdirs |
3838 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 3839 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 3840 | $(HOST_EXPORTS) \ |
b00612cc | 3841 | (cd $(HOST_SUBDIR)/bfd && \ |
2da12f12 | 3842 | $(MAKE) $(FLAGS_TO_PASS) install) |
2a4cbe27 | 3843 | |
6bd3dfaa | 3844 | @endif bfd |
2a4cbe27 | 3845 | |
4fa63067 | 3846 | # Other targets (info, dvi, etc.) |
2a4cbe27 | 3847 | |
4fa63067 NN |
3848 | .PHONY: maybe-info-bfd info-bfd |
3849 | maybe-info-bfd: | |
6bd3dfaa PB |
3850 | @if bfd |
3851 | maybe-info-bfd: info-bfd | |
4fa63067 NN |
3852 | |
3853 | info-bfd: \ | |
3854 | configure-bfd | |
3855 | @[ -f ./bfd/Makefile ] || exit 0; \ | |
b40e3958 L |
3856 | r=`${PWD_COMMAND}`; export r; \ |
3857 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
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 | 3862 | echo "Doing info in bfd" ; \ |
b00612cc | 3863 | (cd $(HOST_SUBDIR)/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 | info) \ |
2a4cbe27 NN |
3869 | || exit 1 |
3870 | ||
6bd3dfaa | 3871 | @endif bfd |
2a4cbe27 | 3872 | |
4fa63067 NN |
3873 | .PHONY: maybe-dvi-bfd dvi-bfd |
3874 | maybe-dvi-bfd: | |
6bd3dfaa PB |
3875 | @if bfd |
3876 | maybe-dvi-bfd: dvi-bfd | |
2a4cbe27 | 3877 | |
4fa63067 NN |
3878 | dvi-bfd: \ |
3879 | configure-bfd | |
3880 | @[ -f ./bfd/Makefile ] || exit 0; \ | |
b40e3958 L |
3881 | r=`${PWD_COMMAND}`; export r; \ |
3882 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3883 | $(HOST_EXPORTS) \ |
b813574b | 3884 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3885 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3886 | done; \ | |
4fa63067 | 3887 | echo "Doing dvi in bfd" ; \ |
b00612cc | 3888 | (cd $(HOST_SUBDIR)/bfd && \ |
2a4cbe27 NN |
3889 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3890 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3891 | "RANLIB=$${RANLIB}" \ | |
3892 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 3893 | dvi) \ |
2a4cbe27 NN |
3894 | || exit 1 |
3895 | ||
6bd3dfaa | 3896 | @endif bfd |
2a4cbe27 | 3897 | |
6d389afc MS |
3898 | .PHONY: maybe-html-bfd html-bfd |
3899 | maybe-html-bfd: | |
3900 | @if bfd | |
3901 | maybe-html-bfd: html-bfd | |
3902 | ||
3903 | html-bfd: \ | |
3904 | configure-bfd | |
3905 | @[ -f ./bfd/Makefile ] || exit 0; \ | |
3906 | r=`${PWD_COMMAND}`; export r; \ | |
3907 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
3908 | $(HOST_EXPORTS) \ |
3909 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
3910 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
3911 | done; \ | |
3912 | echo "Doing html in bfd" ; \ | |
b00612cc | 3913 | (cd $(HOST_SUBDIR)/bfd && \ |
6d389afc MS |
3914 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3915 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3916 | "RANLIB=$${RANLIB}" \ | |
3917 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
3918 | html) \ | |
3919 | || exit 1 | |
3920 | ||
3921 | @endif bfd | |
3922 | ||
4fa63067 NN |
3923 | .PHONY: maybe-TAGS-bfd TAGS-bfd |
3924 | maybe-TAGS-bfd: | |
6bd3dfaa PB |
3925 | @if bfd |
3926 | maybe-TAGS-bfd: TAGS-bfd | |
2a4cbe27 | 3927 | |
4fa63067 NN |
3928 | TAGS-bfd: \ |
3929 | configure-bfd | |
3930 | @[ -f ./bfd/Makefile ] || exit 0; \ | |
b40e3958 L |
3931 | r=`${PWD_COMMAND}`; export r; \ |
3932 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3933 | $(HOST_EXPORTS) \ |
b813574b | 3934 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3935 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3936 | done; \ | |
4fa63067 | 3937 | echo "Doing TAGS in bfd" ; \ |
b00612cc | 3938 | (cd $(HOST_SUBDIR)/bfd && \ |
2a4cbe27 NN |
3939 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3940 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3941 | "RANLIB=$${RANLIB}" \ | |
3942 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 3943 | TAGS) \ |
2a4cbe27 NN |
3944 | || exit 1 |
3945 | ||
6bd3dfaa | 3946 | @endif bfd |
2a4cbe27 | 3947 | |
4fa63067 NN |
3948 | .PHONY: maybe-install-info-bfd install-info-bfd |
3949 | maybe-install-info-bfd: | |
6bd3dfaa PB |
3950 | @if bfd |
3951 | maybe-install-info-bfd: install-info-bfd | |
2a4cbe27 | 3952 | |
4fa63067 NN |
3953 | install-info-bfd: \ |
3954 | configure-bfd \ | |
3955 | info-bfd | |
3956 | @[ -f ./bfd/Makefile ] || exit 0; \ | |
b40e3958 L |
3957 | r=`${PWD_COMMAND}`; export r; \ |
3958 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3959 | $(HOST_EXPORTS) \ |
b813574b | 3960 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3961 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3962 | done; \ | |
4fa63067 | 3963 | echo "Doing install-info in bfd" ; \ |
b00612cc | 3964 | (cd $(HOST_SUBDIR)/bfd && \ |
2a4cbe27 NN |
3965 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3966 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3967 | "RANLIB=$${RANLIB}" \ | |
3968 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 3969 | install-info) \ |
2a4cbe27 NN |
3970 | || exit 1 |
3971 | ||
6bd3dfaa | 3972 | @endif bfd |
2a4cbe27 | 3973 | |
4fa63067 NN |
3974 | .PHONY: maybe-installcheck-bfd installcheck-bfd |
3975 | maybe-installcheck-bfd: | |
6bd3dfaa PB |
3976 | @if bfd |
3977 | maybe-installcheck-bfd: installcheck-bfd | |
2a4cbe27 | 3978 | |
4fa63067 NN |
3979 | installcheck-bfd: \ |
3980 | configure-bfd | |
3981 | @[ -f ./bfd/Makefile ] || exit 0; \ | |
b40e3958 L |
3982 | r=`${PWD_COMMAND}`; export r; \ |
3983 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3984 | $(HOST_EXPORTS) \ |
b813574b | 3985 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3986 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3987 | done; \ | |
4fa63067 | 3988 | echo "Doing installcheck in bfd" ; \ |
b00612cc | 3989 | (cd $(HOST_SUBDIR)/bfd && \ |
2a4cbe27 NN |
3990 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3991 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3992 | "RANLIB=$${RANLIB}" \ | |
3993 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 3994 | installcheck) \ |
2a4cbe27 NN |
3995 | || exit 1 |
3996 | ||
6bd3dfaa | 3997 | @endif bfd |
2a4cbe27 | 3998 | |
4fa63067 NN |
3999 | .PHONY: maybe-mostlyclean-bfd mostlyclean-bfd |
4000 | maybe-mostlyclean-bfd: | |
6bd3dfaa PB |
4001 | @if bfd |
4002 | maybe-mostlyclean-bfd: mostlyclean-bfd | |
2a4cbe27 | 4003 | |
4fa63067 NN |
4004 | mostlyclean-bfd: |
4005 | @[ -f ./bfd/Makefile ] || exit 0; \ | |
b40e3958 L |
4006 | r=`${PWD_COMMAND}`; export r; \ |
4007 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4008 | $(HOST_EXPORTS) \ |
b813574b | 4009 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
4010 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
4011 | done; \ | |
4fa63067 | 4012 | echo "Doing mostlyclean in bfd" ; \ |
b00612cc | 4013 | (cd $(HOST_SUBDIR)/bfd && \ |
2a4cbe27 NN |
4014 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4015 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4016 | "RANLIB=$${RANLIB}" \ | |
4017 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 4018 | mostlyclean) \ |
2a4cbe27 NN |
4019 | || exit 1 |
4020 | ||
6bd3dfaa | 4021 | @endif bfd |
2a4cbe27 | 4022 | |
4fa63067 NN |
4023 | .PHONY: maybe-clean-bfd clean-bfd |
4024 | maybe-clean-bfd: | |
6bd3dfaa PB |
4025 | @if bfd |
4026 | maybe-clean-bfd: clean-bfd | |
2a4cbe27 | 4027 | |
4fa63067 NN |
4028 | clean-bfd: |
4029 | @[ -f ./bfd/Makefile ] || exit 0; \ | |
b40e3958 L |
4030 | r=`${PWD_COMMAND}`; export r; \ |
4031 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4032 | $(HOST_EXPORTS) \ |
b813574b | 4033 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
4034 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
4035 | done; \ | |
4fa63067 | 4036 | echo "Doing clean in bfd" ; \ |
b00612cc | 4037 | (cd $(HOST_SUBDIR)/bfd && \ |
2a4cbe27 NN |
4038 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4039 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4040 | "RANLIB=$${RANLIB}" \ | |
4041 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 4042 | clean) \ |
2a4cbe27 NN |
4043 | || exit 1 |
4044 | ||
6bd3dfaa | 4045 | @endif bfd |
2a4cbe27 | 4046 | |
4fa63067 NN |
4047 | .PHONY: maybe-distclean-bfd distclean-bfd |
4048 | maybe-distclean-bfd: | |
6bd3dfaa PB |
4049 | @if bfd |
4050 | maybe-distclean-bfd: distclean-bfd | |
2a4cbe27 | 4051 | |
4fa63067 NN |
4052 | distclean-bfd: |
4053 | @[ -f ./bfd/Makefile ] || exit 0; \ | |
b40e3958 L |
4054 | r=`${PWD_COMMAND}`; export r; \ |
4055 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4056 | $(HOST_EXPORTS) \ |
b813574b | 4057 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
4058 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
4059 | done; \ | |
4fa63067 | 4060 | echo "Doing distclean in bfd" ; \ |
b00612cc | 4061 | (cd $(HOST_SUBDIR)/bfd && \ |
2a4cbe27 NN |
4062 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4063 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4064 | "RANLIB=$${RANLIB}" \ | |
4065 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 4066 | distclean) \ |
2a4cbe27 NN |
4067 | || exit 1 |
4068 | ||
6bd3dfaa | 4069 | @endif bfd |
2a4cbe27 | 4070 | |
4fa63067 NN |
4071 | .PHONY: maybe-maintainer-clean-bfd maintainer-clean-bfd |
4072 | maybe-maintainer-clean-bfd: | |
6bd3dfaa PB |
4073 | @if bfd |
4074 | maybe-maintainer-clean-bfd: maintainer-clean-bfd | |
a2592b1b | 4075 | |
4fa63067 NN |
4076 | maintainer-clean-bfd: |
4077 | @[ -f ./bfd/Makefile ] || exit 0; \ | |
a2592b1b DD |
4078 | r=`${PWD_COMMAND}`; export r; \ |
4079 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4080 | $(HOST_EXPORTS) \ |
b813574b | 4081 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
a2592b1b DD |
4082 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
4083 | done; \ | |
4fa63067 | 4084 | echo "Doing maintainer-clean in bfd" ; \ |
b00612cc | 4085 | (cd $(HOST_SUBDIR)/bfd && \ |
a2592b1b DD |
4086 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4087 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4088 | "RANLIB=$${RANLIB}" \ | |
4089 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 4090 | maintainer-clean) \ |
a2592b1b DD |
4091 | || exit 1 |
4092 | ||
6bd3dfaa | 4093 | @endif bfd |
a2592b1b | 4094 | |
2a4cbe27 | 4095 | |
a7254363 | 4096 | |
4fa63067 NN |
4097 | .PHONY: configure-opcodes maybe-configure-opcodes |
4098 | maybe-configure-opcodes: | |
6bd3dfaa PB |
4099 | @if opcodes |
4100 | maybe-configure-opcodes: configure-opcodes | |
a7254363 | 4101 | configure-opcodes: |
72b2455a | 4102 | @test -f stage_last && exit 0; \ |
b00612cc PB |
4103 | test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \ |
4104 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \ | |
4fa63067 NN |
4105 | r=`${PWD_COMMAND}`; export r; \ |
4106 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4107 | $(HOST_EXPORTS) \ |
a7254363 PB |
4108 | echo Configuring in $(HOST_SUBDIR)/opcodes; \ |
4109 | cd "$(HOST_SUBDIR)/opcodes" || exit 1; \ | |
4fa63067 | 4110 | case $(srcdir) in \ |
b00612cc PB |
4111 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
4112 | *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \ | |
4113 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 4114 | esac; \ |
b00612cc PB |
4115 | srcdiroption="--srcdir=$${topdir}/opcodes"; \ |
4116 | libsrcdir="$$s/opcodes"; \ | |
4fa63067 | 4117 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 4118 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
4fa63067 | 4119 | || exit 1 |
6bd3dfaa | 4120 | @endif opcodes |
2a4cbe27 | 4121 | |
a7254363 PB |
4122 | |
4123 | ||
4fa63067 NN |
4124 | .PHONY: all-opcodes maybe-all-opcodes |
4125 | maybe-all-opcodes: | |
6bd3dfaa | 4126 | @if opcodes |
d27cc32e | 4127 | TARGET-opcodes=all |
6bd3dfaa | 4128 | maybe-all-opcodes: all-opcodes |
4fa63067 | 4129 | all-opcodes: configure-opcodes |
72b2455a PB |
4130 | @test -f stage_last && exit 0; \ |
4131 | r=`${PWD_COMMAND}`; export r; \ | |
4fa63067 | 4132 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 4133 | $(HOST_EXPORTS) \ |
b00612cc PB |
4134 | (cd $(HOST_SUBDIR)/opcodes && \ |
4135 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-opcodes)) | |
6bd3dfaa | 4136 | @endif opcodes |
2a4cbe27 | 4137 | |
a7254363 | 4138 | |
4fa63067 NN |
4139 | .PHONY: check-opcodes maybe-check-opcodes |
4140 | maybe-check-opcodes: | |
6bd3dfaa PB |
4141 | @if opcodes |
4142 | maybe-check-opcodes: check-opcodes | |
4fa63067 NN |
4143 | |
4144 | check-opcodes: | |
4145 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 4146 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 4147 | $(HOST_EXPORTS) \ |
b00612cc PB |
4148 | (cd $(HOST_SUBDIR)/opcodes && \ |
4149 | $(MAKE) $(FLAGS_TO_PASS) check) | |
2a4cbe27 | 4150 | |
6bd3dfaa | 4151 | @endif opcodes |
2a4cbe27 | 4152 | |
4fa63067 NN |
4153 | .PHONY: install-opcodes maybe-install-opcodes |
4154 | maybe-install-opcodes: | |
6bd3dfaa PB |
4155 | @if opcodes |
4156 | maybe-install-opcodes: install-opcodes | |
2a4cbe27 | 4157 | |
4fa63067 NN |
4158 | install-opcodes: installdirs |
4159 | @r=`${PWD_COMMAND}`; export r; \ | |
4160 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4161 | $(HOST_EXPORTS) \ |
b00612cc | 4162 | (cd $(HOST_SUBDIR)/opcodes && \ |
2da12f12 | 4163 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 4164 | |
6bd3dfaa | 4165 | @endif opcodes |
4fa63067 NN |
4166 | |
4167 | # Other targets (info, dvi, etc.) | |
4168 | ||
4169 | .PHONY: maybe-info-opcodes info-opcodes | |
4170 | maybe-info-opcodes: | |
6bd3dfaa PB |
4171 | @if opcodes |
4172 | maybe-info-opcodes: info-opcodes | |
4fa63067 NN |
4173 | |
4174 | info-opcodes: \ | |
4175 | configure-opcodes | |
4176 | @[ -f ./opcodes/Makefile ] || exit 0; \ | |
b40e3958 L |
4177 | r=`${PWD_COMMAND}`; export r; \ |
4178 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4179 | $(HOST_EXPORTS) \ |
b813574b | 4180 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
4181 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
4182 | done; \ | |
4fa63067 | 4183 | echo "Doing info in opcodes" ; \ |
b00612cc | 4184 | (cd $(HOST_SUBDIR)/opcodes && \ |
2a4cbe27 NN |
4185 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4186 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4187 | "RANLIB=$${RANLIB}" \ | |
4188 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 4189 | info) \ |
2a4cbe27 NN |
4190 | || exit 1 |
4191 | ||
6bd3dfaa | 4192 | @endif opcodes |
2a4cbe27 | 4193 | |
4fa63067 NN |
4194 | .PHONY: maybe-dvi-opcodes dvi-opcodes |
4195 | maybe-dvi-opcodes: | |
6bd3dfaa PB |
4196 | @if opcodes |
4197 | maybe-dvi-opcodes: dvi-opcodes | |
2a4cbe27 | 4198 | |
4fa63067 NN |
4199 | dvi-opcodes: \ |
4200 | configure-opcodes | |
4201 | @[ -f ./opcodes/Makefile ] || exit 0; \ | |
b40e3958 L |
4202 | r=`${PWD_COMMAND}`; export r; \ |
4203 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4204 | $(HOST_EXPORTS) \ |
b813574b | 4205 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
4206 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
4207 | done; \ | |
4fa63067 | 4208 | echo "Doing dvi in opcodes" ; \ |
b00612cc | 4209 | (cd $(HOST_SUBDIR)/opcodes && \ |
2a4cbe27 NN |
4210 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4211 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4212 | "RANLIB=$${RANLIB}" \ | |
4213 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 4214 | dvi) \ |
2a4cbe27 NN |
4215 | || exit 1 |
4216 | ||
6bd3dfaa | 4217 | @endif opcodes |
2a4cbe27 | 4218 | |
6d389afc MS |
4219 | .PHONY: maybe-html-opcodes html-opcodes |
4220 | maybe-html-opcodes: | |
4221 | @if opcodes | |
4222 | maybe-html-opcodes: html-opcodes | |
4223 | ||
4224 | html-opcodes: \ | |
4225 | configure-opcodes | |
4226 | @[ -f ./opcodes/Makefile ] || exit 0; \ | |
4227 | r=`${PWD_COMMAND}`; export r; \ | |
4228 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
4229 | $(HOST_EXPORTS) \ |
4230 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
4231 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
4232 | done; \ | |
4233 | echo "Doing html in opcodes" ; \ | |
b00612cc | 4234 | (cd $(HOST_SUBDIR)/opcodes && \ |
6d389afc MS |
4235 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4236 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4237 | "RANLIB=$${RANLIB}" \ | |
4238 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
4239 | html) \ | |
4240 | || exit 1 | |
4241 | ||
4242 | @endif opcodes | |
4243 | ||
4fa63067 NN |
4244 | .PHONY: maybe-TAGS-opcodes TAGS-opcodes |
4245 | maybe-TAGS-opcodes: | |
6bd3dfaa PB |
4246 | @if opcodes |
4247 | maybe-TAGS-opcodes: TAGS-opcodes | |
2a4cbe27 | 4248 | |
4fa63067 NN |
4249 | TAGS-opcodes: \ |
4250 | configure-opcodes | |
4251 | @[ -f ./opcodes/Makefile ] || exit 0; \ | |
b40e3958 L |
4252 | r=`${PWD_COMMAND}`; export r; \ |
4253 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4254 | $(HOST_EXPORTS) \ |
b813574b | 4255 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
4256 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
4257 | done; \ | |
4fa63067 | 4258 | echo "Doing TAGS in opcodes" ; \ |
b00612cc | 4259 | (cd $(HOST_SUBDIR)/opcodes && \ |
2a4cbe27 NN |
4260 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4261 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4262 | "RANLIB=$${RANLIB}" \ | |
4263 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 4264 | TAGS) \ |
2a4cbe27 NN |
4265 | || exit 1 |
4266 | ||
6bd3dfaa | 4267 | @endif opcodes |
2a4cbe27 | 4268 | |
4fa63067 NN |
4269 | .PHONY: maybe-install-info-opcodes install-info-opcodes |
4270 | maybe-install-info-opcodes: | |
6bd3dfaa PB |
4271 | @if opcodes |
4272 | maybe-install-info-opcodes: install-info-opcodes | |
2a4cbe27 | 4273 | |
4fa63067 NN |
4274 | install-info-opcodes: \ |
4275 | configure-opcodes \ | |
4276 | info-opcodes | |
4277 | @[ -f ./opcodes/Makefile ] || exit 0; \ | |
b40e3958 L |
4278 | r=`${PWD_COMMAND}`; export r; \ |
4279 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4280 | $(HOST_EXPORTS) \ |
b813574b | 4281 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
4282 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
4283 | done; \ | |
4fa63067 | 4284 | echo "Doing install-info in opcodes" ; \ |
b00612cc | 4285 | (cd $(HOST_SUBDIR)/opcodes && \ |
2a4cbe27 NN |
4286 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4287 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4288 | "RANLIB=$${RANLIB}" \ | |
4289 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 4290 | install-info) \ |
2a4cbe27 NN |
4291 | || exit 1 |
4292 | ||
6bd3dfaa | 4293 | @endif opcodes |
2a4cbe27 | 4294 | |
4fa63067 NN |
4295 | .PHONY: maybe-installcheck-opcodes installcheck-opcodes |
4296 | maybe-installcheck-opcodes: | |
6bd3dfaa PB |
4297 | @if opcodes |
4298 | maybe-installcheck-opcodes: installcheck-opcodes | |
2a4cbe27 | 4299 | |
4fa63067 NN |
4300 | installcheck-opcodes: \ |
4301 | configure-opcodes | |
4302 | @[ -f ./opcodes/Makefile ] || exit 0; \ | |
b40e3958 L |
4303 | r=`${PWD_COMMAND}`; export r; \ |
4304 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4305 | $(HOST_EXPORTS) \ |
b813574b | 4306 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
4307 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
4308 | done; \ | |
4fa63067 | 4309 | echo "Doing installcheck in opcodes" ; \ |
b00612cc | 4310 | (cd $(HOST_SUBDIR)/opcodes && \ |
2a4cbe27 NN |
4311 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4312 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4313 | "RANLIB=$${RANLIB}" \ | |
4314 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 4315 | installcheck) \ |
2a4cbe27 NN |
4316 | || exit 1 |
4317 | ||
6bd3dfaa | 4318 | @endif opcodes |
2a4cbe27 NN |
4319 | |
4320 | .PHONY: maybe-mostlyclean-opcodes mostlyclean-opcodes | |
4321 | maybe-mostlyclean-opcodes: | |
6bd3dfaa PB |
4322 | @if opcodes |
4323 | maybe-mostlyclean-opcodes: mostlyclean-opcodes | |
2a4cbe27 NN |
4324 | |
4325 | mostlyclean-opcodes: | |
4326 | @[ -f ./opcodes/Makefile ] || exit 0; \ | |
b40e3958 L |
4327 | r=`${PWD_COMMAND}`; export r; \ |
4328 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4329 | $(HOST_EXPORTS) \ |
b813574b | 4330 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
4331 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
4332 | done; \ | |
4333 | echo "Doing mostlyclean in opcodes" ; \ | |
b00612cc | 4334 | (cd $(HOST_SUBDIR)/opcodes && \ |
2a4cbe27 NN |
4335 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4336 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4337 | "RANLIB=$${RANLIB}" \ | |
4338 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 4339 | mostlyclean) \ |
2a4cbe27 NN |
4340 | || exit 1 |
4341 | ||
6bd3dfaa | 4342 | @endif opcodes |
2a4cbe27 | 4343 | |
4fa63067 NN |
4344 | .PHONY: maybe-clean-opcodes clean-opcodes |
4345 | maybe-clean-opcodes: | |
6bd3dfaa PB |
4346 | @if opcodes |
4347 | maybe-clean-opcodes: clean-opcodes | |
2a4cbe27 | 4348 | |
4fa63067 NN |
4349 | clean-opcodes: |
4350 | @[ -f ./opcodes/Makefile ] || exit 0; \ | |
b40e3958 L |
4351 | r=`${PWD_COMMAND}`; export r; \ |
4352 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4353 | $(HOST_EXPORTS) \ |
b813574b | 4354 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
4355 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
4356 | done; \ | |
4fa63067 | 4357 | echo "Doing clean in opcodes" ; \ |
b00612cc | 4358 | (cd $(HOST_SUBDIR)/opcodes && \ |
2a4cbe27 NN |
4359 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4360 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4361 | "RANLIB=$${RANLIB}" \ | |
4362 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 4363 | clean) \ |
2a4cbe27 NN |
4364 | || exit 1 |
4365 | ||
6bd3dfaa | 4366 | @endif opcodes |
2a4cbe27 | 4367 | |
4fa63067 NN |
4368 | .PHONY: maybe-distclean-opcodes distclean-opcodes |
4369 | maybe-distclean-opcodes: | |
6bd3dfaa PB |
4370 | @if opcodes |
4371 | maybe-distclean-opcodes: distclean-opcodes | |
2a4cbe27 | 4372 | |
4fa63067 NN |
4373 | distclean-opcodes: |
4374 | @[ -f ./opcodes/Makefile ] || exit 0; \ | |
b40e3958 L |
4375 | r=`${PWD_COMMAND}`; export r; \ |
4376 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4377 | $(HOST_EXPORTS) \ |
b813574b | 4378 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
4379 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
4380 | done; \ | |
4fa63067 | 4381 | echo "Doing distclean in opcodes" ; \ |
b00612cc | 4382 | (cd $(HOST_SUBDIR)/opcodes && \ |
2a4cbe27 NN |
4383 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4384 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4385 | "RANLIB=$${RANLIB}" \ | |
4386 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 4387 | distclean) \ |
2a4cbe27 NN |
4388 | || exit 1 |
4389 | ||
6bd3dfaa | 4390 | @endif opcodes |
2a4cbe27 | 4391 | |
4fa63067 NN |
4392 | .PHONY: maybe-maintainer-clean-opcodes maintainer-clean-opcodes |
4393 | maybe-maintainer-clean-opcodes: | |
6bd3dfaa PB |
4394 | @if opcodes |
4395 | maybe-maintainer-clean-opcodes: maintainer-clean-opcodes | |
2a4cbe27 | 4396 | |
4fa63067 NN |
4397 | maintainer-clean-opcodes: |
4398 | @[ -f ./opcodes/Makefile ] || exit 0; \ | |
b40e3958 L |
4399 | r=`${PWD_COMMAND}`; export r; \ |
4400 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4401 | $(HOST_EXPORTS) \ |
b813574b | 4402 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
4403 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
4404 | done; \ | |
4fa63067 | 4405 | echo "Doing maintainer-clean in opcodes" ; \ |
b00612cc | 4406 | (cd $(HOST_SUBDIR)/opcodes && \ |
2a4cbe27 NN |
4407 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4408 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4409 | "RANLIB=$${RANLIB}" \ | |
4410 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 4411 | maintainer-clean) \ |
2a4cbe27 NN |
4412 | || exit 1 |
4413 | ||
6bd3dfaa | 4414 | @endif opcodes |
2a4cbe27 | 4415 | |
2a4cbe27 | 4416 | |
a7254363 | 4417 | |
4fa63067 NN |
4418 | .PHONY: configure-binutils maybe-configure-binutils |
4419 | maybe-configure-binutils: | |
6bd3dfaa PB |
4420 | @if binutils |
4421 | maybe-configure-binutils: configure-binutils | |
a7254363 | 4422 | configure-binutils: |
72b2455a | 4423 | @test -f stage_last && exit 0; \ |
b00612cc PB |
4424 | test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \ |
4425 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \ | |
b40e3958 L |
4426 | r=`${PWD_COMMAND}`; export r; \ |
4427 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4428 | $(HOST_EXPORTS) \ |
a7254363 PB |
4429 | echo Configuring in $(HOST_SUBDIR)/binutils; \ |
4430 | cd "$(HOST_SUBDIR)/binutils" || exit 1; \ | |
4fa63067 | 4431 | case $(srcdir) in \ |
b00612cc PB |
4432 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
4433 | *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \ | |
4434 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 4435 | esac; \ |
b00612cc PB |
4436 | srcdiroption="--srcdir=$${topdir}/binutils"; \ |
4437 | libsrcdir="$$s/binutils"; \ | |
4fa63067 | 4438 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 4439 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
2a4cbe27 | 4440 | || exit 1 |
6bd3dfaa | 4441 | @endif binutils |
2a4cbe27 | 4442 | |
a7254363 PB |
4443 | |
4444 | ||
4fa63067 NN |
4445 | .PHONY: all-binutils maybe-all-binutils |
4446 | maybe-all-binutils: | |
6bd3dfaa | 4447 | @if binutils |
d27cc32e | 4448 | TARGET-binutils=all |
6bd3dfaa | 4449 | maybe-all-binutils: all-binutils |
4fa63067 | 4450 | all-binutils: configure-binutils |
72b2455a PB |
4451 | @test -f stage_last && exit 0; \ |
4452 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 4453 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 4454 | $(HOST_EXPORTS) \ |
b00612cc PB |
4455 | (cd $(HOST_SUBDIR)/binutils && \ |
4456 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-binutils)) | |
6bd3dfaa | 4457 | @endif binutils |
4fa63067 | 4458 | |
a7254363 | 4459 | |
4fa63067 NN |
4460 | .PHONY: check-binutils maybe-check-binutils |
4461 | maybe-check-binutils: | |
6bd3dfaa PB |
4462 | @if binutils |
4463 | maybe-check-binutils: check-binutils | |
4fa63067 NN |
4464 | |
4465 | check-binutils: | |
4466 | @r=`${PWD_COMMAND}`; export r; \ | |
4467 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4468 | $(HOST_EXPORTS) \ |
b00612cc PB |
4469 | (cd $(HOST_SUBDIR)/binutils && \ |
4470 | $(MAKE) $(FLAGS_TO_PASS) check) | |
2a4cbe27 | 4471 | |
6bd3dfaa | 4472 | @endif binutils |
2a4cbe27 | 4473 | |
4fa63067 NN |
4474 | .PHONY: install-binutils maybe-install-binutils |
4475 | maybe-install-binutils: | |
6bd3dfaa PB |
4476 | @if binutils |
4477 | maybe-install-binutils: install-binutils | |
2a4cbe27 | 4478 | |
4fa63067 NN |
4479 | install-binutils: installdirs |
4480 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 4481 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 4482 | $(HOST_EXPORTS) \ |
b00612cc | 4483 | (cd $(HOST_SUBDIR)/binutils && \ |
2da12f12 | 4484 | $(MAKE) $(FLAGS_TO_PASS) install) |
2a4cbe27 | 4485 | |
6bd3dfaa | 4486 | @endif binutils |
2a4cbe27 | 4487 | |
4fa63067 | 4488 | # Other targets (info, dvi, etc.) |
2a4cbe27 | 4489 | |
4fa63067 NN |
4490 | .PHONY: maybe-info-binutils info-binutils |
4491 | maybe-info-binutils: | |
6bd3dfaa PB |
4492 | @if binutils |
4493 | maybe-info-binutils: info-binutils | |
4fa63067 NN |
4494 | |
4495 | info-binutils: \ | |
4496 | configure-binutils | |
4497 | @[ -f ./binutils/Makefile ] || exit 0; \ | |
b40e3958 L |
4498 | r=`${PWD_COMMAND}`; export r; \ |
4499 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4500 | $(HOST_EXPORTS) \ |
b813574b | 4501 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
4502 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
4503 | done; \ | |
4fa63067 | 4504 | echo "Doing info in binutils" ; \ |
b00612cc | 4505 | (cd $(HOST_SUBDIR)/binutils && \ |
2a4cbe27 NN |
4506 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4507 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4508 | "RANLIB=$${RANLIB}" \ | |
4509 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 4510 | info) \ |
2a4cbe27 NN |
4511 | || exit 1 |
4512 | ||
6bd3dfaa | 4513 | @endif binutils |
2a4cbe27 | 4514 | |
4fa63067 NN |
4515 | .PHONY: maybe-dvi-binutils dvi-binutils |
4516 | maybe-dvi-binutils: | |
6bd3dfaa PB |
4517 | @if binutils |
4518 | maybe-dvi-binutils: dvi-binutils | |
2a4cbe27 | 4519 | |
4fa63067 NN |
4520 | dvi-binutils: \ |
4521 | configure-binutils | |
4522 | @[ -f ./binutils/Makefile ] || exit 0; \ | |
b40e3958 L |
4523 | r=`${PWD_COMMAND}`; export r; \ |
4524 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4525 | $(HOST_EXPORTS) \ |
b813574b | 4526 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
4527 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
4528 | done; \ | |
4fa63067 | 4529 | echo "Doing dvi in binutils" ; \ |
b00612cc | 4530 | (cd $(HOST_SUBDIR)/binutils && \ |
2a4cbe27 NN |
4531 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4532 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4533 | "RANLIB=$${RANLIB}" \ | |
4534 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 4535 | dvi) \ |
2a4cbe27 NN |
4536 | || exit 1 |
4537 | ||
6bd3dfaa | 4538 | @endif binutils |
2a4cbe27 | 4539 | |
6d389afc MS |
4540 | .PHONY: maybe-html-binutils html-binutils |
4541 | maybe-html-binutils: | |
4542 | @if binutils | |
4543 | maybe-html-binutils: html-binutils | |
4544 | ||
4545 | html-binutils: \ | |
4546 | configure-binutils | |
4547 | @[ -f ./binutils/Makefile ] || exit 0; \ | |
4548 | r=`${PWD_COMMAND}`; export r; \ | |
4549 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
4550 | $(HOST_EXPORTS) \ |
4551 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
4552 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
4553 | done; \ | |
4554 | echo "Doing html in binutils" ; \ | |
b00612cc | 4555 | (cd $(HOST_SUBDIR)/binutils && \ |
6d389afc MS |
4556 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4557 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4558 | "RANLIB=$${RANLIB}" \ | |
4559 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
4560 | html) \ | |
4561 | || exit 1 | |
4562 | ||
4563 | @endif binutils | |
4564 | ||
4fa63067 NN |
4565 | .PHONY: maybe-TAGS-binutils TAGS-binutils |
4566 | maybe-TAGS-binutils: | |
6bd3dfaa PB |
4567 | @if binutils |
4568 | maybe-TAGS-binutils: TAGS-binutils | |
2a4cbe27 | 4569 | |
4fa63067 NN |
4570 | TAGS-binutils: \ |
4571 | configure-binutils | |
4572 | @[ -f ./binutils/Makefile ] || exit 0; \ | |
b40e3958 L |
4573 | r=`${PWD_COMMAND}`; export r; \ |
4574 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4575 | $(HOST_EXPORTS) \ |
b813574b | 4576 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
4577 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
4578 | done; \ | |
4fa63067 | 4579 | echo "Doing TAGS in binutils" ; \ |
b00612cc | 4580 | (cd $(HOST_SUBDIR)/binutils && \ |
2a4cbe27 NN |
4581 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4582 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4583 | "RANLIB=$${RANLIB}" \ | |
4584 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 4585 | TAGS) \ |
2a4cbe27 NN |
4586 | || exit 1 |
4587 | ||
6bd3dfaa | 4588 | @endif binutils |
2a4cbe27 | 4589 | |
4fa63067 NN |
4590 | .PHONY: maybe-install-info-binutils install-info-binutils |
4591 | maybe-install-info-binutils: | |
6bd3dfaa PB |
4592 | @if binutils |
4593 | maybe-install-info-binutils: install-info-binutils | |
2a4cbe27 | 4594 | |
4fa63067 NN |
4595 | install-info-binutils: \ |
4596 | configure-binutils \ | |
4597 | info-binutils | |
4598 | @[ -f ./binutils/Makefile ] || exit 0; \ | |
b40e3958 L |
4599 | r=`${PWD_COMMAND}`; export r; \ |
4600 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4601 | $(HOST_EXPORTS) \ |
b813574b | 4602 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
4603 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
4604 | done; \ | |
4fa63067 | 4605 | echo "Doing install-info in binutils" ; \ |
b00612cc | 4606 | (cd $(HOST_SUBDIR)/binutils && \ |
2a4cbe27 NN |
4607 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4608 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4609 | "RANLIB=$${RANLIB}" \ | |
4610 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 4611 | install-info) \ |
2a4cbe27 NN |
4612 | || exit 1 |
4613 | ||
6bd3dfaa | 4614 | @endif binutils |
2a4cbe27 | 4615 | |
4fa63067 NN |
4616 | .PHONY: maybe-installcheck-binutils installcheck-binutils |
4617 | maybe-installcheck-binutils: | |
6bd3dfaa PB |
4618 | @if binutils |
4619 | maybe-installcheck-binutils: installcheck-binutils | |
2a4cbe27 | 4620 | |
4fa63067 NN |
4621 | installcheck-binutils: \ |
4622 | configure-binutils | |
4623 | @[ -f ./binutils/Makefile ] || exit 0; \ | |
b40e3958 L |
4624 | r=`${PWD_COMMAND}`; export r; \ |
4625 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4626 | $(HOST_EXPORTS) \ |
b813574b | 4627 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
4628 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
4629 | done; \ | |
4fa63067 | 4630 | echo "Doing installcheck in binutils" ; \ |
b00612cc | 4631 | (cd $(HOST_SUBDIR)/binutils && \ |
2a4cbe27 NN |
4632 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4633 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4634 | "RANLIB=$${RANLIB}" \ | |
4635 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 4636 | installcheck) \ |
2a4cbe27 NN |
4637 | || exit 1 |
4638 | ||
6bd3dfaa | 4639 | @endif binutils |
2a4cbe27 | 4640 | |
4fa63067 NN |
4641 | .PHONY: maybe-mostlyclean-binutils mostlyclean-binutils |
4642 | maybe-mostlyclean-binutils: | |
6bd3dfaa PB |
4643 | @if binutils |
4644 | maybe-mostlyclean-binutils: mostlyclean-binutils | |
2a4cbe27 | 4645 | |
4fa63067 NN |
4646 | mostlyclean-binutils: |
4647 | @[ -f ./binutils/Makefile ] || exit 0; \ | |
b40e3958 L |
4648 | r=`${PWD_COMMAND}`; export r; \ |
4649 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4650 | $(HOST_EXPORTS) \ |
b813574b | 4651 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
4652 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
4653 | done; \ | |
4fa63067 | 4654 | echo "Doing mostlyclean in binutils" ; \ |
b00612cc | 4655 | (cd $(HOST_SUBDIR)/binutils && \ |
2a4cbe27 NN |
4656 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4657 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4658 | "RANLIB=$${RANLIB}" \ | |
4659 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 4660 | mostlyclean) \ |
2a4cbe27 NN |
4661 | || exit 1 |
4662 | ||
6bd3dfaa | 4663 | @endif binutils |
2a4cbe27 | 4664 | |
4fa63067 NN |
4665 | .PHONY: maybe-clean-binutils clean-binutils |
4666 | maybe-clean-binutils: | |
6bd3dfaa PB |
4667 | @if binutils |
4668 | maybe-clean-binutils: clean-binutils | |
2a4cbe27 | 4669 | |
4fa63067 NN |
4670 | clean-binutils: |
4671 | @[ -f ./binutils/Makefile ] || exit 0; \ | |
b40e3958 L |
4672 | r=`${PWD_COMMAND}`; export r; \ |
4673 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4674 | $(HOST_EXPORTS) \ |
b813574b | 4675 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
4676 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
4677 | done; \ | |
4fa63067 | 4678 | echo "Doing clean in binutils" ; \ |
b00612cc | 4679 | (cd $(HOST_SUBDIR)/binutils && \ |
2a4cbe27 NN |
4680 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4681 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4682 | "RANLIB=$${RANLIB}" \ | |
4683 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 4684 | clean) \ |
2a4cbe27 NN |
4685 | || exit 1 |
4686 | ||
6bd3dfaa | 4687 | @endif binutils |
2a4cbe27 | 4688 | |
4fa63067 NN |
4689 | .PHONY: maybe-distclean-binutils distclean-binutils |
4690 | maybe-distclean-binutils: | |
6bd3dfaa PB |
4691 | @if binutils |
4692 | maybe-distclean-binutils: distclean-binutils | |
2a4cbe27 | 4693 | |
4fa63067 NN |
4694 | distclean-binutils: |
4695 | @[ -f ./binutils/Makefile ] || exit 0; \ | |
b40e3958 L |
4696 | r=`${PWD_COMMAND}`; export r; \ |
4697 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4698 | $(HOST_EXPORTS) \ |
b813574b | 4699 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
4700 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
4701 | done; \ | |
4fa63067 | 4702 | echo "Doing distclean in binutils" ; \ |
b00612cc | 4703 | (cd $(HOST_SUBDIR)/binutils && \ |
2a4cbe27 NN |
4704 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4705 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4706 | "RANLIB=$${RANLIB}" \ | |
4707 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 4708 | distclean) \ |
2a4cbe27 NN |
4709 | || exit 1 |
4710 | ||
6bd3dfaa | 4711 | @endif binutils |
2a4cbe27 | 4712 | |
4fa63067 NN |
4713 | .PHONY: maybe-maintainer-clean-binutils maintainer-clean-binutils |
4714 | maybe-maintainer-clean-binutils: | |
6bd3dfaa PB |
4715 | @if binutils |
4716 | maybe-maintainer-clean-binutils: maintainer-clean-binutils | |
2a4cbe27 | 4717 | |
4fa63067 NN |
4718 | maintainer-clean-binutils: |
4719 | @[ -f ./binutils/Makefile ] || exit 0; \ | |
b40e3958 L |
4720 | r=`${PWD_COMMAND}`; export r; \ |
4721 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4722 | $(HOST_EXPORTS) \ |
b813574b | 4723 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
4724 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
4725 | done; \ | |
4fa63067 | 4726 | echo "Doing maintainer-clean in binutils" ; \ |
b00612cc | 4727 | (cd $(HOST_SUBDIR)/binutils && \ |
2a4cbe27 NN |
4728 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4729 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4730 | "RANLIB=$${RANLIB}" \ | |
4731 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 4732 | maintainer-clean) \ |
2a4cbe27 NN |
4733 | || exit 1 |
4734 | ||
6bd3dfaa | 4735 | @endif binutils |
2a4cbe27 | 4736 | |
2a4cbe27 | 4737 | |
a7254363 | 4738 | |
4fa63067 NN |
4739 | .PHONY: configure-bison maybe-configure-bison |
4740 | maybe-configure-bison: | |
6bd3dfaa PB |
4741 | @if bison |
4742 | maybe-configure-bison: configure-bison | |
a7254363 | 4743 | configure-bison: |
b00612cc PB |
4744 | @test ! -f $(HOST_SUBDIR)/bison/Makefile || exit 0; \ |
4745 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bison ; \ | |
b40e3958 L |
4746 | r=`${PWD_COMMAND}`; export r; \ |
4747 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4748 | $(HOST_EXPORTS) \ |
a7254363 PB |
4749 | echo Configuring in $(HOST_SUBDIR)/bison; \ |
4750 | cd "$(HOST_SUBDIR)/bison" || exit 1; \ | |
4fa63067 | 4751 | case $(srcdir) in \ |
b00612cc PB |
4752 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
4753 | *) topdir=`echo $(HOST_SUBDIR)/bison/ | \ | |
4754 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 4755 | esac; \ |
b00612cc PB |
4756 | srcdiroption="--srcdir=$${topdir}/bison"; \ |
4757 | libsrcdir="$$s/bison"; \ | |
4fa63067 | 4758 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 4759 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
2a4cbe27 | 4760 | || exit 1 |
6bd3dfaa | 4761 | @endif bison |
2a4cbe27 | 4762 | |
a7254363 PB |
4763 | |
4764 | ||
4fa63067 NN |
4765 | .PHONY: all-bison maybe-all-bison |
4766 | maybe-all-bison: | |
6bd3dfaa | 4767 | @if bison |
d27cc32e | 4768 | TARGET-bison=all |
6bd3dfaa | 4769 | maybe-all-bison: all-bison |
4fa63067 NN |
4770 | all-bison: configure-bison |
4771 | @r=`${PWD_COMMAND}`; export r; \ | |
4772 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4773 | $(HOST_EXPORTS) \ |
b00612cc PB |
4774 | (cd $(HOST_SUBDIR)/bison && \ |
4775 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-bison)) | |
6bd3dfaa | 4776 | @endif bison |
2a4cbe27 | 4777 | |
a7254363 | 4778 | |
4fa63067 NN |
4779 | .PHONY: check-bison maybe-check-bison |
4780 | maybe-check-bison: | |
6bd3dfaa PB |
4781 | @if bison |
4782 | maybe-check-bison: check-bison | |
2a4cbe27 | 4783 | |
4fa63067 NN |
4784 | # This module is only tested in a native toolchain. |
4785 | check-bison: | |
4786 | @if [ '$(host)' = '$(target)' ] ; then \ | |
4787 | r=`${PWD_COMMAND}`; export r; \ | |
4788 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4789 | $(HOST_EXPORTS) \ |
b00612cc | 4790 | (cd $(HOST_SUBDIR)/bison && \ |
4cfaf6d5 | 4791 | $(MAKE) $(FLAGS_TO_PASS) check); \ |
4fa63067 NN |
4792 | fi |
4793 | ||
6bd3dfaa | 4794 | @endif bison |
4fa63067 NN |
4795 | |
4796 | .PHONY: install-bison maybe-install-bison | |
4797 | maybe-install-bison: | |
6bd3dfaa PB |
4798 | @if bison |
4799 | maybe-install-bison: install-bison | |
4fa63067 NN |
4800 | |
4801 | install-bison: installdirs | |
4802 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 4803 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 4804 | $(HOST_EXPORTS) \ |
b00612cc | 4805 | (cd $(HOST_SUBDIR)/bison && \ |
2da12f12 | 4806 | $(MAKE) $(FLAGS_TO_PASS) install) |
2a4cbe27 | 4807 | |
6bd3dfaa | 4808 | @endif bison |
2a4cbe27 | 4809 | |
4fa63067 | 4810 | # Other targets (info, dvi, etc.) |
2a4cbe27 | 4811 | |
4fa63067 NN |
4812 | .PHONY: maybe-info-bison info-bison |
4813 | maybe-info-bison: | |
6bd3dfaa PB |
4814 | @if bison |
4815 | maybe-info-bison: info-bison | |
4fa63067 NN |
4816 | |
4817 | info-bison: \ | |
4818 | configure-bison | |
4819 | @[ -f ./bison/Makefile ] || exit 0; \ | |
b40e3958 L |
4820 | r=`${PWD_COMMAND}`; export r; \ |
4821 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4822 | $(HOST_EXPORTS) \ |
b813574b | 4823 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
4824 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
4825 | done; \ | |
4fa63067 | 4826 | echo "Doing info in bison" ; \ |
b00612cc | 4827 | (cd $(HOST_SUBDIR)/bison && \ |
2a4cbe27 NN |
4828 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4829 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4830 | "RANLIB=$${RANLIB}" \ | |
4831 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 4832 | info) \ |
2a4cbe27 NN |
4833 | || exit 1 |
4834 | ||
6bd3dfaa | 4835 | @endif bison |
2a4cbe27 | 4836 | |
4fa63067 NN |
4837 | .PHONY: maybe-dvi-bison dvi-bison |
4838 | maybe-dvi-bison: | |
6bd3dfaa PB |
4839 | @if bison |
4840 | maybe-dvi-bison: dvi-bison | |
2a4cbe27 | 4841 | |
4fa63067 NN |
4842 | dvi-bison: \ |
4843 | configure-bison | |
4844 | @[ -f ./bison/Makefile ] || exit 0; \ | |
b40e3958 L |
4845 | r=`${PWD_COMMAND}`; export r; \ |
4846 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4847 | $(HOST_EXPORTS) \ |
b813574b | 4848 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
4849 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
4850 | done; \ | |
4fa63067 | 4851 | echo "Doing dvi in bison" ; \ |
b00612cc | 4852 | (cd $(HOST_SUBDIR)/bison && \ |
2a4cbe27 NN |
4853 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4854 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4855 | "RANLIB=$${RANLIB}" \ | |
4856 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 4857 | dvi) \ |
2a4cbe27 NN |
4858 | || exit 1 |
4859 | ||
6bd3dfaa | 4860 | @endif bison |
2a4cbe27 | 4861 | |
6d389afc MS |
4862 | .PHONY: maybe-html-bison html-bison |
4863 | maybe-html-bison: | |
4864 | @if bison | |
4865 | maybe-html-bison: html-bison | |
4866 | ||
4867 | html-bison: \ | |
4868 | configure-bison | |
4869 | @[ -f ./bison/Makefile ] || exit 0; \ | |
4870 | r=`${PWD_COMMAND}`; export r; \ | |
4871 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
4872 | $(HOST_EXPORTS) \ |
4873 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
4874 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
4875 | done; \ | |
4876 | echo "Doing html in bison" ; \ | |
b00612cc | 4877 | (cd $(HOST_SUBDIR)/bison && \ |
6d389afc MS |
4878 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4879 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4880 | "RANLIB=$${RANLIB}" \ | |
4881 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
4882 | html) \ | |
4883 | || exit 1 | |
4884 | ||
4885 | @endif bison | |
4886 | ||
4fa63067 NN |
4887 | .PHONY: maybe-TAGS-bison TAGS-bison |
4888 | maybe-TAGS-bison: | |
6bd3dfaa PB |
4889 | @if bison |
4890 | maybe-TAGS-bison: TAGS-bison | |
2a4cbe27 | 4891 | |
4fa63067 NN |
4892 | TAGS-bison: \ |
4893 | configure-bison | |
4894 | @[ -f ./bison/Makefile ] || exit 0; \ | |
b40e3958 L |
4895 | r=`${PWD_COMMAND}`; export r; \ |
4896 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4897 | $(HOST_EXPORTS) \ |
b813574b | 4898 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
4899 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
4900 | done; \ | |
4fa63067 | 4901 | echo "Doing TAGS in bison" ; \ |
b00612cc | 4902 | (cd $(HOST_SUBDIR)/bison && \ |
2a4cbe27 NN |
4903 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4904 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4905 | "RANLIB=$${RANLIB}" \ | |
4906 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 4907 | TAGS) \ |
2a4cbe27 NN |
4908 | || exit 1 |
4909 | ||
6bd3dfaa | 4910 | @endif bison |
2a4cbe27 | 4911 | |
4fa63067 NN |
4912 | .PHONY: maybe-install-info-bison install-info-bison |
4913 | maybe-install-info-bison: | |
6bd3dfaa PB |
4914 | @if bison |
4915 | maybe-install-info-bison: install-info-bison | |
2a4cbe27 | 4916 | |
4fa63067 NN |
4917 | install-info-bison: \ |
4918 | configure-bison \ | |
4919 | info-bison | |
4920 | @[ -f ./bison/Makefile ] || exit 0; \ | |
b40e3958 L |
4921 | r=`${PWD_COMMAND}`; export r; \ |
4922 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4923 | $(HOST_EXPORTS) \ |
b813574b | 4924 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
4925 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
4926 | done; \ | |
4fa63067 | 4927 | echo "Doing install-info in bison" ; \ |
b00612cc | 4928 | (cd $(HOST_SUBDIR)/bison && \ |
2a4cbe27 NN |
4929 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4930 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4931 | "RANLIB=$${RANLIB}" \ | |
4932 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 4933 | install-info) \ |
2a4cbe27 NN |
4934 | || exit 1 |
4935 | ||
6bd3dfaa | 4936 | @endif bison |
2a4cbe27 | 4937 | |
4fa63067 NN |
4938 | .PHONY: maybe-installcheck-bison installcheck-bison |
4939 | maybe-installcheck-bison: | |
6bd3dfaa PB |
4940 | @if bison |
4941 | maybe-installcheck-bison: installcheck-bison | |
2a4cbe27 | 4942 | |
4fa63067 NN |
4943 | installcheck-bison: \ |
4944 | configure-bison | |
4945 | @[ -f ./bison/Makefile ] || exit 0; \ | |
b40e3958 L |
4946 | r=`${PWD_COMMAND}`; export r; \ |
4947 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4948 | $(HOST_EXPORTS) \ |
b813574b | 4949 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
4950 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
4951 | done; \ | |
4fa63067 | 4952 | echo "Doing installcheck in bison" ; \ |
b00612cc | 4953 | (cd $(HOST_SUBDIR)/bison && \ |
2a4cbe27 NN |
4954 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4955 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4956 | "RANLIB=$${RANLIB}" \ | |
4957 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 4958 | installcheck) \ |
2a4cbe27 NN |
4959 | || exit 1 |
4960 | ||
6bd3dfaa | 4961 | @endif bison |
2a4cbe27 | 4962 | |
4fa63067 NN |
4963 | .PHONY: maybe-mostlyclean-bison mostlyclean-bison |
4964 | maybe-mostlyclean-bison: | |
6bd3dfaa PB |
4965 | @if bison |
4966 | maybe-mostlyclean-bison: mostlyclean-bison | |
2a4cbe27 | 4967 | |
4fa63067 NN |
4968 | mostlyclean-bison: |
4969 | @[ -f ./bison/Makefile ] || exit 0; \ | |
b40e3958 L |
4970 | r=`${PWD_COMMAND}`; export r; \ |
4971 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4972 | $(HOST_EXPORTS) \ |
b813574b | 4973 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
4974 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
4975 | done; \ | |
4fa63067 | 4976 | echo "Doing mostlyclean in bison" ; \ |
b00612cc | 4977 | (cd $(HOST_SUBDIR)/bison && \ |
2a4cbe27 NN |
4978 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4979 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4980 | "RANLIB=$${RANLIB}" \ | |
4981 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 4982 | mostlyclean) \ |
2a4cbe27 NN |
4983 | || exit 1 |
4984 | ||
6bd3dfaa | 4985 | @endif bison |
2a4cbe27 | 4986 | |
4fa63067 NN |
4987 | .PHONY: maybe-clean-bison clean-bison |
4988 | maybe-clean-bison: | |
6bd3dfaa PB |
4989 | @if bison |
4990 | maybe-clean-bison: clean-bison | |
2a4cbe27 | 4991 | |
4fa63067 NN |
4992 | clean-bison: |
4993 | @[ -f ./bison/Makefile ] || exit 0; \ | |
b40e3958 L |
4994 | r=`${PWD_COMMAND}`; export r; \ |
4995 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4996 | $(HOST_EXPORTS) \ |
b813574b | 4997 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
4998 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
4999 | done; \ | |
4fa63067 | 5000 | echo "Doing clean in bison" ; \ |
b00612cc | 5001 | (cd $(HOST_SUBDIR)/bison && \ |
2a4cbe27 NN |
5002 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
5003 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5004 | "RANLIB=$${RANLIB}" \ | |
5005 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 5006 | clean) \ |
2a4cbe27 NN |
5007 | || exit 1 |
5008 | ||
6bd3dfaa | 5009 | @endif bison |
2a4cbe27 | 5010 | |
4fa63067 NN |
5011 | .PHONY: maybe-distclean-bison distclean-bison |
5012 | maybe-distclean-bison: | |
6bd3dfaa PB |
5013 | @if bison |
5014 | maybe-distclean-bison: distclean-bison | |
2a4cbe27 | 5015 | |
4fa63067 NN |
5016 | distclean-bison: |
5017 | @[ -f ./bison/Makefile ] || exit 0; \ | |
b40e3958 L |
5018 | r=`${PWD_COMMAND}`; export r; \ |
5019 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5020 | $(HOST_EXPORTS) \ |
b813574b | 5021 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
5022 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
5023 | done; \ | |
4fa63067 | 5024 | echo "Doing distclean in bison" ; \ |
b00612cc | 5025 | (cd $(HOST_SUBDIR)/bison && \ |
2a4cbe27 NN |
5026 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
5027 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5028 | "RANLIB=$${RANLIB}" \ | |
5029 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 5030 | distclean) \ |
2a4cbe27 NN |
5031 | || exit 1 |
5032 | ||
6bd3dfaa | 5033 | @endif bison |
2a4cbe27 | 5034 | |
4fa63067 NN |
5035 | .PHONY: maybe-maintainer-clean-bison maintainer-clean-bison |
5036 | maybe-maintainer-clean-bison: | |
6bd3dfaa PB |
5037 | @if bison |
5038 | maybe-maintainer-clean-bison: maintainer-clean-bison | |
2a4cbe27 | 5039 | |
4fa63067 NN |
5040 | maintainer-clean-bison: |
5041 | @[ -f ./bison/Makefile ] || exit 0; \ | |
b40e3958 L |
5042 | r=`${PWD_COMMAND}`; export r; \ |
5043 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5044 | $(HOST_EXPORTS) \ |
b813574b | 5045 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
5046 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
5047 | done; \ | |
4fa63067 | 5048 | echo "Doing maintainer-clean in bison" ; \ |
b00612cc | 5049 | (cd $(HOST_SUBDIR)/bison && \ |
2a4cbe27 NN |
5050 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
5051 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5052 | "RANLIB=$${RANLIB}" \ | |
5053 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 5054 | maintainer-clean) \ |
2a4cbe27 NN |
5055 | || exit 1 |
5056 | ||
6bd3dfaa | 5057 | @endif bison |
2a4cbe27 | 5058 | |
2a4cbe27 | 5059 | |
a7254363 | 5060 | |
4fa63067 NN |
5061 | .PHONY: configure-byacc maybe-configure-byacc |
5062 | maybe-configure-byacc: | |
6bd3dfaa PB |
5063 | @if byacc |
5064 | maybe-configure-byacc: configure-byacc | |
a7254363 | 5065 | configure-byacc: |
b00612cc PB |
5066 | @test ! -f $(HOST_SUBDIR)/byacc/Makefile || exit 0; \ |
5067 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/byacc ; \ | |
4fa63067 NN |
5068 | r=`${PWD_COMMAND}`; export r; \ |
5069 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5070 | $(HOST_EXPORTS) \ |
a7254363 PB |
5071 | echo Configuring in $(HOST_SUBDIR)/byacc; \ |
5072 | cd "$(HOST_SUBDIR)/byacc" || exit 1; \ | |
4fa63067 | 5073 | case $(srcdir) in \ |
b00612cc PB |
5074 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
5075 | *) topdir=`echo $(HOST_SUBDIR)/byacc/ | \ | |
5076 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 5077 | esac; \ |
b00612cc PB |
5078 | srcdiroption="--srcdir=$${topdir}/byacc"; \ |
5079 | libsrcdir="$$s/byacc"; \ | |
4fa63067 | 5080 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 5081 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
4fa63067 | 5082 | || exit 1 |
6bd3dfaa | 5083 | @endif byacc |
4fa63067 | 5084 | |
a7254363 PB |
5085 | |
5086 | ||
4fa63067 NN |
5087 | .PHONY: all-byacc maybe-all-byacc |
5088 | maybe-all-byacc: | |
6bd3dfaa | 5089 | @if byacc |
d27cc32e | 5090 | TARGET-byacc=all |
6bd3dfaa | 5091 | maybe-all-byacc: all-byacc |
4fa63067 NN |
5092 | all-byacc: configure-byacc |
5093 | @r=`${PWD_COMMAND}`; export r; \ | |
5094 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5095 | $(HOST_EXPORTS) \ |
b00612cc PB |
5096 | (cd $(HOST_SUBDIR)/byacc && \ |
5097 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-byacc)) | |
6bd3dfaa | 5098 | @endif byacc |
4fa63067 | 5099 | |
a7254363 | 5100 | |
4fa63067 NN |
5101 | .PHONY: check-byacc maybe-check-byacc |
5102 | maybe-check-byacc: | |
6bd3dfaa PB |
5103 | @if byacc |
5104 | maybe-check-byacc: check-byacc | |
4fa63067 NN |
5105 | |
5106 | # This module is only tested in a native toolchain. | |
5107 | check-byacc: | |
5108 | @if [ '$(host)' = '$(target)' ] ; then \ | |
5109 | r=`${PWD_COMMAND}`; export r; \ | |
5110 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5111 | $(HOST_EXPORTS) \ |
b00612cc | 5112 | (cd $(HOST_SUBDIR)/byacc && \ |
4cfaf6d5 | 5113 | $(MAKE) $(FLAGS_TO_PASS) check); \ |
4fa63067 NN |
5114 | fi |
5115 | ||
6bd3dfaa | 5116 | @endif byacc |
4fa63067 NN |
5117 | |
5118 | .PHONY: install-byacc maybe-install-byacc | |
5119 | maybe-install-byacc: | |
6bd3dfaa PB |
5120 | @if byacc |
5121 | maybe-install-byacc: install-byacc | |
4fa63067 NN |
5122 | |
5123 | install-byacc: installdirs | |
5124 | @r=`${PWD_COMMAND}`; export r; \ | |
5125 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5126 | $(HOST_EXPORTS) \ |
b00612cc | 5127 | (cd $(HOST_SUBDIR)/byacc && \ |
2da12f12 | 5128 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 5129 | |
6bd3dfaa | 5130 | @endif byacc |
4fa63067 NN |
5131 | |
5132 | # Other targets (info, dvi, etc.) | |
5133 | ||
5134 | .PHONY: maybe-info-byacc info-byacc | |
5135 | maybe-info-byacc: | |
6bd3dfaa PB |
5136 | @if byacc |
5137 | maybe-info-byacc: info-byacc | |
4fa63067 NN |
5138 | |
5139 | info-byacc: \ | |
5140 | configure-byacc | |
5141 | @[ -f ./byacc/Makefile ] || exit 0; \ | |
b40e3958 L |
5142 | r=`${PWD_COMMAND}`; export r; \ |
5143 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5144 | $(HOST_EXPORTS) \ |
b813574b | 5145 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
5146 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
5147 | done; \ | |
4fa63067 | 5148 | echo "Doing info in byacc" ; \ |
b00612cc | 5149 | (cd $(HOST_SUBDIR)/byacc && \ |
2a4cbe27 NN |
5150 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
5151 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5152 | "RANLIB=$${RANLIB}" \ | |
5153 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 5154 | info) \ |
2a4cbe27 NN |
5155 | || exit 1 |
5156 | ||
6bd3dfaa | 5157 | @endif byacc |
2a4cbe27 | 5158 | |
4fa63067 NN |
5159 | .PHONY: maybe-dvi-byacc dvi-byacc |
5160 | maybe-dvi-byacc: | |
6bd3dfaa PB |
5161 | @if byacc |
5162 | maybe-dvi-byacc: dvi-byacc | |
2a4cbe27 | 5163 | |
4fa63067 NN |
5164 | dvi-byacc: \ |
5165 | configure-byacc | |
5166 | @[ -f ./byacc/Makefile ] || exit 0; \ | |
b40e3958 L |
5167 | r=`${PWD_COMMAND}`; export r; \ |
5168 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5169 | $(HOST_EXPORTS) \ |
b813574b | 5170 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
5171 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
5172 | done; \ | |
4fa63067 | 5173 | echo "Doing dvi in byacc" ; \ |
b00612cc | 5174 | (cd $(HOST_SUBDIR)/byacc && \ |
2a4cbe27 NN |
5175 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
5176 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5177 | "RANLIB=$${RANLIB}" \ | |
5178 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 5179 | dvi) \ |
2a4cbe27 NN |
5180 | || exit 1 |
5181 | ||
6bd3dfaa | 5182 | @endif byacc |
2a4cbe27 | 5183 | |
6d389afc MS |
5184 | .PHONY: maybe-html-byacc html-byacc |
5185 | maybe-html-byacc: | |
5186 | @if byacc | |
5187 | maybe-html-byacc: html-byacc | |
5188 | ||
5189 | html-byacc: \ | |
5190 | configure-byacc | |
5191 | @[ -f ./byacc/Makefile ] || exit 0; \ | |
5192 | r=`${PWD_COMMAND}`; export r; \ | |
5193 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
5194 | $(HOST_EXPORTS) \ |
5195 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
5196 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
5197 | done; \ | |
5198 | echo "Doing html in byacc" ; \ | |
b00612cc | 5199 | (cd $(HOST_SUBDIR)/byacc && \ |
6d389afc MS |
5200 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
5201 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5202 | "RANLIB=$${RANLIB}" \ | |
5203 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
5204 | html) \ | |
5205 | || exit 1 | |
5206 | ||
5207 | @endif byacc | |
5208 | ||
4fa63067 NN |
5209 | .PHONY: maybe-TAGS-byacc TAGS-byacc |
5210 | maybe-TAGS-byacc: | |
6bd3dfaa PB |
5211 | @if byacc |
5212 | maybe-TAGS-byacc: TAGS-byacc | |
2a4cbe27 | 5213 | |
4fa63067 NN |
5214 | TAGS-byacc: \ |
5215 | configure-byacc | |
5216 | @[ -f ./byacc/Makefile ] || exit 0; \ | |
b40e3958 L |
5217 | r=`${PWD_COMMAND}`; export r; \ |
5218 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5219 | $(HOST_EXPORTS) \ |
b813574b | 5220 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
5221 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
5222 | done; \ | |
4fa63067 | 5223 | echo "Doing TAGS in byacc" ; \ |
b00612cc | 5224 | (cd $(HOST_SUBDIR)/byacc && \ |
2a4cbe27 NN |
5225 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
5226 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5227 | "RANLIB=$${RANLIB}" \ | |
5228 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 5229 | TAGS) \ |
2a4cbe27 NN |
5230 | || exit 1 |
5231 | ||
6bd3dfaa | 5232 | @endif byacc |
2a4cbe27 | 5233 | |
4fa63067 NN |
5234 | .PHONY: maybe-install-info-byacc install-info-byacc |
5235 | maybe-install-info-byacc: | |
6bd3dfaa PB |
5236 | @if byacc |
5237 | maybe-install-info-byacc: install-info-byacc | |
2a4cbe27 | 5238 | |
4fa63067 NN |
5239 | install-info-byacc: \ |
5240 | configure-byacc \ | |
5241 | info-byacc | |
5242 | @[ -f ./byacc/Makefile ] || exit 0; \ | |
b40e3958 L |
5243 | r=`${PWD_COMMAND}`; export r; \ |
5244 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5245 | $(HOST_EXPORTS) \ |
b813574b | 5246 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
5247 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
5248 | done; \ | |
4fa63067 | 5249 | echo "Doing install-info in byacc" ; \ |
b00612cc | 5250 | (cd $(HOST_SUBDIR)/byacc && \ |
2a4cbe27 NN |
5251 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
5252 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5253 | "RANLIB=$${RANLIB}" \ | |
5254 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 5255 | install-info) \ |
2a4cbe27 NN |
5256 | || exit 1 |
5257 | ||
6bd3dfaa | 5258 | @endif byacc |
2a4cbe27 | 5259 | |
4fa63067 NN |
5260 | .PHONY: maybe-installcheck-byacc installcheck-byacc |
5261 | maybe-installcheck-byacc: | |
6bd3dfaa PB |
5262 | @if byacc |
5263 | maybe-installcheck-byacc: installcheck-byacc | |
2a4cbe27 | 5264 | |
4fa63067 NN |
5265 | installcheck-byacc: \ |
5266 | configure-byacc | |
5267 | @[ -f ./byacc/Makefile ] || exit 0; \ | |
b40e3958 L |
5268 | r=`${PWD_COMMAND}`; export r; \ |
5269 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5270 | $(HOST_EXPORTS) \ |
b813574b | 5271 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
5272 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
5273 | done; \ | |
4fa63067 | 5274 | echo "Doing installcheck in byacc" ; \ |
b00612cc | 5275 | (cd $(HOST_SUBDIR)/byacc && \ |
2a4cbe27 NN |
5276 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
5277 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5278 | "RANLIB=$${RANLIB}" \ | |
5279 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 5280 | installcheck) \ |
2a4cbe27 NN |
5281 | || exit 1 |
5282 | ||
6bd3dfaa | 5283 | @endif byacc |
2a4cbe27 | 5284 | |
4fa63067 NN |
5285 | .PHONY: maybe-mostlyclean-byacc mostlyclean-byacc |
5286 | maybe-mostlyclean-byacc: | |
6bd3dfaa PB |
5287 | @if byacc |
5288 | maybe-mostlyclean-byacc: mostlyclean-byacc | |
2a4cbe27 | 5289 | |
4fa63067 NN |
5290 | mostlyclean-byacc: |
5291 | @[ -f ./byacc/Makefile ] || exit 0; \ | |
b40e3958 L |
5292 | r=`${PWD_COMMAND}`; export r; \ |
5293 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5294 | $(HOST_EXPORTS) \ |
b813574b | 5295 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
5296 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
5297 | done; \ | |
4fa63067 | 5298 | echo "Doing mostlyclean in byacc" ; \ |
b00612cc | 5299 | (cd $(HOST_SUBDIR)/byacc && \ |
2a4cbe27 NN |
5300 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
5301 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5302 | "RANLIB=$${RANLIB}" \ | |
5303 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 5304 | mostlyclean) \ |
2a4cbe27 NN |
5305 | || exit 1 |
5306 | ||
6bd3dfaa | 5307 | @endif byacc |
2a4cbe27 | 5308 | |
4fa63067 NN |
5309 | .PHONY: maybe-clean-byacc clean-byacc |
5310 | maybe-clean-byacc: | |
6bd3dfaa PB |
5311 | @if byacc |
5312 | maybe-clean-byacc: clean-byacc | |
2a4cbe27 | 5313 | |
4fa63067 NN |
5314 | clean-byacc: |
5315 | @[ -f ./byacc/Makefile ] || exit 0; \ | |
b40e3958 L |
5316 | r=`${PWD_COMMAND}`; export r; \ |
5317 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5318 | $(HOST_EXPORTS) \ |
b813574b | 5319 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
5320 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
5321 | done; \ | |
4fa63067 | 5322 | echo "Doing clean in byacc" ; \ |
b00612cc | 5323 | (cd $(HOST_SUBDIR)/byacc && \ |
2a4cbe27 NN |
5324 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
5325 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5326 | "RANLIB=$${RANLIB}" \ | |
5327 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 5328 | clean) \ |
2a4cbe27 NN |
5329 | || exit 1 |
5330 | ||
6bd3dfaa | 5331 | @endif byacc |
2a4cbe27 | 5332 | |
4fa63067 NN |
5333 | .PHONY: maybe-distclean-byacc distclean-byacc |
5334 | maybe-distclean-byacc: | |
6bd3dfaa PB |
5335 | @if byacc |
5336 | maybe-distclean-byacc: distclean-byacc | |
2a4cbe27 | 5337 | |
4fa63067 NN |
5338 | distclean-byacc: |
5339 | @[ -f ./byacc/Makefile ] || exit 0; \ | |
b40e3958 L |
5340 | r=`${PWD_COMMAND}`; export r; \ |
5341 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5342 | $(HOST_EXPORTS) \ |
b813574b | 5343 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
5344 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
5345 | done; \ | |
4fa63067 | 5346 | echo "Doing distclean in byacc" ; \ |
b00612cc | 5347 | (cd $(HOST_SUBDIR)/byacc && \ |
2a4cbe27 NN |
5348 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
5349 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5350 | "RANLIB=$${RANLIB}" \ | |
5351 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 5352 | distclean) \ |
2a4cbe27 NN |
5353 | || exit 1 |
5354 | ||
6bd3dfaa | 5355 | @endif byacc |
2a4cbe27 | 5356 | |
4fa63067 NN |
5357 | .PHONY: maybe-maintainer-clean-byacc maintainer-clean-byacc |
5358 | maybe-maintainer-clean-byacc: | |
6bd3dfaa PB |
5359 | @if byacc |
5360 | maybe-maintainer-clean-byacc: maintainer-clean-byacc | |
2a4cbe27 | 5361 | |
4fa63067 NN |
5362 | maintainer-clean-byacc: |
5363 | @[ -f ./byacc/Makefile ] || exit 0; \ | |
b40e3958 L |
5364 | r=`${PWD_COMMAND}`; export r; \ |
5365 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5366 | $(HOST_EXPORTS) \ |
b813574b | 5367 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
5368 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
5369 | done; \ | |
4fa63067 | 5370 | echo "Doing maintainer-clean in byacc" ; \ |
b00612cc | 5371 | (cd $(HOST_SUBDIR)/byacc && \ |
2a4cbe27 NN |
5372 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
5373 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5374 | "RANLIB=$${RANLIB}" \ | |
5375 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 5376 | maintainer-clean) \ |
2a4cbe27 NN |
5377 | || exit 1 |
5378 | ||
6bd3dfaa | 5379 | @endif byacc |
2a4cbe27 | 5380 | |
2a4cbe27 | 5381 | |
a7254363 | 5382 | |
4fa63067 NN |
5383 | .PHONY: configure-bzip2 maybe-configure-bzip2 |
5384 | maybe-configure-bzip2: | |
6bd3dfaa PB |
5385 | @if bzip2 |
5386 | maybe-configure-bzip2: configure-bzip2 | |
a7254363 | 5387 | configure-bzip2: |
b00612cc PB |
5388 | @test ! -f $(HOST_SUBDIR)/bzip2/Makefile || exit 0; \ |
5389 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bzip2 ; \ | |
4fa63067 NN |
5390 | r=`${PWD_COMMAND}`; export r; \ |
5391 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5392 | $(HOST_EXPORTS) \ |
a7254363 PB |
5393 | echo Configuring in $(HOST_SUBDIR)/bzip2; \ |
5394 | cd "$(HOST_SUBDIR)/bzip2" || exit 1; \ | |
4fa63067 | 5395 | case $(srcdir) in \ |
b00612cc PB |
5396 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
5397 | *) topdir=`echo $(HOST_SUBDIR)/bzip2/ | \ | |
5398 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 5399 | esac; \ |
b00612cc PB |
5400 | srcdiroption="--srcdir=$${topdir}/bzip2"; \ |
5401 | libsrcdir="$$s/bzip2"; \ | |
4fa63067 | 5402 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 5403 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
4fa63067 | 5404 | || exit 1 |
6bd3dfaa | 5405 | @endif bzip2 |
4fa63067 | 5406 | |
a7254363 PB |
5407 | |
5408 | ||
4fa63067 NN |
5409 | .PHONY: all-bzip2 maybe-all-bzip2 |
5410 | maybe-all-bzip2: | |
6bd3dfaa | 5411 | @if bzip2 |
d27cc32e | 5412 | TARGET-bzip2=all |
6bd3dfaa | 5413 | maybe-all-bzip2: all-bzip2 |
4fa63067 NN |
5414 | all-bzip2: configure-bzip2 |
5415 | @r=`${PWD_COMMAND}`; export r; \ | |
5416 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5417 | $(HOST_EXPORTS) \ |
b00612cc PB |
5418 | (cd $(HOST_SUBDIR)/bzip2 && \ |
5419 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-bzip2)) | |
6bd3dfaa | 5420 | @endif bzip2 |
4fa63067 | 5421 | |
a7254363 | 5422 | |
4fa63067 NN |
5423 | .PHONY: check-bzip2 maybe-check-bzip2 |
5424 | maybe-check-bzip2: | |
6bd3dfaa PB |
5425 | @if bzip2 |
5426 | maybe-check-bzip2: check-bzip2 | |
4fa63067 NN |
5427 | |
5428 | check-bzip2: | |
5429 | @r=`${PWD_COMMAND}`; export r; \ | |
5430 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5431 | $(HOST_EXPORTS) \ |
b00612cc PB |
5432 | (cd $(HOST_SUBDIR)/bzip2 && \ |
5433 | $(MAKE) $(FLAGS_TO_PASS) check) | |
4fa63067 | 5434 | |
6bd3dfaa | 5435 | @endif bzip2 |
4fa63067 NN |
5436 | |
5437 | .PHONY: install-bzip2 maybe-install-bzip2 | |
5438 | maybe-install-bzip2: | |
6bd3dfaa PB |
5439 | @if bzip2 |
5440 | maybe-install-bzip2: install-bzip2 | |
4fa63067 NN |
5441 | |
5442 | install-bzip2: installdirs | |
5443 | @r=`${PWD_COMMAND}`; export r; \ | |
5444 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5445 | $(HOST_EXPORTS) \ |
b00612cc | 5446 | (cd $(HOST_SUBDIR)/bzip2 && \ |
2da12f12 | 5447 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 5448 | |
6bd3dfaa | 5449 | @endif bzip2 |
4fa63067 NN |
5450 | |
5451 | # Other targets (info, dvi, etc.) | |
5452 | ||
5453 | .PHONY: maybe-info-bzip2 info-bzip2 | |
5454 | maybe-info-bzip2: | |
6bd3dfaa PB |
5455 | @if bzip2 |
5456 | maybe-info-bzip2: info-bzip2 | |
4fa63067 NN |
5457 | |
5458 | info-bzip2: \ | |
5459 | configure-bzip2 | |
5460 | @[ -f ./bzip2/Makefile ] || exit 0; \ | |
b40e3958 L |
5461 | r=`${PWD_COMMAND}`; export r; \ |
5462 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5463 | $(HOST_EXPORTS) \ |
b813574b | 5464 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
5465 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
5466 | done; \ | |
4fa63067 | 5467 | echo "Doing info in bzip2" ; \ |
b00612cc | 5468 | (cd $(HOST_SUBDIR)/bzip2 && \ |
2a4cbe27 NN |
5469 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
5470 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5471 | "RANLIB=$${RANLIB}" \ | |
5472 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 5473 | info) \ |
2a4cbe27 NN |
5474 | || exit 1 |
5475 | ||
6bd3dfaa | 5476 | @endif bzip2 |
2a4cbe27 | 5477 | |
4fa63067 NN |
5478 | .PHONY: maybe-dvi-bzip2 dvi-bzip2 |
5479 | maybe-dvi-bzip2: | |
6bd3dfaa PB |
5480 | @if bzip2 |
5481 | maybe-dvi-bzip2: dvi-bzip2 | |
2a4cbe27 | 5482 | |
4fa63067 NN |
5483 | dvi-bzip2: \ |
5484 | configure-bzip2 | |
5485 | @[ -f ./bzip2/Makefile ] || exit 0; \ | |
b40e3958 L |
5486 | r=`${PWD_COMMAND}`; export r; \ |
5487 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5488 | $(HOST_EXPORTS) \ |
b813574b | 5489 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
5490 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
5491 | done; \ | |
4fa63067 | 5492 | echo "Doing dvi in bzip2" ; \ |
b00612cc | 5493 | (cd $(HOST_SUBDIR)/bzip2 && \ |
2a4cbe27 NN |
5494 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
5495 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5496 | "RANLIB=$${RANLIB}" \ | |
5497 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 5498 | dvi) \ |
2a4cbe27 NN |
5499 | || exit 1 |
5500 | ||
6bd3dfaa | 5501 | @endif bzip2 |
2a4cbe27 | 5502 | |
6d389afc MS |
5503 | .PHONY: maybe-html-bzip2 html-bzip2 |
5504 | maybe-html-bzip2: | |
5505 | @if bzip2 | |
5506 | maybe-html-bzip2: html-bzip2 | |
5507 | ||
5508 | html-bzip2: \ | |
5509 | configure-bzip2 | |
5510 | @[ -f ./bzip2/Makefile ] || exit 0; \ | |
5511 | r=`${PWD_COMMAND}`; export r; \ | |
5512 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
5513 | $(HOST_EXPORTS) \ |
5514 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
5515 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
5516 | done; \ | |
5517 | echo "Doing html in bzip2" ; \ | |
b00612cc | 5518 | (cd $(HOST_SUBDIR)/bzip2 && \ |
6d389afc MS |
5519 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
5520 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5521 | "RANLIB=$${RANLIB}" \ | |
5522 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
5523 | html) \ | |
5524 | || exit 1 | |
5525 | ||
5526 | @endif bzip2 | |
5527 | ||
4fa63067 NN |
5528 | .PHONY: maybe-TAGS-bzip2 TAGS-bzip2 |
5529 | maybe-TAGS-bzip2: | |
6bd3dfaa PB |
5530 | @if bzip2 |
5531 | maybe-TAGS-bzip2: TAGS-bzip2 | |
2a4cbe27 | 5532 | |
4fa63067 NN |
5533 | TAGS-bzip2: \ |
5534 | configure-bzip2 | |
5535 | @[ -f ./bzip2/Makefile ] || exit 0; \ | |
b40e3958 L |
5536 | r=`${PWD_COMMAND}`; export r; \ |
5537 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5538 | $(HOST_EXPORTS) \ |
b813574b | 5539 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
5540 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
5541 | done; \ | |
4fa63067 | 5542 | echo "Doing TAGS in bzip2" ; \ |
b00612cc | 5543 | (cd $(HOST_SUBDIR)/bzip2 && \ |
2a4cbe27 NN |
5544 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
5545 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5546 | "RANLIB=$${RANLIB}" \ | |
5547 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 5548 | TAGS) \ |
2a4cbe27 NN |
5549 | || exit 1 |
5550 | ||
6bd3dfaa | 5551 | @endif bzip2 |
2a4cbe27 | 5552 | |
4fa63067 NN |
5553 | .PHONY: maybe-install-info-bzip2 install-info-bzip2 |
5554 | maybe-install-info-bzip2: | |
6bd3dfaa PB |
5555 | @if bzip2 |
5556 | maybe-install-info-bzip2: install-info-bzip2 | |
2a4cbe27 | 5557 | |
4fa63067 NN |
5558 | install-info-bzip2: \ |
5559 | configure-bzip2 \ | |
5560 | info-bzip2 | |
5561 | @[ -f ./bzip2/Makefile ] || exit 0; \ | |
b40e3958 L |
5562 | r=`${PWD_COMMAND}`; export r; \ |
5563 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5564 | $(HOST_EXPORTS) \ |
b813574b | 5565 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
5566 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
5567 | done; \ | |
4fa63067 | 5568 | echo "Doing install-info in bzip2" ; \ |
b00612cc | 5569 | (cd $(HOST_SUBDIR)/bzip2 && \ |
2a4cbe27 NN |
5570 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
5571 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5572 | "RANLIB=$${RANLIB}" \ | |
5573 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 5574 | install-info) \ |
2a4cbe27 NN |
5575 | || exit 1 |
5576 | ||
6bd3dfaa | 5577 | @endif bzip2 |
2a4cbe27 | 5578 | |
4fa63067 NN |
5579 | .PHONY: maybe-installcheck-bzip2 installcheck-bzip2 |
5580 | maybe-installcheck-bzip2: | |
6bd3dfaa PB |
5581 | @if bzip2 |
5582 | maybe-installcheck-bzip2: installcheck-bzip2 | |
2a4cbe27 | 5583 | |
4fa63067 NN |
5584 | installcheck-bzip2: \ |
5585 | configure-bzip2 | |
5586 | @[ -f ./bzip2/Makefile ] || exit 0; \ | |
b40e3958 L |
5587 | r=`${PWD_COMMAND}`; export r; \ |
5588 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5589 | $(HOST_EXPORTS) \ |
b813574b | 5590 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
5591 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
5592 | done; \ | |
4fa63067 | 5593 | echo "Doing installcheck in bzip2" ; \ |
b00612cc | 5594 | (cd $(HOST_SUBDIR)/bzip2 && \ |
2a4cbe27 NN |
5595 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
5596 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5597 | "RANLIB=$${RANLIB}" \ | |
5598 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 5599 | installcheck) \ |
2a4cbe27 NN |
5600 | || exit 1 |
5601 | ||
6bd3dfaa | 5602 | @endif bzip2 |
2a4cbe27 | 5603 | |
4fa63067 NN |
5604 | .PHONY: maybe-mostlyclean-bzip2 mostlyclean-bzip2 |
5605 | maybe-mostlyclean-bzip2: | |
6bd3dfaa PB |
5606 | @if bzip2 |
5607 | maybe-mostlyclean-bzip2: mostlyclean-bzip2 | |
2a4cbe27 | 5608 | |
4fa63067 NN |
5609 | mostlyclean-bzip2: |
5610 | @[ -f ./bzip2/Makefile ] || exit 0; \ | |
b40e3958 L |
5611 | r=`${PWD_COMMAND}`; export r; \ |
5612 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5613 | $(HOST_EXPORTS) \ |
b813574b | 5614 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
5615 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
5616 | done; \ | |
4fa63067 | 5617 | echo "Doing mostlyclean in bzip2" ; \ |
b00612cc | 5618 | (cd $(HOST_SUBDIR)/bzip2 && \ |
2a4cbe27 NN |
5619 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
5620 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5621 | "RANLIB=$${RANLIB}" \ | |
5622 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 5623 | mostlyclean) \ |
2a4cbe27 NN |
5624 | || exit 1 |
5625 | ||
6bd3dfaa | 5626 | @endif bzip2 |
2a4cbe27 | 5627 | |
4fa63067 NN |
5628 | .PHONY: maybe-clean-bzip2 clean-bzip2 |
5629 | maybe-clean-bzip2: | |
6bd3dfaa PB |
5630 | @if bzip2 |
5631 | maybe-clean-bzip2: clean-bzip2 | |
2a4cbe27 | 5632 | |
4fa63067 NN |
5633 | clean-bzip2: |
5634 | @[ -f ./bzip2/Makefile ] || exit 0; \ | |
b40e3958 L |
5635 | r=`${PWD_COMMAND}`; export r; \ |
5636 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5637 | $(HOST_EXPORTS) \ |
b813574b | 5638 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
5639 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
5640 | done; \ | |
4fa63067 | 5641 | echo "Doing clean in bzip2" ; \ |
b00612cc | 5642 | (cd $(HOST_SUBDIR)/bzip2 && \ |
2a4cbe27 NN |
5643 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
5644 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5645 | "RANLIB=$${RANLIB}" \ | |
5646 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 5647 | clean) \ |
2a4cbe27 NN |
5648 | || exit 1 |
5649 | ||
6bd3dfaa | 5650 | @endif bzip2 |
2a4cbe27 | 5651 | |
4fa63067 NN |
5652 | .PHONY: maybe-distclean-bzip2 distclean-bzip2 |
5653 | maybe-distclean-bzip2: | |
6bd3dfaa PB |
5654 | @if bzip2 |
5655 | maybe-distclean-bzip2: distclean-bzip2 | |
2a4cbe27 | 5656 | |
4fa63067 NN |
5657 | distclean-bzip2: |
5658 | @[ -f ./bzip2/Makefile ] || exit 0; \ | |
b40e3958 L |
5659 | r=`${PWD_COMMAND}`; export r; \ |
5660 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5661 | $(HOST_EXPORTS) \ |
b813574b | 5662 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
5663 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
5664 | done; \ | |
4fa63067 | 5665 | echo "Doing distclean in bzip2" ; \ |
b00612cc | 5666 | (cd $(HOST_SUBDIR)/bzip2 && \ |
2a4cbe27 NN |
5667 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
5668 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5669 | "RANLIB=$${RANLIB}" \ | |
5670 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 5671 | distclean) \ |
2a4cbe27 NN |
5672 | || exit 1 |
5673 | ||
6bd3dfaa | 5674 | @endif bzip2 |
2a4cbe27 | 5675 | |
4fa63067 NN |
5676 | .PHONY: maybe-maintainer-clean-bzip2 maintainer-clean-bzip2 |
5677 | maybe-maintainer-clean-bzip2: | |
6bd3dfaa PB |
5678 | @if bzip2 |
5679 | maybe-maintainer-clean-bzip2: maintainer-clean-bzip2 | |
2a4cbe27 | 5680 | |
4fa63067 NN |
5681 | maintainer-clean-bzip2: |
5682 | @[ -f ./bzip2/Makefile ] || exit 0; \ | |
b40e3958 L |
5683 | r=`${PWD_COMMAND}`; export r; \ |
5684 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5685 | $(HOST_EXPORTS) \ |
b813574b | 5686 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
5687 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
5688 | done; \ | |
4fa63067 | 5689 | echo "Doing maintainer-clean in bzip2" ; \ |
b00612cc | 5690 | (cd $(HOST_SUBDIR)/bzip2 && \ |
2a4cbe27 NN |
5691 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
5692 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5693 | "RANLIB=$${RANLIB}" \ | |
5694 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 5695 | maintainer-clean) \ |
2a4cbe27 NN |
5696 | || exit 1 |
5697 | ||
6bd3dfaa | 5698 | @endif bzip2 |
2a4cbe27 | 5699 | |
2a4cbe27 | 5700 | |
a7254363 | 5701 | |
4fa63067 NN |
5702 | .PHONY: configure-dejagnu maybe-configure-dejagnu |
5703 | maybe-configure-dejagnu: | |
6bd3dfaa PB |
5704 | @if dejagnu |
5705 | maybe-configure-dejagnu: configure-dejagnu | |
a7254363 | 5706 | configure-dejagnu: |
b00612cc PB |
5707 | @test ! -f $(HOST_SUBDIR)/dejagnu/Makefile || exit 0; \ |
5708 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/dejagnu ; \ | |
4fa63067 NN |
5709 | r=`${PWD_COMMAND}`; export r; \ |
5710 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5711 | $(HOST_EXPORTS) \ |
a7254363 PB |
5712 | echo Configuring in $(HOST_SUBDIR)/dejagnu; \ |
5713 | cd "$(HOST_SUBDIR)/dejagnu" || exit 1; \ | |
4fa63067 | 5714 | case $(srcdir) in \ |
b00612cc PB |
5715 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
5716 | *) topdir=`echo $(HOST_SUBDIR)/dejagnu/ | \ | |
5717 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 5718 | esac; \ |
b00612cc PB |
5719 | srcdiroption="--srcdir=$${topdir}/dejagnu"; \ |
5720 | libsrcdir="$$s/dejagnu"; \ | |
4fa63067 | 5721 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 5722 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
4fa63067 | 5723 | || exit 1 |
6bd3dfaa | 5724 | @endif dejagnu |
4fa63067 | 5725 | |
a7254363 PB |
5726 | |
5727 | ||
4fa63067 NN |
5728 | .PHONY: all-dejagnu maybe-all-dejagnu |
5729 | maybe-all-dejagnu: | |
6bd3dfaa | 5730 | @if dejagnu |
d27cc32e | 5731 | TARGET-dejagnu=all |
6bd3dfaa | 5732 | maybe-all-dejagnu: all-dejagnu |
4fa63067 NN |
5733 | all-dejagnu: configure-dejagnu |
5734 | @r=`${PWD_COMMAND}`; export r; \ | |
5735 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5736 | $(HOST_EXPORTS) \ |
b00612cc PB |
5737 | (cd $(HOST_SUBDIR)/dejagnu && \ |
5738 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-dejagnu)) | |
6bd3dfaa | 5739 | @endif dejagnu |
4fa63067 | 5740 | |
a7254363 | 5741 | |
4fa63067 NN |
5742 | .PHONY: check-dejagnu maybe-check-dejagnu |
5743 | maybe-check-dejagnu: | |
6bd3dfaa PB |
5744 | @if dejagnu |
5745 | maybe-check-dejagnu: check-dejagnu | |
4fa63067 NN |
5746 | |
5747 | check-dejagnu: | |
5748 | @r=`${PWD_COMMAND}`; export r; \ | |
5749 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5750 | $(HOST_EXPORTS) \ |
b00612cc PB |
5751 | (cd $(HOST_SUBDIR)/dejagnu && \ |
5752 | $(MAKE) $(FLAGS_TO_PASS) check) | |
4fa63067 | 5753 | |
6bd3dfaa | 5754 | @endif dejagnu |
4fa63067 NN |
5755 | |
5756 | .PHONY: install-dejagnu maybe-install-dejagnu | |
5757 | maybe-install-dejagnu: | |
6bd3dfaa PB |
5758 | @if dejagnu |
5759 | maybe-install-dejagnu: install-dejagnu | |
4fa63067 NN |
5760 | |
5761 | install-dejagnu: installdirs | |
5762 | @r=`${PWD_COMMAND}`; export r; \ | |
5763 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5764 | $(HOST_EXPORTS) \ |
b00612cc | 5765 | (cd $(HOST_SUBDIR)/dejagnu && \ |
2da12f12 | 5766 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 5767 | |
6bd3dfaa | 5768 | @endif dejagnu |
4fa63067 NN |
5769 | |
5770 | # Other targets (info, dvi, etc.) | |
5771 | ||
5772 | .PHONY: maybe-info-dejagnu info-dejagnu | |
5773 | maybe-info-dejagnu: | |
6bd3dfaa PB |
5774 | @if dejagnu |
5775 | maybe-info-dejagnu: info-dejagnu | |
4fa63067 NN |
5776 | |
5777 | info-dejagnu: \ | |
5778 | configure-dejagnu | |
5779 | @[ -f ./dejagnu/Makefile ] || exit 0; \ | |
b40e3958 L |
5780 | r=`${PWD_COMMAND}`; export r; \ |
5781 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5782 | $(HOST_EXPORTS) \ |
b813574b | 5783 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
5784 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
5785 | done; \ | |
4fa63067 | 5786 | echo "Doing info in dejagnu" ; \ |
b00612cc | 5787 | (cd $(HOST_SUBDIR)/dejagnu && \ |
2a4cbe27 NN |
5788 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
5789 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5790 | "RANLIB=$${RANLIB}" \ | |
5791 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 5792 | info) \ |
2a4cbe27 NN |
5793 | || exit 1 |
5794 | ||
6bd3dfaa | 5795 | @endif dejagnu |
2a4cbe27 | 5796 | |
4fa63067 NN |
5797 | .PHONY: maybe-dvi-dejagnu dvi-dejagnu |
5798 | maybe-dvi-dejagnu: | |
6bd3dfaa PB |
5799 | @if dejagnu |
5800 | maybe-dvi-dejagnu: dvi-dejagnu | |
2a4cbe27 | 5801 | |
4fa63067 NN |
5802 | dvi-dejagnu: \ |
5803 | configure-dejagnu | |
5804 | @[ -f ./dejagnu/Makefile ] || exit 0; \ | |
b40e3958 L |
5805 | r=`${PWD_COMMAND}`; export r; \ |
5806 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5807 | $(HOST_EXPORTS) \ |
b813574b | 5808 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
5809 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
5810 | done; \ | |
4fa63067 | 5811 | echo "Doing dvi in dejagnu" ; \ |
b00612cc | 5812 | (cd $(HOST_SUBDIR)/dejagnu && \ |
2a4cbe27 NN |
5813 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
5814 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5815 | "RANLIB=$${RANLIB}" \ | |
5816 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 5817 | dvi) \ |
2a4cbe27 NN |
5818 | || exit 1 |
5819 | ||
6bd3dfaa | 5820 | @endif dejagnu |
2a4cbe27 | 5821 | |
6d389afc MS |
5822 | .PHONY: maybe-html-dejagnu html-dejagnu |
5823 | maybe-html-dejagnu: | |
5824 | @if dejagnu | |
5825 | maybe-html-dejagnu: html-dejagnu | |
5826 | ||
5827 | html-dejagnu: \ | |
5828 | configure-dejagnu | |
5829 | @[ -f ./dejagnu/Makefile ] || exit 0; \ | |
5830 | r=`${PWD_COMMAND}`; export r; \ | |
5831 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
5832 | $(HOST_EXPORTS) \ |
5833 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
5834 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
5835 | done; \ | |
5836 | echo "Doing html in dejagnu" ; \ | |
b00612cc | 5837 | (cd $(HOST_SUBDIR)/dejagnu && \ |
6d389afc MS |
5838 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
5839 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5840 | "RANLIB=$${RANLIB}" \ | |
5841 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
5842 | html) \ | |
5843 | || exit 1 | |
5844 | ||
5845 | @endif dejagnu | |
5846 | ||
4fa63067 NN |
5847 | .PHONY: maybe-TAGS-dejagnu TAGS-dejagnu |
5848 | maybe-TAGS-dejagnu: | |
6bd3dfaa PB |
5849 | @if dejagnu |
5850 | maybe-TAGS-dejagnu: TAGS-dejagnu | |
2a4cbe27 | 5851 | |
4fa63067 NN |
5852 | TAGS-dejagnu: \ |
5853 | configure-dejagnu | |
5854 | @[ -f ./dejagnu/Makefile ] || exit 0; \ | |
b40e3958 L |
5855 | r=`${PWD_COMMAND}`; export r; \ |
5856 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5857 | $(HOST_EXPORTS) \ |
b813574b | 5858 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
5859 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
5860 | done; \ | |
4fa63067 | 5861 | echo "Doing TAGS in dejagnu" ; \ |
b00612cc | 5862 | (cd $(HOST_SUBDIR)/dejagnu && \ |
2a4cbe27 NN |
5863 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
5864 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5865 | "RANLIB=$${RANLIB}" \ | |
5866 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 5867 | TAGS) \ |
2a4cbe27 NN |
5868 | || exit 1 |
5869 | ||
6bd3dfaa | 5870 | @endif dejagnu |
2a4cbe27 | 5871 | |
4fa63067 NN |
5872 | .PHONY: maybe-install-info-dejagnu install-info-dejagnu |
5873 | maybe-install-info-dejagnu: | |
6bd3dfaa PB |
5874 | @if dejagnu |
5875 | maybe-install-info-dejagnu: install-info-dejagnu | |
2a4cbe27 | 5876 | |
4fa63067 NN |
5877 | install-info-dejagnu: \ |
5878 | configure-dejagnu \ | |
5879 | info-dejagnu | |
5880 | @[ -f ./dejagnu/Makefile ] || exit 0; \ | |
b40e3958 L |
5881 | r=`${PWD_COMMAND}`; export r; \ |
5882 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5883 | $(HOST_EXPORTS) \ |
b813574b | 5884 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
5885 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
5886 | done; \ | |
4fa63067 | 5887 | echo "Doing install-info in dejagnu" ; \ |
b00612cc | 5888 | (cd $(HOST_SUBDIR)/dejagnu && \ |
2a4cbe27 NN |
5889 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
5890 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5891 | "RANLIB=$${RANLIB}" \ | |
5892 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 5893 | install-info) \ |
2a4cbe27 NN |
5894 | || exit 1 |
5895 | ||
6bd3dfaa | 5896 | @endif dejagnu |
2a4cbe27 | 5897 | |
4fa63067 NN |
5898 | .PHONY: maybe-installcheck-dejagnu installcheck-dejagnu |
5899 | maybe-installcheck-dejagnu: | |
6bd3dfaa PB |
5900 | @if dejagnu |
5901 | maybe-installcheck-dejagnu: installcheck-dejagnu | |
2a4cbe27 | 5902 | |
4fa63067 NN |
5903 | installcheck-dejagnu: \ |
5904 | configure-dejagnu | |
5905 | @[ -f ./dejagnu/Makefile ] || exit 0; \ | |
b40e3958 L |
5906 | r=`${PWD_COMMAND}`; export r; \ |
5907 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5908 | $(HOST_EXPORTS) \ |
b813574b | 5909 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
5910 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
5911 | done; \ | |
4fa63067 | 5912 | echo "Doing installcheck in dejagnu" ; \ |
b00612cc | 5913 | (cd $(HOST_SUBDIR)/dejagnu && \ |
2a4cbe27 NN |
5914 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
5915 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5916 | "RANLIB=$${RANLIB}" \ | |
5917 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 5918 | installcheck) \ |
2a4cbe27 NN |
5919 | || exit 1 |
5920 | ||
6bd3dfaa | 5921 | @endif dejagnu |
2a4cbe27 | 5922 | |
4fa63067 NN |
5923 | .PHONY: maybe-mostlyclean-dejagnu mostlyclean-dejagnu |
5924 | maybe-mostlyclean-dejagnu: | |
6bd3dfaa PB |
5925 | @if dejagnu |
5926 | maybe-mostlyclean-dejagnu: mostlyclean-dejagnu | |
2a4cbe27 | 5927 | |
4fa63067 NN |
5928 | mostlyclean-dejagnu: |
5929 | @[ -f ./dejagnu/Makefile ] || exit 0; \ | |
b40e3958 L |
5930 | r=`${PWD_COMMAND}`; export r; \ |
5931 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5932 | $(HOST_EXPORTS) \ |
b813574b | 5933 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
5934 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
5935 | done; \ | |
4fa63067 | 5936 | echo "Doing mostlyclean in dejagnu" ; \ |
b00612cc | 5937 | (cd $(HOST_SUBDIR)/dejagnu && \ |
2a4cbe27 NN |
5938 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
5939 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5940 | "RANLIB=$${RANLIB}" \ | |
5941 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 5942 | mostlyclean) \ |
2a4cbe27 NN |
5943 | || exit 1 |
5944 | ||
6bd3dfaa | 5945 | @endif dejagnu |
2a4cbe27 | 5946 | |
4fa63067 NN |
5947 | .PHONY: maybe-clean-dejagnu clean-dejagnu |
5948 | maybe-clean-dejagnu: | |
6bd3dfaa PB |
5949 | @if dejagnu |
5950 | maybe-clean-dejagnu: clean-dejagnu | |
2a4cbe27 | 5951 | |
4fa63067 NN |
5952 | clean-dejagnu: |
5953 | @[ -f ./dejagnu/Makefile ] || exit 0; \ | |
b40e3958 L |
5954 | r=`${PWD_COMMAND}`; export r; \ |
5955 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
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 | 5960 | echo "Doing clean in dejagnu" ; \ |
b00612cc | 5961 | (cd $(HOST_SUBDIR)/dejagnu && \ |
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 | clean) \ |
2a4cbe27 NN |
5967 | || exit 1 |
5968 | ||
6bd3dfaa | 5969 | @endif dejagnu |
2a4cbe27 | 5970 | |
4fa63067 NN |
5971 | .PHONY: maybe-distclean-dejagnu distclean-dejagnu |
5972 | maybe-distclean-dejagnu: | |
6bd3dfaa PB |
5973 | @if dejagnu |
5974 | maybe-distclean-dejagnu: distclean-dejagnu | |
2a4cbe27 | 5975 | |
4fa63067 NN |
5976 | distclean-dejagnu: |
5977 | @[ -f ./dejagnu/Makefile ] || exit 0; \ | |
b40e3958 L |
5978 | r=`${PWD_COMMAND}`; export r; \ |
5979 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5980 | $(HOST_EXPORTS) \ |
b813574b | 5981 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
5982 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
5983 | done; \ | |
4fa63067 | 5984 | echo "Doing distclean in dejagnu" ; \ |
b00612cc | 5985 | (cd $(HOST_SUBDIR)/dejagnu && \ |
2a4cbe27 NN |
5986 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
5987 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5988 | "RANLIB=$${RANLIB}" \ | |
5989 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 5990 | distclean) \ |
2a4cbe27 NN |
5991 | || exit 1 |
5992 | ||
6bd3dfaa | 5993 | @endif dejagnu |
2a4cbe27 | 5994 | |
4fa63067 NN |
5995 | .PHONY: maybe-maintainer-clean-dejagnu maintainer-clean-dejagnu |
5996 | maybe-maintainer-clean-dejagnu: | |
6bd3dfaa PB |
5997 | @if dejagnu |
5998 | maybe-maintainer-clean-dejagnu: maintainer-clean-dejagnu | |
2a4cbe27 | 5999 | |
4fa63067 NN |
6000 | maintainer-clean-dejagnu: |
6001 | @[ -f ./dejagnu/Makefile ] || exit 0; \ | |
b40e3958 L |
6002 | r=`${PWD_COMMAND}`; export r; \ |
6003 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6004 | $(HOST_EXPORTS) \ |
b813574b | 6005 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6006 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6007 | done; \ | |
4fa63067 | 6008 | echo "Doing maintainer-clean in dejagnu" ; \ |
b00612cc | 6009 | (cd $(HOST_SUBDIR)/dejagnu && \ |
2a4cbe27 NN |
6010 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6011 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6012 | "RANLIB=$${RANLIB}" \ | |
6013 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 6014 | maintainer-clean) \ |
4fa63067 NN |
6015 | || exit 1 |
6016 | ||
6bd3dfaa | 6017 | @endif dejagnu |
4fa63067 NN |
6018 | |
6019 | ||
a7254363 | 6020 | |
4fa63067 NN |
6021 | .PHONY: configure-diff maybe-configure-diff |
6022 | maybe-configure-diff: | |
6bd3dfaa PB |
6023 | @if diff |
6024 | maybe-configure-diff: configure-diff | |
a7254363 | 6025 | configure-diff: |
b00612cc PB |
6026 | @test ! -f $(HOST_SUBDIR)/diff/Makefile || exit 0; \ |
6027 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/diff ; \ | |
4fa63067 NN |
6028 | r=`${PWD_COMMAND}`; export r; \ |
6029 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6030 | $(HOST_EXPORTS) \ |
a7254363 PB |
6031 | echo Configuring in $(HOST_SUBDIR)/diff; \ |
6032 | cd "$(HOST_SUBDIR)/diff" || exit 1; \ | |
4fa63067 | 6033 | case $(srcdir) in \ |
b00612cc PB |
6034 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
6035 | *) topdir=`echo $(HOST_SUBDIR)/diff/ | \ | |
6036 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 6037 | esac; \ |
b00612cc PB |
6038 | srcdiroption="--srcdir=$${topdir}/diff"; \ |
6039 | libsrcdir="$$s/diff"; \ | |
4fa63067 | 6040 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 6041 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
2a4cbe27 | 6042 | || exit 1 |
6bd3dfaa | 6043 | @endif diff |
2a4cbe27 | 6044 | |
a7254363 PB |
6045 | |
6046 | ||
4fa63067 NN |
6047 | .PHONY: all-diff maybe-all-diff |
6048 | maybe-all-diff: | |
6bd3dfaa | 6049 | @if diff |
d27cc32e | 6050 | TARGET-diff=all |
6bd3dfaa | 6051 | maybe-all-diff: all-diff |
4fa63067 NN |
6052 | all-diff: configure-diff |
6053 | @r=`${PWD_COMMAND}`; export r; \ | |
6054 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6055 | $(HOST_EXPORTS) \ |
b00612cc PB |
6056 | (cd $(HOST_SUBDIR)/diff && \ |
6057 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-diff)) | |
6bd3dfaa | 6058 | @endif diff |
2a4cbe27 | 6059 | |
a7254363 | 6060 | |
4fa63067 NN |
6061 | .PHONY: check-diff maybe-check-diff |
6062 | maybe-check-diff: | |
6bd3dfaa PB |
6063 | @if diff |
6064 | maybe-check-diff: check-diff | |
2a4cbe27 | 6065 | |
4fa63067 NN |
6066 | check-diff: |
6067 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 6068 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 6069 | $(HOST_EXPORTS) \ |
b00612cc PB |
6070 | (cd $(HOST_SUBDIR)/diff && \ |
6071 | $(MAKE) $(FLAGS_TO_PASS) check) | |
2a4cbe27 | 6072 | |
6bd3dfaa | 6073 | @endif diff |
2a4cbe27 | 6074 | |
4fa63067 NN |
6075 | .PHONY: install-diff maybe-install-diff |
6076 | maybe-install-diff: | |
6bd3dfaa PB |
6077 | @if diff |
6078 | maybe-install-diff: install-diff | |
2a4cbe27 | 6079 | |
4fa63067 NN |
6080 | install-diff: installdirs |
6081 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 6082 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 6083 | $(HOST_EXPORTS) \ |
b00612cc | 6084 | (cd $(HOST_SUBDIR)/diff && \ |
2da12f12 | 6085 | $(MAKE) $(FLAGS_TO_PASS) install) |
2a4cbe27 | 6086 | |
6bd3dfaa | 6087 | @endif diff |
2a4cbe27 | 6088 | |
4fa63067 | 6089 | # Other targets (info, dvi, etc.) |
2a4cbe27 | 6090 | |
4fa63067 NN |
6091 | .PHONY: maybe-info-diff info-diff |
6092 | maybe-info-diff: | |
6bd3dfaa PB |
6093 | @if diff |
6094 | maybe-info-diff: info-diff | |
2a4cbe27 | 6095 | |
4fa63067 NN |
6096 | info-diff: \ |
6097 | configure-diff | |
6098 | @[ -f ./diff/Makefile ] || exit 0; \ | |
b40e3958 L |
6099 | r=`${PWD_COMMAND}`; export r; \ |
6100 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6101 | $(HOST_EXPORTS) \ |
b813574b | 6102 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6103 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6104 | done; \ | |
4fa63067 | 6105 | echo "Doing info in diff" ; \ |
b00612cc | 6106 | (cd $(HOST_SUBDIR)/diff && \ |
2a4cbe27 NN |
6107 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6108 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6109 | "RANLIB=$${RANLIB}" \ | |
6110 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 6111 | info) \ |
2a4cbe27 NN |
6112 | || exit 1 |
6113 | ||
6bd3dfaa | 6114 | @endif diff |
2a4cbe27 | 6115 | |
4fa63067 NN |
6116 | .PHONY: maybe-dvi-diff dvi-diff |
6117 | maybe-dvi-diff: | |
6bd3dfaa PB |
6118 | @if diff |
6119 | maybe-dvi-diff: dvi-diff | |
2a4cbe27 | 6120 | |
4fa63067 NN |
6121 | dvi-diff: \ |
6122 | configure-diff | |
6123 | @[ -f ./diff/Makefile ] || exit 0; \ | |
b40e3958 L |
6124 | r=`${PWD_COMMAND}`; export r; \ |
6125 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6126 | $(HOST_EXPORTS) \ |
b813574b | 6127 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6128 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6129 | done; \ | |
4fa63067 | 6130 | echo "Doing dvi in diff" ; \ |
b00612cc | 6131 | (cd $(HOST_SUBDIR)/diff && \ |
2a4cbe27 NN |
6132 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6133 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6134 | "RANLIB=$${RANLIB}" \ | |
6135 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 6136 | dvi) \ |
2a4cbe27 NN |
6137 | || exit 1 |
6138 | ||
6bd3dfaa | 6139 | @endif diff |
2a4cbe27 | 6140 | |
6d389afc MS |
6141 | .PHONY: maybe-html-diff html-diff |
6142 | maybe-html-diff: | |
6143 | @if diff | |
6144 | maybe-html-diff: html-diff | |
6145 | ||
6146 | html-diff: \ | |
6147 | configure-diff | |
6148 | @[ -f ./diff/Makefile ] || exit 0; \ | |
6149 | r=`${PWD_COMMAND}`; export r; \ | |
6150 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
6151 | $(HOST_EXPORTS) \ |
6152 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
6153 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
6154 | done; \ | |
6155 | echo "Doing html in diff" ; \ | |
b00612cc | 6156 | (cd $(HOST_SUBDIR)/diff && \ |
6d389afc MS |
6157 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6158 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6159 | "RANLIB=$${RANLIB}" \ | |
6160 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
6161 | html) \ | |
6162 | || exit 1 | |
6163 | ||
6164 | @endif diff | |
6165 | ||
4fa63067 NN |
6166 | .PHONY: maybe-TAGS-diff TAGS-diff |
6167 | maybe-TAGS-diff: | |
6bd3dfaa PB |
6168 | @if diff |
6169 | maybe-TAGS-diff: TAGS-diff | |
2a4cbe27 | 6170 | |
4fa63067 NN |
6171 | TAGS-diff: \ |
6172 | configure-diff | |
6173 | @[ -f ./diff/Makefile ] || exit 0; \ | |
b40e3958 L |
6174 | r=`${PWD_COMMAND}`; export r; \ |
6175 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6176 | $(HOST_EXPORTS) \ |
b813574b | 6177 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6178 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6179 | done; \ | |
4fa63067 | 6180 | echo "Doing TAGS in diff" ; \ |
b00612cc | 6181 | (cd $(HOST_SUBDIR)/diff && \ |
2a4cbe27 NN |
6182 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6183 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6184 | "RANLIB=$${RANLIB}" \ | |
6185 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 6186 | TAGS) \ |
2a4cbe27 NN |
6187 | || exit 1 |
6188 | ||
6bd3dfaa | 6189 | @endif diff |
2a4cbe27 | 6190 | |
4fa63067 NN |
6191 | .PHONY: maybe-install-info-diff install-info-diff |
6192 | maybe-install-info-diff: | |
6bd3dfaa PB |
6193 | @if diff |
6194 | maybe-install-info-diff: install-info-diff | |
2a4cbe27 | 6195 | |
4fa63067 NN |
6196 | install-info-diff: \ |
6197 | configure-diff \ | |
6198 | info-diff | |
6199 | @[ -f ./diff/Makefile ] || exit 0; \ | |
b40e3958 L |
6200 | r=`${PWD_COMMAND}`; export r; \ |
6201 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6202 | $(HOST_EXPORTS) \ |
b813574b | 6203 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6204 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6205 | done; \ | |
4fa63067 | 6206 | echo "Doing install-info in diff" ; \ |
b00612cc | 6207 | (cd $(HOST_SUBDIR)/diff && \ |
2a4cbe27 NN |
6208 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6209 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6210 | "RANLIB=$${RANLIB}" \ | |
6211 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 6212 | install-info) \ |
2a4cbe27 NN |
6213 | || exit 1 |
6214 | ||
6bd3dfaa | 6215 | @endif diff |
2a4cbe27 | 6216 | |
4fa63067 NN |
6217 | .PHONY: maybe-installcheck-diff installcheck-diff |
6218 | maybe-installcheck-diff: | |
6bd3dfaa PB |
6219 | @if diff |
6220 | maybe-installcheck-diff: installcheck-diff | |
2a4cbe27 | 6221 | |
4fa63067 NN |
6222 | installcheck-diff: \ |
6223 | configure-diff | |
6224 | @[ -f ./diff/Makefile ] || exit 0; \ | |
b40e3958 L |
6225 | r=`${PWD_COMMAND}`; export r; \ |
6226 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
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 | 6231 | echo "Doing installcheck in diff" ; \ |
b00612cc | 6232 | (cd $(HOST_SUBDIR)/diff && \ |
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 | installcheck) \ |
2a4cbe27 NN |
6238 | || exit 1 |
6239 | ||
6bd3dfaa | 6240 | @endif diff |
2a4cbe27 | 6241 | |
4fa63067 NN |
6242 | .PHONY: maybe-mostlyclean-diff mostlyclean-diff |
6243 | maybe-mostlyclean-diff: | |
6bd3dfaa PB |
6244 | @if diff |
6245 | maybe-mostlyclean-diff: mostlyclean-diff | |
2a4cbe27 | 6246 | |
4fa63067 NN |
6247 | mostlyclean-diff: |
6248 | @[ -f ./diff/Makefile ] || exit 0; \ | |
b40e3958 L |
6249 | r=`${PWD_COMMAND}`; export r; \ |
6250 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6251 | $(HOST_EXPORTS) \ |
b813574b | 6252 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6253 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6254 | done; \ | |
4fa63067 | 6255 | echo "Doing mostlyclean in diff" ; \ |
b00612cc | 6256 | (cd $(HOST_SUBDIR)/diff && \ |
2a4cbe27 NN |
6257 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6258 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6259 | "RANLIB=$${RANLIB}" \ | |
6260 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 6261 | mostlyclean) \ |
2a4cbe27 NN |
6262 | || exit 1 |
6263 | ||
6bd3dfaa | 6264 | @endif diff |
2a4cbe27 | 6265 | |
4fa63067 NN |
6266 | .PHONY: maybe-clean-diff clean-diff |
6267 | maybe-clean-diff: | |
6bd3dfaa PB |
6268 | @if diff |
6269 | maybe-clean-diff: clean-diff | |
2a4cbe27 | 6270 | |
4fa63067 NN |
6271 | clean-diff: |
6272 | @[ -f ./diff/Makefile ] || exit 0; \ | |
b40e3958 L |
6273 | r=`${PWD_COMMAND}`; export r; \ |
6274 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6275 | $(HOST_EXPORTS) \ |
b813574b | 6276 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6277 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6278 | done; \ | |
4fa63067 | 6279 | echo "Doing clean in diff" ; \ |
b00612cc | 6280 | (cd $(HOST_SUBDIR)/diff && \ |
2a4cbe27 NN |
6281 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6282 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6283 | "RANLIB=$${RANLIB}" \ | |
6284 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 6285 | clean) \ |
2a4cbe27 NN |
6286 | || exit 1 |
6287 | ||
6bd3dfaa | 6288 | @endif diff |
2a4cbe27 | 6289 | |
4fa63067 NN |
6290 | .PHONY: maybe-distclean-diff distclean-diff |
6291 | maybe-distclean-diff: | |
6bd3dfaa PB |
6292 | @if diff |
6293 | maybe-distclean-diff: distclean-diff | |
2a4cbe27 | 6294 | |
4fa63067 NN |
6295 | distclean-diff: |
6296 | @[ -f ./diff/Makefile ] || exit 0; \ | |
b40e3958 L |
6297 | r=`${PWD_COMMAND}`; export r; \ |
6298 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6299 | $(HOST_EXPORTS) \ |
b813574b | 6300 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6301 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6302 | done; \ | |
4fa63067 | 6303 | echo "Doing distclean in diff" ; \ |
b00612cc | 6304 | (cd $(HOST_SUBDIR)/diff && \ |
2a4cbe27 NN |
6305 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6306 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6307 | "RANLIB=$${RANLIB}" \ | |
6308 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 6309 | distclean) \ |
2a4cbe27 NN |
6310 | || exit 1 |
6311 | ||
6bd3dfaa | 6312 | @endif diff |
2a4cbe27 | 6313 | |
4fa63067 NN |
6314 | .PHONY: maybe-maintainer-clean-diff maintainer-clean-diff |
6315 | maybe-maintainer-clean-diff: | |
6bd3dfaa PB |
6316 | @if diff |
6317 | maybe-maintainer-clean-diff: maintainer-clean-diff | |
2a4cbe27 | 6318 | |
4fa63067 NN |
6319 | maintainer-clean-diff: |
6320 | @[ -f ./diff/Makefile ] || exit 0; \ | |
b40e3958 L |
6321 | r=`${PWD_COMMAND}`; export r; \ |
6322 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6323 | $(HOST_EXPORTS) \ |
b813574b | 6324 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6325 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6326 | done; \ | |
4fa63067 | 6327 | echo "Doing maintainer-clean in diff" ; \ |
b00612cc | 6328 | (cd $(HOST_SUBDIR)/diff && \ |
2a4cbe27 NN |
6329 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6330 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6331 | "RANLIB=$${RANLIB}" \ | |
6332 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 6333 | maintainer-clean) \ |
2a4cbe27 NN |
6334 | || exit 1 |
6335 | ||
6bd3dfaa | 6336 | @endif diff |
2a4cbe27 | 6337 | |
2a4cbe27 | 6338 | |
a7254363 | 6339 | |
4fa63067 NN |
6340 | .PHONY: configure-dosutils maybe-configure-dosutils |
6341 | maybe-configure-dosutils: | |
6bd3dfaa PB |
6342 | @if dosutils |
6343 | maybe-configure-dosutils: configure-dosutils | |
a7254363 | 6344 | configure-dosutils: |
b00612cc PB |
6345 | @test ! -f $(HOST_SUBDIR)/dosutils/Makefile || exit 0; \ |
6346 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/dosutils ; \ | |
b40e3958 L |
6347 | r=`${PWD_COMMAND}`; export r; \ |
6348 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6349 | $(HOST_EXPORTS) \ |
a7254363 PB |
6350 | echo Configuring in $(HOST_SUBDIR)/dosutils; \ |
6351 | cd "$(HOST_SUBDIR)/dosutils" || exit 1; \ | |
4fa63067 | 6352 | case $(srcdir) in \ |
b00612cc PB |
6353 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
6354 | *) topdir=`echo $(HOST_SUBDIR)/dosutils/ | \ | |
6355 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 6356 | esac; \ |
b00612cc PB |
6357 | srcdiroption="--srcdir=$${topdir}/dosutils"; \ |
6358 | libsrcdir="$$s/dosutils"; \ | |
4fa63067 | 6359 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 6360 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
4fa63067 | 6361 | || exit 1 |
6bd3dfaa | 6362 | @endif dosutils |
4fa63067 | 6363 | |
a7254363 PB |
6364 | |
6365 | ||
4fa63067 NN |
6366 | .PHONY: all-dosutils maybe-all-dosutils |
6367 | maybe-all-dosutils: | |
6bd3dfaa | 6368 | @if dosutils |
d27cc32e | 6369 | TARGET-dosutils=all |
6bd3dfaa | 6370 | maybe-all-dosutils: all-dosutils |
4fa63067 NN |
6371 | all-dosutils: configure-dosutils |
6372 | @r=`${PWD_COMMAND}`; export r; \ | |
6373 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6374 | $(HOST_EXPORTS) \ |
b00612cc PB |
6375 | (cd $(HOST_SUBDIR)/dosutils && \ |
6376 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-dosutils)) | |
6bd3dfaa | 6377 | @endif dosutils |
4fa63067 | 6378 | |
a7254363 | 6379 | |
4fa63067 NN |
6380 | .PHONY: check-dosutils maybe-check-dosutils |
6381 | maybe-check-dosutils: | |
6bd3dfaa PB |
6382 | @if dosutils |
6383 | maybe-check-dosutils: check-dosutils | |
2a4cbe27 | 6384 | |
4fa63067 | 6385 | check-dosutils: |
2a4cbe27 | 6386 | |
6bd3dfaa | 6387 | @endif dosutils |
2a4cbe27 | 6388 | |
4fa63067 NN |
6389 | .PHONY: install-dosutils maybe-install-dosutils |
6390 | maybe-install-dosutils: | |
6bd3dfaa PB |
6391 | @if dosutils |
6392 | maybe-install-dosutils: install-dosutils | |
4fa63067 NN |
6393 | |
6394 | install-dosutils: installdirs | |
6395 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 6396 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 6397 | $(HOST_EXPORTS) \ |
b00612cc | 6398 | (cd $(HOST_SUBDIR)/dosutils && \ |
2da12f12 | 6399 | $(MAKE) $(FLAGS_TO_PASS) install) |
2a4cbe27 | 6400 | |
6bd3dfaa | 6401 | @endif dosutils |
2a4cbe27 | 6402 | |
4fa63067 | 6403 | # Other targets (info, dvi, etc.) |
2a4cbe27 | 6404 | |
4fa63067 NN |
6405 | .PHONY: maybe-info-dosutils info-dosutils |
6406 | maybe-info-dosutils: | |
6bd3dfaa PB |
6407 | @if dosutils |
6408 | maybe-info-dosutils: info-dosutils | |
4fa63067 NN |
6409 | |
6410 | info-dosutils: \ | |
6411 | configure-dosutils | |
6412 | @[ -f ./dosutils/Makefile ] || exit 0; \ | |
b40e3958 L |
6413 | r=`${PWD_COMMAND}`; export r; \ |
6414 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6415 | $(HOST_EXPORTS) \ |
b813574b | 6416 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6417 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6418 | done; \ | |
4fa63067 | 6419 | echo "Doing info in dosutils" ; \ |
b00612cc | 6420 | (cd $(HOST_SUBDIR)/dosutils && \ |
2a4cbe27 NN |
6421 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6422 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6423 | "RANLIB=$${RANLIB}" \ | |
6424 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 6425 | info) \ |
2a4cbe27 NN |
6426 | || exit 1 |
6427 | ||
6bd3dfaa | 6428 | @endif dosutils |
2a4cbe27 | 6429 | |
4fa63067 NN |
6430 | .PHONY: maybe-dvi-dosutils dvi-dosutils |
6431 | maybe-dvi-dosutils: | |
6bd3dfaa PB |
6432 | @if dosutils |
6433 | maybe-dvi-dosutils: dvi-dosutils | |
2a4cbe27 | 6434 | |
4fa63067 NN |
6435 | dvi-dosutils: \ |
6436 | configure-dosutils | |
6437 | @[ -f ./dosutils/Makefile ] || exit 0; \ | |
b40e3958 L |
6438 | r=`${PWD_COMMAND}`; export r; \ |
6439 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6440 | $(HOST_EXPORTS) \ |
b813574b | 6441 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6442 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6443 | done; \ | |
4fa63067 | 6444 | echo "Doing dvi in dosutils" ; \ |
b00612cc | 6445 | (cd $(HOST_SUBDIR)/dosutils && \ |
2a4cbe27 NN |
6446 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6447 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6448 | "RANLIB=$${RANLIB}" \ | |
6449 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 6450 | dvi) \ |
2a4cbe27 NN |
6451 | || exit 1 |
6452 | ||
6bd3dfaa | 6453 | @endif dosutils |
2a4cbe27 | 6454 | |
6d389afc MS |
6455 | .PHONY: maybe-html-dosutils html-dosutils |
6456 | maybe-html-dosutils: | |
6bd3dfaa | 6457 | @if dosutils |
6d389afc | 6458 | maybe-html-dosutils: html-dosutils |
2a4cbe27 | 6459 | |
6d389afc | 6460 | html-dosutils: \ |
4fa63067 NN |
6461 | configure-dosutils |
6462 | @[ -f ./dosutils/Makefile ] || exit 0; \ | |
b40e3958 L |
6463 | r=`${PWD_COMMAND}`; export r; \ |
6464 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6465 | $(HOST_EXPORTS) \ |
b813574b | 6466 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6467 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6468 | done; \ | |
6d389afc | 6469 | echo "Doing html in dosutils" ; \ |
b00612cc | 6470 | (cd $(HOST_SUBDIR)/dosutils && \ |
2a4cbe27 NN |
6471 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6472 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6473 | "RANLIB=$${RANLIB}" \ | |
6474 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
6d389afc | 6475 | html) \ |
2a4cbe27 NN |
6476 | || exit 1 |
6477 | ||
6bd3dfaa | 6478 | @endif dosutils |
2a4cbe27 | 6479 | |
6d389afc MS |
6480 | .PHONY: maybe-TAGS-dosutils TAGS-dosutils |
6481 | maybe-TAGS-dosutils: | |
6bd3dfaa | 6482 | @if dosutils |
6d389afc | 6483 | maybe-TAGS-dosutils: TAGS-dosutils |
2a4cbe27 | 6484 | |
6d389afc MS |
6485 | TAGS-dosutils: \ |
6486 | configure-dosutils | |
6487 | @[ -f ./dosutils/Makefile ] || exit 0; \ | |
6488 | r=`${PWD_COMMAND}`; export r; \ | |
6489 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
6490 | $(HOST_EXPORTS) \ |
6491 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
6492 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
6493 | done; \ | |
6494 | echo "Doing TAGS in dosutils" ; \ | |
b00612cc | 6495 | (cd $(HOST_SUBDIR)/dosutils && \ |
6d389afc MS |
6496 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6497 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6498 | "RANLIB=$${RANLIB}" \ | |
6499 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
6500 | TAGS) \ | |
6501 | || exit 1 | |
6502 | ||
6503 | @endif dosutils | |
6504 | ||
6505 | .PHONY: maybe-install-info-dosutils install-info-dosutils | |
6506 | maybe-install-info-dosutils: | |
6507 | @if dosutils | |
6508 | maybe-install-info-dosutils: install-info-dosutils | |
6509 | ||
6510 | install-info-dosutils: \ | |
6511 | configure-dosutils \ | |
6512 | info-dosutils | |
4fa63067 | 6513 | @[ -f ./dosutils/Makefile ] || exit 0; \ |
b40e3958 L |
6514 | r=`${PWD_COMMAND}`; export r; \ |
6515 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6516 | $(HOST_EXPORTS) \ |
b813574b | 6517 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6518 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6519 | done; \ | |
4fa63067 | 6520 | echo "Doing install-info in dosutils" ; \ |
b00612cc | 6521 | (cd $(HOST_SUBDIR)/dosutils && \ |
2a4cbe27 NN |
6522 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6523 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6524 | "RANLIB=$${RANLIB}" \ | |
6525 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 6526 | install-info) \ |
2a4cbe27 NN |
6527 | || exit 1 |
6528 | ||
6bd3dfaa | 6529 | @endif dosutils |
2a4cbe27 | 6530 | |
4fa63067 NN |
6531 | .PHONY: maybe-installcheck-dosutils installcheck-dosutils |
6532 | maybe-installcheck-dosutils: | |
6bd3dfaa PB |
6533 | @if dosutils |
6534 | maybe-installcheck-dosutils: installcheck-dosutils | |
2a4cbe27 | 6535 | |
4fa63067 NN |
6536 | installcheck-dosutils: \ |
6537 | configure-dosutils | |
6538 | @[ -f ./dosutils/Makefile ] || exit 0; \ | |
b40e3958 L |
6539 | r=`${PWD_COMMAND}`; export r; \ |
6540 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6541 | $(HOST_EXPORTS) \ |
b813574b | 6542 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6543 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6544 | done; \ | |
4fa63067 | 6545 | echo "Doing installcheck in dosutils" ; \ |
b00612cc | 6546 | (cd $(HOST_SUBDIR)/dosutils && \ |
2a4cbe27 NN |
6547 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6548 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6549 | "RANLIB=$${RANLIB}" \ | |
6550 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 6551 | installcheck) \ |
2a4cbe27 NN |
6552 | || exit 1 |
6553 | ||
6bd3dfaa | 6554 | @endif dosutils |
2a4cbe27 | 6555 | |
4fa63067 NN |
6556 | .PHONY: maybe-mostlyclean-dosutils mostlyclean-dosutils |
6557 | maybe-mostlyclean-dosutils: | |
6bd3dfaa PB |
6558 | @if dosutils |
6559 | maybe-mostlyclean-dosutils: mostlyclean-dosutils | |
a2592b1b | 6560 | |
4fa63067 NN |
6561 | mostlyclean-dosutils: |
6562 | @[ -f ./dosutils/Makefile ] || exit 0; \ | |
a2592b1b DD |
6563 | r=`${PWD_COMMAND}`; export r; \ |
6564 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6565 | $(HOST_EXPORTS) \ |
b813574b | 6566 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
a2592b1b DD |
6567 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6568 | done; \ | |
4fa63067 | 6569 | echo "Doing mostlyclean in dosutils" ; \ |
b00612cc | 6570 | (cd $(HOST_SUBDIR)/dosutils && \ |
a2592b1b DD |
6571 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6572 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6573 | "RANLIB=$${RANLIB}" \ | |
6574 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 6575 | mostlyclean) \ |
a2592b1b DD |
6576 | || exit 1 |
6577 | ||
6bd3dfaa | 6578 | @endif dosutils |
a2592b1b | 6579 | |
4fa63067 NN |
6580 | .PHONY: maybe-clean-dosutils clean-dosutils |
6581 | maybe-clean-dosutils: | |
6bd3dfaa PB |
6582 | @if dosutils |
6583 | maybe-clean-dosutils: clean-dosutils | |
2a4cbe27 | 6584 | |
4fa63067 NN |
6585 | clean-dosutils: |
6586 | @[ -f ./dosutils/Makefile ] || exit 0; \ | |
b40e3958 L |
6587 | r=`${PWD_COMMAND}`; export r; \ |
6588 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6589 | $(HOST_EXPORTS) \ |
b813574b | 6590 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6591 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6592 | done; \ | |
4fa63067 | 6593 | echo "Doing clean in dosutils" ; \ |
b00612cc | 6594 | (cd $(HOST_SUBDIR)/dosutils && \ |
2a4cbe27 NN |
6595 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6596 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6597 | "RANLIB=$${RANLIB}" \ | |
6598 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 6599 | clean) \ |
2a4cbe27 NN |
6600 | || exit 1 |
6601 | ||
6bd3dfaa | 6602 | @endif dosutils |
2a4cbe27 | 6603 | |
4fa63067 NN |
6604 | .PHONY: maybe-distclean-dosutils distclean-dosutils |
6605 | maybe-distclean-dosutils: | |
6bd3dfaa PB |
6606 | @if dosutils |
6607 | maybe-distclean-dosutils: distclean-dosutils | |
2a4cbe27 | 6608 | |
4fa63067 NN |
6609 | distclean-dosutils: |
6610 | @[ -f ./dosutils/Makefile ] || exit 0; \ | |
b40e3958 L |
6611 | r=`${PWD_COMMAND}`; export r; \ |
6612 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6613 | $(HOST_EXPORTS) \ |
b813574b | 6614 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6615 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6616 | done; \ | |
4fa63067 | 6617 | echo "Doing distclean in dosutils" ; \ |
b00612cc | 6618 | (cd $(HOST_SUBDIR)/dosutils && \ |
2a4cbe27 NN |
6619 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6620 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6621 | "RANLIB=$${RANLIB}" \ | |
6622 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 6623 | distclean) \ |
2a4cbe27 NN |
6624 | || exit 1 |
6625 | ||
6bd3dfaa | 6626 | @endif dosutils |
2a4cbe27 | 6627 | |
4fa63067 NN |
6628 | .PHONY: maybe-maintainer-clean-dosutils maintainer-clean-dosutils |
6629 | maybe-maintainer-clean-dosutils: | |
6bd3dfaa PB |
6630 | @if dosutils |
6631 | maybe-maintainer-clean-dosutils: maintainer-clean-dosutils | |
2a4cbe27 | 6632 | |
4fa63067 NN |
6633 | maintainer-clean-dosutils: |
6634 | @[ -f ./dosutils/Makefile ] || exit 0; \ | |
b40e3958 L |
6635 | r=`${PWD_COMMAND}`; export r; \ |
6636 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6637 | $(HOST_EXPORTS) \ |
b813574b | 6638 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6639 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6640 | done; \ | |
4fa63067 | 6641 | echo "Doing maintainer-clean in dosutils" ; \ |
b00612cc | 6642 | (cd $(HOST_SUBDIR)/dosutils && \ |
2a4cbe27 NN |
6643 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6644 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6645 | "RANLIB=$${RANLIB}" \ | |
6646 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 6647 | maintainer-clean) \ |
2a4cbe27 NN |
6648 | || exit 1 |
6649 | ||
6bd3dfaa | 6650 | @endif dosutils |
2a4cbe27 | 6651 | |
2a4cbe27 | 6652 | |
a7254363 | 6653 | |
4fa63067 NN |
6654 | .PHONY: configure-etc maybe-configure-etc |
6655 | maybe-configure-etc: | |
6bd3dfaa PB |
6656 | @if etc |
6657 | maybe-configure-etc: configure-etc | |
a7254363 | 6658 | configure-etc: |
b00612cc PB |
6659 | @test ! -f $(HOST_SUBDIR)/etc/Makefile || exit 0; \ |
6660 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/etc ; \ | |
4fa63067 NN |
6661 | r=`${PWD_COMMAND}`; export r; \ |
6662 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6663 | $(HOST_EXPORTS) \ |
a7254363 PB |
6664 | echo Configuring in $(HOST_SUBDIR)/etc; \ |
6665 | cd "$(HOST_SUBDIR)/etc" || exit 1; \ | |
4fa63067 | 6666 | case $(srcdir) in \ |
b00612cc PB |
6667 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
6668 | *) topdir=`echo $(HOST_SUBDIR)/etc/ | \ | |
6669 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 6670 | esac; \ |
b00612cc PB |
6671 | srcdiroption="--srcdir=$${topdir}/etc"; \ |
6672 | libsrcdir="$$s/etc"; \ | |
4fa63067 | 6673 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 6674 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
4fa63067 | 6675 | || exit 1 |
6bd3dfaa | 6676 | @endif etc |
4fa63067 | 6677 | |
a7254363 PB |
6678 | |
6679 | ||
4fa63067 NN |
6680 | .PHONY: all-etc maybe-all-etc |
6681 | maybe-all-etc: | |
6bd3dfaa | 6682 | @if etc |
d27cc32e | 6683 | TARGET-etc=all |
6bd3dfaa | 6684 | maybe-all-etc: all-etc |
4fa63067 NN |
6685 | all-etc: configure-etc |
6686 | @r=`${PWD_COMMAND}`; export r; \ | |
6687 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6688 | $(HOST_EXPORTS) \ |
b00612cc PB |
6689 | (cd $(HOST_SUBDIR)/etc && \ |
6690 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-etc)) | |
6bd3dfaa | 6691 | @endif etc |
4fa63067 | 6692 | |
a7254363 | 6693 | |
4fa63067 NN |
6694 | .PHONY: check-etc maybe-check-etc |
6695 | maybe-check-etc: | |
6bd3dfaa PB |
6696 | @if etc |
6697 | maybe-check-etc: check-etc | |
4fa63067 NN |
6698 | |
6699 | check-etc: | |
6700 | @r=`${PWD_COMMAND}`; export r; \ | |
6701 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6702 | $(HOST_EXPORTS) \ |
b00612cc PB |
6703 | (cd $(HOST_SUBDIR)/etc && \ |
6704 | $(MAKE) $(FLAGS_TO_PASS) check) | |
4fa63067 | 6705 | |
6bd3dfaa | 6706 | @endif etc |
4fa63067 NN |
6707 | |
6708 | .PHONY: install-etc maybe-install-etc | |
6709 | maybe-install-etc: | |
6bd3dfaa PB |
6710 | @if etc |
6711 | maybe-install-etc: install-etc | |
4fa63067 NN |
6712 | |
6713 | install-etc: installdirs | |
6714 | @r=`${PWD_COMMAND}`; export r; \ | |
6715 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6716 | $(HOST_EXPORTS) \ |
b00612cc | 6717 | (cd $(HOST_SUBDIR)/etc && \ |
2da12f12 | 6718 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 6719 | |
6bd3dfaa | 6720 | @endif etc |
4fa63067 NN |
6721 | |
6722 | # Other targets (info, dvi, etc.) | |
6723 | ||
6724 | .PHONY: maybe-info-etc info-etc | |
6725 | maybe-info-etc: | |
6bd3dfaa PB |
6726 | @if etc |
6727 | maybe-info-etc: info-etc | |
4fa63067 NN |
6728 | |
6729 | info-etc: \ | |
6730 | configure-etc | |
6731 | @[ -f ./etc/Makefile ] || exit 0; \ | |
b40e3958 L |
6732 | r=`${PWD_COMMAND}`; export r; \ |
6733 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
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 | 6738 | echo "Doing info in etc" ; \ |
b00612cc | 6739 | (cd $(HOST_SUBDIR)/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 | info) \ |
2a4cbe27 NN |
6745 | || exit 1 |
6746 | ||
6bd3dfaa | 6747 | @endif etc |
2a4cbe27 | 6748 | |
4fa63067 NN |
6749 | .PHONY: maybe-dvi-etc dvi-etc |
6750 | maybe-dvi-etc: | |
6bd3dfaa PB |
6751 | @if etc |
6752 | maybe-dvi-etc: dvi-etc | |
2a4cbe27 | 6753 | |
4fa63067 NN |
6754 | dvi-etc: \ |
6755 | configure-etc | |
6756 | @[ -f ./etc/Makefile ] || exit 0; \ | |
b40e3958 L |
6757 | r=`${PWD_COMMAND}`; export r; \ |
6758 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6759 | $(HOST_EXPORTS) \ |
b813574b | 6760 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6761 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6762 | done; \ | |
4fa63067 | 6763 | echo "Doing dvi in etc" ; \ |
b00612cc | 6764 | (cd $(HOST_SUBDIR)/etc && \ |
2a4cbe27 NN |
6765 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6766 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6767 | "RANLIB=$${RANLIB}" \ | |
6768 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 6769 | dvi) \ |
2a4cbe27 NN |
6770 | || exit 1 |
6771 | ||
6bd3dfaa | 6772 | @endif etc |
2a4cbe27 | 6773 | |
6d389afc MS |
6774 | .PHONY: maybe-html-etc html-etc |
6775 | maybe-html-etc: | |
6776 | @if etc | |
6777 | maybe-html-etc: html-etc | |
6778 | ||
6779 | html-etc: \ | |
6780 | configure-etc | |
6781 | @[ -f ./etc/Makefile ] || exit 0; \ | |
6782 | r=`${PWD_COMMAND}`; export r; \ | |
6783 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
6784 | $(HOST_EXPORTS) \ |
6785 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
6786 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
6787 | done; \ | |
6788 | echo "Doing html in etc" ; \ | |
b00612cc | 6789 | (cd $(HOST_SUBDIR)/etc && \ |
6d389afc MS |
6790 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6791 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6792 | "RANLIB=$${RANLIB}" \ | |
6793 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
6794 | html) \ | |
6795 | || exit 1 | |
6796 | ||
6797 | @endif etc | |
6798 | ||
4fa63067 NN |
6799 | .PHONY: maybe-TAGS-etc TAGS-etc |
6800 | maybe-TAGS-etc: | |
6bd3dfaa PB |
6801 | @if etc |
6802 | maybe-TAGS-etc: TAGS-etc | |
2a4cbe27 | 6803 | |
4fa63067 NN |
6804 | TAGS-etc: \ |
6805 | configure-etc | |
6806 | @[ -f ./etc/Makefile ] || exit 0; \ | |
b40e3958 L |
6807 | r=`${PWD_COMMAND}`; export r; \ |
6808 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6809 | $(HOST_EXPORTS) \ |
b813574b | 6810 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6811 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6812 | done; \ | |
4fa63067 | 6813 | echo "Doing TAGS in etc" ; \ |
b00612cc | 6814 | (cd $(HOST_SUBDIR)/etc && \ |
2a4cbe27 NN |
6815 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6816 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6817 | "RANLIB=$${RANLIB}" \ | |
6818 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 6819 | TAGS) \ |
2a4cbe27 NN |
6820 | || exit 1 |
6821 | ||
6bd3dfaa | 6822 | @endif etc |
2a4cbe27 | 6823 | |
4fa63067 NN |
6824 | .PHONY: maybe-install-info-etc install-info-etc |
6825 | maybe-install-info-etc: | |
6bd3dfaa PB |
6826 | @if etc |
6827 | maybe-install-info-etc: install-info-etc | |
2a4cbe27 | 6828 | |
4fa63067 NN |
6829 | install-info-etc: \ |
6830 | configure-etc \ | |
6831 | info-etc | |
6832 | @[ -f ./etc/Makefile ] || exit 0; \ | |
b40e3958 L |
6833 | r=`${PWD_COMMAND}`; export r; \ |
6834 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6835 | $(HOST_EXPORTS) \ |
b813574b | 6836 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6837 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6838 | done; \ | |
4fa63067 | 6839 | echo "Doing install-info in etc" ; \ |
b00612cc | 6840 | (cd $(HOST_SUBDIR)/etc && \ |
2a4cbe27 NN |
6841 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6842 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6843 | "RANLIB=$${RANLIB}" \ | |
6844 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 6845 | install-info) \ |
2a4cbe27 NN |
6846 | || exit 1 |
6847 | ||
6bd3dfaa | 6848 | @endif etc |
2a4cbe27 | 6849 | |
4fa63067 NN |
6850 | .PHONY: maybe-installcheck-etc installcheck-etc |
6851 | maybe-installcheck-etc: | |
6bd3dfaa PB |
6852 | @if etc |
6853 | maybe-installcheck-etc: installcheck-etc | |
2a4cbe27 | 6854 | |
4fa63067 NN |
6855 | installcheck-etc: \ |
6856 | configure-etc | |
6857 | @[ -f ./etc/Makefile ] || exit 0; \ | |
b40e3958 L |
6858 | r=`${PWD_COMMAND}`; export r; \ |
6859 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
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 installcheck in etc" ; \ |
b00612cc | 6865 | (cd $(HOST_SUBDIR)/etc && \ |
2a4cbe27 NN |
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 | installcheck) \ |
2a4cbe27 NN |
6871 | || exit 1 |
6872 | ||
6bd3dfaa | 6873 | @endif etc |
2a4cbe27 | 6874 | |
4fa63067 NN |
6875 | .PHONY: maybe-mostlyclean-etc mostlyclean-etc |
6876 | maybe-mostlyclean-etc: | |
6bd3dfaa PB |
6877 | @if etc |
6878 | maybe-mostlyclean-etc: mostlyclean-etc | |
2a4cbe27 | 6879 | |
4fa63067 NN |
6880 | mostlyclean-etc: |
6881 | @[ -f ./etc/Makefile ] || exit 0; \ | |
b40e3958 L |
6882 | r=`${PWD_COMMAND}`; export r; \ |
6883 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6884 | $(HOST_EXPORTS) \ |
b813574b | 6885 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6886 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6887 | done; \ | |
4fa63067 | 6888 | echo "Doing mostlyclean in etc" ; \ |
b00612cc | 6889 | (cd $(HOST_SUBDIR)/etc && \ |
2a4cbe27 NN |
6890 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6891 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6892 | "RANLIB=$${RANLIB}" \ | |
6893 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 6894 | mostlyclean) \ |
2a4cbe27 NN |
6895 | || exit 1 |
6896 | ||
6bd3dfaa | 6897 | @endif etc |
2a4cbe27 | 6898 | |
4fa63067 NN |
6899 | .PHONY: maybe-clean-etc clean-etc |
6900 | maybe-clean-etc: | |
6bd3dfaa PB |
6901 | @if etc |
6902 | maybe-clean-etc: clean-etc | |
2a4cbe27 | 6903 | |
4fa63067 NN |
6904 | clean-etc: |
6905 | @[ -f ./etc/Makefile ] || exit 0; \ | |
b40e3958 L |
6906 | r=`${PWD_COMMAND}`; export r; \ |
6907 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6908 | $(HOST_EXPORTS) \ |
b813574b | 6909 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6910 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6911 | done; \ | |
4fa63067 | 6912 | echo "Doing clean in etc" ; \ |
b00612cc | 6913 | (cd $(HOST_SUBDIR)/etc && \ |
2a4cbe27 NN |
6914 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6915 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6916 | "RANLIB=$${RANLIB}" \ | |
6917 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 6918 | clean) \ |
2a4cbe27 NN |
6919 | || exit 1 |
6920 | ||
6bd3dfaa | 6921 | @endif etc |
2a4cbe27 | 6922 | |
4fa63067 NN |
6923 | .PHONY: maybe-distclean-etc distclean-etc |
6924 | maybe-distclean-etc: | |
6bd3dfaa PB |
6925 | @if etc |
6926 | maybe-distclean-etc: distclean-etc | |
2a4cbe27 | 6927 | |
4fa63067 NN |
6928 | distclean-etc: |
6929 | @[ -f ./etc/Makefile ] || exit 0; \ | |
b40e3958 L |
6930 | r=`${PWD_COMMAND}`; export r; \ |
6931 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6932 | $(HOST_EXPORTS) \ |
b813574b | 6933 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6934 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6935 | done; \ | |
4fa63067 | 6936 | echo "Doing distclean in etc" ; \ |
b00612cc | 6937 | (cd $(HOST_SUBDIR)/etc && \ |
2a4cbe27 NN |
6938 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6939 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6940 | "RANLIB=$${RANLIB}" \ | |
6941 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 6942 | distclean) \ |
2a4cbe27 NN |
6943 | || exit 1 |
6944 | ||
6bd3dfaa | 6945 | @endif etc |
2a4cbe27 | 6946 | |
4fa63067 NN |
6947 | .PHONY: maybe-maintainer-clean-etc maintainer-clean-etc |
6948 | maybe-maintainer-clean-etc: | |
6bd3dfaa PB |
6949 | @if etc |
6950 | maybe-maintainer-clean-etc: maintainer-clean-etc | |
2a4cbe27 | 6951 | |
4fa63067 NN |
6952 | maintainer-clean-etc: |
6953 | @[ -f ./etc/Makefile ] || exit 0; \ | |
b40e3958 L |
6954 | r=`${PWD_COMMAND}`; export r; \ |
6955 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6956 | $(HOST_EXPORTS) \ |
b813574b | 6957 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6958 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6959 | done; \ | |
4fa63067 | 6960 | echo "Doing maintainer-clean in etc" ; \ |
b00612cc | 6961 | (cd $(HOST_SUBDIR)/etc && \ |
2a4cbe27 NN |
6962 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6963 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6964 | "RANLIB=$${RANLIB}" \ | |
6965 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 6966 | maintainer-clean) \ |
2a4cbe27 NN |
6967 | || exit 1 |
6968 | ||
6bd3dfaa | 6969 | @endif etc |
2a4cbe27 | 6970 | |
2a4cbe27 | 6971 | |
a7254363 | 6972 | |
4fa63067 NN |
6973 | .PHONY: configure-fastjar maybe-configure-fastjar |
6974 | maybe-configure-fastjar: | |
6bd3dfaa PB |
6975 | @if fastjar |
6976 | maybe-configure-fastjar: configure-fastjar | |
a7254363 | 6977 | configure-fastjar: |
b00612cc PB |
6978 | @test ! -f $(HOST_SUBDIR)/fastjar/Makefile || exit 0; \ |
6979 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fastjar ; \ | |
b40e3958 L |
6980 | r=`${PWD_COMMAND}`; export r; \ |
6981 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6982 | $(HOST_EXPORTS) \ |
a7254363 PB |
6983 | echo Configuring in $(HOST_SUBDIR)/fastjar; \ |
6984 | cd "$(HOST_SUBDIR)/fastjar" || exit 1; \ | |
4fa63067 | 6985 | case $(srcdir) in \ |
b00612cc PB |
6986 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
6987 | *) topdir=`echo $(HOST_SUBDIR)/fastjar/ | \ | |
6988 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 6989 | esac; \ |
b00612cc PB |
6990 | srcdiroption="--srcdir=$${topdir}/fastjar"; \ |
6991 | libsrcdir="$$s/fastjar"; \ | |
4fa63067 | 6992 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 6993 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
4fa63067 | 6994 | || exit 1 |
6bd3dfaa | 6995 | @endif fastjar |
4fa63067 | 6996 | |
a7254363 PB |
6997 | |
6998 | ||
4fa63067 NN |
6999 | .PHONY: all-fastjar maybe-all-fastjar |
7000 | maybe-all-fastjar: | |
6bd3dfaa | 7001 | @if fastjar |
d27cc32e | 7002 | TARGET-fastjar=all |
6bd3dfaa | 7003 | maybe-all-fastjar: all-fastjar |
4fa63067 NN |
7004 | all-fastjar: configure-fastjar |
7005 | @r=`${PWD_COMMAND}`; export r; \ | |
7006 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7007 | $(HOST_EXPORTS) \ |
b00612cc PB |
7008 | (cd $(HOST_SUBDIR)/fastjar && \ |
7009 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-fastjar)) | |
6bd3dfaa | 7010 | @endif fastjar |
2a4cbe27 | 7011 | |
a7254363 | 7012 | |
4fa63067 NN |
7013 | .PHONY: check-fastjar maybe-check-fastjar |
7014 | maybe-check-fastjar: | |
6bd3dfaa PB |
7015 | @if fastjar |
7016 | maybe-check-fastjar: check-fastjar | |
2a4cbe27 | 7017 | |
4fa63067 NN |
7018 | # This module is only tested in a native toolchain. |
7019 | check-fastjar: | |
7020 | @if [ '$(host)' = '$(target)' ] ; then \ | |
7021 | r=`${PWD_COMMAND}`; export r; \ | |
7022 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7023 | $(HOST_EXPORTS) \ |
b00612cc | 7024 | (cd $(HOST_SUBDIR)/fastjar && \ |
4cfaf6d5 | 7025 | $(MAKE) $(FLAGS_TO_PASS) check); \ |
4fa63067 | 7026 | fi |
2a4cbe27 | 7027 | |
6bd3dfaa | 7028 | @endif fastjar |
4fa63067 NN |
7029 | |
7030 | .PHONY: install-fastjar maybe-install-fastjar | |
7031 | maybe-install-fastjar: | |
6bd3dfaa PB |
7032 | @if fastjar |
7033 | maybe-install-fastjar: install-fastjar | |
4fa63067 NN |
7034 | |
7035 | install-fastjar: installdirs | |
7036 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 7037 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 7038 | $(HOST_EXPORTS) \ |
b00612cc | 7039 | (cd $(HOST_SUBDIR)/fastjar && \ |
2da12f12 | 7040 | $(MAKE) $(FLAGS_TO_PASS) install) |
2a4cbe27 | 7041 | |
6bd3dfaa | 7042 | @endif fastjar |
2a4cbe27 | 7043 | |
4fa63067 | 7044 | # Other targets (info, dvi, etc.) |
2a4cbe27 | 7045 | |
4fa63067 NN |
7046 | .PHONY: maybe-info-fastjar info-fastjar |
7047 | maybe-info-fastjar: | |
6bd3dfaa PB |
7048 | @if fastjar |
7049 | maybe-info-fastjar: info-fastjar | |
4fa63067 NN |
7050 | |
7051 | info-fastjar: \ | |
7052 | configure-fastjar | |
7053 | @[ -f ./fastjar/Makefile ] || exit 0; \ | |
b40e3958 L |
7054 | r=`${PWD_COMMAND}`; export r; \ |
7055 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7056 | $(HOST_EXPORTS) \ |
b813574b | 7057 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7058 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7059 | done; \ | |
4fa63067 | 7060 | echo "Doing info in fastjar" ; \ |
b00612cc | 7061 | (cd $(HOST_SUBDIR)/fastjar && \ |
2a4cbe27 NN |
7062 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7063 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7064 | "RANLIB=$${RANLIB}" \ | |
7065 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 7066 | info) \ |
2a4cbe27 NN |
7067 | || exit 1 |
7068 | ||
6bd3dfaa | 7069 | @endif fastjar |
2a4cbe27 | 7070 | |
4fa63067 NN |
7071 | .PHONY: maybe-dvi-fastjar dvi-fastjar |
7072 | maybe-dvi-fastjar: | |
6bd3dfaa PB |
7073 | @if fastjar |
7074 | maybe-dvi-fastjar: dvi-fastjar | |
2a4cbe27 | 7075 | |
4fa63067 NN |
7076 | dvi-fastjar: \ |
7077 | configure-fastjar | |
2a4cbe27 | 7078 | @[ -f ./fastjar/Makefile ] || exit 0; \ |
b40e3958 L |
7079 | r=`${PWD_COMMAND}`; export r; \ |
7080 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7081 | $(HOST_EXPORTS) \ |
b813574b | 7082 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7083 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7084 | done; \ | |
4fa63067 | 7085 | echo "Doing dvi in fastjar" ; \ |
b00612cc | 7086 | (cd $(HOST_SUBDIR)/fastjar && \ |
2a4cbe27 NN |
7087 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7088 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7089 | "RANLIB=$${RANLIB}" \ | |
7090 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 7091 | dvi) \ |
2a4cbe27 NN |
7092 | || exit 1 |
7093 | ||
6bd3dfaa | 7094 | @endif fastjar |
2a4cbe27 | 7095 | |
6d389afc MS |
7096 | .PHONY: maybe-html-fastjar html-fastjar |
7097 | maybe-html-fastjar: | |
7098 | @if fastjar | |
7099 | maybe-html-fastjar: html-fastjar | |
7100 | ||
7101 | html-fastjar: \ | |
7102 | configure-fastjar | |
7103 | @[ -f ./fastjar/Makefile ] || exit 0; \ | |
7104 | r=`${PWD_COMMAND}`; export r; \ | |
7105 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
7106 | $(HOST_EXPORTS) \ |
7107 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
7108 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
7109 | done; \ | |
7110 | echo "Doing html in fastjar" ; \ | |
b00612cc | 7111 | (cd $(HOST_SUBDIR)/fastjar && \ |
6d389afc MS |
7112 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7113 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7114 | "RANLIB=$${RANLIB}" \ | |
7115 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7116 | html) \ | |
7117 | || exit 1 | |
7118 | ||
7119 | @endif fastjar | |
7120 | ||
4fa63067 NN |
7121 | .PHONY: maybe-TAGS-fastjar TAGS-fastjar |
7122 | maybe-TAGS-fastjar: | |
6bd3dfaa PB |
7123 | @if fastjar |
7124 | maybe-TAGS-fastjar: TAGS-fastjar | |
2a4cbe27 | 7125 | |
4fa63067 NN |
7126 | TAGS-fastjar: \ |
7127 | configure-fastjar | |
7128 | @[ -f ./fastjar/Makefile ] || exit 0; \ | |
b40e3958 L |
7129 | r=`${PWD_COMMAND}`; export r; \ |
7130 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7131 | $(HOST_EXPORTS) \ |
b813574b | 7132 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7133 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7134 | done; \ | |
4fa63067 | 7135 | echo "Doing TAGS in fastjar" ; \ |
b00612cc | 7136 | (cd $(HOST_SUBDIR)/fastjar && \ |
2a4cbe27 NN |
7137 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7138 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7139 | "RANLIB=$${RANLIB}" \ | |
7140 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 7141 | TAGS) \ |
2a4cbe27 NN |
7142 | || exit 1 |
7143 | ||
6bd3dfaa | 7144 | @endif fastjar |
2a4cbe27 | 7145 | |
4fa63067 NN |
7146 | .PHONY: maybe-install-info-fastjar install-info-fastjar |
7147 | maybe-install-info-fastjar: | |
6bd3dfaa PB |
7148 | @if fastjar |
7149 | maybe-install-info-fastjar: install-info-fastjar | |
2a4cbe27 | 7150 | |
4fa63067 NN |
7151 | install-info-fastjar: \ |
7152 | configure-fastjar \ | |
7153 | info-fastjar | |
7154 | @[ -f ./fastjar/Makefile ] || exit 0; \ | |
b40e3958 L |
7155 | r=`${PWD_COMMAND}`; export r; \ |
7156 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7157 | $(HOST_EXPORTS) \ |
b813574b | 7158 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7159 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7160 | done; \ | |
4fa63067 | 7161 | echo "Doing install-info in fastjar" ; \ |
b00612cc | 7162 | (cd $(HOST_SUBDIR)/fastjar && \ |
2a4cbe27 NN |
7163 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7164 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7165 | "RANLIB=$${RANLIB}" \ | |
7166 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 7167 | install-info) \ |
2a4cbe27 NN |
7168 | || exit 1 |
7169 | ||
6bd3dfaa | 7170 | @endif fastjar |
2a4cbe27 | 7171 | |
4fa63067 NN |
7172 | .PHONY: maybe-installcheck-fastjar installcheck-fastjar |
7173 | maybe-installcheck-fastjar: | |
6bd3dfaa PB |
7174 | @if fastjar |
7175 | maybe-installcheck-fastjar: installcheck-fastjar | |
2a4cbe27 | 7176 | |
4fa63067 NN |
7177 | installcheck-fastjar: \ |
7178 | configure-fastjar | |
7179 | @[ -f ./fastjar/Makefile ] || exit 0; \ | |
b40e3958 L |
7180 | r=`${PWD_COMMAND}`; export r; \ |
7181 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7182 | $(HOST_EXPORTS) \ |
b813574b | 7183 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7184 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7185 | done; \ | |
4fa63067 | 7186 | echo "Doing installcheck in fastjar" ; \ |
b00612cc | 7187 | (cd $(HOST_SUBDIR)/fastjar && \ |
2a4cbe27 NN |
7188 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7189 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7190 | "RANLIB=$${RANLIB}" \ | |
7191 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 7192 | installcheck) \ |
2a4cbe27 NN |
7193 | || exit 1 |
7194 | ||
6bd3dfaa | 7195 | @endif fastjar |
2a4cbe27 | 7196 | |
4fa63067 NN |
7197 | .PHONY: maybe-mostlyclean-fastjar mostlyclean-fastjar |
7198 | maybe-mostlyclean-fastjar: | |
6bd3dfaa PB |
7199 | @if fastjar |
7200 | maybe-mostlyclean-fastjar: mostlyclean-fastjar | |
2a4cbe27 | 7201 | |
4fa63067 NN |
7202 | mostlyclean-fastjar: |
7203 | @[ -f ./fastjar/Makefile ] || exit 0; \ | |
b40e3958 L |
7204 | r=`${PWD_COMMAND}`; export r; \ |
7205 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7206 | $(HOST_EXPORTS) \ |
b813574b | 7207 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7208 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7209 | done; \ | |
4fa63067 | 7210 | echo "Doing mostlyclean in fastjar" ; \ |
b00612cc | 7211 | (cd $(HOST_SUBDIR)/fastjar && \ |
2a4cbe27 NN |
7212 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7213 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7214 | "RANLIB=$${RANLIB}" \ | |
7215 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 7216 | mostlyclean) \ |
2a4cbe27 NN |
7217 | || exit 1 |
7218 | ||
6bd3dfaa | 7219 | @endif fastjar |
2a4cbe27 | 7220 | |
4fa63067 NN |
7221 | .PHONY: maybe-clean-fastjar clean-fastjar |
7222 | maybe-clean-fastjar: | |
6bd3dfaa PB |
7223 | @if fastjar |
7224 | maybe-clean-fastjar: clean-fastjar | |
2a4cbe27 | 7225 | |
4fa63067 NN |
7226 | clean-fastjar: |
7227 | @[ -f ./fastjar/Makefile ] || exit 0; \ | |
b40e3958 L |
7228 | r=`${PWD_COMMAND}`; export r; \ |
7229 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7230 | $(HOST_EXPORTS) \ |
b813574b | 7231 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7232 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7233 | done; \ | |
4fa63067 | 7234 | echo "Doing clean in fastjar" ; \ |
b00612cc | 7235 | (cd $(HOST_SUBDIR)/fastjar && \ |
2a4cbe27 NN |
7236 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7237 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7238 | "RANLIB=$${RANLIB}" \ | |
7239 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 7240 | clean) \ |
2a4cbe27 NN |
7241 | || exit 1 |
7242 | ||
6bd3dfaa | 7243 | @endif fastjar |
2a4cbe27 | 7244 | |
4fa63067 NN |
7245 | .PHONY: maybe-distclean-fastjar distclean-fastjar |
7246 | maybe-distclean-fastjar: | |
6bd3dfaa PB |
7247 | @if fastjar |
7248 | maybe-distclean-fastjar: distclean-fastjar | |
2a4cbe27 | 7249 | |
4fa63067 NN |
7250 | distclean-fastjar: |
7251 | @[ -f ./fastjar/Makefile ] || exit 0; \ | |
b40e3958 L |
7252 | r=`${PWD_COMMAND}`; export r; \ |
7253 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7254 | $(HOST_EXPORTS) \ |
b813574b | 7255 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7256 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7257 | done; \ | |
4fa63067 | 7258 | echo "Doing distclean in fastjar" ; \ |
b00612cc | 7259 | (cd $(HOST_SUBDIR)/fastjar && \ |
2a4cbe27 NN |
7260 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7261 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7262 | "RANLIB=$${RANLIB}" \ | |
7263 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 7264 | distclean) \ |
2a4cbe27 NN |
7265 | || exit 1 |
7266 | ||
6bd3dfaa | 7267 | @endif fastjar |
2a4cbe27 | 7268 | |
4fa63067 NN |
7269 | .PHONY: maybe-maintainer-clean-fastjar maintainer-clean-fastjar |
7270 | maybe-maintainer-clean-fastjar: | |
6bd3dfaa PB |
7271 | @if fastjar |
7272 | maybe-maintainer-clean-fastjar: maintainer-clean-fastjar | |
2a4cbe27 | 7273 | |
4fa63067 NN |
7274 | maintainer-clean-fastjar: |
7275 | @[ -f ./fastjar/Makefile ] || exit 0; \ | |
b40e3958 L |
7276 | r=`${PWD_COMMAND}`; export r; \ |
7277 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7278 | $(HOST_EXPORTS) \ |
b813574b | 7279 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7280 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7281 | done; \ | |
4fa63067 | 7282 | echo "Doing maintainer-clean in fastjar" ; \ |
b00612cc | 7283 | (cd $(HOST_SUBDIR)/fastjar && \ |
2a4cbe27 NN |
7284 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7285 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7286 | "RANLIB=$${RANLIB}" \ | |
7287 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 7288 | maintainer-clean) \ |
2a4cbe27 NN |
7289 | || exit 1 |
7290 | ||
6bd3dfaa | 7291 | @endif fastjar |
2a4cbe27 | 7292 | |
2a4cbe27 | 7293 | |
a7254363 | 7294 | |
4fa63067 NN |
7295 | .PHONY: configure-fileutils maybe-configure-fileutils |
7296 | maybe-configure-fileutils: | |
6bd3dfaa PB |
7297 | @if fileutils |
7298 | maybe-configure-fileutils: configure-fileutils | |
a7254363 | 7299 | configure-fileutils: |
b00612cc PB |
7300 | @test ! -f $(HOST_SUBDIR)/fileutils/Makefile || exit 0; \ |
7301 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fileutils ; \ | |
b40e3958 L |
7302 | r=`${PWD_COMMAND}`; export r; \ |
7303 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7304 | $(HOST_EXPORTS) \ |
a7254363 PB |
7305 | echo Configuring in $(HOST_SUBDIR)/fileutils; \ |
7306 | cd "$(HOST_SUBDIR)/fileutils" || exit 1; \ | |
4fa63067 | 7307 | case $(srcdir) in \ |
b00612cc PB |
7308 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
7309 | *) topdir=`echo $(HOST_SUBDIR)/fileutils/ | \ | |
7310 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 7311 | esac; \ |
b00612cc PB |
7312 | srcdiroption="--srcdir=$${topdir}/fileutils"; \ |
7313 | libsrcdir="$$s/fileutils"; \ | |
4fa63067 | 7314 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 7315 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
2a4cbe27 | 7316 | || exit 1 |
6bd3dfaa | 7317 | @endif fileutils |
2a4cbe27 | 7318 | |
a7254363 PB |
7319 | |
7320 | ||
4fa63067 NN |
7321 | .PHONY: all-fileutils maybe-all-fileutils |
7322 | maybe-all-fileutils: | |
6bd3dfaa | 7323 | @if fileutils |
d27cc32e | 7324 | TARGET-fileutils=all |
6bd3dfaa | 7325 | maybe-all-fileutils: all-fileutils |
4fa63067 NN |
7326 | all-fileutils: configure-fileutils |
7327 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 7328 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 7329 | $(HOST_EXPORTS) \ |
b00612cc PB |
7330 | (cd $(HOST_SUBDIR)/fileutils && \ |
7331 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-fileutils)) | |
6bd3dfaa | 7332 | @endif fileutils |
4fa63067 | 7333 | |
a7254363 | 7334 | |
4fa63067 NN |
7335 | .PHONY: check-fileutils maybe-check-fileutils |
7336 | maybe-check-fileutils: | |
6bd3dfaa PB |
7337 | @if fileutils |
7338 | maybe-check-fileutils: check-fileutils | |
4fa63067 NN |
7339 | |
7340 | check-fileutils: | |
7341 | @r=`${PWD_COMMAND}`; export r; \ | |
7342 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7343 | $(HOST_EXPORTS) \ |
b00612cc PB |
7344 | (cd $(HOST_SUBDIR)/fileutils && \ |
7345 | $(MAKE) $(FLAGS_TO_PASS) check) | |
2a4cbe27 | 7346 | |
6bd3dfaa | 7347 | @endif fileutils |
2a4cbe27 | 7348 | |
4fa63067 NN |
7349 | .PHONY: install-fileutils maybe-install-fileutils |
7350 | maybe-install-fileutils: | |
6bd3dfaa PB |
7351 | @if fileutils |
7352 | maybe-install-fileutils: install-fileutils | |
2a4cbe27 | 7353 | |
4fa63067 NN |
7354 | install-fileutils: installdirs |
7355 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 7356 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 7357 | $(HOST_EXPORTS) \ |
b00612cc | 7358 | (cd $(HOST_SUBDIR)/fileutils && \ |
2da12f12 | 7359 | $(MAKE) $(FLAGS_TO_PASS) install) |
2a4cbe27 | 7360 | |
6bd3dfaa | 7361 | @endif fileutils |
2a4cbe27 | 7362 | |
4fa63067 | 7363 | # Other targets (info, dvi, etc.) |
2a4cbe27 | 7364 | |
4fa63067 NN |
7365 | .PHONY: maybe-info-fileutils info-fileutils |
7366 | maybe-info-fileutils: | |
6bd3dfaa PB |
7367 | @if fileutils |
7368 | maybe-info-fileutils: info-fileutils | |
4fa63067 NN |
7369 | |
7370 | info-fileutils: \ | |
7371 | configure-fileutils | |
7372 | @[ -f ./fileutils/Makefile ] || exit 0; \ | |
b40e3958 L |
7373 | r=`${PWD_COMMAND}`; export r; \ |
7374 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7375 | $(HOST_EXPORTS) \ |
b813574b | 7376 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7377 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7378 | done; \ | |
4fa63067 | 7379 | echo "Doing info in fileutils" ; \ |
b00612cc | 7380 | (cd $(HOST_SUBDIR)/fileutils && \ |
2a4cbe27 NN |
7381 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7382 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7383 | "RANLIB=$${RANLIB}" \ | |
7384 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 7385 | info) \ |
2a4cbe27 NN |
7386 | || exit 1 |
7387 | ||
6bd3dfaa | 7388 | @endif fileutils |
2a4cbe27 | 7389 | |
4fa63067 NN |
7390 | .PHONY: maybe-dvi-fileutils dvi-fileutils |
7391 | maybe-dvi-fileutils: | |
6bd3dfaa PB |
7392 | @if fileutils |
7393 | maybe-dvi-fileutils: dvi-fileutils | |
2a4cbe27 | 7394 | |
4fa63067 NN |
7395 | dvi-fileutils: \ |
7396 | configure-fileutils | |
7397 | @[ -f ./fileutils/Makefile ] || exit 0; \ | |
b40e3958 L |
7398 | r=`${PWD_COMMAND}`; export r; \ |
7399 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7400 | $(HOST_EXPORTS) \ |
b813574b | 7401 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7402 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7403 | done; \ | |
4fa63067 | 7404 | echo "Doing dvi in fileutils" ; \ |
b00612cc | 7405 | (cd $(HOST_SUBDIR)/fileutils && \ |
2a4cbe27 NN |
7406 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7407 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7408 | "RANLIB=$${RANLIB}" \ | |
7409 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 7410 | dvi) \ |
2a4cbe27 NN |
7411 | || exit 1 |
7412 | ||
6bd3dfaa | 7413 | @endif fileutils |
2a4cbe27 | 7414 | |
6d389afc MS |
7415 | .PHONY: maybe-html-fileutils html-fileutils |
7416 | maybe-html-fileutils: | |
7417 | @if fileutils | |
7418 | maybe-html-fileutils: html-fileutils | |
7419 | ||
7420 | html-fileutils: \ | |
7421 | configure-fileutils | |
7422 | @[ -f ./fileutils/Makefile ] || exit 0; \ | |
7423 | r=`${PWD_COMMAND}`; export r; \ | |
7424 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
7425 | $(HOST_EXPORTS) \ |
7426 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
7427 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
7428 | done; \ | |
7429 | echo "Doing html in fileutils" ; \ | |
b00612cc | 7430 | (cd $(HOST_SUBDIR)/fileutils && \ |
6d389afc MS |
7431 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7432 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7433 | "RANLIB=$${RANLIB}" \ | |
7434 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7435 | html) \ | |
7436 | || exit 1 | |
7437 | ||
7438 | @endif fileutils | |
7439 | ||
4fa63067 NN |
7440 | .PHONY: maybe-TAGS-fileutils TAGS-fileutils |
7441 | maybe-TAGS-fileutils: | |
6bd3dfaa PB |
7442 | @if fileutils |
7443 | maybe-TAGS-fileutils: TAGS-fileutils | |
2a4cbe27 | 7444 | |
4fa63067 NN |
7445 | TAGS-fileutils: \ |
7446 | configure-fileutils | |
7447 | @[ -f ./fileutils/Makefile ] || exit 0; \ | |
b40e3958 L |
7448 | r=`${PWD_COMMAND}`; export r; \ |
7449 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7450 | $(HOST_EXPORTS) \ |
b813574b | 7451 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7452 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7453 | done; \ | |
4fa63067 | 7454 | echo "Doing TAGS in fileutils" ; \ |
b00612cc | 7455 | (cd $(HOST_SUBDIR)/fileutils && \ |
2a4cbe27 NN |
7456 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7457 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7458 | "RANLIB=$${RANLIB}" \ | |
7459 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 7460 | TAGS) \ |
2a4cbe27 NN |
7461 | || exit 1 |
7462 | ||
6bd3dfaa | 7463 | @endif fileutils |
2a4cbe27 | 7464 | |
4fa63067 NN |
7465 | .PHONY: maybe-install-info-fileutils install-info-fileutils |
7466 | maybe-install-info-fileutils: | |
6bd3dfaa PB |
7467 | @if fileutils |
7468 | maybe-install-info-fileutils: install-info-fileutils | |
2a4cbe27 | 7469 | |
4fa63067 NN |
7470 | install-info-fileutils: \ |
7471 | configure-fileutils \ | |
7472 | info-fileutils | |
7473 | @[ -f ./fileutils/Makefile ] || exit 0; \ | |
b40e3958 L |
7474 | r=`${PWD_COMMAND}`; export r; \ |
7475 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7476 | $(HOST_EXPORTS) \ |
b813574b | 7477 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7478 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7479 | done; \ | |
4fa63067 | 7480 | echo "Doing install-info in fileutils" ; \ |
b00612cc | 7481 | (cd $(HOST_SUBDIR)/fileutils && \ |
2a4cbe27 NN |
7482 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7483 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7484 | "RANLIB=$${RANLIB}" \ | |
7485 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 7486 | install-info) \ |
2a4cbe27 NN |
7487 | || exit 1 |
7488 | ||
6bd3dfaa | 7489 | @endif fileutils |
2a4cbe27 | 7490 | |
4fa63067 NN |
7491 | .PHONY: maybe-installcheck-fileutils installcheck-fileutils |
7492 | maybe-installcheck-fileutils: | |
6bd3dfaa PB |
7493 | @if fileutils |
7494 | maybe-installcheck-fileutils: installcheck-fileutils | |
2a4cbe27 | 7495 | |
4fa63067 NN |
7496 | installcheck-fileutils: \ |
7497 | configure-fileutils | |
7498 | @[ -f ./fileutils/Makefile ] || exit 0; \ | |
b40e3958 L |
7499 | r=`${PWD_COMMAND}`; export r; \ |
7500 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7501 | $(HOST_EXPORTS) \ |
b813574b | 7502 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7503 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7504 | done; \ | |
4fa63067 | 7505 | echo "Doing installcheck in fileutils" ; \ |
b00612cc | 7506 | (cd $(HOST_SUBDIR)/fileutils && \ |
2a4cbe27 NN |
7507 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7508 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7509 | "RANLIB=$${RANLIB}" \ | |
7510 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 7511 | installcheck) \ |
2a4cbe27 NN |
7512 | || exit 1 |
7513 | ||
6bd3dfaa | 7514 | @endif fileutils |
2a4cbe27 | 7515 | |
4fa63067 NN |
7516 | .PHONY: maybe-mostlyclean-fileutils mostlyclean-fileutils |
7517 | maybe-mostlyclean-fileutils: | |
6bd3dfaa PB |
7518 | @if fileutils |
7519 | maybe-mostlyclean-fileutils: mostlyclean-fileutils | |
2a4cbe27 | 7520 | |
4fa63067 NN |
7521 | mostlyclean-fileutils: |
7522 | @[ -f ./fileutils/Makefile ] || exit 0; \ | |
b40e3958 L |
7523 | r=`${PWD_COMMAND}`; export r; \ |
7524 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7525 | $(HOST_EXPORTS) \ |
b813574b | 7526 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7527 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7528 | done; \ | |
4fa63067 | 7529 | echo "Doing mostlyclean in fileutils" ; \ |
b00612cc | 7530 | (cd $(HOST_SUBDIR)/fileutils && \ |
2a4cbe27 NN |
7531 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7532 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7533 | "RANLIB=$${RANLIB}" \ | |
7534 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 7535 | mostlyclean) \ |
2a4cbe27 NN |
7536 | || exit 1 |
7537 | ||
6bd3dfaa | 7538 | @endif fileutils |
2a4cbe27 | 7539 | |
4fa63067 NN |
7540 | .PHONY: maybe-clean-fileutils clean-fileutils |
7541 | maybe-clean-fileutils: | |
6bd3dfaa PB |
7542 | @if fileutils |
7543 | maybe-clean-fileutils: clean-fileutils | |
2a4cbe27 | 7544 | |
4fa63067 NN |
7545 | clean-fileutils: |
7546 | @[ -f ./fileutils/Makefile ] || exit 0; \ | |
b40e3958 L |
7547 | r=`${PWD_COMMAND}`; export r; \ |
7548 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7549 | $(HOST_EXPORTS) \ |
b813574b | 7550 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7551 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7552 | done; \ | |
4fa63067 | 7553 | echo "Doing clean in fileutils" ; \ |
b00612cc | 7554 | (cd $(HOST_SUBDIR)/fileutils && \ |
2a4cbe27 NN |
7555 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7556 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7557 | "RANLIB=$${RANLIB}" \ | |
7558 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 7559 | clean) \ |
2a4cbe27 NN |
7560 | || exit 1 |
7561 | ||
6bd3dfaa | 7562 | @endif fileutils |
2a4cbe27 | 7563 | |
4fa63067 NN |
7564 | .PHONY: maybe-distclean-fileutils distclean-fileutils |
7565 | maybe-distclean-fileutils: | |
6bd3dfaa PB |
7566 | @if fileutils |
7567 | maybe-distclean-fileutils: distclean-fileutils | |
2a4cbe27 | 7568 | |
4fa63067 NN |
7569 | distclean-fileutils: |
7570 | @[ -f ./fileutils/Makefile ] || exit 0; \ | |
b40e3958 L |
7571 | r=`${PWD_COMMAND}`; export r; \ |
7572 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7573 | $(HOST_EXPORTS) \ |
b813574b | 7574 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7575 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7576 | done; \ | |
4fa63067 | 7577 | echo "Doing distclean in fileutils" ; \ |
b00612cc | 7578 | (cd $(HOST_SUBDIR)/fileutils && \ |
2a4cbe27 NN |
7579 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7580 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7581 | "RANLIB=$${RANLIB}" \ | |
7582 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 7583 | distclean) \ |
2a4cbe27 NN |
7584 | || exit 1 |
7585 | ||
6bd3dfaa | 7586 | @endif fileutils |
2a4cbe27 | 7587 | |
4fa63067 NN |
7588 | .PHONY: maybe-maintainer-clean-fileutils maintainer-clean-fileutils |
7589 | maybe-maintainer-clean-fileutils: | |
6bd3dfaa PB |
7590 | @if fileutils |
7591 | maybe-maintainer-clean-fileutils: maintainer-clean-fileutils | |
2a4cbe27 | 7592 | |
4fa63067 NN |
7593 | maintainer-clean-fileutils: |
7594 | @[ -f ./fileutils/Makefile ] || exit 0; \ | |
b40e3958 L |
7595 | r=`${PWD_COMMAND}`; export r; \ |
7596 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7597 | $(HOST_EXPORTS) \ |
b813574b | 7598 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7599 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7600 | done; \ | |
4fa63067 | 7601 | echo "Doing maintainer-clean in fileutils" ; \ |
b00612cc | 7602 | (cd $(HOST_SUBDIR)/fileutils && \ |
2a4cbe27 NN |
7603 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7604 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7605 | "RANLIB=$${RANLIB}" \ | |
7606 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 7607 | maintainer-clean) \ |
2a4cbe27 NN |
7608 | || exit 1 |
7609 | ||
6bd3dfaa | 7610 | @endif fileutils |
2a4cbe27 | 7611 | |
2a4cbe27 | 7612 | |
a7254363 | 7613 | |
4fa63067 NN |
7614 | .PHONY: configure-findutils maybe-configure-findutils |
7615 | maybe-configure-findutils: | |
6bd3dfaa PB |
7616 | @if findutils |
7617 | maybe-configure-findutils: configure-findutils | |
a7254363 | 7618 | configure-findutils: |
b00612cc PB |
7619 | @test ! -f $(HOST_SUBDIR)/findutils/Makefile || exit 0; \ |
7620 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/findutils ; \ | |
b40e3958 L |
7621 | r=`${PWD_COMMAND}`; export r; \ |
7622 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7623 | $(HOST_EXPORTS) \ |
a7254363 PB |
7624 | echo Configuring in $(HOST_SUBDIR)/findutils; \ |
7625 | cd "$(HOST_SUBDIR)/findutils" || exit 1; \ | |
4fa63067 | 7626 | case $(srcdir) in \ |
b00612cc PB |
7627 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
7628 | *) topdir=`echo $(HOST_SUBDIR)/findutils/ | \ | |
7629 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 7630 | esac; \ |
b00612cc PB |
7631 | srcdiroption="--srcdir=$${topdir}/findutils"; \ |
7632 | libsrcdir="$$s/findutils"; \ | |
4fa63067 | 7633 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 7634 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
2a4cbe27 | 7635 | || exit 1 |
6bd3dfaa | 7636 | @endif findutils |
2a4cbe27 | 7637 | |
a7254363 PB |
7638 | |
7639 | ||
4fa63067 NN |
7640 | .PHONY: all-findutils maybe-all-findutils |
7641 | maybe-all-findutils: | |
6bd3dfaa | 7642 | @if findutils |
d27cc32e | 7643 | TARGET-findutils=all |
6bd3dfaa | 7644 | maybe-all-findutils: all-findutils |
4fa63067 NN |
7645 | all-findutils: configure-findutils |
7646 | @r=`${PWD_COMMAND}`; export r; \ | |
7647 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7648 | $(HOST_EXPORTS) \ |
b00612cc PB |
7649 | (cd $(HOST_SUBDIR)/findutils && \ |
7650 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-findutils)) | |
6bd3dfaa | 7651 | @endif findutils |
2a4cbe27 | 7652 | |
a7254363 | 7653 | |
4fa63067 NN |
7654 | .PHONY: check-findutils maybe-check-findutils |
7655 | maybe-check-findutils: | |
6bd3dfaa PB |
7656 | @if findutils |
7657 | maybe-check-findutils: check-findutils | |
2a4cbe27 | 7658 | |
4fa63067 NN |
7659 | check-findutils: |
7660 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 7661 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 7662 | $(HOST_EXPORTS) \ |
b00612cc PB |
7663 | (cd $(HOST_SUBDIR)/findutils && \ |
7664 | $(MAKE) $(FLAGS_TO_PASS) check) | |
2a4cbe27 | 7665 | |
6bd3dfaa | 7666 | @endif findutils |
2a4cbe27 | 7667 | |
4fa63067 NN |
7668 | .PHONY: install-findutils maybe-install-findutils |
7669 | maybe-install-findutils: | |
6bd3dfaa PB |
7670 | @if findutils |
7671 | maybe-install-findutils: install-findutils | |
2a4cbe27 | 7672 | |
4fa63067 NN |
7673 | install-findutils: installdirs |
7674 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 7675 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 7676 | $(HOST_EXPORTS) \ |
b00612cc | 7677 | (cd $(HOST_SUBDIR)/findutils && \ |
2da12f12 | 7678 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 7679 | |
6bd3dfaa | 7680 | @endif findutils |
2a4cbe27 | 7681 | |
4fa63067 | 7682 | # Other targets (info, dvi, etc.) |
2a4cbe27 | 7683 | |
4fa63067 NN |
7684 | .PHONY: maybe-info-findutils info-findutils |
7685 | maybe-info-findutils: | |
6bd3dfaa PB |
7686 | @if findutils |
7687 | maybe-info-findutils: info-findutils | |
2a4cbe27 | 7688 | |
4fa63067 NN |
7689 | info-findutils: \ |
7690 | configure-findutils | |
7691 | @[ -f ./findutils/Makefile ] || exit 0; \ | |
b40e3958 L |
7692 | r=`${PWD_COMMAND}`; export r; \ |
7693 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7694 | $(HOST_EXPORTS) \ |
b813574b | 7695 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7696 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7697 | done; \ | |
4fa63067 | 7698 | echo "Doing info in findutils" ; \ |
b00612cc | 7699 | (cd $(HOST_SUBDIR)/findutils && \ |
2a4cbe27 NN |
7700 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7701 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7702 | "RANLIB=$${RANLIB}" \ | |
7703 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 7704 | info) \ |
2a4cbe27 NN |
7705 | || exit 1 |
7706 | ||
6bd3dfaa | 7707 | @endif findutils |
2a4cbe27 | 7708 | |
4fa63067 NN |
7709 | .PHONY: maybe-dvi-findutils dvi-findutils |
7710 | maybe-dvi-findutils: | |
6bd3dfaa PB |
7711 | @if findutils |
7712 | maybe-dvi-findutils: dvi-findutils | |
2a4cbe27 | 7713 | |
4fa63067 NN |
7714 | dvi-findutils: \ |
7715 | configure-findutils | |
7716 | @[ -f ./findutils/Makefile ] || exit 0; \ | |
b40e3958 L |
7717 | r=`${PWD_COMMAND}`; export r; \ |
7718 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7719 | $(HOST_EXPORTS) \ |
b813574b | 7720 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7721 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7722 | done; \ | |
4fa63067 | 7723 | echo "Doing dvi in findutils" ; \ |
b00612cc | 7724 | (cd $(HOST_SUBDIR)/findutils && \ |
2a4cbe27 NN |
7725 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7726 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7727 | "RANLIB=$${RANLIB}" \ | |
7728 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 7729 | dvi) \ |
2a4cbe27 NN |
7730 | || exit 1 |
7731 | ||
6bd3dfaa | 7732 | @endif findutils |
2a4cbe27 | 7733 | |
6d389afc MS |
7734 | .PHONY: maybe-html-findutils html-findutils |
7735 | maybe-html-findutils: | |
7736 | @if findutils | |
7737 | maybe-html-findutils: html-findutils | |
7738 | ||
7739 | html-findutils: \ | |
7740 | configure-findutils | |
7741 | @[ -f ./findutils/Makefile ] || exit 0; \ | |
7742 | r=`${PWD_COMMAND}`; export r; \ | |
7743 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
7744 | $(HOST_EXPORTS) \ |
7745 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
7746 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
7747 | done; \ | |
7748 | echo "Doing html in findutils" ; \ | |
b00612cc | 7749 | (cd $(HOST_SUBDIR)/findutils && \ |
6d389afc MS |
7750 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7751 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7752 | "RANLIB=$${RANLIB}" \ | |
7753 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7754 | html) \ | |
7755 | || exit 1 | |
7756 | ||
7757 | @endif findutils | |
7758 | ||
4fa63067 NN |
7759 | .PHONY: maybe-TAGS-findutils TAGS-findutils |
7760 | maybe-TAGS-findutils: | |
6bd3dfaa PB |
7761 | @if findutils |
7762 | maybe-TAGS-findutils: TAGS-findutils | |
2a4cbe27 | 7763 | |
4fa63067 NN |
7764 | TAGS-findutils: \ |
7765 | configure-findutils | |
7766 | @[ -f ./findutils/Makefile ] || exit 0; \ | |
b40e3958 L |
7767 | r=`${PWD_COMMAND}`; export r; \ |
7768 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7769 | $(HOST_EXPORTS) \ |
b813574b | 7770 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7771 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7772 | done; \ | |
4fa63067 | 7773 | echo "Doing TAGS in findutils" ; \ |
b00612cc | 7774 | (cd $(HOST_SUBDIR)/findutils && \ |
2a4cbe27 NN |
7775 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7776 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7777 | "RANLIB=$${RANLIB}" \ | |
7778 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 7779 | TAGS) \ |
2a4cbe27 NN |
7780 | || exit 1 |
7781 | ||
6bd3dfaa | 7782 | @endif findutils |
2a4cbe27 | 7783 | |
4fa63067 NN |
7784 | .PHONY: maybe-install-info-findutils install-info-findutils |
7785 | maybe-install-info-findutils: | |
6bd3dfaa PB |
7786 | @if findutils |
7787 | maybe-install-info-findutils: install-info-findutils | |
2a4cbe27 | 7788 | |
4fa63067 NN |
7789 | install-info-findutils: \ |
7790 | configure-findutils \ | |
7791 | info-findutils | |
7792 | @[ -f ./findutils/Makefile ] || exit 0; \ | |
b40e3958 L |
7793 | r=`${PWD_COMMAND}`; export r; \ |
7794 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7795 | $(HOST_EXPORTS) \ |
b813574b | 7796 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7797 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7798 | done; \ | |
4fa63067 | 7799 | echo "Doing install-info in findutils" ; \ |
b00612cc | 7800 | (cd $(HOST_SUBDIR)/findutils && \ |
2a4cbe27 NN |
7801 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7802 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7803 | "RANLIB=$${RANLIB}" \ | |
7804 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 7805 | install-info) \ |
2a4cbe27 NN |
7806 | || exit 1 |
7807 | ||
6bd3dfaa | 7808 | @endif findutils |
2a4cbe27 | 7809 | |
4fa63067 NN |
7810 | .PHONY: maybe-installcheck-findutils installcheck-findutils |
7811 | maybe-installcheck-findutils: | |
6bd3dfaa PB |
7812 | @if findutils |
7813 | maybe-installcheck-findutils: installcheck-findutils | |
2a4cbe27 | 7814 | |
4fa63067 NN |
7815 | installcheck-findutils: \ |
7816 | configure-findutils | |
7817 | @[ -f ./findutils/Makefile ] || exit 0; \ | |
b40e3958 L |
7818 | r=`${PWD_COMMAND}`; export r; \ |
7819 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7820 | $(HOST_EXPORTS) \ |
b813574b | 7821 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7822 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7823 | done; \ | |
4fa63067 | 7824 | echo "Doing installcheck in findutils" ; \ |
b00612cc | 7825 | (cd $(HOST_SUBDIR)/findutils && \ |
2a4cbe27 NN |
7826 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7827 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7828 | "RANLIB=$${RANLIB}" \ | |
7829 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 7830 | installcheck) \ |
2a4cbe27 NN |
7831 | || exit 1 |
7832 | ||
6bd3dfaa | 7833 | @endif findutils |
2a4cbe27 | 7834 | |
4fa63067 NN |
7835 | .PHONY: maybe-mostlyclean-findutils mostlyclean-findutils |
7836 | maybe-mostlyclean-findutils: | |
6bd3dfaa PB |
7837 | @if findutils |
7838 | maybe-mostlyclean-findutils: mostlyclean-findutils | |
2a4cbe27 | 7839 | |
4fa63067 NN |
7840 | mostlyclean-findutils: |
7841 | @[ -f ./findutils/Makefile ] || exit 0; \ | |
b40e3958 L |
7842 | r=`${PWD_COMMAND}`; export r; \ |
7843 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7844 | $(HOST_EXPORTS) \ |
b813574b | 7845 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7846 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7847 | done; \ | |
4fa63067 | 7848 | echo "Doing mostlyclean in findutils" ; \ |
b00612cc | 7849 | (cd $(HOST_SUBDIR)/findutils && \ |
2a4cbe27 NN |
7850 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7851 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7852 | "RANLIB=$${RANLIB}" \ | |
7853 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 7854 | mostlyclean) \ |
2a4cbe27 NN |
7855 | || exit 1 |
7856 | ||
6bd3dfaa | 7857 | @endif findutils |
2a4cbe27 | 7858 | |
4fa63067 NN |
7859 | .PHONY: maybe-clean-findutils clean-findutils |
7860 | maybe-clean-findutils: | |
6bd3dfaa PB |
7861 | @if findutils |
7862 | maybe-clean-findutils: clean-findutils | |
2a4cbe27 | 7863 | |
4fa63067 NN |
7864 | clean-findutils: |
7865 | @[ -f ./findutils/Makefile ] || exit 0; \ | |
b40e3958 L |
7866 | r=`${PWD_COMMAND}`; export r; \ |
7867 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7868 | $(HOST_EXPORTS) \ |
b813574b | 7869 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7870 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7871 | done; \ | |
4fa63067 | 7872 | echo "Doing clean in findutils" ; \ |
b00612cc | 7873 | (cd $(HOST_SUBDIR)/findutils && \ |
2a4cbe27 NN |
7874 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7875 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7876 | "RANLIB=$${RANLIB}" \ | |
7877 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 7878 | clean) \ |
2a4cbe27 NN |
7879 | || exit 1 |
7880 | ||
6bd3dfaa | 7881 | @endif findutils |
2a4cbe27 | 7882 | |
4fa63067 NN |
7883 | .PHONY: maybe-distclean-findutils distclean-findutils |
7884 | maybe-distclean-findutils: | |
6bd3dfaa PB |
7885 | @if findutils |
7886 | maybe-distclean-findutils: distclean-findutils | |
2a4cbe27 | 7887 | |
4fa63067 NN |
7888 | distclean-findutils: |
7889 | @[ -f ./findutils/Makefile ] || exit 0; \ | |
b40e3958 L |
7890 | r=`${PWD_COMMAND}`; export r; \ |
7891 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7892 | $(HOST_EXPORTS) \ |
b813574b | 7893 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7894 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7895 | done; \ | |
4fa63067 | 7896 | echo "Doing distclean in findutils" ; \ |
b00612cc | 7897 | (cd $(HOST_SUBDIR)/findutils && \ |
2a4cbe27 NN |
7898 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7899 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7900 | "RANLIB=$${RANLIB}" \ | |
7901 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 7902 | distclean) \ |
2a4cbe27 NN |
7903 | || exit 1 |
7904 | ||
6bd3dfaa | 7905 | @endif findutils |
2a4cbe27 | 7906 | |
4fa63067 NN |
7907 | .PHONY: maybe-maintainer-clean-findutils maintainer-clean-findutils |
7908 | maybe-maintainer-clean-findutils: | |
6bd3dfaa PB |
7909 | @if findutils |
7910 | maybe-maintainer-clean-findutils: maintainer-clean-findutils | |
2a4cbe27 | 7911 | |
4fa63067 NN |
7912 | maintainer-clean-findutils: |
7913 | @[ -f ./findutils/Makefile ] || exit 0; \ | |
b40e3958 L |
7914 | r=`${PWD_COMMAND}`; export r; \ |
7915 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7916 | $(HOST_EXPORTS) \ |
b813574b | 7917 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7918 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7919 | done; \ | |
4fa63067 | 7920 | echo "Doing maintainer-clean in findutils" ; \ |
b00612cc | 7921 | (cd $(HOST_SUBDIR)/findutils && \ |
2a4cbe27 NN |
7922 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7923 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7924 | "RANLIB=$${RANLIB}" \ | |
7925 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 7926 | maintainer-clean) \ |
2a4cbe27 NN |
7927 | || exit 1 |
7928 | ||
6bd3dfaa | 7929 | @endif findutils |
2a4cbe27 | 7930 | |
2a4cbe27 | 7931 | |
a7254363 | 7932 | |
4fa63067 NN |
7933 | .PHONY: configure-find maybe-configure-find |
7934 | maybe-configure-find: | |
6bd3dfaa PB |
7935 | @if find |
7936 | maybe-configure-find: configure-find | |
a7254363 | 7937 | configure-find: |
b00612cc PB |
7938 | @test ! -f $(HOST_SUBDIR)/find/Makefile || exit 0; \ |
7939 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/find ; \ | |
b40e3958 L |
7940 | r=`${PWD_COMMAND}`; export r; \ |
7941 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7942 | $(HOST_EXPORTS) \ |
a7254363 PB |
7943 | echo Configuring in $(HOST_SUBDIR)/find; \ |
7944 | cd "$(HOST_SUBDIR)/find" || exit 1; \ | |
4fa63067 | 7945 | case $(srcdir) in \ |
b00612cc PB |
7946 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
7947 | *) topdir=`echo $(HOST_SUBDIR)/find/ | \ | |
7948 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 7949 | esac; \ |
b00612cc PB |
7950 | srcdiroption="--srcdir=$${topdir}/find"; \ |
7951 | libsrcdir="$$s/find"; \ | |
4fa63067 | 7952 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 7953 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
2a4cbe27 | 7954 | || exit 1 |
6bd3dfaa | 7955 | @endif find |
2a4cbe27 | 7956 | |
a7254363 PB |
7957 | |
7958 | ||
4fa63067 NN |
7959 | .PHONY: all-find maybe-all-find |
7960 | maybe-all-find: | |
6bd3dfaa | 7961 | @if find |
d27cc32e | 7962 | TARGET-find=all |
6bd3dfaa | 7963 | maybe-all-find: all-find |
4fa63067 NN |
7964 | all-find: configure-find |
7965 | @r=`${PWD_COMMAND}`; export r; \ | |
7966 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7967 | $(HOST_EXPORTS) \ |
b00612cc PB |
7968 | (cd $(HOST_SUBDIR)/find && \ |
7969 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-find)) | |
6bd3dfaa | 7970 | @endif find |
2a4cbe27 | 7971 | |
a7254363 | 7972 | |
4fa63067 NN |
7973 | .PHONY: check-find maybe-check-find |
7974 | maybe-check-find: | |
6bd3dfaa PB |
7975 | @if find |
7976 | maybe-check-find: check-find | |
2a4cbe27 | 7977 | |
4fa63067 NN |
7978 | check-find: |
7979 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 7980 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 7981 | $(HOST_EXPORTS) \ |
b00612cc PB |
7982 | (cd $(HOST_SUBDIR)/find && \ |
7983 | $(MAKE) $(FLAGS_TO_PASS) check) | |
2a4cbe27 | 7984 | |
6bd3dfaa | 7985 | @endif find |
2a4cbe27 | 7986 | |
4fa63067 NN |
7987 | .PHONY: install-find maybe-install-find |
7988 | maybe-install-find: | |
6bd3dfaa PB |
7989 | @if find |
7990 | maybe-install-find: install-find | |
2a4cbe27 | 7991 | |
4fa63067 NN |
7992 | install-find: installdirs |
7993 | @r=`${PWD_COMMAND}`; export r; \ | |
7994 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7995 | $(HOST_EXPORTS) \ |
b00612cc | 7996 | (cd $(HOST_SUBDIR)/find && \ |
2da12f12 | 7997 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 7998 | |
6bd3dfaa | 7999 | @endif find |
4fa63067 NN |
8000 | |
8001 | # Other targets (info, dvi, etc.) | |
8002 | ||
8003 | .PHONY: maybe-info-find info-find | |
8004 | maybe-info-find: | |
6bd3dfaa PB |
8005 | @if find |
8006 | maybe-info-find: info-find | |
4fa63067 NN |
8007 | |
8008 | info-find: \ | |
8009 | configure-find | |
8010 | @[ -f ./find/Makefile ] || exit 0; \ | |
b40e3958 L |
8011 | r=`${PWD_COMMAND}`; export r; \ |
8012 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8013 | $(HOST_EXPORTS) \ |
b813574b | 8014 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
8015 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
8016 | done; \ | |
4fa63067 | 8017 | echo "Doing info in find" ; \ |
b00612cc | 8018 | (cd $(HOST_SUBDIR)/find && \ |
2a4cbe27 NN |
8019 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8020 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8021 | "RANLIB=$${RANLIB}" \ | |
8022 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 8023 | info) \ |
2a4cbe27 NN |
8024 | || exit 1 |
8025 | ||
6bd3dfaa | 8026 | @endif find |
2a4cbe27 | 8027 | |
4fa63067 NN |
8028 | .PHONY: maybe-dvi-find dvi-find |
8029 | maybe-dvi-find: | |
6bd3dfaa PB |
8030 | @if find |
8031 | maybe-dvi-find: dvi-find | |
2a4cbe27 | 8032 | |
4fa63067 NN |
8033 | dvi-find: \ |
8034 | configure-find | |
8035 | @[ -f ./find/Makefile ] || exit 0; \ | |
b40e3958 L |
8036 | r=`${PWD_COMMAND}`; export r; \ |
8037 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8038 | $(HOST_EXPORTS) \ |
b813574b | 8039 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
8040 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
8041 | done; \ | |
4fa63067 | 8042 | echo "Doing dvi in find" ; \ |
b00612cc | 8043 | (cd $(HOST_SUBDIR)/find && \ |
2a4cbe27 NN |
8044 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8045 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8046 | "RANLIB=$${RANLIB}" \ | |
8047 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 8048 | dvi) \ |
2a4cbe27 NN |
8049 | || exit 1 |
8050 | ||
6bd3dfaa | 8051 | @endif find |
2a4cbe27 | 8052 | |
6d389afc MS |
8053 | .PHONY: maybe-html-find html-find |
8054 | maybe-html-find: | |
8055 | @if find | |
8056 | maybe-html-find: html-find | |
8057 | ||
8058 | html-find: \ | |
8059 | configure-find | |
8060 | @[ -f ./find/Makefile ] || exit 0; \ | |
8061 | r=`${PWD_COMMAND}`; export r; \ | |
8062 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
8063 | $(HOST_EXPORTS) \ |
8064 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
8065 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
8066 | done; \ | |
8067 | echo "Doing html in find" ; \ | |
b00612cc | 8068 | (cd $(HOST_SUBDIR)/find && \ |
6d389afc MS |
8069 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8070 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8071 | "RANLIB=$${RANLIB}" \ | |
8072 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
8073 | html) \ | |
8074 | || exit 1 | |
8075 | ||
8076 | @endif find | |
8077 | ||
4fa63067 NN |
8078 | .PHONY: maybe-TAGS-find TAGS-find |
8079 | maybe-TAGS-find: | |
6bd3dfaa PB |
8080 | @if find |
8081 | maybe-TAGS-find: TAGS-find | |
4fa63067 NN |
8082 | |
8083 | TAGS-find: \ | |
8084 | configure-find | |
8085 | @[ -f ./find/Makefile ] || exit 0; \ | |
b40e3958 L |
8086 | r=`${PWD_COMMAND}`; export r; \ |
8087 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8088 | $(HOST_EXPORTS) \ |
b813574b | 8089 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
8090 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
8091 | done; \ | |
4fa63067 | 8092 | echo "Doing TAGS in find" ; \ |
b00612cc | 8093 | (cd $(HOST_SUBDIR)/find && \ |
2a4cbe27 NN |
8094 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8095 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8096 | "RANLIB=$${RANLIB}" \ | |
8097 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 8098 | TAGS) \ |
2a4cbe27 NN |
8099 | || exit 1 |
8100 | ||
6bd3dfaa | 8101 | @endif find |
2a4cbe27 | 8102 | |
4fa63067 NN |
8103 | .PHONY: maybe-install-info-find install-info-find |
8104 | maybe-install-info-find: | |
6bd3dfaa PB |
8105 | @if find |
8106 | maybe-install-info-find: install-info-find | |
2a4cbe27 | 8107 | |
4fa63067 NN |
8108 | install-info-find: \ |
8109 | configure-find \ | |
8110 | info-find | |
8111 | @[ -f ./find/Makefile ] || exit 0; \ | |
b40e3958 L |
8112 | r=`${PWD_COMMAND}`; export r; \ |
8113 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8114 | $(HOST_EXPORTS) \ |
b813574b | 8115 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
8116 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
8117 | done; \ | |
4fa63067 | 8118 | echo "Doing install-info in find" ; \ |
b00612cc | 8119 | (cd $(HOST_SUBDIR)/find && \ |
2a4cbe27 NN |
8120 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8121 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8122 | "RANLIB=$${RANLIB}" \ | |
8123 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 8124 | install-info) \ |
2a4cbe27 NN |
8125 | || exit 1 |
8126 | ||
6bd3dfaa | 8127 | @endif find |
2a4cbe27 | 8128 | |
4fa63067 NN |
8129 | .PHONY: maybe-installcheck-find installcheck-find |
8130 | maybe-installcheck-find: | |
6bd3dfaa PB |
8131 | @if find |
8132 | maybe-installcheck-find: installcheck-find | |
2a4cbe27 | 8133 | |
4fa63067 NN |
8134 | installcheck-find: \ |
8135 | configure-find | |
8136 | @[ -f ./find/Makefile ] || exit 0; \ | |
b40e3958 L |
8137 | r=`${PWD_COMMAND}`; export r; \ |
8138 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8139 | $(HOST_EXPORTS) \ |
b813574b | 8140 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
8141 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
8142 | done; \ | |
4fa63067 | 8143 | echo "Doing installcheck in find" ; \ |
b00612cc | 8144 | (cd $(HOST_SUBDIR)/find && \ |
2a4cbe27 NN |
8145 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8146 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8147 | "RANLIB=$${RANLIB}" \ | |
8148 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 8149 | installcheck) \ |
2a4cbe27 NN |
8150 | || exit 1 |
8151 | ||
6bd3dfaa | 8152 | @endif find |
2a4cbe27 | 8153 | |
4fa63067 NN |
8154 | .PHONY: maybe-mostlyclean-find mostlyclean-find |
8155 | maybe-mostlyclean-find: | |
6bd3dfaa PB |
8156 | @if find |
8157 | maybe-mostlyclean-find: mostlyclean-find | |
2a4cbe27 | 8158 | |
4fa63067 NN |
8159 | mostlyclean-find: |
8160 | @[ -f ./find/Makefile ] || exit 0; \ | |
b40e3958 L |
8161 | r=`${PWD_COMMAND}`; export r; \ |
8162 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8163 | $(HOST_EXPORTS) \ |
b813574b | 8164 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
8165 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
8166 | done; \ | |
4fa63067 | 8167 | echo "Doing mostlyclean in find" ; \ |
b00612cc | 8168 | (cd $(HOST_SUBDIR)/find && \ |
2a4cbe27 NN |
8169 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8170 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8171 | "RANLIB=$${RANLIB}" \ | |
8172 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 8173 | mostlyclean) \ |
2a4cbe27 NN |
8174 | || exit 1 |
8175 | ||
6bd3dfaa | 8176 | @endif find |
2a4cbe27 | 8177 | |
4fa63067 NN |
8178 | .PHONY: maybe-clean-find clean-find |
8179 | maybe-clean-find: | |
6bd3dfaa PB |
8180 | @if find |
8181 | maybe-clean-find: clean-find | |
2a4cbe27 | 8182 | |
4fa63067 NN |
8183 | clean-find: |
8184 | @[ -f ./find/Makefile ] || exit 0; \ | |
b40e3958 L |
8185 | r=`${PWD_COMMAND}`; export r; \ |
8186 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8187 | $(HOST_EXPORTS) \ |
b813574b | 8188 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
8189 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
8190 | done; \ | |
4fa63067 | 8191 | echo "Doing clean in find" ; \ |
b00612cc | 8192 | (cd $(HOST_SUBDIR)/find && \ |
2a4cbe27 NN |
8193 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8194 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8195 | "RANLIB=$${RANLIB}" \ | |
8196 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 8197 | clean) \ |
2a4cbe27 NN |
8198 | || exit 1 |
8199 | ||
6bd3dfaa | 8200 | @endif find |
2a4cbe27 | 8201 | |
4fa63067 NN |
8202 | .PHONY: maybe-distclean-find distclean-find |
8203 | maybe-distclean-find: | |
6bd3dfaa PB |
8204 | @if find |
8205 | maybe-distclean-find: distclean-find | |
2a4cbe27 | 8206 | |
4fa63067 NN |
8207 | distclean-find: |
8208 | @[ -f ./find/Makefile ] || exit 0; \ | |
b40e3958 L |
8209 | r=`${PWD_COMMAND}`; export r; \ |
8210 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8211 | $(HOST_EXPORTS) \ |
b813574b | 8212 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
8213 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
8214 | done; \ | |
4fa63067 | 8215 | echo "Doing distclean in find" ; \ |
b00612cc | 8216 | (cd $(HOST_SUBDIR)/find && \ |
2a4cbe27 NN |
8217 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8218 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8219 | "RANLIB=$${RANLIB}" \ | |
8220 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 8221 | distclean) \ |
2a4cbe27 NN |
8222 | || exit 1 |
8223 | ||
6bd3dfaa | 8224 | @endif find |
2a4cbe27 | 8225 | |
4fa63067 NN |
8226 | .PHONY: maybe-maintainer-clean-find maintainer-clean-find |
8227 | maybe-maintainer-clean-find: | |
6bd3dfaa PB |
8228 | @if find |
8229 | maybe-maintainer-clean-find: maintainer-clean-find | |
2a4cbe27 | 8230 | |
4fa63067 NN |
8231 | maintainer-clean-find: |
8232 | @[ -f ./find/Makefile ] || exit 0; \ | |
b40e3958 L |
8233 | r=`${PWD_COMMAND}`; export r; \ |
8234 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8235 | $(HOST_EXPORTS) \ |
b813574b | 8236 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
8237 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
8238 | done; \ | |
4fa63067 | 8239 | echo "Doing maintainer-clean in find" ; \ |
b00612cc | 8240 | (cd $(HOST_SUBDIR)/find && \ |
2a4cbe27 NN |
8241 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8242 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8243 | "RANLIB=$${RANLIB}" \ | |
8244 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 8245 | maintainer-clean) \ |
2a4cbe27 NN |
8246 | || exit 1 |
8247 | ||
6bd3dfaa | 8248 | @endif find |
2a4cbe27 | 8249 | |
2a4cbe27 | 8250 | |
a7254363 | 8251 | |
d3ed111c GK |
8252 | .PHONY: configure-fixincludes maybe-configure-fixincludes |
8253 | maybe-configure-fixincludes: | |
8254 | @if fixincludes | |
8255 | maybe-configure-fixincludes: configure-fixincludes | |
a7254363 | 8256 | configure-fixincludes: |
b00612cc PB |
8257 | @test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \ |
8258 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes ; \ | |
d3ed111c GK |
8259 | r=`${PWD_COMMAND}`; export r; \ |
8260 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
8261 | $(HOST_EXPORTS) \ | |
a7254363 PB |
8262 | echo Configuring in $(HOST_SUBDIR)/fixincludes; \ |
8263 | cd "$(HOST_SUBDIR)/fixincludes" || exit 1; \ | |
d3ed111c | 8264 | case $(srcdir) in \ |
b00612cc PB |
8265 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
8266 | *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \ | |
8267 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
d3ed111c | 8268 | esac; \ |
b00612cc PB |
8269 | srcdiroption="--srcdir=$${topdir}/fixincludes"; \ |
8270 | libsrcdir="$$s/fixincludes"; \ | |
d3ed111c GK |
8271 | $(SHELL) $${libsrcdir}/configure \ |
8272 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
8273 | || exit 1 | |
8274 | @endif fixincludes | |
8275 | ||
a7254363 PB |
8276 | |
8277 | ||
d3ed111c GK |
8278 | .PHONY: all-fixincludes maybe-all-fixincludes |
8279 | maybe-all-fixincludes: | |
8280 | @if fixincludes | |
8281 | TARGET-fixincludes=all | |
8282 | maybe-all-fixincludes: all-fixincludes | |
8283 | all-fixincludes: configure-fixincludes | |
8284 | @r=`${PWD_COMMAND}`; export r; \ | |
8285 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
d3ed111c | 8286 | $(HOST_EXPORTS) \ |
b00612cc PB |
8287 | (cd $(HOST_SUBDIR)/fixincludes && \ |
8288 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-fixincludes)) | |
d3ed111c GK |
8289 | @endif fixincludes |
8290 | ||
a7254363 | 8291 | |
d3ed111c GK |
8292 | .PHONY: check-fixincludes maybe-check-fixincludes |
8293 | maybe-check-fixincludes: | |
8294 | @if fixincludes | |
8295 | maybe-check-fixincludes: check-fixincludes | |
8296 | ||
8297 | check-fixincludes: | |
8298 | @r=`${PWD_COMMAND}`; export r; \ | |
8299 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
d3ed111c | 8300 | $(HOST_EXPORTS) \ |
b00612cc PB |
8301 | (cd $(HOST_SUBDIR)/fixincludes && \ |
8302 | $(MAKE) $(FLAGS_TO_PASS) check) | |
d3ed111c GK |
8303 | |
8304 | @endif fixincludes | |
8305 | ||
8306 | .PHONY: install-fixincludes maybe-install-fixincludes | |
8307 | maybe-install-fixincludes: | |
8308 | @if fixincludes | |
8309 | maybe-install-fixincludes: install-fixincludes | |
8310 | ||
8311 | install-fixincludes: installdirs | |
8312 | @r=`${PWD_COMMAND}`; export r; \ | |
8313 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
d3ed111c | 8314 | $(HOST_EXPORTS) \ |
b00612cc | 8315 | (cd $(HOST_SUBDIR)/fixincludes && \ |
2da12f12 | 8316 | $(MAKE) $(FLAGS_TO_PASS) install) |
d3ed111c GK |
8317 | |
8318 | @endif fixincludes | |
8319 | ||
8320 | # Other targets (info, dvi, etc.) | |
8321 | ||
8322 | .PHONY: maybe-info-fixincludes info-fixincludes | |
8323 | maybe-info-fixincludes: | |
8324 | @if fixincludes | |
8325 | maybe-info-fixincludes: info-fixincludes | |
8326 | ||
1eefd493 PB |
8327 | # fixincludes doesn't support info. |
8328 | info-fixincludes: | |
d3ed111c GK |
8329 | |
8330 | @endif fixincludes | |
8331 | ||
8332 | .PHONY: maybe-dvi-fixincludes dvi-fixincludes | |
8333 | maybe-dvi-fixincludes: | |
8334 | @if fixincludes | |
8335 | maybe-dvi-fixincludes: dvi-fixincludes | |
8336 | ||
1eefd493 PB |
8337 | # fixincludes doesn't support dvi. |
8338 | dvi-fixincludes: | |
d3ed111c GK |
8339 | |
8340 | @endif fixincludes | |
8341 | ||
6d389afc MS |
8342 | .PHONY: maybe-html-fixincludes html-fixincludes |
8343 | maybe-html-fixincludes: | |
8344 | @if fixincludes | |
8345 | maybe-html-fixincludes: html-fixincludes | |
8346 | ||
8347 | html-fixincludes: \ | |
8348 | configure-fixincludes | |
8349 | @[ -f ./fixincludes/Makefile ] || exit 0; \ | |
8350 | r=`${PWD_COMMAND}`; export r; \ | |
8351 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
8352 | $(HOST_EXPORTS) \ |
8353 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
8354 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
8355 | done; \ | |
8356 | echo "Doing html in fixincludes" ; \ | |
b00612cc | 8357 | (cd $(HOST_SUBDIR)/fixincludes && \ |
6d389afc MS |
8358 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8359 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8360 | "RANLIB=$${RANLIB}" \ | |
8361 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
8362 | html) \ | |
8363 | || exit 1 | |
8364 | ||
8365 | @endif fixincludes | |
8366 | ||
d3ed111c GK |
8367 | .PHONY: maybe-TAGS-fixincludes TAGS-fixincludes |
8368 | maybe-TAGS-fixincludes: | |
8369 | @if fixincludes | |
8370 | maybe-TAGS-fixincludes: TAGS-fixincludes | |
8371 | ||
1eefd493 PB |
8372 | # fixincludes doesn't support TAGS. |
8373 | TAGS-fixincludes: | |
d3ed111c GK |
8374 | |
8375 | @endif fixincludes | |
8376 | ||
8377 | .PHONY: maybe-install-info-fixincludes install-info-fixincludes | |
8378 | maybe-install-info-fixincludes: | |
8379 | @if fixincludes | |
8380 | maybe-install-info-fixincludes: install-info-fixincludes | |
8381 | ||
1eefd493 PB |
8382 | # fixincludes doesn't support install-info. |
8383 | install-info-fixincludes: | |
d3ed111c GK |
8384 | |
8385 | @endif fixincludes | |
8386 | ||
8387 | .PHONY: maybe-installcheck-fixincludes installcheck-fixincludes | |
8388 | maybe-installcheck-fixincludes: | |
8389 | @if fixincludes | |
8390 | maybe-installcheck-fixincludes: installcheck-fixincludes | |
8391 | ||
1eefd493 PB |
8392 | # fixincludes doesn't support installcheck. |
8393 | installcheck-fixincludes: | |
d3ed111c GK |
8394 | |
8395 | @endif fixincludes | |
8396 | ||
8397 | .PHONY: maybe-mostlyclean-fixincludes mostlyclean-fixincludes | |
8398 | maybe-mostlyclean-fixincludes: | |
8399 | @if fixincludes | |
8400 | maybe-mostlyclean-fixincludes: mostlyclean-fixincludes | |
8401 | ||
8402 | mostlyclean-fixincludes: | |
8403 | @[ -f ./fixincludes/Makefile ] || exit 0; \ | |
8404 | r=`${PWD_COMMAND}`; export r; \ | |
8405 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
d3ed111c GK |
8406 | $(HOST_EXPORTS) \ |
8407 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
8408 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
8409 | done; \ | |
8410 | echo "Doing mostlyclean in fixincludes" ; \ | |
b00612cc | 8411 | (cd $(HOST_SUBDIR)/fixincludes && \ |
d3ed111c GK |
8412 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8413 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8414 | "RANLIB=$${RANLIB}" \ | |
8415 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
8416 | mostlyclean) \ | |
8417 | || exit 1 | |
8418 | ||
8419 | @endif fixincludes | |
8420 | ||
8421 | .PHONY: maybe-clean-fixincludes clean-fixincludes | |
8422 | maybe-clean-fixincludes: | |
8423 | @if fixincludes | |
8424 | maybe-clean-fixincludes: clean-fixincludes | |
8425 | ||
8426 | clean-fixincludes: | |
8427 | @[ -f ./fixincludes/Makefile ] || exit 0; \ | |
8428 | r=`${PWD_COMMAND}`; export r; \ | |
8429 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
d3ed111c GK |
8430 | $(HOST_EXPORTS) \ |
8431 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
8432 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
8433 | done; \ | |
8434 | echo "Doing clean in fixincludes" ; \ | |
b00612cc | 8435 | (cd $(HOST_SUBDIR)/fixincludes && \ |
d3ed111c GK |
8436 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8437 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8438 | "RANLIB=$${RANLIB}" \ | |
8439 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
8440 | clean) \ | |
8441 | || exit 1 | |
8442 | ||
8443 | @endif fixincludes | |
8444 | ||
8445 | .PHONY: maybe-distclean-fixincludes distclean-fixincludes | |
8446 | maybe-distclean-fixincludes: | |
8447 | @if fixincludes | |
8448 | maybe-distclean-fixincludes: distclean-fixincludes | |
8449 | ||
8450 | distclean-fixincludes: | |
8451 | @[ -f ./fixincludes/Makefile ] || exit 0; \ | |
8452 | r=`${PWD_COMMAND}`; export r; \ | |
8453 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
d3ed111c GK |
8454 | $(HOST_EXPORTS) \ |
8455 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
8456 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
8457 | done; \ | |
8458 | echo "Doing distclean in fixincludes" ; \ | |
b00612cc | 8459 | (cd $(HOST_SUBDIR)/fixincludes && \ |
d3ed111c GK |
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}" \ | |
8464 | distclean) \ | |
8465 | || exit 1 | |
8466 | ||
8467 | @endif fixincludes | |
8468 | ||
8469 | .PHONY: maybe-maintainer-clean-fixincludes maintainer-clean-fixincludes | |
8470 | maybe-maintainer-clean-fixincludes: | |
8471 | @if fixincludes | |
8472 | maybe-maintainer-clean-fixincludes: maintainer-clean-fixincludes | |
8473 | ||
8474 | maintainer-clean-fixincludes: | |
8475 | @[ -f ./fixincludes/Makefile ] || exit 0; \ | |
8476 | r=`${PWD_COMMAND}`; export r; \ | |
8477 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
d3ed111c GK |
8478 | $(HOST_EXPORTS) \ |
8479 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
8480 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
8481 | done; \ | |
8482 | echo "Doing maintainer-clean in fixincludes" ; \ | |
b00612cc | 8483 | (cd $(HOST_SUBDIR)/fixincludes && \ |
d3ed111c GK |
8484 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8485 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8486 | "RANLIB=$${RANLIB}" \ | |
8487 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
8488 | maintainer-clean) \ | |
8489 | || exit 1 | |
8490 | ||
8491 | @endif fixincludes | |
8492 | ||
8493 | ||
a7254363 | 8494 | |
4fa63067 NN |
8495 | .PHONY: configure-flex maybe-configure-flex |
8496 | maybe-configure-flex: | |
6bd3dfaa PB |
8497 | @if flex |
8498 | maybe-configure-flex: configure-flex | |
a7254363 | 8499 | configure-flex: |
b00612cc PB |
8500 | @test ! -f $(HOST_SUBDIR)/flex/Makefile || exit 0; \ |
8501 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/flex ; \ | |
4fa63067 NN |
8502 | r=`${PWD_COMMAND}`; export r; \ |
8503 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8504 | $(HOST_EXPORTS) \ |
a7254363 PB |
8505 | echo Configuring in $(HOST_SUBDIR)/flex; \ |
8506 | cd "$(HOST_SUBDIR)/flex" || exit 1; \ | |
4fa63067 | 8507 | case $(srcdir) in \ |
b00612cc PB |
8508 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
8509 | *) topdir=`echo $(HOST_SUBDIR)/flex/ | \ | |
8510 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 8511 | esac; \ |
b00612cc PB |
8512 | srcdiroption="--srcdir=$${topdir}/flex"; \ |
8513 | libsrcdir="$$s/flex"; \ | |
4fa63067 | 8514 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 8515 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
4fa63067 | 8516 | || exit 1 |
6bd3dfaa | 8517 | @endif flex |
4fa63067 | 8518 | |
a7254363 PB |
8519 | |
8520 | ||
4fa63067 NN |
8521 | .PHONY: all-flex maybe-all-flex |
8522 | maybe-all-flex: | |
6bd3dfaa | 8523 | @if flex |
d27cc32e | 8524 | TARGET-flex=all |
6bd3dfaa | 8525 | maybe-all-flex: all-flex |
4fa63067 NN |
8526 | all-flex: configure-flex |
8527 | @r=`${PWD_COMMAND}`; export r; \ | |
8528 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8529 | $(HOST_EXPORTS) \ |
b00612cc PB |
8530 | (cd $(HOST_SUBDIR)/flex && \ |
8531 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-flex)) | |
6bd3dfaa | 8532 | @endif flex |
4fa63067 | 8533 | |
a7254363 | 8534 | |
4fa63067 NN |
8535 | .PHONY: check-flex maybe-check-flex |
8536 | maybe-check-flex: | |
6bd3dfaa PB |
8537 | @if flex |
8538 | maybe-check-flex: check-flex | |
4fa63067 NN |
8539 | |
8540 | # This module is only tested in a native toolchain. | |
8541 | check-flex: | |
8542 | @if [ '$(host)' = '$(target)' ] ; then \ | |
8543 | r=`${PWD_COMMAND}`; export r; \ | |
8544 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8545 | $(HOST_EXPORTS) \ |
b00612cc | 8546 | (cd $(HOST_SUBDIR)/flex && \ |
4cfaf6d5 | 8547 | $(MAKE) $(FLAGS_TO_PASS) check); \ |
4fa63067 NN |
8548 | fi |
8549 | ||
6bd3dfaa | 8550 | @endif flex |
4fa63067 NN |
8551 | |
8552 | .PHONY: install-flex maybe-install-flex | |
8553 | maybe-install-flex: | |
6bd3dfaa PB |
8554 | @if flex |
8555 | maybe-install-flex: install-flex | |
4fa63067 NN |
8556 | |
8557 | install-flex: installdirs | |
8558 | @r=`${PWD_COMMAND}`; export r; \ | |
8559 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8560 | $(HOST_EXPORTS) \ |
b00612cc | 8561 | (cd $(HOST_SUBDIR)/flex && \ |
2da12f12 | 8562 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 8563 | |
6bd3dfaa | 8564 | @endif flex |
4fa63067 NN |
8565 | |
8566 | # Other targets (info, dvi, etc.) | |
8567 | ||
8568 | .PHONY: maybe-info-flex info-flex | |
8569 | maybe-info-flex: | |
6bd3dfaa PB |
8570 | @if flex |
8571 | maybe-info-flex: info-flex | |
4fa63067 NN |
8572 | |
8573 | info-flex: \ | |
8574 | configure-flex | |
8575 | @[ -f ./flex/Makefile ] || exit 0; \ | |
b40e3958 L |
8576 | r=`${PWD_COMMAND}`; export r; \ |
8577 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8578 | $(HOST_EXPORTS) \ |
b813574b | 8579 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
8580 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
8581 | done; \ | |
4fa63067 | 8582 | echo "Doing info in flex" ; \ |
b00612cc | 8583 | (cd $(HOST_SUBDIR)/flex && \ |
2a4cbe27 NN |
8584 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8585 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8586 | "RANLIB=$${RANLIB}" \ | |
8587 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 8588 | info) \ |
2a4cbe27 NN |
8589 | || exit 1 |
8590 | ||
6bd3dfaa | 8591 | @endif flex |
2a4cbe27 | 8592 | |
4fa63067 NN |
8593 | .PHONY: maybe-dvi-flex dvi-flex |
8594 | maybe-dvi-flex: | |
6bd3dfaa PB |
8595 | @if flex |
8596 | maybe-dvi-flex: dvi-flex | |
2a4cbe27 | 8597 | |
4fa63067 NN |
8598 | dvi-flex: \ |
8599 | configure-flex | |
8600 | @[ -f ./flex/Makefile ] || exit 0; \ | |
b40e3958 L |
8601 | r=`${PWD_COMMAND}`; export r; \ |
8602 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8603 | $(HOST_EXPORTS) \ |
b813574b | 8604 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
8605 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
8606 | done; \ | |
4fa63067 | 8607 | echo "Doing dvi in flex" ; \ |
b00612cc | 8608 | (cd $(HOST_SUBDIR)/flex && \ |
2a4cbe27 NN |
8609 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8610 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8611 | "RANLIB=$${RANLIB}" \ | |
8612 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 8613 | dvi) \ |
2a4cbe27 NN |
8614 | || exit 1 |
8615 | ||
6bd3dfaa | 8616 | @endif flex |
2a4cbe27 | 8617 | |
6d389afc MS |
8618 | .PHONY: maybe-html-flex html-flex |
8619 | maybe-html-flex: | |
8620 | @if flex | |
8621 | maybe-html-flex: html-flex | |
8622 | ||
8623 | html-flex: \ | |
8624 | configure-flex | |
8625 | @[ -f ./flex/Makefile ] || exit 0; \ | |
8626 | r=`${PWD_COMMAND}`; export r; \ | |
8627 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
8628 | $(HOST_EXPORTS) \ |
8629 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
8630 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
8631 | done; \ | |
8632 | echo "Doing html in flex" ; \ | |
b00612cc | 8633 | (cd $(HOST_SUBDIR)/flex && \ |
6d389afc MS |
8634 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8635 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8636 | "RANLIB=$${RANLIB}" \ | |
8637 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
8638 | html) \ | |
8639 | || exit 1 | |
8640 | ||
8641 | @endif flex | |
8642 | ||
4fa63067 NN |
8643 | .PHONY: maybe-TAGS-flex TAGS-flex |
8644 | maybe-TAGS-flex: | |
6bd3dfaa PB |
8645 | @if flex |
8646 | maybe-TAGS-flex: TAGS-flex | |
2a4cbe27 | 8647 | |
4fa63067 NN |
8648 | TAGS-flex: \ |
8649 | configure-flex | |
8650 | @[ -f ./flex/Makefile ] || exit 0; \ | |
b40e3958 L |
8651 | r=`${PWD_COMMAND}`; export r; \ |
8652 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8653 | $(HOST_EXPORTS) \ |
b813574b | 8654 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
8655 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
8656 | done; \ | |
4fa63067 | 8657 | echo "Doing TAGS in flex" ; \ |
b00612cc | 8658 | (cd $(HOST_SUBDIR)/flex && \ |
2a4cbe27 NN |
8659 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8660 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8661 | "RANLIB=$${RANLIB}" \ | |
8662 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 8663 | TAGS) \ |
2a4cbe27 NN |
8664 | || exit 1 |
8665 | ||
6bd3dfaa | 8666 | @endif flex |
2a4cbe27 | 8667 | |
4fa63067 NN |
8668 | .PHONY: maybe-install-info-flex install-info-flex |
8669 | maybe-install-info-flex: | |
6bd3dfaa PB |
8670 | @if flex |
8671 | maybe-install-info-flex: install-info-flex | |
2a4cbe27 | 8672 | |
4fa63067 NN |
8673 | install-info-flex: \ |
8674 | configure-flex \ | |
8675 | info-flex | |
8676 | @[ -f ./flex/Makefile ] || exit 0; \ | |
b40e3958 L |
8677 | r=`${PWD_COMMAND}`; export r; \ |
8678 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8679 | $(HOST_EXPORTS) \ |
b813574b | 8680 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
8681 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
8682 | done; \ | |
4fa63067 | 8683 | echo "Doing install-info in flex" ; \ |
b00612cc | 8684 | (cd $(HOST_SUBDIR)/flex && \ |
2a4cbe27 NN |
8685 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8686 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8687 | "RANLIB=$${RANLIB}" \ | |
8688 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 8689 | install-info) \ |
2a4cbe27 NN |
8690 | || exit 1 |
8691 | ||
6bd3dfaa | 8692 | @endif flex |
2a4cbe27 | 8693 | |
4fa63067 NN |
8694 | .PHONY: maybe-installcheck-flex installcheck-flex |
8695 | maybe-installcheck-flex: | |
6bd3dfaa PB |
8696 | @if flex |
8697 | maybe-installcheck-flex: installcheck-flex | |
2a4cbe27 | 8698 | |
4fa63067 NN |
8699 | installcheck-flex: \ |
8700 | configure-flex | |
8701 | @[ -f ./flex/Makefile ] || exit 0; \ | |
b40e3958 L |
8702 | r=`${PWD_COMMAND}`; export r; \ |
8703 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8704 | $(HOST_EXPORTS) \ |
b813574b | 8705 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
8706 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
8707 | done; \ | |
4fa63067 | 8708 | echo "Doing installcheck in flex" ; \ |
b00612cc | 8709 | (cd $(HOST_SUBDIR)/flex && \ |
2a4cbe27 NN |
8710 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8711 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8712 | "RANLIB=$${RANLIB}" \ | |
8713 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 8714 | installcheck) \ |
2a4cbe27 NN |
8715 | || exit 1 |
8716 | ||
6bd3dfaa | 8717 | @endif flex |
2a4cbe27 | 8718 | |
4fa63067 NN |
8719 | .PHONY: maybe-mostlyclean-flex mostlyclean-flex |
8720 | maybe-mostlyclean-flex: | |
6bd3dfaa PB |
8721 | @if flex |
8722 | maybe-mostlyclean-flex: mostlyclean-flex | |
2a4cbe27 | 8723 | |
4fa63067 NN |
8724 | mostlyclean-flex: |
8725 | @[ -f ./flex/Makefile ] || exit 0; \ | |
b40e3958 L |
8726 | r=`${PWD_COMMAND}`; export r; \ |
8727 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8728 | $(HOST_EXPORTS) \ |
b813574b | 8729 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
8730 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
8731 | done; \ | |
4fa63067 | 8732 | echo "Doing mostlyclean in flex" ; \ |
b00612cc | 8733 | (cd $(HOST_SUBDIR)/flex && \ |
2a4cbe27 NN |
8734 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8735 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8736 | "RANLIB=$${RANLIB}" \ | |
8737 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 8738 | mostlyclean) \ |
2a4cbe27 NN |
8739 | || exit 1 |
8740 | ||
6bd3dfaa | 8741 | @endif flex |
2a4cbe27 | 8742 | |
4fa63067 NN |
8743 | .PHONY: maybe-clean-flex clean-flex |
8744 | maybe-clean-flex: | |
6bd3dfaa PB |
8745 | @if flex |
8746 | maybe-clean-flex: clean-flex | |
2a4cbe27 | 8747 | |
4fa63067 NN |
8748 | clean-flex: |
8749 | @[ -f ./flex/Makefile ] || exit 0; \ | |
b40e3958 L |
8750 | r=`${PWD_COMMAND}`; export r; \ |
8751 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8752 | $(HOST_EXPORTS) \ |
b813574b | 8753 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
8754 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
8755 | done; \ | |
4fa63067 | 8756 | echo "Doing clean in flex" ; \ |
b00612cc | 8757 | (cd $(HOST_SUBDIR)/flex && \ |
2a4cbe27 NN |
8758 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8759 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8760 | "RANLIB=$${RANLIB}" \ | |
8761 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 8762 | clean) \ |
2a4cbe27 NN |
8763 | || exit 1 |
8764 | ||
6bd3dfaa | 8765 | @endif flex |
2a4cbe27 | 8766 | |
4fa63067 NN |
8767 | .PHONY: maybe-distclean-flex distclean-flex |
8768 | maybe-distclean-flex: | |
6bd3dfaa PB |
8769 | @if flex |
8770 | maybe-distclean-flex: distclean-flex | |
2a4cbe27 | 8771 | |
4fa63067 NN |
8772 | distclean-flex: |
8773 | @[ -f ./flex/Makefile ] || exit 0; \ | |
b40e3958 L |
8774 | r=`${PWD_COMMAND}`; export r; \ |
8775 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8776 | $(HOST_EXPORTS) \ |
b813574b | 8777 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
8778 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
8779 | done; \ | |
4fa63067 | 8780 | echo "Doing distclean in flex" ; \ |
b00612cc | 8781 | (cd $(HOST_SUBDIR)/flex && \ |
2a4cbe27 NN |
8782 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8783 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8784 | "RANLIB=$${RANLIB}" \ | |
8785 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 8786 | distclean) \ |
2a4cbe27 NN |
8787 | || exit 1 |
8788 | ||
6bd3dfaa | 8789 | @endif flex |
2a4cbe27 | 8790 | |
4fa63067 NN |
8791 | .PHONY: maybe-maintainer-clean-flex maintainer-clean-flex |
8792 | maybe-maintainer-clean-flex: | |
6bd3dfaa PB |
8793 | @if flex |
8794 | maybe-maintainer-clean-flex: maintainer-clean-flex | |
2a4cbe27 | 8795 | |
4fa63067 NN |
8796 | maintainer-clean-flex: |
8797 | @[ -f ./flex/Makefile ] || exit 0; \ | |
b40e3958 L |
8798 | r=`${PWD_COMMAND}`; export r; \ |
8799 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8800 | $(HOST_EXPORTS) \ |
b813574b | 8801 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
8802 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
8803 | done; \ | |
4fa63067 | 8804 | echo "Doing maintainer-clean in flex" ; \ |
b00612cc | 8805 | (cd $(HOST_SUBDIR)/flex && \ |
2a4cbe27 NN |
8806 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8807 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8808 | "RANLIB=$${RANLIB}" \ | |
8809 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 8810 | maintainer-clean) \ |
2a4cbe27 NN |
8811 | || exit 1 |
8812 | ||
6bd3dfaa | 8813 | @endif flex |
2a4cbe27 | 8814 | |
2a4cbe27 | 8815 | |
a7254363 | 8816 | |
4fa63067 NN |
8817 | .PHONY: configure-gas maybe-configure-gas |
8818 | maybe-configure-gas: | |
6bd3dfaa PB |
8819 | @if gas |
8820 | maybe-configure-gas: configure-gas | |
a7254363 | 8821 | configure-gas: |
72b2455a | 8822 | @test -f stage_last && exit 0; \ |
b00612cc PB |
8823 | test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \ |
8824 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \ | |
b40e3958 L |
8825 | r=`${PWD_COMMAND}`; export r; \ |
8826 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8827 | $(HOST_EXPORTS) \ |
a7254363 PB |
8828 | echo Configuring in $(HOST_SUBDIR)/gas; \ |
8829 | cd "$(HOST_SUBDIR)/gas" || exit 1; \ | |
4fa63067 | 8830 | case $(srcdir) in \ |
b00612cc PB |
8831 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
8832 | *) topdir=`echo $(HOST_SUBDIR)/gas/ | \ | |
8833 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 8834 | esac; \ |
b00612cc PB |
8835 | srcdiroption="--srcdir=$${topdir}/gas"; \ |
8836 | libsrcdir="$$s/gas"; \ | |
4fa63067 | 8837 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 8838 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
4fa63067 | 8839 | || exit 1 |
6bd3dfaa | 8840 | @endif gas |
4fa63067 | 8841 | |
a7254363 PB |
8842 | |
8843 | ||
4fa63067 NN |
8844 | .PHONY: all-gas maybe-all-gas |
8845 | maybe-all-gas: | |
6bd3dfaa | 8846 | @if gas |
d27cc32e | 8847 | TARGET-gas=all |
6bd3dfaa | 8848 | maybe-all-gas: all-gas |
4fa63067 | 8849 | all-gas: configure-gas |
72b2455a PB |
8850 | @test -f stage_last && exit 0; \ |
8851 | r=`${PWD_COMMAND}`; export r; \ | |
4fa63067 | 8852 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 8853 | $(HOST_EXPORTS) \ |
b00612cc PB |
8854 | (cd $(HOST_SUBDIR)/gas && \ |
8855 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-gas)) | |
6bd3dfaa | 8856 | @endif gas |
4fa63067 | 8857 | |
a7254363 | 8858 | |
4fa63067 NN |
8859 | .PHONY: check-gas maybe-check-gas |
8860 | maybe-check-gas: | |
6bd3dfaa PB |
8861 | @if gas |
8862 | maybe-check-gas: check-gas | |
4fa63067 NN |
8863 | |
8864 | check-gas: | |
8865 | @r=`${PWD_COMMAND}`; export r; \ | |
8866 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8867 | $(HOST_EXPORTS) \ |
b00612cc PB |
8868 | (cd $(HOST_SUBDIR)/gas && \ |
8869 | $(MAKE) $(FLAGS_TO_PASS) check) | |
4fa63067 | 8870 | |
6bd3dfaa | 8871 | @endif gas |
4fa63067 NN |
8872 | |
8873 | .PHONY: install-gas maybe-install-gas | |
8874 | maybe-install-gas: | |
6bd3dfaa PB |
8875 | @if gas |
8876 | maybe-install-gas: install-gas | |
4fa63067 NN |
8877 | |
8878 | install-gas: installdirs | |
8879 | @r=`${PWD_COMMAND}`; export r; \ | |
8880 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8881 | $(HOST_EXPORTS) \ |
b00612cc | 8882 | (cd $(HOST_SUBDIR)/gas && \ |
2da12f12 | 8883 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 8884 | |
6bd3dfaa | 8885 | @endif gas |
4fa63067 NN |
8886 | |
8887 | # Other targets (info, dvi, etc.) | |
8888 | ||
8889 | .PHONY: maybe-info-gas info-gas | |
8890 | maybe-info-gas: | |
6bd3dfaa PB |
8891 | @if gas |
8892 | maybe-info-gas: info-gas | |
4fa63067 NN |
8893 | |
8894 | info-gas: \ | |
8895 | configure-gas | |
8896 | @[ -f ./gas/Makefile ] || exit 0; \ | |
8897 | r=`${PWD_COMMAND}`; export r; \ | |
8898 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8899 | $(HOST_EXPORTS) \ |
b813574b | 8900 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
8901 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
8902 | done; \ | |
4fa63067 | 8903 | echo "Doing info in gas" ; \ |
b00612cc | 8904 | (cd $(HOST_SUBDIR)/gas && \ |
2a4cbe27 NN |
8905 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8906 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8907 | "RANLIB=$${RANLIB}" \ | |
8908 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 8909 | info) \ |
2a4cbe27 NN |
8910 | || exit 1 |
8911 | ||
6bd3dfaa | 8912 | @endif gas |
2a4cbe27 | 8913 | |
4fa63067 NN |
8914 | .PHONY: maybe-dvi-gas dvi-gas |
8915 | maybe-dvi-gas: | |
6bd3dfaa PB |
8916 | @if gas |
8917 | maybe-dvi-gas: dvi-gas | |
2a4cbe27 | 8918 | |
4fa63067 NN |
8919 | dvi-gas: \ |
8920 | configure-gas | |
8921 | @[ -f ./gas/Makefile ] || exit 0; \ | |
b40e3958 L |
8922 | r=`${PWD_COMMAND}`; export r; \ |
8923 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8924 | $(HOST_EXPORTS) \ |
b813574b | 8925 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
8926 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
8927 | done; \ | |
4fa63067 | 8928 | echo "Doing dvi in gas" ; \ |
b00612cc | 8929 | (cd $(HOST_SUBDIR)/gas && \ |
2a4cbe27 NN |
8930 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8931 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8932 | "RANLIB=$${RANLIB}" \ | |
8933 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 8934 | dvi) \ |
2a4cbe27 NN |
8935 | || exit 1 |
8936 | ||
6bd3dfaa | 8937 | @endif gas |
2a4cbe27 | 8938 | |
6d389afc MS |
8939 | .PHONY: maybe-html-gas html-gas |
8940 | maybe-html-gas: | |
8941 | @if gas | |
8942 | maybe-html-gas: html-gas | |
8943 | ||
8944 | html-gas: \ | |
8945 | configure-gas | |
8946 | @[ -f ./gas/Makefile ] || exit 0; \ | |
8947 | r=`${PWD_COMMAND}`; export r; \ | |
8948 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
8949 | $(HOST_EXPORTS) \ |
8950 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
8951 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
8952 | done; \ | |
8953 | echo "Doing html in gas" ; \ | |
b00612cc | 8954 | (cd $(HOST_SUBDIR)/gas && \ |
6d389afc MS |
8955 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8956 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8957 | "RANLIB=$${RANLIB}" \ | |
8958 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
8959 | html) \ | |
8960 | || exit 1 | |
8961 | ||
8962 | @endif gas | |
8963 | ||
4fa63067 NN |
8964 | .PHONY: maybe-TAGS-gas TAGS-gas |
8965 | maybe-TAGS-gas: | |
6bd3dfaa PB |
8966 | @if gas |
8967 | maybe-TAGS-gas: TAGS-gas | |
2a4cbe27 | 8968 | |
4fa63067 NN |
8969 | TAGS-gas: \ |
8970 | configure-gas | |
8971 | @[ -f ./gas/Makefile ] || exit 0; \ | |
b40e3958 L |
8972 | r=`${PWD_COMMAND}`; export r; \ |
8973 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8974 | $(HOST_EXPORTS) \ |
b813574b | 8975 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
8976 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
8977 | done; \ | |
4fa63067 | 8978 | echo "Doing TAGS in gas" ; \ |
b00612cc | 8979 | (cd $(HOST_SUBDIR)/gas && \ |
2a4cbe27 NN |
8980 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8981 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8982 | "RANLIB=$${RANLIB}" \ | |
8983 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 8984 | TAGS) \ |
2a4cbe27 NN |
8985 | || exit 1 |
8986 | ||
6bd3dfaa | 8987 | @endif gas |
2a4cbe27 | 8988 | |
4fa63067 NN |
8989 | .PHONY: maybe-install-info-gas install-info-gas |
8990 | maybe-install-info-gas: | |
6bd3dfaa PB |
8991 | @if gas |
8992 | maybe-install-info-gas: install-info-gas | |
2a4cbe27 | 8993 | |
4fa63067 NN |
8994 | install-info-gas: \ |
8995 | configure-gas \ | |
8996 | info-gas | |
8997 | @[ -f ./gas/Makefile ] || exit 0; \ | |
b40e3958 L |
8998 | r=`${PWD_COMMAND}`; export r; \ |
8999 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9000 | $(HOST_EXPORTS) \ |
b813574b | 9001 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
9002 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9003 | done; \ | |
4fa63067 | 9004 | echo "Doing install-info in gas" ; \ |
b00612cc | 9005 | (cd $(HOST_SUBDIR)/gas && \ |
2a4cbe27 NN |
9006 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9007 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9008 | "RANLIB=$${RANLIB}" \ | |
9009 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 9010 | install-info) \ |
2a4cbe27 NN |
9011 | || exit 1 |
9012 | ||
6bd3dfaa | 9013 | @endif gas |
2a4cbe27 | 9014 | |
4fa63067 NN |
9015 | .PHONY: maybe-installcheck-gas installcheck-gas |
9016 | maybe-installcheck-gas: | |
6bd3dfaa PB |
9017 | @if gas |
9018 | maybe-installcheck-gas: installcheck-gas | |
2a4cbe27 | 9019 | |
4fa63067 NN |
9020 | installcheck-gas: \ |
9021 | configure-gas | |
9022 | @[ -f ./gas/Makefile ] || exit 0; \ | |
b40e3958 L |
9023 | r=`${PWD_COMMAND}`; export r; \ |
9024 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9025 | $(HOST_EXPORTS) \ |
b813574b | 9026 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
9027 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9028 | done; \ | |
4fa63067 | 9029 | echo "Doing installcheck in gas" ; \ |
b00612cc | 9030 | (cd $(HOST_SUBDIR)/gas && \ |
2a4cbe27 NN |
9031 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9032 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9033 | "RANLIB=$${RANLIB}" \ | |
9034 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 9035 | installcheck) \ |
2a4cbe27 NN |
9036 | || exit 1 |
9037 | ||
6bd3dfaa | 9038 | @endif gas |
2a4cbe27 | 9039 | |
4fa63067 NN |
9040 | .PHONY: maybe-mostlyclean-gas mostlyclean-gas |
9041 | maybe-mostlyclean-gas: | |
6bd3dfaa PB |
9042 | @if gas |
9043 | maybe-mostlyclean-gas: mostlyclean-gas | |
2a4cbe27 | 9044 | |
4fa63067 NN |
9045 | mostlyclean-gas: |
9046 | @[ -f ./gas/Makefile ] || exit 0; \ | |
b40e3958 L |
9047 | r=`${PWD_COMMAND}`; export r; \ |
9048 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9049 | $(HOST_EXPORTS) \ |
b813574b | 9050 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
9051 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9052 | done; \ | |
4fa63067 | 9053 | echo "Doing mostlyclean in gas" ; \ |
b00612cc | 9054 | (cd $(HOST_SUBDIR)/gas && \ |
2a4cbe27 NN |
9055 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9056 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9057 | "RANLIB=$${RANLIB}" \ | |
9058 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 9059 | mostlyclean) \ |
2a4cbe27 NN |
9060 | || exit 1 |
9061 | ||
6bd3dfaa | 9062 | @endif gas |
2a4cbe27 | 9063 | |
4fa63067 NN |
9064 | .PHONY: maybe-clean-gas clean-gas |
9065 | maybe-clean-gas: | |
6bd3dfaa PB |
9066 | @if gas |
9067 | maybe-clean-gas: clean-gas | |
2a4cbe27 | 9068 | |
4fa63067 NN |
9069 | clean-gas: |
9070 | @[ -f ./gas/Makefile ] || exit 0; \ | |
b40e3958 L |
9071 | r=`${PWD_COMMAND}`; export r; \ |
9072 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9073 | $(HOST_EXPORTS) \ |
b813574b | 9074 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
9075 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9076 | done; \ | |
4fa63067 | 9077 | echo "Doing clean in gas" ; \ |
b00612cc | 9078 | (cd $(HOST_SUBDIR)/gas && \ |
2a4cbe27 NN |
9079 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9080 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9081 | "RANLIB=$${RANLIB}" \ | |
9082 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 9083 | clean) \ |
2a4cbe27 NN |
9084 | || exit 1 |
9085 | ||
6bd3dfaa | 9086 | @endif gas |
2a4cbe27 | 9087 | |
4fa63067 NN |
9088 | .PHONY: maybe-distclean-gas distclean-gas |
9089 | maybe-distclean-gas: | |
6bd3dfaa PB |
9090 | @if gas |
9091 | maybe-distclean-gas: distclean-gas | |
2a4cbe27 | 9092 | |
4fa63067 NN |
9093 | distclean-gas: |
9094 | @[ -f ./gas/Makefile ] || exit 0; \ | |
b40e3958 L |
9095 | r=`${PWD_COMMAND}`; export r; \ |
9096 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9097 | $(HOST_EXPORTS) \ |
b813574b | 9098 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
9099 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9100 | done; \ | |
4fa63067 | 9101 | echo "Doing distclean in gas" ; \ |
b00612cc | 9102 | (cd $(HOST_SUBDIR)/gas && \ |
2a4cbe27 NN |
9103 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9104 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9105 | "RANLIB=$${RANLIB}" \ | |
9106 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 9107 | distclean) \ |
2a4cbe27 NN |
9108 | || exit 1 |
9109 | ||
6bd3dfaa | 9110 | @endif gas |
2a4cbe27 | 9111 | |
4fa63067 NN |
9112 | .PHONY: maybe-maintainer-clean-gas maintainer-clean-gas |
9113 | maybe-maintainer-clean-gas: | |
6bd3dfaa PB |
9114 | @if gas |
9115 | maybe-maintainer-clean-gas: maintainer-clean-gas | |
2a4cbe27 | 9116 | |
4fa63067 NN |
9117 | maintainer-clean-gas: |
9118 | @[ -f ./gas/Makefile ] || exit 0; \ | |
b40e3958 L |
9119 | r=`${PWD_COMMAND}`; export r; \ |
9120 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9121 | $(HOST_EXPORTS) \ |
b813574b | 9122 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
9123 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9124 | done; \ | |
4fa63067 | 9125 | echo "Doing maintainer-clean in gas" ; \ |
b00612cc | 9126 | (cd $(HOST_SUBDIR)/gas && \ |
2a4cbe27 NN |
9127 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9128 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9129 | "RANLIB=$${RANLIB}" \ | |
9130 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 9131 | maintainer-clean) \ |
2a4cbe27 NN |
9132 | || exit 1 |
9133 | ||
6bd3dfaa | 9134 | @endif gas |
2a4cbe27 | 9135 | |
2a4cbe27 | 9136 | |
a7254363 | 9137 | |
b813574b PB |
9138 | .PHONY: configure-gcc maybe-configure-gcc |
9139 | maybe-configure-gcc: | |
9140 | @if gcc | |
9141 | maybe-configure-gcc: configure-gcc | |
a7254363 | 9142 | configure-gcc: |
72b2455a | 9143 | @test -f stage_last && exit 0; \ |
b00612cc PB |
9144 | test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \ |
9145 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \ | |
4fa63067 NN |
9146 | r=`${PWD_COMMAND}`; export r; \ |
9147 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9148 | $(HOST_EXPORTS) \ |
a7254363 PB |
9149 | echo Configuring in $(HOST_SUBDIR)/gcc; \ |
9150 | cd "$(HOST_SUBDIR)/gcc" || exit 1; \ | |
4fa63067 | 9151 | case $(srcdir) in \ |
b00612cc PB |
9152 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
9153 | *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \ | |
9154 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 9155 | esac; \ |
b00612cc PB |
9156 | srcdiroption="--srcdir=$${topdir}/gcc"; \ |
9157 | libsrcdir="$$s/gcc"; \ | |
4fa63067 | 9158 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 9159 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
4fa63067 | 9160 | || exit 1 |
b813574b | 9161 | @endif gcc |
4fa63067 | 9162 | |
a7254363 PB |
9163 | |
9164 | ||
b813574b PB |
9165 | .PHONY: all-gcc maybe-all-gcc |
9166 | maybe-all-gcc: | |
9167 | @if gcc | |
d27cc32e | 9168 | TARGET-gcc=`if [ -f gcc/stage_last ]; then echo quickstrap ; else echo all; fi` |
b813574b PB |
9169 | maybe-all-gcc: all-gcc |
9170 | all-gcc: configure-gcc | |
72b2455a PB |
9171 | @test -f stage_last && exit 0; \ |
9172 | r=`${PWD_COMMAND}`; export r; \ | |
4fa63067 | 9173 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 9174 | $(HOST_EXPORTS) \ |
b00612cc PB |
9175 | (cd $(HOST_SUBDIR)/gcc && \ |
9176 | $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) $(TARGET-gcc)) | |
b813574b | 9177 | @endif gcc |
4fa63067 | 9178 | |
a7254363 | 9179 | |
b813574b PB |
9180 | .PHONY: check-gcc maybe-check-gcc |
9181 | maybe-check-gcc: | |
9182 | @if gcc | |
9183 | maybe-check-gcc: check-gcc | |
4fa63067 | 9184 | |
b813574b | 9185 | check-gcc: |
4fa63067 NN |
9186 | @r=`${PWD_COMMAND}`; export r; \ |
9187 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9188 | $(HOST_EXPORTS) \ |
b00612cc PB |
9189 | (cd $(HOST_SUBDIR)/gcc && \ |
9190 | $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) check) | |
4fa63067 | 9191 | |
b813574b | 9192 | @endif gcc |
4fa63067 | 9193 | |
b813574b PB |
9194 | .PHONY: install-gcc maybe-install-gcc |
9195 | maybe-install-gcc: | |
9196 | @if gcc | |
9197 | maybe-install-gcc: install-gcc | |
4fa63067 | 9198 | |
b813574b | 9199 | install-gcc: installdirs |
4fa63067 NN |
9200 | @r=`${PWD_COMMAND}`; export r; \ |
9201 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9202 | $(HOST_EXPORTS) \ |
b00612cc | 9203 | (cd $(HOST_SUBDIR)/gcc && \ |
2da12f12 | 9204 | $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) install) |
4fa63067 | 9205 | |
b813574b | 9206 | @endif gcc |
4fa63067 NN |
9207 | |
9208 | # Other targets (info, dvi, etc.) | |
9209 | ||
b813574b PB |
9210 | .PHONY: maybe-info-gcc info-gcc |
9211 | maybe-info-gcc: | |
9212 | @if gcc | |
9213 | maybe-info-gcc: info-gcc | |
4fa63067 | 9214 | |
b813574b PB |
9215 | info-gcc: \ |
9216 | configure-gcc | |
9217 | @[ -f ./gcc/Makefile ] || exit 0; \ | |
b40e3958 L |
9218 | r=`${PWD_COMMAND}`; export r; \ |
9219 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9220 | $(HOST_EXPORTS) \ |
b813574b | 9221 | for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \ |
2a4cbe27 NN |
9222 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9223 | done; \ | |
b813574b | 9224 | echo "Doing info in gcc" ; \ |
b00612cc | 9225 | (cd $(HOST_SUBDIR)/gcc && \ |
2a4cbe27 NN |
9226 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9227 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9228 | "RANLIB=$${RANLIB}" \ | |
9229 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 9230 | info) \ |
2a4cbe27 NN |
9231 | || exit 1 |
9232 | ||
b813574b | 9233 | @endif gcc |
2a4cbe27 | 9234 | |
b813574b PB |
9235 | .PHONY: maybe-dvi-gcc dvi-gcc |
9236 | maybe-dvi-gcc: | |
9237 | @if gcc | |
9238 | maybe-dvi-gcc: dvi-gcc | |
2a4cbe27 | 9239 | |
b813574b PB |
9240 | dvi-gcc: \ |
9241 | configure-gcc | |
9242 | @[ -f ./gcc/Makefile ] || exit 0; \ | |
b40e3958 L |
9243 | r=`${PWD_COMMAND}`; export r; \ |
9244 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9245 | $(HOST_EXPORTS) \ |
b813574b | 9246 | for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \ |
2a4cbe27 NN |
9247 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9248 | done; \ | |
b813574b | 9249 | echo "Doing dvi in gcc" ; \ |
b00612cc | 9250 | (cd $(HOST_SUBDIR)/gcc && \ |
2a4cbe27 NN |
9251 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9252 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9253 | "RANLIB=$${RANLIB}" \ | |
9254 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 9255 | dvi) \ |
2a4cbe27 NN |
9256 | || exit 1 |
9257 | ||
b813574b | 9258 | @endif gcc |
2a4cbe27 | 9259 | |
6d389afc MS |
9260 | .PHONY: maybe-html-gcc html-gcc |
9261 | maybe-html-gcc: | |
9262 | @if gcc | |
9263 | maybe-html-gcc: html-gcc | |
9264 | ||
9265 | html-gcc: \ | |
9266 | configure-gcc | |
9267 | @[ -f ./gcc/Makefile ] || exit 0; \ | |
9268 | r=`${PWD_COMMAND}`; export r; \ | |
9269 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
9270 | $(HOST_EXPORTS) \ |
9271 | for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \ | |
9272 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
9273 | done; \ | |
9274 | echo "Doing html in gcc" ; \ | |
b00612cc | 9275 | (cd $(HOST_SUBDIR)/gcc && \ |
6d389afc MS |
9276 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9277 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9278 | "RANLIB=$${RANLIB}" \ | |
9279 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
9280 | html) \ | |
9281 | || exit 1 | |
9282 | ||
9283 | @endif gcc | |
9284 | ||
b813574b PB |
9285 | .PHONY: maybe-TAGS-gcc TAGS-gcc |
9286 | maybe-TAGS-gcc: | |
9287 | @if gcc | |
9288 | maybe-TAGS-gcc: TAGS-gcc | |
2a4cbe27 | 9289 | |
b813574b PB |
9290 | TAGS-gcc: \ |
9291 | configure-gcc | |
9292 | @[ -f ./gcc/Makefile ] || exit 0; \ | |
b40e3958 L |
9293 | r=`${PWD_COMMAND}`; export r; \ |
9294 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9295 | $(HOST_EXPORTS) \ |
b813574b | 9296 | for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \ |
2a4cbe27 NN |
9297 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9298 | done; \ | |
b813574b | 9299 | echo "Doing TAGS in gcc" ; \ |
b00612cc | 9300 | (cd $(HOST_SUBDIR)/gcc && \ |
2a4cbe27 NN |
9301 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9302 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9303 | "RANLIB=$${RANLIB}" \ | |
9304 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 9305 | TAGS) \ |
2a4cbe27 NN |
9306 | || exit 1 |
9307 | ||
b813574b | 9308 | @endif gcc |
2a4cbe27 | 9309 | |
b813574b PB |
9310 | .PHONY: maybe-install-info-gcc install-info-gcc |
9311 | maybe-install-info-gcc: | |
9312 | @if gcc | |
9313 | maybe-install-info-gcc: install-info-gcc | |
a2592b1b | 9314 | |
b813574b PB |
9315 | install-info-gcc: \ |
9316 | configure-gcc \ | |
9317 | info-gcc | |
9318 | @[ -f ./gcc/Makefile ] || exit 0; \ | |
a2592b1b DD |
9319 | r=`${PWD_COMMAND}`; export r; \ |
9320 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9321 | $(HOST_EXPORTS) \ |
b813574b | 9322 | for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \ |
a2592b1b DD |
9323 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9324 | done; \ | |
b813574b | 9325 | echo "Doing install-info in gcc" ; \ |
b00612cc | 9326 | (cd $(HOST_SUBDIR)/gcc && \ |
a2592b1b DD |
9327 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9328 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9329 | "RANLIB=$${RANLIB}" \ | |
9330 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 9331 | install-info) \ |
a2592b1b DD |
9332 | || exit 1 |
9333 | ||
b813574b | 9334 | @endif gcc |
a2592b1b | 9335 | |
b813574b PB |
9336 | .PHONY: maybe-installcheck-gcc installcheck-gcc |
9337 | maybe-installcheck-gcc: | |
9338 | @if gcc | |
9339 | maybe-installcheck-gcc: installcheck-gcc | |
2a4cbe27 | 9340 | |
b813574b PB |
9341 | installcheck-gcc: \ |
9342 | configure-gcc | |
9343 | @[ -f ./gcc/Makefile ] || exit 0; \ | |
4fa63067 NN |
9344 | r=`${PWD_COMMAND}`; export r; \ |
9345 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9346 | $(HOST_EXPORTS) \ |
b813574b | 9347 | for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \ |
4fa63067 NN |
9348 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9349 | done; \ | |
b813574b | 9350 | echo "Doing installcheck in gcc" ; \ |
b00612cc | 9351 | (cd $(HOST_SUBDIR)/gcc && \ |
4fa63067 NN |
9352 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9353 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9354 | "RANLIB=$${RANLIB}" \ | |
9355 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 9356 | installcheck) \ |
4fa63067 | 9357 | || exit 1 |
2a4cbe27 | 9358 | |
b813574b | 9359 | @endif gcc |
4fa63067 | 9360 | |
b813574b PB |
9361 | .PHONY: maybe-mostlyclean-gcc mostlyclean-gcc |
9362 | maybe-mostlyclean-gcc: | |
9363 | @if gcc | |
9364 | maybe-mostlyclean-gcc: mostlyclean-gcc | |
4fa63067 | 9365 | |
b813574b PB |
9366 | mostlyclean-gcc: |
9367 | @[ -f ./gcc/Makefile ] || exit 0; \ | |
b40e3958 L |
9368 | r=`${PWD_COMMAND}`; export r; \ |
9369 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9370 | $(HOST_EXPORTS) \ |
b813574b | 9371 | for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \ |
2a4cbe27 NN |
9372 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9373 | done; \ | |
b813574b | 9374 | echo "Doing mostlyclean in gcc" ; \ |
b00612cc | 9375 | (cd $(HOST_SUBDIR)/gcc && \ |
2a4cbe27 NN |
9376 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9377 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9378 | "RANLIB=$${RANLIB}" \ | |
9379 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 9380 | mostlyclean) \ |
2a4cbe27 NN |
9381 | || exit 1 |
9382 | ||
b813574b | 9383 | @endif gcc |
2a4cbe27 | 9384 | |
b813574b PB |
9385 | .PHONY: maybe-clean-gcc clean-gcc |
9386 | maybe-clean-gcc: | |
9387 | @if gcc | |
9388 | maybe-clean-gcc: clean-gcc | |
2a4cbe27 | 9389 | |
b813574b PB |
9390 | clean-gcc: |
9391 | @[ -f ./gcc/Makefile ] || exit 0; \ | |
b40e3958 L |
9392 | r=`${PWD_COMMAND}`; export r; \ |
9393 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9394 | $(HOST_EXPORTS) \ |
b813574b | 9395 | for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \ |
2a4cbe27 NN |
9396 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9397 | done; \ | |
b813574b | 9398 | echo "Doing clean in gcc" ; \ |
b00612cc | 9399 | (cd $(HOST_SUBDIR)/gcc && \ |
2a4cbe27 NN |
9400 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9401 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9402 | "RANLIB=$${RANLIB}" \ | |
9403 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 9404 | clean) \ |
2a4cbe27 NN |
9405 | || exit 1 |
9406 | ||
b813574b | 9407 | @endif gcc |
2a4cbe27 | 9408 | |
b813574b PB |
9409 | .PHONY: maybe-distclean-gcc distclean-gcc |
9410 | maybe-distclean-gcc: | |
9411 | @if gcc | |
9412 | maybe-distclean-gcc: distclean-gcc | |
2a4cbe27 | 9413 | |
b813574b PB |
9414 | distclean-gcc: |
9415 | @[ -f ./gcc/Makefile ] || exit 0; \ | |
b40e3958 L |
9416 | r=`${PWD_COMMAND}`; export r; \ |
9417 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9418 | $(HOST_EXPORTS) \ |
b813574b | 9419 | for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \ |
2a4cbe27 NN |
9420 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9421 | done; \ | |
b813574b | 9422 | echo "Doing distclean in gcc" ; \ |
b00612cc | 9423 | (cd $(HOST_SUBDIR)/gcc && \ |
2a4cbe27 NN |
9424 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9425 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9426 | "RANLIB=$${RANLIB}" \ | |
9427 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 9428 | distclean) \ |
2a4cbe27 NN |
9429 | || exit 1 |
9430 | ||
b813574b | 9431 | @endif gcc |
2a4cbe27 | 9432 | |
b813574b PB |
9433 | .PHONY: maybe-maintainer-clean-gcc maintainer-clean-gcc |
9434 | maybe-maintainer-clean-gcc: | |
9435 | @if gcc | |
9436 | maybe-maintainer-clean-gcc: maintainer-clean-gcc | |
2a4cbe27 | 9437 | |
b813574b PB |
9438 | maintainer-clean-gcc: |
9439 | @[ -f ./gcc/Makefile ] || exit 0; \ | |
b40e3958 L |
9440 | r=`${PWD_COMMAND}`; export r; \ |
9441 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9442 | $(HOST_EXPORTS) \ |
b813574b | 9443 | for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \ |
2a4cbe27 NN |
9444 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9445 | done; \ | |
b813574b | 9446 | echo "Doing maintainer-clean in gcc" ; \ |
b00612cc | 9447 | (cd $(HOST_SUBDIR)/gcc && \ |
2a4cbe27 NN |
9448 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9449 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9450 | "RANLIB=$${RANLIB}" \ | |
9451 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 9452 | maintainer-clean) \ |
2a4cbe27 NN |
9453 | || exit 1 |
9454 | ||
b813574b | 9455 | @endif gcc |
2a4cbe27 | 9456 | |
2a4cbe27 | 9457 | |
a7254363 | 9458 | |
b813574b PB |
9459 | .PHONY: configure-gawk maybe-configure-gawk |
9460 | maybe-configure-gawk: | |
9461 | @if gawk | |
9462 | maybe-configure-gawk: configure-gawk | |
a7254363 | 9463 | configure-gawk: |
b00612cc PB |
9464 | @test ! -f $(HOST_SUBDIR)/gawk/Makefile || exit 0; \ |
9465 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gawk ; \ | |
4fa63067 NN |
9466 | r=`${PWD_COMMAND}`; export r; \ |
9467 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9468 | $(HOST_EXPORTS) \ |
a7254363 PB |
9469 | echo Configuring in $(HOST_SUBDIR)/gawk; \ |
9470 | cd "$(HOST_SUBDIR)/gawk" || exit 1; \ | |
4fa63067 | 9471 | case $(srcdir) in \ |
b00612cc PB |
9472 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
9473 | *) topdir=`echo $(HOST_SUBDIR)/gawk/ | \ | |
9474 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 9475 | esac; \ |
b00612cc PB |
9476 | srcdiroption="--srcdir=$${topdir}/gawk"; \ |
9477 | libsrcdir="$$s/gawk"; \ | |
4fa63067 | 9478 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 9479 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
4fa63067 | 9480 | || exit 1 |
b813574b | 9481 | @endif gawk |
4fa63067 | 9482 | |
a7254363 PB |
9483 | |
9484 | ||
b813574b PB |
9485 | .PHONY: all-gawk maybe-all-gawk |
9486 | maybe-all-gawk: | |
9487 | @if gawk | |
d27cc32e | 9488 | TARGET-gawk=all |
b813574b PB |
9489 | maybe-all-gawk: all-gawk |
9490 | all-gawk: configure-gawk | |
4fa63067 NN |
9491 | @r=`${PWD_COMMAND}`; export r; \ |
9492 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9493 | $(HOST_EXPORTS) \ |
b00612cc PB |
9494 | (cd $(HOST_SUBDIR)/gawk && \ |
9495 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-gawk)) | |
b813574b | 9496 | @endif gawk |
4fa63067 | 9497 | |
a7254363 | 9498 | |
b813574b PB |
9499 | .PHONY: check-gawk maybe-check-gawk |
9500 | maybe-check-gawk: | |
9501 | @if gawk | |
9502 | maybe-check-gawk: check-gawk | |
4fa63067 | 9503 | |
b813574b | 9504 | check-gawk: |
4fa63067 NN |
9505 | @r=`${PWD_COMMAND}`; export r; \ |
9506 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9507 | $(HOST_EXPORTS) \ |
b00612cc PB |
9508 | (cd $(HOST_SUBDIR)/gawk && \ |
9509 | $(MAKE) $(FLAGS_TO_PASS) check) | |
4fa63067 | 9510 | |
b813574b | 9511 | @endif gawk |
4fa63067 | 9512 | |
b813574b PB |
9513 | .PHONY: install-gawk maybe-install-gawk |
9514 | maybe-install-gawk: | |
9515 | @if gawk | |
9516 | maybe-install-gawk: install-gawk | |
4fa63067 | 9517 | |
b813574b | 9518 | install-gawk: installdirs |
4fa63067 NN |
9519 | @r=`${PWD_COMMAND}`; export r; \ |
9520 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9521 | $(HOST_EXPORTS) \ |
b00612cc | 9522 | (cd $(HOST_SUBDIR)/gawk && \ |
2da12f12 | 9523 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 9524 | |
b813574b | 9525 | @endif gawk |
4fa63067 NN |
9526 | |
9527 | # Other targets (info, dvi, etc.) | |
9528 | ||
b813574b PB |
9529 | .PHONY: maybe-info-gawk info-gawk |
9530 | maybe-info-gawk: | |
9531 | @if gawk | |
9532 | maybe-info-gawk: info-gawk | |
4fa63067 | 9533 | |
b813574b PB |
9534 | info-gawk: \ |
9535 | configure-gawk | |
9536 | @[ -f ./gawk/Makefile ] || exit 0; \ | |
b40e3958 L |
9537 | r=`${PWD_COMMAND}`; export r; \ |
9538 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9539 | $(HOST_EXPORTS) \ |
b813574b | 9540 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
9541 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9542 | done; \ | |
b813574b | 9543 | echo "Doing info in gawk" ; \ |
b00612cc | 9544 | (cd $(HOST_SUBDIR)/gawk && \ |
2a4cbe27 NN |
9545 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9546 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9547 | "RANLIB=$${RANLIB}" \ | |
9548 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 9549 | info) \ |
2a4cbe27 NN |
9550 | || exit 1 |
9551 | ||
b813574b | 9552 | @endif gawk |
2a4cbe27 | 9553 | |
b813574b PB |
9554 | .PHONY: maybe-dvi-gawk dvi-gawk |
9555 | maybe-dvi-gawk: | |
9556 | @if gawk | |
9557 | maybe-dvi-gawk: dvi-gawk | |
2a4cbe27 | 9558 | |
b813574b PB |
9559 | dvi-gawk: \ |
9560 | configure-gawk | |
9561 | @[ -f ./gawk/Makefile ] || exit 0; \ | |
b40e3958 L |
9562 | r=`${PWD_COMMAND}`; export r; \ |
9563 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9564 | $(HOST_EXPORTS) \ |
b813574b | 9565 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
9566 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9567 | done; \ | |
b813574b | 9568 | echo "Doing dvi in gawk" ; \ |
b00612cc | 9569 | (cd $(HOST_SUBDIR)/gawk && \ |
2a4cbe27 NN |
9570 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9571 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9572 | "RANLIB=$${RANLIB}" \ | |
9573 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 9574 | dvi) \ |
2a4cbe27 NN |
9575 | || exit 1 |
9576 | ||
b813574b | 9577 | @endif gawk |
2a4cbe27 | 9578 | |
6d389afc MS |
9579 | .PHONY: maybe-html-gawk html-gawk |
9580 | maybe-html-gawk: | |
9581 | @if gawk | |
9582 | maybe-html-gawk: html-gawk | |
9583 | ||
9584 | html-gawk: \ | |
9585 | configure-gawk | |
9586 | @[ -f ./gawk/Makefile ] || exit 0; \ | |
9587 | r=`${PWD_COMMAND}`; export r; \ | |
9588 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
9589 | $(HOST_EXPORTS) \ |
9590 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
9591 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
9592 | done; \ | |
9593 | echo "Doing html in gawk" ; \ | |
b00612cc | 9594 | (cd $(HOST_SUBDIR)/gawk && \ |
6d389afc MS |
9595 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9596 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9597 | "RANLIB=$${RANLIB}" \ | |
9598 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
9599 | html) \ | |
9600 | || exit 1 | |
9601 | ||
9602 | @endif gawk | |
9603 | ||
b813574b PB |
9604 | .PHONY: maybe-TAGS-gawk TAGS-gawk |
9605 | maybe-TAGS-gawk: | |
9606 | @if gawk | |
9607 | maybe-TAGS-gawk: TAGS-gawk | |
2a4cbe27 | 9608 | |
b813574b PB |
9609 | TAGS-gawk: \ |
9610 | configure-gawk | |
9611 | @[ -f ./gawk/Makefile ] || exit 0; \ | |
b40e3958 L |
9612 | r=`${PWD_COMMAND}`; export r; \ |
9613 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9614 | $(HOST_EXPORTS) \ |
b813574b | 9615 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
9616 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9617 | done; \ | |
b813574b | 9618 | echo "Doing TAGS in gawk" ; \ |
b00612cc | 9619 | (cd $(HOST_SUBDIR)/gawk && \ |
2a4cbe27 NN |
9620 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9621 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9622 | "RANLIB=$${RANLIB}" \ | |
9623 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 9624 | TAGS) \ |
2a4cbe27 NN |
9625 | || exit 1 |
9626 | ||
b813574b | 9627 | @endif gawk |
2a4cbe27 | 9628 | |
b813574b PB |
9629 | .PHONY: maybe-install-info-gawk install-info-gawk |
9630 | maybe-install-info-gawk: | |
9631 | @if gawk | |
9632 | maybe-install-info-gawk: install-info-gawk | |
2a4cbe27 | 9633 | |
b813574b PB |
9634 | install-info-gawk: \ |
9635 | configure-gawk \ | |
9636 | info-gawk | |
9637 | @[ -f ./gawk/Makefile ] || exit 0; \ | |
b40e3958 L |
9638 | r=`${PWD_COMMAND}`; export r; \ |
9639 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9640 | $(HOST_EXPORTS) \ |
b813574b | 9641 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
9642 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9643 | done; \ | |
b813574b | 9644 | echo "Doing install-info in gawk" ; \ |
b00612cc | 9645 | (cd $(HOST_SUBDIR)/gawk && \ |
2a4cbe27 NN |
9646 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9647 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9648 | "RANLIB=$${RANLIB}" \ | |
9649 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 9650 | install-info) \ |
2a4cbe27 NN |
9651 | || exit 1 |
9652 | ||
b813574b | 9653 | @endif gawk |
2a4cbe27 | 9654 | |
b813574b PB |
9655 | .PHONY: maybe-installcheck-gawk installcheck-gawk |
9656 | maybe-installcheck-gawk: | |
9657 | @if gawk | |
9658 | maybe-installcheck-gawk: installcheck-gawk | |
2a4cbe27 | 9659 | |
b813574b PB |
9660 | installcheck-gawk: \ |
9661 | configure-gawk | |
9662 | @[ -f ./gawk/Makefile ] || exit 0; \ | |
b40e3958 L |
9663 | r=`${PWD_COMMAND}`; export r; \ |
9664 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
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 | 9669 | echo "Doing installcheck in gawk" ; \ |
b00612cc | 9670 | (cd $(HOST_SUBDIR)/gawk && \ |
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 gawk |
2a4cbe27 | 9679 | |
b813574b PB |
9680 | .PHONY: maybe-mostlyclean-gawk mostlyclean-gawk |
9681 | maybe-mostlyclean-gawk: | |
9682 | @if gawk | |
9683 | maybe-mostlyclean-gawk: mostlyclean-gawk | |
2a4cbe27 | 9684 | |
b813574b PB |
9685 | mostlyclean-gawk: |
9686 | @[ -f ./gawk/Makefile ] || exit 0; \ | |
b40e3958 L |
9687 | r=`${PWD_COMMAND}`; export r; \ |
9688 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9689 | $(HOST_EXPORTS) \ |
b813574b | 9690 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
9691 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9692 | done; \ | |
b813574b | 9693 | echo "Doing mostlyclean in gawk" ; \ |
b00612cc | 9694 | (cd $(HOST_SUBDIR)/gawk && \ |
2a4cbe27 NN |
9695 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9696 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9697 | "RANLIB=$${RANLIB}" \ | |
9698 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 9699 | mostlyclean) \ |
2a4cbe27 NN |
9700 | || exit 1 |
9701 | ||
b813574b | 9702 | @endif gawk |
2a4cbe27 | 9703 | |
b813574b PB |
9704 | .PHONY: maybe-clean-gawk clean-gawk |
9705 | maybe-clean-gawk: | |
9706 | @if gawk | |
9707 | maybe-clean-gawk: clean-gawk | |
2a4cbe27 | 9708 | |
b813574b PB |
9709 | clean-gawk: |
9710 | @[ -f ./gawk/Makefile ] || exit 0; \ | |
b40e3958 L |
9711 | r=`${PWD_COMMAND}`; export r; \ |
9712 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9713 | $(HOST_EXPORTS) \ |
b813574b | 9714 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
9715 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9716 | done; \ | |
b813574b | 9717 | echo "Doing clean in gawk" ; \ |
b00612cc | 9718 | (cd $(HOST_SUBDIR)/gawk && \ |
2a4cbe27 NN |
9719 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9720 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9721 | "RANLIB=$${RANLIB}" \ | |
9722 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 9723 | clean) \ |
2a4cbe27 NN |
9724 | || exit 1 |
9725 | ||
b813574b | 9726 | @endif gawk |
2a4cbe27 | 9727 | |
b813574b PB |
9728 | .PHONY: maybe-distclean-gawk distclean-gawk |
9729 | maybe-distclean-gawk: | |
9730 | @if gawk | |
9731 | maybe-distclean-gawk: distclean-gawk | |
2a4cbe27 | 9732 | |
b813574b PB |
9733 | distclean-gawk: |
9734 | @[ -f ./gawk/Makefile ] || exit 0; \ | |
b40e3958 L |
9735 | r=`${PWD_COMMAND}`; export r; \ |
9736 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9737 | $(HOST_EXPORTS) \ |
b813574b | 9738 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
9739 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9740 | done; \ | |
b813574b | 9741 | echo "Doing distclean in gawk" ; \ |
b00612cc | 9742 | (cd $(HOST_SUBDIR)/gawk && \ |
2a4cbe27 NN |
9743 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9744 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9745 | "RANLIB=$${RANLIB}" \ | |
9746 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 9747 | distclean) \ |
2a4cbe27 NN |
9748 | || exit 1 |
9749 | ||
b813574b | 9750 | @endif gawk |
2a4cbe27 | 9751 | |
b813574b PB |
9752 | .PHONY: maybe-maintainer-clean-gawk maintainer-clean-gawk |
9753 | maybe-maintainer-clean-gawk: | |
9754 | @if gawk | |
9755 | maybe-maintainer-clean-gawk: maintainer-clean-gawk | |
2a4cbe27 | 9756 | |
b813574b PB |
9757 | maintainer-clean-gawk: |
9758 | @[ -f ./gawk/Makefile ] || exit 0; \ | |
b40e3958 L |
9759 | r=`${PWD_COMMAND}`; export r; \ |
9760 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9761 | $(HOST_EXPORTS) \ |
b813574b | 9762 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
9763 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9764 | done; \ | |
b813574b | 9765 | echo "Doing maintainer-clean in gawk" ; \ |
b00612cc | 9766 | (cd $(HOST_SUBDIR)/gawk && \ |
2a4cbe27 NN |
9767 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9768 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9769 | "RANLIB=$${RANLIB}" \ | |
9770 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 9771 | maintainer-clean) \ |
2a4cbe27 NN |
9772 | || exit 1 |
9773 | ||
b813574b | 9774 | @endif gawk |
2a4cbe27 | 9775 | |
2a4cbe27 | 9776 | |
a7254363 | 9777 | |
b813574b PB |
9778 | .PHONY: configure-gettext maybe-configure-gettext |
9779 | maybe-configure-gettext: | |
9780 | @if gettext | |
9781 | maybe-configure-gettext: configure-gettext | |
a7254363 | 9782 | configure-gettext: |
b00612cc PB |
9783 | @test ! -f $(HOST_SUBDIR)/gettext/Makefile || exit 0; \ |
9784 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gettext ; \ | |
4fa63067 NN |
9785 | r=`${PWD_COMMAND}`; export r; \ |
9786 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9787 | $(HOST_EXPORTS) \ |
a7254363 PB |
9788 | echo Configuring in $(HOST_SUBDIR)/gettext; \ |
9789 | cd "$(HOST_SUBDIR)/gettext" || exit 1; \ | |
4fa63067 | 9790 | case $(srcdir) in \ |
b00612cc PB |
9791 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
9792 | *) topdir=`echo $(HOST_SUBDIR)/gettext/ | \ | |
9793 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 9794 | esac; \ |
b00612cc PB |
9795 | srcdiroption="--srcdir=$${topdir}/gettext"; \ |
9796 | libsrcdir="$$s/gettext"; \ | |
4fa63067 | 9797 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 9798 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
4fa63067 | 9799 | || exit 1 |
b813574b | 9800 | @endif gettext |
4fa63067 | 9801 | |
a7254363 PB |
9802 | |
9803 | ||
b813574b PB |
9804 | .PHONY: all-gettext maybe-all-gettext |
9805 | maybe-all-gettext: | |
9806 | @if gettext | |
d27cc32e | 9807 | TARGET-gettext=all |
b813574b PB |
9808 | maybe-all-gettext: all-gettext |
9809 | all-gettext: configure-gettext | |
4fa63067 NN |
9810 | @r=`${PWD_COMMAND}`; export r; \ |
9811 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9812 | $(HOST_EXPORTS) \ |
b00612cc PB |
9813 | (cd $(HOST_SUBDIR)/gettext && \ |
9814 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-gettext)) | |
b813574b | 9815 | @endif gettext |
4fa63067 | 9816 | |
a7254363 | 9817 | |
b813574b PB |
9818 | .PHONY: check-gettext maybe-check-gettext |
9819 | maybe-check-gettext: | |
9820 | @if gettext | |
9821 | maybe-check-gettext: check-gettext | |
4fa63067 | 9822 | |
b813574b | 9823 | check-gettext: |
4fa63067 NN |
9824 | @r=`${PWD_COMMAND}`; export r; \ |
9825 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9826 | $(HOST_EXPORTS) \ |
b00612cc PB |
9827 | (cd $(HOST_SUBDIR)/gettext && \ |
9828 | $(MAKE) $(FLAGS_TO_PASS) check) | |
4fa63067 | 9829 | |
b813574b | 9830 | @endif gettext |
4fa63067 | 9831 | |
b813574b PB |
9832 | .PHONY: install-gettext maybe-install-gettext |
9833 | maybe-install-gettext: | |
9834 | @if gettext | |
9835 | maybe-install-gettext: install-gettext | |
4fa63067 | 9836 | |
b813574b | 9837 | install-gettext: installdirs |
4fa63067 NN |
9838 | @r=`${PWD_COMMAND}`; export r; \ |
9839 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9840 | $(HOST_EXPORTS) \ |
b00612cc | 9841 | (cd $(HOST_SUBDIR)/gettext && \ |
2da12f12 | 9842 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 9843 | |
b813574b | 9844 | @endif gettext |
4fa63067 NN |
9845 | |
9846 | # Other targets (info, dvi, etc.) | |
9847 | ||
b813574b PB |
9848 | .PHONY: maybe-info-gettext info-gettext |
9849 | maybe-info-gettext: | |
9850 | @if gettext | |
9851 | maybe-info-gettext: info-gettext | |
4fa63067 | 9852 | |
b813574b PB |
9853 | info-gettext: \ |
9854 | configure-gettext | |
9855 | @[ -f ./gettext/Makefile ] || exit 0; \ | |
b40e3958 L |
9856 | r=`${PWD_COMMAND}`; export r; \ |
9857 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9858 | $(HOST_EXPORTS) \ |
b813574b | 9859 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
9860 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9861 | done; \ | |
b813574b | 9862 | echo "Doing info in gettext" ; \ |
b00612cc | 9863 | (cd $(HOST_SUBDIR)/gettext && \ |
2a4cbe27 NN |
9864 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9865 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9866 | "RANLIB=$${RANLIB}" \ | |
9867 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 9868 | info) \ |
2a4cbe27 NN |
9869 | || exit 1 |
9870 | ||
b813574b | 9871 | @endif gettext |
2a4cbe27 | 9872 | |
b813574b PB |
9873 | .PHONY: maybe-dvi-gettext dvi-gettext |
9874 | maybe-dvi-gettext: | |
9875 | @if gettext | |
9876 | maybe-dvi-gettext: dvi-gettext | |
2a4cbe27 | 9877 | |
b813574b PB |
9878 | dvi-gettext: \ |
9879 | configure-gettext | |
9880 | @[ -f ./gettext/Makefile ] || exit 0; \ | |
b40e3958 L |
9881 | r=`${PWD_COMMAND}`; export r; \ |
9882 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9883 | $(HOST_EXPORTS) \ |
b813574b | 9884 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
9885 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9886 | done; \ | |
b813574b | 9887 | echo "Doing dvi in gettext" ; \ |
b00612cc | 9888 | (cd $(HOST_SUBDIR)/gettext && \ |
2a4cbe27 NN |
9889 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9890 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9891 | "RANLIB=$${RANLIB}" \ | |
9892 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 9893 | dvi) \ |
2a4cbe27 NN |
9894 | || exit 1 |
9895 | ||
b813574b | 9896 | @endif gettext |
2a4cbe27 | 9897 | |
6d389afc MS |
9898 | .PHONY: maybe-html-gettext html-gettext |
9899 | maybe-html-gettext: | |
9900 | @if gettext | |
9901 | maybe-html-gettext: html-gettext | |
9902 | ||
9903 | html-gettext: \ | |
9904 | configure-gettext | |
9905 | @[ -f ./gettext/Makefile ] || exit 0; \ | |
9906 | r=`${PWD_COMMAND}`; export r; \ | |
9907 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
9908 | $(HOST_EXPORTS) \ |
9909 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
9910 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
9911 | done; \ | |
9912 | echo "Doing html in gettext" ; \ | |
b00612cc | 9913 | (cd $(HOST_SUBDIR)/gettext && \ |
6d389afc MS |
9914 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9915 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9916 | "RANLIB=$${RANLIB}" \ | |
9917 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
9918 | html) \ | |
9919 | || exit 1 | |
9920 | ||
9921 | @endif gettext | |
9922 | ||
b813574b PB |
9923 | .PHONY: maybe-TAGS-gettext TAGS-gettext |
9924 | maybe-TAGS-gettext: | |
9925 | @if gettext | |
9926 | maybe-TAGS-gettext: TAGS-gettext | |
2a4cbe27 | 9927 | |
b813574b PB |
9928 | TAGS-gettext: \ |
9929 | configure-gettext | |
9930 | @[ -f ./gettext/Makefile ] || exit 0; \ | |
b40e3958 L |
9931 | r=`${PWD_COMMAND}`; export r; \ |
9932 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9933 | $(HOST_EXPORTS) \ |
b813574b | 9934 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
9935 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9936 | done; \ | |
b813574b | 9937 | echo "Doing TAGS in gettext" ; \ |
b00612cc | 9938 | (cd $(HOST_SUBDIR)/gettext && \ |
2a4cbe27 NN |
9939 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9940 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9941 | "RANLIB=$${RANLIB}" \ | |
9942 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 9943 | TAGS) \ |
2a4cbe27 NN |
9944 | || exit 1 |
9945 | ||
b813574b | 9946 | @endif gettext |
2a4cbe27 | 9947 | |
b813574b PB |
9948 | .PHONY: maybe-install-info-gettext install-info-gettext |
9949 | maybe-install-info-gettext: | |
9950 | @if gettext | |
9951 | maybe-install-info-gettext: install-info-gettext | |
9952 | ||
9953 | install-info-gettext: \ | |
9954 | configure-gettext \ | |
9955 | info-gettext | |
9956 | @[ -f ./gettext/Makefile ] || exit 0; \ | |
b40e3958 L |
9957 | r=`${PWD_COMMAND}`; export r; \ |
9958 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9959 | $(HOST_EXPORTS) \ |
b813574b | 9960 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
9961 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9962 | done; \ | |
b813574b | 9963 | echo "Doing install-info in gettext" ; \ |
b00612cc | 9964 | (cd $(HOST_SUBDIR)/gettext && \ |
2a4cbe27 NN |
9965 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9966 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9967 | "RANLIB=$${RANLIB}" \ | |
9968 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 9969 | install-info) \ |
2a4cbe27 NN |
9970 | || exit 1 |
9971 | ||
b813574b | 9972 | @endif gettext |
2a4cbe27 | 9973 | |
b813574b PB |
9974 | .PHONY: maybe-installcheck-gettext installcheck-gettext |
9975 | maybe-installcheck-gettext: | |
9976 | @if gettext | |
9977 | maybe-installcheck-gettext: installcheck-gettext | |
2a4cbe27 | 9978 | |
b813574b PB |
9979 | installcheck-gettext: \ |
9980 | configure-gettext | |
9981 | @[ -f ./gettext/Makefile ] || exit 0; \ | |
b40e3958 L |
9982 | r=`${PWD_COMMAND}`; export r; \ |
9983 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9984 | $(HOST_EXPORTS) \ |
b813574b | 9985 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
9986 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9987 | done; \ | |
b813574b | 9988 | echo "Doing installcheck in gettext" ; \ |
b00612cc | 9989 | (cd $(HOST_SUBDIR)/gettext && \ |
2a4cbe27 NN |
9990 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9991 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9992 | "RANLIB=$${RANLIB}" \ | |
9993 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 9994 | installcheck) \ |
2a4cbe27 NN |
9995 | || exit 1 |
9996 | ||
b813574b | 9997 | @endif gettext |
2a4cbe27 | 9998 | |
b813574b PB |
9999 | .PHONY: maybe-mostlyclean-gettext mostlyclean-gettext |
10000 | maybe-mostlyclean-gettext: | |
10001 | @if gettext | |
10002 | maybe-mostlyclean-gettext: mostlyclean-gettext | |
2a4cbe27 | 10003 | |
b813574b PB |
10004 | mostlyclean-gettext: |
10005 | @[ -f ./gettext/Makefile ] || exit 0; \ | |
b40e3958 L |
10006 | r=`${PWD_COMMAND}`; export r; \ |
10007 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10008 | $(HOST_EXPORTS) \ |
b813574b | 10009 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
10010 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10011 | done; \ | |
b813574b | 10012 | echo "Doing mostlyclean in gettext" ; \ |
b00612cc | 10013 | (cd $(HOST_SUBDIR)/gettext && \ |
2a4cbe27 NN |
10014 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10015 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10016 | "RANLIB=$${RANLIB}" \ | |
10017 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 10018 | mostlyclean) \ |
2a4cbe27 NN |
10019 | || exit 1 |
10020 | ||
b813574b | 10021 | @endif gettext |
2a4cbe27 | 10022 | |
b813574b PB |
10023 | .PHONY: maybe-clean-gettext clean-gettext |
10024 | maybe-clean-gettext: | |
10025 | @if gettext | |
10026 | maybe-clean-gettext: clean-gettext | |
2a4cbe27 | 10027 | |
b813574b PB |
10028 | clean-gettext: |
10029 | @[ -f ./gettext/Makefile ] || exit 0; \ | |
b40e3958 L |
10030 | r=`${PWD_COMMAND}`; export r; \ |
10031 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10032 | $(HOST_EXPORTS) \ |
b813574b | 10033 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
10034 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10035 | done; \ | |
b813574b | 10036 | echo "Doing clean in gettext" ; \ |
b00612cc | 10037 | (cd $(HOST_SUBDIR)/gettext && \ |
2a4cbe27 NN |
10038 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10039 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10040 | "RANLIB=$${RANLIB}" \ | |
10041 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 10042 | clean) \ |
2a4cbe27 NN |
10043 | || exit 1 |
10044 | ||
b813574b | 10045 | @endif gettext |
2a4cbe27 | 10046 | |
b813574b PB |
10047 | .PHONY: maybe-distclean-gettext distclean-gettext |
10048 | maybe-distclean-gettext: | |
10049 | @if gettext | |
10050 | maybe-distclean-gettext: distclean-gettext | |
2a4cbe27 | 10051 | |
b813574b PB |
10052 | distclean-gettext: |
10053 | @[ -f ./gettext/Makefile ] || exit 0; \ | |
b40e3958 L |
10054 | r=`${PWD_COMMAND}`; export r; \ |
10055 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10056 | $(HOST_EXPORTS) \ |
b813574b | 10057 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
10058 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10059 | done; \ | |
b813574b | 10060 | echo "Doing distclean in gettext" ; \ |
b00612cc | 10061 | (cd $(HOST_SUBDIR)/gettext && \ |
2a4cbe27 NN |
10062 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10063 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10064 | "RANLIB=$${RANLIB}" \ | |
10065 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 10066 | distclean) \ |
2a4cbe27 NN |
10067 | || exit 1 |
10068 | ||
b813574b | 10069 | @endif gettext |
2a4cbe27 | 10070 | |
b813574b PB |
10071 | .PHONY: maybe-maintainer-clean-gettext maintainer-clean-gettext |
10072 | maybe-maintainer-clean-gettext: | |
10073 | @if gettext | |
10074 | maybe-maintainer-clean-gettext: maintainer-clean-gettext | |
2a4cbe27 | 10075 | |
b813574b PB |
10076 | maintainer-clean-gettext: |
10077 | @[ -f ./gettext/Makefile ] || exit 0; \ | |
b40e3958 L |
10078 | r=`${PWD_COMMAND}`; export r; \ |
10079 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10080 | $(HOST_EXPORTS) \ |
b813574b | 10081 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
10082 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10083 | done; \ | |
b813574b | 10084 | echo "Doing maintainer-clean in gettext" ; \ |
b00612cc | 10085 | (cd $(HOST_SUBDIR)/gettext && \ |
2a4cbe27 NN |
10086 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10087 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10088 | "RANLIB=$${RANLIB}" \ | |
10089 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 10090 | maintainer-clean) \ |
4fa63067 NN |
10091 | || exit 1 |
10092 | ||
b813574b | 10093 | @endif gettext |
4fa63067 NN |
10094 | |
10095 | ||
a7254363 | 10096 | |
b813574b PB |
10097 | .PHONY: configure-gnuserv maybe-configure-gnuserv |
10098 | maybe-configure-gnuserv: | |
10099 | @if gnuserv | |
10100 | maybe-configure-gnuserv: configure-gnuserv | |
a7254363 | 10101 | configure-gnuserv: |
b00612cc PB |
10102 | @test ! -f $(HOST_SUBDIR)/gnuserv/Makefile || exit 0; \ |
10103 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gnuserv ; \ | |
4fa63067 NN |
10104 | r=`${PWD_COMMAND}`; export r; \ |
10105 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10106 | $(HOST_EXPORTS) \ |
a7254363 PB |
10107 | echo Configuring in $(HOST_SUBDIR)/gnuserv; \ |
10108 | cd "$(HOST_SUBDIR)/gnuserv" || exit 1; \ | |
4fa63067 | 10109 | case $(srcdir) in \ |
b00612cc PB |
10110 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
10111 | *) topdir=`echo $(HOST_SUBDIR)/gnuserv/ | \ | |
10112 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 10113 | esac; \ |
b00612cc PB |
10114 | srcdiroption="--srcdir=$${topdir}/gnuserv"; \ |
10115 | libsrcdir="$$s/gnuserv"; \ | |
4fa63067 | 10116 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 10117 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
2a4cbe27 | 10118 | || exit 1 |
b813574b | 10119 | @endif gnuserv |
2a4cbe27 | 10120 | |
a7254363 PB |
10121 | |
10122 | ||
b813574b PB |
10123 | .PHONY: all-gnuserv maybe-all-gnuserv |
10124 | maybe-all-gnuserv: | |
10125 | @if gnuserv | |
d27cc32e | 10126 | TARGET-gnuserv=all |
b813574b PB |
10127 | maybe-all-gnuserv: all-gnuserv |
10128 | all-gnuserv: configure-gnuserv | |
4fa63067 NN |
10129 | @r=`${PWD_COMMAND}`; export r; \ |
10130 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10131 | $(HOST_EXPORTS) \ |
b00612cc PB |
10132 | (cd $(HOST_SUBDIR)/gnuserv && \ |
10133 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-gnuserv)) | |
b813574b | 10134 | @endif gnuserv |
2a4cbe27 | 10135 | |
a7254363 | 10136 | |
b813574b PB |
10137 | .PHONY: check-gnuserv maybe-check-gnuserv |
10138 | maybe-check-gnuserv: | |
10139 | @if gnuserv | |
10140 | maybe-check-gnuserv: check-gnuserv | |
2a4cbe27 | 10141 | |
b813574b | 10142 | check-gnuserv: |
4fa63067 | 10143 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 10144 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 10145 | $(HOST_EXPORTS) \ |
b00612cc PB |
10146 | (cd $(HOST_SUBDIR)/gnuserv && \ |
10147 | $(MAKE) $(FLAGS_TO_PASS) check) | |
2a4cbe27 | 10148 | |
b813574b | 10149 | @endif gnuserv |
2a4cbe27 | 10150 | |
b813574b PB |
10151 | .PHONY: install-gnuserv maybe-install-gnuserv |
10152 | maybe-install-gnuserv: | |
10153 | @if gnuserv | |
10154 | maybe-install-gnuserv: install-gnuserv | |
2a4cbe27 | 10155 | |
b813574b | 10156 | install-gnuserv: installdirs |
4fa63067 | 10157 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 10158 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 10159 | $(HOST_EXPORTS) \ |
b00612cc | 10160 | (cd $(HOST_SUBDIR)/gnuserv && \ |
2da12f12 | 10161 | $(MAKE) $(FLAGS_TO_PASS) install) |
2a4cbe27 | 10162 | |
b813574b | 10163 | @endif gnuserv |
2a4cbe27 | 10164 | |
4fa63067 | 10165 | # Other targets (info, dvi, etc.) |
2a4cbe27 | 10166 | |
b813574b PB |
10167 | .PHONY: maybe-info-gnuserv info-gnuserv |
10168 | maybe-info-gnuserv: | |
10169 | @if gnuserv | |
10170 | maybe-info-gnuserv: info-gnuserv | |
4fa63067 | 10171 | |
b813574b PB |
10172 | info-gnuserv: \ |
10173 | configure-gnuserv | |
10174 | @[ -f ./gnuserv/Makefile ] || exit 0; \ | |
b40e3958 L |
10175 | r=`${PWD_COMMAND}`; export r; \ |
10176 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10177 | $(HOST_EXPORTS) \ |
b813574b | 10178 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
10179 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10180 | done; \ | |
b813574b | 10181 | echo "Doing info in gnuserv" ; \ |
b00612cc | 10182 | (cd $(HOST_SUBDIR)/gnuserv && \ |
2a4cbe27 NN |
10183 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10184 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10185 | "RANLIB=$${RANLIB}" \ | |
10186 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 10187 | info) \ |
2a4cbe27 NN |
10188 | || exit 1 |
10189 | ||
b813574b | 10190 | @endif gnuserv |
2a4cbe27 | 10191 | |
b813574b PB |
10192 | .PHONY: maybe-dvi-gnuserv dvi-gnuserv |
10193 | maybe-dvi-gnuserv: | |
10194 | @if gnuserv | |
10195 | maybe-dvi-gnuserv: dvi-gnuserv | |
2a4cbe27 | 10196 | |
b813574b PB |
10197 | dvi-gnuserv: \ |
10198 | configure-gnuserv | |
10199 | @[ -f ./gnuserv/Makefile ] || exit 0; \ | |
b40e3958 L |
10200 | r=`${PWD_COMMAND}`; export r; \ |
10201 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10202 | $(HOST_EXPORTS) \ |
b813574b | 10203 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
10204 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10205 | done; \ | |
b813574b | 10206 | echo "Doing dvi in gnuserv" ; \ |
b00612cc | 10207 | (cd $(HOST_SUBDIR)/gnuserv && \ |
2a4cbe27 NN |
10208 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10209 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10210 | "RANLIB=$${RANLIB}" \ | |
10211 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 10212 | dvi) \ |
2a4cbe27 NN |
10213 | || exit 1 |
10214 | ||
b813574b | 10215 | @endif gnuserv |
2a4cbe27 | 10216 | |
6d389afc MS |
10217 | .PHONY: maybe-html-gnuserv html-gnuserv |
10218 | maybe-html-gnuserv: | |
10219 | @if gnuserv | |
10220 | maybe-html-gnuserv: html-gnuserv | |
10221 | ||
10222 | html-gnuserv: \ | |
10223 | configure-gnuserv | |
10224 | @[ -f ./gnuserv/Makefile ] || exit 0; \ | |
10225 | r=`${PWD_COMMAND}`; export r; \ | |
10226 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
10227 | $(HOST_EXPORTS) \ |
10228 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
10229 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
10230 | done; \ | |
10231 | echo "Doing html in gnuserv" ; \ | |
b00612cc | 10232 | (cd $(HOST_SUBDIR)/gnuserv && \ |
6d389afc MS |
10233 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10234 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10235 | "RANLIB=$${RANLIB}" \ | |
10236 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
10237 | html) \ | |
10238 | || exit 1 | |
10239 | ||
10240 | @endif gnuserv | |
10241 | ||
b813574b PB |
10242 | .PHONY: maybe-TAGS-gnuserv TAGS-gnuserv |
10243 | maybe-TAGS-gnuserv: | |
10244 | @if gnuserv | |
10245 | maybe-TAGS-gnuserv: TAGS-gnuserv | |
2a4cbe27 | 10246 | |
b813574b PB |
10247 | TAGS-gnuserv: \ |
10248 | configure-gnuserv | |
10249 | @[ -f ./gnuserv/Makefile ] || exit 0; \ | |
b40e3958 L |
10250 | r=`${PWD_COMMAND}`; export r; \ |
10251 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10252 | $(HOST_EXPORTS) \ |
b813574b | 10253 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
10254 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10255 | done; \ | |
b813574b | 10256 | echo "Doing TAGS in gnuserv" ; \ |
b00612cc | 10257 | (cd $(HOST_SUBDIR)/gnuserv && \ |
2a4cbe27 NN |
10258 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10259 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10260 | "RANLIB=$${RANLIB}" \ | |
10261 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 10262 | TAGS) \ |
2a4cbe27 NN |
10263 | || exit 1 |
10264 | ||
b813574b | 10265 | @endif gnuserv |
2a4cbe27 | 10266 | |
b813574b PB |
10267 | .PHONY: maybe-install-info-gnuserv install-info-gnuserv |
10268 | maybe-install-info-gnuserv: | |
10269 | @if gnuserv | |
10270 | maybe-install-info-gnuserv: install-info-gnuserv | |
2a4cbe27 | 10271 | |
b813574b PB |
10272 | install-info-gnuserv: \ |
10273 | configure-gnuserv \ | |
10274 | info-gnuserv | |
10275 | @[ -f ./gnuserv/Makefile ] || exit 0; \ | |
b40e3958 L |
10276 | r=`${PWD_COMMAND}`; export r; \ |
10277 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10278 | $(HOST_EXPORTS) \ |
b813574b | 10279 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
10280 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10281 | done; \ | |
b813574b | 10282 | echo "Doing install-info in gnuserv" ; \ |
b00612cc | 10283 | (cd $(HOST_SUBDIR)/gnuserv && \ |
2a4cbe27 NN |
10284 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10285 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10286 | "RANLIB=$${RANLIB}" \ | |
10287 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 10288 | install-info) \ |
2a4cbe27 NN |
10289 | || exit 1 |
10290 | ||
b813574b | 10291 | @endif gnuserv |
2a4cbe27 | 10292 | |
b813574b PB |
10293 | .PHONY: maybe-installcheck-gnuserv installcheck-gnuserv |
10294 | maybe-installcheck-gnuserv: | |
10295 | @if gnuserv | |
10296 | maybe-installcheck-gnuserv: installcheck-gnuserv | |
2a4cbe27 | 10297 | |
b813574b PB |
10298 | installcheck-gnuserv: \ |
10299 | configure-gnuserv | |
10300 | @[ -f ./gnuserv/Makefile ] || exit 0; \ | |
b40e3958 L |
10301 | r=`${PWD_COMMAND}`; export r; \ |
10302 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10303 | $(HOST_EXPORTS) \ |
b813574b | 10304 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
10305 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10306 | done; \ | |
b813574b | 10307 | echo "Doing installcheck in gnuserv" ; \ |
b00612cc | 10308 | (cd $(HOST_SUBDIR)/gnuserv && \ |
2a4cbe27 NN |
10309 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10310 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10311 | "RANLIB=$${RANLIB}" \ | |
10312 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 10313 | installcheck) \ |
2a4cbe27 NN |
10314 | || exit 1 |
10315 | ||
b813574b | 10316 | @endif gnuserv |
2a4cbe27 | 10317 | |
b813574b PB |
10318 | .PHONY: maybe-mostlyclean-gnuserv mostlyclean-gnuserv |
10319 | maybe-mostlyclean-gnuserv: | |
10320 | @if gnuserv | |
10321 | maybe-mostlyclean-gnuserv: mostlyclean-gnuserv | |
2a4cbe27 | 10322 | |
b813574b PB |
10323 | mostlyclean-gnuserv: |
10324 | @[ -f ./gnuserv/Makefile ] || exit 0; \ | |
b40e3958 L |
10325 | r=`${PWD_COMMAND}`; export r; \ |
10326 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10327 | $(HOST_EXPORTS) \ |
b813574b | 10328 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
10329 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10330 | done; \ | |
b813574b | 10331 | echo "Doing mostlyclean in gnuserv" ; \ |
b00612cc | 10332 | (cd $(HOST_SUBDIR)/gnuserv && \ |
2a4cbe27 NN |
10333 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10334 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10335 | "RANLIB=$${RANLIB}" \ | |
10336 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 10337 | mostlyclean) \ |
2a4cbe27 NN |
10338 | || exit 1 |
10339 | ||
b813574b | 10340 | @endif gnuserv |
2a4cbe27 | 10341 | |
b813574b PB |
10342 | .PHONY: maybe-clean-gnuserv clean-gnuserv |
10343 | maybe-clean-gnuserv: | |
10344 | @if gnuserv | |
10345 | maybe-clean-gnuserv: clean-gnuserv | |
2a4cbe27 | 10346 | |
b813574b PB |
10347 | clean-gnuserv: |
10348 | @[ -f ./gnuserv/Makefile ] || exit 0; \ | |
b40e3958 L |
10349 | r=`${PWD_COMMAND}`; export r; \ |
10350 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10351 | $(HOST_EXPORTS) \ |
b813574b | 10352 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
10353 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10354 | done; \ | |
b813574b | 10355 | echo "Doing clean in gnuserv" ; \ |
b00612cc | 10356 | (cd $(HOST_SUBDIR)/gnuserv && \ |
2a4cbe27 NN |
10357 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10358 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10359 | "RANLIB=$${RANLIB}" \ | |
10360 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 10361 | clean) \ |
2a4cbe27 NN |
10362 | || exit 1 |
10363 | ||
b813574b | 10364 | @endif gnuserv |
2a4cbe27 | 10365 | |
b813574b PB |
10366 | .PHONY: maybe-distclean-gnuserv distclean-gnuserv |
10367 | maybe-distclean-gnuserv: | |
10368 | @if gnuserv | |
10369 | maybe-distclean-gnuserv: distclean-gnuserv | |
2a4cbe27 | 10370 | |
b813574b PB |
10371 | distclean-gnuserv: |
10372 | @[ -f ./gnuserv/Makefile ] || exit 0; \ | |
b40e3958 L |
10373 | r=`${PWD_COMMAND}`; export r; \ |
10374 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10375 | $(HOST_EXPORTS) \ |
b813574b | 10376 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
10377 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10378 | done; \ | |
b813574b | 10379 | echo "Doing distclean in gnuserv" ; \ |
b00612cc | 10380 | (cd $(HOST_SUBDIR)/gnuserv && \ |
2a4cbe27 NN |
10381 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10382 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10383 | "RANLIB=$${RANLIB}" \ | |
10384 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 10385 | distclean) \ |
2a4cbe27 NN |
10386 | || exit 1 |
10387 | ||
b813574b | 10388 | @endif gnuserv |
2a4cbe27 | 10389 | |
b813574b PB |
10390 | .PHONY: maybe-maintainer-clean-gnuserv maintainer-clean-gnuserv |
10391 | maybe-maintainer-clean-gnuserv: | |
10392 | @if gnuserv | |
10393 | maybe-maintainer-clean-gnuserv: maintainer-clean-gnuserv | |
2a4cbe27 | 10394 | |
b813574b PB |
10395 | maintainer-clean-gnuserv: |
10396 | @[ -f ./gnuserv/Makefile ] || exit 0; \ | |
b40e3958 L |
10397 | r=`${PWD_COMMAND}`; export r; \ |
10398 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10399 | $(HOST_EXPORTS) \ |
b813574b | 10400 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
10401 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10402 | done; \ | |
b813574b | 10403 | echo "Doing maintainer-clean in gnuserv" ; \ |
b00612cc | 10404 | (cd $(HOST_SUBDIR)/gnuserv && \ |
2a4cbe27 NN |
10405 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10406 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10407 | "RANLIB=$${RANLIB}" \ | |
10408 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 10409 | maintainer-clean) \ |
2a4cbe27 NN |
10410 | || exit 1 |
10411 | ||
b813574b | 10412 | @endif gnuserv |
2a4cbe27 | 10413 | |
2a4cbe27 | 10414 | |
a7254363 | 10415 | |
b813574b PB |
10416 | .PHONY: configure-gprof maybe-configure-gprof |
10417 | maybe-configure-gprof: | |
10418 | @if gprof | |
10419 | maybe-configure-gprof: configure-gprof | |
a7254363 | 10420 | configure-gprof: |
b00612cc PB |
10421 | @test ! -f $(HOST_SUBDIR)/gprof/Makefile || exit 0; \ |
10422 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gprof ; \ | |
b40e3958 L |
10423 | r=`${PWD_COMMAND}`; export r; \ |
10424 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10425 | $(HOST_EXPORTS) \ |
a7254363 PB |
10426 | echo Configuring in $(HOST_SUBDIR)/gprof; \ |
10427 | cd "$(HOST_SUBDIR)/gprof" || exit 1; \ | |
4fa63067 | 10428 | case $(srcdir) in \ |
b00612cc PB |
10429 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
10430 | *) topdir=`echo $(HOST_SUBDIR)/gprof/ | \ | |
10431 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 10432 | esac; \ |
b00612cc PB |
10433 | srcdiroption="--srcdir=$${topdir}/gprof"; \ |
10434 | libsrcdir="$$s/gprof"; \ | |
4fa63067 | 10435 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 10436 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
2a4cbe27 | 10437 | || exit 1 |
b813574b | 10438 | @endif gprof |
2a4cbe27 | 10439 | |
a7254363 PB |
10440 | |
10441 | ||
b813574b PB |
10442 | .PHONY: all-gprof maybe-all-gprof |
10443 | maybe-all-gprof: | |
10444 | @if gprof | |
d27cc32e | 10445 | TARGET-gprof=all |
b813574b PB |
10446 | maybe-all-gprof: all-gprof |
10447 | all-gprof: configure-gprof | |
4fa63067 NN |
10448 | @r=`${PWD_COMMAND}`; export r; \ |
10449 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10450 | $(HOST_EXPORTS) \ |
b00612cc PB |
10451 | (cd $(HOST_SUBDIR)/gprof && \ |
10452 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-gprof)) | |
b813574b | 10453 | @endif gprof |
2a4cbe27 | 10454 | |
a7254363 | 10455 | |
b813574b PB |
10456 | .PHONY: check-gprof maybe-check-gprof |
10457 | maybe-check-gprof: | |
10458 | @if gprof | |
10459 | maybe-check-gprof: check-gprof | |
2a4cbe27 | 10460 | |
b813574b | 10461 | check-gprof: |
4fa63067 | 10462 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 10463 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 10464 | $(HOST_EXPORTS) \ |
b00612cc PB |
10465 | (cd $(HOST_SUBDIR)/gprof && \ |
10466 | $(MAKE) $(FLAGS_TO_PASS) check) | |
2a4cbe27 | 10467 | |
b813574b | 10468 | @endif gprof |
2a4cbe27 | 10469 | |
b813574b PB |
10470 | .PHONY: install-gprof maybe-install-gprof |
10471 | maybe-install-gprof: | |
10472 | @if gprof | |
10473 | maybe-install-gprof: install-gprof | |
4fa63067 | 10474 | |
b813574b | 10475 | install-gprof: installdirs |
4fa63067 | 10476 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 10477 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 10478 | $(HOST_EXPORTS) \ |
b00612cc | 10479 | (cd $(HOST_SUBDIR)/gprof && \ |
2da12f12 | 10480 | $(MAKE) $(FLAGS_TO_PASS) install) |
2a4cbe27 | 10481 | |
b813574b | 10482 | @endif gprof |
2a4cbe27 | 10483 | |
4fa63067 | 10484 | # Other targets (info, dvi, etc.) |
2a4cbe27 | 10485 | |
b813574b PB |
10486 | .PHONY: maybe-info-gprof info-gprof |
10487 | maybe-info-gprof: | |
10488 | @if gprof | |
10489 | maybe-info-gprof: info-gprof | |
4fa63067 | 10490 | |
b813574b PB |
10491 | info-gprof: \ |
10492 | configure-gprof | |
10493 | @[ -f ./gprof/Makefile ] || exit 0; \ | |
b40e3958 L |
10494 | r=`${PWD_COMMAND}`; export r; \ |
10495 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10496 | $(HOST_EXPORTS) \ |
b813574b | 10497 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
10498 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10499 | done; \ | |
b813574b | 10500 | echo "Doing info in gprof" ; \ |
b00612cc | 10501 | (cd $(HOST_SUBDIR)/gprof && \ |
2a4cbe27 NN |
10502 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10503 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10504 | "RANLIB=$${RANLIB}" \ | |
10505 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 10506 | info) \ |
2a4cbe27 NN |
10507 | || exit 1 |
10508 | ||
b813574b | 10509 | @endif gprof |
2a4cbe27 | 10510 | |
b813574b PB |
10511 | .PHONY: maybe-dvi-gprof dvi-gprof |
10512 | maybe-dvi-gprof: | |
10513 | @if gprof | |
10514 | maybe-dvi-gprof: dvi-gprof | |
2a4cbe27 | 10515 | |
b813574b PB |
10516 | dvi-gprof: \ |
10517 | configure-gprof | |
10518 | @[ -f ./gprof/Makefile ] || exit 0; \ | |
b40e3958 L |
10519 | r=`${PWD_COMMAND}`; export r; \ |
10520 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10521 | $(HOST_EXPORTS) \ |
b813574b | 10522 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
10523 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10524 | done; \ | |
b813574b | 10525 | echo "Doing dvi in gprof" ; \ |
b00612cc | 10526 | (cd $(HOST_SUBDIR)/gprof && \ |
2a4cbe27 NN |
10527 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10528 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10529 | "RANLIB=$${RANLIB}" \ | |
10530 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 10531 | dvi) \ |
2a4cbe27 NN |
10532 | || exit 1 |
10533 | ||
b813574b | 10534 | @endif gprof |
2a4cbe27 | 10535 | |
6d389afc MS |
10536 | .PHONY: maybe-html-gprof html-gprof |
10537 | maybe-html-gprof: | |
10538 | @if gprof | |
10539 | maybe-html-gprof: html-gprof | |
10540 | ||
10541 | html-gprof: \ | |
10542 | configure-gprof | |
10543 | @[ -f ./gprof/Makefile ] || exit 0; \ | |
10544 | r=`${PWD_COMMAND}`; export r; \ | |
10545 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
10546 | $(HOST_EXPORTS) \ |
10547 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
10548 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
10549 | done; \ | |
10550 | echo "Doing html in gprof" ; \ | |
b00612cc | 10551 | (cd $(HOST_SUBDIR)/gprof && \ |
6d389afc MS |
10552 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10553 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10554 | "RANLIB=$${RANLIB}" \ | |
10555 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
10556 | html) \ | |
10557 | || exit 1 | |
10558 | ||
10559 | @endif gprof | |
10560 | ||
b813574b PB |
10561 | .PHONY: maybe-TAGS-gprof TAGS-gprof |
10562 | maybe-TAGS-gprof: | |
10563 | @if gprof | |
10564 | maybe-TAGS-gprof: TAGS-gprof | |
2a4cbe27 | 10565 | |
b813574b PB |
10566 | TAGS-gprof: \ |
10567 | configure-gprof | |
10568 | @[ -f ./gprof/Makefile ] || exit 0; \ | |
b40e3958 L |
10569 | r=`${PWD_COMMAND}`; export r; \ |
10570 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
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 | 10575 | echo "Doing TAGS in gprof" ; \ |
b00612cc | 10576 | (cd $(HOST_SUBDIR)/gprof && \ |
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 | TAGS) \ |
2a4cbe27 NN |
10582 | || exit 1 |
10583 | ||
b813574b | 10584 | @endif gprof |
2a4cbe27 | 10585 | |
b813574b PB |
10586 | .PHONY: maybe-install-info-gprof install-info-gprof |
10587 | maybe-install-info-gprof: | |
10588 | @if gprof | |
10589 | maybe-install-info-gprof: install-info-gprof | |
2a4cbe27 | 10590 | |
b813574b PB |
10591 | install-info-gprof: \ |
10592 | configure-gprof \ | |
10593 | info-gprof | |
10594 | @[ -f ./gprof/Makefile ] || exit 0; \ | |
b40e3958 L |
10595 | r=`${PWD_COMMAND}`; export r; \ |
10596 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10597 | $(HOST_EXPORTS) \ |
b813574b | 10598 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
10599 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10600 | done; \ | |
b813574b | 10601 | echo "Doing install-info in gprof" ; \ |
b00612cc | 10602 | (cd $(HOST_SUBDIR)/gprof && \ |
2a4cbe27 NN |
10603 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10604 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10605 | "RANLIB=$${RANLIB}" \ | |
10606 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 10607 | install-info) \ |
2a4cbe27 NN |
10608 | || exit 1 |
10609 | ||
b813574b | 10610 | @endif gprof |
2a4cbe27 | 10611 | |
b813574b PB |
10612 | .PHONY: maybe-installcheck-gprof installcheck-gprof |
10613 | maybe-installcheck-gprof: | |
10614 | @if gprof | |
10615 | maybe-installcheck-gprof: installcheck-gprof | |
2a4cbe27 | 10616 | |
b813574b PB |
10617 | installcheck-gprof: \ |
10618 | configure-gprof | |
10619 | @[ -f ./gprof/Makefile ] || exit 0; \ | |
b40e3958 L |
10620 | r=`${PWD_COMMAND}`; export r; \ |
10621 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10622 | $(HOST_EXPORTS) \ |
b813574b | 10623 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
10624 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10625 | done; \ | |
b813574b | 10626 | echo "Doing installcheck in gprof" ; \ |
b00612cc | 10627 | (cd $(HOST_SUBDIR)/gprof && \ |
2a4cbe27 NN |
10628 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10629 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10630 | "RANLIB=$${RANLIB}" \ | |
10631 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 10632 | installcheck) \ |
2a4cbe27 NN |
10633 | || exit 1 |
10634 | ||
b813574b | 10635 | @endif gprof |
2a4cbe27 | 10636 | |
b813574b PB |
10637 | .PHONY: maybe-mostlyclean-gprof mostlyclean-gprof |
10638 | maybe-mostlyclean-gprof: | |
10639 | @if gprof | |
10640 | maybe-mostlyclean-gprof: mostlyclean-gprof | |
2a4cbe27 | 10641 | |
b813574b PB |
10642 | mostlyclean-gprof: |
10643 | @[ -f ./gprof/Makefile ] || exit 0; \ | |
b40e3958 L |
10644 | r=`${PWD_COMMAND}`; export r; \ |
10645 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
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 | 10650 | echo "Doing mostlyclean in gprof" ; \ |
b00612cc | 10651 | (cd $(HOST_SUBDIR)/gprof && \ |
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 | mostlyclean) \ |
2a4cbe27 NN |
10657 | || exit 1 |
10658 | ||
b813574b | 10659 | @endif gprof |
2a4cbe27 | 10660 | |
b813574b PB |
10661 | .PHONY: maybe-clean-gprof clean-gprof |
10662 | maybe-clean-gprof: | |
10663 | @if gprof | |
10664 | maybe-clean-gprof: clean-gprof | |
2a4cbe27 | 10665 | |
b813574b PB |
10666 | clean-gprof: |
10667 | @[ -f ./gprof/Makefile ] || exit 0; \ | |
b40e3958 L |
10668 | r=`${PWD_COMMAND}`; export r; \ |
10669 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10670 | $(HOST_EXPORTS) \ |
b813574b | 10671 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
10672 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10673 | done; \ | |
b813574b | 10674 | echo "Doing clean in gprof" ; \ |
b00612cc | 10675 | (cd $(HOST_SUBDIR)/gprof && \ |
2a4cbe27 NN |
10676 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10677 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10678 | "RANLIB=$${RANLIB}" \ | |
10679 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 10680 | clean) \ |
2a4cbe27 NN |
10681 | || exit 1 |
10682 | ||
b813574b | 10683 | @endif gprof |
2a4cbe27 | 10684 | |
b813574b PB |
10685 | .PHONY: maybe-distclean-gprof distclean-gprof |
10686 | maybe-distclean-gprof: | |
10687 | @if gprof | |
10688 | maybe-distclean-gprof: distclean-gprof | |
2a4cbe27 | 10689 | |
b813574b PB |
10690 | distclean-gprof: |
10691 | @[ -f ./gprof/Makefile ] || exit 0; \ | |
b40e3958 L |
10692 | r=`${PWD_COMMAND}`; export r; \ |
10693 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10694 | $(HOST_EXPORTS) \ |
b813574b | 10695 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
10696 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10697 | done; \ | |
b813574b | 10698 | echo "Doing distclean in gprof" ; \ |
b00612cc | 10699 | (cd $(HOST_SUBDIR)/gprof && \ |
2a4cbe27 NN |
10700 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10701 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10702 | "RANLIB=$${RANLIB}" \ | |
10703 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 10704 | distclean) \ |
2a4cbe27 NN |
10705 | || exit 1 |
10706 | ||
b813574b | 10707 | @endif gprof |
2a4cbe27 | 10708 | |
b813574b PB |
10709 | .PHONY: maybe-maintainer-clean-gprof maintainer-clean-gprof |
10710 | maybe-maintainer-clean-gprof: | |
10711 | @if gprof | |
10712 | maybe-maintainer-clean-gprof: maintainer-clean-gprof | |
2a4cbe27 | 10713 | |
b813574b PB |
10714 | maintainer-clean-gprof: |
10715 | @[ -f ./gprof/Makefile ] || exit 0; \ | |
b40e3958 L |
10716 | r=`${PWD_COMMAND}`; export r; \ |
10717 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10718 | $(HOST_EXPORTS) \ |
b813574b | 10719 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
10720 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10721 | done; \ | |
b813574b | 10722 | echo "Doing maintainer-clean in gprof" ; \ |
b00612cc | 10723 | (cd $(HOST_SUBDIR)/gprof && \ |
2a4cbe27 NN |
10724 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10725 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10726 | "RANLIB=$${RANLIB}" \ | |
10727 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 10728 | maintainer-clean) \ |
2a4cbe27 NN |
10729 | || exit 1 |
10730 | ||
b813574b | 10731 | @endif gprof |
2a4cbe27 | 10732 | |
2a4cbe27 | 10733 | |
a7254363 | 10734 | |
b813574b PB |
10735 | .PHONY: configure-gzip maybe-configure-gzip |
10736 | maybe-configure-gzip: | |
10737 | @if gzip | |
10738 | maybe-configure-gzip: configure-gzip | |
a7254363 | 10739 | configure-gzip: |
b00612cc PB |
10740 | @test ! -f $(HOST_SUBDIR)/gzip/Makefile || exit 0; \ |
10741 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gzip ; \ | |
b40e3958 L |
10742 | r=`${PWD_COMMAND}`; export r; \ |
10743 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10744 | $(HOST_EXPORTS) \ |
a7254363 PB |
10745 | echo Configuring in $(HOST_SUBDIR)/gzip; \ |
10746 | cd "$(HOST_SUBDIR)/gzip" || exit 1; \ | |
4fa63067 | 10747 | case $(srcdir) in \ |
b00612cc PB |
10748 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
10749 | *) topdir=`echo $(HOST_SUBDIR)/gzip/ | \ | |
10750 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 10751 | esac; \ |
b00612cc PB |
10752 | srcdiroption="--srcdir=$${topdir}/gzip"; \ |
10753 | libsrcdir="$$s/gzip"; \ | |
4fa63067 | 10754 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 10755 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
2a4cbe27 | 10756 | || exit 1 |
b813574b | 10757 | @endif gzip |
2a4cbe27 | 10758 | |
a7254363 PB |
10759 | |
10760 | ||
b813574b PB |
10761 | .PHONY: all-gzip maybe-all-gzip |
10762 | maybe-all-gzip: | |
10763 | @if gzip | |
d27cc32e | 10764 | TARGET-gzip=all |
b813574b PB |
10765 | maybe-all-gzip: all-gzip |
10766 | all-gzip: configure-gzip | |
4fa63067 NN |
10767 | @r=`${PWD_COMMAND}`; export r; \ |
10768 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10769 | $(HOST_EXPORTS) \ |
b00612cc PB |
10770 | (cd $(HOST_SUBDIR)/gzip && \ |
10771 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-gzip)) | |
b813574b | 10772 | @endif gzip |
2a4cbe27 | 10773 | |
a7254363 | 10774 | |
b813574b PB |
10775 | .PHONY: check-gzip maybe-check-gzip |
10776 | maybe-check-gzip: | |
10777 | @if gzip | |
10778 | maybe-check-gzip: check-gzip | |
2a4cbe27 | 10779 | |
b813574b | 10780 | check-gzip: |
4fa63067 | 10781 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 10782 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 10783 | $(HOST_EXPORTS) \ |
b00612cc PB |
10784 | (cd $(HOST_SUBDIR)/gzip && \ |
10785 | $(MAKE) $(FLAGS_TO_PASS) check) | |
2a4cbe27 | 10786 | |
b813574b | 10787 | @endif gzip |
2a4cbe27 | 10788 | |
b813574b PB |
10789 | .PHONY: install-gzip maybe-install-gzip |
10790 | maybe-install-gzip: | |
10791 | @if gzip | |
10792 | maybe-install-gzip: install-gzip | |
2a4cbe27 | 10793 | |
b813574b | 10794 | install-gzip: installdirs |
4fa63067 | 10795 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 10796 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 10797 | $(HOST_EXPORTS) \ |
b00612cc | 10798 | (cd $(HOST_SUBDIR)/gzip && \ |
2da12f12 | 10799 | $(MAKE) $(FLAGS_TO_PASS) install) |
2a4cbe27 | 10800 | |
b813574b | 10801 | @endif gzip |
2a4cbe27 | 10802 | |
4fa63067 | 10803 | # Other targets (info, dvi, etc.) |
2a4cbe27 | 10804 | |
b813574b PB |
10805 | .PHONY: maybe-info-gzip info-gzip |
10806 | maybe-info-gzip: | |
10807 | @if gzip | |
10808 | maybe-info-gzip: info-gzip | |
4fa63067 | 10809 | |
b813574b PB |
10810 | info-gzip: \ |
10811 | configure-gzip | |
10812 | @[ -f ./gzip/Makefile ] || exit 0; \ | |
b40e3958 L |
10813 | r=`${PWD_COMMAND}`; export r; \ |
10814 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10815 | $(HOST_EXPORTS) \ |
b813574b | 10816 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
10817 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10818 | done; \ | |
b813574b | 10819 | echo "Doing info in gzip" ; \ |
b00612cc | 10820 | (cd $(HOST_SUBDIR)/gzip && \ |
2a4cbe27 NN |
10821 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10822 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10823 | "RANLIB=$${RANLIB}" \ | |
10824 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 10825 | info) \ |
2a4cbe27 NN |
10826 | || exit 1 |
10827 | ||
b813574b | 10828 | @endif gzip |
2a4cbe27 | 10829 | |
b813574b PB |
10830 | .PHONY: maybe-dvi-gzip dvi-gzip |
10831 | maybe-dvi-gzip: | |
10832 | @if gzip | |
10833 | maybe-dvi-gzip: dvi-gzip | |
2a4cbe27 | 10834 | |
b813574b PB |
10835 | dvi-gzip: \ |
10836 | configure-gzip | |
10837 | @[ -f ./gzip/Makefile ] || exit 0; \ | |
b40e3958 L |
10838 | r=`${PWD_COMMAND}`; export r; \ |
10839 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10840 | $(HOST_EXPORTS) \ |
b813574b | 10841 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
10842 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10843 | done; \ | |
b813574b | 10844 | echo "Doing dvi in gzip" ; \ |
b00612cc | 10845 | (cd $(HOST_SUBDIR)/gzip && \ |
2a4cbe27 NN |
10846 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10847 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10848 | "RANLIB=$${RANLIB}" \ | |
10849 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 10850 | dvi) \ |
2a4cbe27 NN |
10851 | || exit 1 |
10852 | ||
b813574b | 10853 | @endif gzip |
2a4cbe27 | 10854 | |
6d389afc MS |
10855 | .PHONY: maybe-html-gzip html-gzip |
10856 | maybe-html-gzip: | |
10857 | @if gzip | |
10858 | maybe-html-gzip: html-gzip | |
10859 | ||
10860 | html-gzip: \ | |
10861 | configure-gzip | |
10862 | @[ -f ./gzip/Makefile ] || exit 0; \ | |
10863 | r=`${PWD_COMMAND}`; export r; \ | |
10864 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
10865 | $(HOST_EXPORTS) \ |
10866 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
10867 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
10868 | done; \ | |
10869 | echo "Doing html in gzip" ; \ | |
b00612cc | 10870 | (cd $(HOST_SUBDIR)/gzip && \ |
6d389afc MS |
10871 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10872 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10873 | "RANLIB=$${RANLIB}" \ | |
10874 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
10875 | html) \ | |
10876 | || exit 1 | |
10877 | ||
10878 | @endif gzip | |
10879 | ||
b813574b PB |
10880 | .PHONY: maybe-TAGS-gzip TAGS-gzip |
10881 | maybe-TAGS-gzip: | |
10882 | @if gzip | |
10883 | maybe-TAGS-gzip: TAGS-gzip | |
2a4cbe27 | 10884 | |
b813574b PB |
10885 | TAGS-gzip: \ |
10886 | configure-gzip | |
10887 | @[ -f ./gzip/Makefile ] || exit 0; \ | |
b40e3958 L |
10888 | r=`${PWD_COMMAND}`; export r; \ |
10889 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10890 | $(HOST_EXPORTS) \ |
b813574b | 10891 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
10892 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10893 | done; \ | |
b813574b | 10894 | echo "Doing TAGS in gzip" ; \ |
b00612cc | 10895 | (cd $(HOST_SUBDIR)/gzip && \ |
2a4cbe27 NN |
10896 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10897 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10898 | "RANLIB=$${RANLIB}" \ | |
10899 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 10900 | TAGS) \ |
2a4cbe27 NN |
10901 | || exit 1 |
10902 | ||
b813574b | 10903 | @endif gzip |
2a4cbe27 | 10904 | |
b813574b PB |
10905 | .PHONY: maybe-install-info-gzip install-info-gzip |
10906 | maybe-install-info-gzip: | |
10907 | @if gzip | |
10908 | maybe-install-info-gzip: install-info-gzip | |
2a4cbe27 | 10909 | |
b813574b PB |
10910 | install-info-gzip: \ |
10911 | configure-gzip \ | |
10912 | info-gzip | |
10913 | @[ -f ./gzip/Makefile ] || exit 0; \ | |
b40e3958 L |
10914 | r=`${PWD_COMMAND}`; export r; \ |
10915 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10916 | $(HOST_EXPORTS) \ |
b813574b | 10917 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
10918 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10919 | done; \ | |
b813574b | 10920 | echo "Doing install-info in gzip" ; \ |
b00612cc | 10921 | (cd $(HOST_SUBDIR)/gzip && \ |
2a4cbe27 NN |
10922 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10923 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10924 | "RANLIB=$${RANLIB}" \ | |
10925 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 10926 | install-info) \ |
2a4cbe27 NN |
10927 | || exit 1 |
10928 | ||
b813574b | 10929 | @endif gzip |
2a4cbe27 | 10930 | |
b813574b PB |
10931 | .PHONY: maybe-installcheck-gzip installcheck-gzip |
10932 | maybe-installcheck-gzip: | |
10933 | @if gzip | |
10934 | maybe-installcheck-gzip: installcheck-gzip | |
2a4cbe27 | 10935 | |
b813574b PB |
10936 | installcheck-gzip: \ |
10937 | configure-gzip | |
10938 | @[ -f ./gzip/Makefile ] || exit 0; \ | |
b40e3958 L |
10939 | r=`${PWD_COMMAND}`; export r; \ |
10940 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10941 | $(HOST_EXPORTS) \ |
b813574b | 10942 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
10943 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10944 | done; \ | |
b813574b | 10945 | echo "Doing installcheck in gzip" ; \ |
b00612cc | 10946 | (cd $(HOST_SUBDIR)/gzip && \ |
2a4cbe27 NN |
10947 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10948 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10949 | "RANLIB=$${RANLIB}" \ | |
10950 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 10951 | installcheck) \ |
2a4cbe27 NN |
10952 | || exit 1 |
10953 | ||
b813574b | 10954 | @endif gzip |
2a4cbe27 | 10955 | |
b813574b PB |
10956 | .PHONY: maybe-mostlyclean-gzip mostlyclean-gzip |
10957 | maybe-mostlyclean-gzip: | |
10958 | @if gzip | |
10959 | maybe-mostlyclean-gzip: mostlyclean-gzip | |
2a4cbe27 | 10960 | |
b813574b PB |
10961 | mostlyclean-gzip: |
10962 | @[ -f ./gzip/Makefile ] || exit 0; \ | |
b40e3958 L |
10963 | r=`${PWD_COMMAND}`; export r; \ |
10964 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10965 | $(HOST_EXPORTS) \ |
b813574b | 10966 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
10967 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10968 | done; \ | |
b813574b | 10969 | echo "Doing mostlyclean in gzip" ; \ |
b00612cc | 10970 | (cd $(HOST_SUBDIR)/gzip && \ |
2a4cbe27 NN |
10971 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10972 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10973 | "RANLIB=$${RANLIB}" \ | |
10974 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 10975 | mostlyclean) \ |
2a4cbe27 NN |
10976 | || exit 1 |
10977 | ||
b813574b | 10978 | @endif gzip |
2a4cbe27 | 10979 | |
b813574b PB |
10980 | .PHONY: maybe-clean-gzip clean-gzip |
10981 | maybe-clean-gzip: | |
10982 | @if gzip | |
10983 | maybe-clean-gzip: clean-gzip | |
2a4cbe27 | 10984 | |
b813574b PB |
10985 | clean-gzip: |
10986 | @[ -f ./gzip/Makefile ] || exit 0; \ | |
b40e3958 L |
10987 | r=`${PWD_COMMAND}`; export r; \ |
10988 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10989 | $(HOST_EXPORTS) \ |
b813574b | 10990 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
10991 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10992 | done; \ | |
b813574b | 10993 | echo "Doing clean in gzip" ; \ |
b00612cc | 10994 | (cd $(HOST_SUBDIR)/gzip && \ |
2a4cbe27 NN |
10995 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10996 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10997 | "RANLIB=$${RANLIB}" \ | |
10998 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 10999 | clean) \ |
2a4cbe27 NN |
11000 | || exit 1 |
11001 | ||
b813574b | 11002 | @endif gzip |
2a4cbe27 | 11003 | |
b813574b PB |
11004 | .PHONY: maybe-distclean-gzip distclean-gzip |
11005 | maybe-distclean-gzip: | |
11006 | @if gzip | |
11007 | maybe-distclean-gzip: distclean-gzip | |
2a4cbe27 | 11008 | |
b813574b PB |
11009 | distclean-gzip: |
11010 | @[ -f ./gzip/Makefile ] || exit 0; \ | |
b40e3958 L |
11011 | r=`${PWD_COMMAND}`; export r; \ |
11012 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 11013 | $(HOST_EXPORTS) \ |
b813574b | 11014 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
11015 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
11016 | done; \ | |
b813574b | 11017 | echo "Doing distclean in gzip" ; \ |
b00612cc | 11018 | (cd $(HOST_SUBDIR)/gzip && \ |
2a4cbe27 NN |
11019 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
11020 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
11021 | "RANLIB=$${RANLIB}" \ | |
11022 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 11023 | distclean) \ |
2a4cbe27 NN |
11024 | || exit 1 |
11025 | ||
b813574b | 11026 | @endif gzip |
2a4cbe27 | 11027 | |
b813574b PB |
11028 | .PHONY: maybe-maintainer-clean-gzip maintainer-clean-gzip |
11029 | maybe-maintainer-clean-gzip: | |
11030 | @if gzip | |
11031 | maybe-maintainer-clean-gzip: maintainer-clean-gzip | |
2a4cbe27 | 11032 | |
b813574b PB |
11033 | maintainer-clean-gzip: |
11034 | @[ -f ./gzip/Makefile ] || exit 0; \ | |
b40e3958 L |
11035 | r=`${PWD_COMMAND}`; export r; \ |
11036 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 11037 | $(HOST_EXPORTS) \ |
b813574b | 11038 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
11039 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
11040 | done; \ | |
b813574b | 11041 | echo "Doing maintainer-clean in gzip" ; \ |
b00612cc | 11042 | (cd $(HOST_SUBDIR)/gzip && \ |
2a4cbe27 NN |
11043 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
11044 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
11045 | "RANLIB=$${RANLIB}" \ | |
11046 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 11047 | maintainer-clean) \ |
2a4cbe27 NN |
11048 | || exit 1 |
11049 | ||
b813574b | 11050 | @endif gzip |
2a4cbe27 | 11051 | |
2a4cbe27 | 11052 | |
a7254363 | 11053 | |
b813574b PB |
11054 | .PHONY: configure-hello maybe-configure-hello |
11055 | maybe-configure-hello: | |
11056 | @if hello | |
11057 | maybe-configure-hello: configure-hello | |
a7254363 | 11058 | configure-hello: |
b00612cc PB |
11059 | @test ! -f $(HOST_SUBDIR)/hello/Makefile || exit 0; \ |
11060 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/hello ; \ | |
b40e3958 L |
11061 | r=`${PWD_COMMAND}`; export r; \ |
11062 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 11063 | $(HOST_EXPORTS) \ |
a7254363 PB |
11064 | echo Configuring in $(HOST_SUBDIR)/hello; \ |
11065 | cd "$(HOST_SUBDIR)/hello" || exit 1; \ | |
4fa63067 | 11066 | case $(srcdir) in \ |
b00612cc PB |
11067 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
11068 | *) topdir=`echo $(HOST_SUBDIR)/hello/ | \ | |
11069 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 11070 | esac; \ |
b00612cc PB |
11071 | srcdiroption="--srcdir=$${topdir}/hello"; \ |
11072 | libsrcdir="$$s/hello"; \ | |
4fa63067 | 11073 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 11074 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
2a4cbe27 | 11075 | || exit 1 |
b813574b | 11076 | @endif hello |
2a4cbe27 | 11077 | |
a7254363 PB |
11078 | |
11079 | ||
b813574b PB |
11080 | .PHONY: all-hello maybe-all-hello |
11081 | maybe-all-hello: | |
11082 | @if hello | |
d27cc32e | 11083 | TARGET-hello=all |
b813574b PB |
11084 | maybe-all-hello: all-hello |
11085 | all-hello: configure-hello | |
4fa63067 NN |
11086 | @r=`${PWD_COMMAND}`; export r; \ |
11087 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 11088 | $(HOST_EXPORTS) \ |
b00612cc PB |
11089 | (cd $(HOST_SUBDIR)/hello && \ |
11090 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-hello)) | |
b813574b | 11091 | @endif hello |
2a4cbe27 | 11092 | |
a7254363 | 11093 | |
b813574b PB |
11094 | .PHONY: check-hello maybe-check-hello |
11095 | maybe-check-hello: | |
11096 | @if hello | |
11097 | maybe-check-hello: check-hello | |
2a4cbe27 | 11098 | |
b813574b | 11099 | check-hello: |
4fa63067 | 11100 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 11101 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 11102 | $(HOST_EXPORTS) \ |
b00612cc PB |
11103 | (cd $(HOST_SUBDIR)/hello && \ |
11104 | $(MAKE) $(FLAGS_TO_PASS) check) | |
2a4cbe27 | 11105 | |
b813574b | 11106 | @endif hello |
2a4cbe27 | 11107 | |
b813574b PB |
11108 | .PHONY: install-hello maybe-install-hello |
11109 | maybe-install-hello: | |
11110 | @if hello | |
11111 | maybe-install-hello: install-hello | |
2a4cbe27 | 11112 | |
b813574b | 11113 | install-hello: installdirs |
4fa63067 NN |
11114 | @r=`${PWD_COMMAND}`; export r; \ |
11115 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 11116 | $(HOST_EXPORTS) \ |
b00612cc | 11117 | (cd $(HOST_SUBDIR)/hello && \ |
2da12f12 | 11118 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 11119 | |
b813574b | 11120 | @endif hello |
4fa63067 NN |
11121 | |
11122 | # Other targets (info, dvi, etc.) | |
11123 | ||
b813574b PB |
11124 | .PHONY: maybe-info-hello info-hello |
11125 | maybe-info-hello: | |
11126 | @if hello | |
11127 | maybe-info-hello: info-hello | |
4fa63067 | 11128 | |
b813574b PB |
11129 | info-hello: \ |
11130 | configure-hello | |
11131 | @[ -f ./hello/Makefile ] || exit 0; \ | |
b40e3958 L |
11132 | r=`${PWD_COMMAND}`; export r; \ |
11133 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 11134 | $(HOST_EXPORTS) \ |
b813574b | 11135 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
11136 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
11137 | done; \ | |
b813574b | 11138 | echo "Doing info in hello" ; \ |
b00612cc | 11139 | (cd $(HOST_SUBDIR)/hello && \ |
2a4cbe27 NN |
11140 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
11141 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
11142 | "RANLIB=$${RANLIB}" \ | |
11143 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 11144 | info) \ |
2a4cbe27 NN |
11145 | || exit 1 |
11146 | ||
b813574b | 11147 | @endif hello |
2a4cbe27 | 11148 | |
b813574b PB |
11149 | .PHONY: maybe-dvi-hello dvi-hello |
11150 | maybe-dvi-hello: | |
11151 | @if hello | |
11152 | maybe-dvi-hello: dvi-hello | |
2a4cbe27 | 11153 | |
b813574b PB |
11154 | dvi-hello: \ |
11155 | configure-hello | |
11156 | @[ -f ./hello/Makefile ] || exit 0; \ | |
b40e3958 L |
11157 | r=`${PWD_COMMAND}`; export r; \ |
11158 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 11159 | $(HOST_EXPORTS) \ |
b813574b | 11160 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
11161 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
11162 | done; \ | |
b813574b | 11163 | echo "Doing dvi in hello" ; \ |
b00612cc | 11164 | (cd $(HOST_SUBDIR)/hello && \ |
2a4cbe27 NN |
11165 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
11166 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
11167 | "RANLIB=$${RANLIB}" \ | |
11168 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 11169 | dvi) \ |
2a4cbe27 NN |
11170 | || exit 1 |
11171 | ||
b813574b | 11172 | @endif hello |
2a4cbe27 | 11173 | |
6d389afc MS |
11174 | .PHONY: maybe-html-hello html-hello |
11175 | maybe-html-hello: | |
11176 | @if hello | |
11177 | maybe-html-hello: html-hello | |
11178 | ||
11179 | html-hello: \ | |
11180 | configure-hello | |
11181 | @[ -f ./hello/Makefile ] || exit 0; \ | |
11182 | r=`${PWD_COMMAND}`; export r; \ | |
11183 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
11184 | $(HOST_EXPORTS) \ |
11185 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
11186 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
11187 | done; \ | |
11188 | echo "Doing html in hello" ; \ | |
b00612cc | 11189 | (cd $(HOST_SUBDIR)/hello && \ |
6d389afc MS |
11190 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
11191 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
11192 | "RANLIB=$${RANLIB}" \ | |
11193 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
11194 | html) \ | |
11195 | || exit 1 | |
11196 | ||
11197 | @endif hello | |
11198 | ||
b813574b PB |
11199 | .PHONY: maybe-TAGS-hello TAGS-hello |
11200 | maybe-TAGS-hello: | |
11201 | @if hello | |
11202 | maybe-TAGS-hello: TAGS-hello | |
2a4cbe27 | 11203 | |
b813574b PB |
11204 | TAGS-hello: \ |
11205 | configure-hello | |
11206 | @[ -f ./hello/Makefile ] || exit 0; \ | |
b40e3958 L |
11207 | r=`${PWD_COMMAND}`; export r; \ |
11208 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 11209 | $(HOST_EXPORTS) \ |
b813574b | 11210 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
11211 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
11212 | done; \ | |
b813574b | 11213 | echo "Doing TAGS in hello" ; \ |
b00612cc | 11214 | (cd $(HOST_SUBDIR)/hello && \ |
2a4cbe27 NN |
11215 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
11216 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
11217 | "RANLIB=$${RANLIB}" \ | |
11218 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 11219 | TAGS) \ |
2a4cbe27 NN |
11220 | || exit 1 |
11221 | ||
b813574b | 11222 | @endif hello |
2a4cbe27 | 11223 | |
b813574b PB |
11224 | .PHONY: maybe-install-info-hello install-info-hello |
11225 | maybe-install-info-hello: | |
11226 | @if hello | |
11227 | maybe-install-info-hello: install-info-hello | |
2a4cbe27 | 11228 | |
b813574b PB |
11229 | install-info-hello: \ |
11230 | configure-hello \ | |
11231 | info-hello | |
11232 | @[ -f ./hello/Makefile ] || exit 0; \ | |
b40e3958 L |
11233 | r=`${PWD_COMMAND}`; export r; \ |
11234 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 11235 | $(HOST_EXPORTS) \ |
b813574b | 11236 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
11237 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
11238 | done; \ | |
b813574b | 11239 | echo "Doing install-info in hello" ; \ |
b00612cc | 11240 | (cd $(HOST_SUBDIR)/hello && \ |
2a4cbe27 NN |
11241 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
11242 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
11243 | "RANLIB=$${RANLIB}" \ | |
11244 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 11245 | install-info) \ |
2a4cbe27 NN |
11246 | || exit 1 |
11247 | ||
b813574b | 11248 | @endif hello |
2a4cbe27 | 11249 | |
b813574b PB |
11250 | .PHONY: maybe-installcheck-hello installcheck-hello |
11251 | maybe-installcheck-hello: | |
11252 | @if hello | |
11253 | maybe-installcheck-hello: installcheck-hello | |
2a4cbe27 | 11254 | |
b813574b PB |
11255 | installcheck-hello: \ |
11256 | configure-hello | |
11257 | @[ -f ./hello/Makefile ] || exit 0; \ | |
b40e3958 L |
11258 | r=`${PWD_COMMAND}`; export r; \ |
11259 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 11260 | $(HOST_EXPORTS) \ |
b813574b | 11261 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
11262 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
11263 | done; \ | |
b813574b | 11264 | echo "Doing installcheck in hello" ; \ |
b00612cc | 11265 | (cd $(HOST_SUBDIR)/hello && \ |
2a4cbe27 NN |
11266 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
11267 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
11268 | "RANLIB=$${RANLIB}" \ | |
11269 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 11270 | installcheck) \ |
2a4cbe27 NN |
11271 | || exit 1 |
11272 | ||
b813574b | 11273 | @endif hello |
2a4cbe27 | 11274 | |
b813574b PB |
11275 | .PHONY: maybe-mostlyclean-hello mostlyclean-hello |
11276 | maybe-mostlyclean-hello: | |
11277 | @if hello | |
11278 | maybe-mostlyclean-hello: mostlyclean-hello | |
2a4cbe27 | 11279 | |
b813574b PB |
11280 | mostlyclean-hello: |
11281 | @[ -f ./hello/Makefile ] || exit 0; \ | |
b40e3958 L |
11282 | r=`${PWD_COMMAND}`; export r; \ |
11283 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 11284 | $(HOST_EXPORTS) \ |
b813574b | 11285 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
11286 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
11287 | done; \ | |
b813574b | 11288 | echo "Doing mostlyclean in hello" ; \ |
b00612cc | 11289 | (cd $(HOST_SUBDIR)/hello && \ |
2a4cbe27 NN |
11290 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
11291 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
11292 | "RANLIB=$${RANLIB}" \ | |
11293 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 11294 | mostlyclean) \ |
2a4cbe27 NN |
11295 | || exit 1 |
11296 | ||
b813574b | 11297 | @endif hello |
2a4cbe27 | 11298 | |
b813574b PB |
11299 | .PHONY: maybe-clean-hello clean-hello |
11300 | maybe-clean-hello: | |
11301 | @if hello | |
11302 | maybe-clean-hello: clean-hello | |
2a4cbe27 | 11303 | |
b813574b PB |
11304 | clean-hello: |
11305 | @[ -f ./hello/Makefile ] || exit 0; \ | |
b40e3958 L |
11306 | r=`${PWD_COMMAND}`; export r; \ |
11307 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 11308 | $(HOST_EXPORTS) \ |
b813574b | 11309 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
11310 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
11311 | done; \ | |
b813574b | 11312 | echo "Doing clean in hello" ; \ |
b00612cc | 11313 | (cd $(HOST_SUBDIR)/hello && \ |
2a4cbe27 NN |
11314 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
11315 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
11316 | "RANLIB=$${RANLIB}" \ | |
11317 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 11318 | clean) \ |
2a4cbe27 NN |
11319 | || exit 1 |
11320 | ||
b813574b | 11321 | @endif hello |
2a4cbe27 | 11322 | |
b813574b PB |
11323 | .PHONY: maybe-distclean-hello distclean-hello |
11324 | maybe-distclean-hello: | |
11325 | @if hello | |
11326 | maybe-distclean-hello: distclean-hello | |
2a4cbe27 | 11327 | |
b813574b PB |
11328 | distclean-hello: |
11329 | @[ -f ./hello/Makefile ] || exit 0; \ | |
b40e3958 L |
11330 | r=`${PWD_COMMAND}`; export r; \ |
11331 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 11332 | $(HOST_EXPORTS) \ |
b813574b | 11333 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
11334 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
11335 | done; \ | |
b813574b | 11336 | echo "Doing distclean in hello" ; \ |
b00612cc | 11337 | (cd $(HOST_SUBDIR)/hello && \ |
2a4cbe27 NN |
11338 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
11339 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
11340 | "RANLIB=$${RANLIB}" \ | |
11341 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 11342 | distclean) \ |
2a4cbe27 NN |
11343 | || exit 1 |
11344 | ||
b813574b | 11345 | @endif hello |
2a4cbe27 | 11346 | |
b813574b PB |
11347 | .PHONY: maybe-maintainer-clean-hello maintainer-clean-hello |
11348 | maybe-maintainer-clean-hello: | |
11349 | @if hello | |
11350 | maybe-maintainer-clean-hello: maintainer-clean-hello | |
2a4cbe27 | 11351 | |
b813574b PB |
11352 | maintainer-clean-hello: |
11353 | @[ -f ./hello/Makefile ] || exit 0; \ | |
b40e3958 L |
11354 | r=`${PWD_COMMAND}`; export r; \ |
11355 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 11356 | $(HOST_EXPORTS) \ |
b813574b | 11357 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
11358 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
11359 | done; \ | |
b813574b | 11360 | echo "Doing maintainer-clean in hello" ; \ |
b00612cc | 11361 | (cd $(HOST_SUBDIR)/hello && \ |
2a4cbe27 NN |
11362 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
11363 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
11364 | "RANLIB=$${RANLIB}" \ | |
11365 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 11366 | maintainer-clean) \ |
2a4cbe27 NN |
11367 | || exit 1 |
11368 | ||
b813574b | 11369 | @endif hello |
2a4cbe27 | 11370 | |
2a4cbe27 | 11371 | |
a7254363 | 11372 | |
b813574b PB |
11373 | .PHONY: configure-indent maybe-configure-indent |
11374 | maybe-configure-indent: | |
11375 | @if indent | |
11376 | maybe-configure-indent: configure-indent | |
a7254363 | 11377 | configure-indent: |
b00612cc PB |
11378 | @test ! -f $(HOST_SUBDIR)/indent/Makefile || exit 0; \ |
11379 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/indent ; \ | |
4fa63067 NN |
11380 | r=`${PWD_COMMAND}`; export r; \ |
11381 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 11382 | $(HOST_EXPORTS) \ |
a7254363 PB |
11383 | echo Configuring in $(HOST_SUBDIR)/indent; \ |
11384 | cd "$(HOST_SUBDIR)/indent" || exit 1; \ | |
4fa63067 | 11385 | case $(srcdir) in \ |
b00612cc PB |
11386 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
11387 | *) topdir=`echo $(HOST_SUBDIR)/indent/ | \ | |
11388 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 11389 | esac; \ |
b00612cc PB |
11390 | srcdiroption="--srcdir=$${topdir}/indent"; \ |
11391 | libsrcdir="$$s/indent"; \ | |
4fa63067 | 11392 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 11393 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
4fa63067 | 11394 | || exit 1 |
b813574b | 11395 | @endif indent |
2a4cbe27 | 11396 | |
a7254363 PB |
11397 | |
11398 | ||
b813574b PB |
11399 | .PHONY: all-indent maybe-all-indent |
11400 | maybe-all-indent: | |
11401 | @if indent | |
d27cc32e | 11402 | TARGET-indent=all |
b813574b PB |
11403 | maybe-all-indent: all-indent |
11404 | all-indent: configure-indent | |
4fa63067 NN |
11405 | @r=`${PWD_COMMAND}`; export r; \ |
11406 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 11407 | $(HOST_EXPORTS) \ |
b00612cc PB |
11408 | (cd $(HOST_SUBDIR)/indent && \ |
11409 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-indent)) | |
b813574b | 11410 | @endif indent |
2a4cbe27 | 11411 | |
a7254363 | 11412 | |
b813574b PB |
11413 | .PHONY: check-indent maybe-check-indent |
11414 | maybe-check-indent: | |
11415 | @if indent | |
11416 | maybe-check-indent: check-indent | |
2a4cbe27 | 11417 | |
b813574b | 11418 | check-indent: |
4fa63067 | 11419 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 11420 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 11421 | $(HOST_EXPORTS) \ |
b00612cc PB |
11422 | (cd $(HOST_SUBDIR)/indent && \ |
11423 | $(MAKE) $(FLAGS_TO_PASS) check) | |
2a4cbe27 | 11424 | |
b813574b | 11425 | @endif indent |
2a4cbe27 | 11426 | |
b813574b PB |
11427 | .PHONY: install-indent maybe-install-indent |
11428 | maybe-install-indent: | |
11429 | @if indent | |
11430 | maybe-install-indent: install-indent | |
2a4cbe27 | 11431 | |
b813574b | 11432 | install-indent: installdirs |
4fa63067 | 11433 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 11434 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 11435 | $(HOST_EXPORTS) \ |
b00612cc | 11436 | (cd $(HOST_SUBDIR)/indent && \ |
2da12f12 | 11437 | $(MAKE) $(FLAGS_TO_PASS) install) |
2a4cbe27 | 11438 | |
b813574b | 11439 | @endif indent |
2a4cbe27 | 11440 | |
4fa63067 | 11441 | # Other targets (info, dvi, etc.) |
2a4cbe27 | 11442 | |
b813574b PB |
11443 | .PHONY: maybe-info-indent info-indent |
11444 | maybe-info-indent: | |
11445 | @if indent | |
11446 | maybe-info-indent: info-indent | |
4fa63067 | 11447 | |
b813574b PB |
11448 | info-indent: \ |
11449 | configure-indent | |
11450 | @[ -f ./indent/Makefile ] || exit 0; \ | |
b40e3958 L |
11451 | r=`${PWD_COMMAND}`; export r; \ |
11452 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
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 | 11457 | echo "Doing info in indent" ; \ |
b00612cc | 11458 | (cd $(HOST_SUBDIR)/indent && \ |
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 | info) \ |
2a4cbe27 NN |
11464 | || exit 1 |
11465 | ||
b813574b | 11466 | @endif indent |
2a4cbe27 | 11467 | |
b813574b PB |
11468 | .PHONY: maybe-dvi-indent dvi-indent |
11469 | maybe-dvi-indent: | |
11470 | @if indent | |
11471 | maybe-dvi-indent: dvi-indent | |
2a4cbe27 | 11472 | |
b813574b PB |
11473 | dvi-indent: \ |
11474 | configure-indent | |
11475 | @[ -f ./indent/Makefile ] || exit 0; \ | |
b40e3958 L |
11476 | r=`${PWD_COMMAND}`; export r; \ |
11477 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 11478 | $(HOST_EXPORTS) \ |
b813574b | 11479 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
11480 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
11481 | done; \ | |
b813574b | 11482 | echo "Doing dvi in indent" ; \ |
b00612cc | 11483 | (cd $(HOST_SUBDIR)/indent && \ |
2a4cbe27 NN |
11484 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
11485 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
11486 | "RANLIB=$${RANLIB}" \ | |
11487 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 11488 | dvi) \ |
2a4cbe27 NN |
11489 | || exit 1 |
11490 | ||
b813574b | 11491 | @endif indent |
2a4cbe27 | 11492 | |
6d389afc MS |
11493 | .PHONY: maybe-html-indent html-indent |
11494 | maybe-html-indent: | |
11495 | @if indent | |
11496 | maybe-html-indent: html-indent | |
11497 | ||
11498 | html-indent: \ | |
11499 | configure-indent | |
11500 | @[ -f ./indent/Makefile ] || exit 0; \ | |
11501 | r=`${PWD_COMMAND}`; export r; \ | |
11502 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
11503 | $(HOST_EXPORTS) \ |
11504 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
11505 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
11506 | done; \ | |
11507 | echo "Doing html in indent" ; \ | |
b00612cc | 11508 | (cd $(HOST_SUBDIR)/indent && \ |
6d389afc MS |
11509 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
11510 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
11511 | "RANLIB=$${RANLIB}" \ | |
11512 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
11513 | html) \ | |
11514 | || exit 1 | |
11515 | ||
11516 | @endif indent | |
11517 | ||
b813574b PB |
11518 | .PHONY: maybe-TAGS-indent TAGS-indent |
11519 | maybe-TAGS-indent: | |
11520 | @if indent | |
11521 | maybe-TAGS-indent: TAGS-indent | |
2a4cbe27 | 11522 | |
b813574b PB |
11523 | TAGS-indent: \ |
11524 | configure-indent | |
11525 | @[ -f ./indent/Makefile ] || exit 0; \ | |
b40e3958 L |
11526 | r=`${PWD_COMMAND}`; export r; \ |
11527 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 11528 | $(HOST_EXPORTS) \ |
b813574b | 11529 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
11530 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
11531 | done; \ | |
b813574b | 11532 | echo "Doing TAGS in indent" ; \ |
b00612cc | 11533 | (cd $(HOST_SUBDIR)/indent && \ |
2a4cbe27 NN |
11534 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
11535 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
11536 | "RANLIB=$${RANLIB}" \ | |
11537 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 11538 | TAGS) \ |
2a4cbe27 NN |
11539 | || exit 1 |
11540 | ||
b813574b | 11541 | @endif indent |
2a4cbe27 | 11542 | |
b813574b PB |
11543 | .PHONY: maybe-install-info-indent install-info-indent |
11544 | maybe-install-info-indent: | |
11545 | @if indent | |
11546 | maybe-install-info-indent: install-info-indent | |
2a4cbe27 | 11547 | |
b813574b PB |
11548 | install-info-indent: \ |
11549 | configure-indent \ | |
11550 | info-indent | |
11551 | @[ -f ./indent/Makefile ] || exit 0; \ | |
b40e3958 L |
11552 | r=`${PWD_COMMAND}`; export r; \ |
11553 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 11554 | $(HOST_EXPORTS) \ |
b813574b | 11555 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
11556 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
11557 | done; \ | |
b813574b | 11558 | echo "Doing install-info in indent" ; \ |
b00612cc | 11559 | (cd $(HOST_SUBDIR)/indent && \ |
2a4cbe27 NN |
11560 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
11561 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
11562 | "RANLIB=$${RANLIB}" \ | |
11563 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 11564 | install-info) \ |
2a4cbe27 NN |
11565 | || exit 1 |
11566 | ||
b813574b | 11567 | @endif indent |
2a4cbe27 | 11568 | |
b813574b PB |
11569 | .PHONY: maybe-installcheck-indent installcheck-indent |
11570 | maybe-installcheck-indent: | |
11571 | @if indent | |
11572 | maybe-installcheck-indent: installcheck-indent | |
2a4cbe27 | 11573 | |
b813574b PB |
11574 | installcheck-indent: \ |
11575 | configure-indent | |
11576 | @[ -f ./indent/Makefile ] || exit 0; \ | |
b40e3958 L |
11577 | r=`${PWD_COMMAND}`; export r; \ |
11578 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 11579 | $(HOST_EXPORTS) \ |
b813574b | 11580 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
11581 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
11582 | done; \ | |
b813574b | 11583 | echo "Doing installcheck in indent" ; \ |
b00612cc | 11584 | (cd $(HOST_SUBDIR)/indent && \ |
2a4cbe27 NN |
11585 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
11586 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
11587 | "RANLIB=$${RANLIB}" \ | |
11588 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 11589 | installcheck) \ |
2a4cbe27 NN |
11590 | || exit 1 |
11591 | ||
b813574b | 11592 | @endif indent |
2a4cbe27 | 11593 | |
b813574b PB |
11594 | .PHONY: maybe-mostlyclean-indent mostlyclean-indent |
11595 | maybe-mostlyclean-indent: | |
11596 | @if indent | |
11597 | maybe-mostlyclean-indent: mostlyclean-indent | |
2a4cbe27 | 11598 | |
b813574b PB |
11599 | mostlyclean-indent: |
11600 | @[ -f ./indent/Makefile ] || exit 0; \ | |
b40e3958 L |
11601 | r=`${PWD_COMMAND}`; export r; \ |
11602 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 11603 | $(HOST_EXPORTS) \ |
b813574b | 11604 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
11605 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
11606 | done; \ | |
b813574b | 11607 | echo "Doing mostlyclean in indent" ; \ |
b00612cc | 11608 | (cd $(HOST_SUBDIR)/indent && \ |
2a4cbe27 NN |
11609 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
11610 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
11611 | "RANLIB=$${RANLIB}" \ | |
11612 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 11613 | mostlyclean) \ |
2a4cbe27 NN |
11614 | || exit 1 |
11615 | ||
b813574b | 11616 | @endif indent |
2a4cbe27 | 11617 | |
b813574b PB |
11618 | .PHONY: maybe-clean-indent clean-indent |
11619 | maybe-clean-indent: | |
11620 | @if indent | |
11621 | maybe-clean-indent: clean-indent | |
2a4cbe27 | 11622 | |
b813574b PB |
11623 | clean-indent: |
11624 | @[ -f ./indent/Makefile ] || exit 0; \ | |
b40e3958 L |
11625 | r=`${PWD_COMMAND}`; export r; \ |
11626 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 11627 | $(HOST_EXPORTS) \ |
b813574b | 11628 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
11629 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
11630 | done; \ | |
b813574b | 11631 | echo "Doing clean in indent" ; \ |
b00612cc | 11632 | (cd $(HOST_SUBDIR)/indent && \ |
2a4cbe27 NN |
11633 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
11634 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
11635 | "RANLIB=$${RANLIB}" \ | |
11636 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 11637 | clean) \ |
2a4cbe27 NN |
11638 | || exit 1 |
11639 | ||
b813574b | 11640 | @endif indent |
2a4cbe27 | 11641 | |
b813574b PB |
11642 | .PHONY: maybe-distclean-indent distclean-indent |
11643 | maybe-distclean-indent: | |
11644 | @if indent | |
11645 | maybe-distclean-indent: distclean-indent | |
2a4cbe27 | 11646 | |
b813574b PB |
11647 | distclean-indent: |
11648 | @[ -f ./indent/Makefile ] || exit 0; \ | |
b40e3958 L |
11649 | r=`${PWD_COMMAND}`; export r; \ |
11650 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 11651 | $(HOST_EXPORTS) \ |
b813574b | 11652 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
11653 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
11654 | done; \ | |
b813574b | 11655 | echo "Doing distclean in indent" ; \ |
b00612cc | 11656 | (cd $(HOST_SUBDIR)/indent && \ |
2a4cbe27 NN |
11657 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
11658 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
11659 | "RANLIB=$${RANLIB}" \ | |
11660 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 11661 | distclean) \ |
2a4cbe27 NN |
11662 | || exit 1 |
11663 | ||
b813574b | 11664 | @endif indent |
2a4cbe27 | 11665 | |
b813574b PB |
11666 | .PHONY: maybe-maintainer-clean-indent maintainer-clean-indent |
11667 | maybe-maintainer-clean-indent: | |
11668 | @if indent | |
11669 | maybe-maintainer-clean-indent: maintainer-clean-indent | |
2a4cbe27 | 11670 | |
b813574b PB |
11671 | maintainer-clean-indent: |
11672 | @[ -f ./indent/Makefile ] || exit 0; \ | |
b40e3958 L |
11673 | r=`${PWD_COMMAND}`; export r; \ |
11674 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 11675 | $(HOST_EXPORTS) \ |
b813574b | 11676 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
11677 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
11678 | done; \ | |
b813574b | 11679 | echo "Doing maintainer-clean in indent" ; \ |
b00612cc | 11680 | (cd $(HOST_SUBDIR)/indent && \ |
2a4cbe27 NN |
11681 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
11682 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
11683 | "RANLIB=$${RANLIB}" \ | |
11684 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 11685 | maintainer-clean) \ |
2a4cbe27 NN |
11686 | || exit 1 |
11687 | ||
b813574b | 11688 | @endif indent |
2a4cbe27 | 11689 | |
a2592b1b | 11690 | |
a7254363 | 11691 | |
b813574b PB |
11692 | .PHONY: configure-intl maybe-configure-intl |
11693 | maybe-configure-intl: | |
11694 | @if intl | |
11695 | maybe-configure-intl: configure-intl | |
a7254363 | 11696 | configure-intl: |
72b2455a | 11697 | @test -f stage_last && exit 0; \ |
b00612cc PB |
11698 | test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \ |
11699 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \ | |
a2592b1b DD |
11700 | r=`${PWD_COMMAND}`; export r; \ |
11701 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 11702 | $(HOST_EXPORTS) \ |
a7254363 PB |
11703 | echo Configuring in $(HOST_SUBDIR)/intl; \ |
11704 | cd "$(HOST_SUBDIR)/intl" || exit 1; \ | |
4fa63067 | 11705 | case $(srcdir) in \ |
b00612cc PB |
11706 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
11707 | *) topdir=`echo $(HOST_SUBDIR)/intl/ | \ | |
11708 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 11709 | esac; \ |
b00612cc PB |
11710 | srcdiroption="--srcdir=$${topdir}/intl"; \ |
11711 | libsrcdir="$$s/intl"; \ | |
4fa63067 | 11712 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 11713 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
a2592b1b | 11714 | || exit 1 |
b813574b | 11715 | @endif intl |
a2592b1b | 11716 | |
a7254363 PB |
11717 | |
11718 | ||
b813574b PB |
11719 | .PHONY: all-intl maybe-all-intl |
11720 | maybe-all-intl: | |
11721 | @if intl | |
d27cc32e | 11722 | TARGET-intl=all |
b813574b PB |
11723 | maybe-all-intl: all-intl |
11724 | all-intl: configure-intl | |
72b2455a PB |
11725 | @test -f stage_last && exit 0; \ |
11726 | r=`${PWD_COMMAND}`; export r; \ | |
4fa63067 | 11727 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 11728 | $(HOST_EXPORTS) \ |
b00612cc PB |
11729 | (cd $(HOST_SUBDIR)/intl && \ |
11730 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-intl)) | |
b813574b | 11731 | @endif intl |
a2592b1b | 11732 | |
a7254363 | 11733 | |
b813574b PB |
11734 | .PHONY: check-intl maybe-check-intl |
11735 | maybe-check-intl: | |
11736 | @if intl | |
11737 | maybe-check-intl: check-intl | |
2a4cbe27 | 11738 | |
b813574b | 11739 | check-intl: |
4fa63067 NN |
11740 | @r=`${PWD_COMMAND}`; export r; \ |
11741 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 11742 | $(HOST_EXPORTS) \ |
b00612cc PB |
11743 | (cd $(HOST_SUBDIR)/intl && \ |
11744 | $(MAKE) $(FLAGS_TO_PASS) check) | |
2a4cbe27 | 11745 | |
b813574b | 11746 | @endif intl |
2a4cbe27 | 11747 | |
b813574b PB |
11748 | .PHONY: install-intl maybe-install-intl |
11749 | maybe-install-intl: | |
11750 | @if intl | |
11751 | maybe-install-intl: install-intl | |
2a4cbe27 | 11752 | |
b813574b | 11753 | install-intl: installdirs |
4fa63067 NN |
11754 | @r=`${PWD_COMMAND}`; export r; \ |
11755 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 11756 | $(HOST_EXPORTS) \ |
b00612cc | 11757 | (cd $(HOST_SUBDIR)/intl && \ |
2da12f12 | 11758 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 11759 | |
b813574b | 11760 | @endif intl |
4fa63067 NN |
11761 | |
11762 | # Other targets (info, dvi, etc.) | |
11763 | ||
b813574b PB |
11764 | .PHONY: maybe-info-intl info-intl |
11765 | maybe-info-intl: | |
11766 | @if intl | |
11767 | maybe-info-intl: info-intl | |
4fa63067 | 11768 | |
b813574b PB |
11769 | info-intl: \ |
11770 | configure-intl | |
11771 | @[ -f ./intl/Makefile ] || exit 0; \ | |
b40e3958 L |
11772 | r=`${PWD_COMMAND}`; export r; \ |
11773 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 11774 | $(HOST_EXPORTS) \ |
b813574b | 11775 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
11776 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
11777 | done; \ | |
b813574b | 11778 | echo "Doing info in intl" ; \ |
b00612cc | 11779 | (cd $(HOST_SUBDIR)/intl && \ |
2a4cbe27 NN |
11780 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
11781 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
11782 | "RANLIB=$${RANLIB}" \ | |
11783 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 11784 | info) \ |
2a4cbe27 NN |
11785 | || exit 1 |
11786 | ||
b813574b | 11787 | @endif intl |
2a4cbe27 | 11788 | |
b813574b PB |
11789 | .PHONY: maybe-dvi-intl dvi-intl |
11790 | maybe-dvi-intl: | |
11791 | @if intl | |
11792 | maybe-dvi-intl: dvi-intl | |
2a4cbe27 | 11793 | |
b813574b PB |
11794 | dvi-intl: \ |
11795 | configure-intl | |
11796 | @[ -f ./intl/Makefile ] || exit 0; \ | |
11797 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 11798 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 11799 | $(HOST_EXPORTS) \ |
b813574b | 11800 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
11801 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
11802 | done; \ | |
b813574b | 11803 | echo "Doing dvi in intl" ; \ |
b00612cc | 11804 | (cd $(HOST_SUBDIR)/intl && \ |
2a4cbe27 NN |
11805 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
11806 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
11807 | "RANLIB=$${RANLIB}" \ | |
11808 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 11809 | dvi) \ |
2a4cbe27 NN |
11810 | || exit 1 |
11811 | ||
b813574b | 11812 | @endif intl |
2a4cbe27 | 11813 | |
6d389afc MS |
11814 | .PHONY: maybe-html-intl html-intl |
11815 | maybe-html-intl: | |
11816 | @if intl | |
11817 | maybe-html-intl: html-intl | |
11818 | ||
11819 | html-intl: \ | |
11820 | configure-intl | |
11821 | @[ -f ./intl/Makefile ] || exit 0; \ | |
11822 | r=`${PWD_COMMAND}`; export r; \ | |
11823 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
11824 | $(HOST_EXPORTS) \ |
11825 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
11826 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
11827 | done; \ | |
11828 | echo "Doing html in intl" ; \ | |
b00612cc | 11829 | (cd $(HOST_SUBDIR)/intl && \ |
6d389afc MS |
11830 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
11831 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
11832 | "RANLIB=$${RANLIB}" \ | |
11833 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
11834 | html) \ | |
11835 | || exit 1 | |
11836 | ||
11837 | @endif intl | |
11838 | ||
b813574b PB |
11839 | .PHONY: maybe-TAGS-intl TAGS-intl |
11840 | maybe-TAGS-intl: | |
11841 | @if intl | |
11842 | maybe-TAGS-intl: TAGS-intl | |
2a4cbe27 | 11843 | |
b813574b PB |
11844 | TAGS-intl: \ |
11845 | configure-intl | |
11846 | @[ -f ./intl/Makefile ] || exit 0; \ | |
b40e3958 L |
11847 | r=`${PWD_COMMAND}`; export r; \ |
11848 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 11849 | $(HOST_EXPORTS) \ |
b813574b | 11850 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
11851 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
11852 | done; \ | |
b813574b | 11853 | echo "Doing TAGS in intl" ; \ |
b00612cc | 11854 | (cd $(HOST_SUBDIR)/intl && \ |
2a4cbe27 NN |
11855 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
11856 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
11857 | "RANLIB=$${RANLIB}" \ | |
11858 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 11859 | TAGS) \ |
2a4cbe27 NN |
11860 | || exit 1 |
11861 | ||
b813574b | 11862 | @endif intl |
2a4cbe27 | 11863 | |
b813574b PB |
11864 | .PHONY: maybe-install-info-intl install-info-intl |
11865 | maybe-install-info-intl: | |
11866 | @if intl | |
11867 | maybe-install-info-intl: install-info-intl | |
2a4cbe27 | 11868 | |
b813574b PB |
11869 | install-info-intl: \ |
11870 | configure-intl \ | |
11871 | info-intl | |
11872 | @[ -f ./intl/Makefile ] || exit 0; \ | |
b40e3958 L |
11873 | r=`${PWD_COMMAND}`; export r; \ |
11874 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 11875 | $(HOST_EXPORTS) \ |
b813574b | 11876 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
11877 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
11878 | done; \ | |
b813574b | 11879 | echo "Doing install-info in intl" ; \ |
b00612cc | 11880 | (cd $(HOST_SUBDIR)/intl && \ |
2a4cbe27 NN |
11881 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
11882 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
11883 | "RANLIB=$${RANLIB}" \ | |
11884 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 11885 | install-info) \ |
2a4cbe27 NN |
11886 | || exit 1 |
11887 | ||
b813574b | 11888 | @endif intl |
2a4cbe27 | 11889 | |
b813574b PB |
11890 | .PHONY: maybe-installcheck-intl installcheck-intl |
11891 | maybe-installcheck-intl: | |
11892 | @if intl | |
11893 | maybe-installcheck-intl: installcheck-intl | |
2a4cbe27 | 11894 | |
b813574b PB |
11895 | installcheck-intl: \ |
11896 | configure-intl | |
11897 | @[ -f ./intl/Makefile ] || exit 0; \ | |
b40e3958 L |
11898 | r=`${PWD_COMMAND}`; export r; \ |
11899 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 11900 | $(HOST_EXPORTS) \ |
b813574b | 11901 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
11902 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
11903 | done; \ | |
b813574b | 11904 | echo "Doing installcheck in intl" ; \ |
b00612cc | 11905 | (cd $(HOST_SUBDIR)/intl && \ |
2a4cbe27 NN |
11906 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
11907 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
11908 | "RANLIB=$${RANLIB}" \ | |
11909 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 11910 | installcheck) \ |
2a4cbe27 NN |
11911 | || exit 1 |
11912 | ||
b813574b | 11913 | @endif intl |
2a4cbe27 | 11914 | |
b813574b PB |
11915 | .PHONY: maybe-mostlyclean-intl mostlyclean-intl |
11916 | maybe-mostlyclean-intl: | |
11917 | @if intl | |
11918 | maybe-mostlyclean-intl: mostlyclean-intl | |
2a4cbe27 | 11919 | |
b813574b PB |
11920 | mostlyclean-intl: |
11921 | @[ -f ./intl/Makefile ] || exit 0; \ | |
11922 | r=`${PWD_COMMAND}`; export r; \ | |
11923 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b813574b PB |
11924 | $(HOST_EXPORTS) \ |
11925 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
11926 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
11927 | done; \ | |
11928 | echo "Doing mostlyclean in intl" ; \ | |
b00612cc | 11929 | (cd $(HOST_SUBDIR)/intl && \ |
b813574b PB |
11930 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
11931 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
11932 | "RANLIB=$${RANLIB}" \ | |
11933 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
11934 | mostlyclean) \ | |
11935 | || exit 1 | |
4fa63067 | 11936 | |
b813574b | 11937 | @endif intl |
4fa63067 | 11938 | |
b813574b PB |
11939 | .PHONY: maybe-clean-intl clean-intl |
11940 | maybe-clean-intl: | |
11941 | @if intl | |
11942 | maybe-clean-intl: clean-intl | |
4fa63067 | 11943 | |
b813574b PB |
11944 | clean-intl: |
11945 | @[ -f ./intl/Makefile ] || exit 0; \ | |
b40e3958 L |
11946 | r=`${PWD_COMMAND}`; export r; \ |
11947 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 11948 | $(HOST_EXPORTS) \ |
b813574b | 11949 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
11950 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
11951 | done; \ | |
b813574b | 11952 | echo "Doing clean in intl" ; \ |
b00612cc | 11953 | (cd $(HOST_SUBDIR)/intl && \ |
2a4cbe27 NN |
11954 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
11955 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
11956 | "RANLIB=$${RANLIB}" \ | |
11957 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 11958 | clean) \ |
2a4cbe27 NN |
11959 | || exit 1 |
11960 | ||
b813574b | 11961 | @endif intl |
2a4cbe27 | 11962 | |
b813574b PB |
11963 | .PHONY: maybe-distclean-intl distclean-intl |
11964 | maybe-distclean-intl: | |
11965 | @if intl | |
11966 | maybe-distclean-intl: distclean-intl | |
2a4cbe27 | 11967 | |
b813574b PB |
11968 | distclean-intl: |
11969 | @[ -f ./intl/Makefile ] || exit 0; \ | |
b40e3958 L |
11970 | r=`${PWD_COMMAND}`; export r; \ |
11971 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 11972 | $(HOST_EXPORTS) \ |
b813574b | 11973 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
11974 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
11975 | done; \ | |
b813574b | 11976 | echo "Doing distclean in intl" ; \ |
b00612cc | 11977 | (cd $(HOST_SUBDIR)/intl && \ |
2a4cbe27 NN |
11978 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
11979 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
11980 | "RANLIB=$${RANLIB}" \ | |
11981 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 11982 | distclean) \ |
2a4cbe27 NN |
11983 | || exit 1 |
11984 | ||
b813574b | 11985 | @endif intl |
2a4cbe27 | 11986 | |
b813574b PB |
11987 | .PHONY: maybe-maintainer-clean-intl maintainer-clean-intl |
11988 | maybe-maintainer-clean-intl: | |
11989 | @if intl | |
11990 | maybe-maintainer-clean-intl: maintainer-clean-intl | |
2a4cbe27 | 11991 | |
b813574b PB |
11992 | maintainer-clean-intl: |
11993 | @[ -f ./intl/Makefile ] || exit 0; \ | |
b40e3958 L |
11994 | r=`${PWD_COMMAND}`; export r; \ |
11995 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 11996 | $(HOST_EXPORTS) \ |
b813574b | 11997 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
11998 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
11999 | done; \ | |
b813574b | 12000 | echo "Doing maintainer-clean in intl" ; \ |
b00612cc | 12001 | (cd $(HOST_SUBDIR)/intl && \ |
2a4cbe27 NN |
12002 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12003 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12004 | "RANLIB=$${RANLIB}" \ | |
12005 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 12006 | maintainer-clean) \ |
2a4cbe27 NN |
12007 | || exit 1 |
12008 | ||
b813574b | 12009 | @endif intl |
2a4cbe27 | 12010 | |
2a4cbe27 | 12011 | |
a7254363 | 12012 | |
b813574b PB |
12013 | .PHONY: configure-tcl maybe-configure-tcl |
12014 | maybe-configure-tcl: | |
12015 | @if tcl | |
12016 | maybe-configure-tcl: configure-tcl | |
a7254363 | 12017 | configure-tcl: |
b00612cc PB |
12018 | @test ! -f $(HOST_SUBDIR)/tcl/Makefile || exit 0; \ |
12019 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tcl ; \ | |
b40e3958 L |
12020 | r=`${PWD_COMMAND}`; export r; \ |
12021 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12022 | $(HOST_EXPORTS) \ |
a7254363 PB |
12023 | echo Configuring in $(HOST_SUBDIR)/tcl; \ |
12024 | cd "$(HOST_SUBDIR)/tcl" || exit 1; \ | |
4fa63067 | 12025 | case $(srcdir) in \ |
b00612cc PB |
12026 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
12027 | *) topdir=`echo $(HOST_SUBDIR)/tcl/ | \ | |
12028 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 12029 | esac; \ |
b00612cc PB |
12030 | srcdiroption="--srcdir=$${topdir}/tcl"; \ |
12031 | libsrcdir="$$s/tcl"; \ | |
4fa63067 | 12032 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 12033 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
2a4cbe27 | 12034 | || exit 1 |
b813574b | 12035 | @endif tcl |
2a4cbe27 | 12036 | |
a7254363 PB |
12037 | |
12038 | ||
b813574b PB |
12039 | .PHONY: all-tcl maybe-all-tcl |
12040 | maybe-all-tcl: | |
12041 | @if tcl | |
d27cc32e | 12042 | TARGET-tcl=all |
b813574b PB |
12043 | maybe-all-tcl: all-tcl |
12044 | all-tcl: configure-tcl | |
4fa63067 NN |
12045 | @r=`${PWD_COMMAND}`; export r; \ |
12046 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12047 | $(HOST_EXPORTS) \ |
b00612cc PB |
12048 | (cd $(HOST_SUBDIR)/tcl && \ |
12049 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-tcl)) | |
b813574b | 12050 | @endif tcl |
4fa63067 | 12051 | |
a7254363 | 12052 | |
b813574b PB |
12053 | .PHONY: check-tcl maybe-check-tcl |
12054 | maybe-check-tcl: | |
12055 | @if tcl | |
12056 | maybe-check-tcl: check-tcl | |
2a4cbe27 | 12057 | |
b813574b | 12058 | check-tcl: |
4fa63067 NN |
12059 | @r=`${PWD_COMMAND}`; export r; \ |
12060 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12061 | $(HOST_EXPORTS) \ |
b00612cc PB |
12062 | (cd $(HOST_SUBDIR)/tcl && \ |
12063 | $(MAKE) $(FLAGS_TO_PASS) check) | |
2a4cbe27 | 12064 | |
b813574b | 12065 | @endif tcl |
4fa63067 | 12066 | |
b813574b PB |
12067 | .PHONY: install-tcl maybe-install-tcl |
12068 | maybe-install-tcl: | |
12069 | @if tcl | |
12070 | maybe-install-tcl: install-tcl | |
4fa63067 | 12071 | |
b813574b | 12072 | install-tcl: installdirs |
4fa63067 NN |
12073 | @r=`${PWD_COMMAND}`; export r; \ |
12074 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12075 | $(HOST_EXPORTS) \ |
b00612cc | 12076 | (cd $(HOST_SUBDIR)/tcl && \ |
2da12f12 | 12077 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 12078 | |
b813574b | 12079 | @endif tcl |
4fa63067 NN |
12080 | |
12081 | # Other targets (info, dvi, etc.) | |
12082 | ||
b813574b PB |
12083 | .PHONY: maybe-info-tcl info-tcl |
12084 | maybe-info-tcl: | |
12085 | @if tcl | |
12086 | maybe-info-tcl: info-tcl | |
4fa63067 | 12087 | |
b813574b PB |
12088 | info-tcl: \ |
12089 | configure-tcl | |
12090 | @[ -f ./tcl/Makefile ] || exit 0; \ | |
b40e3958 L |
12091 | r=`${PWD_COMMAND}`; export r; \ |
12092 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12093 | $(HOST_EXPORTS) \ |
b813574b | 12094 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
12095 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12096 | done; \ | |
b813574b | 12097 | echo "Doing info in tcl" ; \ |
b00612cc | 12098 | (cd $(HOST_SUBDIR)/tcl && \ |
2a4cbe27 NN |
12099 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12100 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12101 | "RANLIB=$${RANLIB}" \ | |
12102 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 12103 | info) \ |
2a4cbe27 NN |
12104 | || exit 1 |
12105 | ||
b813574b | 12106 | @endif tcl |
2a4cbe27 | 12107 | |
b813574b PB |
12108 | .PHONY: maybe-dvi-tcl dvi-tcl |
12109 | maybe-dvi-tcl: | |
12110 | @if tcl | |
12111 | maybe-dvi-tcl: dvi-tcl | |
2a4cbe27 | 12112 | |
b813574b PB |
12113 | dvi-tcl: \ |
12114 | configure-tcl | |
12115 | @[ -f ./tcl/Makefile ] || exit 0; \ | |
b40e3958 L |
12116 | r=`${PWD_COMMAND}`; export r; \ |
12117 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12118 | $(HOST_EXPORTS) \ |
b813574b | 12119 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
12120 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12121 | done; \ | |
b813574b | 12122 | echo "Doing dvi in tcl" ; \ |
b00612cc | 12123 | (cd $(HOST_SUBDIR)/tcl && \ |
2a4cbe27 NN |
12124 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12125 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12126 | "RANLIB=$${RANLIB}" \ | |
12127 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 12128 | dvi) \ |
2a4cbe27 NN |
12129 | || exit 1 |
12130 | ||
b813574b | 12131 | @endif tcl |
2a4cbe27 | 12132 | |
6d389afc MS |
12133 | .PHONY: maybe-html-tcl html-tcl |
12134 | maybe-html-tcl: | |
12135 | @if tcl | |
12136 | maybe-html-tcl: html-tcl | |
12137 | ||
12138 | html-tcl: \ | |
12139 | configure-tcl | |
12140 | @[ -f ./tcl/Makefile ] || exit 0; \ | |
12141 | r=`${PWD_COMMAND}`; export r; \ | |
12142 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
12143 | $(HOST_EXPORTS) \ |
12144 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
12145 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
12146 | done; \ | |
12147 | echo "Doing html in tcl" ; \ | |
b00612cc | 12148 | (cd $(HOST_SUBDIR)/tcl && \ |
6d389afc MS |
12149 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12150 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12151 | "RANLIB=$${RANLIB}" \ | |
12152 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
12153 | html) \ | |
12154 | || exit 1 | |
12155 | ||
12156 | @endif tcl | |
12157 | ||
b813574b PB |
12158 | .PHONY: maybe-TAGS-tcl TAGS-tcl |
12159 | maybe-TAGS-tcl: | |
12160 | @if tcl | |
12161 | maybe-TAGS-tcl: TAGS-tcl | |
2a4cbe27 | 12162 | |
b813574b PB |
12163 | TAGS-tcl: \ |
12164 | configure-tcl | |
12165 | @[ -f ./tcl/Makefile ] || exit 0; \ | |
b40e3958 L |
12166 | r=`${PWD_COMMAND}`; export r; \ |
12167 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12168 | $(HOST_EXPORTS) \ |
b813574b | 12169 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
12170 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12171 | done; \ | |
b813574b | 12172 | echo "Doing TAGS in tcl" ; \ |
b00612cc | 12173 | (cd $(HOST_SUBDIR)/tcl && \ |
2a4cbe27 NN |
12174 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12175 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12176 | "RANLIB=$${RANLIB}" \ | |
12177 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 12178 | TAGS) \ |
2a4cbe27 NN |
12179 | || exit 1 |
12180 | ||
b813574b | 12181 | @endif tcl |
2a4cbe27 | 12182 | |
b813574b PB |
12183 | .PHONY: maybe-install-info-tcl install-info-tcl |
12184 | maybe-install-info-tcl: | |
12185 | @if tcl | |
12186 | maybe-install-info-tcl: install-info-tcl | |
2a4cbe27 | 12187 | |
b813574b PB |
12188 | install-info-tcl: \ |
12189 | configure-tcl \ | |
12190 | info-tcl | |
12191 | @[ -f ./tcl/Makefile ] || exit 0; \ | |
b40e3958 L |
12192 | r=`${PWD_COMMAND}`; export r; \ |
12193 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12194 | $(HOST_EXPORTS) \ |
b813574b | 12195 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
12196 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12197 | done; \ | |
b813574b | 12198 | echo "Doing install-info in tcl" ; \ |
b00612cc | 12199 | (cd $(HOST_SUBDIR)/tcl && \ |
2a4cbe27 NN |
12200 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12201 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12202 | "RANLIB=$${RANLIB}" \ | |
12203 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 12204 | install-info) \ |
2a4cbe27 NN |
12205 | || exit 1 |
12206 | ||
b813574b | 12207 | @endif tcl |
2a4cbe27 | 12208 | |
b813574b PB |
12209 | .PHONY: maybe-installcheck-tcl installcheck-tcl |
12210 | maybe-installcheck-tcl: | |
12211 | @if tcl | |
12212 | maybe-installcheck-tcl: installcheck-tcl | |
2a4cbe27 | 12213 | |
b813574b PB |
12214 | installcheck-tcl: \ |
12215 | configure-tcl | |
12216 | @[ -f ./tcl/Makefile ] || exit 0; \ | |
b40e3958 L |
12217 | r=`${PWD_COMMAND}`; export r; \ |
12218 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12219 | $(HOST_EXPORTS) \ |
b813574b | 12220 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
12221 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12222 | done; \ | |
b813574b | 12223 | echo "Doing installcheck in tcl" ; \ |
b00612cc | 12224 | (cd $(HOST_SUBDIR)/tcl && \ |
2a4cbe27 NN |
12225 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12226 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12227 | "RANLIB=$${RANLIB}" \ | |
12228 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 12229 | installcheck) \ |
2a4cbe27 NN |
12230 | || exit 1 |
12231 | ||
b813574b | 12232 | @endif tcl |
2a4cbe27 | 12233 | |
b813574b PB |
12234 | .PHONY: maybe-mostlyclean-tcl mostlyclean-tcl |
12235 | maybe-mostlyclean-tcl: | |
12236 | @if tcl | |
12237 | maybe-mostlyclean-tcl: mostlyclean-tcl | |
2a4cbe27 | 12238 | |
b813574b PB |
12239 | # tcl doesn't support mostlyclean. |
12240 | mostlyclean-tcl: | |
2a4cbe27 | 12241 | |
b813574b | 12242 | @endif tcl |
2a4cbe27 | 12243 | |
b813574b PB |
12244 | .PHONY: maybe-clean-tcl clean-tcl |
12245 | maybe-clean-tcl: | |
12246 | @if tcl | |
12247 | maybe-clean-tcl: clean-tcl | |
2a4cbe27 | 12248 | |
b813574b PB |
12249 | clean-tcl: |
12250 | @[ -f ./tcl/Makefile ] || exit 0; \ | |
b40e3958 L |
12251 | r=`${PWD_COMMAND}`; export r; \ |
12252 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12253 | $(HOST_EXPORTS) \ |
b813574b | 12254 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
12255 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12256 | done; \ | |
b813574b | 12257 | echo "Doing clean in tcl" ; \ |
b00612cc | 12258 | (cd $(HOST_SUBDIR)/tcl && \ |
2a4cbe27 NN |
12259 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12260 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12261 | "RANLIB=$${RANLIB}" \ | |
12262 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 12263 | clean) \ |
2a4cbe27 NN |
12264 | || exit 1 |
12265 | ||
b813574b | 12266 | @endif tcl |
2a4cbe27 | 12267 | |
b813574b PB |
12268 | .PHONY: maybe-distclean-tcl distclean-tcl |
12269 | maybe-distclean-tcl: | |
12270 | @if tcl | |
12271 | maybe-distclean-tcl: distclean-tcl | |
2a4cbe27 | 12272 | |
b813574b PB |
12273 | distclean-tcl: |
12274 | @[ -f ./tcl/Makefile ] || exit 0; \ | |
b40e3958 L |
12275 | r=`${PWD_COMMAND}`; export r; \ |
12276 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12277 | $(HOST_EXPORTS) \ |
b813574b | 12278 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
12279 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12280 | done; \ | |
b813574b | 12281 | echo "Doing distclean in tcl" ; \ |
b00612cc | 12282 | (cd $(HOST_SUBDIR)/tcl && \ |
2a4cbe27 NN |
12283 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12284 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12285 | "RANLIB=$${RANLIB}" \ | |
12286 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 12287 | distclean) \ |
2a4cbe27 NN |
12288 | || exit 1 |
12289 | ||
b813574b | 12290 | @endif tcl |
2a4cbe27 | 12291 | |
b813574b PB |
12292 | .PHONY: maybe-maintainer-clean-tcl maintainer-clean-tcl |
12293 | maybe-maintainer-clean-tcl: | |
12294 | @if tcl | |
12295 | maybe-maintainer-clean-tcl: maintainer-clean-tcl | |
2a4cbe27 | 12296 | |
b813574b PB |
12297 | maintainer-clean-tcl: |
12298 | @[ -f ./tcl/Makefile ] || exit 0; \ | |
b40e3958 L |
12299 | r=`${PWD_COMMAND}`; export r; \ |
12300 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12301 | $(HOST_EXPORTS) \ |
b813574b | 12302 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
12303 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12304 | done; \ | |
b813574b | 12305 | echo "Doing maintainer-clean in tcl" ; \ |
b00612cc | 12306 | (cd $(HOST_SUBDIR)/tcl && \ |
2a4cbe27 NN |
12307 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12308 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12309 | "RANLIB=$${RANLIB}" \ | |
12310 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 12311 | maintainer-clean) \ |
2a4cbe27 NN |
12312 | || exit 1 |
12313 | ||
b813574b | 12314 | @endif tcl |
2a4cbe27 | 12315 | |
2a4cbe27 | 12316 | |
a7254363 | 12317 | |
b813574b PB |
12318 | .PHONY: configure-itcl maybe-configure-itcl |
12319 | maybe-configure-itcl: | |
12320 | @if itcl | |
12321 | maybe-configure-itcl: configure-itcl | |
a7254363 | 12322 | configure-itcl: |
b00612cc PB |
12323 | @test ! -f $(HOST_SUBDIR)/itcl/Makefile || exit 0; \ |
12324 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/itcl ; \ | |
4fa63067 NN |
12325 | r=`${PWD_COMMAND}`; export r; \ |
12326 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12327 | $(HOST_EXPORTS) \ |
a7254363 PB |
12328 | echo Configuring in $(HOST_SUBDIR)/itcl; \ |
12329 | cd "$(HOST_SUBDIR)/itcl" || exit 1; \ | |
4fa63067 | 12330 | case $(srcdir) in \ |
b00612cc PB |
12331 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
12332 | *) topdir=`echo $(HOST_SUBDIR)/itcl/ | \ | |
12333 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 12334 | esac; \ |
b00612cc PB |
12335 | srcdiroption="--srcdir=$${topdir}/itcl"; \ |
12336 | libsrcdir="$$s/itcl"; \ | |
4fa63067 | 12337 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 12338 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
4fa63067 | 12339 | || exit 1 |
b813574b | 12340 | @endif itcl |
4fa63067 | 12341 | |
a7254363 PB |
12342 | |
12343 | ||
b813574b PB |
12344 | .PHONY: all-itcl maybe-all-itcl |
12345 | maybe-all-itcl: | |
12346 | @if itcl | |
d27cc32e | 12347 | TARGET-itcl=all |
b813574b PB |
12348 | maybe-all-itcl: all-itcl |
12349 | all-itcl: configure-itcl | |
4fa63067 NN |
12350 | @r=`${PWD_COMMAND}`; export r; \ |
12351 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12352 | $(HOST_EXPORTS) \ |
b00612cc PB |
12353 | (cd $(HOST_SUBDIR)/itcl && \ |
12354 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-itcl)) | |
b813574b | 12355 | @endif itcl |
4fa63067 | 12356 | |
a7254363 | 12357 | |
b813574b PB |
12358 | .PHONY: check-itcl maybe-check-itcl |
12359 | maybe-check-itcl: | |
12360 | @if itcl | |
12361 | maybe-check-itcl: check-itcl | |
4fa63067 | 12362 | |
b813574b | 12363 | check-itcl: |
4fa63067 NN |
12364 | @r=`${PWD_COMMAND}`; export r; \ |
12365 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12366 | $(HOST_EXPORTS) \ |
b00612cc PB |
12367 | (cd $(HOST_SUBDIR)/itcl && \ |
12368 | $(MAKE) $(FLAGS_TO_PASS) check) | |
4fa63067 | 12369 | |
b813574b | 12370 | @endif itcl |
4fa63067 | 12371 | |
b813574b PB |
12372 | .PHONY: install-itcl maybe-install-itcl |
12373 | maybe-install-itcl: | |
12374 | @if itcl | |
12375 | maybe-install-itcl: install-itcl | |
4fa63067 | 12376 | |
b813574b | 12377 | install-itcl: installdirs |
4fa63067 NN |
12378 | @r=`${PWD_COMMAND}`; export r; \ |
12379 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12380 | $(HOST_EXPORTS) \ |
b00612cc | 12381 | (cd $(HOST_SUBDIR)/itcl && \ |
2da12f12 | 12382 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 12383 | |
b813574b | 12384 | @endif itcl |
4fa63067 NN |
12385 | |
12386 | # Other targets (info, dvi, etc.) | |
12387 | ||
b813574b PB |
12388 | .PHONY: maybe-info-itcl info-itcl |
12389 | maybe-info-itcl: | |
12390 | @if itcl | |
12391 | maybe-info-itcl: info-itcl | |
4fa63067 | 12392 | |
b813574b PB |
12393 | info-itcl: \ |
12394 | configure-itcl | |
12395 | @[ -f ./itcl/Makefile ] || exit 0; \ | |
b40e3958 L |
12396 | r=`${PWD_COMMAND}`; export r; \ |
12397 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12398 | $(HOST_EXPORTS) \ |
b813574b | 12399 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
12400 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12401 | done; \ | |
b813574b | 12402 | echo "Doing info in itcl" ; \ |
b00612cc | 12403 | (cd $(HOST_SUBDIR)/itcl && \ |
2a4cbe27 NN |
12404 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12405 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12406 | "RANLIB=$${RANLIB}" \ | |
12407 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 12408 | info) \ |
2a4cbe27 NN |
12409 | || exit 1 |
12410 | ||
b813574b | 12411 | @endif itcl |
2a4cbe27 | 12412 | |
b813574b PB |
12413 | .PHONY: maybe-dvi-itcl dvi-itcl |
12414 | maybe-dvi-itcl: | |
12415 | @if itcl | |
12416 | maybe-dvi-itcl: dvi-itcl | |
2a4cbe27 | 12417 | |
b813574b PB |
12418 | dvi-itcl: \ |
12419 | configure-itcl | |
12420 | @[ -f ./itcl/Makefile ] || exit 0; \ | |
b40e3958 L |
12421 | r=`${PWD_COMMAND}`; export r; \ |
12422 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12423 | $(HOST_EXPORTS) \ |
b813574b | 12424 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
12425 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12426 | done; \ | |
b813574b | 12427 | echo "Doing dvi in itcl" ; \ |
b00612cc | 12428 | (cd $(HOST_SUBDIR)/itcl && \ |
2a4cbe27 NN |
12429 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12430 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12431 | "RANLIB=$${RANLIB}" \ | |
12432 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 12433 | dvi) \ |
2a4cbe27 NN |
12434 | || exit 1 |
12435 | ||
b813574b | 12436 | @endif itcl |
2a4cbe27 | 12437 | |
6d389afc MS |
12438 | .PHONY: maybe-html-itcl html-itcl |
12439 | maybe-html-itcl: | |
12440 | @if itcl | |
12441 | maybe-html-itcl: html-itcl | |
12442 | ||
12443 | html-itcl: \ | |
12444 | configure-itcl | |
12445 | @[ -f ./itcl/Makefile ] || exit 0; \ | |
12446 | r=`${PWD_COMMAND}`; export r; \ | |
12447 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
12448 | $(HOST_EXPORTS) \ |
12449 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
12450 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
12451 | done; \ | |
12452 | echo "Doing html in itcl" ; \ | |
b00612cc | 12453 | (cd $(HOST_SUBDIR)/itcl && \ |
6d389afc MS |
12454 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12455 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12456 | "RANLIB=$${RANLIB}" \ | |
12457 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
12458 | html) \ | |
12459 | || exit 1 | |
12460 | ||
12461 | @endif itcl | |
12462 | ||
b813574b PB |
12463 | .PHONY: maybe-TAGS-itcl TAGS-itcl |
12464 | maybe-TAGS-itcl: | |
12465 | @if itcl | |
12466 | maybe-TAGS-itcl: TAGS-itcl | |
2a4cbe27 | 12467 | |
b813574b PB |
12468 | TAGS-itcl: \ |
12469 | configure-itcl | |
12470 | @[ -f ./itcl/Makefile ] || exit 0; \ | |
b40e3958 L |
12471 | r=`${PWD_COMMAND}`; export r; \ |
12472 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12473 | $(HOST_EXPORTS) \ |
b813574b | 12474 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
12475 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12476 | done; \ | |
b813574b | 12477 | echo "Doing TAGS in itcl" ; \ |
b00612cc | 12478 | (cd $(HOST_SUBDIR)/itcl && \ |
2a4cbe27 NN |
12479 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12480 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12481 | "RANLIB=$${RANLIB}" \ | |
12482 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 12483 | TAGS) \ |
2a4cbe27 NN |
12484 | || exit 1 |
12485 | ||
b813574b | 12486 | @endif itcl |
2a4cbe27 | 12487 | |
b813574b PB |
12488 | .PHONY: maybe-install-info-itcl install-info-itcl |
12489 | maybe-install-info-itcl: | |
12490 | @if itcl | |
12491 | maybe-install-info-itcl: install-info-itcl | |
2a4cbe27 | 12492 | |
b813574b PB |
12493 | install-info-itcl: \ |
12494 | configure-itcl \ | |
12495 | info-itcl | |
12496 | @[ -f ./itcl/Makefile ] || exit 0; \ | |
b40e3958 L |
12497 | r=`${PWD_COMMAND}`; export r; \ |
12498 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12499 | $(HOST_EXPORTS) \ |
b813574b | 12500 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
12501 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12502 | done; \ | |
b813574b | 12503 | echo "Doing install-info in itcl" ; \ |
b00612cc | 12504 | (cd $(HOST_SUBDIR)/itcl && \ |
2a4cbe27 NN |
12505 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12506 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12507 | "RANLIB=$${RANLIB}" \ | |
12508 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 12509 | install-info) \ |
2a4cbe27 NN |
12510 | || exit 1 |
12511 | ||
b813574b | 12512 | @endif itcl |
2a4cbe27 | 12513 | |
b813574b PB |
12514 | .PHONY: maybe-installcheck-itcl installcheck-itcl |
12515 | maybe-installcheck-itcl: | |
12516 | @if itcl | |
12517 | maybe-installcheck-itcl: installcheck-itcl | |
2a4cbe27 | 12518 | |
b813574b PB |
12519 | installcheck-itcl: \ |
12520 | configure-itcl | |
12521 | @[ -f ./itcl/Makefile ] || exit 0; \ | |
b40e3958 L |
12522 | r=`${PWD_COMMAND}`; export r; \ |
12523 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12524 | $(HOST_EXPORTS) \ |
b813574b | 12525 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
12526 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12527 | done; \ | |
b813574b | 12528 | echo "Doing installcheck in itcl" ; \ |
b00612cc | 12529 | (cd $(HOST_SUBDIR)/itcl && \ |
2a4cbe27 NN |
12530 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12531 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12532 | "RANLIB=$${RANLIB}" \ | |
12533 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 12534 | installcheck) \ |
2a4cbe27 NN |
12535 | || exit 1 |
12536 | ||
b813574b | 12537 | @endif itcl |
2a4cbe27 | 12538 | |
b813574b PB |
12539 | .PHONY: maybe-mostlyclean-itcl mostlyclean-itcl |
12540 | maybe-mostlyclean-itcl: | |
12541 | @if itcl | |
12542 | maybe-mostlyclean-itcl: mostlyclean-itcl | |
2a4cbe27 | 12543 | |
b813574b PB |
12544 | mostlyclean-itcl: |
12545 | @[ -f ./itcl/Makefile ] || exit 0; \ | |
b40e3958 L |
12546 | r=`${PWD_COMMAND}`; export r; \ |
12547 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12548 | $(HOST_EXPORTS) \ |
b813574b | 12549 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
12550 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12551 | done; \ | |
b813574b | 12552 | echo "Doing mostlyclean in itcl" ; \ |
b00612cc | 12553 | (cd $(HOST_SUBDIR)/itcl && \ |
2a4cbe27 NN |
12554 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12555 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12556 | "RANLIB=$${RANLIB}" \ | |
12557 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 12558 | mostlyclean) \ |
2a4cbe27 NN |
12559 | || exit 1 |
12560 | ||
b813574b | 12561 | @endif itcl |
2a4cbe27 | 12562 | |
b813574b PB |
12563 | .PHONY: maybe-clean-itcl clean-itcl |
12564 | maybe-clean-itcl: | |
12565 | @if itcl | |
12566 | maybe-clean-itcl: clean-itcl | |
2a4cbe27 | 12567 | |
b813574b PB |
12568 | clean-itcl: |
12569 | @[ -f ./itcl/Makefile ] || exit 0; \ | |
b40e3958 L |
12570 | r=`${PWD_COMMAND}`; export r; \ |
12571 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12572 | $(HOST_EXPORTS) \ |
b813574b | 12573 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
12574 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12575 | done; \ | |
b813574b | 12576 | echo "Doing clean in itcl" ; \ |
b00612cc | 12577 | (cd $(HOST_SUBDIR)/itcl && \ |
2a4cbe27 NN |
12578 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12579 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12580 | "RANLIB=$${RANLIB}" \ | |
12581 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 12582 | clean) \ |
2a4cbe27 NN |
12583 | || exit 1 |
12584 | ||
b813574b | 12585 | @endif itcl |
2a4cbe27 | 12586 | |
b813574b PB |
12587 | .PHONY: maybe-distclean-itcl distclean-itcl |
12588 | maybe-distclean-itcl: | |
12589 | @if itcl | |
12590 | maybe-distclean-itcl: distclean-itcl | |
2a4cbe27 | 12591 | |
b813574b PB |
12592 | distclean-itcl: |
12593 | @[ -f ./itcl/Makefile ] || exit 0; \ | |
b40e3958 L |
12594 | r=`${PWD_COMMAND}`; export r; \ |
12595 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12596 | $(HOST_EXPORTS) \ |
b813574b | 12597 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
12598 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12599 | done; \ | |
b813574b | 12600 | echo "Doing distclean in itcl" ; \ |
b00612cc | 12601 | (cd $(HOST_SUBDIR)/itcl && \ |
2a4cbe27 NN |
12602 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12603 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12604 | "RANLIB=$${RANLIB}" \ | |
12605 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 12606 | distclean) \ |
2a4cbe27 NN |
12607 | || exit 1 |
12608 | ||
b813574b | 12609 | @endif itcl |
2a4cbe27 | 12610 | |
b813574b PB |
12611 | .PHONY: maybe-maintainer-clean-itcl maintainer-clean-itcl |
12612 | maybe-maintainer-clean-itcl: | |
12613 | @if itcl | |
12614 | maybe-maintainer-clean-itcl: maintainer-clean-itcl | |
2a4cbe27 | 12615 | |
b813574b PB |
12616 | maintainer-clean-itcl: |
12617 | @[ -f ./itcl/Makefile ] || exit 0; \ | |
b40e3958 L |
12618 | r=`${PWD_COMMAND}`; export r; \ |
12619 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12620 | $(HOST_EXPORTS) \ |
b813574b | 12621 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
12622 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12623 | done; \ | |
b813574b | 12624 | echo "Doing maintainer-clean in itcl" ; \ |
b00612cc | 12625 | (cd $(HOST_SUBDIR)/itcl && \ |
2a4cbe27 NN |
12626 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12627 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12628 | "RANLIB=$${RANLIB}" \ | |
12629 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 12630 | maintainer-clean) \ |
2a4cbe27 NN |
12631 | || exit 1 |
12632 | ||
b813574b | 12633 | @endif itcl |
2a4cbe27 | 12634 | |
2a4cbe27 | 12635 | |
a7254363 | 12636 | |
b813574b PB |
12637 | .PHONY: configure-ld maybe-configure-ld |
12638 | maybe-configure-ld: | |
12639 | @if ld | |
12640 | maybe-configure-ld: configure-ld | |
a7254363 | 12641 | configure-ld: |
72b2455a | 12642 | @test -f stage_last && exit 0; \ |
b00612cc PB |
12643 | test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \ |
12644 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \ | |
04cf1b77 PB |
12645 | r=`${PWD_COMMAND}`; export r; \ |
12646 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12647 | $(HOST_EXPORTS) \ |
a7254363 PB |
12648 | echo Configuring in $(HOST_SUBDIR)/ld; \ |
12649 | cd "$(HOST_SUBDIR)/ld" || exit 1; \ | |
04cf1b77 | 12650 | case $(srcdir) in \ |
b00612cc PB |
12651 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
12652 | *) topdir=`echo $(HOST_SUBDIR)/ld/ | \ | |
12653 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
04cf1b77 | 12654 | esac; \ |
b00612cc PB |
12655 | srcdiroption="--srcdir=$${topdir}/ld"; \ |
12656 | libsrcdir="$$s/ld"; \ | |
04cf1b77 | 12657 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 12658 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
04cf1b77 | 12659 | || exit 1 |
b813574b | 12660 | @endif ld |
04cf1b77 | 12661 | |
a7254363 PB |
12662 | |
12663 | ||
b813574b PB |
12664 | .PHONY: all-ld maybe-all-ld |
12665 | maybe-all-ld: | |
12666 | @if ld | |
d27cc32e | 12667 | TARGET-ld=all |
b813574b PB |
12668 | maybe-all-ld: all-ld |
12669 | all-ld: configure-ld | |
72b2455a PB |
12670 | @test -f stage_last && exit 0; \ |
12671 | r=`${PWD_COMMAND}`; export r; \ | |
04cf1b77 | 12672 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 12673 | $(HOST_EXPORTS) \ |
b00612cc PB |
12674 | (cd $(HOST_SUBDIR)/ld && \ |
12675 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-ld)) | |
b813574b | 12676 | @endif ld |
04cf1b77 | 12677 | |
a7254363 | 12678 | |
b813574b PB |
12679 | .PHONY: check-ld maybe-check-ld |
12680 | maybe-check-ld: | |
12681 | @if ld | |
12682 | maybe-check-ld: check-ld | |
04cf1b77 | 12683 | |
b813574b | 12684 | check-ld: |
04cf1b77 PB |
12685 | @r=`${PWD_COMMAND}`; export r; \ |
12686 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12687 | $(HOST_EXPORTS) \ |
b00612cc PB |
12688 | (cd $(HOST_SUBDIR)/ld && \ |
12689 | $(MAKE) $(FLAGS_TO_PASS) check) | |
04cf1b77 | 12690 | |
b813574b | 12691 | @endif ld |
04cf1b77 | 12692 | |
b813574b PB |
12693 | .PHONY: install-ld maybe-install-ld |
12694 | maybe-install-ld: | |
12695 | @if ld | |
12696 | maybe-install-ld: install-ld | |
04cf1b77 | 12697 | |
b813574b | 12698 | install-ld: installdirs |
04cf1b77 PB |
12699 | @r=`${PWD_COMMAND}`; export r; \ |
12700 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12701 | $(HOST_EXPORTS) \ |
b00612cc | 12702 | (cd $(HOST_SUBDIR)/ld && \ |
2da12f12 | 12703 | $(MAKE) $(FLAGS_TO_PASS) install) |
04cf1b77 | 12704 | |
b813574b | 12705 | @endif ld |
04cf1b77 PB |
12706 | |
12707 | # Other targets (info, dvi, etc.) | |
12708 | ||
b813574b PB |
12709 | .PHONY: maybe-info-ld info-ld |
12710 | maybe-info-ld: | |
12711 | @if ld | |
12712 | maybe-info-ld: info-ld | |
04cf1b77 | 12713 | |
b813574b PB |
12714 | info-ld: \ |
12715 | configure-ld | |
12716 | @[ -f ./ld/Makefile ] || exit 0; \ | |
04cf1b77 PB |
12717 | r=`${PWD_COMMAND}`; export r; \ |
12718 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12719 | $(HOST_EXPORTS) \ |
b813574b | 12720 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
04cf1b77 PB |
12721 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12722 | done; \ | |
b813574b | 12723 | echo "Doing info in ld" ; \ |
b00612cc | 12724 | (cd $(HOST_SUBDIR)/ld && \ |
04cf1b77 PB |
12725 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12726 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12727 | "RANLIB=$${RANLIB}" \ | |
12728 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 12729 | info) \ |
04cf1b77 PB |
12730 | || exit 1 |
12731 | ||
b813574b | 12732 | @endif ld |
04cf1b77 | 12733 | |
b813574b PB |
12734 | .PHONY: maybe-dvi-ld dvi-ld |
12735 | maybe-dvi-ld: | |
12736 | @if ld | |
12737 | maybe-dvi-ld: dvi-ld | |
04cf1b77 | 12738 | |
b813574b PB |
12739 | dvi-ld: \ |
12740 | configure-ld | |
12741 | @[ -f ./ld/Makefile ] || exit 0; \ | |
04cf1b77 PB |
12742 | r=`${PWD_COMMAND}`; export r; \ |
12743 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12744 | $(HOST_EXPORTS) \ |
b813574b | 12745 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
04cf1b77 PB |
12746 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12747 | done; \ | |
b813574b | 12748 | echo "Doing dvi in ld" ; \ |
b00612cc | 12749 | (cd $(HOST_SUBDIR)/ld && \ |
04cf1b77 PB |
12750 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12751 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12752 | "RANLIB=$${RANLIB}" \ | |
12753 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 12754 | dvi) \ |
04cf1b77 PB |
12755 | || exit 1 |
12756 | ||
b813574b | 12757 | @endif ld |
04cf1b77 | 12758 | |
6d389afc MS |
12759 | .PHONY: maybe-html-ld html-ld |
12760 | maybe-html-ld: | |
12761 | @if ld | |
12762 | maybe-html-ld: html-ld | |
12763 | ||
12764 | html-ld: \ | |
12765 | configure-ld | |
12766 | @[ -f ./ld/Makefile ] || exit 0; \ | |
12767 | r=`${PWD_COMMAND}`; export r; \ | |
12768 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
12769 | $(HOST_EXPORTS) \ |
12770 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
12771 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
12772 | done; \ | |
12773 | echo "Doing html in ld" ; \ | |
b00612cc | 12774 | (cd $(HOST_SUBDIR)/ld && \ |
6d389afc MS |
12775 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12776 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12777 | "RANLIB=$${RANLIB}" \ | |
12778 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
12779 | html) \ | |
12780 | || exit 1 | |
12781 | ||
12782 | @endif ld | |
12783 | ||
b813574b PB |
12784 | .PHONY: maybe-TAGS-ld TAGS-ld |
12785 | maybe-TAGS-ld: | |
12786 | @if ld | |
12787 | maybe-TAGS-ld: TAGS-ld | |
04cf1b77 | 12788 | |
b813574b PB |
12789 | TAGS-ld: \ |
12790 | configure-ld | |
12791 | @[ -f ./ld/Makefile ] || exit 0; \ | |
04cf1b77 PB |
12792 | r=`${PWD_COMMAND}`; export r; \ |
12793 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12794 | $(HOST_EXPORTS) \ |
b813574b | 12795 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
04cf1b77 PB |
12796 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12797 | done; \ | |
b813574b | 12798 | echo "Doing TAGS in ld" ; \ |
b00612cc | 12799 | (cd $(HOST_SUBDIR)/ld && \ |
04cf1b77 PB |
12800 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12801 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12802 | "RANLIB=$${RANLIB}" \ | |
12803 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 12804 | TAGS) \ |
04cf1b77 PB |
12805 | || exit 1 |
12806 | ||
b813574b | 12807 | @endif ld |
04cf1b77 | 12808 | |
b813574b PB |
12809 | .PHONY: maybe-install-info-ld install-info-ld |
12810 | maybe-install-info-ld: | |
12811 | @if ld | |
12812 | maybe-install-info-ld: install-info-ld | |
04cf1b77 | 12813 | |
b813574b PB |
12814 | install-info-ld: \ |
12815 | configure-ld \ | |
12816 | info-ld | |
12817 | @[ -f ./ld/Makefile ] || exit 0; \ | |
04cf1b77 PB |
12818 | r=`${PWD_COMMAND}`; export r; \ |
12819 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12820 | $(HOST_EXPORTS) \ |
b813574b | 12821 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
04cf1b77 PB |
12822 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12823 | done; \ | |
b813574b | 12824 | echo "Doing install-info in ld" ; \ |
b00612cc | 12825 | (cd $(HOST_SUBDIR)/ld && \ |
04cf1b77 PB |
12826 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12827 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12828 | "RANLIB=$${RANLIB}" \ | |
12829 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 12830 | install-info) \ |
04cf1b77 PB |
12831 | || exit 1 |
12832 | ||
b813574b | 12833 | @endif ld |
04cf1b77 | 12834 | |
b813574b PB |
12835 | .PHONY: maybe-installcheck-ld installcheck-ld |
12836 | maybe-installcheck-ld: | |
12837 | @if ld | |
12838 | maybe-installcheck-ld: installcheck-ld | |
04cf1b77 | 12839 | |
b813574b PB |
12840 | installcheck-ld: \ |
12841 | configure-ld | |
12842 | @[ -f ./ld/Makefile ] || exit 0; \ | |
04cf1b77 PB |
12843 | r=`${PWD_COMMAND}`; export r; \ |
12844 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12845 | $(HOST_EXPORTS) \ |
b813574b | 12846 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
04cf1b77 PB |
12847 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12848 | done; \ | |
b813574b | 12849 | echo "Doing installcheck in ld" ; \ |
b00612cc | 12850 | (cd $(HOST_SUBDIR)/ld && \ |
04cf1b77 PB |
12851 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12852 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12853 | "RANLIB=$${RANLIB}" \ | |
12854 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 12855 | installcheck) \ |
04cf1b77 PB |
12856 | || exit 1 |
12857 | ||
b813574b | 12858 | @endif ld |
04cf1b77 | 12859 | |
b813574b PB |
12860 | .PHONY: maybe-mostlyclean-ld mostlyclean-ld |
12861 | maybe-mostlyclean-ld: | |
12862 | @if ld | |
12863 | maybe-mostlyclean-ld: mostlyclean-ld | |
04cf1b77 | 12864 | |
b813574b PB |
12865 | mostlyclean-ld: |
12866 | @[ -f ./ld/Makefile ] || exit 0; \ | |
04cf1b77 PB |
12867 | r=`${PWD_COMMAND}`; export r; \ |
12868 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12869 | $(HOST_EXPORTS) \ |
b813574b | 12870 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
04cf1b77 PB |
12871 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12872 | done; \ | |
b813574b | 12873 | echo "Doing mostlyclean in ld" ; \ |
b00612cc | 12874 | (cd $(HOST_SUBDIR)/ld && \ |
04cf1b77 PB |
12875 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12876 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12877 | "RANLIB=$${RANLIB}" \ | |
12878 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 12879 | mostlyclean) \ |
04cf1b77 PB |
12880 | || exit 1 |
12881 | ||
b813574b | 12882 | @endif ld |
04cf1b77 | 12883 | |
b813574b PB |
12884 | .PHONY: maybe-clean-ld clean-ld |
12885 | maybe-clean-ld: | |
12886 | @if ld | |
12887 | maybe-clean-ld: clean-ld | |
04cf1b77 | 12888 | |
b813574b PB |
12889 | clean-ld: |
12890 | @[ -f ./ld/Makefile ] || exit 0; \ | |
04cf1b77 PB |
12891 | r=`${PWD_COMMAND}`; export r; \ |
12892 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12893 | $(HOST_EXPORTS) \ |
b813574b | 12894 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
04cf1b77 PB |
12895 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12896 | done; \ | |
b813574b | 12897 | echo "Doing clean in ld" ; \ |
b00612cc | 12898 | (cd $(HOST_SUBDIR)/ld && \ |
04cf1b77 PB |
12899 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12900 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12901 | "RANLIB=$${RANLIB}" \ | |
12902 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 12903 | clean) \ |
04cf1b77 PB |
12904 | || exit 1 |
12905 | ||
b813574b | 12906 | @endif ld |
04cf1b77 | 12907 | |
b813574b PB |
12908 | .PHONY: maybe-distclean-ld distclean-ld |
12909 | maybe-distclean-ld: | |
12910 | @if ld | |
12911 | maybe-distclean-ld: distclean-ld | |
04cf1b77 | 12912 | |
b813574b PB |
12913 | distclean-ld: |
12914 | @[ -f ./ld/Makefile ] || exit 0; \ | |
04cf1b77 PB |
12915 | r=`${PWD_COMMAND}`; export r; \ |
12916 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12917 | $(HOST_EXPORTS) \ |
b813574b | 12918 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
04cf1b77 PB |
12919 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12920 | done; \ | |
b813574b | 12921 | echo "Doing distclean in ld" ; \ |
b00612cc | 12922 | (cd $(HOST_SUBDIR)/ld && \ |
04cf1b77 PB |
12923 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12924 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12925 | "RANLIB=$${RANLIB}" \ | |
12926 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 12927 | distclean) \ |
04cf1b77 PB |
12928 | || exit 1 |
12929 | ||
b813574b | 12930 | @endif ld |
04cf1b77 | 12931 | |
b813574b PB |
12932 | .PHONY: maybe-maintainer-clean-ld maintainer-clean-ld |
12933 | maybe-maintainer-clean-ld: | |
12934 | @if ld | |
12935 | maybe-maintainer-clean-ld: maintainer-clean-ld | |
04cf1b77 | 12936 | |
b813574b PB |
12937 | maintainer-clean-ld: |
12938 | @[ -f ./ld/Makefile ] || exit 0; \ | |
04cf1b77 PB |
12939 | r=`${PWD_COMMAND}`; export r; \ |
12940 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12941 | $(HOST_EXPORTS) \ |
b813574b | 12942 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
04cf1b77 PB |
12943 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12944 | done; \ | |
b813574b | 12945 | echo "Doing maintainer-clean in ld" ; \ |
b00612cc | 12946 | (cd $(HOST_SUBDIR)/ld && \ |
04cf1b77 PB |
12947 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12948 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12949 | "RANLIB=$${RANLIB}" \ | |
12950 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 12951 | maintainer-clean) \ |
04cf1b77 PB |
12952 | || exit 1 |
12953 | ||
b813574b | 12954 | @endif ld |
04cf1b77 PB |
12955 | |
12956 | ||
a7254363 | 12957 | |
b813574b PB |
12958 | .PHONY: configure-libcpp maybe-configure-libcpp |
12959 | maybe-configure-libcpp: | |
12960 | @if libcpp | |
12961 | maybe-configure-libcpp: configure-libcpp | |
a7254363 | 12962 | configure-libcpp: |
72b2455a | 12963 | @test -f stage_last && exit 0; \ |
b00612cc PB |
12964 | test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \ |
12965 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \ | |
4fa63067 NN |
12966 | r=`${PWD_COMMAND}`; export r; \ |
12967 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12968 | $(HOST_EXPORTS) \ |
a7254363 PB |
12969 | echo Configuring in $(HOST_SUBDIR)/libcpp; \ |
12970 | cd "$(HOST_SUBDIR)/libcpp" || exit 1; \ | |
4fa63067 | 12971 | case $(srcdir) in \ |
b00612cc PB |
12972 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
12973 | *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \ | |
12974 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 12975 | esac; \ |
b00612cc PB |
12976 | srcdiroption="--srcdir=$${topdir}/libcpp"; \ |
12977 | libsrcdir="$$s/libcpp"; \ | |
4fa63067 | 12978 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 12979 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
4fa63067 | 12980 | || exit 1 |
b813574b | 12981 | @endif libcpp |
4fa63067 | 12982 | |
a7254363 PB |
12983 | |
12984 | ||
b813574b PB |
12985 | .PHONY: all-libcpp maybe-all-libcpp |
12986 | maybe-all-libcpp: | |
12987 | @if libcpp | |
d27cc32e | 12988 | TARGET-libcpp=all |
b813574b PB |
12989 | maybe-all-libcpp: all-libcpp |
12990 | all-libcpp: configure-libcpp | |
72b2455a PB |
12991 | @test -f stage_last && exit 0; \ |
12992 | r=`${PWD_COMMAND}`; export r; \ | |
4fa63067 | 12993 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 12994 | $(HOST_EXPORTS) \ |
b00612cc PB |
12995 | (cd $(HOST_SUBDIR)/libcpp && \ |
12996 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-libcpp)) | |
b813574b | 12997 | @endif libcpp |
4fa63067 | 12998 | |
a7254363 | 12999 | |
b813574b PB |
13000 | .PHONY: check-libcpp maybe-check-libcpp |
13001 | maybe-check-libcpp: | |
13002 | @if libcpp | |
13003 | maybe-check-libcpp: check-libcpp | |
4fa63067 | 13004 | |
b813574b | 13005 | check-libcpp: |
4fa63067 NN |
13006 | @r=`${PWD_COMMAND}`; export r; \ |
13007 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13008 | $(HOST_EXPORTS) \ |
b00612cc PB |
13009 | (cd $(HOST_SUBDIR)/libcpp && \ |
13010 | $(MAKE) $(FLAGS_TO_PASS) check) | |
4fa63067 | 13011 | |
b813574b | 13012 | @endif libcpp |
4fa63067 | 13013 | |
b813574b PB |
13014 | .PHONY: install-libcpp maybe-install-libcpp |
13015 | maybe-install-libcpp: | |
13016 | @if libcpp | |
13017 | maybe-install-libcpp: install-libcpp | |
13018 | ||
13019 | install-libcpp: installdirs | |
4fa63067 NN |
13020 | @r=`${PWD_COMMAND}`; export r; \ |
13021 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13022 | $(HOST_EXPORTS) \ |
b00612cc | 13023 | (cd $(HOST_SUBDIR)/libcpp && \ |
2da12f12 | 13024 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 13025 | |
b813574b | 13026 | @endif libcpp |
4fa63067 NN |
13027 | |
13028 | # Other targets (info, dvi, etc.) | |
13029 | ||
b813574b PB |
13030 | .PHONY: maybe-info-libcpp info-libcpp |
13031 | maybe-info-libcpp: | |
13032 | @if libcpp | |
13033 | maybe-info-libcpp: info-libcpp | |
4fa63067 | 13034 | |
b813574b PB |
13035 | info-libcpp: \ |
13036 | configure-libcpp | |
13037 | @[ -f ./libcpp/Makefile ] || exit 0; \ | |
b40e3958 L |
13038 | r=`${PWD_COMMAND}`; export r; \ |
13039 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13040 | $(HOST_EXPORTS) \ |
b813574b | 13041 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
13042 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
13043 | done; \ | |
b813574b | 13044 | echo "Doing info in libcpp" ; \ |
b00612cc | 13045 | (cd $(HOST_SUBDIR)/libcpp && \ |
2a4cbe27 NN |
13046 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13047 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13048 | "RANLIB=$${RANLIB}" \ | |
13049 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 13050 | info) \ |
2a4cbe27 NN |
13051 | || exit 1 |
13052 | ||
b813574b | 13053 | @endif libcpp |
2a4cbe27 | 13054 | |
b813574b PB |
13055 | .PHONY: maybe-dvi-libcpp dvi-libcpp |
13056 | maybe-dvi-libcpp: | |
13057 | @if libcpp | |
13058 | maybe-dvi-libcpp: dvi-libcpp | |
2a4cbe27 | 13059 | |
b813574b PB |
13060 | dvi-libcpp: \ |
13061 | configure-libcpp | |
13062 | @[ -f ./libcpp/Makefile ] || exit 0; \ | |
b40e3958 L |
13063 | r=`${PWD_COMMAND}`; export r; \ |
13064 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13065 | $(HOST_EXPORTS) \ |
b813574b | 13066 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
13067 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
13068 | done; \ | |
b813574b | 13069 | echo "Doing dvi in libcpp" ; \ |
b00612cc | 13070 | (cd $(HOST_SUBDIR)/libcpp && \ |
2a4cbe27 NN |
13071 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13072 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13073 | "RANLIB=$${RANLIB}" \ | |
13074 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 13075 | dvi) \ |
2a4cbe27 NN |
13076 | || exit 1 |
13077 | ||
b813574b | 13078 | @endif libcpp |
2a4cbe27 | 13079 | |
6d389afc MS |
13080 | .PHONY: maybe-html-libcpp html-libcpp |
13081 | maybe-html-libcpp: | |
13082 | @if libcpp | |
13083 | maybe-html-libcpp: html-libcpp | |
13084 | ||
13085 | html-libcpp: \ | |
13086 | configure-libcpp | |
13087 | @[ -f ./libcpp/Makefile ] || exit 0; \ | |
13088 | r=`${PWD_COMMAND}`; export r; \ | |
13089 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
13090 | $(HOST_EXPORTS) \ |
13091 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
13092 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
13093 | done; \ | |
13094 | echo "Doing html in libcpp" ; \ | |
b00612cc | 13095 | (cd $(HOST_SUBDIR)/libcpp && \ |
6d389afc MS |
13096 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13097 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13098 | "RANLIB=$${RANLIB}" \ | |
13099 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
13100 | html) \ | |
13101 | || exit 1 | |
13102 | ||
13103 | @endif libcpp | |
13104 | ||
b813574b PB |
13105 | .PHONY: maybe-TAGS-libcpp TAGS-libcpp |
13106 | maybe-TAGS-libcpp: | |
13107 | @if libcpp | |
13108 | maybe-TAGS-libcpp: TAGS-libcpp | |
2a4cbe27 | 13109 | |
b813574b PB |
13110 | TAGS-libcpp: \ |
13111 | configure-libcpp | |
13112 | @[ -f ./libcpp/Makefile ] || exit 0; \ | |
b40e3958 L |
13113 | r=`${PWD_COMMAND}`; export r; \ |
13114 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13115 | $(HOST_EXPORTS) \ |
b813574b | 13116 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
13117 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
13118 | done; \ | |
b813574b | 13119 | echo "Doing TAGS in libcpp" ; \ |
b00612cc | 13120 | (cd $(HOST_SUBDIR)/libcpp && \ |
2a4cbe27 NN |
13121 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13122 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13123 | "RANLIB=$${RANLIB}" \ | |
13124 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 13125 | TAGS) \ |
2a4cbe27 NN |
13126 | || exit 1 |
13127 | ||
b813574b | 13128 | @endif libcpp |
2a4cbe27 | 13129 | |
b813574b PB |
13130 | .PHONY: maybe-install-info-libcpp install-info-libcpp |
13131 | maybe-install-info-libcpp: | |
13132 | @if libcpp | |
13133 | maybe-install-info-libcpp: install-info-libcpp | |
2a4cbe27 | 13134 | |
b813574b PB |
13135 | install-info-libcpp: \ |
13136 | configure-libcpp \ | |
13137 | info-libcpp | |
13138 | @[ -f ./libcpp/Makefile ] || exit 0; \ | |
b40e3958 L |
13139 | r=`${PWD_COMMAND}`; export r; \ |
13140 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13141 | $(HOST_EXPORTS) \ |
b813574b | 13142 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
13143 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
13144 | done; \ | |
b813574b | 13145 | echo "Doing install-info in libcpp" ; \ |
b00612cc | 13146 | (cd $(HOST_SUBDIR)/libcpp && \ |
2a4cbe27 NN |
13147 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13148 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13149 | "RANLIB=$${RANLIB}" \ | |
13150 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 13151 | install-info) \ |
2a4cbe27 NN |
13152 | || exit 1 |
13153 | ||
b813574b | 13154 | @endif libcpp |
2a4cbe27 | 13155 | |
b813574b PB |
13156 | .PHONY: maybe-installcheck-libcpp installcheck-libcpp |
13157 | maybe-installcheck-libcpp: | |
13158 | @if libcpp | |
13159 | maybe-installcheck-libcpp: installcheck-libcpp | |
2a4cbe27 | 13160 | |
b813574b PB |
13161 | installcheck-libcpp: \ |
13162 | configure-libcpp | |
13163 | @[ -f ./libcpp/Makefile ] || exit 0; \ | |
b40e3958 L |
13164 | r=`${PWD_COMMAND}`; export r; \ |
13165 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13166 | $(HOST_EXPORTS) \ |
b813574b | 13167 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
13168 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
13169 | done; \ | |
b813574b | 13170 | echo "Doing installcheck in libcpp" ; \ |
b00612cc | 13171 | (cd $(HOST_SUBDIR)/libcpp && \ |
2a4cbe27 NN |
13172 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13173 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13174 | "RANLIB=$${RANLIB}" \ | |
13175 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 13176 | installcheck) \ |
2a4cbe27 NN |
13177 | || exit 1 |
13178 | ||
b813574b | 13179 | @endif libcpp |
2a4cbe27 | 13180 | |
b813574b PB |
13181 | .PHONY: maybe-mostlyclean-libcpp mostlyclean-libcpp |
13182 | maybe-mostlyclean-libcpp: | |
13183 | @if libcpp | |
13184 | maybe-mostlyclean-libcpp: mostlyclean-libcpp | |
2a4cbe27 | 13185 | |
b813574b PB |
13186 | mostlyclean-libcpp: |
13187 | @[ -f ./libcpp/Makefile ] || exit 0; \ | |
b40e3958 L |
13188 | r=`${PWD_COMMAND}`; export r; \ |
13189 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13190 | $(HOST_EXPORTS) \ |
b813574b | 13191 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
13192 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
13193 | done; \ | |
b813574b | 13194 | echo "Doing mostlyclean in libcpp" ; \ |
b00612cc | 13195 | (cd $(HOST_SUBDIR)/libcpp && \ |
2a4cbe27 NN |
13196 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13197 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13198 | "RANLIB=$${RANLIB}" \ | |
13199 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 13200 | mostlyclean) \ |
2a4cbe27 NN |
13201 | || exit 1 |
13202 | ||
b813574b | 13203 | @endif libcpp |
2a4cbe27 | 13204 | |
b813574b PB |
13205 | .PHONY: maybe-clean-libcpp clean-libcpp |
13206 | maybe-clean-libcpp: | |
13207 | @if libcpp | |
13208 | maybe-clean-libcpp: clean-libcpp | |
2a4cbe27 | 13209 | |
b813574b PB |
13210 | clean-libcpp: |
13211 | @[ -f ./libcpp/Makefile ] || exit 0; \ | |
b40e3958 L |
13212 | r=`${PWD_COMMAND}`; export r; \ |
13213 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13214 | $(HOST_EXPORTS) \ |
b813574b | 13215 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
13216 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
13217 | done; \ | |
b813574b | 13218 | echo "Doing clean in libcpp" ; \ |
b00612cc | 13219 | (cd $(HOST_SUBDIR)/libcpp && \ |
2a4cbe27 NN |
13220 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13221 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13222 | "RANLIB=$${RANLIB}" \ | |
13223 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 13224 | clean) \ |
2a4cbe27 NN |
13225 | || exit 1 |
13226 | ||
b813574b | 13227 | @endif libcpp |
2a4cbe27 | 13228 | |
b813574b PB |
13229 | .PHONY: maybe-distclean-libcpp distclean-libcpp |
13230 | maybe-distclean-libcpp: | |
13231 | @if libcpp | |
13232 | maybe-distclean-libcpp: distclean-libcpp | |
2a4cbe27 | 13233 | |
b813574b PB |
13234 | distclean-libcpp: |
13235 | @[ -f ./libcpp/Makefile ] || exit 0; \ | |
b40e3958 L |
13236 | r=`${PWD_COMMAND}`; export r; \ |
13237 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13238 | $(HOST_EXPORTS) \ |
b813574b | 13239 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
13240 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
13241 | done; \ | |
b813574b | 13242 | echo "Doing distclean in libcpp" ; \ |
b00612cc | 13243 | (cd $(HOST_SUBDIR)/libcpp && \ |
2a4cbe27 NN |
13244 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13245 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13246 | "RANLIB=$${RANLIB}" \ | |
13247 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 13248 | distclean) \ |
2a4cbe27 NN |
13249 | || exit 1 |
13250 | ||
b813574b | 13251 | @endif libcpp |
2a4cbe27 | 13252 | |
b813574b PB |
13253 | .PHONY: maybe-maintainer-clean-libcpp maintainer-clean-libcpp |
13254 | maybe-maintainer-clean-libcpp: | |
13255 | @if libcpp | |
13256 | maybe-maintainer-clean-libcpp: maintainer-clean-libcpp | |
2a4cbe27 | 13257 | |
b813574b PB |
13258 | maintainer-clean-libcpp: |
13259 | @[ -f ./libcpp/Makefile ] || exit 0; \ | |
b40e3958 L |
13260 | r=`${PWD_COMMAND}`; export r; \ |
13261 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13262 | $(HOST_EXPORTS) \ |
b813574b | 13263 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
13264 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
13265 | done; \ | |
b813574b | 13266 | echo "Doing maintainer-clean in libcpp" ; \ |
b00612cc | 13267 | (cd $(HOST_SUBDIR)/libcpp && \ |
2a4cbe27 NN |
13268 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13269 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13270 | "RANLIB=$${RANLIB}" \ | |
13271 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 13272 | maintainer-clean) \ |
2a4cbe27 NN |
13273 | || exit 1 |
13274 | ||
b813574b | 13275 | @endif libcpp |
2a4cbe27 | 13276 | |
2a4cbe27 | 13277 | |
a7254363 | 13278 | |
b813574b PB |
13279 | .PHONY: configure-libgui maybe-configure-libgui |
13280 | maybe-configure-libgui: | |
13281 | @if libgui | |
13282 | maybe-configure-libgui: configure-libgui | |
a7254363 | 13283 | configure-libgui: |
b00612cc PB |
13284 | @test ! -f $(HOST_SUBDIR)/libgui/Makefile || exit 0; \ |
13285 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libgui ; \ | |
4b1cb4fe DD |
13286 | r=`${PWD_COMMAND}`; export r; \ |
13287 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13288 | $(HOST_EXPORTS) \ |
a7254363 PB |
13289 | echo Configuring in $(HOST_SUBDIR)/libgui; \ |
13290 | cd "$(HOST_SUBDIR)/libgui" || exit 1; \ | |
4b1cb4fe | 13291 | case $(srcdir) in \ |
b00612cc PB |
13292 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
13293 | *) topdir=`echo $(HOST_SUBDIR)/libgui/ | \ | |
13294 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4b1cb4fe | 13295 | esac; \ |
b00612cc PB |
13296 | srcdiroption="--srcdir=$${topdir}/libgui"; \ |
13297 | libsrcdir="$$s/libgui"; \ | |
4b1cb4fe | 13298 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 13299 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
4b1cb4fe | 13300 | || exit 1 |
b813574b | 13301 | @endif libgui |
4b1cb4fe | 13302 | |
a7254363 PB |
13303 | |
13304 | ||
b813574b PB |
13305 | .PHONY: all-libgui maybe-all-libgui |
13306 | maybe-all-libgui: | |
13307 | @if libgui | |
d27cc32e | 13308 | TARGET-libgui=all |
b813574b PB |
13309 | maybe-all-libgui: all-libgui |
13310 | all-libgui: configure-libgui | |
4b1cb4fe DD |
13311 | @r=`${PWD_COMMAND}`; export r; \ |
13312 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13313 | $(HOST_EXPORTS) \ |
b00612cc PB |
13314 | (cd $(HOST_SUBDIR)/libgui && \ |
13315 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-libgui)) | |
b813574b | 13316 | @endif libgui |
4b1cb4fe | 13317 | |
a7254363 | 13318 | |
b813574b PB |
13319 | .PHONY: check-libgui maybe-check-libgui |
13320 | maybe-check-libgui: | |
13321 | @if libgui | |
13322 | maybe-check-libgui: check-libgui | |
4b1cb4fe | 13323 | |
b813574b | 13324 | check-libgui: |
4b1cb4fe DD |
13325 | @r=`${PWD_COMMAND}`; export r; \ |
13326 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13327 | $(HOST_EXPORTS) \ |
b00612cc PB |
13328 | (cd $(HOST_SUBDIR)/libgui && \ |
13329 | $(MAKE) $(FLAGS_TO_PASS) check) | |
4b1cb4fe | 13330 | |
b813574b | 13331 | @endif libgui |
4b1cb4fe | 13332 | |
b813574b PB |
13333 | .PHONY: install-libgui maybe-install-libgui |
13334 | maybe-install-libgui: | |
13335 | @if libgui | |
13336 | maybe-install-libgui: install-libgui | |
4b1cb4fe | 13337 | |
b813574b PB |
13338 | install-libgui: installdirs |
13339 | @r=`${PWD_COMMAND}`; export r; \ | |
13340 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b813574b | 13341 | $(HOST_EXPORTS) \ |
b00612cc | 13342 | (cd $(HOST_SUBDIR)/libgui && \ |
2da12f12 | 13343 | $(MAKE) $(FLAGS_TO_PASS) install) |
4b1cb4fe | 13344 | |
b813574b | 13345 | @endif libgui |
4b1cb4fe DD |
13346 | |
13347 | # Other targets (info, dvi, etc.) | |
13348 | ||
b813574b PB |
13349 | .PHONY: maybe-info-libgui info-libgui |
13350 | maybe-info-libgui: | |
13351 | @if libgui | |
13352 | maybe-info-libgui: info-libgui | |
4b1cb4fe | 13353 | |
b813574b PB |
13354 | info-libgui: \ |
13355 | configure-libgui | |
13356 | @[ -f ./libgui/Makefile ] || exit 0; \ | |
4b1cb4fe DD |
13357 | r=`${PWD_COMMAND}`; export r; \ |
13358 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13359 | $(HOST_EXPORTS) \ |
b813574b | 13360 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4b1cb4fe DD |
13361 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
13362 | done; \ | |
b813574b | 13363 | echo "Doing info in libgui" ; \ |
b00612cc | 13364 | (cd $(HOST_SUBDIR)/libgui && \ |
4b1cb4fe DD |
13365 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13366 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13367 | "RANLIB=$${RANLIB}" \ | |
13368 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 13369 | info) \ |
4b1cb4fe DD |
13370 | || exit 1 |
13371 | ||
b813574b | 13372 | @endif libgui |
4b1cb4fe | 13373 | |
b813574b PB |
13374 | .PHONY: maybe-dvi-libgui dvi-libgui |
13375 | maybe-dvi-libgui: | |
13376 | @if libgui | |
13377 | maybe-dvi-libgui: dvi-libgui | |
4b1cb4fe | 13378 | |
b813574b PB |
13379 | dvi-libgui: \ |
13380 | configure-libgui | |
13381 | @[ -f ./libgui/Makefile ] || exit 0; \ | |
4b1cb4fe DD |
13382 | r=`${PWD_COMMAND}`; export r; \ |
13383 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13384 | $(HOST_EXPORTS) \ |
b813574b | 13385 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4b1cb4fe DD |
13386 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
13387 | done; \ | |
b813574b | 13388 | echo "Doing dvi in libgui" ; \ |
b00612cc | 13389 | (cd $(HOST_SUBDIR)/libgui && \ |
4b1cb4fe DD |
13390 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13391 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13392 | "RANLIB=$${RANLIB}" \ | |
13393 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 13394 | dvi) \ |
4b1cb4fe DD |
13395 | || exit 1 |
13396 | ||
b813574b | 13397 | @endif libgui |
4b1cb4fe | 13398 | |
6d389afc MS |
13399 | .PHONY: maybe-html-libgui html-libgui |
13400 | maybe-html-libgui: | |
13401 | @if libgui | |
13402 | maybe-html-libgui: html-libgui | |
13403 | ||
13404 | html-libgui: \ | |
13405 | configure-libgui | |
13406 | @[ -f ./libgui/Makefile ] || exit 0; \ | |
13407 | r=`${PWD_COMMAND}`; export r; \ | |
13408 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
13409 | $(HOST_EXPORTS) \ |
13410 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
13411 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
13412 | done; \ | |
13413 | echo "Doing html in libgui" ; \ | |
b00612cc | 13414 | (cd $(HOST_SUBDIR)/libgui && \ |
6d389afc MS |
13415 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13416 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13417 | "RANLIB=$${RANLIB}" \ | |
13418 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
13419 | html) \ | |
13420 | || exit 1 | |
13421 | ||
13422 | @endif libgui | |
13423 | ||
b813574b PB |
13424 | .PHONY: maybe-TAGS-libgui TAGS-libgui |
13425 | maybe-TAGS-libgui: | |
13426 | @if libgui | |
13427 | maybe-TAGS-libgui: TAGS-libgui | |
4b1cb4fe | 13428 | |
b813574b PB |
13429 | TAGS-libgui: \ |
13430 | configure-libgui | |
13431 | @[ -f ./libgui/Makefile ] || exit 0; \ | |
4b1cb4fe DD |
13432 | r=`${PWD_COMMAND}`; export r; \ |
13433 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13434 | $(HOST_EXPORTS) \ |
b813574b | 13435 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4b1cb4fe DD |
13436 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
13437 | done; \ | |
b813574b | 13438 | echo "Doing TAGS in libgui" ; \ |
b00612cc | 13439 | (cd $(HOST_SUBDIR)/libgui && \ |
4b1cb4fe DD |
13440 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13441 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13442 | "RANLIB=$${RANLIB}" \ | |
13443 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 13444 | TAGS) \ |
4b1cb4fe DD |
13445 | || exit 1 |
13446 | ||
b813574b | 13447 | @endif libgui |
4b1cb4fe | 13448 | |
b813574b PB |
13449 | .PHONY: maybe-install-info-libgui install-info-libgui |
13450 | maybe-install-info-libgui: | |
13451 | @if libgui | |
13452 | maybe-install-info-libgui: install-info-libgui | |
4b1cb4fe | 13453 | |
b813574b PB |
13454 | install-info-libgui: \ |
13455 | configure-libgui \ | |
13456 | info-libgui | |
13457 | @[ -f ./libgui/Makefile ] || exit 0; \ | |
4b1cb4fe DD |
13458 | r=`${PWD_COMMAND}`; export r; \ |
13459 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13460 | $(HOST_EXPORTS) \ |
b813574b | 13461 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4b1cb4fe DD |
13462 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
13463 | done; \ | |
b813574b | 13464 | echo "Doing install-info in libgui" ; \ |
b00612cc | 13465 | (cd $(HOST_SUBDIR)/libgui && \ |
4b1cb4fe DD |
13466 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13467 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13468 | "RANLIB=$${RANLIB}" \ | |
13469 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 13470 | install-info) \ |
4b1cb4fe DD |
13471 | || exit 1 |
13472 | ||
b813574b | 13473 | @endif libgui |
4b1cb4fe | 13474 | |
b813574b PB |
13475 | .PHONY: maybe-installcheck-libgui installcheck-libgui |
13476 | maybe-installcheck-libgui: | |
13477 | @if libgui | |
13478 | maybe-installcheck-libgui: installcheck-libgui | |
4b1cb4fe | 13479 | |
b813574b PB |
13480 | installcheck-libgui: \ |
13481 | configure-libgui | |
13482 | @[ -f ./libgui/Makefile ] || exit 0; \ | |
4b1cb4fe DD |
13483 | r=`${PWD_COMMAND}`; export r; \ |
13484 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13485 | $(HOST_EXPORTS) \ |
b813574b | 13486 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4b1cb4fe DD |
13487 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
13488 | done; \ | |
b813574b | 13489 | echo "Doing installcheck in libgui" ; \ |
b00612cc | 13490 | (cd $(HOST_SUBDIR)/libgui && \ |
4b1cb4fe DD |
13491 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13492 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13493 | "RANLIB=$${RANLIB}" \ | |
13494 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 13495 | installcheck) \ |
4b1cb4fe DD |
13496 | || exit 1 |
13497 | ||
b813574b | 13498 | @endif libgui |
4b1cb4fe | 13499 | |
b813574b PB |
13500 | .PHONY: maybe-mostlyclean-libgui mostlyclean-libgui |
13501 | maybe-mostlyclean-libgui: | |
13502 | @if libgui | |
13503 | maybe-mostlyclean-libgui: mostlyclean-libgui | |
4b1cb4fe | 13504 | |
b813574b PB |
13505 | mostlyclean-libgui: |
13506 | @[ -f ./libgui/Makefile ] || exit 0; \ | |
4b1cb4fe DD |
13507 | r=`${PWD_COMMAND}`; export r; \ |
13508 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13509 | $(HOST_EXPORTS) \ |
b813574b | 13510 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4b1cb4fe DD |
13511 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
13512 | done; \ | |
b813574b | 13513 | echo "Doing mostlyclean in libgui" ; \ |
b00612cc | 13514 | (cd $(HOST_SUBDIR)/libgui && \ |
4b1cb4fe DD |
13515 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13516 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13517 | "RANLIB=$${RANLIB}" \ | |
13518 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 13519 | mostlyclean) \ |
4b1cb4fe DD |
13520 | || exit 1 |
13521 | ||
b813574b | 13522 | @endif libgui |
4b1cb4fe | 13523 | |
b813574b PB |
13524 | .PHONY: maybe-clean-libgui clean-libgui |
13525 | maybe-clean-libgui: | |
13526 | @if libgui | |
13527 | maybe-clean-libgui: clean-libgui | |
4b1cb4fe | 13528 | |
b813574b PB |
13529 | clean-libgui: |
13530 | @[ -f ./libgui/Makefile ] || exit 0; \ | |
4b1cb4fe DD |
13531 | r=`${PWD_COMMAND}`; export r; \ |
13532 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13533 | $(HOST_EXPORTS) \ |
b813574b | 13534 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4b1cb4fe DD |
13535 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
13536 | done; \ | |
b813574b | 13537 | echo "Doing clean in libgui" ; \ |
b00612cc | 13538 | (cd $(HOST_SUBDIR)/libgui && \ |
4b1cb4fe DD |
13539 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13540 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13541 | "RANLIB=$${RANLIB}" \ | |
13542 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 13543 | clean) \ |
4b1cb4fe DD |
13544 | || exit 1 |
13545 | ||
b813574b | 13546 | @endif libgui |
4b1cb4fe | 13547 | |
b813574b PB |
13548 | .PHONY: maybe-distclean-libgui distclean-libgui |
13549 | maybe-distclean-libgui: | |
13550 | @if libgui | |
13551 | maybe-distclean-libgui: distclean-libgui | |
4b1cb4fe | 13552 | |
b813574b PB |
13553 | distclean-libgui: |
13554 | @[ -f ./libgui/Makefile ] || exit 0; \ | |
4b1cb4fe DD |
13555 | r=`${PWD_COMMAND}`; export r; \ |
13556 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13557 | $(HOST_EXPORTS) \ |
b813574b | 13558 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4b1cb4fe DD |
13559 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
13560 | done; \ | |
b813574b | 13561 | echo "Doing distclean in libgui" ; \ |
b00612cc | 13562 | (cd $(HOST_SUBDIR)/libgui && \ |
4b1cb4fe DD |
13563 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13564 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13565 | "RANLIB=$${RANLIB}" \ | |
13566 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 13567 | distclean) \ |
4b1cb4fe DD |
13568 | || exit 1 |
13569 | ||
b813574b | 13570 | @endif libgui |
4b1cb4fe | 13571 | |
b813574b PB |
13572 | .PHONY: maybe-maintainer-clean-libgui maintainer-clean-libgui |
13573 | maybe-maintainer-clean-libgui: | |
13574 | @if libgui | |
13575 | maybe-maintainer-clean-libgui: maintainer-clean-libgui | |
4b1cb4fe | 13576 | |
b813574b PB |
13577 | maintainer-clean-libgui: |
13578 | @[ -f ./libgui/Makefile ] || exit 0; \ | |
4b1cb4fe DD |
13579 | r=`${PWD_COMMAND}`; export r; \ |
13580 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13581 | $(HOST_EXPORTS) \ |
b813574b | 13582 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4b1cb4fe DD |
13583 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
13584 | done; \ | |
b813574b | 13585 | echo "Doing maintainer-clean in libgui" ; \ |
b00612cc | 13586 | (cd $(HOST_SUBDIR)/libgui && \ |
4b1cb4fe DD |
13587 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13588 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13589 | "RANLIB=$${RANLIB}" \ | |
13590 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 13591 | maintainer-clean) \ |
4b1cb4fe DD |
13592 | || exit 1 |
13593 | ||
b813574b | 13594 | @endif libgui |
4b1cb4fe DD |
13595 | |
13596 | ||
a7254363 | 13597 | |
b813574b PB |
13598 | .PHONY: configure-libiberty maybe-configure-libiberty |
13599 | maybe-configure-libiberty: | |
13600 | @if libiberty | |
13601 | maybe-configure-libiberty: configure-libiberty | |
a7254363 | 13602 | configure-libiberty: |
72b2455a | 13603 | @test -f stage_last && exit 0; \ |
b00612cc PB |
13604 | test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \ |
13605 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \ | |
b40e3958 L |
13606 | r=`${PWD_COMMAND}`; export r; \ |
13607 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13608 | $(HOST_EXPORTS) \ |
a7254363 PB |
13609 | echo Configuring in $(HOST_SUBDIR)/libiberty; \ |
13610 | cd "$(HOST_SUBDIR)/libiberty" || exit 1; \ | |
4fa63067 | 13611 | case $(srcdir) in \ |
b00612cc PB |
13612 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
13613 | *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \ | |
13614 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 13615 | esac; \ |
b00612cc PB |
13616 | srcdiroption="--srcdir=$${topdir}/libiberty"; \ |
13617 | libsrcdir="$$s/libiberty"; \ | |
4fa63067 | 13618 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 13619 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
2a4cbe27 | 13620 | || exit 1 |
b813574b | 13621 | @endif libiberty |
2a4cbe27 | 13622 | |
a7254363 PB |
13623 | |
13624 | ||
b813574b PB |
13625 | .PHONY: all-libiberty maybe-all-libiberty |
13626 | maybe-all-libiberty: | |
13627 | @if libiberty | |
d27cc32e | 13628 | TARGET-libiberty=all |
b813574b PB |
13629 | maybe-all-libiberty: all-libiberty |
13630 | all-libiberty: configure-libiberty | |
72b2455a PB |
13631 | @test -f stage_last && exit 0; \ |
13632 | r=`${PWD_COMMAND}`; export r; \ | |
b813574b | 13633 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 13634 | $(HOST_EXPORTS) \ |
b00612cc PB |
13635 | (cd $(HOST_SUBDIR)/libiberty && \ |
13636 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-libiberty)) | |
b813574b | 13637 | @endif libiberty |
2a4cbe27 | 13638 | |
a7254363 | 13639 | |
b813574b PB |
13640 | .PHONY: check-libiberty maybe-check-libiberty |
13641 | maybe-check-libiberty: | |
13642 | @if libiberty | |
13643 | maybe-check-libiberty: check-libiberty | |
2a4cbe27 | 13644 | |
b813574b | 13645 | check-libiberty: |
4fa63067 | 13646 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 13647 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 13648 | $(HOST_EXPORTS) \ |
b00612cc PB |
13649 | (cd $(HOST_SUBDIR)/libiberty && \ |
13650 | $(MAKE) $(FLAGS_TO_PASS) check) | |
2a4cbe27 | 13651 | |
b813574b | 13652 | @endif libiberty |
2a4cbe27 | 13653 | |
b813574b PB |
13654 | .PHONY: install-libiberty maybe-install-libiberty |
13655 | maybe-install-libiberty: | |
13656 | @if libiberty | |
13657 | maybe-install-libiberty: install-libiberty | |
2a4cbe27 | 13658 | |
b813574b | 13659 | install-libiberty: installdirs |
4fa63067 | 13660 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 13661 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 13662 | $(HOST_EXPORTS) \ |
b00612cc | 13663 | (cd $(HOST_SUBDIR)/libiberty && \ |
2da12f12 | 13664 | $(MAKE) $(FLAGS_TO_PASS) install) |
2a4cbe27 | 13665 | |
b813574b | 13666 | @endif libiberty |
2a4cbe27 | 13667 | |
4fa63067 | 13668 | # Other targets (info, dvi, etc.) |
2a4cbe27 | 13669 | |
b813574b PB |
13670 | .PHONY: maybe-info-libiberty info-libiberty |
13671 | maybe-info-libiberty: | |
13672 | @if libiberty | |
13673 | maybe-info-libiberty: info-libiberty | |
4fa63067 | 13674 | |
b813574b PB |
13675 | info-libiberty: \ |
13676 | configure-libiberty | |
13677 | @[ -f ./libiberty/Makefile ] || exit 0; \ | |
b40e3958 L |
13678 | r=`${PWD_COMMAND}`; export r; \ |
13679 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13680 | $(HOST_EXPORTS) \ |
b813574b | 13681 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
13682 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
13683 | done; \ | |
6d389afc | 13684 | echo "Doing info in libiberty" ; \ |
b00612cc | 13685 | (cd $(HOST_SUBDIR)/libiberty && \ |
6d389afc MS |
13686 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13687 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13688 | "RANLIB=$${RANLIB}" \ | |
13689 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
13690 | info) \ | |
13691 | || exit 1 | |
13692 | ||
13693 | @endif libiberty | |
13694 | ||
13695 | .PHONY: maybe-dvi-libiberty dvi-libiberty | |
13696 | maybe-dvi-libiberty: | |
13697 | @if libiberty | |
13698 | maybe-dvi-libiberty: dvi-libiberty | |
13699 | ||
13700 | dvi-libiberty: \ | |
13701 | configure-libiberty | |
13702 | @[ -f ./libiberty/Makefile ] || exit 0; \ | |
13703 | r=`${PWD_COMMAND}`; export r; \ | |
13704 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
13705 | $(HOST_EXPORTS) \ |
13706 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
13707 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
13708 | done; \ | |
13709 | echo "Doing dvi in libiberty" ; \ | |
b00612cc | 13710 | (cd $(HOST_SUBDIR)/libiberty && \ |
2a4cbe27 NN |
13711 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13712 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13713 | "RANLIB=$${RANLIB}" \ | |
13714 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
6d389afc | 13715 | dvi) \ |
2a4cbe27 NN |
13716 | || exit 1 |
13717 | ||
b813574b | 13718 | @endif libiberty |
2a4cbe27 | 13719 | |
6d389afc MS |
13720 | .PHONY: maybe-html-libiberty html-libiberty |
13721 | maybe-html-libiberty: | |
b813574b | 13722 | @if libiberty |
6d389afc | 13723 | maybe-html-libiberty: html-libiberty |
2a4cbe27 | 13724 | |
6d389afc | 13725 | html-libiberty: \ |
b813574b PB |
13726 | configure-libiberty |
13727 | @[ -f ./libiberty/Makefile ] || exit 0; \ | |
b40e3958 L |
13728 | r=`${PWD_COMMAND}`; export r; \ |
13729 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13730 | $(HOST_EXPORTS) \ |
b813574b | 13731 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
13732 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
13733 | done; \ | |
6d389afc | 13734 | echo "Doing html in libiberty" ; \ |
b00612cc | 13735 | (cd $(HOST_SUBDIR)/libiberty && \ |
2a4cbe27 NN |
13736 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13737 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13738 | "RANLIB=$${RANLIB}" \ | |
13739 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
6d389afc | 13740 | html) \ |
2a4cbe27 NN |
13741 | || exit 1 |
13742 | ||
b813574b | 13743 | @endif libiberty |
2a4cbe27 | 13744 | |
b813574b PB |
13745 | .PHONY: maybe-TAGS-libiberty TAGS-libiberty |
13746 | maybe-TAGS-libiberty: | |
13747 | @if libiberty | |
13748 | maybe-TAGS-libiberty: TAGS-libiberty | |
2a4cbe27 | 13749 | |
b813574b PB |
13750 | TAGS-libiberty: \ |
13751 | configure-libiberty | |
13752 | @[ -f ./libiberty/Makefile ] || exit 0; \ | |
b40e3958 L |
13753 | r=`${PWD_COMMAND}`; export r; \ |
13754 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13755 | $(HOST_EXPORTS) \ |
b813574b | 13756 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
13757 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
13758 | done; \ | |
b813574b | 13759 | echo "Doing TAGS in libiberty" ; \ |
b00612cc | 13760 | (cd $(HOST_SUBDIR)/libiberty && \ |
2a4cbe27 NN |
13761 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13762 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13763 | "RANLIB=$${RANLIB}" \ | |
13764 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 13765 | TAGS) \ |
2a4cbe27 NN |
13766 | || exit 1 |
13767 | ||
b813574b | 13768 | @endif libiberty |
2a4cbe27 | 13769 | |
b813574b PB |
13770 | .PHONY: maybe-install-info-libiberty install-info-libiberty |
13771 | maybe-install-info-libiberty: | |
13772 | @if libiberty | |
13773 | maybe-install-info-libiberty: install-info-libiberty | |
2a4cbe27 | 13774 | |
b813574b PB |
13775 | install-info-libiberty: \ |
13776 | configure-libiberty \ | |
13777 | info-libiberty | |
13778 | @[ -f ./libiberty/Makefile ] || exit 0; \ | |
b40e3958 L |
13779 | r=`${PWD_COMMAND}`; export r; \ |
13780 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13781 | $(HOST_EXPORTS) \ |
b813574b | 13782 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
13783 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
13784 | done; \ | |
b813574b | 13785 | echo "Doing install-info in libiberty" ; \ |
b00612cc | 13786 | (cd $(HOST_SUBDIR)/libiberty && \ |
2a4cbe27 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 | install-info) \ |
2a4cbe27 NN |
13792 | || exit 1 |
13793 | ||
b813574b | 13794 | @endif libiberty |
2a4cbe27 | 13795 | |
b813574b PB |
13796 | .PHONY: maybe-installcheck-libiberty installcheck-libiberty |
13797 | maybe-installcheck-libiberty: | |
13798 | @if libiberty | |
13799 | maybe-installcheck-libiberty: installcheck-libiberty | |
2a4cbe27 | 13800 | |
b813574b PB |
13801 | installcheck-libiberty: \ |
13802 | configure-libiberty | |
13803 | @[ -f ./libiberty/Makefile ] || exit 0; \ | |
b40e3958 L |
13804 | r=`${PWD_COMMAND}`; export r; \ |
13805 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13806 | $(HOST_EXPORTS) \ |
b813574b | 13807 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
13808 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
13809 | done; \ | |
b813574b | 13810 | echo "Doing installcheck in libiberty" ; \ |
b00612cc | 13811 | (cd $(HOST_SUBDIR)/libiberty && \ |
2a4cbe27 NN |
13812 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13813 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13814 | "RANLIB=$${RANLIB}" \ | |
13815 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 13816 | installcheck) \ |
2a4cbe27 NN |
13817 | || exit 1 |
13818 | ||
b813574b | 13819 | @endif libiberty |
2a4cbe27 | 13820 | |
b813574b PB |
13821 | .PHONY: maybe-mostlyclean-libiberty mostlyclean-libiberty |
13822 | maybe-mostlyclean-libiberty: | |
13823 | @if libiberty | |
13824 | maybe-mostlyclean-libiberty: mostlyclean-libiberty | |
2a4cbe27 | 13825 | |
b813574b PB |
13826 | mostlyclean-libiberty: |
13827 | @[ -f ./libiberty/Makefile ] || exit 0; \ | |
b40e3958 L |
13828 | r=`${PWD_COMMAND}`; export r; \ |
13829 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13830 | $(HOST_EXPORTS) \ |
b813574b | 13831 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
13832 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
13833 | done; \ | |
b813574b | 13834 | echo "Doing mostlyclean in libiberty" ; \ |
b00612cc | 13835 | (cd $(HOST_SUBDIR)/libiberty && \ |
2a4cbe27 NN |
13836 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13837 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13838 | "RANLIB=$${RANLIB}" \ | |
13839 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 13840 | mostlyclean) \ |
2a4cbe27 NN |
13841 | || exit 1 |
13842 | ||
b813574b | 13843 | @endif libiberty |
2a4cbe27 | 13844 | |
b813574b PB |
13845 | .PHONY: maybe-clean-libiberty clean-libiberty |
13846 | maybe-clean-libiberty: | |
13847 | @if libiberty | |
13848 | maybe-clean-libiberty: clean-libiberty | |
2a4cbe27 | 13849 | |
b813574b PB |
13850 | clean-libiberty: |
13851 | @[ -f ./libiberty/Makefile ] || exit 0; \ | |
b40e3958 L |
13852 | r=`${PWD_COMMAND}`; export r; \ |
13853 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13854 | $(HOST_EXPORTS) \ |
b813574b | 13855 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
13856 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
13857 | done; \ | |
b813574b | 13858 | echo "Doing clean in libiberty" ; \ |
b00612cc | 13859 | (cd $(HOST_SUBDIR)/libiberty && \ |
2a4cbe27 NN |
13860 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13861 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13862 | "RANLIB=$${RANLIB}" \ | |
13863 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 13864 | clean) \ |
2a4cbe27 NN |
13865 | || exit 1 |
13866 | ||
b813574b | 13867 | @endif libiberty |
2a4cbe27 | 13868 | |
b813574b PB |
13869 | .PHONY: maybe-distclean-libiberty distclean-libiberty |
13870 | maybe-distclean-libiberty: | |
13871 | @if libiberty | |
13872 | maybe-distclean-libiberty: distclean-libiberty | |
2a4cbe27 | 13873 | |
b813574b PB |
13874 | distclean-libiberty: |
13875 | @[ -f ./libiberty/Makefile ] || exit 0; \ | |
b40e3958 L |
13876 | r=`${PWD_COMMAND}`; export r; \ |
13877 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13878 | $(HOST_EXPORTS) \ |
b813574b | 13879 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
13880 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
13881 | done; \ | |
b813574b | 13882 | echo "Doing distclean in libiberty" ; \ |
b00612cc | 13883 | (cd $(HOST_SUBDIR)/libiberty && \ |
2a4cbe27 NN |
13884 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13885 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13886 | "RANLIB=$${RANLIB}" \ | |
13887 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 13888 | distclean) \ |
2a4cbe27 NN |
13889 | || exit 1 |
13890 | ||
b813574b | 13891 | @endif libiberty |
2a4cbe27 | 13892 | |
b813574b PB |
13893 | .PHONY: maybe-maintainer-clean-libiberty maintainer-clean-libiberty |
13894 | maybe-maintainer-clean-libiberty: | |
13895 | @if libiberty | |
13896 | maybe-maintainer-clean-libiberty: maintainer-clean-libiberty | |
2a4cbe27 | 13897 | |
b813574b PB |
13898 | maintainer-clean-libiberty: |
13899 | @[ -f ./libiberty/Makefile ] || exit 0; \ | |
b40e3958 L |
13900 | r=`${PWD_COMMAND}`; export r; \ |
13901 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13902 | $(HOST_EXPORTS) \ |
b813574b | 13903 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
13904 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
13905 | done; \ | |
b813574b | 13906 | echo "Doing maintainer-clean in libiberty" ; \ |
b00612cc | 13907 | (cd $(HOST_SUBDIR)/libiberty && \ |
2a4cbe27 NN |
13908 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13909 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13910 | "RANLIB=$${RANLIB}" \ | |
13911 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 13912 | maintainer-clean) \ |
2a4cbe27 NN |
13913 | || exit 1 |
13914 | ||
b813574b | 13915 | @endif libiberty |
2a4cbe27 | 13916 | |
2a4cbe27 | 13917 | |
a7254363 | 13918 | |
b813574b PB |
13919 | .PHONY: configure-libtool maybe-configure-libtool |
13920 | maybe-configure-libtool: | |
13921 | @if libtool | |
13922 | maybe-configure-libtool: configure-libtool | |
a7254363 | 13923 | configure-libtool: |
b00612cc PB |
13924 | @test ! -f $(HOST_SUBDIR)/libtool/Makefile || exit 0; \ |
13925 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libtool ; \ | |
b40e3958 L |
13926 | r=`${PWD_COMMAND}`; export r; \ |
13927 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13928 | $(HOST_EXPORTS) \ |
a7254363 PB |
13929 | echo Configuring in $(HOST_SUBDIR)/libtool; \ |
13930 | cd "$(HOST_SUBDIR)/libtool" || exit 1; \ | |
4fa63067 | 13931 | case $(srcdir) in \ |
b00612cc PB |
13932 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
13933 | *) topdir=`echo $(HOST_SUBDIR)/libtool/ | \ | |
13934 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 13935 | esac; \ |
b00612cc PB |
13936 | srcdiroption="--srcdir=$${topdir}/libtool"; \ |
13937 | libsrcdir="$$s/libtool"; \ | |
4fa63067 | 13938 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 13939 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
2a4cbe27 | 13940 | || exit 1 |
b813574b | 13941 | @endif libtool |
2a4cbe27 | 13942 | |
a7254363 PB |
13943 | |
13944 | ||
b813574b PB |
13945 | .PHONY: all-libtool maybe-all-libtool |
13946 | maybe-all-libtool: | |
13947 | @if libtool | |
d27cc32e | 13948 | TARGET-libtool=all |
b813574b PB |
13949 | maybe-all-libtool: all-libtool |
13950 | all-libtool: configure-libtool | |
4fa63067 NN |
13951 | @r=`${PWD_COMMAND}`; export r; \ |
13952 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13953 | $(HOST_EXPORTS) \ |
b00612cc PB |
13954 | (cd $(HOST_SUBDIR)/libtool && \ |
13955 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-libtool)) | |
b813574b | 13956 | @endif libtool |
2a4cbe27 | 13957 | |
a7254363 | 13958 | |
b813574b PB |
13959 | .PHONY: check-libtool maybe-check-libtool |
13960 | maybe-check-libtool: | |
13961 | @if libtool | |
13962 | maybe-check-libtool: check-libtool | |
2a4cbe27 | 13963 | |
b813574b | 13964 | check-libtool: |
4fa63067 | 13965 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 13966 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 13967 | $(HOST_EXPORTS) \ |
b00612cc PB |
13968 | (cd $(HOST_SUBDIR)/libtool && \ |
13969 | $(MAKE) $(FLAGS_TO_PASS) check) | |
2a4cbe27 | 13970 | |
b813574b | 13971 | @endif libtool |
2a4cbe27 | 13972 | |
b813574b PB |
13973 | .PHONY: install-libtool maybe-install-libtool |
13974 | maybe-install-libtool: | |
13975 | @if libtool | |
13976 | maybe-install-libtool: install-libtool | |
2a4cbe27 | 13977 | |
b813574b | 13978 | install-libtool: installdirs |
4fa63067 | 13979 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 13980 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 13981 | $(HOST_EXPORTS) \ |
b00612cc | 13982 | (cd $(HOST_SUBDIR)/libtool && \ |
2da12f12 | 13983 | $(MAKE) $(FLAGS_TO_PASS) install) |
2a4cbe27 | 13984 | |
b813574b | 13985 | @endif libtool |
2a4cbe27 | 13986 | |
4fa63067 | 13987 | # Other targets (info, dvi, etc.) |
2a4cbe27 | 13988 | |
b813574b PB |
13989 | .PHONY: maybe-info-libtool info-libtool |
13990 | maybe-info-libtool: | |
13991 | @if libtool | |
13992 | maybe-info-libtool: info-libtool | |
4fa63067 | 13993 | |
b813574b PB |
13994 | info-libtool: \ |
13995 | configure-libtool | |
13996 | @[ -f ./libtool/Makefile ] || exit 0; \ | |
b40e3958 L |
13997 | r=`${PWD_COMMAND}`; export r; \ |
13998 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13999 | $(HOST_EXPORTS) \ |
b813574b | 14000 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
14001 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14002 | done; \ | |
b813574b | 14003 | echo "Doing info in libtool" ; \ |
b00612cc | 14004 | (cd $(HOST_SUBDIR)/libtool && \ |
2a4cbe27 NN |
14005 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14006 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14007 | "RANLIB=$${RANLIB}" \ | |
14008 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 14009 | info) \ |
2a4cbe27 NN |
14010 | || exit 1 |
14011 | ||
b813574b | 14012 | @endif libtool |
2a4cbe27 | 14013 | |
b813574b PB |
14014 | .PHONY: maybe-dvi-libtool dvi-libtool |
14015 | maybe-dvi-libtool: | |
14016 | @if libtool | |
14017 | maybe-dvi-libtool: dvi-libtool | |
2a4cbe27 | 14018 | |
b813574b PB |
14019 | dvi-libtool: \ |
14020 | configure-libtool | |
14021 | @[ -f ./libtool/Makefile ] || exit 0; \ | |
b40e3958 L |
14022 | r=`${PWD_COMMAND}`; export r; \ |
14023 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14024 | $(HOST_EXPORTS) \ |
b813574b | 14025 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
14026 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14027 | done; \ | |
b813574b | 14028 | echo "Doing dvi in libtool" ; \ |
b00612cc | 14029 | (cd $(HOST_SUBDIR)/libtool && \ |
2a4cbe27 NN |
14030 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14031 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14032 | "RANLIB=$${RANLIB}" \ | |
14033 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 14034 | dvi) \ |
2a4cbe27 NN |
14035 | || exit 1 |
14036 | ||
b813574b | 14037 | @endif libtool |
2a4cbe27 | 14038 | |
6d389afc MS |
14039 | .PHONY: maybe-html-libtool html-libtool |
14040 | maybe-html-libtool: | |
14041 | @if libtool | |
14042 | maybe-html-libtool: html-libtool | |
14043 | ||
14044 | html-libtool: \ | |
14045 | configure-libtool | |
14046 | @[ -f ./libtool/Makefile ] || exit 0; \ | |
14047 | r=`${PWD_COMMAND}`; export r; \ | |
14048 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
14049 | $(HOST_EXPORTS) \ |
14050 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
14051 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
14052 | done; \ | |
14053 | echo "Doing html in libtool" ; \ | |
b00612cc | 14054 | (cd $(HOST_SUBDIR)/libtool && \ |
6d389afc MS |
14055 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14056 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14057 | "RANLIB=$${RANLIB}" \ | |
14058 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
14059 | html) \ | |
14060 | || exit 1 | |
14061 | ||
14062 | @endif libtool | |
14063 | ||
b813574b PB |
14064 | .PHONY: maybe-TAGS-libtool TAGS-libtool |
14065 | maybe-TAGS-libtool: | |
14066 | @if libtool | |
14067 | maybe-TAGS-libtool: TAGS-libtool | |
2a4cbe27 | 14068 | |
b813574b PB |
14069 | TAGS-libtool: \ |
14070 | configure-libtool | |
14071 | @[ -f ./libtool/Makefile ] || exit 0; \ | |
b40e3958 L |
14072 | r=`${PWD_COMMAND}`; export r; \ |
14073 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14074 | $(HOST_EXPORTS) \ |
b813574b | 14075 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
14076 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14077 | done; \ | |
b813574b | 14078 | echo "Doing TAGS in libtool" ; \ |
b00612cc | 14079 | (cd $(HOST_SUBDIR)/libtool && \ |
2a4cbe27 NN |
14080 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14081 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14082 | "RANLIB=$${RANLIB}" \ | |
14083 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 14084 | TAGS) \ |
2a4cbe27 NN |
14085 | || exit 1 |
14086 | ||
b813574b | 14087 | @endif libtool |
2a4cbe27 | 14088 | |
b813574b PB |
14089 | .PHONY: maybe-install-info-libtool install-info-libtool |
14090 | maybe-install-info-libtool: | |
14091 | @if libtool | |
14092 | maybe-install-info-libtool: install-info-libtool | |
2a4cbe27 | 14093 | |
b813574b PB |
14094 | install-info-libtool: \ |
14095 | configure-libtool \ | |
14096 | info-libtool | |
14097 | @[ -f ./libtool/Makefile ] || exit 0; \ | |
b40e3958 L |
14098 | r=`${PWD_COMMAND}`; export r; \ |
14099 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14100 | $(HOST_EXPORTS) \ |
b813574b | 14101 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
14102 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14103 | done; \ | |
b813574b | 14104 | echo "Doing install-info in libtool" ; \ |
b00612cc | 14105 | (cd $(HOST_SUBDIR)/libtool && \ |
2a4cbe27 NN |
14106 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14107 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14108 | "RANLIB=$${RANLIB}" \ | |
14109 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 14110 | install-info) \ |
2a4cbe27 NN |
14111 | || exit 1 |
14112 | ||
b813574b | 14113 | @endif libtool |
2a4cbe27 | 14114 | |
b813574b PB |
14115 | .PHONY: maybe-installcheck-libtool installcheck-libtool |
14116 | maybe-installcheck-libtool: | |
14117 | @if libtool | |
14118 | maybe-installcheck-libtool: installcheck-libtool | |
2a4cbe27 | 14119 | |
b813574b PB |
14120 | installcheck-libtool: \ |
14121 | configure-libtool | |
14122 | @[ -f ./libtool/Makefile ] || exit 0; \ | |
b40e3958 L |
14123 | r=`${PWD_COMMAND}`; export r; \ |
14124 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14125 | $(HOST_EXPORTS) \ |
b813574b | 14126 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
14127 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14128 | done; \ | |
b813574b | 14129 | echo "Doing installcheck in libtool" ; \ |
b00612cc | 14130 | (cd $(HOST_SUBDIR)/libtool && \ |
2a4cbe27 NN |
14131 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14132 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14133 | "RANLIB=$${RANLIB}" \ | |
14134 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 14135 | installcheck) \ |
2a4cbe27 NN |
14136 | || exit 1 |
14137 | ||
b813574b | 14138 | @endif libtool |
2a4cbe27 | 14139 | |
b813574b PB |
14140 | .PHONY: maybe-mostlyclean-libtool mostlyclean-libtool |
14141 | maybe-mostlyclean-libtool: | |
14142 | @if libtool | |
14143 | maybe-mostlyclean-libtool: mostlyclean-libtool | |
2a4cbe27 | 14144 | |
b813574b PB |
14145 | mostlyclean-libtool: |
14146 | @[ -f ./libtool/Makefile ] || exit 0; \ | |
b40e3958 L |
14147 | r=`${PWD_COMMAND}`; export r; \ |
14148 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14149 | $(HOST_EXPORTS) \ |
b813574b | 14150 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
14151 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14152 | done; \ | |
b813574b | 14153 | echo "Doing mostlyclean in libtool" ; \ |
b00612cc | 14154 | (cd $(HOST_SUBDIR)/libtool && \ |
2a4cbe27 NN |
14155 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14156 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14157 | "RANLIB=$${RANLIB}" \ | |
14158 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 14159 | mostlyclean) \ |
2a4cbe27 NN |
14160 | || exit 1 |
14161 | ||
b813574b | 14162 | @endif libtool |
2a4cbe27 | 14163 | |
b813574b PB |
14164 | .PHONY: maybe-clean-libtool clean-libtool |
14165 | maybe-clean-libtool: | |
14166 | @if libtool | |
14167 | maybe-clean-libtool: clean-libtool | |
2a4cbe27 | 14168 | |
b813574b PB |
14169 | clean-libtool: |
14170 | @[ -f ./libtool/Makefile ] || exit 0; \ | |
b40e3958 L |
14171 | r=`${PWD_COMMAND}`; export r; \ |
14172 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14173 | $(HOST_EXPORTS) \ |
b813574b | 14174 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
14175 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14176 | done; \ | |
b813574b | 14177 | echo "Doing clean in libtool" ; \ |
b00612cc | 14178 | (cd $(HOST_SUBDIR)/libtool && \ |
2a4cbe27 NN |
14179 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14180 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14181 | "RANLIB=$${RANLIB}" \ | |
14182 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 14183 | clean) \ |
2a4cbe27 NN |
14184 | || exit 1 |
14185 | ||
b813574b | 14186 | @endif libtool |
2a4cbe27 | 14187 | |
b813574b PB |
14188 | .PHONY: maybe-distclean-libtool distclean-libtool |
14189 | maybe-distclean-libtool: | |
14190 | @if libtool | |
14191 | maybe-distclean-libtool: distclean-libtool | |
2a4cbe27 | 14192 | |
b813574b PB |
14193 | distclean-libtool: |
14194 | @[ -f ./libtool/Makefile ] || exit 0; \ | |
b40e3958 L |
14195 | r=`${PWD_COMMAND}`; export r; \ |
14196 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14197 | $(HOST_EXPORTS) \ |
b813574b | 14198 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
14199 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14200 | done; \ | |
b813574b | 14201 | echo "Doing distclean in libtool" ; \ |
b00612cc | 14202 | (cd $(HOST_SUBDIR)/libtool && \ |
2a4cbe27 NN |
14203 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14204 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14205 | "RANLIB=$${RANLIB}" \ | |
14206 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 14207 | distclean) \ |
2a4cbe27 NN |
14208 | || exit 1 |
14209 | ||
b813574b | 14210 | @endif libtool |
2a4cbe27 | 14211 | |
b813574b PB |
14212 | .PHONY: maybe-maintainer-clean-libtool maintainer-clean-libtool |
14213 | maybe-maintainer-clean-libtool: | |
14214 | @if libtool | |
14215 | maybe-maintainer-clean-libtool: maintainer-clean-libtool | |
2a4cbe27 | 14216 | |
b813574b PB |
14217 | maintainer-clean-libtool: |
14218 | @[ -f ./libtool/Makefile ] || exit 0; \ | |
b40e3958 L |
14219 | r=`${PWD_COMMAND}`; export r; \ |
14220 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14221 | $(HOST_EXPORTS) \ |
b813574b | 14222 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
14223 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14224 | done; \ | |
b813574b | 14225 | echo "Doing maintainer-clean in libtool" ; \ |
b00612cc | 14226 | (cd $(HOST_SUBDIR)/libtool && \ |
2a4cbe27 NN |
14227 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14228 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14229 | "RANLIB=$${RANLIB}" \ | |
14230 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 14231 | maintainer-clean) \ |
2a4cbe27 NN |
14232 | || exit 1 |
14233 | ||
b813574b | 14234 | @endif libtool |
2a4cbe27 | 14235 | |
2a4cbe27 | 14236 | |
a7254363 | 14237 | |
b813574b PB |
14238 | .PHONY: configure-m4 maybe-configure-m4 |
14239 | maybe-configure-m4: | |
14240 | @if m4 | |
14241 | maybe-configure-m4: configure-m4 | |
a7254363 | 14242 | configure-m4: |
b00612cc PB |
14243 | @test ! -f $(HOST_SUBDIR)/m4/Makefile || exit 0; \ |
14244 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/m4 ; \ | |
b40e3958 L |
14245 | r=`${PWD_COMMAND}`; export r; \ |
14246 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14247 | $(HOST_EXPORTS) \ |
a7254363 PB |
14248 | echo Configuring in $(HOST_SUBDIR)/m4; \ |
14249 | cd "$(HOST_SUBDIR)/m4" || exit 1; \ | |
4fa63067 | 14250 | case $(srcdir) in \ |
b00612cc PB |
14251 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
14252 | *) topdir=`echo $(HOST_SUBDIR)/m4/ | \ | |
14253 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 14254 | esac; \ |
b00612cc PB |
14255 | srcdiroption="--srcdir=$${topdir}/m4"; \ |
14256 | libsrcdir="$$s/m4"; \ | |
4fa63067 | 14257 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 14258 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
2a4cbe27 | 14259 | || exit 1 |
b813574b | 14260 | @endif m4 |
2a4cbe27 | 14261 | |
a7254363 PB |
14262 | |
14263 | ||
b813574b PB |
14264 | .PHONY: all-m4 maybe-all-m4 |
14265 | maybe-all-m4: | |
14266 | @if m4 | |
d27cc32e | 14267 | TARGET-m4=all |
b813574b PB |
14268 | maybe-all-m4: all-m4 |
14269 | all-m4: configure-m4 | |
4fa63067 NN |
14270 | @r=`${PWD_COMMAND}`; export r; \ |
14271 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14272 | $(HOST_EXPORTS) \ |
b00612cc PB |
14273 | (cd $(HOST_SUBDIR)/m4 && \ |
14274 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-m4)) | |
b813574b | 14275 | @endif m4 |
4fa63067 | 14276 | |
a7254363 | 14277 | |
b813574b PB |
14278 | .PHONY: check-m4 maybe-check-m4 |
14279 | maybe-check-m4: | |
14280 | @if m4 | |
14281 | maybe-check-m4: check-m4 | |
2a4cbe27 | 14282 | |
b813574b | 14283 | check-m4: |
4fa63067 NN |
14284 | @r=`${PWD_COMMAND}`; export r; \ |
14285 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14286 | $(HOST_EXPORTS) \ |
b00612cc PB |
14287 | (cd $(HOST_SUBDIR)/m4 && \ |
14288 | $(MAKE) $(FLAGS_TO_PASS) check) | |
2a4cbe27 | 14289 | |
b813574b | 14290 | @endif m4 |
4fa63067 | 14291 | |
b813574b PB |
14292 | .PHONY: install-m4 maybe-install-m4 |
14293 | maybe-install-m4: | |
14294 | @if m4 | |
14295 | maybe-install-m4: install-m4 | |
4fa63067 | 14296 | |
b813574b | 14297 | install-m4: installdirs |
4fa63067 NN |
14298 | @r=`${PWD_COMMAND}`; export r; \ |
14299 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14300 | $(HOST_EXPORTS) \ |
b00612cc | 14301 | (cd $(HOST_SUBDIR)/m4 && \ |
2da12f12 | 14302 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 14303 | |
b813574b | 14304 | @endif m4 |
4fa63067 NN |
14305 | |
14306 | # Other targets (info, dvi, etc.) | |
14307 | ||
b813574b PB |
14308 | .PHONY: maybe-info-m4 info-m4 |
14309 | maybe-info-m4: | |
14310 | @if m4 | |
14311 | maybe-info-m4: info-m4 | |
4fa63067 | 14312 | |
b813574b PB |
14313 | info-m4: \ |
14314 | configure-m4 | |
14315 | @[ -f ./m4/Makefile ] || exit 0; \ | |
b40e3958 L |
14316 | r=`${PWD_COMMAND}`; export r; \ |
14317 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14318 | $(HOST_EXPORTS) \ |
b813574b | 14319 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
14320 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14321 | done; \ | |
b813574b | 14322 | echo "Doing info in m4" ; \ |
b00612cc | 14323 | (cd $(HOST_SUBDIR)/m4 && \ |
2a4cbe27 NN |
14324 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14325 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14326 | "RANLIB=$${RANLIB}" \ | |
14327 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 14328 | info) \ |
2a4cbe27 NN |
14329 | || exit 1 |
14330 | ||
b813574b | 14331 | @endif m4 |
2a4cbe27 | 14332 | |
b813574b PB |
14333 | .PHONY: maybe-dvi-m4 dvi-m4 |
14334 | maybe-dvi-m4: | |
14335 | @if m4 | |
14336 | maybe-dvi-m4: dvi-m4 | |
2a4cbe27 | 14337 | |
b813574b PB |
14338 | dvi-m4: \ |
14339 | configure-m4 | |
14340 | @[ -f ./m4/Makefile ] || exit 0; \ | |
b40e3958 L |
14341 | r=`${PWD_COMMAND}`; export r; \ |
14342 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14343 | $(HOST_EXPORTS) \ |
b813574b | 14344 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
14345 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14346 | done; \ | |
b813574b | 14347 | echo "Doing dvi in m4" ; \ |
b00612cc | 14348 | (cd $(HOST_SUBDIR)/m4 && \ |
2a4cbe27 NN |
14349 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14350 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14351 | "RANLIB=$${RANLIB}" \ | |
14352 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 14353 | dvi) \ |
2a4cbe27 NN |
14354 | || exit 1 |
14355 | ||
b813574b | 14356 | @endif m4 |
2a4cbe27 | 14357 | |
6d389afc MS |
14358 | .PHONY: maybe-html-m4 html-m4 |
14359 | maybe-html-m4: | |
14360 | @if m4 | |
14361 | maybe-html-m4: html-m4 | |
14362 | ||
14363 | html-m4: \ | |
14364 | configure-m4 | |
14365 | @[ -f ./m4/Makefile ] || exit 0; \ | |
14366 | r=`${PWD_COMMAND}`; export r; \ | |
14367 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
14368 | $(HOST_EXPORTS) \ |
14369 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
14370 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
14371 | done; \ | |
14372 | echo "Doing html in m4" ; \ | |
b00612cc | 14373 | (cd $(HOST_SUBDIR)/m4 && \ |
6d389afc MS |
14374 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14375 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14376 | "RANLIB=$${RANLIB}" \ | |
14377 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
14378 | html) \ | |
14379 | || exit 1 | |
14380 | ||
14381 | @endif m4 | |
14382 | ||
b813574b PB |
14383 | .PHONY: maybe-TAGS-m4 TAGS-m4 |
14384 | maybe-TAGS-m4: | |
14385 | @if m4 | |
14386 | maybe-TAGS-m4: TAGS-m4 | |
2a4cbe27 | 14387 | |
b813574b PB |
14388 | TAGS-m4: \ |
14389 | configure-m4 | |
14390 | @[ -f ./m4/Makefile ] || exit 0; \ | |
b40e3958 L |
14391 | r=`${PWD_COMMAND}`; export r; \ |
14392 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14393 | $(HOST_EXPORTS) \ |
b813574b | 14394 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
14395 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14396 | done; \ | |
b813574b | 14397 | echo "Doing TAGS in m4" ; \ |
b00612cc | 14398 | (cd $(HOST_SUBDIR)/m4 && \ |
2a4cbe27 NN |
14399 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14400 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14401 | "RANLIB=$${RANLIB}" \ | |
14402 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 14403 | TAGS) \ |
2a4cbe27 NN |
14404 | || exit 1 |
14405 | ||
b813574b | 14406 | @endif m4 |
2a4cbe27 | 14407 | |
b813574b PB |
14408 | .PHONY: maybe-install-info-m4 install-info-m4 |
14409 | maybe-install-info-m4: | |
14410 | @if m4 | |
14411 | maybe-install-info-m4: install-info-m4 | |
2a4cbe27 | 14412 | |
b813574b PB |
14413 | install-info-m4: \ |
14414 | configure-m4 \ | |
14415 | info-m4 | |
14416 | @[ -f ./m4/Makefile ] || exit 0; \ | |
b40e3958 L |
14417 | r=`${PWD_COMMAND}`; export r; \ |
14418 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14419 | $(HOST_EXPORTS) \ |
b813574b | 14420 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
14421 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14422 | done; \ | |
b813574b | 14423 | echo "Doing install-info in m4" ; \ |
b00612cc | 14424 | (cd $(HOST_SUBDIR)/m4 && \ |
2a4cbe27 NN |
14425 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14426 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14427 | "RANLIB=$${RANLIB}" \ | |
14428 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 14429 | install-info) \ |
2a4cbe27 NN |
14430 | || exit 1 |
14431 | ||
b813574b | 14432 | @endif m4 |
2a4cbe27 | 14433 | |
b813574b PB |
14434 | .PHONY: maybe-installcheck-m4 installcheck-m4 |
14435 | maybe-installcheck-m4: | |
14436 | @if m4 | |
14437 | maybe-installcheck-m4: installcheck-m4 | |
2a4cbe27 | 14438 | |
b813574b PB |
14439 | installcheck-m4: \ |
14440 | configure-m4 | |
14441 | @[ -f ./m4/Makefile ] || exit 0; \ | |
b40e3958 L |
14442 | r=`${PWD_COMMAND}`; export r; \ |
14443 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14444 | $(HOST_EXPORTS) \ |
b813574b | 14445 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
14446 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14447 | done; \ | |
b813574b | 14448 | echo "Doing installcheck in m4" ; \ |
b00612cc | 14449 | (cd $(HOST_SUBDIR)/m4 && \ |
2a4cbe27 NN |
14450 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14451 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14452 | "RANLIB=$${RANLIB}" \ | |
14453 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 14454 | installcheck) \ |
2a4cbe27 NN |
14455 | || exit 1 |
14456 | ||
b813574b | 14457 | @endif m4 |
2a4cbe27 | 14458 | |
b813574b PB |
14459 | .PHONY: maybe-mostlyclean-m4 mostlyclean-m4 |
14460 | maybe-mostlyclean-m4: | |
14461 | @if m4 | |
14462 | maybe-mostlyclean-m4: mostlyclean-m4 | |
2a4cbe27 | 14463 | |
b813574b PB |
14464 | mostlyclean-m4: |
14465 | @[ -f ./m4/Makefile ] || exit 0; \ | |
b40e3958 L |
14466 | r=`${PWD_COMMAND}`; export r; \ |
14467 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14468 | $(HOST_EXPORTS) \ |
b813574b | 14469 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
14470 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14471 | done; \ | |
b813574b | 14472 | echo "Doing mostlyclean in m4" ; \ |
b00612cc | 14473 | (cd $(HOST_SUBDIR)/m4 && \ |
2a4cbe27 NN |
14474 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14475 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14476 | "RANLIB=$${RANLIB}" \ | |
14477 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 14478 | mostlyclean) \ |
2a4cbe27 NN |
14479 | || exit 1 |
14480 | ||
b813574b | 14481 | @endif m4 |
2a4cbe27 | 14482 | |
b813574b PB |
14483 | .PHONY: maybe-clean-m4 clean-m4 |
14484 | maybe-clean-m4: | |
14485 | @if m4 | |
14486 | maybe-clean-m4: clean-m4 | |
2a4cbe27 | 14487 | |
b813574b PB |
14488 | clean-m4: |
14489 | @[ -f ./m4/Makefile ] || exit 0; \ | |
b40e3958 L |
14490 | r=`${PWD_COMMAND}`; export r; \ |
14491 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14492 | $(HOST_EXPORTS) \ |
b813574b | 14493 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
14494 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14495 | done; \ | |
b813574b | 14496 | echo "Doing clean in m4" ; \ |
b00612cc | 14497 | (cd $(HOST_SUBDIR)/m4 && \ |
2a4cbe27 NN |
14498 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14499 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14500 | "RANLIB=$${RANLIB}" \ | |
14501 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 14502 | clean) \ |
2a4cbe27 NN |
14503 | || exit 1 |
14504 | ||
b813574b | 14505 | @endif m4 |
2a4cbe27 | 14506 | |
b813574b PB |
14507 | .PHONY: maybe-distclean-m4 distclean-m4 |
14508 | maybe-distclean-m4: | |
14509 | @if m4 | |
14510 | maybe-distclean-m4: distclean-m4 | |
a2592b1b | 14511 | |
b813574b PB |
14512 | distclean-m4: |
14513 | @[ -f ./m4/Makefile ] || exit 0; \ | |
a2592b1b DD |
14514 | r=`${PWD_COMMAND}`; export r; \ |
14515 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14516 | $(HOST_EXPORTS) \ |
b813574b | 14517 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
a2592b1b DD |
14518 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14519 | done; \ | |
b813574b | 14520 | echo "Doing distclean in m4" ; \ |
b00612cc | 14521 | (cd $(HOST_SUBDIR)/m4 && \ |
a2592b1b DD |
14522 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14523 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14524 | "RANLIB=$${RANLIB}" \ | |
14525 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 14526 | distclean) \ |
a2592b1b DD |
14527 | || exit 1 |
14528 | ||
b813574b | 14529 | @endif m4 |
a2592b1b | 14530 | |
b813574b PB |
14531 | .PHONY: maybe-maintainer-clean-m4 maintainer-clean-m4 |
14532 | maybe-maintainer-clean-m4: | |
14533 | @if m4 | |
14534 | maybe-maintainer-clean-m4: maintainer-clean-m4 | |
2a4cbe27 | 14535 | |
b813574b PB |
14536 | maintainer-clean-m4: |
14537 | @[ -f ./m4/Makefile ] || exit 0; \ | |
4fa63067 | 14538 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 14539 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 14540 | $(HOST_EXPORTS) \ |
b813574b | 14541 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
14542 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14543 | done; \ | |
b813574b | 14544 | echo "Doing maintainer-clean in m4" ; \ |
b00612cc | 14545 | (cd $(HOST_SUBDIR)/m4 && \ |
4fa63067 NN |
14546 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14547 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14548 | "RANLIB=$${RANLIB}" \ | |
14549 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 14550 | maintainer-clean) \ |
4fa63067 | 14551 | || exit 1 |
252b5132 | 14552 | |
b813574b | 14553 | @endif m4 |
252b5132 | 14554 | |
252b5132 | 14555 | |
a7254363 | 14556 | |
b813574b PB |
14557 | .PHONY: configure-make maybe-configure-make |
14558 | maybe-configure-make: | |
14559 | @if make | |
14560 | maybe-configure-make: configure-make | |
a7254363 | 14561 | configure-make: |
b00612cc PB |
14562 | @test ! -f $(HOST_SUBDIR)/make/Makefile || exit 0; \ |
14563 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/make ; \ | |
b813574b PB |
14564 | r=`${PWD_COMMAND}`; export r; \ |
14565 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
14566 | $(HOST_EXPORTS) \ | |
a7254363 PB |
14567 | echo Configuring in $(HOST_SUBDIR)/make; \ |
14568 | cd "$(HOST_SUBDIR)/make" || exit 1; \ | |
4fa63067 | 14569 | case $(srcdir) in \ |
b00612cc PB |
14570 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
14571 | *) topdir=`echo $(HOST_SUBDIR)/make/ | \ | |
14572 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 14573 | esac; \ |
b00612cc PB |
14574 | srcdiroption="--srcdir=$${topdir}/make"; \ |
14575 | libsrcdir="$$s/make"; \ | |
4fa63067 | 14576 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 14577 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
4fa63067 | 14578 | || exit 1 |
b813574b | 14579 | @endif make |
252b5132 | 14580 | |
a7254363 PB |
14581 | |
14582 | ||
b813574b PB |
14583 | .PHONY: all-make maybe-all-make |
14584 | maybe-all-make: | |
14585 | @if make | |
d27cc32e | 14586 | TARGET-make=all |
b813574b PB |
14587 | maybe-all-make: all-make |
14588 | all-make: configure-make | |
4fa63067 NN |
14589 | @r=`${PWD_COMMAND}`; export r; \ |
14590 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14591 | $(HOST_EXPORTS) \ |
b00612cc PB |
14592 | (cd $(HOST_SUBDIR)/make && \ |
14593 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-make)) | |
b813574b | 14594 | @endif make |
252b5132 | 14595 | |
a7254363 | 14596 | |
b813574b PB |
14597 | .PHONY: check-make maybe-check-make |
14598 | maybe-check-make: | |
14599 | @if make | |
14600 | maybe-check-make: check-make | |
252b5132 | 14601 | |
b813574b PB |
14602 | check-make: |
14603 | @r=`${PWD_COMMAND}`; export r; \ | |
14604 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b813574b | 14605 | $(HOST_EXPORTS) \ |
b00612cc PB |
14606 | (cd $(HOST_SUBDIR)/make && \ |
14607 | $(MAKE) $(FLAGS_TO_PASS) check) | |
dd12c3a8 | 14608 | |
b813574b | 14609 | @endif make |
16ae0395 | 14610 | |
b813574b PB |
14611 | .PHONY: install-make maybe-install-make |
14612 | maybe-install-make: | |
14613 | @if make | |
14614 | maybe-install-make: install-make | |
4fa63067 | 14615 | |
b813574b | 14616 | install-make: installdirs |
4fa63067 NN |
14617 | @r=`${PWD_COMMAND}`; export r; \ |
14618 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14619 | $(HOST_EXPORTS) \ |
b00612cc | 14620 | (cd $(HOST_SUBDIR)/make && \ |
2da12f12 | 14621 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 14622 | |
b813574b | 14623 | @endif make |
4fa63067 NN |
14624 | |
14625 | # Other targets (info, dvi, etc.) | |
14626 | ||
b813574b PB |
14627 | .PHONY: maybe-info-make info-make |
14628 | maybe-info-make: | |
14629 | @if make | |
14630 | maybe-info-make: info-make | |
4fa63067 | 14631 | |
b813574b PB |
14632 | info-make: \ |
14633 | configure-make | |
14634 | @[ -f ./make/Makefile ] || exit 0; \ | |
4fa63067 NN |
14635 | r=`${PWD_COMMAND}`; export r; \ |
14636 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14637 | $(HOST_EXPORTS) \ |
b813574b | 14638 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
14639 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14640 | done; \ | |
b813574b | 14641 | echo "Doing info in make" ; \ |
b00612cc | 14642 | (cd $(HOST_SUBDIR)/make && \ |
4fa63067 NN |
14643 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14644 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14645 | "RANLIB=$${RANLIB}" \ | |
14646 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 14647 | info) \ |
4fa63067 NN |
14648 | || exit 1 |
14649 | ||
b813574b | 14650 | @endif make |
4fa63067 | 14651 | |
b813574b PB |
14652 | .PHONY: maybe-dvi-make dvi-make |
14653 | maybe-dvi-make: | |
14654 | @if make | |
14655 | maybe-dvi-make: dvi-make | |
4fa63067 | 14656 | |
b813574b PB |
14657 | dvi-make: \ |
14658 | configure-make | |
14659 | @[ -f ./make/Makefile ] || exit 0; \ | |
4fa63067 NN |
14660 | r=`${PWD_COMMAND}`; export r; \ |
14661 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14662 | $(HOST_EXPORTS) \ |
b813574b | 14663 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
14664 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14665 | done; \ | |
b813574b | 14666 | echo "Doing dvi in make" ; \ |
b00612cc | 14667 | (cd $(HOST_SUBDIR)/make && \ |
4fa63067 NN |
14668 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14669 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14670 | "RANLIB=$${RANLIB}" \ | |
14671 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 14672 | dvi) \ |
4fa63067 | 14673 | || exit 1 |
16ae0395 | 14674 | |
b813574b | 14675 | @endif make |
252b5132 | 14676 | |
6d389afc MS |
14677 | .PHONY: maybe-html-make html-make |
14678 | maybe-html-make: | |
14679 | @if make | |
14680 | maybe-html-make: html-make | |
14681 | ||
14682 | html-make: \ | |
14683 | configure-make | |
14684 | @[ -f ./make/Makefile ] || exit 0; \ | |
14685 | r=`${PWD_COMMAND}`; export r; \ | |
14686 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
14687 | $(HOST_EXPORTS) \ |
14688 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
14689 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
14690 | done; \ | |
14691 | echo "Doing html in make" ; \ | |
b00612cc | 14692 | (cd $(HOST_SUBDIR)/make && \ |
6d389afc MS |
14693 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14694 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14695 | "RANLIB=$${RANLIB}" \ | |
14696 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
14697 | html) \ | |
14698 | || exit 1 | |
14699 | ||
14700 | @endif make | |
14701 | ||
b813574b PB |
14702 | .PHONY: maybe-TAGS-make TAGS-make |
14703 | maybe-TAGS-make: | |
14704 | @if make | |
14705 | maybe-TAGS-make: TAGS-make | |
252b5132 | 14706 | |
b813574b PB |
14707 | TAGS-make: \ |
14708 | configure-make | |
14709 | @[ -f ./make/Makefile ] || exit 0; \ | |
4fa63067 NN |
14710 | r=`${PWD_COMMAND}`; export r; \ |
14711 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14712 | $(HOST_EXPORTS) \ |
b813574b | 14713 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
14714 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14715 | done; \ | |
b813574b | 14716 | echo "Doing TAGS in make" ; \ |
b00612cc | 14717 | (cd $(HOST_SUBDIR)/make && \ |
4fa63067 NN |
14718 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14719 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14720 | "RANLIB=$${RANLIB}" \ | |
14721 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 14722 | TAGS) \ |
4fa63067 | 14723 | || exit 1 |
3866be5d | 14724 | |
b813574b | 14725 | @endif make |
3866be5d | 14726 | |
b813574b PB |
14727 | .PHONY: maybe-install-info-make install-info-make |
14728 | maybe-install-info-make: | |
14729 | @if make | |
14730 | maybe-install-info-make: install-info-make | |
3866be5d | 14731 | |
b813574b PB |
14732 | install-info-make: \ |
14733 | configure-make \ | |
14734 | info-make | |
14735 | @[ -f ./make/Makefile ] || exit 0; \ | |
4fa63067 NN |
14736 | r=`${PWD_COMMAND}`; export r; \ |
14737 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14738 | $(HOST_EXPORTS) \ |
b813574b | 14739 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
14740 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14741 | done; \ | |
b813574b | 14742 | echo "Doing install-info in make" ; \ |
b00612cc | 14743 | (cd $(HOST_SUBDIR)/make && \ |
4fa63067 NN |
14744 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14745 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14746 | "RANLIB=$${RANLIB}" \ | |
14747 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 14748 | install-info) \ |
4fa63067 | 14749 | || exit 1 |
3866be5d | 14750 | |
b813574b | 14751 | @endif make |
3866be5d | 14752 | |
b813574b PB |
14753 | .PHONY: maybe-installcheck-make installcheck-make |
14754 | maybe-installcheck-make: | |
14755 | @if make | |
14756 | maybe-installcheck-make: installcheck-make | |
15723a45 | 14757 | |
b813574b PB |
14758 | installcheck-make: \ |
14759 | configure-make | |
14760 | @[ -f ./make/Makefile ] || exit 0; \ | |
4fa63067 NN |
14761 | r=`${PWD_COMMAND}`; export r; \ |
14762 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14763 | $(HOST_EXPORTS) \ |
b813574b | 14764 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
14765 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14766 | done; \ | |
b813574b | 14767 | echo "Doing installcheck in make" ; \ |
b00612cc | 14768 | (cd $(HOST_SUBDIR)/make && \ |
4fa63067 NN |
14769 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14770 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14771 | "RANLIB=$${RANLIB}" \ | |
14772 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 14773 | installcheck) \ |
4fa63067 | 14774 | || exit 1 |
15723a45 | 14775 | |
b813574b | 14776 | @endif make |
15723a45 | 14777 | |
b813574b PB |
14778 | .PHONY: maybe-mostlyclean-make mostlyclean-make |
14779 | maybe-mostlyclean-make: | |
14780 | @if make | |
14781 | maybe-mostlyclean-make: mostlyclean-make | |
15723a45 | 14782 | |
b813574b PB |
14783 | mostlyclean-make: |
14784 | @[ -f ./make/Makefile ] || exit 0; \ | |
b40e3958 L |
14785 | r=`${PWD_COMMAND}`; export r; \ |
14786 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
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 | 14791 | echo "Doing mostlyclean in make" ; \ |
b00612cc | 14792 | (cd $(HOST_SUBDIR)/make && \ |
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 | mostlyclean) \ |
bba45b8b | 14798 | || exit 1 |
15723a45 | 14799 | |
b813574b | 14800 | @endif make |
4fa63067 | 14801 | |
b813574b PB |
14802 | .PHONY: maybe-clean-make clean-make |
14803 | maybe-clean-make: | |
14804 | @if make | |
14805 | maybe-clean-make: clean-make | |
4fa63067 | 14806 | |
b813574b PB |
14807 | clean-make: |
14808 | @[ -f ./make/Makefile ] || exit 0; \ | |
4fa63067 NN |
14809 | r=`${PWD_COMMAND}`; export r; \ |
14810 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14811 | $(HOST_EXPORTS) \ |
b813574b | 14812 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
14813 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14814 | done; \ | |
b813574b | 14815 | echo "Doing clean in make" ; \ |
b00612cc | 14816 | (cd $(HOST_SUBDIR)/make && \ |
4fa63067 NN |
14817 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14818 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14819 | "RANLIB=$${RANLIB}" \ | |
14820 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 14821 | clean) \ |
4fa63067 NN |
14822 | || exit 1 |
14823 | ||
b813574b | 14824 | @endif make |
4fa63067 | 14825 | |
b813574b PB |
14826 | .PHONY: maybe-distclean-make distclean-make |
14827 | maybe-distclean-make: | |
14828 | @if make | |
14829 | maybe-distclean-make: distclean-make | |
4fa63067 | 14830 | |
b813574b PB |
14831 | distclean-make: |
14832 | @[ -f ./make/Makefile ] || exit 0; \ | |
4fa63067 NN |
14833 | r=`${PWD_COMMAND}`; export r; \ |
14834 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14835 | $(HOST_EXPORTS) \ |
b813574b | 14836 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
14837 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14838 | done; \ | |
b813574b | 14839 | echo "Doing distclean in make" ; \ |
b00612cc | 14840 | (cd $(HOST_SUBDIR)/make && \ |
4fa63067 NN |
14841 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14842 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14843 | "RANLIB=$${RANLIB}" \ | |
14844 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 14845 | distclean) \ |
4fa63067 NN |
14846 | || exit 1 |
14847 | ||
b813574b | 14848 | @endif make |
4fa63067 | 14849 | |
b813574b PB |
14850 | .PHONY: maybe-maintainer-clean-make maintainer-clean-make |
14851 | maybe-maintainer-clean-make: | |
14852 | @if make | |
14853 | maybe-maintainer-clean-make: maintainer-clean-make | |
4fa63067 | 14854 | |
b813574b PB |
14855 | maintainer-clean-make: |
14856 | @[ -f ./make/Makefile ] || exit 0; \ | |
4fa63067 | 14857 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 14858 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 14859 | $(HOST_EXPORTS) \ |
b813574b | 14860 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
14861 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14862 | done; \ | |
b813574b | 14863 | echo "Doing maintainer-clean in make" ; \ |
b00612cc | 14864 | (cd $(HOST_SUBDIR)/make && \ |
4fa63067 NN |
14865 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14866 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14867 | "RANLIB=$${RANLIB}" \ | |
14868 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 14869 | maintainer-clean) \ |
4fa63067 | 14870 | || exit 1 |
3866be5d | 14871 | |
b813574b | 14872 | @endif make |
3866be5d | 14873 | |
3866be5d | 14874 | |
a7254363 | 14875 | |
b813574b PB |
14876 | .PHONY: configure-mmalloc maybe-configure-mmalloc |
14877 | maybe-configure-mmalloc: | |
14878 | @if mmalloc | |
14879 | maybe-configure-mmalloc: configure-mmalloc | |
a7254363 | 14880 | configure-mmalloc: |
b00612cc PB |
14881 | @test ! -f $(HOST_SUBDIR)/mmalloc/Makefile || exit 0; \ |
14882 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mmalloc ; \ | |
b40e3958 L |
14883 | r=`${PWD_COMMAND}`; export r; \ |
14884 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14885 | $(HOST_EXPORTS) \ |
a7254363 PB |
14886 | echo Configuring in $(HOST_SUBDIR)/mmalloc; \ |
14887 | cd "$(HOST_SUBDIR)/mmalloc" || exit 1; \ | |
e2b9e2dc | 14888 | case $(srcdir) in \ |
b00612cc PB |
14889 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
14890 | *) topdir=`echo $(HOST_SUBDIR)/mmalloc/ | \ | |
14891 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 14892 | esac; \ |
b00612cc PB |
14893 | srcdiroption="--srcdir=$${topdir}/mmalloc"; \ |
14894 | libsrcdir="$$s/mmalloc"; \ | |
e2b9e2dc | 14895 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 14896 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 14897 | || exit 1 |
b813574b | 14898 | @endif mmalloc |
e2b9e2dc | 14899 | |
a7254363 PB |
14900 | |
14901 | ||
b813574b PB |
14902 | .PHONY: all-mmalloc maybe-all-mmalloc |
14903 | maybe-all-mmalloc: | |
14904 | @if mmalloc | |
d27cc32e | 14905 | TARGET-mmalloc=all |
b813574b PB |
14906 | maybe-all-mmalloc: all-mmalloc |
14907 | all-mmalloc: configure-mmalloc | |
b40e3958 L |
14908 | @r=`${PWD_COMMAND}`; export r; \ |
14909 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14910 | $(HOST_EXPORTS) \ |
b00612cc PB |
14911 | (cd $(HOST_SUBDIR)/mmalloc && \ |
14912 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-mmalloc)) | |
b813574b | 14913 | @endif mmalloc |
3866be5d | 14914 | |
a7254363 | 14915 | |
b813574b PB |
14916 | .PHONY: check-mmalloc maybe-check-mmalloc |
14917 | maybe-check-mmalloc: | |
14918 | @if mmalloc | |
14919 | maybe-check-mmalloc: check-mmalloc | |
3866be5d | 14920 | |
b813574b | 14921 | check-mmalloc: |
3866be5d | 14922 | |
b813574b | 14923 | @endif mmalloc |
3866be5d | 14924 | |
b813574b PB |
14925 | .PHONY: install-mmalloc maybe-install-mmalloc |
14926 | maybe-install-mmalloc: | |
14927 | @if mmalloc | |
14928 | maybe-install-mmalloc: install-mmalloc | |
4fa63067 | 14929 | |
b813574b | 14930 | install-mmalloc: installdirs |
4fa63067 NN |
14931 | @r=`${PWD_COMMAND}`; export r; \ |
14932 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14933 | $(HOST_EXPORTS) \ |
b00612cc | 14934 | (cd $(HOST_SUBDIR)/mmalloc && \ |
2da12f12 | 14935 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 14936 | |
b813574b | 14937 | @endif mmalloc |
4fa63067 NN |
14938 | |
14939 | # Other targets (info, dvi, etc.) | |
14940 | ||
b813574b PB |
14941 | .PHONY: maybe-info-mmalloc info-mmalloc |
14942 | maybe-info-mmalloc: | |
14943 | @if mmalloc | |
14944 | maybe-info-mmalloc: info-mmalloc | |
4fa63067 | 14945 | |
b813574b PB |
14946 | info-mmalloc: \ |
14947 | configure-mmalloc | |
14948 | @[ -f ./mmalloc/Makefile ] || exit 0; \ | |
4fa63067 NN |
14949 | r=`${PWD_COMMAND}`; export r; \ |
14950 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14951 | $(HOST_EXPORTS) \ |
b813574b | 14952 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
14953 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14954 | done; \ | |
b813574b | 14955 | echo "Doing info in mmalloc" ; \ |
b00612cc | 14956 | (cd $(HOST_SUBDIR)/mmalloc && \ |
4fa63067 NN |
14957 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14958 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14959 | "RANLIB=$${RANLIB}" \ | |
14960 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 14961 | info) \ |
4fa63067 NN |
14962 | || exit 1 |
14963 | ||
b813574b | 14964 | @endif mmalloc |
4fa63067 | 14965 | |
b813574b PB |
14966 | .PHONY: maybe-dvi-mmalloc dvi-mmalloc |
14967 | maybe-dvi-mmalloc: | |
14968 | @if mmalloc | |
14969 | maybe-dvi-mmalloc: dvi-mmalloc | |
4fa63067 | 14970 | |
b813574b PB |
14971 | dvi-mmalloc: \ |
14972 | configure-mmalloc | |
14973 | @[ -f ./mmalloc/Makefile ] || exit 0; \ | |
4fa63067 NN |
14974 | r=`${PWD_COMMAND}`; export r; \ |
14975 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14976 | $(HOST_EXPORTS) \ |
b813574b | 14977 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
14978 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14979 | done; \ | |
b813574b | 14980 | echo "Doing dvi in mmalloc" ; \ |
b00612cc | 14981 | (cd $(HOST_SUBDIR)/mmalloc && \ |
4fa63067 NN |
14982 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14983 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14984 | "RANLIB=$${RANLIB}" \ | |
14985 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 14986 | dvi) \ |
4fa63067 NN |
14987 | || exit 1 |
14988 | ||
b813574b | 14989 | @endif mmalloc |
4fa63067 | 14990 | |
6d389afc MS |
14991 | .PHONY: maybe-html-mmalloc html-mmalloc |
14992 | maybe-html-mmalloc: | |
14993 | @if mmalloc | |
14994 | maybe-html-mmalloc: html-mmalloc | |
14995 | ||
14996 | html-mmalloc: \ | |
14997 | configure-mmalloc | |
14998 | @[ -f ./mmalloc/Makefile ] || exit 0; \ | |
14999 | r=`${PWD_COMMAND}`; export r; \ | |
15000 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
15001 | $(HOST_EXPORTS) \ |
15002 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
15003 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
15004 | done; \ | |
15005 | echo "Doing html in mmalloc" ; \ | |
b00612cc | 15006 | (cd $(HOST_SUBDIR)/mmalloc && \ |
6d389afc MS |
15007 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15008 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15009 | "RANLIB=$${RANLIB}" \ | |
15010 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
15011 | html) \ | |
15012 | || exit 1 | |
15013 | ||
15014 | @endif mmalloc | |
15015 | ||
b813574b PB |
15016 | .PHONY: maybe-TAGS-mmalloc TAGS-mmalloc |
15017 | maybe-TAGS-mmalloc: | |
15018 | @if mmalloc | |
15019 | maybe-TAGS-mmalloc: TAGS-mmalloc | |
4fa63067 | 15020 | |
b813574b PB |
15021 | TAGS-mmalloc: \ |
15022 | configure-mmalloc | |
15023 | @[ -f ./mmalloc/Makefile ] || exit 0; \ | |
4fa63067 NN |
15024 | r=`${PWD_COMMAND}`; export r; \ |
15025 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15026 | $(HOST_EXPORTS) \ |
b813574b | 15027 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
15028 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15029 | done; \ | |
b813574b | 15030 | echo "Doing TAGS in mmalloc" ; \ |
b00612cc | 15031 | (cd $(HOST_SUBDIR)/mmalloc && \ |
4fa63067 NN |
15032 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15033 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15034 | "RANLIB=$${RANLIB}" \ | |
15035 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 15036 | TAGS) \ |
4fa63067 NN |
15037 | || exit 1 |
15038 | ||
b813574b | 15039 | @endif mmalloc |
4fa63067 | 15040 | |
b813574b PB |
15041 | .PHONY: maybe-install-info-mmalloc install-info-mmalloc |
15042 | maybe-install-info-mmalloc: | |
15043 | @if mmalloc | |
15044 | maybe-install-info-mmalloc: install-info-mmalloc | |
4fa63067 | 15045 | |
b813574b PB |
15046 | install-info-mmalloc: \ |
15047 | configure-mmalloc \ | |
15048 | info-mmalloc | |
15049 | @[ -f ./mmalloc/Makefile ] || exit 0; \ | |
4fa63067 NN |
15050 | r=`${PWD_COMMAND}`; export r; \ |
15051 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15052 | $(HOST_EXPORTS) \ |
b813574b | 15053 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
15054 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15055 | done; \ | |
b813574b | 15056 | echo "Doing install-info in mmalloc" ; \ |
b00612cc | 15057 | (cd $(HOST_SUBDIR)/mmalloc && \ |
4fa63067 NN |
15058 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15059 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15060 | "RANLIB=$${RANLIB}" \ | |
15061 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 15062 | install-info) \ |
4fa63067 NN |
15063 | || exit 1 |
15064 | ||
b813574b | 15065 | @endif mmalloc |
4fa63067 | 15066 | |
b813574b PB |
15067 | .PHONY: maybe-installcheck-mmalloc installcheck-mmalloc |
15068 | maybe-installcheck-mmalloc: | |
15069 | @if mmalloc | |
15070 | maybe-installcheck-mmalloc: installcheck-mmalloc | |
4fa63067 | 15071 | |
b813574b PB |
15072 | installcheck-mmalloc: \ |
15073 | configure-mmalloc | |
15074 | @[ -f ./mmalloc/Makefile ] || exit 0; \ | |
4fa63067 NN |
15075 | r=`${PWD_COMMAND}`; export r; \ |
15076 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15077 | $(HOST_EXPORTS) \ |
b813574b | 15078 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
15079 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15080 | done; \ | |
b813574b | 15081 | echo "Doing installcheck in mmalloc" ; \ |
b00612cc | 15082 | (cd $(HOST_SUBDIR)/mmalloc && \ |
4fa63067 NN |
15083 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15084 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15085 | "RANLIB=$${RANLIB}" \ | |
15086 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 15087 | installcheck) \ |
4fa63067 NN |
15088 | || exit 1 |
15089 | ||
b813574b | 15090 | @endif mmalloc |
4fa63067 | 15091 | |
b813574b PB |
15092 | .PHONY: maybe-mostlyclean-mmalloc mostlyclean-mmalloc |
15093 | maybe-mostlyclean-mmalloc: | |
15094 | @if mmalloc | |
15095 | maybe-mostlyclean-mmalloc: mostlyclean-mmalloc | |
4fa63067 | 15096 | |
b813574b PB |
15097 | mostlyclean-mmalloc: |
15098 | @[ -f ./mmalloc/Makefile ] || exit 0; \ | |
4fa63067 NN |
15099 | r=`${PWD_COMMAND}`; export r; \ |
15100 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15101 | $(HOST_EXPORTS) \ |
b813574b | 15102 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
15103 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15104 | done; \ | |
b813574b | 15105 | echo "Doing mostlyclean in mmalloc" ; \ |
b00612cc | 15106 | (cd $(HOST_SUBDIR)/mmalloc && \ |
4fa63067 NN |
15107 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15108 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15109 | "RANLIB=$${RANLIB}" \ | |
15110 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 15111 | mostlyclean) \ |
4fa63067 NN |
15112 | || exit 1 |
15113 | ||
b813574b | 15114 | @endif mmalloc |
4fa63067 | 15115 | |
b813574b PB |
15116 | .PHONY: maybe-clean-mmalloc clean-mmalloc |
15117 | maybe-clean-mmalloc: | |
15118 | @if mmalloc | |
15119 | maybe-clean-mmalloc: clean-mmalloc | |
4fa63067 | 15120 | |
b813574b PB |
15121 | clean-mmalloc: |
15122 | @[ -f ./mmalloc/Makefile ] || exit 0; \ | |
4fa63067 NN |
15123 | r=`${PWD_COMMAND}`; export r; \ |
15124 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15125 | $(HOST_EXPORTS) \ |
b813574b | 15126 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
15127 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15128 | done; \ | |
b813574b | 15129 | echo "Doing clean in mmalloc" ; \ |
b00612cc | 15130 | (cd $(HOST_SUBDIR)/mmalloc && \ |
4fa63067 NN |
15131 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15132 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15133 | "RANLIB=$${RANLIB}" \ | |
15134 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 15135 | clean) \ |
4fa63067 NN |
15136 | || exit 1 |
15137 | ||
b813574b | 15138 | @endif mmalloc |
4fa63067 | 15139 | |
b813574b PB |
15140 | .PHONY: maybe-distclean-mmalloc distclean-mmalloc |
15141 | maybe-distclean-mmalloc: | |
15142 | @if mmalloc | |
15143 | maybe-distclean-mmalloc: distclean-mmalloc | |
4fa63067 | 15144 | |
b813574b PB |
15145 | distclean-mmalloc: |
15146 | @[ -f ./mmalloc/Makefile ] || exit 0; \ | |
4fa63067 NN |
15147 | r=`${PWD_COMMAND}`; export r; \ |
15148 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15149 | $(HOST_EXPORTS) \ |
b813574b | 15150 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
15151 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15152 | done; \ | |
b813574b | 15153 | echo "Doing distclean in mmalloc" ; \ |
b00612cc | 15154 | (cd $(HOST_SUBDIR)/mmalloc && \ |
4fa63067 NN |
15155 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15156 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15157 | "RANLIB=$${RANLIB}" \ | |
15158 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 15159 | distclean) \ |
4fa63067 NN |
15160 | || exit 1 |
15161 | ||
b813574b | 15162 | @endif mmalloc |
4fa63067 | 15163 | |
b813574b PB |
15164 | .PHONY: maybe-maintainer-clean-mmalloc maintainer-clean-mmalloc |
15165 | maybe-maintainer-clean-mmalloc: | |
15166 | @if mmalloc | |
15167 | maybe-maintainer-clean-mmalloc: maintainer-clean-mmalloc | |
4fa63067 | 15168 | |
b813574b PB |
15169 | maintainer-clean-mmalloc: |
15170 | @[ -f ./mmalloc/Makefile ] || exit 0; \ | |
4fa63067 NN |
15171 | r=`${PWD_COMMAND}`; export r; \ |
15172 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15173 | $(HOST_EXPORTS) \ |
b813574b | 15174 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
15175 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15176 | done; \ | |
b813574b | 15177 | echo "Doing maintainer-clean in mmalloc" ; \ |
b00612cc | 15178 | (cd $(HOST_SUBDIR)/mmalloc && \ |
4fa63067 NN |
15179 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15180 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15181 | "RANLIB=$${RANLIB}" \ | |
15182 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 15183 | maintainer-clean) \ |
4fa63067 | 15184 | || exit 1 |
16ae0395 | 15185 | |
b813574b | 15186 | @endif mmalloc |
3866be5d NN |
15187 | |
15188 | ||
a7254363 | 15189 | |
b813574b PB |
15190 | .PHONY: configure-patch maybe-configure-patch |
15191 | maybe-configure-patch: | |
15192 | @if patch | |
15193 | maybe-configure-patch: configure-patch | |
a7254363 | 15194 | configure-patch: |
b00612cc PB |
15195 | @test ! -f $(HOST_SUBDIR)/patch/Makefile || exit 0; \ |
15196 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/patch ; \ | |
b40e3958 L |
15197 | r=`${PWD_COMMAND}`; export r; \ |
15198 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15199 | $(HOST_EXPORTS) \ |
a7254363 PB |
15200 | echo Configuring in $(HOST_SUBDIR)/patch; \ |
15201 | cd "$(HOST_SUBDIR)/patch" || exit 1; \ | |
e2b9e2dc | 15202 | case $(srcdir) in \ |
b00612cc PB |
15203 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
15204 | *) topdir=`echo $(HOST_SUBDIR)/patch/ | \ | |
15205 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 15206 | esac; \ |
b00612cc PB |
15207 | srcdiroption="--srcdir=$${topdir}/patch"; \ |
15208 | libsrcdir="$$s/patch"; \ | |
e2b9e2dc | 15209 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 15210 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 15211 | || exit 1 |
b813574b | 15212 | @endif patch |
e2b9e2dc | 15213 | |
a7254363 PB |
15214 | |
15215 | ||
b813574b PB |
15216 | .PHONY: all-patch maybe-all-patch |
15217 | maybe-all-patch: | |
15218 | @if patch | |
d27cc32e | 15219 | TARGET-patch=all |
b813574b PB |
15220 | maybe-all-patch: all-patch |
15221 | all-patch: configure-patch | |
b40e3958 L |
15222 | @r=`${PWD_COMMAND}`; export r; \ |
15223 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15224 | $(HOST_EXPORTS) \ |
b00612cc PB |
15225 | (cd $(HOST_SUBDIR)/patch && \ |
15226 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-patch)) | |
b813574b | 15227 | @endif patch |
3866be5d | 15228 | |
a7254363 | 15229 | |
b813574b PB |
15230 | .PHONY: check-patch maybe-check-patch |
15231 | maybe-check-patch: | |
15232 | @if patch | |
15233 | maybe-check-patch: check-patch | |
3866be5d | 15234 | |
b813574b | 15235 | check-patch: |
b40e3958 L |
15236 | @r=`${PWD_COMMAND}`; export r; \ |
15237 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15238 | $(HOST_EXPORTS) \ |
b00612cc PB |
15239 | (cd $(HOST_SUBDIR)/patch && \ |
15240 | $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d | 15241 | |
b813574b | 15242 | @endif patch |
3866be5d | 15243 | |
b813574b PB |
15244 | .PHONY: install-patch maybe-install-patch |
15245 | maybe-install-patch: | |
15246 | @if patch | |
15247 | maybe-install-patch: install-patch | |
16ae0395 | 15248 | |
b813574b | 15249 | install-patch: installdirs |
b40e3958 L |
15250 | @r=`${PWD_COMMAND}`; export r; \ |
15251 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15252 | $(HOST_EXPORTS) \ |
b00612cc | 15253 | (cd $(HOST_SUBDIR)/patch && \ |
2da12f12 | 15254 | $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d | 15255 | |
b813574b | 15256 | @endif patch |
3866be5d | 15257 | |
4fa63067 NN |
15258 | # Other targets (info, dvi, etc.) |
15259 | ||
b813574b PB |
15260 | .PHONY: maybe-info-patch info-patch |
15261 | maybe-info-patch: | |
15262 | @if patch | |
15263 | maybe-info-patch: info-patch | |
4fa63067 | 15264 | |
b813574b PB |
15265 | info-patch: \ |
15266 | configure-patch | |
15267 | @[ -f ./patch/Makefile ] || exit 0; \ | |
4fa63067 NN |
15268 | r=`${PWD_COMMAND}`; export r; \ |
15269 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15270 | $(HOST_EXPORTS) \ |
b813574b | 15271 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
15272 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15273 | done; \ | |
b813574b | 15274 | echo "Doing info in patch" ; \ |
b00612cc | 15275 | (cd $(HOST_SUBDIR)/patch && \ |
4fa63067 NN |
15276 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15277 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15278 | "RANLIB=$${RANLIB}" \ | |
15279 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 15280 | info) \ |
4fa63067 NN |
15281 | || exit 1 |
15282 | ||
b813574b | 15283 | @endif patch |
4fa63067 | 15284 | |
b813574b PB |
15285 | .PHONY: maybe-dvi-patch dvi-patch |
15286 | maybe-dvi-patch: | |
15287 | @if patch | |
15288 | maybe-dvi-patch: dvi-patch | |
4fa63067 | 15289 | |
b813574b PB |
15290 | dvi-patch: \ |
15291 | configure-patch | |
15292 | @[ -f ./patch/Makefile ] || exit 0; \ | |
4fa63067 NN |
15293 | r=`${PWD_COMMAND}`; export r; \ |
15294 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15295 | $(HOST_EXPORTS) \ |
b813574b | 15296 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
15297 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15298 | done; \ | |
b813574b | 15299 | echo "Doing dvi in patch" ; \ |
b00612cc | 15300 | (cd $(HOST_SUBDIR)/patch && \ |
4fa63067 NN |
15301 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15302 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15303 | "RANLIB=$${RANLIB}" \ | |
15304 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 15305 | dvi) \ |
4fa63067 NN |
15306 | || exit 1 |
15307 | ||
b813574b | 15308 | @endif patch |
4fa63067 | 15309 | |
6d389afc MS |
15310 | .PHONY: maybe-html-patch html-patch |
15311 | maybe-html-patch: | |
15312 | @if patch | |
15313 | maybe-html-patch: html-patch | |
15314 | ||
15315 | html-patch: \ | |
15316 | configure-patch | |
15317 | @[ -f ./patch/Makefile ] || exit 0; \ | |
15318 | r=`${PWD_COMMAND}`; export r; \ | |
15319 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
15320 | $(HOST_EXPORTS) \ |
15321 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
15322 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
15323 | done; \ | |
15324 | echo "Doing html in patch" ; \ | |
b00612cc | 15325 | (cd $(HOST_SUBDIR)/patch && \ |
6d389afc MS |
15326 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15327 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15328 | "RANLIB=$${RANLIB}" \ | |
15329 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
15330 | html) \ | |
15331 | || exit 1 | |
15332 | ||
15333 | @endif patch | |
15334 | ||
b813574b PB |
15335 | .PHONY: maybe-TAGS-patch TAGS-patch |
15336 | maybe-TAGS-patch: | |
15337 | @if patch | |
15338 | maybe-TAGS-patch: TAGS-patch | |
4fa63067 | 15339 | |
b813574b PB |
15340 | TAGS-patch: \ |
15341 | configure-patch | |
15342 | @[ -f ./patch/Makefile ] || exit 0; \ | |
4fa63067 NN |
15343 | r=`${PWD_COMMAND}`; export r; \ |
15344 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15345 | $(HOST_EXPORTS) \ |
b813574b | 15346 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
15347 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15348 | done; \ | |
b813574b | 15349 | echo "Doing TAGS in patch" ; \ |
b00612cc | 15350 | (cd $(HOST_SUBDIR)/patch && \ |
4fa63067 NN |
15351 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15352 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15353 | "RANLIB=$${RANLIB}" \ | |
15354 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 15355 | TAGS) \ |
4fa63067 NN |
15356 | || exit 1 |
15357 | ||
b813574b | 15358 | @endif patch |
4fa63067 | 15359 | |
b813574b PB |
15360 | .PHONY: maybe-install-info-patch install-info-patch |
15361 | maybe-install-info-patch: | |
15362 | @if patch | |
15363 | maybe-install-info-patch: install-info-patch | |
4fa63067 | 15364 | |
b813574b PB |
15365 | install-info-patch: \ |
15366 | configure-patch \ | |
15367 | info-patch | |
15368 | @[ -f ./patch/Makefile ] || exit 0; \ | |
4fa63067 NN |
15369 | r=`${PWD_COMMAND}`; export r; \ |
15370 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15371 | $(HOST_EXPORTS) \ |
b813574b | 15372 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
15373 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15374 | done; \ | |
b813574b | 15375 | echo "Doing install-info in patch" ; \ |
b00612cc | 15376 | (cd $(HOST_SUBDIR)/patch && \ |
4fa63067 NN |
15377 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15378 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15379 | "RANLIB=$${RANLIB}" \ | |
15380 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 15381 | install-info) \ |
4fa63067 NN |
15382 | || exit 1 |
15383 | ||
b813574b | 15384 | @endif patch |
4fa63067 | 15385 | |
b813574b PB |
15386 | .PHONY: maybe-installcheck-patch installcheck-patch |
15387 | maybe-installcheck-patch: | |
15388 | @if patch | |
15389 | maybe-installcheck-patch: installcheck-patch | |
4fa63067 | 15390 | |
b813574b PB |
15391 | installcheck-patch: \ |
15392 | configure-patch | |
15393 | @[ -f ./patch/Makefile ] || exit 0; \ | |
4fa63067 NN |
15394 | r=`${PWD_COMMAND}`; export r; \ |
15395 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15396 | $(HOST_EXPORTS) \ |
b813574b | 15397 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
15398 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15399 | done; \ | |
b813574b | 15400 | echo "Doing installcheck in patch" ; \ |
b00612cc | 15401 | (cd $(HOST_SUBDIR)/patch && \ |
4fa63067 NN |
15402 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15403 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15404 | "RANLIB=$${RANLIB}" \ | |
15405 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 15406 | installcheck) \ |
4fa63067 NN |
15407 | || exit 1 |
15408 | ||
b813574b | 15409 | @endif patch |
4fa63067 | 15410 | |
b813574b PB |
15411 | .PHONY: maybe-mostlyclean-patch mostlyclean-patch |
15412 | maybe-mostlyclean-patch: | |
15413 | @if patch | |
15414 | maybe-mostlyclean-patch: mostlyclean-patch | |
4fa63067 | 15415 | |
b813574b PB |
15416 | mostlyclean-patch: |
15417 | @[ -f ./patch/Makefile ] || exit 0; \ | |
4fa63067 NN |
15418 | r=`${PWD_COMMAND}`; export r; \ |
15419 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15420 | $(HOST_EXPORTS) \ |
b813574b | 15421 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
15422 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15423 | done; \ | |
b813574b | 15424 | echo "Doing mostlyclean in patch" ; \ |
b00612cc | 15425 | (cd $(HOST_SUBDIR)/patch && \ |
4fa63067 NN |
15426 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15427 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15428 | "RANLIB=$${RANLIB}" \ | |
15429 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 15430 | mostlyclean) \ |
4fa63067 NN |
15431 | || exit 1 |
15432 | ||
b813574b | 15433 | @endif patch |
4fa63067 | 15434 | |
b813574b PB |
15435 | .PHONY: maybe-clean-patch clean-patch |
15436 | maybe-clean-patch: | |
15437 | @if patch | |
15438 | maybe-clean-patch: clean-patch | |
4fa63067 | 15439 | |
b813574b PB |
15440 | clean-patch: |
15441 | @[ -f ./patch/Makefile ] || exit 0; \ | |
4fa63067 NN |
15442 | r=`${PWD_COMMAND}`; export r; \ |
15443 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15444 | $(HOST_EXPORTS) \ |
b813574b | 15445 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
15446 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15447 | done; \ | |
b813574b | 15448 | echo "Doing clean in patch" ; \ |
b00612cc | 15449 | (cd $(HOST_SUBDIR)/patch && \ |
4fa63067 NN |
15450 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15451 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15452 | "RANLIB=$${RANLIB}" \ | |
15453 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 15454 | clean) \ |
4fa63067 NN |
15455 | || exit 1 |
15456 | ||
b813574b | 15457 | @endif patch |
4fa63067 | 15458 | |
b813574b PB |
15459 | .PHONY: maybe-distclean-patch distclean-patch |
15460 | maybe-distclean-patch: | |
15461 | @if patch | |
15462 | maybe-distclean-patch: distclean-patch | |
4fa63067 | 15463 | |
b813574b PB |
15464 | distclean-patch: |
15465 | @[ -f ./patch/Makefile ] || exit 0; \ | |
4fa63067 NN |
15466 | r=`${PWD_COMMAND}`; export r; \ |
15467 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15468 | $(HOST_EXPORTS) \ |
b813574b | 15469 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
15470 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15471 | done; \ | |
b813574b | 15472 | echo "Doing distclean in patch" ; \ |
b00612cc | 15473 | (cd $(HOST_SUBDIR)/patch && \ |
4fa63067 NN |
15474 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15475 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15476 | "RANLIB=$${RANLIB}" \ | |
15477 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 15478 | distclean) \ |
4fa63067 NN |
15479 | || exit 1 |
15480 | ||
b813574b | 15481 | @endif patch |
4fa63067 | 15482 | |
b813574b PB |
15483 | .PHONY: maybe-maintainer-clean-patch maintainer-clean-patch |
15484 | maybe-maintainer-clean-patch: | |
15485 | @if patch | |
15486 | maybe-maintainer-clean-patch: maintainer-clean-patch | |
4fa63067 | 15487 | |
b813574b PB |
15488 | maintainer-clean-patch: |
15489 | @[ -f ./patch/Makefile ] || exit 0; \ | |
4fa63067 NN |
15490 | r=`${PWD_COMMAND}`; export r; \ |
15491 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15492 | $(HOST_EXPORTS) \ |
b813574b | 15493 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
15494 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15495 | done; \ | |
b813574b | 15496 | echo "Doing maintainer-clean in patch" ; \ |
b00612cc | 15497 | (cd $(HOST_SUBDIR)/patch && \ |
4fa63067 NN |
15498 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15499 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15500 | "RANLIB=$${RANLIB}" \ | |
15501 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 15502 | maintainer-clean) \ |
4fa63067 NN |
15503 | || exit 1 |
15504 | ||
b813574b | 15505 | @endif patch |
4fa63067 NN |
15506 | |
15507 | ||
a7254363 | 15508 | |
b813574b PB |
15509 | .PHONY: configure-perl maybe-configure-perl |
15510 | maybe-configure-perl: | |
15511 | @if perl | |
15512 | maybe-configure-perl: configure-perl | |
a7254363 | 15513 | configure-perl: |
b00612cc PB |
15514 | @test ! -f $(HOST_SUBDIR)/perl/Makefile || exit 0; \ |
15515 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/perl ; \ | |
b40e3958 L |
15516 | r=`${PWD_COMMAND}`; export r; \ |
15517 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15518 | $(HOST_EXPORTS) \ |
a7254363 PB |
15519 | echo Configuring in $(HOST_SUBDIR)/perl; \ |
15520 | cd "$(HOST_SUBDIR)/perl" || exit 1; \ | |
e2b9e2dc | 15521 | case $(srcdir) in \ |
b00612cc PB |
15522 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
15523 | *) topdir=`echo $(HOST_SUBDIR)/perl/ | \ | |
15524 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 15525 | esac; \ |
b00612cc PB |
15526 | srcdiroption="--srcdir=$${topdir}/perl"; \ |
15527 | libsrcdir="$$s/perl"; \ | |
e2b9e2dc | 15528 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 15529 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 15530 | || exit 1 |
b813574b | 15531 | @endif perl |
e2b9e2dc | 15532 | |
a7254363 PB |
15533 | |
15534 | ||
b813574b PB |
15535 | .PHONY: all-perl maybe-all-perl |
15536 | maybe-all-perl: | |
15537 | @if perl | |
d27cc32e | 15538 | TARGET-perl=all |
b813574b PB |
15539 | maybe-all-perl: all-perl |
15540 | all-perl: configure-perl | |
b40e3958 L |
15541 | @r=`${PWD_COMMAND}`; export r; \ |
15542 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15543 | $(HOST_EXPORTS) \ |
b00612cc PB |
15544 | (cd $(HOST_SUBDIR)/perl && \ |
15545 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-perl)) | |
b813574b | 15546 | @endif perl |
3866be5d | 15547 | |
a7254363 | 15548 | |
b813574b PB |
15549 | .PHONY: check-perl maybe-check-perl |
15550 | maybe-check-perl: | |
15551 | @if perl | |
15552 | maybe-check-perl: check-perl | |
3866be5d | 15553 | |
b813574b | 15554 | check-perl: |
b40e3958 L |
15555 | @r=`${PWD_COMMAND}`; export r; \ |
15556 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15557 | $(HOST_EXPORTS) \ |
b00612cc PB |
15558 | (cd $(HOST_SUBDIR)/perl && \ |
15559 | $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d | 15560 | |
b813574b | 15561 | @endif perl |
3866be5d | 15562 | |
b813574b PB |
15563 | .PHONY: install-perl maybe-install-perl |
15564 | maybe-install-perl: | |
15565 | @if perl | |
15566 | maybe-install-perl: install-perl | |
16ae0395 | 15567 | |
b813574b | 15568 | install-perl: installdirs |
b40e3958 L |
15569 | @r=`${PWD_COMMAND}`; export r; \ |
15570 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15571 | $(HOST_EXPORTS) \ |
b00612cc | 15572 | (cd $(HOST_SUBDIR)/perl && \ |
2da12f12 | 15573 | $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d | 15574 | |
b813574b | 15575 | @endif perl |
3866be5d | 15576 | |
4fa63067 NN |
15577 | # Other targets (info, dvi, etc.) |
15578 | ||
b813574b PB |
15579 | .PHONY: maybe-info-perl info-perl |
15580 | maybe-info-perl: | |
15581 | @if perl | |
15582 | maybe-info-perl: info-perl | |
4fa63067 | 15583 | |
b813574b PB |
15584 | info-perl: \ |
15585 | configure-perl | |
15586 | @[ -f ./perl/Makefile ] || exit 0; \ | |
b40e3958 L |
15587 | r=`${PWD_COMMAND}`; export r; \ |
15588 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15589 | $(HOST_EXPORTS) \ |
b813574b | 15590 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
15591 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15592 | done; \ | |
b813574b | 15593 | echo "Doing info in perl" ; \ |
b00612cc | 15594 | (cd $(HOST_SUBDIR)/perl && \ |
4fa63067 NN |
15595 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15596 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15597 | "RANLIB=$${RANLIB}" \ | |
15598 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 15599 | info) \ |
e2b9e2dc NN |
15600 | || exit 1 |
15601 | ||
b813574b | 15602 | @endif perl |
4fa63067 | 15603 | |
b813574b PB |
15604 | .PHONY: maybe-dvi-perl dvi-perl |
15605 | maybe-dvi-perl: | |
15606 | @if perl | |
15607 | maybe-dvi-perl: dvi-perl | |
4fa63067 | 15608 | |
b813574b PB |
15609 | dvi-perl: \ |
15610 | configure-perl | |
15611 | @[ -f ./perl/Makefile ] || exit 0; \ | |
4fa63067 | 15612 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 15613 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
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 | 15618 | echo "Doing dvi in perl" ; \ |
b00612cc | 15619 | (cd $(HOST_SUBDIR)/perl && \ |
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 perl |
3866be5d | 15628 | |
6d389afc MS |
15629 | .PHONY: maybe-html-perl html-perl |
15630 | maybe-html-perl: | |
15631 | @if perl | |
15632 | maybe-html-perl: html-perl | |
15633 | ||
15634 | html-perl: \ | |
15635 | configure-perl | |
15636 | @[ -f ./perl/Makefile ] || exit 0; \ | |
15637 | r=`${PWD_COMMAND}`; export r; \ | |
15638 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
15639 | $(HOST_EXPORTS) \ |
15640 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
15641 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
15642 | done; \ | |
15643 | echo "Doing html in perl" ; \ | |
b00612cc | 15644 | (cd $(HOST_SUBDIR)/perl && \ |
6d389afc MS |
15645 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15646 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15647 | "RANLIB=$${RANLIB}" \ | |
15648 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
15649 | html) \ | |
15650 | || exit 1 | |
15651 | ||
15652 | @endif perl | |
15653 | ||
b813574b PB |
15654 | .PHONY: maybe-TAGS-perl TAGS-perl |
15655 | maybe-TAGS-perl: | |
15656 | @if perl | |
15657 | maybe-TAGS-perl: TAGS-perl | |
4fa63067 | 15658 | |
b813574b PB |
15659 | TAGS-perl: \ |
15660 | configure-perl | |
15661 | @[ -f ./perl/Makefile ] || exit 0; \ | |
4fa63067 | 15662 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 15663 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 15664 | $(HOST_EXPORTS) \ |
b813574b | 15665 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
15666 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15667 | done; \ | |
b813574b | 15668 | echo "Doing TAGS in perl" ; \ |
b00612cc | 15669 | (cd $(HOST_SUBDIR)/perl && \ |
4fa63067 NN |
15670 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15671 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15672 | "RANLIB=$${RANLIB}" \ | |
15673 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 15674 | TAGS) \ |
4fa63067 | 15675 | || exit 1 |
3866be5d | 15676 | |
b813574b | 15677 | @endif perl |
3866be5d | 15678 | |
b813574b PB |
15679 | .PHONY: maybe-install-info-perl install-info-perl |
15680 | maybe-install-info-perl: | |
15681 | @if perl | |
15682 | maybe-install-info-perl: install-info-perl | |
16ae0395 | 15683 | |
b813574b PB |
15684 | install-info-perl: \ |
15685 | configure-perl \ | |
15686 | info-perl | |
15687 | @[ -f ./perl/Makefile ] || exit 0; \ | |
4fa63067 NN |
15688 | r=`${PWD_COMMAND}`; export r; \ |
15689 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15690 | $(HOST_EXPORTS) \ |
b813574b | 15691 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
15692 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15693 | done; \ | |
b813574b | 15694 | echo "Doing install-info in perl" ; \ |
b00612cc | 15695 | (cd $(HOST_SUBDIR)/perl && \ |
4fa63067 NN |
15696 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15697 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15698 | "RANLIB=$${RANLIB}" \ | |
15699 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 15700 | install-info) \ |
4fa63067 NN |
15701 | || exit 1 |
15702 | ||
b813574b | 15703 | @endif perl |
4fa63067 | 15704 | |
b813574b PB |
15705 | .PHONY: maybe-installcheck-perl installcheck-perl |
15706 | maybe-installcheck-perl: | |
15707 | @if perl | |
15708 | maybe-installcheck-perl: installcheck-perl | |
4fa63067 | 15709 | |
b813574b PB |
15710 | installcheck-perl: \ |
15711 | configure-perl | |
15712 | @[ -f ./perl/Makefile ] || exit 0; \ | |
4fa63067 NN |
15713 | r=`${PWD_COMMAND}`; export r; \ |
15714 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15715 | $(HOST_EXPORTS) \ |
b813574b | 15716 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
15717 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15718 | done; \ | |
b813574b | 15719 | echo "Doing installcheck in perl" ; \ |
b00612cc | 15720 | (cd $(HOST_SUBDIR)/perl && \ |
4fa63067 NN |
15721 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15722 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15723 | "RANLIB=$${RANLIB}" \ | |
15724 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 15725 | installcheck) \ |
4fa63067 NN |
15726 | || exit 1 |
15727 | ||
b813574b | 15728 | @endif perl |
4fa63067 | 15729 | |
b813574b PB |
15730 | .PHONY: maybe-mostlyclean-perl mostlyclean-perl |
15731 | maybe-mostlyclean-perl: | |
15732 | @if perl | |
15733 | maybe-mostlyclean-perl: mostlyclean-perl | |
4fa63067 | 15734 | |
b813574b PB |
15735 | mostlyclean-perl: |
15736 | @[ -f ./perl/Makefile ] || exit 0; \ | |
4fa63067 NN |
15737 | r=`${PWD_COMMAND}`; export r; \ |
15738 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15739 | $(HOST_EXPORTS) \ |
b813574b | 15740 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
15741 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15742 | done; \ | |
b813574b | 15743 | echo "Doing mostlyclean in perl" ; \ |
b00612cc | 15744 | (cd $(HOST_SUBDIR)/perl && \ |
4fa63067 NN |
15745 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15746 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15747 | "RANLIB=$${RANLIB}" \ | |
15748 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 15749 | mostlyclean) \ |
4fa63067 NN |
15750 | || exit 1 |
15751 | ||
b813574b | 15752 | @endif perl |
4fa63067 | 15753 | |
b813574b PB |
15754 | .PHONY: maybe-clean-perl clean-perl |
15755 | maybe-clean-perl: | |
15756 | @if perl | |
15757 | maybe-clean-perl: clean-perl | |
4fa63067 | 15758 | |
b813574b PB |
15759 | clean-perl: |
15760 | @[ -f ./perl/Makefile ] || exit 0; \ | |
4fa63067 NN |
15761 | r=`${PWD_COMMAND}`; export r; \ |
15762 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15763 | $(HOST_EXPORTS) \ |
b813574b | 15764 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
15765 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15766 | done; \ | |
b813574b | 15767 | echo "Doing clean in perl" ; \ |
b00612cc | 15768 | (cd $(HOST_SUBDIR)/perl && \ |
4fa63067 NN |
15769 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15770 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15771 | "RANLIB=$${RANLIB}" \ | |
15772 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 15773 | clean) \ |
4fa63067 NN |
15774 | || exit 1 |
15775 | ||
b813574b | 15776 | @endif perl |
4fa63067 | 15777 | |
b813574b PB |
15778 | .PHONY: maybe-distclean-perl distclean-perl |
15779 | maybe-distclean-perl: | |
15780 | @if perl | |
15781 | maybe-distclean-perl: distclean-perl | |
4fa63067 | 15782 | |
b813574b PB |
15783 | distclean-perl: |
15784 | @[ -f ./perl/Makefile ] || exit 0; \ | |
4fa63067 NN |
15785 | r=`${PWD_COMMAND}`; export r; \ |
15786 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15787 | $(HOST_EXPORTS) \ |
b813574b | 15788 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
15789 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15790 | done; \ | |
b813574b | 15791 | echo "Doing distclean in perl" ; \ |
b00612cc | 15792 | (cd $(HOST_SUBDIR)/perl && \ |
4fa63067 NN |
15793 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15794 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15795 | "RANLIB=$${RANLIB}" \ | |
15796 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 15797 | distclean) \ |
4fa63067 NN |
15798 | || exit 1 |
15799 | ||
b813574b | 15800 | @endif perl |
4fa63067 | 15801 | |
b813574b PB |
15802 | .PHONY: maybe-maintainer-clean-perl maintainer-clean-perl |
15803 | maybe-maintainer-clean-perl: | |
15804 | @if perl | |
15805 | maybe-maintainer-clean-perl: maintainer-clean-perl | |
4fa63067 | 15806 | |
b813574b PB |
15807 | maintainer-clean-perl: |
15808 | @[ -f ./perl/Makefile ] || exit 0; \ | |
4fa63067 | 15809 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 15810 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 15811 | $(HOST_EXPORTS) \ |
b813574b | 15812 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
15813 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15814 | done; \ | |
b813574b | 15815 | echo "Doing maintainer-clean in perl" ; \ |
b00612cc | 15816 | (cd $(HOST_SUBDIR)/perl && \ |
4fa63067 NN |
15817 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15818 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15819 | "RANLIB=$${RANLIB}" \ | |
15820 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 15821 | maintainer-clean) \ |
4fa63067 | 15822 | || exit 1 |
3866be5d | 15823 | |
b813574b | 15824 | @endif perl |
3866be5d | 15825 | |
4fa63067 | 15826 | |
a7254363 | 15827 | |
b813574b PB |
15828 | .PHONY: configure-prms maybe-configure-prms |
15829 | maybe-configure-prms: | |
15830 | @if prms | |
15831 | maybe-configure-prms: configure-prms | |
a7254363 | 15832 | configure-prms: |
b00612cc PB |
15833 | @test ! -f $(HOST_SUBDIR)/prms/Makefile || exit 0; \ |
15834 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/prms ; \ | |
b40e3958 L |
15835 | r=`${PWD_COMMAND}`; export r; \ |
15836 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15837 | $(HOST_EXPORTS) \ |
a7254363 PB |
15838 | echo Configuring in $(HOST_SUBDIR)/prms; \ |
15839 | cd "$(HOST_SUBDIR)/prms" || exit 1; \ | |
e2b9e2dc | 15840 | case $(srcdir) in \ |
b00612cc PB |
15841 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
15842 | *) topdir=`echo $(HOST_SUBDIR)/prms/ | \ | |
15843 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 15844 | esac; \ |
b00612cc PB |
15845 | srcdiroption="--srcdir=$${topdir}/prms"; \ |
15846 | libsrcdir="$$s/prms"; \ | |
e2b9e2dc | 15847 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 15848 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 15849 | || exit 1 |
b813574b | 15850 | @endif prms |
e2b9e2dc | 15851 | |
a7254363 PB |
15852 | |
15853 | ||
b813574b PB |
15854 | .PHONY: all-prms maybe-all-prms |
15855 | maybe-all-prms: | |
15856 | @if prms | |
d27cc32e | 15857 | TARGET-prms=all |
b813574b PB |
15858 | maybe-all-prms: all-prms |
15859 | all-prms: configure-prms | |
b40e3958 L |
15860 | @r=`${PWD_COMMAND}`; export r; \ |
15861 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15862 | $(HOST_EXPORTS) \ |
b00612cc PB |
15863 | (cd $(HOST_SUBDIR)/prms && \ |
15864 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-prms)) | |
b813574b | 15865 | @endif prms |
3866be5d | 15866 | |
a7254363 | 15867 | |
b813574b PB |
15868 | .PHONY: check-prms maybe-check-prms |
15869 | maybe-check-prms: | |
15870 | @if prms | |
15871 | maybe-check-prms: check-prms | |
3866be5d | 15872 | |
b813574b | 15873 | check-prms: |
b40e3958 L |
15874 | @r=`${PWD_COMMAND}`; export r; \ |
15875 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15876 | $(HOST_EXPORTS) \ |
b00612cc PB |
15877 | (cd $(HOST_SUBDIR)/prms && \ |
15878 | $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d | 15879 | |
b813574b | 15880 | @endif prms |
3866be5d | 15881 | |
b813574b PB |
15882 | .PHONY: install-prms maybe-install-prms |
15883 | maybe-install-prms: | |
15884 | @if prms | |
15885 | maybe-install-prms: install-prms | |
4fa63067 | 15886 | |
b813574b | 15887 | install-prms: installdirs |
4fa63067 NN |
15888 | @r=`${PWD_COMMAND}`; export r; \ |
15889 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15890 | $(HOST_EXPORTS) \ |
b00612cc | 15891 | (cd $(HOST_SUBDIR)/prms && \ |
2da12f12 | 15892 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 15893 | |
b813574b | 15894 | @endif prms |
4fa63067 NN |
15895 | |
15896 | # Other targets (info, dvi, etc.) | |
15897 | ||
b813574b PB |
15898 | .PHONY: maybe-info-prms info-prms |
15899 | maybe-info-prms: | |
15900 | @if prms | |
15901 | maybe-info-prms: info-prms | |
4fa63067 | 15902 | |
b813574b PB |
15903 | info-prms: \ |
15904 | configure-prms | |
15905 | @[ -f ./prms/Makefile ] || exit 0; \ | |
4fa63067 NN |
15906 | r=`${PWD_COMMAND}`; export r; \ |
15907 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15908 | $(HOST_EXPORTS) \ |
b813574b | 15909 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
15910 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15911 | done; \ | |
b813574b | 15912 | echo "Doing info in prms" ; \ |
b00612cc | 15913 | (cd $(HOST_SUBDIR)/prms && \ |
4fa63067 NN |
15914 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15915 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15916 | "RANLIB=$${RANLIB}" \ | |
15917 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 15918 | info) \ |
4fa63067 NN |
15919 | || exit 1 |
15920 | ||
b813574b | 15921 | @endif prms |
4fa63067 | 15922 | |
b813574b PB |
15923 | .PHONY: maybe-dvi-prms dvi-prms |
15924 | maybe-dvi-prms: | |
15925 | @if prms | |
15926 | maybe-dvi-prms: dvi-prms | |
4fa63067 | 15927 | |
b813574b PB |
15928 | dvi-prms: \ |
15929 | configure-prms | |
15930 | @[ -f ./prms/Makefile ] || exit 0; \ | |
4fa63067 NN |
15931 | r=`${PWD_COMMAND}`; export r; \ |
15932 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15933 | $(HOST_EXPORTS) \ |
b813574b | 15934 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
15935 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15936 | done; \ | |
b813574b | 15937 | echo "Doing dvi in prms" ; \ |
b00612cc | 15938 | (cd $(HOST_SUBDIR)/prms && \ |
4fa63067 NN |
15939 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15940 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15941 | "RANLIB=$${RANLIB}" \ | |
15942 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 15943 | dvi) \ |
4fa63067 NN |
15944 | || exit 1 |
15945 | ||
b813574b | 15946 | @endif prms |
4fa63067 | 15947 | |
6d389afc MS |
15948 | .PHONY: maybe-html-prms html-prms |
15949 | maybe-html-prms: | |
15950 | @if prms | |
15951 | maybe-html-prms: html-prms | |
15952 | ||
15953 | html-prms: \ | |
15954 | configure-prms | |
15955 | @[ -f ./prms/Makefile ] || exit 0; \ | |
15956 | r=`${PWD_COMMAND}`; export r; \ | |
15957 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
15958 | $(HOST_EXPORTS) \ |
15959 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
15960 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
15961 | done; \ | |
15962 | echo "Doing html in prms" ; \ | |
b00612cc | 15963 | (cd $(HOST_SUBDIR)/prms && \ |
6d389afc MS |
15964 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15965 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15966 | "RANLIB=$${RANLIB}" \ | |
15967 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
15968 | html) \ | |
15969 | || exit 1 | |
15970 | ||
15971 | @endif prms | |
15972 | ||
b813574b PB |
15973 | .PHONY: maybe-TAGS-prms TAGS-prms |
15974 | maybe-TAGS-prms: | |
15975 | @if prms | |
15976 | maybe-TAGS-prms: TAGS-prms | |
4fa63067 | 15977 | |
b813574b PB |
15978 | TAGS-prms: \ |
15979 | configure-prms | |
15980 | @[ -f ./prms/Makefile ] || exit 0; \ | |
4fa63067 NN |
15981 | r=`${PWD_COMMAND}`; export r; \ |
15982 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15983 | $(HOST_EXPORTS) \ |
b813574b | 15984 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
15985 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15986 | done; \ | |
b813574b | 15987 | echo "Doing TAGS in prms" ; \ |
b00612cc | 15988 | (cd $(HOST_SUBDIR)/prms && \ |
4fa63067 NN |
15989 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15990 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15991 | "RANLIB=$${RANLIB}" \ | |
15992 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 15993 | TAGS) \ |
4fa63067 NN |
15994 | || exit 1 |
15995 | ||
b813574b | 15996 | @endif prms |
4fa63067 | 15997 | |
b813574b PB |
15998 | .PHONY: maybe-install-info-prms install-info-prms |
15999 | maybe-install-info-prms: | |
16000 | @if prms | |
16001 | maybe-install-info-prms: install-info-prms | |
4fa63067 | 16002 | |
b813574b PB |
16003 | install-info-prms: \ |
16004 | configure-prms \ | |
16005 | info-prms | |
16006 | @[ -f ./prms/Makefile ] || exit 0; \ | |
4fa63067 NN |
16007 | r=`${PWD_COMMAND}`; export r; \ |
16008 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16009 | $(HOST_EXPORTS) \ |
b813574b | 16010 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
16011 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
16012 | done; \ | |
b813574b | 16013 | echo "Doing install-info in prms" ; \ |
b00612cc | 16014 | (cd $(HOST_SUBDIR)/prms && \ |
4fa63067 NN |
16015 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16016 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16017 | "RANLIB=$${RANLIB}" \ | |
16018 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 16019 | install-info) \ |
4fa63067 NN |
16020 | || exit 1 |
16021 | ||
b813574b | 16022 | @endif prms |
4fa63067 | 16023 | |
b813574b PB |
16024 | .PHONY: maybe-installcheck-prms installcheck-prms |
16025 | maybe-installcheck-prms: | |
16026 | @if prms | |
16027 | maybe-installcheck-prms: installcheck-prms | |
4fa63067 | 16028 | |
b813574b PB |
16029 | installcheck-prms: \ |
16030 | configure-prms | |
16031 | @[ -f ./prms/Makefile ] || exit 0; \ | |
4fa63067 NN |
16032 | r=`${PWD_COMMAND}`; export r; \ |
16033 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16034 | $(HOST_EXPORTS) \ |
b813574b | 16035 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
16036 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
16037 | done; \ | |
b813574b | 16038 | echo "Doing installcheck in prms" ; \ |
b00612cc | 16039 | (cd $(HOST_SUBDIR)/prms && \ |
4fa63067 NN |
16040 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16041 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16042 | "RANLIB=$${RANLIB}" \ | |
16043 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 16044 | installcheck) \ |
4fa63067 NN |
16045 | || exit 1 |
16046 | ||
b813574b | 16047 | @endif prms |
4fa63067 | 16048 | |
b813574b PB |
16049 | .PHONY: maybe-mostlyclean-prms mostlyclean-prms |
16050 | maybe-mostlyclean-prms: | |
16051 | @if prms | |
16052 | maybe-mostlyclean-prms: mostlyclean-prms | |
4fa63067 | 16053 | |
b813574b PB |
16054 | mostlyclean-prms: |
16055 | @[ -f ./prms/Makefile ] || exit 0; \ | |
4fa63067 NN |
16056 | r=`${PWD_COMMAND}`; export r; \ |
16057 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16058 | $(HOST_EXPORTS) \ |
b813574b | 16059 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
16060 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
16061 | done; \ | |
b813574b | 16062 | echo "Doing mostlyclean in prms" ; \ |
b00612cc | 16063 | (cd $(HOST_SUBDIR)/prms && \ |
4fa63067 NN |
16064 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16065 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16066 | "RANLIB=$${RANLIB}" \ | |
16067 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 16068 | mostlyclean) \ |
4fa63067 NN |
16069 | || exit 1 |
16070 | ||
b813574b | 16071 | @endif prms |
4fa63067 | 16072 | |
b813574b PB |
16073 | .PHONY: maybe-clean-prms clean-prms |
16074 | maybe-clean-prms: | |
16075 | @if prms | |
16076 | maybe-clean-prms: clean-prms | |
4fa63067 | 16077 | |
b813574b PB |
16078 | clean-prms: |
16079 | @[ -f ./prms/Makefile ] || exit 0; \ | |
4fa63067 NN |
16080 | r=`${PWD_COMMAND}`; export r; \ |
16081 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16082 | $(HOST_EXPORTS) \ |
b813574b | 16083 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
16084 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
16085 | done; \ | |
b813574b | 16086 | echo "Doing clean in prms" ; \ |
b00612cc | 16087 | (cd $(HOST_SUBDIR)/prms && \ |
4fa63067 NN |
16088 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16089 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16090 | "RANLIB=$${RANLIB}" \ | |
16091 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 16092 | clean) \ |
4fa63067 NN |
16093 | || exit 1 |
16094 | ||
b813574b | 16095 | @endif prms |
4fa63067 | 16096 | |
b813574b PB |
16097 | .PHONY: maybe-distclean-prms distclean-prms |
16098 | maybe-distclean-prms: | |
16099 | @if prms | |
16100 | maybe-distclean-prms: distclean-prms | |
4fa63067 | 16101 | |
b813574b PB |
16102 | distclean-prms: |
16103 | @[ -f ./prms/Makefile ] || exit 0; \ | |
4fa63067 NN |
16104 | r=`${PWD_COMMAND}`; export r; \ |
16105 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16106 | $(HOST_EXPORTS) \ |
b813574b | 16107 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
16108 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
16109 | done; \ | |
b813574b | 16110 | echo "Doing distclean in prms" ; \ |
b00612cc | 16111 | (cd $(HOST_SUBDIR)/prms && \ |
4fa63067 NN |
16112 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16113 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16114 | "RANLIB=$${RANLIB}" \ | |
16115 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 16116 | distclean) \ |
4fa63067 NN |
16117 | || exit 1 |
16118 | ||
b813574b | 16119 | @endif prms |
4fa63067 | 16120 | |
b813574b PB |
16121 | .PHONY: maybe-maintainer-clean-prms maintainer-clean-prms |
16122 | maybe-maintainer-clean-prms: | |
16123 | @if prms | |
16124 | maybe-maintainer-clean-prms: maintainer-clean-prms | |
4fa63067 | 16125 | |
b813574b PB |
16126 | maintainer-clean-prms: |
16127 | @[ -f ./prms/Makefile ] || exit 0; \ | |
4fa63067 NN |
16128 | r=`${PWD_COMMAND}`; export r; \ |
16129 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16130 | $(HOST_EXPORTS) \ |
b813574b | 16131 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
16132 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
16133 | done; \ | |
b813574b | 16134 | echo "Doing maintainer-clean in prms" ; \ |
b00612cc | 16135 | (cd $(HOST_SUBDIR)/prms && \ |
4fa63067 NN |
16136 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16137 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16138 | "RANLIB=$${RANLIB}" \ | |
16139 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 16140 | maintainer-clean) \ |
4fa63067 | 16141 | || exit 1 |
16ae0395 | 16142 | |
b813574b | 16143 | @endif prms |
3866be5d NN |
16144 | |
16145 | ||
a7254363 | 16146 | |
b813574b PB |
16147 | .PHONY: configure-rcs maybe-configure-rcs |
16148 | maybe-configure-rcs: | |
16149 | @if rcs | |
16150 | maybe-configure-rcs: configure-rcs | |
a7254363 | 16151 | configure-rcs: |
b00612cc PB |
16152 | @test ! -f $(HOST_SUBDIR)/rcs/Makefile || exit 0; \ |
16153 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/rcs ; \ | |
b40e3958 L |
16154 | r=`${PWD_COMMAND}`; export r; \ |
16155 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16156 | $(HOST_EXPORTS) \ |
a7254363 PB |
16157 | echo Configuring in $(HOST_SUBDIR)/rcs; \ |
16158 | cd "$(HOST_SUBDIR)/rcs" || exit 1; \ | |
e2b9e2dc | 16159 | case $(srcdir) in \ |
b00612cc PB |
16160 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
16161 | *) topdir=`echo $(HOST_SUBDIR)/rcs/ | \ | |
16162 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 16163 | esac; \ |
b00612cc PB |
16164 | srcdiroption="--srcdir=$${topdir}/rcs"; \ |
16165 | libsrcdir="$$s/rcs"; \ | |
e2b9e2dc | 16166 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 16167 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 16168 | || exit 1 |
b813574b | 16169 | @endif rcs |
e2b9e2dc | 16170 | |
a7254363 PB |
16171 | |
16172 | ||
b813574b PB |
16173 | .PHONY: all-rcs maybe-all-rcs |
16174 | maybe-all-rcs: | |
16175 | @if rcs | |
d27cc32e | 16176 | TARGET-rcs=all |
b813574b PB |
16177 | maybe-all-rcs: all-rcs |
16178 | all-rcs: configure-rcs | |
b40e3958 L |
16179 | @r=`${PWD_COMMAND}`; export r; \ |
16180 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16181 | $(HOST_EXPORTS) \ |
b00612cc PB |
16182 | (cd $(HOST_SUBDIR)/rcs && \ |
16183 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-rcs)) | |
b813574b | 16184 | @endif rcs |
3866be5d | 16185 | |
a7254363 | 16186 | |
b813574b PB |
16187 | .PHONY: check-rcs maybe-check-rcs |
16188 | maybe-check-rcs: | |
16189 | @if rcs | |
16190 | maybe-check-rcs: check-rcs | |
3866be5d | 16191 | |
b813574b | 16192 | check-rcs: |
b40e3958 L |
16193 | @r=`${PWD_COMMAND}`; export r; \ |
16194 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16195 | $(HOST_EXPORTS) \ |
b00612cc PB |
16196 | (cd $(HOST_SUBDIR)/rcs && \ |
16197 | $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d | 16198 | |
b813574b | 16199 | @endif rcs |
3866be5d | 16200 | |
b813574b PB |
16201 | .PHONY: install-rcs maybe-install-rcs |
16202 | maybe-install-rcs: | |
16203 | @if rcs | |
16204 | maybe-install-rcs: install-rcs | |
16ae0395 | 16205 | |
b813574b | 16206 | install-rcs: installdirs |
b40e3958 L |
16207 | @r=`${PWD_COMMAND}`; export r; \ |
16208 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16209 | $(HOST_EXPORTS) \ |
b00612cc | 16210 | (cd $(HOST_SUBDIR)/rcs && \ |
2da12f12 | 16211 | $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d | 16212 | |
b813574b | 16213 | @endif rcs |
3866be5d | 16214 | |
4fa63067 NN |
16215 | # Other targets (info, dvi, etc.) |
16216 | ||
b813574b PB |
16217 | .PHONY: maybe-info-rcs info-rcs |
16218 | maybe-info-rcs: | |
16219 | @if rcs | |
16220 | maybe-info-rcs: info-rcs | |
4fa63067 | 16221 | |
b813574b PB |
16222 | info-rcs: \ |
16223 | configure-rcs | |
16224 | @[ -f ./rcs/Makefile ] || exit 0; \ | |
4fa63067 NN |
16225 | r=`${PWD_COMMAND}`; export r; \ |
16226 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16227 | $(HOST_EXPORTS) \ |
b813574b | 16228 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
16229 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
16230 | done; \ | |
b813574b | 16231 | echo "Doing info in rcs" ; \ |
b00612cc | 16232 | (cd $(HOST_SUBDIR)/rcs && \ |
4fa63067 NN |
16233 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16234 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16235 | "RANLIB=$${RANLIB}" \ | |
16236 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 16237 | info) \ |
4fa63067 NN |
16238 | || exit 1 |
16239 | ||
b813574b | 16240 | @endif rcs |
4fa63067 | 16241 | |
b813574b PB |
16242 | .PHONY: maybe-dvi-rcs dvi-rcs |
16243 | maybe-dvi-rcs: | |
16244 | @if rcs | |
16245 | maybe-dvi-rcs: dvi-rcs | |
4fa63067 | 16246 | |
b813574b PB |
16247 | dvi-rcs: \ |
16248 | configure-rcs | |
16249 | @[ -f ./rcs/Makefile ] || exit 0; \ | |
4fa63067 NN |
16250 | r=`${PWD_COMMAND}`; export r; \ |
16251 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16252 | $(HOST_EXPORTS) \ |
b813574b | 16253 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
16254 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
16255 | done; \ | |
b813574b | 16256 | echo "Doing dvi in rcs" ; \ |
b00612cc | 16257 | (cd $(HOST_SUBDIR)/rcs && \ |
4fa63067 NN |
16258 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16259 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16260 | "RANLIB=$${RANLIB}" \ | |
16261 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 16262 | dvi) \ |
4fa63067 NN |
16263 | || exit 1 |
16264 | ||
b813574b | 16265 | @endif rcs |
4fa63067 | 16266 | |
6d389afc MS |
16267 | .PHONY: maybe-html-rcs html-rcs |
16268 | maybe-html-rcs: | |
16269 | @if rcs | |
16270 | maybe-html-rcs: html-rcs | |
16271 | ||
16272 | html-rcs: \ | |
16273 | configure-rcs | |
16274 | @[ -f ./rcs/Makefile ] || exit 0; \ | |
16275 | r=`${PWD_COMMAND}`; export r; \ | |
16276 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
16277 | $(HOST_EXPORTS) \ |
16278 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
16279 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
16280 | done; \ | |
16281 | echo "Doing html in rcs" ; \ | |
b00612cc | 16282 | (cd $(HOST_SUBDIR)/rcs && \ |
6d389afc MS |
16283 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16284 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16285 | "RANLIB=$${RANLIB}" \ | |
16286 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
16287 | html) \ | |
16288 | || exit 1 | |
16289 | ||
16290 | @endif rcs | |
16291 | ||
b813574b PB |
16292 | .PHONY: maybe-TAGS-rcs TAGS-rcs |
16293 | maybe-TAGS-rcs: | |
16294 | @if rcs | |
16295 | maybe-TAGS-rcs: TAGS-rcs | |
4fa63067 | 16296 | |
b813574b PB |
16297 | TAGS-rcs: \ |
16298 | configure-rcs | |
16299 | @[ -f ./rcs/Makefile ] || exit 0; \ | |
4fa63067 NN |
16300 | r=`${PWD_COMMAND}`; export r; \ |
16301 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16302 | $(HOST_EXPORTS) \ |
b813574b | 16303 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
16304 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
16305 | done; \ | |
b813574b | 16306 | echo "Doing TAGS in rcs" ; \ |
b00612cc | 16307 | (cd $(HOST_SUBDIR)/rcs && \ |
4fa63067 NN |
16308 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16309 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16310 | "RANLIB=$${RANLIB}" \ | |
16311 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 16312 | TAGS) \ |
4fa63067 NN |
16313 | || exit 1 |
16314 | ||
b813574b | 16315 | @endif rcs |
4fa63067 | 16316 | |
b813574b PB |
16317 | .PHONY: maybe-install-info-rcs install-info-rcs |
16318 | maybe-install-info-rcs: | |
16319 | @if rcs | |
16320 | maybe-install-info-rcs: install-info-rcs | |
4fa63067 | 16321 | |
b813574b PB |
16322 | install-info-rcs: \ |
16323 | configure-rcs \ | |
16324 | info-rcs | |
16325 | @[ -f ./rcs/Makefile ] || exit 0; \ | |
4fa63067 NN |
16326 | r=`${PWD_COMMAND}`; export r; \ |
16327 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16328 | $(HOST_EXPORTS) \ |
b813574b | 16329 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
16330 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
16331 | done; \ | |
b813574b | 16332 | echo "Doing install-info in rcs" ; \ |
b00612cc | 16333 | (cd $(HOST_SUBDIR)/rcs && \ |
4fa63067 NN |
16334 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16335 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16336 | "RANLIB=$${RANLIB}" \ | |
16337 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 16338 | install-info) \ |
4fa63067 NN |
16339 | || exit 1 |
16340 | ||
b813574b | 16341 | @endif rcs |
4fa63067 | 16342 | |
b813574b PB |
16343 | .PHONY: maybe-installcheck-rcs installcheck-rcs |
16344 | maybe-installcheck-rcs: | |
16345 | @if rcs | |
16346 | maybe-installcheck-rcs: installcheck-rcs | |
4fa63067 | 16347 | |
b813574b PB |
16348 | installcheck-rcs: \ |
16349 | configure-rcs | |
16350 | @[ -f ./rcs/Makefile ] || exit 0; \ | |
4fa63067 NN |
16351 | r=`${PWD_COMMAND}`; export r; \ |
16352 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16353 | $(HOST_EXPORTS) \ |
b813574b | 16354 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
16355 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
16356 | done; \ | |
b813574b | 16357 | echo "Doing installcheck in rcs" ; \ |
b00612cc | 16358 | (cd $(HOST_SUBDIR)/rcs && \ |
4fa63067 NN |
16359 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16360 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16361 | "RANLIB=$${RANLIB}" \ | |
16362 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 16363 | installcheck) \ |
4fa63067 NN |
16364 | || exit 1 |
16365 | ||
b813574b | 16366 | @endif rcs |
4fa63067 | 16367 | |
b813574b PB |
16368 | .PHONY: maybe-mostlyclean-rcs mostlyclean-rcs |
16369 | maybe-mostlyclean-rcs: | |
16370 | @if rcs | |
16371 | maybe-mostlyclean-rcs: mostlyclean-rcs | |
4fa63067 | 16372 | |
b813574b PB |
16373 | mostlyclean-rcs: |
16374 | @[ -f ./rcs/Makefile ] || exit 0; \ | |
4fa63067 NN |
16375 | r=`${PWD_COMMAND}`; export r; \ |
16376 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16377 | $(HOST_EXPORTS) \ |
b813574b | 16378 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
16379 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
16380 | done; \ | |
b813574b | 16381 | echo "Doing mostlyclean in rcs" ; \ |
b00612cc | 16382 | (cd $(HOST_SUBDIR)/rcs && \ |
4fa63067 NN |
16383 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16384 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16385 | "RANLIB=$${RANLIB}" \ | |
16386 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 16387 | mostlyclean) \ |
4fa63067 NN |
16388 | || exit 1 |
16389 | ||
b813574b | 16390 | @endif rcs |
4fa63067 | 16391 | |
b813574b PB |
16392 | .PHONY: maybe-clean-rcs clean-rcs |
16393 | maybe-clean-rcs: | |
16394 | @if rcs | |
16395 | maybe-clean-rcs: clean-rcs | |
4fa63067 | 16396 | |
b813574b PB |
16397 | clean-rcs: |
16398 | @[ -f ./rcs/Makefile ] || exit 0; \ | |
4fa63067 NN |
16399 | r=`${PWD_COMMAND}`; export r; \ |
16400 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16401 | $(HOST_EXPORTS) \ |
b813574b | 16402 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
16403 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
16404 | done; \ | |
b813574b | 16405 | echo "Doing clean in rcs" ; \ |
b00612cc | 16406 | (cd $(HOST_SUBDIR)/rcs && \ |
4fa63067 NN |
16407 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16408 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16409 | "RANLIB=$${RANLIB}" \ | |
16410 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 16411 | clean) \ |
4fa63067 NN |
16412 | || exit 1 |
16413 | ||
b813574b | 16414 | @endif rcs |
4fa63067 | 16415 | |
b813574b PB |
16416 | .PHONY: maybe-distclean-rcs distclean-rcs |
16417 | maybe-distclean-rcs: | |
16418 | @if rcs | |
16419 | maybe-distclean-rcs: distclean-rcs | |
4fa63067 | 16420 | |
b813574b PB |
16421 | distclean-rcs: |
16422 | @[ -f ./rcs/Makefile ] || exit 0; \ | |
4fa63067 NN |
16423 | r=`${PWD_COMMAND}`; export r; \ |
16424 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16425 | $(HOST_EXPORTS) \ |
b813574b | 16426 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
16427 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
16428 | done; \ | |
b813574b | 16429 | echo "Doing distclean in rcs" ; \ |
b00612cc | 16430 | (cd $(HOST_SUBDIR)/rcs && \ |
4fa63067 NN |
16431 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16432 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16433 | "RANLIB=$${RANLIB}" \ | |
16434 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 16435 | distclean) \ |
4fa63067 NN |
16436 | || exit 1 |
16437 | ||
b813574b | 16438 | @endif rcs |
4fa63067 | 16439 | |
b813574b PB |
16440 | .PHONY: maybe-maintainer-clean-rcs maintainer-clean-rcs |
16441 | maybe-maintainer-clean-rcs: | |
16442 | @if rcs | |
16443 | maybe-maintainer-clean-rcs: maintainer-clean-rcs | |
4fa63067 | 16444 | |
b813574b PB |
16445 | maintainer-clean-rcs: |
16446 | @[ -f ./rcs/Makefile ] || exit 0; \ | |
4fa63067 NN |
16447 | r=`${PWD_COMMAND}`; export r; \ |
16448 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16449 | $(HOST_EXPORTS) \ |
b813574b | 16450 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
16451 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
16452 | done; \ | |
b813574b | 16453 | echo "Doing maintainer-clean in rcs" ; \ |
b00612cc | 16454 | (cd $(HOST_SUBDIR)/rcs && \ |
4fa63067 NN |
16455 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16456 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16457 | "RANLIB=$${RANLIB}" \ | |
16458 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 16459 | maintainer-clean) \ |
4fa63067 NN |
16460 | || exit 1 |
16461 | ||
b813574b | 16462 | @endif rcs |
4fa63067 NN |
16463 | |
16464 | ||
a7254363 | 16465 | |
b813574b PB |
16466 | .PHONY: configure-readline maybe-configure-readline |
16467 | maybe-configure-readline: | |
16468 | @if readline | |
16469 | maybe-configure-readline: configure-readline | |
a7254363 | 16470 | configure-readline: |
b00612cc PB |
16471 | @test ! -f $(HOST_SUBDIR)/readline/Makefile || exit 0; \ |
16472 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/readline ; \ | |
b40e3958 L |
16473 | r=`${PWD_COMMAND}`; export r; \ |
16474 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16475 | $(HOST_EXPORTS) \ |
a7254363 PB |
16476 | echo Configuring in $(HOST_SUBDIR)/readline; \ |
16477 | cd "$(HOST_SUBDIR)/readline" || exit 1; \ | |
e2b9e2dc | 16478 | case $(srcdir) in \ |
b00612cc PB |
16479 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
16480 | *) topdir=`echo $(HOST_SUBDIR)/readline/ | \ | |
16481 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 16482 | esac; \ |
b00612cc PB |
16483 | srcdiroption="--srcdir=$${topdir}/readline"; \ |
16484 | libsrcdir="$$s/readline"; \ | |
e2b9e2dc | 16485 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 16486 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 16487 | || exit 1 |
b813574b | 16488 | @endif readline |
e2b9e2dc | 16489 | |
a7254363 PB |
16490 | |
16491 | ||
b813574b PB |
16492 | .PHONY: all-readline maybe-all-readline |
16493 | maybe-all-readline: | |
16494 | @if readline | |
d27cc32e | 16495 | TARGET-readline=all |
b813574b PB |
16496 | maybe-all-readline: all-readline |
16497 | all-readline: configure-readline | |
b40e3958 L |
16498 | @r=`${PWD_COMMAND}`; export r; \ |
16499 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16500 | $(HOST_EXPORTS) \ |
b00612cc PB |
16501 | (cd $(HOST_SUBDIR)/readline && \ |
16502 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-readline)) | |
b813574b | 16503 | @endif readline |
3866be5d | 16504 | |
a7254363 | 16505 | |
b813574b PB |
16506 | .PHONY: check-readline maybe-check-readline |
16507 | maybe-check-readline: | |
16508 | @if readline | |
16509 | maybe-check-readline: check-readline | |
3866be5d | 16510 | |
b813574b PB |
16511 | check-readline: |
16512 | @r=`${PWD_COMMAND}`; export r; \ | |
16513 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b813574b | 16514 | $(HOST_EXPORTS) \ |
b00612cc PB |
16515 | (cd $(HOST_SUBDIR)/readline && \ |
16516 | $(MAKE) $(FLAGS_TO_PASS) check) | |
4fa63067 | 16517 | |
b813574b | 16518 | @endif readline |
4fa63067 | 16519 | |
b813574b PB |
16520 | .PHONY: install-readline maybe-install-readline |
16521 | maybe-install-readline: | |
16522 | @if readline | |
16523 | maybe-install-readline: install-readline | |
4fa63067 | 16524 | |
b813574b PB |
16525 | install-readline: installdirs |
16526 | @r=`${PWD_COMMAND}`; export r; \ | |
16527 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b813574b | 16528 | $(HOST_EXPORTS) \ |
b00612cc | 16529 | (cd $(HOST_SUBDIR)/readline && \ |
2da12f12 | 16530 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 16531 | |
b813574b | 16532 | @endif readline |
4fa63067 NN |
16533 | |
16534 | # Other targets (info, dvi, etc.) | |
16535 | ||
b813574b PB |
16536 | .PHONY: maybe-info-readline info-readline |
16537 | maybe-info-readline: | |
16538 | @if readline | |
16539 | maybe-info-readline: info-readline | |
4fa63067 | 16540 | |
b813574b PB |
16541 | info-readline: \ |
16542 | configure-readline | |
16543 | @[ -f ./readline/Makefile ] || exit 0; \ | |
4fa63067 | 16544 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 16545 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 16546 | $(HOST_EXPORTS) \ |
b813574b | 16547 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
16548 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
16549 | done; \ | |
b813574b | 16550 | echo "Doing info in readline" ; \ |
b00612cc | 16551 | (cd $(HOST_SUBDIR)/readline && \ |
4fa63067 NN |
16552 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16553 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16554 | "RANLIB=$${RANLIB}" \ | |
16555 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 16556 | info) \ |
4fa63067 | 16557 | || exit 1 |
3866be5d | 16558 | |
b813574b | 16559 | @endif readline |
3866be5d | 16560 | |
b813574b PB |
16561 | .PHONY: maybe-dvi-readline dvi-readline |
16562 | maybe-dvi-readline: | |
16563 | @if readline | |
16564 | maybe-dvi-readline: dvi-readline | |
16ae0395 | 16565 | |
b813574b PB |
16566 | dvi-readline: \ |
16567 | configure-readline | |
16568 | @[ -f ./readline/Makefile ] || exit 0; \ | |
4fa63067 | 16569 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 16570 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 16571 | $(HOST_EXPORTS) \ |
b813574b | 16572 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
16573 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
16574 | done; \ | |
b813574b | 16575 | echo "Doing dvi in readline" ; \ |
b00612cc | 16576 | (cd $(HOST_SUBDIR)/readline && \ |
4fa63067 NN |
16577 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16578 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16579 | "RANLIB=$${RANLIB}" \ | |
16580 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 16581 | dvi) \ |
4fa63067 | 16582 | || exit 1 |
3866be5d | 16583 | |
b813574b | 16584 | @endif readline |
3866be5d | 16585 | |
6d389afc MS |
16586 | .PHONY: maybe-html-readline html-readline |
16587 | maybe-html-readline: | |
16588 | @if readline | |
16589 | maybe-html-readline: html-readline | |
16590 | ||
16591 | html-readline: \ | |
16592 | configure-readline | |
16593 | @[ -f ./readline/Makefile ] || exit 0; \ | |
16594 | r=`${PWD_COMMAND}`; export r; \ | |
16595 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
16596 | $(HOST_EXPORTS) \ |
16597 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
16598 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
16599 | done; \ | |
16600 | echo "Doing html in readline" ; \ | |
b00612cc | 16601 | (cd $(HOST_SUBDIR)/readline && \ |
6d389afc MS |
16602 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16603 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16604 | "RANLIB=$${RANLIB}" \ | |
16605 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
16606 | html) \ | |
16607 | || exit 1 | |
16608 | ||
16609 | @endif readline | |
16610 | ||
b813574b PB |
16611 | .PHONY: maybe-TAGS-readline TAGS-readline |
16612 | maybe-TAGS-readline: | |
16613 | @if readline | |
16614 | maybe-TAGS-readline: TAGS-readline | |
4fa63067 | 16615 | |
b813574b PB |
16616 | TAGS-readline: \ |
16617 | configure-readline | |
16618 | @[ -f ./readline/Makefile ] || exit 0; \ | |
b40e3958 L |
16619 | r=`${PWD_COMMAND}`; export r; \ |
16620 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16621 | $(HOST_EXPORTS) \ |
b813574b | 16622 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
16623 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
16624 | done; \ | |
b813574b | 16625 | echo "Doing TAGS in readline" ; \ |
b00612cc | 16626 | (cd $(HOST_SUBDIR)/readline && \ |
4fa63067 NN |
16627 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16628 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16629 | "RANLIB=$${RANLIB}" \ | |
16630 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 16631 | TAGS) \ |
e2b9e2dc NN |
16632 | || exit 1 |
16633 | ||
b813574b | 16634 | @endif readline |
4fa63067 | 16635 | |
b813574b PB |
16636 | .PHONY: maybe-install-info-readline install-info-readline |
16637 | maybe-install-info-readline: | |
16638 | @if readline | |
16639 | maybe-install-info-readline: install-info-readline | |
4fa63067 | 16640 | |
b813574b PB |
16641 | install-info-readline: \ |
16642 | configure-readline \ | |
16643 | info-readline | |
16644 | @[ -f ./readline/Makefile ] || exit 0; \ | |
4fa63067 | 16645 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 16646 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 16647 | $(HOST_EXPORTS) \ |
b813574b | 16648 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
16649 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
16650 | done; \ | |
b813574b | 16651 | echo "Doing install-info in readline" ; \ |
b00612cc | 16652 | (cd $(HOST_SUBDIR)/readline && \ |
4fa63067 NN |
16653 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16654 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16655 | "RANLIB=$${RANLIB}" \ | |
16656 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 16657 | install-info) \ |
4fa63067 | 16658 | || exit 1 |
3866be5d | 16659 | |
b813574b | 16660 | @endif readline |
3866be5d | 16661 | |
b813574b PB |
16662 | .PHONY: maybe-installcheck-readline installcheck-readline |
16663 | maybe-installcheck-readline: | |
16664 | @if readline | |
16665 | maybe-installcheck-readline: installcheck-readline | |
4fa63067 | 16666 | |
b813574b PB |
16667 | installcheck-readline: \ |
16668 | configure-readline | |
16669 | @[ -f ./readline/Makefile ] || exit 0; \ | |
4fa63067 NN |
16670 | r=`${PWD_COMMAND}`; export r; \ |
16671 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16672 | $(HOST_EXPORTS) \ |
b813574b | 16673 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
16674 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
16675 | done; \ | |
b813574b | 16676 | echo "Doing installcheck in readline" ; \ |
b00612cc | 16677 | (cd $(HOST_SUBDIR)/readline && \ |
4fa63067 NN |
16678 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16679 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16680 | "RANLIB=$${RANLIB}" \ | |
16681 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 16682 | installcheck) \ |
4fa63067 | 16683 | || exit 1 |
3866be5d | 16684 | |
b813574b | 16685 | @endif readline |
3866be5d | 16686 | |
b813574b PB |
16687 | .PHONY: maybe-mostlyclean-readline mostlyclean-readline |
16688 | maybe-mostlyclean-readline: | |
16689 | @if readline | |
16690 | maybe-mostlyclean-readline: mostlyclean-readline | |
4fa63067 | 16691 | |
b813574b PB |
16692 | mostlyclean-readline: |
16693 | @[ -f ./readline/Makefile ] || exit 0; \ | |
4fa63067 NN |
16694 | r=`${PWD_COMMAND}`; export r; \ |
16695 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16696 | $(HOST_EXPORTS) \ |
b813574b | 16697 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
16698 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
16699 | done; \ | |
b813574b | 16700 | echo "Doing mostlyclean in readline" ; \ |
b00612cc | 16701 | (cd $(HOST_SUBDIR)/readline && \ |
4fa63067 NN |
16702 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16703 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16704 | "RANLIB=$${RANLIB}" \ | |
16705 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 16706 | mostlyclean) \ |
4fa63067 NN |
16707 | || exit 1 |
16708 | ||
b813574b | 16709 | @endif readline |
4fa63067 | 16710 | |
b813574b PB |
16711 | .PHONY: maybe-clean-readline clean-readline |
16712 | maybe-clean-readline: | |
16713 | @if readline | |
16714 | maybe-clean-readline: clean-readline | |
4fa63067 | 16715 | |
b813574b PB |
16716 | clean-readline: |
16717 | @[ -f ./readline/Makefile ] || exit 0; \ | |
4fa63067 NN |
16718 | r=`${PWD_COMMAND}`; export r; \ |
16719 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16720 | $(HOST_EXPORTS) \ |
b813574b | 16721 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
16722 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
16723 | done; \ | |
b813574b | 16724 | echo "Doing clean in readline" ; \ |
b00612cc | 16725 | (cd $(HOST_SUBDIR)/readline && \ |
4fa63067 NN |
16726 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16727 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16728 | "RANLIB=$${RANLIB}" \ | |
16729 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 16730 | clean) \ |
4fa63067 NN |
16731 | || exit 1 |
16732 | ||
b813574b | 16733 | @endif readline |
4fa63067 | 16734 | |
b813574b PB |
16735 | .PHONY: maybe-distclean-readline distclean-readline |
16736 | maybe-distclean-readline: | |
16737 | @if readline | |
16738 | maybe-distclean-readline: distclean-readline | |
4fa63067 | 16739 | |
b813574b PB |
16740 | distclean-readline: |
16741 | @[ -f ./readline/Makefile ] || exit 0; \ | |
4fa63067 NN |
16742 | r=`${PWD_COMMAND}`; export r; \ |
16743 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16744 | $(HOST_EXPORTS) \ |
b813574b | 16745 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
16746 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
16747 | done; \ | |
b813574b | 16748 | echo "Doing distclean in readline" ; \ |
b00612cc | 16749 | (cd $(HOST_SUBDIR)/readline && \ |
4fa63067 NN |
16750 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16751 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16752 | "RANLIB=$${RANLIB}" \ | |
16753 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 16754 | distclean) \ |
4fa63067 NN |
16755 | || exit 1 |
16756 | ||
b813574b | 16757 | @endif readline |
4fa63067 | 16758 | |
b813574b PB |
16759 | .PHONY: maybe-maintainer-clean-readline maintainer-clean-readline |
16760 | maybe-maintainer-clean-readline: | |
16761 | @if readline | |
16762 | maybe-maintainer-clean-readline: maintainer-clean-readline | |
16ae0395 | 16763 | |
b813574b PB |
16764 | maintainer-clean-readline: |
16765 | @[ -f ./readline/Makefile ] || exit 0; \ | |
4fa63067 | 16766 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 16767 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 16768 | $(HOST_EXPORTS) \ |
b813574b | 16769 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
16770 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
16771 | done; \ | |
b813574b | 16772 | echo "Doing maintainer-clean in readline" ; \ |
b00612cc | 16773 | (cd $(HOST_SUBDIR)/readline && \ |
4fa63067 NN |
16774 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16775 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16776 | "RANLIB=$${RANLIB}" \ | |
16777 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 16778 | maintainer-clean) \ |
4fa63067 | 16779 | || exit 1 |
3866be5d | 16780 | |
b813574b | 16781 | @endif readline |
3866be5d | 16782 | |
4fa63067 | 16783 | |
a7254363 | 16784 | |
b813574b PB |
16785 | .PHONY: configure-release maybe-configure-release |
16786 | maybe-configure-release: | |
16787 | @if release | |
16788 | maybe-configure-release: configure-release | |
a7254363 | 16789 | configure-release: |
b00612cc PB |
16790 | @test ! -f $(HOST_SUBDIR)/release/Makefile || exit 0; \ |
16791 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/release ; \ | |
b40e3958 L |
16792 | r=`${PWD_COMMAND}`; export r; \ |
16793 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16794 | $(HOST_EXPORTS) \ |
a7254363 PB |
16795 | echo Configuring in $(HOST_SUBDIR)/release; \ |
16796 | cd "$(HOST_SUBDIR)/release" || exit 1; \ | |
e2b9e2dc | 16797 | case $(srcdir) in \ |
b00612cc PB |
16798 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
16799 | *) topdir=`echo $(HOST_SUBDIR)/release/ | \ | |
16800 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 16801 | esac; \ |
b00612cc PB |
16802 | srcdiroption="--srcdir=$${topdir}/release"; \ |
16803 | libsrcdir="$$s/release"; \ | |
e2b9e2dc | 16804 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 16805 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 16806 | || exit 1 |
b813574b | 16807 | @endif release |
e2b9e2dc | 16808 | |
a7254363 PB |
16809 | |
16810 | ||
b813574b PB |
16811 | .PHONY: all-release maybe-all-release |
16812 | maybe-all-release: | |
16813 | @if release | |
d27cc32e | 16814 | TARGET-release=all |
b813574b PB |
16815 | maybe-all-release: all-release |
16816 | all-release: configure-release | |
b40e3958 L |
16817 | @r=`${PWD_COMMAND}`; export r; \ |
16818 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16819 | $(HOST_EXPORTS) \ |
b00612cc PB |
16820 | (cd $(HOST_SUBDIR)/release && \ |
16821 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-release)) | |
b813574b | 16822 | @endif release |
3866be5d | 16823 | |
a7254363 | 16824 | |
b813574b PB |
16825 | .PHONY: check-release maybe-check-release |
16826 | maybe-check-release: | |
16827 | @if release | |
16828 | maybe-check-release: check-release | |
3866be5d | 16829 | |
b813574b | 16830 | check-release: |
3866be5d | 16831 | |
b813574b | 16832 | @endif release |
3866be5d | 16833 | |
b813574b PB |
16834 | .PHONY: install-release maybe-install-release |
16835 | maybe-install-release: | |
16836 | @if release | |
16837 | maybe-install-release: install-release | |
16ae0395 | 16838 | |
b813574b | 16839 | install-release: |
4fa63067 | 16840 | |
b813574b | 16841 | @endif release |
4fa63067 NN |
16842 | |
16843 | # Other targets (info, dvi, etc.) | |
16844 | ||
b813574b PB |
16845 | .PHONY: maybe-info-release info-release |
16846 | maybe-info-release: | |
16847 | @if release | |
16848 | maybe-info-release: info-release | |
4fa63067 | 16849 | |
b813574b PB |
16850 | info-release: \ |
16851 | configure-release | |
16852 | @[ -f ./release/Makefile ] || exit 0; \ | |
4fa63067 NN |
16853 | r=`${PWD_COMMAND}`; export r; \ |
16854 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16855 | $(HOST_EXPORTS) \ |
b813574b | 16856 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
16857 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
16858 | done; \ | |
b813574b | 16859 | echo "Doing info in release" ; \ |
b00612cc | 16860 | (cd $(HOST_SUBDIR)/release && \ |
4fa63067 NN |
16861 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16862 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16863 | "RANLIB=$${RANLIB}" \ | |
16864 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 16865 | info) \ |
4fa63067 NN |
16866 | || exit 1 |
16867 | ||
b813574b | 16868 | @endif release |
4fa63067 | 16869 | |
b813574b PB |
16870 | .PHONY: maybe-dvi-release dvi-release |
16871 | maybe-dvi-release: | |
16872 | @if release | |
16873 | maybe-dvi-release: dvi-release | |
4fa63067 | 16874 | |
b813574b PB |
16875 | dvi-release: \ |
16876 | configure-release | |
16877 | @[ -f ./release/Makefile ] || exit 0; \ | |
4fa63067 NN |
16878 | r=`${PWD_COMMAND}`; export r; \ |
16879 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16880 | $(HOST_EXPORTS) \ |
b813574b | 16881 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
16882 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
16883 | done; \ | |
b813574b | 16884 | echo "Doing dvi in release" ; \ |
b00612cc | 16885 | (cd $(HOST_SUBDIR)/release && \ |
4fa63067 NN |
16886 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16887 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16888 | "RANLIB=$${RANLIB}" \ | |
16889 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 16890 | dvi) \ |
4fa63067 NN |
16891 | || exit 1 |
16892 | ||
b813574b | 16893 | @endif release |
4fa63067 | 16894 | |
6d389afc MS |
16895 | .PHONY: maybe-html-release html-release |
16896 | maybe-html-release: | |
16897 | @if release | |
16898 | maybe-html-release: html-release | |
16899 | ||
16900 | html-release: \ | |
16901 | configure-release | |
16902 | @[ -f ./release/Makefile ] || exit 0; \ | |
16903 | r=`${PWD_COMMAND}`; export r; \ | |
16904 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
16905 | $(HOST_EXPORTS) \ |
16906 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
16907 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
16908 | done; \ | |
16909 | echo "Doing html in release" ; \ | |
b00612cc | 16910 | (cd $(HOST_SUBDIR)/release && \ |
6d389afc MS |
16911 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16912 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16913 | "RANLIB=$${RANLIB}" \ | |
16914 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
16915 | html) \ | |
16916 | || exit 1 | |
16917 | ||
16918 | @endif release | |
16919 | ||
b813574b PB |
16920 | .PHONY: maybe-TAGS-release TAGS-release |
16921 | maybe-TAGS-release: | |
16922 | @if release | |
16923 | maybe-TAGS-release: TAGS-release | |
4fa63067 | 16924 | |
b813574b PB |
16925 | TAGS-release: \ |
16926 | configure-release | |
16927 | @[ -f ./release/Makefile ] || exit 0; \ | |
4fa63067 NN |
16928 | r=`${PWD_COMMAND}`; export r; \ |
16929 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16930 | $(HOST_EXPORTS) \ |
b813574b | 16931 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
16932 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
16933 | done; \ | |
b813574b | 16934 | echo "Doing TAGS in release" ; \ |
b00612cc | 16935 | (cd $(HOST_SUBDIR)/release && \ |
4fa63067 NN |
16936 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16937 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16938 | "RANLIB=$${RANLIB}" \ | |
16939 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 16940 | TAGS) \ |
4fa63067 NN |
16941 | || exit 1 |
16942 | ||
b813574b | 16943 | @endif release |
4fa63067 | 16944 | |
b813574b PB |
16945 | .PHONY: maybe-install-info-release install-info-release |
16946 | maybe-install-info-release: | |
16947 | @if release | |
16948 | maybe-install-info-release: install-info-release | |
4fa63067 | 16949 | |
b813574b PB |
16950 | install-info-release: \ |
16951 | configure-release \ | |
16952 | info-release | |
16953 | @[ -f ./release/Makefile ] || exit 0; \ | |
4fa63067 NN |
16954 | r=`${PWD_COMMAND}`; export r; \ |
16955 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16956 | $(HOST_EXPORTS) \ |
b813574b | 16957 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
16958 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
16959 | done; \ | |
b813574b | 16960 | echo "Doing install-info in release" ; \ |
b00612cc | 16961 | (cd $(HOST_SUBDIR)/release && \ |
4fa63067 NN |
16962 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16963 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16964 | "RANLIB=$${RANLIB}" \ | |
16965 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 16966 | install-info) \ |
4fa63067 NN |
16967 | || exit 1 |
16968 | ||
b813574b | 16969 | @endif release |
4fa63067 | 16970 | |
b813574b PB |
16971 | .PHONY: maybe-installcheck-release installcheck-release |
16972 | maybe-installcheck-release: | |
16973 | @if release | |
16974 | maybe-installcheck-release: installcheck-release | |
4fa63067 | 16975 | |
b813574b PB |
16976 | installcheck-release: \ |
16977 | configure-release | |
16978 | @[ -f ./release/Makefile ] || exit 0; \ | |
4fa63067 NN |
16979 | r=`${PWD_COMMAND}`; export r; \ |
16980 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16981 | $(HOST_EXPORTS) \ |
b813574b | 16982 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
16983 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
16984 | done; \ | |
b813574b | 16985 | echo "Doing installcheck in release" ; \ |
b00612cc | 16986 | (cd $(HOST_SUBDIR)/release && \ |
4fa63067 NN |
16987 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16988 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16989 | "RANLIB=$${RANLIB}" \ | |
16990 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 16991 | installcheck) \ |
4fa63067 NN |
16992 | || exit 1 |
16993 | ||
b813574b | 16994 | @endif release |
4fa63067 | 16995 | |
b813574b PB |
16996 | .PHONY: maybe-mostlyclean-release mostlyclean-release |
16997 | maybe-mostlyclean-release: | |
16998 | @if release | |
16999 | maybe-mostlyclean-release: mostlyclean-release | |
4fa63067 | 17000 | |
b813574b PB |
17001 | mostlyclean-release: |
17002 | @[ -f ./release/Makefile ] || exit 0; \ | |
4fa63067 NN |
17003 | r=`${PWD_COMMAND}`; export r; \ |
17004 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 17005 | $(HOST_EXPORTS) \ |
b813574b | 17006 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
17007 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
17008 | done; \ | |
b813574b | 17009 | echo "Doing mostlyclean in release" ; \ |
b00612cc | 17010 | (cd $(HOST_SUBDIR)/release && \ |
4fa63067 NN |
17011 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17012 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17013 | "RANLIB=$${RANLIB}" \ | |
17014 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 17015 | mostlyclean) \ |
4fa63067 NN |
17016 | || exit 1 |
17017 | ||
b813574b | 17018 | @endif release |
4fa63067 | 17019 | |
b813574b PB |
17020 | .PHONY: maybe-clean-release clean-release |
17021 | maybe-clean-release: | |
17022 | @if release | |
17023 | maybe-clean-release: clean-release | |
4fa63067 | 17024 | |
b813574b PB |
17025 | clean-release: |
17026 | @[ -f ./release/Makefile ] || exit 0; \ | |
4fa63067 NN |
17027 | r=`${PWD_COMMAND}`; export r; \ |
17028 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 17029 | $(HOST_EXPORTS) \ |
b813574b | 17030 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
17031 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
17032 | done; \ | |
b813574b | 17033 | echo "Doing clean in release" ; \ |
b00612cc | 17034 | (cd $(HOST_SUBDIR)/release && \ |
4fa63067 NN |
17035 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17036 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17037 | "RANLIB=$${RANLIB}" \ | |
17038 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 17039 | clean) \ |
4fa63067 NN |
17040 | || exit 1 |
17041 | ||
b813574b | 17042 | @endif release |
4fa63067 | 17043 | |
b813574b PB |
17044 | .PHONY: maybe-distclean-release distclean-release |
17045 | maybe-distclean-release: | |
17046 | @if release | |
17047 | maybe-distclean-release: distclean-release | |
4fa63067 | 17048 | |
b813574b PB |
17049 | distclean-release: |
17050 | @[ -f ./release/Makefile ] || exit 0; \ | |
4fa63067 NN |
17051 | r=`${PWD_COMMAND}`; export r; \ |
17052 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 17053 | $(HOST_EXPORTS) \ |
b813574b | 17054 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
17055 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
17056 | done; \ | |
b813574b | 17057 | echo "Doing distclean in release" ; \ |
b00612cc | 17058 | (cd $(HOST_SUBDIR)/release && \ |
4fa63067 NN |
17059 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17060 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17061 | "RANLIB=$${RANLIB}" \ | |
17062 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 17063 | distclean) \ |
4fa63067 NN |
17064 | || exit 1 |
17065 | ||
b813574b | 17066 | @endif release |
4fa63067 | 17067 | |
b813574b PB |
17068 | .PHONY: maybe-maintainer-clean-release maintainer-clean-release |
17069 | maybe-maintainer-clean-release: | |
17070 | @if release | |
17071 | maybe-maintainer-clean-release: maintainer-clean-release | |
4fa63067 | 17072 | |
b813574b PB |
17073 | maintainer-clean-release: |
17074 | @[ -f ./release/Makefile ] || exit 0; \ | |
4fa63067 NN |
17075 | r=`${PWD_COMMAND}`; export r; \ |
17076 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 17077 | $(HOST_EXPORTS) \ |
b813574b | 17078 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
17079 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
17080 | done; \ | |
b813574b | 17081 | echo "Doing maintainer-clean in release" ; \ |
b00612cc | 17082 | (cd $(HOST_SUBDIR)/release && \ |
4fa63067 NN |
17083 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17084 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17085 | "RANLIB=$${RANLIB}" \ | |
17086 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 17087 | maintainer-clean) \ |
4fa63067 | 17088 | || exit 1 |
3866be5d | 17089 | |
b813574b | 17090 | @endif release |
3866be5d | 17091 | |
4fa63067 | 17092 | |
a7254363 | 17093 | |
b813574b PB |
17094 | .PHONY: configure-recode maybe-configure-recode |
17095 | maybe-configure-recode: | |
17096 | @if recode | |
17097 | maybe-configure-recode: configure-recode | |
a7254363 | 17098 | configure-recode: |
b00612cc PB |
17099 | @test ! -f $(HOST_SUBDIR)/recode/Makefile || exit 0; \ |
17100 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/recode ; \ | |
b40e3958 L |
17101 | r=`${PWD_COMMAND}`; export r; \ |
17102 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 17103 | $(HOST_EXPORTS) \ |
a7254363 PB |
17104 | echo Configuring in $(HOST_SUBDIR)/recode; \ |
17105 | cd "$(HOST_SUBDIR)/recode" || exit 1; \ | |
e2b9e2dc | 17106 | case $(srcdir) in \ |
b00612cc PB |
17107 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
17108 | *) topdir=`echo $(HOST_SUBDIR)/recode/ | \ | |
17109 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 17110 | esac; \ |
b00612cc PB |
17111 | srcdiroption="--srcdir=$${topdir}/recode"; \ |
17112 | libsrcdir="$$s/recode"; \ | |
e2b9e2dc | 17113 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 17114 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 17115 | || exit 1 |
b813574b | 17116 | @endif recode |
e2b9e2dc | 17117 | |
a7254363 PB |
17118 | |
17119 | ||
b813574b PB |
17120 | .PHONY: all-recode maybe-all-recode |
17121 | maybe-all-recode: | |
17122 | @if recode | |
d27cc32e | 17123 | TARGET-recode=all |
b813574b PB |
17124 | maybe-all-recode: all-recode |
17125 | all-recode: configure-recode | |
b40e3958 L |
17126 | @r=`${PWD_COMMAND}`; export r; \ |
17127 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 17128 | $(HOST_EXPORTS) \ |
b00612cc PB |
17129 | (cd $(HOST_SUBDIR)/recode && \ |
17130 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-recode)) | |
b813574b | 17131 | @endif recode |
3866be5d | 17132 | |
a7254363 | 17133 | |
b813574b PB |
17134 | .PHONY: check-recode maybe-check-recode |
17135 | maybe-check-recode: | |
17136 | @if recode | |
17137 | maybe-check-recode: check-recode | |
3866be5d | 17138 | |
b813574b | 17139 | check-recode: |
b40e3958 L |
17140 | @r=`${PWD_COMMAND}`; export r; \ |
17141 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 17142 | $(HOST_EXPORTS) \ |
b00612cc PB |
17143 | (cd $(HOST_SUBDIR)/recode && \ |
17144 | $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d | 17145 | |
b813574b | 17146 | @endif recode |
3866be5d | 17147 | |
b813574b PB |
17148 | .PHONY: install-recode maybe-install-recode |
17149 | maybe-install-recode: | |
17150 | @if recode | |
17151 | maybe-install-recode: install-recode | |
4fa63067 | 17152 | |
b813574b | 17153 | install-recode: installdirs |
4fa63067 NN |
17154 | @r=`${PWD_COMMAND}`; export r; \ |
17155 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 17156 | $(HOST_EXPORTS) \ |
b00612cc | 17157 | (cd $(HOST_SUBDIR)/recode && \ |
2da12f12 | 17158 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 17159 | |
b813574b | 17160 | @endif recode |
4fa63067 NN |
17161 | |
17162 | # Other targets (info, dvi, etc.) | |
17163 | ||
b813574b PB |
17164 | .PHONY: maybe-info-recode info-recode |
17165 | maybe-info-recode: | |
17166 | @if recode | |
17167 | maybe-info-recode: info-recode | |
4fa63067 | 17168 | |
b813574b PB |
17169 | info-recode: \ |
17170 | configure-recode | |
17171 | @[ -f ./recode/Makefile ] || exit 0; \ | |
4fa63067 NN |
17172 | r=`${PWD_COMMAND}`; export r; \ |
17173 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 17174 | $(HOST_EXPORTS) \ |
b813574b | 17175 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
17176 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
17177 | done; \ | |
b813574b | 17178 | echo "Doing info in recode" ; \ |
b00612cc | 17179 | (cd $(HOST_SUBDIR)/recode && \ |
4fa63067 NN |
17180 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17181 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17182 | "RANLIB=$${RANLIB}" \ | |
17183 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 17184 | info) \ |
4fa63067 NN |
17185 | || exit 1 |
17186 | ||
b813574b | 17187 | @endif recode |
4fa63067 | 17188 | |
b813574b PB |
17189 | .PHONY: maybe-dvi-recode dvi-recode |
17190 | maybe-dvi-recode: | |
17191 | @if recode | |
17192 | maybe-dvi-recode: dvi-recode | |
4fa63067 | 17193 | |
b813574b PB |
17194 | dvi-recode: \ |
17195 | configure-recode | |
17196 | @[ -f ./recode/Makefile ] || exit 0; \ | |
4fa63067 NN |
17197 | r=`${PWD_COMMAND}`; export r; \ |
17198 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 17199 | $(HOST_EXPORTS) \ |
b813574b | 17200 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
17201 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
17202 | done; \ | |
b813574b | 17203 | echo "Doing dvi in recode" ; \ |
b00612cc | 17204 | (cd $(HOST_SUBDIR)/recode && \ |
4fa63067 NN |
17205 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17206 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17207 | "RANLIB=$${RANLIB}" \ | |
17208 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 17209 | dvi) \ |
4fa63067 NN |
17210 | || exit 1 |
17211 | ||
b813574b | 17212 | @endif recode |
4fa63067 | 17213 | |
6d389afc MS |
17214 | .PHONY: maybe-html-recode html-recode |
17215 | maybe-html-recode: | |
17216 | @if recode | |
17217 | maybe-html-recode: html-recode | |
17218 | ||
17219 | html-recode: \ | |
17220 | configure-recode | |
17221 | @[ -f ./recode/Makefile ] || exit 0; \ | |
17222 | r=`${PWD_COMMAND}`; export r; \ | |
17223 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
17224 | $(HOST_EXPORTS) \ |
17225 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
17226 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
17227 | done; \ | |
17228 | echo "Doing html in recode" ; \ | |
b00612cc | 17229 | (cd $(HOST_SUBDIR)/recode && \ |
6d389afc MS |
17230 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17231 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17232 | "RANLIB=$${RANLIB}" \ | |
17233 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
17234 | html) \ | |
17235 | || exit 1 | |
17236 | ||
17237 | @endif recode | |
17238 | ||
b813574b PB |
17239 | .PHONY: maybe-TAGS-recode TAGS-recode |
17240 | maybe-TAGS-recode: | |
17241 | @if recode | |
17242 | maybe-TAGS-recode: TAGS-recode | |
4fa63067 | 17243 | |
b813574b PB |
17244 | TAGS-recode: \ |
17245 | configure-recode | |
17246 | @[ -f ./recode/Makefile ] || exit 0; \ | |
4fa63067 NN |
17247 | r=`${PWD_COMMAND}`; export r; \ |
17248 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 17249 | $(HOST_EXPORTS) \ |
b813574b | 17250 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
17251 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
17252 | done; \ | |
b813574b | 17253 | echo "Doing TAGS in recode" ; \ |
b00612cc | 17254 | (cd $(HOST_SUBDIR)/recode && \ |
4fa63067 NN |
17255 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17256 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17257 | "RANLIB=$${RANLIB}" \ | |
17258 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 17259 | TAGS) \ |
4fa63067 NN |
17260 | || exit 1 |
17261 | ||
b813574b | 17262 | @endif recode |
4fa63067 | 17263 | |
b813574b PB |
17264 | .PHONY: maybe-install-info-recode install-info-recode |
17265 | maybe-install-info-recode: | |
17266 | @if recode | |
17267 | maybe-install-info-recode: install-info-recode | |
4fa63067 | 17268 | |
b813574b PB |
17269 | install-info-recode: \ |
17270 | configure-recode \ | |
17271 | info-recode | |
17272 | @[ -f ./recode/Makefile ] || exit 0; \ | |
4fa63067 NN |
17273 | r=`${PWD_COMMAND}`; export r; \ |
17274 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 17275 | $(HOST_EXPORTS) \ |
b813574b | 17276 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
17277 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
17278 | done; \ | |
b813574b | 17279 | echo "Doing install-info in recode" ; \ |
b00612cc | 17280 | (cd $(HOST_SUBDIR)/recode && \ |
4fa63067 NN |
17281 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17282 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17283 | "RANLIB=$${RANLIB}" \ | |
17284 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 17285 | install-info) \ |
4fa63067 NN |
17286 | || exit 1 |
17287 | ||
b813574b | 17288 | @endif recode |
4fa63067 | 17289 | |
b813574b PB |
17290 | .PHONY: maybe-installcheck-recode installcheck-recode |
17291 | maybe-installcheck-recode: | |
17292 | @if recode | |
17293 | maybe-installcheck-recode: installcheck-recode | |
4fa63067 | 17294 | |
b813574b PB |
17295 | installcheck-recode: \ |
17296 | configure-recode | |
17297 | @[ -f ./recode/Makefile ] || exit 0; \ | |
4fa63067 NN |
17298 | r=`${PWD_COMMAND}`; export r; \ |
17299 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 17300 | $(HOST_EXPORTS) \ |
b813574b | 17301 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
17302 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
17303 | done; \ | |
b813574b | 17304 | echo "Doing installcheck in recode" ; \ |
b00612cc | 17305 | (cd $(HOST_SUBDIR)/recode && \ |
4fa63067 NN |
17306 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17307 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17308 | "RANLIB=$${RANLIB}" \ | |
17309 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 17310 | installcheck) \ |
4fa63067 NN |
17311 | || exit 1 |
17312 | ||
b813574b | 17313 | @endif recode |
4fa63067 | 17314 | |
b813574b PB |
17315 | .PHONY: maybe-mostlyclean-recode mostlyclean-recode |
17316 | maybe-mostlyclean-recode: | |
17317 | @if recode | |
17318 | maybe-mostlyclean-recode: mostlyclean-recode | |
4fa63067 | 17319 | |
b813574b PB |
17320 | mostlyclean-recode: |
17321 | @[ -f ./recode/Makefile ] || exit 0; \ | |
4fa63067 NN |
17322 | r=`${PWD_COMMAND}`; export r; \ |
17323 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 17324 | $(HOST_EXPORTS) \ |
b813574b | 17325 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
17326 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
17327 | done; \ | |
b813574b | 17328 | echo "Doing mostlyclean in recode" ; \ |
b00612cc | 17329 | (cd $(HOST_SUBDIR)/recode && \ |
4fa63067 NN |
17330 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17331 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17332 | "RANLIB=$${RANLIB}" \ | |
17333 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 17334 | mostlyclean) \ |
4fa63067 NN |
17335 | || exit 1 |
17336 | ||
b813574b | 17337 | @endif recode |
4fa63067 | 17338 | |
b813574b PB |
17339 | .PHONY: maybe-clean-recode clean-recode |
17340 | maybe-clean-recode: | |
17341 | @if recode | |
17342 | maybe-clean-recode: clean-recode | |
4fa63067 | 17343 | |
b813574b PB |
17344 | clean-recode: |
17345 | @[ -f ./recode/Makefile ] || exit 0; \ | |
4fa63067 NN |
17346 | r=`${PWD_COMMAND}`; export r; \ |
17347 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 17348 | $(HOST_EXPORTS) \ |
b813574b | 17349 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
17350 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
17351 | done; \ | |
b813574b | 17352 | echo "Doing clean in recode" ; \ |
b00612cc | 17353 | (cd $(HOST_SUBDIR)/recode && \ |
4fa63067 NN |
17354 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17355 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17356 | "RANLIB=$${RANLIB}" \ | |
17357 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 17358 | clean) \ |
4fa63067 NN |
17359 | || exit 1 |
17360 | ||
b813574b | 17361 | @endif recode |
4fa63067 | 17362 | |
b813574b PB |
17363 | .PHONY: maybe-distclean-recode distclean-recode |
17364 | maybe-distclean-recode: | |
17365 | @if recode | |
17366 | maybe-distclean-recode: distclean-recode | |
4fa63067 | 17367 | |
b813574b PB |
17368 | distclean-recode: |
17369 | @[ -f ./recode/Makefile ] || exit 0; \ | |
4fa63067 NN |
17370 | r=`${PWD_COMMAND}`; export r; \ |
17371 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 17372 | $(HOST_EXPORTS) \ |
b813574b | 17373 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
17374 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
17375 | done; \ | |
b813574b | 17376 | echo "Doing distclean in recode" ; \ |
b00612cc | 17377 | (cd $(HOST_SUBDIR)/recode && \ |
4fa63067 NN |
17378 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17379 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17380 | "RANLIB=$${RANLIB}" \ | |
17381 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 17382 | distclean) \ |
4fa63067 NN |
17383 | || exit 1 |
17384 | ||
b813574b | 17385 | @endif recode |
4fa63067 | 17386 | |
b813574b PB |
17387 | .PHONY: maybe-maintainer-clean-recode maintainer-clean-recode |
17388 | maybe-maintainer-clean-recode: | |
17389 | @if recode | |
17390 | maybe-maintainer-clean-recode: maintainer-clean-recode | |
4fa63067 | 17391 | |
b813574b PB |
17392 | maintainer-clean-recode: |
17393 | @[ -f ./recode/Makefile ] || exit 0; \ | |
4fa63067 NN |
17394 | r=`${PWD_COMMAND}`; export r; \ |
17395 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 17396 | $(HOST_EXPORTS) \ |
b813574b | 17397 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
17398 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
17399 | done; \ | |
b813574b | 17400 | echo "Doing maintainer-clean in recode" ; \ |
b00612cc | 17401 | (cd $(HOST_SUBDIR)/recode && \ |
4fa63067 NN |
17402 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17403 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17404 | "RANLIB=$${RANLIB}" \ | |
17405 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 17406 | maintainer-clean) \ |
4fa63067 | 17407 | || exit 1 |
16ae0395 | 17408 | |
b813574b | 17409 | @endif recode |
3866be5d NN |
17410 | |
17411 | ||
a7254363 | 17412 | |
b813574b PB |
17413 | .PHONY: configure-sed maybe-configure-sed |
17414 | maybe-configure-sed: | |
17415 | @if sed | |
17416 | maybe-configure-sed: configure-sed | |
a7254363 | 17417 | configure-sed: |
b00612cc PB |
17418 | @test ! -f $(HOST_SUBDIR)/sed/Makefile || exit 0; \ |
17419 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/sed ; \ | |
b40e3958 L |
17420 | r=`${PWD_COMMAND}`; export r; \ |
17421 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 17422 | $(HOST_EXPORTS) \ |
a7254363 PB |
17423 | echo Configuring in $(HOST_SUBDIR)/sed; \ |
17424 | cd "$(HOST_SUBDIR)/sed" || exit 1; \ | |
e2b9e2dc | 17425 | case $(srcdir) in \ |
b00612cc PB |
17426 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
17427 | *) topdir=`echo $(HOST_SUBDIR)/sed/ | \ | |
17428 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 17429 | esac; \ |
b00612cc PB |
17430 | srcdiroption="--srcdir=$${topdir}/sed"; \ |
17431 | libsrcdir="$$s/sed"; \ | |
e2b9e2dc | 17432 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 17433 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 17434 | || exit 1 |
b813574b | 17435 | @endif sed |
e2b9e2dc | 17436 | |
a7254363 PB |
17437 | |
17438 | ||
b813574b PB |
17439 | .PHONY: all-sed maybe-all-sed |
17440 | maybe-all-sed: | |
17441 | @if sed | |
d27cc32e | 17442 | TARGET-sed=all |
b813574b PB |
17443 | maybe-all-sed: all-sed |
17444 | all-sed: configure-sed | |
b40e3958 L |
17445 | @r=`${PWD_COMMAND}`; export r; \ |
17446 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 17447 | $(HOST_EXPORTS) \ |
b00612cc PB |
17448 | (cd $(HOST_SUBDIR)/sed && \ |
17449 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-sed)) | |
b813574b | 17450 | @endif sed |
3866be5d | 17451 | |
a7254363 | 17452 | |
b813574b PB |
17453 | .PHONY: check-sed maybe-check-sed |
17454 | maybe-check-sed: | |
17455 | @if sed | |
17456 | maybe-check-sed: check-sed | |
3866be5d | 17457 | |
b813574b | 17458 | check-sed: |
b40e3958 L |
17459 | @r=`${PWD_COMMAND}`; export r; \ |
17460 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 17461 | $(HOST_EXPORTS) \ |
b00612cc PB |
17462 | (cd $(HOST_SUBDIR)/sed && \ |
17463 | $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d | 17464 | |
b813574b | 17465 | @endif sed |
3866be5d | 17466 | |
b813574b PB |
17467 | .PHONY: install-sed maybe-install-sed |
17468 | maybe-install-sed: | |
17469 | @if sed | |
17470 | maybe-install-sed: install-sed | |
16ae0395 | 17471 | |
b813574b | 17472 | install-sed: installdirs |
b40e3958 L |
17473 | @r=`${PWD_COMMAND}`; export r; \ |
17474 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 17475 | $(HOST_EXPORTS) \ |
b00612cc | 17476 | (cd $(HOST_SUBDIR)/sed && \ |
2da12f12 | 17477 | $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d | 17478 | |
b813574b | 17479 | @endif sed |
3866be5d | 17480 | |
4fa63067 NN |
17481 | # Other targets (info, dvi, etc.) |
17482 | ||
b813574b PB |
17483 | .PHONY: maybe-info-sed info-sed |
17484 | maybe-info-sed: | |
17485 | @if sed | |
17486 | maybe-info-sed: info-sed | |
4fa63067 | 17487 | |
b813574b PB |
17488 | info-sed: \ |
17489 | configure-sed | |
17490 | @[ -f ./sed/Makefile ] || exit 0; \ | |
4fa63067 NN |
17491 | r=`${PWD_COMMAND}`; export r; \ |
17492 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 17493 | $(HOST_EXPORTS) \ |
b813574b | 17494 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
17495 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
17496 | done; \ | |
6d389afc | 17497 | echo "Doing info in sed" ; \ |
b00612cc | 17498 | (cd $(HOST_SUBDIR)/sed && \ |
6d389afc MS |
17499 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17500 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17501 | "RANLIB=$${RANLIB}" \ | |
17502 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
17503 | info) \ | |
17504 | || exit 1 | |
17505 | ||
17506 | @endif sed | |
17507 | ||
17508 | .PHONY: maybe-dvi-sed dvi-sed | |
17509 | maybe-dvi-sed: | |
17510 | @if sed | |
17511 | maybe-dvi-sed: dvi-sed | |
17512 | ||
17513 | dvi-sed: \ | |
17514 | configure-sed | |
17515 | @[ -f ./sed/Makefile ] || exit 0; \ | |
17516 | r=`${PWD_COMMAND}`; export r; \ | |
17517 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
17518 | $(HOST_EXPORTS) \ |
17519 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
17520 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
17521 | done; \ | |
17522 | echo "Doing dvi in sed" ; \ | |
b00612cc | 17523 | (cd $(HOST_SUBDIR)/sed && \ |
4fa63067 NN |
17524 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17525 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17526 | "RANLIB=$${RANLIB}" \ | |
17527 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
6d389afc | 17528 | dvi) \ |
4fa63067 NN |
17529 | || exit 1 |
17530 | ||
b813574b | 17531 | @endif sed |
4fa63067 | 17532 | |
6d389afc MS |
17533 | .PHONY: maybe-html-sed html-sed |
17534 | maybe-html-sed: | |
b813574b | 17535 | @if sed |
6d389afc | 17536 | maybe-html-sed: html-sed |
4fa63067 | 17537 | |
6d389afc | 17538 | html-sed: \ |
b813574b PB |
17539 | configure-sed |
17540 | @[ -f ./sed/Makefile ] || exit 0; \ | |
4fa63067 NN |
17541 | r=`${PWD_COMMAND}`; export r; \ |
17542 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 17543 | $(HOST_EXPORTS) \ |
b813574b | 17544 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
17545 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
17546 | done; \ | |
6d389afc | 17547 | echo "Doing html in sed" ; \ |
b00612cc | 17548 | (cd $(HOST_SUBDIR)/sed && \ |
4fa63067 NN |
17549 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17550 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17551 | "RANLIB=$${RANLIB}" \ | |
17552 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
6d389afc | 17553 | html) \ |
4fa63067 NN |
17554 | || exit 1 |
17555 | ||
b813574b | 17556 | @endif sed |
4fa63067 | 17557 | |
b813574b PB |
17558 | .PHONY: maybe-TAGS-sed TAGS-sed |
17559 | maybe-TAGS-sed: | |
17560 | @if sed | |
17561 | maybe-TAGS-sed: TAGS-sed | |
4fa63067 | 17562 | |
b813574b PB |
17563 | TAGS-sed: \ |
17564 | configure-sed | |
17565 | @[ -f ./sed/Makefile ] || exit 0; \ | |
4fa63067 NN |
17566 | r=`${PWD_COMMAND}`; export r; \ |
17567 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 17568 | $(HOST_EXPORTS) \ |
b813574b | 17569 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
17570 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
17571 | done; \ | |
b813574b | 17572 | echo "Doing TAGS in sed" ; \ |
b00612cc | 17573 | (cd $(HOST_SUBDIR)/sed && \ |
4fa63067 NN |
17574 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17575 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17576 | "RANLIB=$${RANLIB}" \ | |
17577 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 17578 | TAGS) \ |
4fa63067 NN |
17579 | || exit 1 |
17580 | ||
b813574b | 17581 | @endif sed |
4fa63067 | 17582 | |
b813574b PB |
17583 | .PHONY: maybe-install-info-sed install-info-sed |
17584 | maybe-install-info-sed: | |
17585 | @if sed | |
17586 | maybe-install-info-sed: install-info-sed | |
4fa63067 | 17587 | |
b813574b PB |
17588 | install-info-sed: \ |
17589 | configure-sed \ | |
17590 | info-sed | |
17591 | @[ -f ./sed/Makefile ] || exit 0; \ | |
4fa63067 NN |
17592 | r=`${PWD_COMMAND}`; export r; \ |
17593 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 17594 | $(HOST_EXPORTS) \ |
b813574b | 17595 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
17596 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
17597 | done; \ | |
b813574b | 17598 | echo "Doing install-info in sed" ; \ |
b00612cc | 17599 | (cd $(HOST_SUBDIR)/sed && \ |
4fa63067 NN |
17600 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17601 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17602 | "RANLIB=$${RANLIB}" \ | |
17603 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 17604 | install-info) \ |
4fa63067 NN |
17605 | || exit 1 |
17606 | ||
b813574b | 17607 | @endif sed |
4fa63067 | 17608 | |
b813574b PB |
17609 | .PHONY: maybe-installcheck-sed installcheck-sed |
17610 | maybe-installcheck-sed: | |
17611 | @if sed | |
17612 | maybe-installcheck-sed: installcheck-sed | |
4fa63067 | 17613 | |
b813574b PB |
17614 | installcheck-sed: \ |
17615 | configure-sed | |
17616 | @[ -f ./sed/Makefile ] || exit 0; \ | |
4fa63067 NN |
17617 | r=`${PWD_COMMAND}`; export r; \ |
17618 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 17619 | $(HOST_EXPORTS) \ |
b813574b | 17620 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
17621 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
17622 | done; \ | |
b813574b | 17623 | echo "Doing installcheck in sed" ; \ |
b00612cc | 17624 | (cd $(HOST_SUBDIR)/sed && \ |
4fa63067 NN |
17625 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17626 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17627 | "RANLIB=$${RANLIB}" \ | |
17628 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 17629 | installcheck) \ |
4fa63067 NN |
17630 | || exit 1 |
17631 | ||
b813574b | 17632 | @endif sed |
4fa63067 | 17633 | |
b813574b PB |
17634 | .PHONY: maybe-mostlyclean-sed mostlyclean-sed |
17635 | maybe-mostlyclean-sed: | |
17636 | @if sed | |
17637 | maybe-mostlyclean-sed: mostlyclean-sed | |
4fa63067 | 17638 | |
b813574b PB |
17639 | mostlyclean-sed: |
17640 | @[ -f ./sed/Makefile ] || exit 0; \ | |
4fa63067 NN |
17641 | r=`${PWD_COMMAND}`; export r; \ |
17642 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 17643 | $(HOST_EXPORTS) \ |
b813574b | 17644 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
17645 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
17646 | done; \ | |
b813574b | 17647 | echo "Doing mostlyclean in sed" ; \ |
b00612cc | 17648 | (cd $(HOST_SUBDIR)/sed && \ |
4fa63067 NN |
17649 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17650 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17651 | "RANLIB=$${RANLIB}" \ | |
17652 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 17653 | mostlyclean) \ |
4fa63067 NN |
17654 | || exit 1 |
17655 | ||
b813574b | 17656 | @endif sed |
4fa63067 | 17657 | |
b813574b PB |
17658 | .PHONY: maybe-clean-sed clean-sed |
17659 | maybe-clean-sed: | |
17660 | @if sed | |
17661 | maybe-clean-sed: clean-sed | |
4fa63067 | 17662 | |
b813574b PB |
17663 | clean-sed: |
17664 | @[ -f ./sed/Makefile ] || exit 0; \ | |
4fa63067 NN |
17665 | r=`${PWD_COMMAND}`; export r; \ |
17666 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 17667 | $(HOST_EXPORTS) \ |
b813574b | 17668 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
17669 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
17670 | done; \ | |
b813574b | 17671 | echo "Doing clean in sed" ; \ |
b00612cc | 17672 | (cd $(HOST_SUBDIR)/sed && \ |
4fa63067 NN |
17673 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17674 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17675 | "RANLIB=$${RANLIB}" \ | |
17676 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 17677 | clean) \ |
4fa63067 NN |
17678 | || exit 1 |
17679 | ||
b813574b | 17680 | @endif sed |
4fa63067 | 17681 | |
b813574b PB |
17682 | .PHONY: maybe-distclean-sed distclean-sed |
17683 | maybe-distclean-sed: | |
17684 | @if sed | |
17685 | maybe-distclean-sed: distclean-sed | |
4fa63067 | 17686 | |
b813574b PB |
17687 | distclean-sed: |
17688 | @[ -f ./sed/Makefile ] || exit 0; \ | |
4fa63067 NN |
17689 | r=`${PWD_COMMAND}`; export r; \ |
17690 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 17691 | $(HOST_EXPORTS) \ |
b813574b | 17692 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
17693 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
17694 | done; \ | |
b813574b | 17695 | echo "Doing distclean in sed" ; \ |
b00612cc | 17696 | (cd $(HOST_SUBDIR)/sed && \ |
4fa63067 NN |
17697 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17698 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17699 | "RANLIB=$${RANLIB}" \ | |
17700 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 17701 | distclean) \ |
4fa63067 NN |
17702 | || exit 1 |
17703 | ||
b813574b | 17704 | @endif sed |
4fa63067 | 17705 | |
b813574b PB |
17706 | .PHONY: maybe-maintainer-clean-sed maintainer-clean-sed |
17707 | maybe-maintainer-clean-sed: | |
17708 | @if sed | |
17709 | maybe-maintainer-clean-sed: maintainer-clean-sed | |
4fa63067 | 17710 | |
b813574b PB |
17711 | maintainer-clean-sed: |
17712 | @[ -f ./sed/Makefile ] || exit 0; \ | |
4fa63067 NN |
17713 | r=`${PWD_COMMAND}`; export r; \ |
17714 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 17715 | $(HOST_EXPORTS) \ |
b813574b | 17716 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
17717 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
17718 | done; \ | |
b813574b | 17719 | echo "Doing maintainer-clean in sed" ; \ |
b00612cc | 17720 | (cd $(HOST_SUBDIR)/sed && \ |
4fa63067 NN |
17721 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17722 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17723 | "RANLIB=$${RANLIB}" \ | |
17724 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 17725 | maintainer-clean) \ |
4fa63067 NN |
17726 | || exit 1 |
17727 | ||
b813574b | 17728 | @endif sed |
4fa63067 NN |
17729 | |
17730 | ||
a7254363 | 17731 | |
b813574b PB |
17732 | .PHONY: configure-send-pr maybe-configure-send-pr |
17733 | maybe-configure-send-pr: | |
17734 | @if send-pr | |
17735 | maybe-configure-send-pr: configure-send-pr | |
a7254363 | 17736 | configure-send-pr: |
b00612cc PB |
17737 | @test ! -f $(HOST_SUBDIR)/send-pr/Makefile || exit 0; \ |
17738 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/send-pr ; \ | |
b40e3958 L |
17739 | r=`${PWD_COMMAND}`; export r; \ |
17740 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 17741 | $(HOST_EXPORTS) \ |
a7254363 PB |
17742 | echo Configuring in $(HOST_SUBDIR)/send-pr; \ |
17743 | cd "$(HOST_SUBDIR)/send-pr" || exit 1; \ | |
e2b9e2dc | 17744 | case $(srcdir) in \ |
b00612cc PB |
17745 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
17746 | *) topdir=`echo $(HOST_SUBDIR)/send-pr/ | \ | |
17747 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 17748 | esac; \ |
b00612cc PB |
17749 | srcdiroption="--srcdir=$${topdir}/send-pr"; \ |
17750 | libsrcdir="$$s/send-pr"; \ | |
e2b9e2dc | 17751 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 17752 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 17753 | || exit 1 |
b813574b | 17754 | @endif send-pr |
e2b9e2dc | 17755 | |
a7254363 PB |
17756 | |
17757 | ||
b813574b PB |
17758 | .PHONY: all-send-pr maybe-all-send-pr |
17759 | maybe-all-send-pr: | |
17760 | @if send-pr | |
d27cc32e | 17761 | TARGET-send-pr=all |
b813574b PB |
17762 | maybe-all-send-pr: all-send-pr |
17763 | all-send-pr: configure-send-pr | |
b40e3958 L |
17764 | @r=`${PWD_COMMAND}`; export r; \ |
17765 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 17766 | $(HOST_EXPORTS) \ |
b00612cc PB |
17767 | (cd $(HOST_SUBDIR)/send-pr && \ |
17768 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-send-pr)) | |
b813574b | 17769 | @endif send-pr |
3866be5d | 17770 | |
a7254363 | 17771 | |
b813574b PB |
17772 | .PHONY: check-send-pr maybe-check-send-pr |
17773 | maybe-check-send-pr: | |
17774 | @if send-pr | |
17775 | maybe-check-send-pr: check-send-pr | |
3866be5d | 17776 | |
b813574b | 17777 | check-send-pr: |
b40e3958 L |
17778 | @r=`${PWD_COMMAND}`; export r; \ |
17779 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 17780 | $(HOST_EXPORTS) \ |
b00612cc PB |
17781 | (cd $(HOST_SUBDIR)/send-pr && \ |
17782 | $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d | 17783 | |
b813574b | 17784 | @endif send-pr |
3866be5d | 17785 | |
b813574b PB |
17786 | .PHONY: install-send-pr maybe-install-send-pr |
17787 | maybe-install-send-pr: | |
17788 | @if send-pr | |
17789 | maybe-install-send-pr: install-send-pr | |
16ae0395 | 17790 | |
b813574b | 17791 | install-send-pr: installdirs |
b40e3958 L |
17792 | @r=`${PWD_COMMAND}`; export r; \ |
17793 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 17794 | $(HOST_EXPORTS) \ |
b00612cc | 17795 | (cd $(HOST_SUBDIR)/send-pr && \ |
2da12f12 | 17796 | $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d | 17797 | |
b813574b | 17798 | @endif send-pr |
3866be5d | 17799 | |
4fa63067 NN |
17800 | # Other targets (info, dvi, etc.) |
17801 | ||
b813574b PB |
17802 | .PHONY: maybe-info-send-pr info-send-pr |
17803 | maybe-info-send-pr: | |
17804 | @if send-pr | |
17805 | maybe-info-send-pr: info-send-pr | |
4fa63067 | 17806 | |
b813574b PB |
17807 | info-send-pr: \ |
17808 | configure-send-pr | |
17809 | @[ -f ./send-pr/Makefile ] || exit 0; \ | |
b40e3958 L |
17810 | r=`${PWD_COMMAND}`; export r; \ |
17811 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 17812 | $(HOST_EXPORTS) \ |
b813574b | 17813 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
17814 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
17815 | done; \ | |
b813574b | 17816 | echo "Doing info in send-pr" ; \ |
b00612cc | 17817 | (cd $(HOST_SUBDIR)/send-pr && \ |
4fa63067 NN |
17818 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17819 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17820 | "RANLIB=$${RANLIB}" \ | |
17821 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 17822 | info) \ |
e2b9e2dc NN |
17823 | || exit 1 |
17824 | ||
b813574b | 17825 | @endif send-pr |
4fa63067 | 17826 | |
b813574b PB |
17827 | .PHONY: maybe-dvi-send-pr dvi-send-pr |
17828 | maybe-dvi-send-pr: | |
17829 | @if send-pr | |
17830 | maybe-dvi-send-pr: dvi-send-pr | |
4fa63067 | 17831 | |
b813574b PB |
17832 | dvi-send-pr: \ |
17833 | configure-send-pr | |
17834 | @[ -f ./send-pr/Makefile ] || exit 0; \ | |
4fa63067 | 17835 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 17836 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 17837 | $(HOST_EXPORTS) \ |
b813574b | 17838 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
17839 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
17840 | done; \ | |
b813574b | 17841 | echo "Doing dvi in send-pr" ; \ |
b00612cc | 17842 | (cd $(HOST_SUBDIR)/send-pr && \ |
4fa63067 NN |
17843 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17844 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17845 | "RANLIB=$${RANLIB}" \ | |
17846 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 17847 | dvi) \ |
4fa63067 | 17848 | || exit 1 |
3866be5d | 17849 | |
b813574b | 17850 | @endif send-pr |
3866be5d | 17851 | |
6d389afc MS |
17852 | .PHONY: maybe-html-send-pr html-send-pr |
17853 | maybe-html-send-pr: | |
17854 | @if send-pr | |
17855 | maybe-html-send-pr: html-send-pr | |
17856 | ||
17857 | html-send-pr: \ | |
17858 | configure-send-pr | |
17859 | @[ -f ./send-pr/Makefile ] || exit 0; \ | |
17860 | r=`${PWD_COMMAND}`; export r; \ | |
17861 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
17862 | $(HOST_EXPORTS) \ |
17863 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
17864 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
17865 | done; \ | |
17866 | echo "Doing html in send-pr" ; \ | |
b00612cc | 17867 | (cd $(HOST_SUBDIR)/send-pr && \ |
6d389afc MS |
17868 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17869 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17870 | "RANLIB=$${RANLIB}" \ | |
17871 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
17872 | html) \ | |
17873 | || exit 1 | |
17874 | ||
17875 | @endif send-pr | |
17876 | ||
b813574b PB |
17877 | .PHONY: maybe-TAGS-send-pr TAGS-send-pr |
17878 | maybe-TAGS-send-pr: | |
17879 | @if send-pr | |
17880 | maybe-TAGS-send-pr: TAGS-send-pr | |
4fa63067 | 17881 | |
b813574b PB |
17882 | TAGS-send-pr: \ |
17883 | configure-send-pr | |
17884 | @[ -f ./send-pr/Makefile ] || exit 0; \ | |
4fa63067 NN |
17885 | r=`${PWD_COMMAND}`; export r; \ |
17886 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 17887 | $(HOST_EXPORTS) \ |
b813574b | 17888 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
17889 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
17890 | done; \ | |
b813574b | 17891 | echo "Doing TAGS in send-pr" ; \ |
b00612cc | 17892 | (cd $(HOST_SUBDIR)/send-pr && \ |
4fa63067 NN |
17893 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17894 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17895 | "RANLIB=$${RANLIB}" \ | |
17896 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 17897 | TAGS) \ |
4fa63067 | 17898 | || exit 1 |
3866be5d | 17899 | |
b813574b | 17900 | @endif send-pr |
3866be5d | 17901 | |
b813574b PB |
17902 | .PHONY: maybe-install-info-send-pr install-info-send-pr |
17903 | maybe-install-info-send-pr: | |
17904 | @if send-pr | |
17905 | maybe-install-info-send-pr: install-info-send-pr | |
16ae0395 | 17906 | |
b813574b PB |
17907 | install-info-send-pr: \ |
17908 | configure-send-pr \ | |
17909 | info-send-pr | |
17910 | @[ -f ./send-pr/Makefile ] || exit 0; \ | |
4fa63067 NN |
17911 | r=`${PWD_COMMAND}`; export r; \ |
17912 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 17913 | $(HOST_EXPORTS) \ |
b813574b | 17914 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
17915 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
17916 | done; \ | |
b813574b | 17917 | echo "Doing install-info in send-pr" ; \ |
b00612cc | 17918 | (cd $(HOST_SUBDIR)/send-pr && \ |
4fa63067 NN |
17919 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17920 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17921 | "RANLIB=$${RANLIB}" \ | |
17922 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 17923 | install-info) \ |
4fa63067 NN |
17924 | || exit 1 |
17925 | ||
b813574b | 17926 | @endif send-pr |
4fa63067 | 17927 | |
b813574b PB |
17928 | .PHONY: maybe-installcheck-send-pr installcheck-send-pr |
17929 | maybe-installcheck-send-pr: | |
17930 | @if send-pr | |
17931 | maybe-installcheck-send-pr: installcheck-send-pr | |
4fa63067 | 17932 | |
b813574b PB |
17933 | installcheck-send-pr: \ |
17934 | configure-send-pr | |
17935 | @[ -f ./send-pr/Makefile ] || exit 0; \ | |
4fa63067 NN |
17936 | r=`${PWD_COMMAND}`; export r; \ |
17937 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 17938 | $(HOST_EXPORTS) \ |
b813574b | 17939 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
17940 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
17941 | done; \ | |
b813574b | 17942 | echo "Doing installcheck in send-pr" ; \ |
b00612cc | 17943 | (cd $(HOST_SUBDIR)/send-pr && \ |
4fa63067 NN |
17944 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17945 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17946 | "RANLIB=$${RANLIB}" \ | |
17947 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 17948 | installcheck) \ |
4fa63067 NN |
17949 | || exit 1 |
17950 | ||
b813574b | 17951 | @endif send-pr |
4fa63067 | 17952 | |
b813574b PB |
17953 | .PHONY: maybe-mostlyclean-send-pr mostlyclean-send-pr |
17954 | maybe-mostlyclean-send-pr: | |
17955 | @if send-pr | |
17956 | maybe-mostlyclean-send-pr: mostlyclean-send-pr | |
4fa63067 | 17957 | |
b813574b PB |
17958 | mostlyclean-send-pr: |
17959 | @[ -f ./send-pr/Makefile ] || exit 0; \ | |
4fa63067 NN |
17960 | r=`${PWD_COMMAND}`; export r; \ |
17961 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 17962 | $(HOST_EXPORTS) \ |
b813574b | 17963 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
17964 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
17965 | done; \ | |
b813574b | 17966 | echo "Doing mostlyclean in send-pr" ; \ |
b00612cc | 17967 | (cd $(HOST_SUBDIR)/send-pr && \ |
4fa63067 NN |
17968 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17969 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17970 | "RANLIB=$${RANLIB}" \ | |
17971 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 17972 | mostlyclean) \ |
4fa63067 NN |
17973 | || exit 1 |
17974 | ||
b813574b | 17975 | @endif send-pr |
4fa63067 | 17976 | |
b813574b PB |
17977 | .PHONY: maybe-clean-send-pr clean-send-pr |
17978 | maybe-clean-send-pr: | |
17979 | @if send-pr | |
17980 | maybe-clean-send-pr: clean-send-pr | |
4fa63067 | 17981 | |
b813574b PB |
17982 | clean-send-pr: |
17983 | @[ -f ./send-pr/Makefile ] || exit 0; \ | |
4fa63067 NN |
17984 | r=`${PWD_COMMAND}`; export r; \ |
17985 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 17986 | $(HOST_EXPORTS) \ |
b813574b | 17987 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
17988 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
17989 | done; \ | |
b813574b | 17990 | echo "Doing clean in send-pr" ; \ |
b00612cc | 17991 | (cd $(HOST_SUBDIR)/send-pr && \ |
4fa63067 NN |
17992 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17993 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17994 | "RANLIB=$${RANLIB}" \ | |
17995 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 17996 | clean) \ |
4fa63067 NN |
17997 | || exit 1 |
17998 | ||
b813574b | 17999 | @endif send-pr |
4fa63067 | 18000 | |
b813574b PB |
18001 | .PHONY: maybe-distclean-send-pr distclean-send-pr |
18002 | maybe-distclean-send-pr: | |
18003 | @if send-pr | |
18004 | maybe-distclean-send-pr: distclean-send-pr | |
4fa63067 | 18005 | |
b813574b PB |
18006 | distclean-send-pr: |
18007 | @[ -f ./send-pr/Makefile ] || exit 0; \ | |
4fa63067 NN |
18008 | r=`${PWD_COMMAND}`; export r; \ |
18009 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 18010 | $(HOST_EXPORTS) \ |
b813574b | 18011 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
18012 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
18013 | done; \ | |
b813574b | 18014 | echo "Doing distclean in send-pr" ; \ |
b00612cc | 18015 | (cd $(HOST_SUBDIR)/send-pr && \ |
4fa63067 NN |
18016 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
18017 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18018 | "RANLIB=$${RANLIB}" \ | |
18019 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 18020 | distclean) \ |
4fa63067 NN |
18021 | || exit 1 |
18022 | ||
b813574b | 18023 | @endif send-pr |
4fa63067 | 18024 | |
b813574b PB |
18025 | .PHONY: maybe-maintainer-clean-send-pr maintainer-clean-send-pr |
18026 | maybe-maintainer-clean-send-pr: | |
18027 | @if send-pr | |
18028 | maybe-maintainer-clean-send-pr: maintainer-clean-send-pr | |
4fa63067 | 18029 | |
b813574b PB |
18030 | maintainer-clean-send-pr: |
18031 | @[ -f ./send-pr/Makefile ] || exit 0; \ | |
4fa63067 | 18032 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 18033 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 18034 | $(HOST_EXPORTS) \ |
b813574b | 18035 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
18036 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
18037 | done; \ | |
b813574b | 18038 | echo "Doing maintainer-clean in send-pr" ; \ |
b00612cc | 18039 | (cd $(HOST_SUBDIR)/send-pr && \ |
4fa63067 NN |
18040 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
18041 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18042 | "RANLIB=$${RANLIB}" \ | |
18043 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 18044 | maintainer-clean) \ |
4fa63067 | 18045 | || exit 1 |
3866be5d | 18046 | |
b813574b | 18047 | @endif send-pr |
3866be5d | 18048 | |
4fa63067 | 18049 | |
a7254363 | 18050 | |
b813574b PB |
18051 | .PHONY: configure-shellutils maybe-configure-shellutils |
18052 | maybe-configure-shellutils: | |
18053 | @if shellutils | |
18054 | maybe-configure-shellutils: configure-shellutils | |
a7254363 | 18055 | configure-shellutils: |
b00612cc PB |
18056 | @test ! -f $(HOST_SUBDIR)/shellutils/Makefile || exit 0; \ |
18057 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/shellutils ; \ | |
b40e3958 L |
18058 | r=`${PWD_COMMAND}`; export r; \ |
18059 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 18060 | $(HOST_EXPORTS) \ |
a7254363 PB |
18061 | echo Configuring in $(HOST_SUBDIR)/shellutils; \ |
18062 | cd "$(HOST_SUBDIR)/shellutils" || exit 1; \ | |
e2b9e2dc | 18063 | case $(srcdir) in \ |
b00612cc PB |
18064 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
18065 | *) topdir=`echo $(HOST_SUBDIR)/shellutils/ | \ | |
18066 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 18067 | esac; \ |
b00612cc PB |
18068 | srcdiroption="--srcdir=$${topdir}/shellutils"; \ |
18069 | libsrcdir="$$s/shellutils"; \ | |
e2b9e2dc | 18070 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 18071 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 18072 | || exit 1 |
b813574b | 18073 | @endif shellutils |
e2b9e2dc | 18074 | |
a7254363 PB |
18075 | |
18076 | ||
b813574b PB |
18077 | .PHONY: all-shellutils maybe-all-shellutils |
18078 | maybe-all-shellutils: | |
18079 | @if shellutils | |
d27cc32e | 18080 | TARGET-shellutils=all |
b813574b PB |
18081 | maybe-all-shellutils: all-shellutils |
18082 | all-shellutils: configure-shellutils | |
b40e3958 L |
18083 | @r=`${PWD_COMMAND}`; export r; \ |
18084 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 18085 | $(HOST_EXPORTS) \ |
b00612cc PB |
18086 | (cd $(HOST_SUBDIR)/shellutils && \ |
18087 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-shellutils)) | |
b813574b | 18088 | @endif shellutils |
3866be5d | 18089 | |
a7254363 | 18090 | |
b813574b PB |
18091 | .PHONY: check-shellutils maybe-check-shellutils |
18092 | maybe-check-shellutils: | |
18093 | @if shellutils | |
18094 | maybe-check-shellutils: check-shellutils | |
3866be5d | 18095 | |
b813574b | 18096 | check-shellutils: |
b40e3958 L |
18097 | @r=`${PWD_COMMAND}`; export r; \ |
18098 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 18099 | $(HOST_EXPORTS) \ |
b00612cc PB |
18100 | (cd $(HOST_SUBDIR)/shellutils && \ |
18101 | $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d | 18102 | |
b813574b | 18103 | @endif shellutils |
3866be5d | 18104 | |
b813574b PB |
18105 | .PHONY: install-shellutils maybe-install-shellutils |
18106 | maybe-install-shellutils: | |
18107 | @if shellutils | |
18108 | maybe-install-shellutils: install-shellutils | |
16ae0395 | 18109 | |
b813574b | 18110 | install-shellutils: installdirs |
b40e3958 L |
18111 | @r=`${PWD_COMMAND}`; export r; \ |
18112 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 18113 | $(HOST_EXPORTS) \ |
b00612cc | 18114 | (cd $(HOST_SUBDIR)/shellutils && \ |
2da12f12 | 18115 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 18116 | |
b813574b | 18117 | @endif shellutils |
4fa63067 NN |
18118 | |
18119 | # Other targets (info, dvi, etc.) | |
18120 | ||
b813574b PB |
18121 | .PHONY: maybe-info-shellutils info-shellutils |
18122 | maybe-info-shellutils: | |
18123 | @if shellutils | |
18124 | maybe-info-shellutils: info-shellutils | |
4fa63067 | 18125 | |
b813574b PB |
18126 | info-shellutils: \ |
18127 | configure-shellutils | |
18128 | @[ -f ./shellutils/Makefile ] || exit 0; \ | |
4fa63067 NN |
18129 | r=`${PWD_COMMAND}`; export r; \ |
18130 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 18131 | $(HOST_EXPORTS) \ |
b813574b | 18132 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
18133 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
18134 | done; \ | |
b813574b | 18135 | echo "Doing info in shellutils" ; \ |
b00612cc | 18136 | (cd $(HOST_SUBDIR)/shellutils && \ |
4fa63067 NN |
18137 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
18138 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18139 | "RANLIB=$${RANLIB}" \ | |
18140 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 18141 | info) \ |
4fa63067 NN |
18142 | || exit 1 |
18143 | ||
b813574b | 18144 | @endif shellutils |
4fa63067 | 18145 | |
b813574b PB |
18146 | .PHONY: maybe-dvi-shellutils dvi-shellutils |
18147 | maybe-dvi-shellutils: | |
18148 | @if shellutils | |
18149 | maybe-dvi-shellutils: dvi-shellutils | |
4fa63067 | 18150 | |
b813574b PB |
18151 | dvi-shellutils: \ |
18152 | configure-shellutils | |
18153 | @[ -f ./shellutils/Makefile ] || exit 0; \ | |
4fa63067 NN |
18154 | r=`${PWD_COMMAND}`; export r; \ |
18155 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 18156 | $(HOST_EXPORTS) \ |
b813574b | 18157 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
18158 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
18159 | done; \ | |
b813574b | 18160 | echo "Doing dvi in shellutils" ; \ |
b00612cc | 18161 | (cd $(HOST_SUBDIR)/shellutils && \ |
4fa63067 NN |
18162 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
18163 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18164 | "RANLIB=$${RANLIB}" \ | |
18165 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 18166 | dvi) \ |
4fa63067 NN |
18167 | || exit 1 |
18168 | ||
b813574b | 18169 | @endif shellutils |
4fa63067 | 18170 | |
6d389afc MS |
18171 | .PHONY: maybe-html-shellutils html-shellutils |
18172 | maybe-html-shellutils: | |
18173 | @if shellutils | |
18174 | maybe-html-shellutils: html-shellutils | |
18175 | ||
18176 | html-shellutils: \ | |
18177 | configure-shellutils | |
18178 | @[ -f ./shellutils/Makefile ] || exit 0; \ | |
18179 | r=`${PWD_COMMAND}`; export r; \ | |
18180 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
18181 | $(HOST_EXPORTS) \ |
18182 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
18183 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
18184 | done; \ | |
18185 | echo "Doing html in shellutils" ; \ | |
b00612cc | 18186 | (cd $(HOST_SUBDIR)/shellutils && \ |
6d389afc MS |
18187 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
18188 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18189 | "RANLIB=$${RANLIB}" \ | |
18190 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
18191 | html) \ | |
18192 | || exit 1 | |
18193 | ||
18194 | @endif shellutils | |
18195 | ||
b813574b PB |
18196 | .PHONY: maybe-TAGS-shellutils TAGS-shellutils |
18197 | maybe-TAGS-shellutils: | |
18198 | @if shellutils | |
18199 | maybe-TAGS-shellutils: TAGS-shellutils | |
4fa63067 | 18200 | |
b813574b PB |
18201 | TAGS-shellutils: \ |
18202 | configure-shellutils | |
18203 | @[ -f ./shellutils/Makefile ] || exit 0; \ | |
4fa63067 NN |
18204 | r=`${PWD_COMMAND}`; export r; \ |
18205 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 18206 | $(HOST_EXPORTS) \ |
b813574b | 18207 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
18208 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
18209 | done; \ | |
b813574b | 18210 | echo "Doing TAGS in shellutils" ; \ |
b00612cc | 18211 | (cd $(HOST_SUBDIR)/shellutils && \ |
4fa63067 NN |
18212 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
18213 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18214 | "RANLIB=$${RANLIB}" \ | |
18215 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 18216 | TAGS) \ |
4fa63067 NN |
18217 | || exit 1 |
18218 | ||
b813574b | 18219 | @endif shellutils |
4fa63067 | 18220 | |
b813574b PB |
18221 | .PHONY: maybe-install-info-shellutils install-info-shellutils |
18222 | maybe-install-info-shellutils: | |
18223 | @if shellutils | |
18224 | maybe-install-info-shellutils: install-info-shellutils | |
4fa63067 | 18225 | |
b813574b PB |
18226 | install-info-shellutils: \ |
18227 | configure-shellutils \ | |
18228 | info-shellutils | |
18229 | @[ -f ./shellutils/Makefile ] || exit 0; \ | |
4fa63067 NN |
18230 | r=`${PWD_COMMAND}`; export r; \ |
18231 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 18232 | $(HOST_EXPORTS) \ |
b813574b | 18233 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
18234 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
18235 | done; \ | |
b813574b | 18236 | echo "Doing install-info in shellutils" ; \ |
b00612cc | 18237 | (cd $(HOST_SUBDIR)/shellutils && \ |
4fa63067 NN |
18238 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
18239 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18240 | "RANLIB=$${RANLIB}" \ | |
18241 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 18242 | install-info) \ |
4fa63067 NN |
18243 | || exit 1 |
18244 | ||
b813574b | 18245 | @endif shellutils |
4fa63067 | 18246 | |
b813574b PB |
18247 | .PHONY: maybe-installcheck-shellutils installcheck-shellutils |
18248 | maybe-installcheck-shellutils: | |
18249 | @if shellutils | |
18250 | maybe-installcheck-shellutils: installcheck-shellutils | |
4fa63067 | 18251 | |
b813574b PB |
18252 | installcheck-shellutils: \ |
18253 | configure-shellutils | |
18254 | @[ -f ./shellutils/Makefile ] || exit 0; \ | |
4fa63067 NN |
18255 | r=`${PWD_COMMAND}`; export r; \ |
18256 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 18257 | $(HOST_EXPORTS) \ |
b813574b | 18258 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
18259 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
18260 | done; \ | |
b813574b | 18261 | echo "Doing installcheck in shellutils" ; \ |
b00612cc | 18262 | (cd $(HOST_SUBDIR)/shellutils && \ |
4fa63067 NN |
18263 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
18264 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18265 | "RANLIB=$${RANLIB}" \ | |
18266 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 18267 | installcheck) \ |
4fa63067 NN |
18268 | || exit 1 |
18269 | ||
b813574b | 18270 | @endif shellutils |
4fa63067 | 18271 | |
b813574b PB |
18272 | .PHONY: maybe-mostlyclean-shellutils mostlyclean-shellutils |
18273 | maybe-mostlyclean-shellutils: | |
18274 | @if shellutils | |
18275 | maybe-mostlyclean-shellutils: mostlyclean-shellutils | |
4fa63067 | 18276 | |
b813574b PB |
18277 | mostlyclean-shellutils: |
18278 | @[ -f ./shellutils/Makefile ] || exit 0; \ | |
4fa63067 NN |
18279 | r=`${PWD_COMMAND}`; export r; \ |
18280 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 18281 | $(HOST_EXPORTS) \ |
b813574b | 18282 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
18283 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
18284 | done; \ | |
b813574b | 18285 | echo "Doing mostlyclean in shellutils" ; \ |
b00612cc | 18286 | (cd $(HOST_SUBDIR)/shellutils && \ |
4fa63067 NN |
18287 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
18288 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18289 | "RANLIB=$${RANLIB}" \ | |
18290 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 18291 | mostlyclean) \ |
4fa63067 NN |
18292 | || exit 1 |
18293 | ||
b813574b | 18294 | @endif shellutils |
4fa63067 | 18295 | |
b813574b PB |
18296 | .PHONY: maybe-clean-shellutils clean-shellutils |
18297 | maybe-clean-shellutils: | |
18298 | @if shellutils | |
18299 | maybe-clean-shellutils: clean-shellutils | |
4fa63067 | 18300 | |
b813574b PB |
18301 | clean-shellutils: |
18302 | @[ -f ./shellutils/Makefile ] || exit 0; \ | |
4fa63067 NN |
18303 | r=`${PWD_COMMAND}`; export r; \ |
18304 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 18305 | $(HOST_EXPORTS) \ |
b813574b | 18306 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
18307 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
18308 | done; \ | |
b813574b | 18309 | echo "Doing clean in shellutils" ; \ |
b00612cc | 18310 | (cd $(HOST_SUBDIR)/shellutils && \ |
4fa63067 NN |
18311 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
18312 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18313 | "RANLIB=$${RANLIB}" \ | |
18314 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 18315 | clean) \ |
4fa63067 NN |
18316 | || exit 1 |
18317 | ||
b813574b | 18318 | @endif shellutils |
4fa63067 | 18319 | |
b813574b PB |
18320 | .PHONY: maybe-distclean-shellutils distclean-shellutils |
18321 | maybe-distclean-shellutils: | |
18322 | @if shellutils | |
18323 | maybe-distclean-shellutils: distclean-shellutils | |
4fa63067 | 18324 | |
b813574b PB |
18325 | distclean-shellutils: |
18326 | @[ -f ./shellutils/Makefile ] || exit 0; \ | |
4fa63067 NN |
18327 | r=`${PWD_COMMAND}`; export r; \ |
18328 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 18329 | $(HOST_EXPORTS) \ |
b813574b | 18330 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
18331 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
18332 | done; \ | |
b813574b | 18333 | echo "Doing distclean in shellutils" ; \ |
b00612cc | 18334 | (cd $(HOST_SUBDIR)/shellutils && \ |
4fa63067 NN |
18335 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
18336 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18337 | "RANLIB=$${RANLIB}" \ | |
18338 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 18339 | distclean) \ |
4fa63067 NN |
18340 | || exit 1 |
18341 | ||
b813574b | 18342 | @endif shellutils |
4fa63067 | 18343 | |
b813574b PB |
18344 | .PHONY: maybe-maintainer-clean-shellutils maintainer-clean-shellutils |
18345 | maybe-maintainer-clean-shellutils: | |
18346 | @if shellutils | |
18347 | maybe-maintainer-clean-shellutils: maintainer-clean-shellutils | |
4fa63067 | 18348 | |
b813574b PB |
18349 | maintainer-clean-shellutils: |
18350 | @[ -f ./shellutils/Makefile ] || exit 0; \ | |
4fa63067 NN |
18351 | r=`${PWD_COMMAND}`; export r; \ |
18352 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 18353 | $(HOST_EXPORTS) \ |
b813574b | 18354 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
18355 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
18356 | done; \ | |
b813574b | 18357 | echo "Doing maintainer-clean in shellutils" ; \ |
b00612cc | 18358 | (cd $(HOST_SUBDIR)/shellutils && \ |
4fa63067 NN |
18359 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
18360 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18361 | "RANLIB=$${RANLIB}" \ | |
18362 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 18363 | maintainer-clean) \ |
4fa63067 | 18364 | || exit 1 |
3866be5d | 18365 | |
b813574b | 18366 | @endif shellutils |
3866be5d | 18367 | |
4fa63067 | 18368 | |
a7254363 | 18369 | |
b813574b PB |
18370 | .PHONY: configure-sid maybe-configure-sid |
18371 | maybe-configure-sid: | |
18372 | @if sid | |
18373 | maybe-configure-sid: configure-sid | |
a7254363 | 18374 | configure-sid: |
b00612cc PB |
18375 | @test ! -f $(HOST_SUBDIR)/sid/Makefile || exit 0; \ |
18376 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/sid ; \ | |
b40e3958 L |
18377 | r=`${PWD_COMMAND}`; export r; \ |
18378 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 18379 | $(HOST_EXPORTS) \ |
a7254363 PB |
18380 | echo Configuring in $(HOST_SUBDIR)/sid; \ |
18381 | cd "$(HOST_SUBDIR)/sid" || exit 1; \ | |
e2b9e2dc | 18382 | case $(srcdir) in \ |
b00612cc PB |
18383 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
18384 | *) topdir=`echo $(HOST_SUBDIR)/sid/ | \ | |
18385 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 18386 | esac; \ |
b00612cc PB |
18387 | srcdiroption="--srcdir=$${topdir}/sid"; \ |
18388 | libsrcdir="$$s/sid"; \ | |
e2b9e2dc | 18389 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 18390 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 18391 | || exit 1 |
b813574b | 18392 | @endif sid |
e2b9e2dc | 18393 | |
a7254363 PB |
18394 | |
18395 | ||
b813574b PB |
18396 | .PHONY: all-sid maybe-all-sid |
18397 | maybe-all-sid: | |
18398 | @if sid | |
d27cc32e | 18399 | TARGET-sid=all |
b813574b PB |
18400 | maybe-all-sid: all-sid |
18401 | all-sid: configure-sid | |
b40e3958 L |
18402 | @r=`${PWD_COMMAND}`; export r; \ |
18403 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 18404 | $(HOST_EXPORTS) \ |
b00612cc PB |
18405 | (cd $(HOST_SUBDIR)/sid && \ |
18406 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-sid)) | |
b813574b | 18407 | @endif sid |
3866be5d | 18408 | |
a7254363 | 18409 | |
b813574b PB |
18410 | .PHONY: check-sid maybe-check-sid |
18411 | maybe-check-sid: | |
18412 | @if sid | |
18413 | maybe-check-sid: check-sid | |
3866be5d | 18414 | |
b813574b | 18415 | check-sid: |
4fa63067 NN |
18416 | @r=`${PWD_COMMAND}`; export r; \ |
18417 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 18418 | $(HOST_EXPORTS) \ |
b00612cc PB |
18419 | (cd $(HOST_SUBDIR)/sid && \ |
18420 | $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d | 18421 | |
b813574b | 18422 | @endif sid |
3866be5d | 18423 | |
b813574b PB |
18424 | .PHONY: install-sid maybe-install-sid |
18425 | maybe-install-sid: | |
18426 | @if sid | |
18427 | maybe-install-sid: install-sid | |
16ae0395 | 18428 | |
b813574b | 18429 | install-sid: installdirs |
b40e3958 L |
18430 | @r=`${PWD_COMMAND}`; export r; \ |
18431 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 18432 | $(HOST_EXPORTS) \ |
b00612cc | 18433 | (cd $(HOST_SUBDIR)/sid && \ |
2da12f12 | 18434 | $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d | 18435 | |
b813574b | 18436 | @endif sid |
3866be5d | 18437 | |
4fa63067 NN |
18438 | # Other targets (info, dvi, etc.) |
18439 | ||
b813574b PB |
18440 | .PHONY: maybe-info-sid info-sid |
18441 | maybe-info-sid: | |
18442 | @if sid | |
18443 | maybe-info-sid: info-sid | |
4fa63067 | 18444 | |
b813574b PB |
18445 | info-sid: \ |
18446 | configure-sid | |
18447 | @[ -f ./sid/Makefile ] || exit 0; \ | |
4fa63067 NN |
18448 | r=`${PWD_COMMAND}`; export r; \ |
18449 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 18450 | $(HOST_EXPORTS) \ |
b813574b | 18451 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
18452 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
18453 | done; \ | |
b813574b | 18454 | echo "Doing info in sid" ; \ |
b00612cc | 18455 | (cd $(HOST_SUBDIR)/sid && \ |
4fa63067 NN |
18456 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
18457 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18458 | "RANLIB=$${RANLIB}" \ | |
18459 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 18460 | info) \ |
4fa63067 NN |
18461 | || exit 1 |
18462 | ||
b813574b | 18463 | @endif sid |
4fa63067 | 18464 | |
b813574b PB |
18465 | .PHONY: maybe-dvi-sid dvi-sid |
18466 | maybe-dvi-sid: | |
18467 | @if sid | |
18468 | maybe-dvi-sid: dvi-sid | |
4fa63067 | 18469 | |
b813574b PB |
18470 | dvi-sid: \ |
18471 | configure-sid | |
18472 | @[ -f ./sid/Makefile ] || exit 0; \ | |
4fa63067 NN |
18473 | r=`${PWD_COMMAND}`; export r; \ |
18474 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 18475 | $(HOST_EXPORTS) \ |
b813574b | 18476 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
18477 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
18478 | done; \ | |
b813574b | 18479 | echo "Doing dvi in sid" ; \ |
b00612cc | 18480 | (cd $(HOST_SUBDIR)/sid && \ |
4fa63067 NN |
18481 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
18482 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18483 | "RANLIB=$${RANLIB}" \ | |
18484 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 18485 | dvi) \ |
4fa63067 NN |
18486 | || exit 1 |
18487 | ||
b813574b | 18488 | @endif sid |
4fa63067 | 18489 | |
6d389afc MS |
18490 | .PHONY: maybe-html-sid html-sid |
18491 | maybe-html-sid: | |
18492 | @if sid | |
18493 | maybe-html-sid: html-sid | |
18494 | ||
18495 | html-sid: \ | |
18496 | configure-sid | |
18497 | @[ -f ./sid/Makefile ] || exit 0; \ | |
18498 | r=`${PWD_COMMAND}`; export r; \ | |
18499 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
18500 | $(HOST_EXPORTS) \ |
18501 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
18502 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
18503 | done; \ | |
18504 | echo "Doing html in sid" ; \ | |
b00612cc | 18505 | (cd $(HOST_SUBDIR)/sid && \ |
6d389afc MS |
18506 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
18507 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18508 | "RANLIB=$${RANLIB}" \ | |
18509 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
18510 | html) \ | |
18511 | || exit 1 | |
18512 | ||
18513 | @endif sid | |
18514 | ||
b813574b PB |
18515 | .PHONY: maybe-TAGS-sid TAGS-sid |
18516 | maybe-TAGS-sid: | |
18517 | @if sid | |
18518 | maybe-TAGS-sid: TAGS-sid | |
4fa63067 | 18519 | |
b813574b PB |
18520 | TAGS-sid: \ |
18521 | configure-sid | |
18522 | @[ -f ./sid/Makefile ] || exit 0; \ | |
4fa63067 NN |
18523 | r=`${PWD_COMMAND}`; export r; \ |
18524 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 18525 | $(HOST_EXPORTS) \ |
b813574b | 18526 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
18527 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
18528 | done; \ | |
b813574b | 18529 | echo "Doing TAGS in sid" ; \ |
b00612cc | 18530 | (cd $(HOST_SUBDIR)/sid && \ |
4fa63067 NN |
18531 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
18532 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18533 | "RANLIB=$${RANLIB}" \ | |
18534 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 18535 | TAGS) \ |
4fa63067 NN |
18536 | || exit 1 |
18537 | ||
b813574b | 18538 | @endif sid |
4fa63067 | 18539 | |
b813574b PB |
18540 | .PHONY: maybe-install-info-sid install-info-sid |
18541 | maybe-install-info-sid: | |
18542 | @if sid | |
18543 | maybe-install-info-sid: install-info-sid | |
4fa63067 | 18544 | |
b813574b PB |
18545 | install-info-sid: \ |
18546 | configure-sid \ | |
18547 | info-sid | |
18548 | @[ -f ./sid/Makefile ] || exit 0; \ | |
4fa63067 NN |
18549 | r=`${PWD_COMMAND}`; export r; \ |
18550 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 18551 | $(HOST_EXPORTS) \ |
b813574b | 18552 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
18553 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
18554 | done; \ | |
b813574b | 18555 | echo "Doing install-info in sid" ; \ |
b00612cc | 18556 | (cd $(HOST_SUBDIR)/sid && \ |
4fa63067 NN |
18557 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
18558 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18559 | "RANLIB=$${RANLIB}" \ | |
18560 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 18561 | install-info) \ |
4fa63067 NN |
18562 | || exit 1 |
18563 | ||
b813574b | 18564 | @endif sid |
4fa63067 | 18565 | |
b813574b PB |
18566 | .PHONY: maybe-installcheck-sid installcheck-sid |
18567 | maybe-installcheck-sid: | |
18568 | @if sid | |
18569 | maybe-installcheck-sid: installcheck-sid | |
4fa63067 | 18570 | |
b813574b PB |
18571 | installcheck-sid: \ |
18572 | configure-sid | |
18573 | @[ -f ./sid/Makefile ] || exit 0; \ | |
18574 | r=`${PWD_COMMAND}`; export r; \ | |
4fa63067 | 18575 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 18576 | $(HOST_EXPORTS) \ |
b813574b | 18577 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
18578 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
18579 | done; \ | |
b813574b | 18580 | echo "Doing installcheck in sid" ; \ |
b00612cc | 18581 | (cd $(HOST_SUBDIR)/sid && \ |
4fa63067 NN |
18582 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
18583 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18584 | "RANLIB=$${RANLIB}" \ | |
18585 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 18586 | installcheck) \ |
4fa63067 NN |
18587 | || exit 1 |
18588 | ||
b813574b | 18589 | @endif sid |
4fa63067 | 18590 | |
b813574b PB |
18591 | .PHONY: maybe-mostlyclean-sid mostlyclean-sid |
18592 | maybe-mostlyclean-sid: | |
18593 | @if sid | |
18594 | maybe-mostlyclean-sid: mostlyclean-sid | |
4fa63067 | 18595 | |
b813574b PB |
18596 | mostlyclean-sid: |
18597 | @[ -f ./sid/Makefile ] || exit 0; \ | |
4fa63067 NN |
18598 | r=`${PWD_COMMAND}`; export r; \ |
18599 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 18600 | $(HOST_EXPORTS) \ |
b813574b | 18601 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
18602 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
18603 | done; \ | |
b813574b | 18604 | echo "Doing mostlyclean in sid" ; \ |
b00612cc | 18605 | (cd $(HOST_SUBDIR)/sid && \ |
4fa63067 NN |
18606 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
18607 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18608 | "RANLIB=$${RANLIB}" \ | |
18609 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 18610 | mostlyclean) \ |
4fa63067 NN |
18611 | || exit 1 |
18612 | ||
b813574b | 18613 | @endif sid |
4fa63067 | 18614 | |
b813574b PB |
18615 | .PHONY: maybe-clean-sid clean-sid |
18616 | maybe-clean-sid: | |
18617 | @if sid | |
18618 | maybe-clean-sid: clean-sid | |
4fa63067 | 18619 | |
b813574b PB |
18620 | clean-sid: |
18621 | @[ -f ./sid/Makefile ] || exit 0; \ | |
4fa63067 NN |
18622 | r=`${PWD_COMMAND}`; export r; \ |
18623 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 18624 | $(HOST_EXPORTS) \ |
b813574b | 18625 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
18626 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
18627 | done; \ | |
b813574b | 18628 | echo "Doing clean in sid" ; \ |
b00612cc | 18629 | (cd $(HOST_SUBDIR)/sid && \ |
4fa63067 NN |
18630 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
18631 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18632 | "RANLIB=$${RANLIB}" \ | |
18633 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 18634 | clean) \ |
4fa63067 NN |
18635 | || exit 1 |
18636 | ||
b813574b | 18637 | @endif sid |
4fa63067 | 18638 | |
b813574b PB |
18639 | .PHONY: maybe-distclean-sid distclean-sid |
18640 | maybe-distclean-sid: | |
18641 | @if sid | |
18642 | maybe-distclean-sid: distclean-sid | |
4fa63067 | 18643 | |
b813574b PB |
18644 | distclean-sid: |
18645 | @[ -f ./sid/Makefile ] || exit 0; \ | |
4fa63067 NN |
18646 | r=`${PWD_COMMAND}`; export r; \ |
18647 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 18648 | $(HOST_EXPORTS) \ |
b813574b | 18649 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
18650 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
18651 | done; \ | |
b813574b | 18652 | echo "Doing distclean in sid" ; \ |
b00612cc | 18653 | (cd $(HOST_SUBDIR)/sid && \ |
4fa63067 NN |
18654 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
18655 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18656 | "RANLIB=$${RANLIB}" \ | |
18657 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 18658 | distclean) \ |
4fa63067 NN |
18659 | || exit 1 |
18660 | ||
b813574b | 18661 | @endif sid |
4fa63067 | 18662 | |
b813574b PB |
18663 | .PHONY: maybe-maintainer-clean-sid maintainer-clean-sid |
18664 | maybe-maintainer-clean-sid: | |
18665 | @if sid | |
18666 | maybe-maintainer-clean-sid: maintainer-clean-sid | |
4fa63067 | 18667 | |
b813574b PB |
18668 | maintainer-clean-sid: |
18669 | @[ -f ./sid/Makefile ] || exit 0; \ | |
4fa63067 NN |
18670 | r=`${PWD_COMMAND}`; export r; \ |
18671 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
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 | 18676 | echo "Doing maintainer-clean in sid" ; \ |
b00612cc | 18677 | (cd $(HOST_SUBDIR)/sid && \ |
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 | maintainer-clean) \ |
4fa63067 NN |
18683 | || exit 1 |
18684 | ||
b813574b | 18685 | @endif sid |
4fa63067 NN |
18686 | |
18687 | ||
a7254363 | 18688 | |
b813574b PB |
18689 | .PHONY: configure-sim maybe-configure-sim |
18690 | maybe-configure-sim: | |
18691 | @if sim | |
18692 | maybe-configure-sim: configure-sim | |
a7254363 | 18693 | configure-sim: |
b00612cc PB |
18694 | @test ! -f $(HOST_SUBDIR)/sim/Makefile || exit 0; \ |
18695 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/sim ; \ | |
b40e3958 L |
18696 | r=`${PWD_COMMAND}`; export r; \ |
18697 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 18698 | $(HOST_EXPORTS) \ |
a7254363 PB |
18699 | echo Configuring in $(HOST_SUBDIR)/sim; \ |
18700 | cd "$(HOST_SUBDIR)/sim" || exit 1; \ | |
e2b9e2dc | 18701 | case $(srcdir) in \ |
b00612cc PB |
18702 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
18703 | *) topdir=`echo $(HOST_SUBDIR)/sim/ | \ | |
18704 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 18705 | esac; \ |
b00612cc PB |
18706 | srcdiroption="--srcdir=$${topdir}/sim"; \ |
18707 | libsrcdir="$$s/sim"; \ | |
e2b9e2dc | 18708 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 18709 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 18710 | || exit 1 |
b813574b | 18711 | @endif sim |
e2b9e2dc | 18712 | |
a7254363 PB |
18713 | |
18714 | ||
b813574b PB |
18715 | .PHONY: all-sim maybe-all-sim |
18716 | maybe-all-sim: | |
18717 | @if sim | |
d27cc32e | 18718 | TARGET-sim=all |
b813574b PB |
18719 | maybe-all-sim: all-sim |
18720 | all-sim: configure-sim | |
b40e3958 L |
18721 | @r=`${PWD_COMMAND}`; export r; \ |
18722 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 18723 | $(HOST_EXPORTS) \ |
b00612cc PB |
18724 | (cd $(HOST_SUBDIR)/sim && \ |
18725 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-sim)) | |
b813574b | 18726 | @endif sim |
3866be5d | 18727 | |
a7254363 | 18728 | |
b813574b PB |
18729 | .PHONY: check-sim maybe-check-sim |
18730 | maybe-check-sim: | |
18731 | @if sim | |
18732 | maybe-check-sim: check-sim | |
3866be5d | 18733 | |
b813574b | 18734 | check-sim: |
b40e3958 L |
18735 | @r=`${PWD_COMMAND}`; export r; \ |
18736 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 18737 | $(HOST_EXPORTS) \ |
b00612cc PB |
18738 | (cd $(HOST_SUBDIR)/sim && \ |
18739 | $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d | 18740 | |
b813574b | 18741 | @endif sim |
3866be5d | 18742 | |
b813574b PB |
18743 | .PHONY: install-sim maybe-install-sim |
18744 | maybe-install-sim: | |
18745 | @if sim | |
18746 | maybe-install-sim: install-sim | |
16ae0395 | 18747 | |
b813574b | 18748 | install-sim: installdirs |
b40e3958 L |
18749 | @r=`${PWD_COMMAND}`; export r; \ |
18750 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 18751 | $(HOST_EXPORTS) \ |
b00612cc | 18752 | (cd $(HOST_SUBDIR)/sim && \ |
2da12f12 | 18753 | $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d | 18754 | |
b813574b | 18755 | @endif sim |
3866be5d | 18756 | |
4fa63067 NN |
18757 | # Other targets (info, dvi, etc.) |
18758 | ||
b813574b PB |
18759 | .PHONY: maybe-info-sim info-sim |
18760 | maybe-info-sim: | |
18761 | @if sim | |
18762 | maybe-info-sim: info-sim | |
4fa63067 | 18763 | |
b813574b PB |
18764 | info-sim: \ |
18765 | configure-sim | |
18766 | @[ -f ./sim/Makefile ] || exit 0; \ | |
b40e3958 L |
18767 | r=`${PWD_COMMAND}`; export r; \ |
18768 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 18769 | $(HOST_EXPORTS) \ |
b813574b | 18770 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
18771 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
18772 | done; \ | |
b813574b | 18773 | echo "Doing info in sim" ; \ |
b00612cc | 18774 | (cd $(HOST_SUBDIR)/sim && \ |
4fa63067 NN |
18775 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
18776 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18777 | "RANLIB=$${RANLIB}" \ | |
18778 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 18779 | info) \ |
e2b9e2dc NN |
18780 | || exit 1 |
18781 | ||
b813574b | 18782 | @endif sim |
4fa63067 | 18783 | |
b813574b PB |
18784 | .PHONY: maybe-dvi-sim dvi-sim |
18785 | maybe-dvi-sim: | |
18786 | @if sim | |
18787 | maybe-dvi-sim: dvi-sim | |
4fa63067 | 18788 | |
b813574b PB |
18789 | dvi-sim: \ |
18790 | configure-sim | |
18791 | @[ -f ./sim/Makefile ] || exit 0; \ | |
4fa63067 | 18792 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 18793 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 18794 | $(HOST_EXPORTS) \ |
b813574b | 18795 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
18796 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
18797 | done; \ | |
b813574b | 18798 | echo "Doing dvi in sim" ; \ |
b00612cc | 18799 | (cd $(HOST_SUBDIR)/sim && \ |
4fa63067 NN |
18800 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
18801 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18802 | "RANLIB=$${RANLIB}" \ | |
18803 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 18804 | dvi) \ |
4fa63067 | 18805 | || exit 1 |
3866be5d | 18806 | |
b813574b | 18807 | @endif sim |
3866be5d | 18808 | |
6d389afc MS |
18809 | .PHONY: maybe-html-sim html-sim |
18810 | maybe-html-sim: | |
18811 | @if sim | |
18812 | maybe-html-sim: html-sim | |
18813 | ||
18814 | html-sim: \ | |
18815 | configure-sim | |
18816 | @[ -f ./sim/Makefile ] || exit 0; \ | |
18817 | r=`${PWD_COMMAND}`; export r; \ | |
18818 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
18819 | $(HOST_EXPORTS) \ |
18820 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
18821 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
18822 | done; \ | |
18823 | echo "Doing html in sim" ; \ | |
b00612cc | 18824 | (cd $(HOST_SUBDIR)/sim && \ |
6d389afc MS |
18825 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
18826 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18827 | "RANLIB=$${RANLIB}" \ | |
18828 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
18829 | html) \ | |
18830 | || exit 1 | |
18831 | ||
18832 | @endif sim | |
18833 | ||
b813574b PB |
18834 | .PHONY: maybe-TAGS-sim TAGS-sim |
18835 | maybe-TAGS-sim: | |
18836 | @if sim | |
18837 | maybe-TAGS-sim: TAGS-sim | |
4fa63067 | 18838 | |
b813574b PB |
18839 | TAGS-sim: \ |
18840 | configure-sim | |
18841 | @[ -f ./sim/Makefile ] || exit 0; \ | |
4fa63067 | 18842 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 18843 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 18844 | $(HOST_EXPORTS) \ |
b813574b | 18845 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
18846 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
18847 | done; \ | |
b813574b | 18848 | echo "Doing TAGS in sim" ; \ |
b00612cc | 18849 | (cd $(HOST_SUBDIR)/sim && \ |
4fa63067 NN |
18850 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
18851 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18852 | "RANLIB=$${RANLIB}" \ | |
18853 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 18854 | TAGS) \ |
4fa63067 | 18855 | || exit 1 |
3866be5d | 18856 | |
b813574b | 18857 | @endif sim |
3866be5d | 18858 | |
b813574b PB |
18859 | .PHONY: maybe-install-info-sim install-info-sim |
18860 | maybe-install-info-sim: | |
18861 | @if sim | |
18862 | maybe-install-info-sim: install-info-sim | |
4fa63067 | 18863 | |
b813574b PB |
18864 | install-info-sim: \ |
18865 | configure-sim \ | |
18866 | info-sim | |
18867 | @[ -f ./sim/Makefile ] || exit 0; \ | |
4fa63067 NN |
18868 | r=`${PWD_COMMAND}`; export r; \ |
18869 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 18870 | $(HOST_EXPORTS) \ |
b813574b | 18871 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
18872 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
18873 | done; \ | |
b813574b | 18874 | echo "Doing install-info in sim" ; \ |
b00612cc | 18875 | (cd $(HOST_SUBDIR)/sim && \ |
4fa63067 NN |
18876 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
18877 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18878 | "RANLIB=$${RANLIB}" \ | |
18879 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 18880 | install-info) \ |
4fa63067 NN |
18881 | || exit 1 |
18882 | ||
b813574b | 18883 | @endif sim |
4fa63067 | 18884 | |
b813574b PB |
18885 | .PHONY: maybe-installcheck-sim installcheck-sim |
18886 | maybe-installcheck-sim: | |
18887 | @if sim | |
18888 | maybe-installcheck-sim: installcheck-sim | |
4fa63067 | 18889 | |
b813574b PB |
18890 | installcheck-sim: \ |
18891 | configure-sim | |
18892 | @[ -f ./sim/Makefile ] || exit 0; \ | |
4fa63067 NN |
18893 | r=`${PWD_COMMAND}`; export r; \ |
18894 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
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 | 18899 | echo "Doing installcheck in sim" ; \ |
b00612cc | 18900 | (cd $(HOST_SUBDIR)/sim && \ |
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 | installcheck) \ |
4fa63067 NN |
18906 | || exit 1 |
18907 | ||
b813574b | 18908 | @endif sim |
4fa63067 | 18909 | |
b813574b PB |
18910 | .PHONY: maybe-mostlyclean-sim mostlyclean-sim |
18911 | maybe-mostlyclean-sim: | |
18912 | @if sim | |
18913 | maybe-mostlyclean-sim: mostlyclean-sim | |
4fa63067 | 18914 | |
b813574b PB |
18915 | mostlyclean-sim: |
18916 | @[ -f ./sim/Makefile ] || exit 0; \ | |
4fa63067 NN |
18917 | r=`${PWD_COMMAND}`; export r; \ |
18918 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 18919 | $(HOST_EXPORTS) \ |
b813574b | 18920 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
18921 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
18922 | done; \ | |
b813574b | 18923 | echo "Doing mostlyclean in sim" ; \ |
b00612cc | 18924 | (cd $(HOST_SUBDIR)/sim && \ |
4fa63067 NN |
18925 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
18926 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18927 | "RANLIB=$${RANLIB}" \ | |
18928 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 18929 | mostlyclean) \ |
4fa63067 NN |
18930 | || exit 1 |
18931 | ||
b813574b | 18932 | @endif sim |
4fa63067 | 18933 | |
b813574b PB |
18934 | .PHONY: maybe-clean-sim clean-sim |
18935 | maybe-clean-sim: | |
18936 | @if sim | |
18937 | maybe-clean-sim: clean-sim | |
4fa63067 | 18938 | |
b813574b PB |
18939 | clean-sim: |
18940 | @[ -f ./sim/Makefile ] || exit 0; \ | |
4fa63067 NN |
18941 | r=`${PWD_COMMAND}`; export r; \ |
18942 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 18943 | $(HOST_EXPORTS) \ |
b813574b | 18944 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
18945 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
18946 | done; \ | |
b813574b | 18947 | echo "Doing clean in sim" ; \ |
b00612cc | 18948 | (cd $(HOST_SUBDIR)/sim && \ |
4fa63067 NN |
18949 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
18950 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18951 | "RANLIB=$${RANLIB}" \ | |
18952 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 18953 | clean) \ |
4fa63067 NN |
18954 | || exit 1 |
18955 | ||
b813574b | 18956 | @endif sim |
4fa63067 | 18957 | |
b813574b PB |
18958 | .PHONY: maybe-distclean-sim distclean-sim |
18959 | maybe-distclean-sim: | |
18960 | @if sim | |
18961 | maybe-distclean-sim: distclean-sim | |
4fa63067 | 18962 | |
b813574b PB |
18963 | distclean-sim: |
18964 | @[ -f ./sim/Makefile ] || exit 0; \ | |
4fa63067 NN |
18965 | r=`${PWD_COMMAND}`; export r; \ |
18966 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 18967 | $(HOST_EXPORTS) \ |
b813574b | 18968 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
18969 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
18970 | done; \ | |
b813574b | 18971 | echo "Doing distclean in sim" ; \ |
b00612cc | 18972 | (cd $(HOST_SUBDIR)/sim && \ |
4fa63067 NN |
18973 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
18974 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18975 | "RANLIB=$${RANLIB}" \ | |
18976 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 18977 | distclean) \ |
4fa63067 NN |
18978 | || exit 1 |
18979 | ||
b813574b | 18980 | @endif sim |
4fa63067 | 18981 | |
b813574b PB |
18982 | .PHONY: maybe-maintainer-clean-sim maintainer-clean-sim |
18983 | maybe-maintainer-clean-sim: | |
18984 | @if sim | |
18985 | maybe-maintainer-clean-sim: maintainer-clean-sim | |
16ae0395 | 18986 | |
b813574b PB |
18987 | maintainer-clean-sim: |
18988 | @[ -f ./sim/Makefile ] || exit 0; \ | |
4fa63067 | 18989 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 18990 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 18991 | $(HOST_EXPORTS) \ |
b813574b | 18992 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
18993 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
18994 | done; \ | |
b813574b | 18995 | echo "Doing maintainer-clean in sim" ; \ |
b00612cc | 18996 | (cd $(HOST_SUBDIR)/sim && \ |
4fa63067 NN |
18997 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
18998 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18999 | "RANLIB=$${RANLIB}" \ | |
19000 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 19001 | maintainer-clean) \ |
4fa63067 | 19002 | || exit 1 |
3866be5d | 19003 | |
b813574b | 19004 | @endif sim |
3866be5d | 19005 | |
4fa63067 | 19006 | |
a7254363 | 19007 | |
b813574b PB |
19008 | .PHONY: configure-tar maybe-configure-tar |
19009 | maybe-configure-tar: | |
19010 | @if tar | |
19011 | maybe-configure-tar: configure-tar | |
a7254363 | 19012 | configure-tar: |
b00612cc PB |
19013 | @test ! -f $(HOST_SUBDIR)/tar/Makefile || exit 0; \ |
19014 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tar ; \ | |
b40e3958 L |
19015 | r=`${PWD_COMMAND}`; export r; \ |
19016 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 19017 | $(HOST_EXPORTS) \ |
a7254363 PB |
19018 | echo Configuring in $(HOST_SUBDIR)/tar; \ |
19019 | cd "$(HOST_SUBDIR)/tar" || exit 1; \ | |
e2b9e2dc | 19020 | case $(srcdir) in \ |
b00612cc PB |
19021 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
19022 | *) topdir=`echo $(HOST_SUBDIR)/tar/ | \ | |
19023 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 19024 | esac; \ |
b00612cc PB |
19025 | srcdiroption="--srcdir=$${topdir}/tar"; \ |
19026 | libsrcdir="$$s/tar"; \ | |
e2b9e2dc | 19027 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 19028 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 19029 | || exit 1 |
b813574b | 19030 | @endif tar |
e2b9e2dc | 19031 | |
a7254363 PB |
19032 | |
19033 | ||
b813574b PB |
19034 | .PHONY: all-tar maybe-all-tar |
19035 | maybe-all-tar: | |
19036 | @if tar | |
d27cc32e | 19037 | TARGET-tar=all |
b813574b PB |
19038 | maybe-all-tar: all-tar |
19039 | all-tar: configure-tar | |
b40e3958 L |
19040 | @r=`${PWD_COMMAND}`; export r; \ |
19041 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 19042 | $(HOST_EXPORTS) \ |
b00612cc PB |
19043 | (cd $(HOST_SUBDIR)/tar && \ |
19044 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-tar)) | |
b813574b | 19045 | @endif tar |
3866be5d | 19046 | |
a7254363 | 19047 | |
b813574b PB |
19048 | .PHONY: check-tar maybe-check-tar |
19049 | maybe-check-tar: | |
19050 | @if tar | |
19051 | maybe-check-tar: check-tar | |
3866be5d | 19052 | |
b813574b | 19053 | check-tar: |
b40e3958 L |
19054 | @r=`${PWD_COMMAND}`; export r; \ |
19055 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 19056 | $(HOST_EXPORTS) \ |
b00612cc PB |
19057 | (cd $(HOST_SUBDIR)/tar && \ |
19058 | $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d | 19059 | |
b813574b | 19060 | @endif tar |
3866be5d | 19061 | |
b813574b PB |
19062 | .PHONY: install-tar maybe-install-tar |
19063 | maybe-install-tar: | |
19064 | @if tar | |
19065 | maybe-install-tar: install-tar | |
16ae0395 | 19066 | |
b813574b PB |
19067 | install-tar: installdirs |
19068 | @r=`${PWD_COMMAND}`; export r; \ | |
19069 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b813574b | 19070 | $(HOST_EXPORTS) \ |
b00612cc | 19071 | (cd $(HOST_SUBDIR)/tar && \ |
2da12f12 | 19072 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 19073 | |
b813574b | 19074 | @endif tar |
4fa63067 NN |
19075 | |
19076 | # Other targets (info, dvi, etc.) | |
19077 | ||
b813574b PB |
19078 | .PHONY: maybe-info-tar info-tar |
19079 | maybe-info-tar: | |
19080 | @if tar | |
19081 | maybe-info-tar: info-tar | |
4fa63067 | 19082 | |
b813574b PB |
19083 | info-tar: \ |
19084 | configure-tar | |
19085 | @[ -f ./tar/Makefile ] || exit 0; \ | |
4fa63067 | 19086 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 19087 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 19088 | $(HOST_EXPORTS) \ |
b813574b | 19089 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
19090 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
19091 | done; \ | |
b813574b | 19092 | echo "Doing info in tar" ; \ |
b00612cc | 19093 | (cd $(HOST_SUBDIR)/tar && \ |
4fa63067 NN |
19094 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19095 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19096 | "RANLIB=$${RANLIB}" \ | |
19097 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 19098 | info) \ |
4fa63067 NN |
19099 | || exit 1 |
19100 | ||
b813574b | 19101 | @endif tar |
4fa63067 | 19102 | |
b813574b PB |
19103 | .PHONY: maybe-dvi-tar dvi-tar |
19104 | maybe-dvi-tar: | |
19105 | @if tar | |
19106 | maybe-dvi-tar: dvi-tar | |
4fa63067 | 19107 | |
b813574b PB |
19108 | dvi-tar: \ |
19109 | configure-tar | |
19110 | @[ -f ./tar/Makefile ] || exit 0; \ | |
4fa63067 NN |
19111 | r=`${PWD_COMMAND}`; export r; \ |
19112 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 19113 | $(HOST_EXPORTS) \ |
b813574b | 19114 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
19115 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
19116 | done; \ | |
b813574b | 19117 | echo "Doing dvi in tar" ; \ |
b00612cc | 19118 | (cd $(HOST_SUBDIR)/tar && \ |
4fa63067 NN |
19119 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19120 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19121 | "RANLIB=$${RANLIB}" \ | |
19122 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 19123 | dvi) \ |
4fa63067 NN |
19124 | || exit 1 |
19125 | ||
b813574b | 19126 | @endif tar |
4fa63067 | 19127 | |
6d389afc MS |
19128 | .PHONY: maybe-html-tar html-tar |
19129 | maybe-html-tar: | |
19130 | @if tar | |
19131 | maybe-html-tar: html-tar | |
19132 | ||
19133 | html-tar: \ | |
19134 | configure-tar | |
19135 | @[ -f ./tar/Makefile ] || exit 0; \ | |
19136 | r=`${PWD_COMMAND}`; export r; \ | |
19137 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
19138 | $(HOST_EXPORTS) \ |
19139 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
19140 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
19141 | done; \ | |
19142 | echo "Doing html in tar" ; \ | |
b00612cc | 19143 | (cd $(HOST_SUBDIR)/tar && \ |
6d389afc MS |
19144 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19145 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19146 | "RANLIB=$${RANLIB}" \ | |
19147 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
19148 | html) \ | |
19149 | || exit 1 | |
19150 | ||
19151 | @endif tar | |
19152 | ||
b813574b PB |
19153 | .PHONY: maybe-TAGS-tar TAGS-tar |
19154 | maybe-TAGS-tar: | |
19155 | @if tar | |
19156 | maybe-TAGS-tar: TAGS-tar | |
4fa63067 | 19157 | |
b813574b PB |
19158 | TAGS-tar: \ |
19159 | configure-tar | |
19160 | @[ -f ./tar/Makefile ] || exit 0; \ | |
4fa63067 NN |
19161 | r=`${PWD_COMMAND}`; export r; \ |
19162 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 19163 | $(HOST_EXPORTS) \ |
b813574b | 19164 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
19165 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
19166 | done; \ | |
b813574b | 19167 | echo "Doing TAGS in tar" ; \ |
b00612cc | 19168 | (cd $(HOST_SUBDIR)/tar && \ |
4fa63067 NN |
19169 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19170 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19171 | "RANLIB=$${RANLIB}" \ | |
19172 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 19173 | TAGS) \ |
4fa63067 NN |
19174 | || exit 1 |
19175 | ||
b813574b | 19176 | @endif tar |
4fa63067 | 19177 | |
b813574b PB |
19178 | .PHONY: maybe-install-info-tar install-info-tar |
19179 | maybe-install-info-tar: | |
19180 | @if tar | |
19181 | maybe-install-info-tar: install-info-tar | |
4fa63067 | 19182 | |
b813574b PB |
19183 | install-info-tar: \ |
19184 | configure-tar \ | |
19185 | info-tar | |
19186 | @[ -f ./tar/Makefile ] || exit 0; \ | |
4fa63067 NN |
19187 | r=`${PWD_COMMAND}`; export r; \ |
19188 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 19189 | $(HOST_EXPORTS) \ |
b813574b | 19190 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
19191 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
19192 | done; \ | |
b813574b | 19193 | echo "Doing install-info in tar" ; \ |
b00612cc | 19194 | (cd $(HOST_SUBDIR)/tar && \ |
b813574b | 19195 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4fa63067 NN |
19196 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ |
19197 | "RANLIB=$${RANLIB}" \ | |
19198 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 19199 | install-info) \ |
4fa63067 NN |
19200 | || exit 1 |
19201 | ||
b813574b | 19202 | @endif tar |
4fa63067 | 19203 | |
b813574b PB |
19204 | .PHONY: maybe-installcheck-tar installcheck-tar |
19205 | maybe-installcheck-tar: | |
19206 | @if tar | |
19207 | maybe-installcheck-tar: installcheck-tar | |
4fa63067 | 19208 | |
b813574b PB |
19209 | installcheck-tar: \ |
19210 | configure-tar | |
19211 | @[ -f ./tar/Makefile ] || exit 0; \ | |
4fa63067 NN |
19212 | r=`${PWD_COMMAND}`; export r; \ |
19213 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 19214 | $(HOST_EXPORTS) \ |
b813574b | 19215 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
19216 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
19217 | done; \ | |
b813574b | 19218 | echo "Doing installcheck in tar" ; \ |
b00612cc | 19219 | (cd $(HOST_SUBDIR)/tar && \ |
4fa63067 NN |
19220 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19221 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19222 | "RANLIB=$${RANLIB}" \ | |
19223 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 19224 | installcheck) \ |
4fa63067 NN |
19225 | || exit 1 |
19226 | ||
b813574b | 19227 | @endif tar |
4fa63067 | 19228 | |
b813574b PB |
19229 | .PHONY: maybe-mostlyclean-tar mostlyclean-tar |
19230 | maybe-mostlyclean-tar: | |
19231 | @if tar | |
19232 | maybe-mostlyclean-tar: mostlyclean-tar | |
4fa63067 | 19233 | |
b813574b PB |
19234 | mostlyclean-tar: |
19235 | @[ -f ./tar/Makefile ] || exit 0; \ | |
4fa63067 NN |
19236 | r=`${PWD_COMMAND}`; export r; \ |
19237 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 19238 | $(HOST_EXPORTS) \ |
b813574b | 19239 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
19240 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
19241 | done; \ | |
b813574b | 19242 | echo "Doing mostlyclean in tar" ; \ |
b00612cc | 19243 | (cd $(HOST_SUBDIR)/tar && \ |
4fa63067 NN |
19244 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19245 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19246 | "RANLIB=$${RANLIB}" \ | |
19247 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 19248 | mostlyclean) \ |
4fa63067 NN |
19249 | || exit 1 |
19250 | ||
b813574b | 19251 | @endif tar |
4fa63067 | 19252 | |
b813574b PB |
19253 | .PHONY: maybe-clean-tar clean-tar |
19254 | maybe-clean-tar: | |
19255 | @if tar | |
19256 | maybe-clean-tar: clean-tar | |
4fa63067 | 19257 | |
b813574b PB |
19258 | clean-tar: |
19259 | @[ -f ./tar/Makefile ] || exit 0; \ | |
4fa63067 NN |
19260 | r=`${PWD_COMMAND}`; export r; \ |
19261 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 19262 | $(HOST_EXPORTS) \ |
b813574b | 19263 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
19264 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
19265 | done; \ | |
b813574b | 19266 | echo "Doing clean in tar" ; \ |
b00612cc | 19267 | (cd $(HOST_SUBDIR)/tar && \ |
4fa63067 NN |
19268 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19269 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19270 | "RANLIB=$${RANLIB}" \ | |
19271 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 19272 | clean) \ |
4fa63067 NN |
19273 | || exit 1 |
19274 | ||
b813574b | 19275 | @endif tar |
4fa63067 | 19276 | |
b813574b PB |
19277 | .PHONY: maybe-distclean-tar distclean-tar |
19278 | maybe-distclean-tar: | |
19279 | @if tar | |
19280 | maybe-distclean-tar: distclean-tar | |
4fa63067 | 19281 | |
b813574b PB |
19282 | distclean-tar: |
19283 | @[ -f ./tar/Makefile ] || exit 0; \ | |
4fa63067 NN |
19284 | r=`${PWD_COMMAND}`; export r; \ |
19285 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 19286 | $(HOST_EXPORTS) \ |
b813574b | 19287 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
19288 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
19289 | done; \ | |
b813574b | 19290 | echo "Doing distclean in tar" ; \ |
b00612cc | 19291 | (cd $(HOST_SUBDIR)/tar && \ |
4fa63067 NN |
19292 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19293 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19294 | "RANLIB=$${RANLIB}" \ | |
19295 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 19296 | distclean) \ |
4fa63067 NN |
19297 | || exit 1 |
19298 | ||
b813574b | 19299 | @endif tar |
4fa63067 | 19300 | |
b813574b PB |
19301 | .PHONY: maybe-maintainer-clean-tar maintainer-clean-tar |
19302 | maybe-maintainer-clean-tar: | |
19303 | @if tar | |
19304 | maybe-maintainer-clean-tar: maintainer-clean-tar | |
4fa63067 | 19305 | |
b813574b PB |
19306 | maintainer-clean-tar: |
19307 | @[ -f ./tar/Makefile ] || exit 0; \ | |
4fa63067 NN |
19308 | r=`${PWD_COMMAND}`; export r; \ |
19309 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 19310 | $(HOST_EXPORTS) \ |
b813574b | 19311 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
19312 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
19313 | done; \ | |
b813574b | 19314 | echo "Doing maintainer-clean in tar" ; \ |
b00612cc | 19315 | (cd $(HOST_SUBDIR)/tar && \ |
4fa63067 NN |
19316 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19317 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19318 | "RANLIB=$${RANLIB}" \ | |
19319 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 19320 | maintainer-clean) \ |
4fa63067 | 19321 | || exit 1 |
3866be5d | 19322 | |
b813574b | 19323 | @endif tar |
3866be5d | 19324 | |
4fa63067 | 19325 | |
a7254363 | 19326 | |
b813574b PB |
19327 | .PHONY: configure-texinfo maybe-configure-texinfo |
19328 | maybe-configure-texinfo: | |
19329 | @if texinfo | |
19330 | maybe-configure-texinfo: configure-texinfo | |
a7254363 | 19331 | configure-texinfo: |
b00612cc PB |
19332 | @test ! -f $(HOST_SUBDIR)/texinfo/Makefile || exit 0; \ |
19333 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/texinfo ; \ | |
378fce5b DD |
19334 | r=`${PWD_COMMAND}`; export r; \ |
19335 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
19336 | $(HOST_EXPORTS) \ | |
a7254363 PB |
19337 | echo Configuring in $(HOST_SUBDIR)/texinfo; \ |
19338 | cd "$(HOST_SUBDIR)/texinfo" || exit 1; \ | |
e2b9e2dc | 19339 | case $(srcdir) in \ |
b00612cc PB |
19340 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
19341 | *) topdir=`echo $(HOST_SUBDIR)/texinfo/ | \ | |
19342 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 19343 | esac; \ |
b00612cc PB |
19344 | srcdiroption="--srcdir=$${topdir}/texinfo"; \ |
19345 | libsrcdir="$$s/texinfo"; \ | |
e2b9e2dc | 19346 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 19347 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 19348 | || exit 1 |
b813574b | 19349 | @endif texinfo |
e2b9e2dc | 19350 | |
a7254363 PB |
19351 | |
19352 | ||
b813574b PB |
19353 | .PHONY: all-texinfo maybe-all-texinfo |
19354 | maybe-all-texinfo: | |
19355 | @if texinfo | |
d27cc32e | 19356 | TARGET-texinfo=all |
b813574b PB |
19357 | maybe-all-texinfo: all-texinfo |
19358 | all-texinfo: configure-texinfo | |
b40e3958 L |
19359 | @r=`${PWD_COMMAND}`; export r; \ |
19360 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 19361 | $(HOST_EXPORTS) \ |
b00612cc PB |
19362 | (cd $(HOST_SUBDIR)/texinfo && \ |
19363 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-texinfo)) | |
b813574b | 19364 | @endif texinfo |
3866be5d | 19365 | |
a7254363 | 19366 | |
b813574b PB |
19367 | .PHONY: check-texinfo maybe-check-texinfo |
19368 | maybe-check-texinfo: | |
19369 | @if texinfo | |
19370 | maybe-check-texinfo: check-texinfo | |
3866be5d | 19371 | |
b813574b | 19372 | check-texinfo: |
4fa63067 NN |
19373 | @r=`${PWD_COMMAND}`; export r; \ |
19374 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 19375 | $(HOST_EXPORTS) \ |
b00612cc PB |
19376 | (cd $(HOST_SUBDIR)/texinfo && \ |
19377 | $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d | 19378 | |
b813574b | 19379 | @endif texinfo |
3866be5d | 19380 | |
b813574b PB |
19381 | .PHONY: install-texinfo maybe-install-texinfo |
19382 | maybe-install-texinfo: | |
19383 | @if texinfo | |
19384 | maybe-install-texinfo: install-texinfo | |
16ae0395 | 19385 | |
b813574b | 19386 | install-texinfo: |
3866be5d | 19387 | |
b813574b | 19388 | @endif texinfo |
3866be5d | 19389 | |
4fa63067 NN |
19390 | # Other targets (info, dvi, etc.) |
19391 | ||
b813574b PB |
19392 | .PHONY: maybe-info-texinfo info-texinfo |
19393 | maybe-info-texinfo: | |
19394 | @if texinfo | |
19395 | maybe-info-texinfo: info-texinfo | |
4fa63067 | 19396 | |
b813574b PB |
19397 | info-texinfo: \ |
19398 | configure-texinfo | |
19399 | @[ -f ./texinfo/Makefile ] || exit 0; \ | |
4fa63067 NN |
19400 | r=`${PWD_COMMAND}`; export r; \ |
19401 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
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 | 19406 | echo "Doing info in texinfo" ; \ |
b00612cc | 19407 | (cd $(HOST_SUBDIR)/texinfo && \ |
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 | info) \ |
4fa63067 NN |
19413 | || exit 1 |
19414 | ||
b813574b | 19415 | @endif texinfo |
4fa63067 | 19416 | |
b813574b PB |
19417 | .PHONY: maybe-dvi-texinfo dvi-texinfo |
19418 | maybe-dvi-texinfo: | |
19419 | @if texinfo | |
19420 | maybe-dvi-texinfo: dvi-texinfo | |
4fa63067 | 19421 | |
b813574b PB |
19422 | dvi-texinfo: \ |
19423 | configure-texinfo | |
19424 | @[ -f ./texinfo/Makefile ] || exit 0; \ | |
4fa63067 NN |
19425 | r=`${PWD_COMMAND}`; export r; \ |
19426 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 19427 | $(HOST_EXPORTS) \ |
b813574b | 19428 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
19429 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
19430 | done; \ | |
b813574b | 19431 | echo "Doing dvi in texinfo" ; \ |
b00612cc | 19432 | (cd $(HOST_SUBDIR)/texinfo && \ |
4fa63067 NN |
19433 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19434 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19435 | "RANLIB=$${RANLIB}" \ | |
19436 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 19437 | dvi) \ |
4fa63067 NN |
19438 | || exit 1 |
19439 | ||
b813574b | 19440 | @endif texinfo |
4fa63067 | 19441 | |
6d389afc MS |
19442 | .PHONY: maybe-html-texinfo html-texinfo |
19443 | maybe-html-texinfo: | |
19444 | @if texinfo | |
19445 | maybe-html-texinfo: html-texinfo | |
19446 | ||
19447 | html-texinfo: \ | |
19448 | configure-texinfo | |
19449 | @[ -f ./texinfo/Makefile ] || exit 0; \ | |
19450 | r=`${PWD_COMMAND}`; export r; \ | |
19451 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
19452 | $(HOST_EXPORTS) \ |
19453 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
19454 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
19455 | done; \ | |
19456 | echo "Doing html in texinfo" ; \ | |
b00612cc | 19457 | (cd $(HOST_SUBDIR)/texinfo && \ |
6d389afc MS |
19458 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19459 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19460 | "RANLIB=$${RANLIB}" \ | |
19461 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
19462 | html) \ | |
19463 | || exit 1 | |
19464 | ||
19465 | @endif texinfo | |
19466 | ||
b813574b PB |
19467 | .PHONY: maybe-TAGS-texinfo TAGS-texinfo |
19468 | maybe-TAGS-texinfo: | |
19469 | @if texinfo | |
19470 | maybe-TAGS-texinfo: TAGS-texinfo | |
4fa63067 | 19471 | |
b813574b PB |
19472 | TAGS-texinfo: \ |
19473 | configure-texinfo | |
19474 | @[ -f ./texinfo/Makefile ] || exit 0; \ | |
4fa63067 NN |
19475 | r=`${PWD_COMMAND}`; export r; \ |
19476 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 19477 | $(HOST_EXPORTS) \ |
b813574b | 19478 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
19479 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
19480 | done; \ | |
b813574b | 19481 | echo "Doing TAGS in texinfo" ; \ |
b00612cc | 19482 | (cd $(HOST_SUBDIR)/texinfo && \ |
4fa63067 NN |
19483 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19484 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19485 | "RANLIB=$${RANLIB}" \ | |
19486 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 19487 | TAGS) \ |
4fa63067 NN |
19488 | || exit 1 |
19489 | ||
b813574b | 19490 | @endif texinfo |
4fa63067 | 19491 | |
b813574b PB |
19492 | .PHONY: maybe-install-info-texinfo install-info-texinfo |
19493 | maybe-install-info-texinfo: | |
19494 | @if texinfo | |
19495 | maybe-install-info-texinfo: install-info-texinfo | |
4fa63067 | 19496 | |
b813574b PB |
19497 | install-info-texinfo: \ |
19498 | configure-texinfo \ | |
19499 | info-texinfo | |
19500 | @[ -f ./texinfo/Makefile ] || exit 0; \ | |
4fa63067 NN |
19501 | r=`${PWD_COMMAND}`; export r; \ |
19502 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 19503 | $(HOST_EXPORTS) \ |
b813574b | 19504 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
19505 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
19506 | done; \ | |
b813574b | 19507 | echo "Doing install-info in texinfo" ; \ |
b00612cc | 19508 | (cd $(HOST_SUBDIR)/texinfo && \ |
4fa63067 NN |
19509 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19510 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19511 | "RANLIB=$${RANLIB}" \ | |
19512 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 19513 | install-info) \ |
4fa63067 NN |
19514 | || exit 1 |
19515 | ||
b813574b | 19516 | @endif texinfo |
4fa63067 | 19517 | |
b813574b PB |
19518 | .PHONY: maybe-installcheck-texinfo installcheck-texinfo |
19519 | maybe-installcheck-texinfo: | |
19520 | @if texinfo | |
19521 | maybe-installcheck-texinfo: installcheck-texinfo | |
4fa63067 | 19522 | |
b813574b PB |
19523 | installcheck-texinfo: \ |
19524 | configure-texinfo | |
19525 | @[ -f ./texinfo/Makefile ] || exit 0; \ | |
4fa63067 NN |
19526 | r=`${PWD_COMMAND}`; export r; \ |
19527 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 19528 | $(HOST_EXPORTS) \ |
b813574b | 19529 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
19530 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
19531 | done; \ | |
b813574b | 19532 | echo "Doing installcheck in texinfo" ; \ |
b00612cc | 19533 | (cd $(HOST_SUBDIR)/texinfo && \ |
4fa63067 NN |
19534 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19535 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19536 | "RANLIB=$${RANLIB}" \ | |
19537 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 19538 | installcheck) \ |
4fa63067 NN |
19539 | || exit 1 |
19540 | ||
b813574b | 19541 | @endif texinfo |
4fa63067 | 19542 | |
b813574b PB |
19543 | .PHONY: maybe-mostlyclean-texinfo mostlyclean-texinfo |
19544 | maybe-mostlyclean-texinfo: | |
19545 | @if texinfo | |
19546 | maybe-mostlyclean-texinfo: mostlyclean-texinfo | |
4fa63067 | 19547 | |
b813574b PB |
19548 | mostlyclean-texinfo: |
19549 | @[ -f ./texinfo/Makefile ] || exit 0; \ | |
4fa63067 NN |
19550 | r=`${PWD_COMMAND}`; export r; \ |
19551 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 19552 | $(HOST_EXPORTS) \ |
b813574b | 19553 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
19554 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
19555 | done; \ | |
b813574b | 19556 | echo "Doing mostlyclean in texinfo" ; \ |
b00612cc | 19557 | (cd $(HOST_SUBDIR)/texinfo && \ |
4fa63067 NN |
19558 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19559 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19560 | "RANLIB=$${RANLIB}" \ | |
19561 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 19562 | mostlyclean) \ |
4fa63067 NN |
19563 | || exit 1 |
19564 | ||
b813574b | 19565 | @endif texinfo |
4fa63067 | 19566 | |
b813574b PB |
19567 | .PHONY: maybe-clean-texinfo clean-texinfo |
19568 | maybe-clean-texinfo: | |
19569 | @if texinfo | |
19570 | maybe-clean-texinfo: clean-texinfo | |
4fa63067 | 19571 | |
b813574b PB |
19572 | clean-texinfo: |
19573 | @[ -f ./texinfo/Makefile ] || exit 0; \ | |
4fa63067 NN |
19574 | r=`${PWD_COMMAND}`; export r; \ |
19575 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 19576 | $(HOST_EXPORTS) \ |
b813574b | 19577 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
19578 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
19579 | done; \ | |
b813574b | 19580 | echo "Doing clean in texinfo" ; \ |
b00612cc | 19581 | (cd $(HOST_SUBDIR)/texinfo && \ |
4fa63067 NN |
19582 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19583 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19584 | "RANLIB=$${RANLIB}" \ | |
19585 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 19586 | clean) \ |
4fa63067 NN |
19587 | || exit 1 |
19588 | ||
b813574b | 19589 | @endif texinfo |
4fa63067 | 19590 | |
b813574b PB |
19591 | .PHONY: maybe-distclean-texinfo distclean-texinfo |
19592 | maybe-distclean-texinfo: | |
19593 | @if texinfo | |
19594 | maybe-distclean-texinfo: distclean-texinfo | |
4fa63067 | 19595 | |
b813574b PB |
19596 | distclean-texinfo: |
19597 | @[ -f ./texinfo/Makefile ] || exit 0; \ | |
4fa63067 NN |
19598 | r=`${PWD_COMMAND}`; export r; \ |
19599 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 19600 | $(HOST_EXPORTS) \ |
b813574b | 19601 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
19602 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
19603 | done; \ | |
b813574b | 19604 | echo "Doing distclean in texinfo" ; \ |
b00612cc | 19605 | (cd $(HOST_SUBDIR)/texinfo && \ |
4fa63067 NN |
19606 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19607 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19608 | "RANLIB=$${RANLIB}" \ | |
19609 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 19610 | distclean) \ |
4fa63067 NN |
19611 | || exit 1 |
19612 | ||
b813574b | 19613 | @endif texinfo |
4fa63067 | 19614 | |
b813574b PB |
19615 | .PHONY: maybe-maintainer-clean-texinfo maintainer-clean-texinfo |
19616 | maybe-maintainer-clean-texinfo: | |
19617 | @if texinfo | |
19618 | maybe-maintainer-clean-texinfo: maintainer-clean-texinfo | |
4fa63067 | 19619 | |
b813574b PB |
19620 | maintainer-clean-texinfo: |
19621 | @[ -f ./texinfo/Makefile ] || exit 0; \ | |
4fa63067 NN |
19622 | r=`${PWD_COMMAND}`; export r; \ |
19623 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 19624 | $(HOST_EXPORTS) \ |
b813574b | 19625 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
19626 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
19627 | done; \ | |
b813574b | 19628 | echo "Doing maintainer-clean in texinfo" ; \ |
b00612cc | 19629 | (cd $(HOST_SUBDIR)/texinfo && \ |
4fa63067 NN |
19630 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19631 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19632 | "RANLIB=$${RANLIB}" \ | |
19633 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 19634 | maintainer-clean) \ |
4fa63067 NN |
19635 | || exit 1 |
19636 | ||
b813574b | 19637 | @endif texinfo |
4fa63067 NN |
19638 | |
19639 | ||
a7254363 | 19640 | |
b813574b PB |
19641 | .PHONY: configure-textutils maybe-configure-textutils |
19642 | maybe-configure-textutils: | |
19643 | @if textutils | |
19644 | maybe-configure-textutils: configure-textutils | |
a7254363 | 19645 | configure-textutils: |
b00612cc PB |
19646 | @test ! -f $(HOST_SUBDIR)/textutils/Makefile || exit 0; \ |
19647 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/textutils ; \ | |
b40e3958 L |
19648 | r=`${PWD_COMMAND}`; export r; \ |
19649 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 19650 | $(HOST_EXPORTS) \ |
a7254363 PB |
19651 | echo Configuring in $(HOST_SUBDIR)/textutils; \ |
19652 | cd "$(HOST_SUBDIR)/textutils" || exit 1; \ | |
e2b9e2dc | 19653 | case $(srcdir) in \ |
b00612cc PB |
19654 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
19655 | *) topdir=`echo $(HOST_SUBDIR)/textutils/ | \ | |
19656 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 19657 | esac; \ |
b00612cc PB |
19658 | srcdiroption="--srcdir=$${topdir}/textutils"; \ |
19659 | libsrcdir="$$s/textutils"; \ | |
e2b9e2dc | 19660 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 19661 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 19662 | || exit 1 |
b813574b | 19663 | @endif textutils |
e2b9e2dc | 19664 | |
a7254363 PB |
19665 | |
19666 | ||
b813574b PB |
19667 | .PHONY: all-textutils maybe-all-textutils |
19668 | maybe-all-textutils: | |
19669 | @if textutils | |
d27cc32e | 19670 | TARGET-textutils=all |
b813574b PB |
19671 | maybe-all-textutils: all-textutils |
19672 | all-textutils: configure-textutils | |
b40e3958 L |
19673 | @r=`${PWD_COMMAND}`; export r; \ |
19674 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 19675 | $(HOST_EXPORTS) \ |
b00612cc PB |
19676 | (cd $(HOST_SUBDIR)/textutils && \ |
19677 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-textutils)) | |
b813574b | 19678 | @endif textutils |
3866be5d | 19679 | |
a7254363 | 19680 | |
b813574b PB |
19681 | .PHONY: check-textutils maybe-check-textutils |
19682 | maybe-check-textutils: | |
19683 | @if textutils | |
19684 | maybe-check-textutils: check-textutils | |
3866be5d | 19685 | |
b813574b | 19686 | check-textutils: |
b40e3958 L |
19687 | @r=`${PWD_COMMAND}`; export r; \ |
19688 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 19689 | $(HOST_EXPORTS) \ |
b00612cc PB |
19690 | (cd $(HOST_SUBDIR)/textutils && \ |
19691 | $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d | 19692 | |
b813574b | 19693 | @endif textutils |
3866be5d | 19694 | |
b813574b PB |
19695 | .PHONY: install-textutils maybe-install-textutils |
19696 | maybe-install-textutils: | |
19697 | @if textutils | |
19698 | maybe-install-textutils: install-textutils | |
16ae0395 | 19699 | |
b813574b | 19700 | install-textutils: installdirs |
b40e3958 L |
19701 | @r=`${PWD_COMMAND}`; export r; \ |
19702 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 19703 | $(HOST_EXPORTS) \ |
b00612cc | 19704 | (cd $(HOST_SUBDIR)/textutils && \ |
2da12f12 | 19705 | $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d | 19706 | |
b813574b | 19707 | @endif textutils |
3866be5d | 19708 | |
4fa63067 NN |
19709 | # Other targets (info, dvi, etc.) |
19710 | ||
b813574b PB |
19711 | .PHONY: maybe-info-textutils info-textutils |
19712 | maybe-info-textutils: | |
19713 | @if textutils | |
19714 | maybe-info-textutils: info-textutils | |
4fa63067 | 19715 | |
b813574b PB |
19716 | info-textutils: \ |
19717 | configure-textutils | |
19718 | @[ -f ./textutils/Makefile ] || exit 0; \ | |
b40e3958 L |
19719 | r=`${PWD_COMMAND}`; export r; \ |
19720 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 19721 | $(HOST_EXPORTS) \ |
b813574b | 19722 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
19723 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
19724 | done; \ | |
b813574b | 19725 | echo "Doing info in textutils" ; \ |
b00612cc | 19726 | (cd $(HOST_SUBDIR)/textutils && \ |
4fa63067 NN |
19727 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19728 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19729 | "RANLIB=$${RANLIB}" \ | |
19730 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 19731 | info) \ |
e2b9e2dc NN |
19732 | || exit 1 |
19733 | ||
b813574b | 19734 | @endif textutils |
4fa63067 | 19735 | |
b813574b PB |
19736 | .PHONY: maybe-dvi-textutils dvi-textutils |
19737 | maybe-dvi-textutils: | |
19738 | @if textutils | |
19739 | maybe-dvi-textutils: dvi-textutils | |
4fa63067 | 19740 | |
b813574b PB |
19741 | dvi-textutils: \ |
19742 | configure-textutils | |
19743 | @[ -f ./textutils/Makefile ] || exit 0; \ | |
4fa63067 | 19744 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 19745 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 19746 | $(HOST_EXPORTS) \ |
b813574b | 19747 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
19748 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
19749 | done; \ | |
b813574b | 19750 | echo "Doing dvi in textutils" ; \ |
b00612cc | 19751 | (cd $(HOST_SUBDIR)/textutils && \ |
4fa63067 NN |
19752 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19753 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19754 | "RANLIB=$${RANLIB}" \ | |
19755 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 19756 | dvi) \ |
4fa63067 | 19757 | || exit 1 |
3866be5d | 19758 | |
b813574b | 19759 | @endif textutils |
3866be5d | 19760 | |
6d389afc MS |
19761 | .PHONY: maybe-html-textutils html-textutils |
19762 | maybe-html-textutils: | |
19763 | @if textutils | |
19764 | maybe-html-textutils: html-textutils | |
19765 | ||
19766 | html-textutils: \ | |
19767 | configure-textutils | |
19768 | @[ -f ./textutils/Makefile ] || exit 0; \ | |
19769 | r=`${PWD_COMMAND}`; export r; \ | |
19770 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
19771 | $(HOST_EXPORTS) \ |
19772 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
19773 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
19774 | done; \ | |
19775 | echo "Doing html in textutils" ; \ | |
b00612cc | 19776 | (cd $(HOST_SUBDIR)/textutils && \ |
6d389afc MS |
19777 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19778 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19779 | "RANLIB=$${RANLIB}" \ | |
19780 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
19781 | html) \ | |
19782 | || exit 1 | |
19783 | ||
19784 | @endif textutils | |
19785 | ||
b813574b PB |
19786 | .PHONY: maybe-TAGS-textutils TAGS-textutils |
19787 | maybe-TAGS-textutils: | |
19788 | @if textutils | |
19789 | maybe-TAGS-textutils: TAGS-textutils | |
4fa63067 | 19790 | |
b813574b PB |
19791 | TAGS-textutils: \ |
19792 | configure-textutils | |
19793 | @[ -f ./textutils/Makefile ] || exit 0; \ | |
4fa63067 | 19794 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 19795 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 19796 | $(HOST_EXPORTS) \ |
b813574b | 19797 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
19798 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
19799 | done; \ | |
b813574b | 19800 | echo "Doing TAGS in textutils" ; \ |
b00612cc | 19801 | (cd $(HOST_SUBDIR)/textutils && \ |
4fa63067 NN |
19802 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19803 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19804 | "RANLIB=$${RANLIB}" \ | |
19805 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 19806 | TAGS) \ |
4fa63067 | 19807 | || exit 1 |
3866be5d | 19808 | |
b813574b | 19809 | @endif textutils |
3866be5d | 19810 | |
b813574b PB |
19811 | .PHONY: maybe-install-info-textutils install-info-textutils |
19812 | maybe-install-info-textutils: | |
19813 | @if textutils | |
19814 | maybe-install-info-textutils: install-info-textutils | |
4fa63067 | 19815 | |
b813574b PB |
19816 | install-info-textutils: \ |
19817 | configure-textutils \ | |
19818 | info-textutils | |
19819 | @[ -f ./textutils/Makefile ] || exit 0; \ | |
4fa63067 NN |
19820 | r=`${PWD_COMMAND}`; export r; \ |
19821 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 19822 | $(HOST_EXPORTS) \ |
b813574b | 19823 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
19824 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
19825 | done; \ | |
b813574b | 19826 | echo "Doing install-info in textutils" ; \ |
b00612cc | 19827 | (cd $(HOST_SUBDIR)/textutils && \ |
4fa63067 NN |
19828 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19829 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19830 | "RANLIB=$${RANLIB}" \ | |
19831 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 19832 | install-info) \ |
4fa63067 NN |
19833 | || exit 1 |
19834 | ||
b813574b | 19835 | @endif textutils |
4fa63067 | 19836 | |
b813574b PB |
19837 | .PHONY: maybe-installcheck-textutils installcheck-textutils |
19838 | maybe-installcheck-textutils: | |
19839 | @if textutils | |
19840 | maybe-installcheck-textutils: installcheck-textutils | |
4fa63067 | 19841 | |
b813574b PB |
19842 | installcheck-textutils: \ |
19843 | configure-textutils | |
19844 | @[ -f ./textutils/Makefile ] || exit 0; \ | |
4fa63067 NN |
19845 | r=`${PWD_COMMAND}`; export r; \ |
19846 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 19847 | $(HOST_EXPORTS) \ |
b813574b | 19848 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
19849 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
19850 | done; \ | |
b813574b | 19851 | echo "Doing installcheck in textutils" ; \ |
b00612cc | 19852 | (cd $(HOST_SUBDIR)/textutils && \ |
4fa63067 NN |
19853 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19854 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19855 | "RANLIB=$${RANLIB}" \ | |
19856 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 19857 | installcheck) \ |
4fa63067 NN |
19858 | || exit 1 |
19859 | ||
b813574b | 19860 | @endif textutils |
4fa63067 | 19861 | |
b813574b PB |
19862 | .PHONY: maybe-mostlyclean-textutils mostlyclean-textutils |
19863 | maybe-mostlyclean-textutils: | |
19864 | @if textutils | |
19865 | maybe-mostlyclean-textutils: mostlyclean-textutils | |
4fa63067 | 19866 | |
b813574b PB |
19867 | mostlyclean-textutils: |
19868 | @[ -f ./textutils/Makefile ] || exit 0; \ | |
4fa63067 NN |
19869 | r=`${PWD_COMMAND}`; export r; \ |
19870 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 19871 | $(HOST_EXPORTS) \ |
b813574b | 19872 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
19873 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
19874 | done; \ | |
b813574b | 19875 | echo "Doing mostlyclean in textutils" ; \ |
b00612cc | 19876 | (cd $(HOST_SUBDIR)/textutils && \ |
4fa63067 NN |
19877 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19878 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19879 | "RANLIB=$${RANLIB}" \ | |
19880 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 19881 | mostlyclean) \ |
4fa63067 NN |
19882 | || exit 1 |
19883 | ||
b813574b | 19884 | @endif textutils |
4fa63067 | 19885 | |
b813574b PB |
19886 | .PHONY: maybe-clean-textutils clean-textutils |
19887 | maybe-clean-textutils: | |
19888 | @if textutils | |
19889 | maybe-clean-textutils: clean-textutils | |
4fa63067 | 19890 | |
b813574b PB |
19891 | clean-textutils: |
19892 | @[ -f ./textutils/Makefile ] || exit 0; \ | |
4fa63067 NN |
19893 | r=`${PWD_COMMAND}`; export r; \ |
19894 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 19895 | $(HOST_EXPORTS) \ |
b813574b | 19896 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
19897 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
19898 | done; \ | |
b813574b | 19899 | echo "Doing clean in textutils" ; \ |
b00612cc | 19900 | (cd $(HOST_SUBDIR)/textutils && \ |
4fa63067 NN |
19901 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19902 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19903 | "RANLIB=$${RANLIB}" \ | |
19904 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 19905 | clean) \ |
4fa63067 NN |
19906 | || exit 1 |
19907 | ||
b813574b | 19908 | @endif textutils |
4fa63067 | 19909 | |
b813574b PB |
19910 | .PHONY: maybe-distclean-textutils distclean-textutils |
19911 | maybe-distclean-textutils: | |
19912 | @if textutils | |
19913 | maybe-distclean-textutils: distclean-textutils | |
4fa63067 | 19914 | |
b813574b PB |
19915 | distclean-textutils: |
19916 | @[ -f ./textutils/Makefile ] || exit 0; \ | |
4fa63067 NN |
19917 | r=`${PWD_COMMAND}`; export r; \ |
19918 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 19919 | $(HOST_EXPORTS) \ |
b813574b | 19920 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
19921 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
19922 | done; \ | |
b813574b | 19923 | echo "Doing distclean in textutils" ; \ |
b00612cc | 19924 | (cd $(HOST_SUBDIR)/textutils && \ |
4fa63067 NN |
19925 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19926 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19927 | "RANLIB=$${RANLIB}" \ | |
19928 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 19929 | distclean) \ |
4fa63067 NN |
19930 | || exit 1 |
19931 | ||
b813574b | 19932 | @endif textutils |
4fa63067 | 19933 | |
b813574b PB |
19934 | .PHONY: maybe-maintainer-clean-textutils maintainer-clean-textutils |
19935 | maybe-maintainer-clean-textutils: | |
19936 | @if textutils | |
19937 | maybe-maintainer-clean-textutils: maintainer-clean-textutils | |
16ae0395 | 19938 | |
b813574b PB |
19939 | maintainer-clean-textutils: |
19940 | @[ -f ./textutils/Makefile ] || exit 0; \ | |
4fa63067 | 19941 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 19942 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 19943 | $(HOST_EXPORTS) \ |
b813574b | 19944 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
19945 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
19946 | done; \ | |
b813574b | 19947 | echo "Doing maintainer-clean in textutils" ; \ |
b00612cc | 19948 | (cd $(HOST_SUBDIR)/textutils && \ |
4fa63067 NN |
19949 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19950 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19951 | "RANLIB=$${RANLIB}" \ | |
19952 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 19953 | maintainer-clean) \ |
4fa63067 | 19954 | || exit 1 |
3866be5d | 19955 | |
b813574b | 19956 | @endif textutils |
3866be5d | 19957 | |
4fa63067 | 19958 | |
a7254363 | 19959 | |
b813574b PB |
19960 | .PHONY: configure-time maybe-configure-time |
19961 | maybe-configure-time: | |
19962 | @if time | |
19963 | maybe-configure-time: configure-time | |
a7254363 | 19964 | configure-time: |
b00612cc PB |
19965 | @test ! -f $(HOST_SUBDIR)/time/Makefile || exit 0; \ |
19966 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/time ; \ | |
b40e3958 L |
19967 | r=`${PWD_COMMAND}`; export r; \ |
19968 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 19969 | $(HOST_EXPORTS) \ |
a7254363 PB |
19970 | echo Configuring in $(HOST_SUBDIR)/time; \ |
19971 | cd "$(HOST_SUBDIR)/time" || exit 1; \ | |
e2b9e2dc | 19972 | case $(srcdir) in \ |
b00612cc PB |
19973 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
19974 | *) topdir=`echo $(HOST_SUBDIR)/time/ | \ | |
19975 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 19976 | esac; \ |
b00612cc PB |
19977 | srcdiroption="--srcdir=$${topdir}/time"; \ |
19978 | libsrcdir="$$s/time"; \ | |
e2b9e2dc | 19979 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 19980 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 19981 | || exit 1 |
b813574b | 19982 | @endif time |
e2b9e2dc | 19983 | |
a7254363 PB |
19984 | |
19985 | ||
b813574b PB |
19986 | .PHONY: all-time maybe-all-time |
19987 | maybe-all-time: | |
19988 | @if time | |
d27cc32e | 19989 | TARGET-time=all |
b813574b PB |
19990 | maybe-all-time: all-time |
19991 | all-time: configure-time | |
b40e3958 L |
19992 | @r=`${PWD_COMMAND}`; export r; \ |
19993 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 19994 | $(HOST_EXPORTS) \ |
b00612cc PB |
19995 | (cd $(HOST_SUBDIR)/time && \ |
19996 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-time)) | |
b813574b | 19997 | @endif time |
3866be5d | 19998 | |
a7254363 | 19999 | |
b813574b PB |
20000 | .PHONY: check-time maybe-check-time |
20001 | maybe-check-time: | |
20002 | @if time | |
20003 | maybe-check-time: check-time | |
3866be5d | 20004 | |
b813574b | 20005 | check-time: |
b40e3958 L |
20006 | @r=`${PWD_COMMAND}`; export r; \ |
20007 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20008 | $(HOST_EXPORTS) \ |
b00612cc PB |
20009 | (cd $(HOST_SUBDIR)/time && \ |
20010 | $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d | 20011 | |
b813574b | 20012 | @endif time |
3866be5d | 20013 | |
b813574b PB |
20014 | .PHONY: install-time maybe-install-time |
20015 | maybe-install-time: | |
20016 | @if time | |
20017 | maybe-install-time: install-time | |
4fa63067 | 20018 | |
b813574b | 20019 | install-time: installdirs |
4fa63067 NN |
20020 | @r=`${PWD_COMMAND}`; export r; \ |
20021 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20022 | $(HOST_EXPORTS) \ |
b00612cc | 20023 | (cd $(HOST_SUBDIR)/time && \ |
2da12f12 | 20024 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 20025 | |
b813574b | 20026 | @endif time |
4fa63067 NN |
20027 | |
20028 | # Other targets (info, dvi, etc.) | |
20029 | ||
b813574b PB |
20030 | .PHONY: maybe-info-time info-time |
20031 | maybe-info-time: | |
20032 | @if time | |
20033 | maybe-info-time: info-time | |
4fa63067 | 20034 | |
b813574b PB |
20035 | info-time: \ |
20036 | configure-time | |
20037 | @[ -f ./time/Makefile ] || exit 0; \ | |
4fa63067 NN |
20038 | r=`${PWD_COMMAND}`; export r; \ |
20039 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20040 | $(HOST_EXPORTS) \ |
b813574b | 20041 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
20042 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20043 | done; \ | |
b813574b | 20044 | echo "Doing info in time" ; \ |
b00612cc | 20045 | (cd $(HOST_SUBDIR)/time && \ |
4fa63067 NN |
20046 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20047 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20048 | "RANLIB=$${RANLIB}" \ | |
20049 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 20050 | info) \ |
4fa63067 NN |
20051 | || exit 1 |
20052 | ||
b813574b | 20053 | @endif time |
4fa63067 | 20054 | |
b813574b PB |
20055 | .PHONY: maybe-dvi-time dvi-time |
20056 | maybe-dvi-time: | |
20057 | @if time | |
20058 | maybe-dvi-time: dvi-time | |
4fa63067 | 20059 | |
b813574b PB |
20060 | dvi-time: \ |
20061 | configure-time | |
20062 | @[ -f ./time/Makefile ] || exit 0; \ | |
4fa63067 NN |
20063 | r=`${PWD_COMMAND}`; export r; \ |
20064 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20065 | $(HOST_EXPORTS) \ |
b813574b | 20066 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
20067 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20068 | done; \ | |
b813574b | 20069 | echo "Doing dvi in time" ; \ |
b00612cc | 20070 | (cd $(HOST_SUBDIR)/time && \ |
4fa63067 NN |
20071 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20072 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20073 | "RANLIB=$${RANLIB}" \ | |
20074 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 20075 | dvi) \ |
4fa63067 NN |
20076 | || exit 1 |
20077 | ||
b813574b | 20078 | @endif time |
4fa63067 | 20079 | |
6d389afc MS |
20080 | .PHONY: maybe-html-time html-time |
20081 | maybe-html-time: | |
20082 | @if time | |
20083 | maybe-html-time: html-time | |
20084 | ||
20085 | html-time: \ | |
20086 | configure-time | |
20087 | @[ -f ./time/Makefile ] || exit 0; \ | |
20088 | r=`${PWD_COMMAND}`; export r; \ | |
20089 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
20090 | $(HOST_EXPORTS) \ |
20091 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
20092 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
20093 | done; \ | |
20094 | echo "Doing html in time" ; \ | |
b00612cc | 20095 | (cd $(HOST_SUBDIR)/time && \ |
6d389afc MS |
20096 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20097 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20098 | "RANLIB=$${RANLIB}" \ | |
20099 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
20100 | html) \ | |
20101 | || exit 1 | |
20102 | ||
20103 | @endif time | |
20104 | ||
b813574b PB |
20105 | .PHONY: maybe-TAGS-time TAGS-time |
20106 | maybe-TAGS-time: | |
20107 | @if time | |
20108 | maybe-TAGS-time: TAGS-time | |
4fa63067 | 20109 | |
b813574b PB |
20110 | TAGS-time: \ |
20111 | configure-time | |
20112 | @[ -f ./time/Makefile ] || exit 0; \ | |
4fa63067 NN |
20113 | r=`${PWD_COMMAND}`; export r; \ |
20114 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20115 | $(HOST_EXPORTS) \ |
b813574b | 20116 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
20117 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20118 | done; \ | |
b813574b | 20119 | echo "Doing TAGS in time" ; \ |
b00612cc | 20120 | (cd $(HOST_SUBDIR)/time && \ |
4fa63067 NN |
20121 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20122 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20123 | "RANLIB=$${RANLIB}" \ | |
20124 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 20125 | TAGS) \ |
4fa63067 NN |
20126 | || exit 1 |
20127 | ||
b813574b | 20128 | @endif time |
4fa63067 | 20129 | |
b813574b PB |
20130 | .PHONY: maybe-install-info-time install-info-time |
20131 | maybe-install-info-time: | |
20132 | @if time | |
20133 | maybe-install-info-time: install-info-time | |
4fa63067 | 20134 | |
b813574b PB |
20135 | install-info-time: \ |
20136 | configure-time \ | |
20137 | info-time | |
20138 | @[ -f ./time/Makefile ] || exit 0; \ | |
4fa63067 NN |
20139 | r=`${PWD_COMMAND}`; export r; \ |
20140 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20141 | $(HOST_EXPORTS) \ |
b813574b | 20142 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
20143 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20144 | done; \ | |
b813574b | 20145 | echo "Doing install-info in time" ; \ |
b00612cc | 20146 | (cd $(HOST_SUBDIR)/time && \ |
4fa63067 NN |
20147 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20148 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20149 | "RANLIB=$${RANLIB}" \ | |
20150 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 20151 | install-info) \ |
4fa63067 NN |
20152 | || exit 1 |
20153 | ||
b813574b | 20154 | @endif time |
4fa63067 | 20155 | |
b813574b PB |
20156 | .PHONY: maybe-installcheck-time installcheck-time |
20157 | maybe-installcheck-time: | |
20158 | @if time | |
20159 | maybe-installcheck-time: installcheck-time | |
4fa63067 | 20160 | |
b813574b PB |
20161 | installcheck-time: \ |
20162 | configure-time | |
20163 | @[ -f ./time/Makefile ] || exit 0; \ | |
4fa63067 NN |
20164 | r=`${PWD_COMMAND}`; export r; \ |
20165 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20166 | $(HOST_EXPORTS) \ |
b813574b | 20167 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
20168 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20169 | done; \ | |
b813574b | 20170 | echo "Doing installcheck in time" ; \ |
b00612cc | 20171 | (cd $(HOST_SUBDIR)/time && \ |
4fa63067 NN |
20172 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20173 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20174 | "RANLIB=$${RANLIB}" \ | |
20175 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 20176 | installcheck) \ |
4fa63067 NN |
20177 | || exit 1 |
20178 | ||
b813574b | 20179 | @endif time |
4fa63067 | 20180 | |
b813574b PB |
20181 | .PHONY: maybe-mostlyclean-time mostlyclean-time |
20182 | maybe-mostlyclean-time: | |
20183 | @if time | |
20184 | maybe-mostlyclean-time: mostlyclean-time | |
4fa63067 | 20185 | |
b813574b PB |
20186 | mostlyclean-time: |
20187 | @[ -f ./time/Makefile ] || exit 0; \ | |
4fa63067 NN |
20188 | r=`${PWD_COMMAND}`; export r; \ |
20189 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20190 | $(HOST_EXPORTS) \ |
b813574b | 20191 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
20192 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20193 | done; \ | |
b813574b | 20194 | echo "Doing mostlyclean in time" ; \ |
b00612cc | 20195 | (cd $(HOST_SUBDIR)/time && \ |
4fa63067 NN |
20196 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20197 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20198 | "RANLIB=$${RANLIB}" \ | |
20199 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 20200 | mostlyclean) \ |
4fa63067 NN |
20201 | || exit 1 |
20202 | ||
b813574b | 20203 | @endif time |
4fa63067 | 20204 | |
b813574b PB |
20205 | .PHONY: maybe-clean-time clean-time |
20206 | maybe-clean-time: | |
20207 | @if time | |
20208 | maybe-clean-time: clean-time | |
4fa63067 | 20209 | |
b813574b PB |
20210 | clean-time: |
20211 | @[ -f ./time/Makefile ] || exit 0; \ | |
4fa63067 NN |
20212 | r=`${PWD_COMMAND}`; export r; \ |
20213 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20214 | $(HOST_EXPORTS) \ |
b813574b | 20215 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
20216 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20217 | done; \ | |
b813574b | 20218 | echo "Doing clean in time" ; \ |
b00612cc | 20219 | (cd $(HOST_SUBDIR)/time && \ |
4fa63067 NN |
20220 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20221 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20222 | "RANLIB=$${RANLIB}" \ | |
20223 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 20224 | clean) \ |
4fa63067 NN |
20225 | || exit 1 |
20226 | ||
b813574b | 20227 | @endif time |
4fa63067 | 20228 | |
b813574b PB |
20229 | .PHONY: maybe-distclean-time distclean-time |
20230 | maybe-distclean-time: | |
20231 | @if time | |
20232 | maybe-distclean-time: distclean-time | |
4fa63067 | 20233 | |
b813574b PB |
20234 | distclean-time: |
20235 | @[ -f ./time/Makefile ] || exit 0; \ | |
4fa63067 NN |
20236 | r=`${PWD_COMMAND}`; export r; \ |
20237 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20238 | $(HOST_EXPORTS) \ |
b813574b | 20239 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
20240 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20241 | done; \ | |
b813574b | 20242 | echo "Doing distclean in time" ; \ |
b00612cc | 20243 | (cd $(HOST_SUBDIR)/time && \ |
4fa63067 NN |
20244 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20245 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20246 | "RANLIB=$${RANLIB}" \ | |
20247 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 20248 | distclean) \ |
4fa63067 NN |
20249 | || exit 1 |
20250 | ||
b813574b | 20251 | @endif time |
4fa63067 | 20252 | |
b813574b PB |
20253 | .PHONY: maybe-maintainer-clean-time maintainer-clean-time |
20254 | maybe-maintainer-clean-time: | |
20255 | @if time | |
20256 | maybe-maintainer-clean-time: maintainer-clean-time | |
4fa63067 | 20257 | |
b813574b PB |
20258 | maintainer-clean-time: |
20259 | @[ -f ./time/Makefile ] || exit 0; \ | |
4fa63067 NN |
20260 | r=`${PWD_COMMAND}`; export r; \ |
20261 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20262 | $(HOST_EXPORTS) \ |
b813574b | 20263 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
20264 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20265 | done; \ | |
b813574b | 20266 | echo "Doing maintainer-clean in time" ; \ |
b00612cc | 20267 | (cd $(HOST_SUBDIR)/time && \ |
4fa63067 NN |
20268 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20269 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20270 | "RANLIB=$${RANLIB}" \ | |
20271 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 20272 | maintainer-clean) \ |
4fa63067 | 20273 | || exit 1 |
16ae0395 | 20274 | |
b813574b | 20275 | @endif time |
3866be5d NN |
20276 | |
20277 | ||
a7254363 | 20278 | |
b813574b PB |
20279 | .PHONY: configure-uudecode maybe-configure-uudecode |
20280 | maybe-configure-uudecode: | |
20281 | @if uudecode | |
20282 | maybe-configure-uudecode: configure-uudecode | |
a7254363 | 20283 | configure-uudecode: |
b00612cc PB |
20284 | @test ! -f $(HOST_SUBDIR)/uudecode/Makefile || exit 0; \ |
20285 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/uudecode ; \ | |
b40e3958 L |
20286 | r=`${PWD_COMMAND}`; export r; \ |
20287 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20288 | $(HOST_EXPORTS) \ |
a7254363 PB |
20289 | echo Configuring in $(HOST_SUBDIR)/uudecode; \ |
20290 | cd "$(HOST_SUBDIR)/uudecode" || exit 1; \ | |
e2b9e2dc | 20291 | case $(srcdir) in \ |
b00612cc PB |
20292 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
20293 | *) topdir=`echo $(HOST_SUBDIR)/uudecode/ | \ | |
20294 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 20295 | esac; \ |
b00612cc PB |
20296 | srcdiroption="--srcdir=$${topdir}/uudecode"; \ |
20297 | libsrcdir="$$s/uudecode"; \ | |
e2b9e2dc | 20298 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 20299 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 20300 | || exit 1 |
b813574b | 20301 | @endif uudecode |
e2b9e2dc | 20302 | |
a7254363 PB |
20303 | |
20304 | ||
b813574b PB |
20305 | .PHONY: all-uudecode maybe-all-uudecode |
20306 | maybe-all-uudecode: | |
20307 | @if uudecode | |
d27cc32e | 20308 | TARGET-uudecode=all |
b813574b PB |
20309 | maybe-all-uudecode: all-uudecode |
20310 | all-uudecode: configure-uudecode | |
b40e3958 L |
20311 | @r=`${PWD_COMMAND}`; export r; \ |
20312 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20313 | $(HOST_EXPORTS) \ |
b00612cc PB |
20314 | (cd $(HOST_SUBDIR)/uudecode && \ |
20315 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-uudecode)) | |
b813574b | 20316 | @endif uudecode |
3866be5d | 20317 | |
a7254363 | 20318 | |
b813574b PB |
20319 | .PHONY: check-uudecode maybe-check-uudecode |
20320 | maybe-check-uudecode: | |
20321 | @if uudecode | |
20322 | maybe-check-uudecode: check-uudecode | |
3866be5d | 20323 | |
b813574b | 20324 | check-uudecode: |
b40e3958 L |
20325 | @r=`${PWD_COMMAND}`; export r; \ |
20326 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20327 | $(HOST_EXPORTS) \ |
b00612cc PB |
20328 | (cd $(HOST_SUBDIR)/uudecode && \ |
20329 | $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d | 20330 | |
b813574b | 20331 | @endif uudecode |
3866be5d | 20332 | |
b813574b PB |
20333 | .PHONY: install-uudecode maybe-install-uudecode |
20334 | maybe-install-uudecode: | |
20335 | @if uudecode | |
20336 | maybe-install-uudecode: install-uudecode | |
4fa63067 | 20337 | |
b813574b | 20338 | install-uudecode: installdirs |
4fa63067 NN |
20339 | @r=`${PWD_COMMAND}`; export r; \ |
20340 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20341 | $(HOST_EXPORTS) \ |
b00612cc | 20342 | (cd $(HOST_SUBDIR)/uudecode && \ |
2da12f12 | 20343 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 20344 | |
b813574b | 20345 | @endif uudecode |
4fa63067 NN |
20346 | |
20347 | # Other targets (info, dvi, etc.) | |
20348 | ||
b813574b PB |
20349 | .PHONY: maybe-info-uudecode info-uudecode |
20350 | maybe-info-uudecode: | |
20351 | @if uudecode | |
20352 | maybe-info-uudecode: info-uudecode | |
4fa63067 | 20353 | |
b813574b PB |
20354 | info-uudecode: \ |
20355 | configure-uudecode | |
20356 | @[ -f ./uudecode/Makefile ] || exit 0; \ | |
4fa63067 NN |
20357 | r=`${PWD_COMMAND}`; export r; \ |
20358 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20359 | $(HOST_EXPORTS) \ |
b813574b | 20360 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
20361 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20362 | done; \ | |
b813574b | 20363 | echo "Doing info in uudecode" ; \ |
b00612cc | 20364 | (cd $(HOST_SUBDIR)/uudecode && \ |
4fa63067 NN |
20365 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20366 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20367 | "RANLIB=$${RANLIB}" \ | |
20368 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 20369 | info) \ |
4fa63067 NN |
20370 | || exit 1 |
20371 | ||
b813574b | 20372 | @endif uudecode |
4fa63067 | 20373 | |
b813574b PB |
20374 | .PHONY: maybe-dvi-uudecode dvi-uudecode |
20375 | maybe-dvi-uudecode: | |
20376 | @if uudecode | |
20377 | maybe-dvi-uudecode: dvi-uudecode | |
4fa63067 | 20378 | |
b813574b PB |
20379 | dvi-uudecode: \ |
20380 | configure-uudecode | |
20381 | @[ -f ./uudecode/Makefile ] || exit 0; \ | |
4fa63067 NN |
20382 | r=`${PWD_COMMAND}`; export r; \ |
20383 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20384 | $(HOST_EXPORTS) \ |
b813574b | 20385 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
20386 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20387 | done; \ | |
b813574b | 20388 | echo "Doing dvi in uudecode" ; \ |
b00612cc | 20389 | (cd $(HOST_SUBDIR)/uudecode && \ |
4fa63067 NN |
20390 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20391 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20392 | "RANLIB=$${RANLIB}" \ | |
20393 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 20394 | dvi) \ |
4fa63067 NN |
20395 | || exit 1 |
20396 | ||
b813574b | 20397 | @endif uudecode |
4fa63067 | 20398 | |
6d389afc MS |
20399 | .PHONY: maybe-html-uudecode html-uudecode |
20400 | maybe-html-uudecode: | |
20401 | @if uudecode | |
20402 | maybe-html-uudecode: html-uudecode | |
20403 | ||
20404 | html-uudecode: \ | |
20405 | configure-uudecode | |
20406 | @[ -f ./uudecode/Makefile ] || exit 0; \ | |
20407 | r=`${PWD_COMMAND}`; export r; \ | |
20408 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
20409 | $(HOST_EXPORTS) \ |
20410 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
20411 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
20412 | done; \ | |
20413 | echo "Doing html in uudecode" ; \ | |
b00612cc | 20414 | (cd $(HOST_SUBDIR)/uudecode && \ |
6d389afc MS |
20415 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20416 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20417 | "RANLIB=$${RANLIB}" \ | |
20418 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
20419 | html) \ | |
20420 | || exit 1 | |
20421 | ||
20422 | @endif uudecode | |
20423 | ||
b813574b PB |
20424 | .PHONY: maybe-TAGS-uudecode TAGS-uudecode |
20425 | maybe-TAGS-uudecode: | |
20426 | @if uudecode | |
20427 | maybe-TAGS-uudecode: TAGS-uudecode | |
4fa63067 | 20428 | |
b813574b PB |
20429 | TAGS-uudecode: \ |
20430 | configure-uudecode | |
20431 | @[ -f ./uudecode/Makefile ] || exit 0; \ | |
20432 | r=`${PWD_COMMAND}`; export r; \ | |
4fa63067 | 20433 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 20434 | $(HOST_EXPORTS) \ |
b813574b | 20435 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
20436 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20437 | done; \ | |
b813574b | 20438 | echo "Doing TAGS in uudecode" ; \ |
b00612cc | 20439 | (cd $(HOST_SUBDIR)/uudecode && \ |
4fa63067 NN |
20440 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20441 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20442 | "RANLIB=$${RANLIB}" \ | |
20443 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 20444 | TAGS) \ |
4fa63067 NN |
20445 | || exit 1 |
20446 | ||
b813574b | 20447 | @endif uudecode |
4fa63067 | 20448 | |
b813574b PB |
20449 | .PHONY: maybe-install-info-uudecode install-info-uudecode |
20450 | maybe-install-info-uudecode: | |
20451 | @if uudecode | |
20452 | maybe-install-info-uudecode: install-info-uudecode | |
4fa63067 | 20453 | |
b813574b PB |
20454 | install-info-uudecode: \ |
20455 | configure-uudecode \ | |
20456 | info-uudecode | |
20457 | @[ -f ./uudecode/Makefile ] || exit 0; \ | |
4fa63067 NN |
20458 | r=`${PWD_COMMAND}`; export r; \ |
20459 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20460 | $(HOST_EXPORTS) \ |
b813574b | 20461 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
20462 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20463 | done; \ | |
b813574b | 20464 | echo "Doing install-info in uudecode" ; \ |
b00612cc | 20465 | (cd $(HOST_SUBDIR)/uudecode && \ |
4fa63067 NN |
20466 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20467 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20468 | "RANLIB=$${RANLIB}" \ | |
20469 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 20470 | install-info) \ |
4fa63067 NN |
20471 | || exit 1 |
20472 | ||
b813574b | 20473 | @endif uudecode |
4fa63067 | 20474 | |
b813574b PB |
20475 | .PHONY: maybe-installcheck-uudecode installcheck-uudecode |
20476 | maybe-installcheck-uudecode: | |
20477 | @if uudecode | |
20478 | maybe-installcheck-uudecode: installcheck-uudecode | |
4fa63067 | 20479 | |
b813574b PB |
20480 | installcheck-uudecode: \ |
20481 | configure-uudecode | |
20482 | @[ -f ./uudecode/Makefile ] || exit 0; \ | |
4fa63067 NN |
20483 | r=`${PWD_COMMAND}`; export r; \ |
20484 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20485 | $(HOST_EXPORTS) \ |
b813574b | 20486 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
20487 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20488 | done; \ | |
b813574b | 20489 | echo "Doing installcheck in uudecode" ; \ |
b00612cc | 20490 | (cd $(HOST_SUBDIR)/uudecode && \ |
4fa63067 NN |
20491 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20492 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20493 | "RANLIB=$${RANLIB}" \ | |
20494 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 20495 | installcheck) \ |
4fa63067 NN |
20496 | || exit 1 |
20497 | ||
b813574b | 20498 | @endif uudecode |
4fa63067 | 20499 | |
b813574b PB |
20500 | .PHONY: maybe-mostlyclean-uudecode mostlyclean-uudecode |
20501 | maybe-mostlyclean-uudecode: | |
20502 | @if uudecode | |
20503 | maybe-mostlyclean-uudecode: mostlyclean-uudecode | |
4fa63067 | 20504 | |
b813574b PB |
20505 | mostlyclean-uudecode: |
20506 | @[ -f ./uudecode/Makefile ] || exit 0; \ | |
4fa63067 NN |
20507 | r=`${PWD_COMMAND}`; export r; \ |
20508 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20509 | $(HOST_EXPORTS) \ |
b813574b | 20510 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
20511 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20512 | done; \ | |
b813574b | 20513 | echo "Doing mostlyclean in uudecode" ; \ |
b00612cc | 20514 | (cd $(HOST_SUBDIR)/uudecode && \ |
4fa63067 NN |
20515 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20516 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20517 | "RANLIB=$${RANLIB}" \ | |
20518 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 20519 | mostlyclean) \ |
4fa63067 NN |
20520 | || exit 1 |
20521 | ||
b813574b | 20522 | @endif uudecode |
4fa63067 | 20523 | |
b813574b PB |
20524 | .PHONY: maybe-clean-uudecode clean-uudecode |
20525 | maybe-clean-uudecode: | |
20526 | @if uudecode | |
20527 | maybe-clean-uudecode: clean-uudecode | |
4fa63067 | 20528 | |
b813574b PB |
20529 | clean-uudecode: |
20530 | @[ -f ./uudecode/Makefile ] || exit 0; \ | |
4fa63067 NN |
20531 | r=`${PWD_COMMAND}`; export r; \ |
20532 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20533 | $(HOST_EXPORTS) \ |
b813574b | 20534 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
20535 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20536 | done; \ | |
b813574b | 20537 | echo "Doing clean in uudecode" ; \ |
b00612cc | 20538 | (cd $(HOST_SUBDIR)/uudecode && \ |
4fa63067 NN |
20539 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20540 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20541 | "RANLIB=$${RANLIB}" \ | |
20542 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 20543 | clean) \ |
4fa63067 NN |
20544 | || exit 1 |
20545 | ||
b813574b | 20546 | @endif uudecode |
4fa63067 | 20547 | |
b813574b PB |
20548 | .PHONY: maybe-distclean-uudecode distclean-uudecode |
20549 | maybe-distclean-uudecode: | |
20550 | @if uudecode | |
20551 | maybe-distclean-uudecode: distclean-uudecode | |
4fa63067 | 20552 | |
b813574b PB |
20553 | distclean-uudecode: |
20554 | @[ -f ./uudecode/Makefile ] || exit 0; \ | |
4fa63067 NN |
20555 | r=`${PWD_COMMAND}`; export r; \ |
20556 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20557 | $(HOST_EXPORTS) \ |
b813574b | 20558 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
20559 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20560 | done; \ | |
b813574b | 20561 | echo "Doing distclean in uudecode" ; \ |
b00612cc | 20562 | (cd $(HOST_SUBDIR)/uudecode && \ |
4fa63067 NN |
20563 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20564 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20565 | "RANLIB=$${RANLIB}" \ | |
20566 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 20567 | distclean) \ |
4fa63067 NN |
20568 | || exit 1 |
20569 | ||
b813574b | 20570 | @endif uudecode |
4fa63067 | 20571 | |
b813574b PB |
20572 | .PHONY: maybe-maintainer-clean-uudecode maintainer-clean-uudecode |
20573 | maybe-maintainer-clean-uudecode: | |
20574 | @if uudecode | |
20575 | maybe-maintainer-clean-uudecode: maintainer-clean-uudecode | |
4fa63067 | 20576 | |
b813574b PB |
20577 | maintainer-clean-uudecode: |
20578 | @[ -f ./uudecode/Makefile ] || exit 0; \ | |
4fa63067 NN |
20579 | r=`${PWD_COMMAND}`; export r; \ |
20580 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20581 | $(HOST_EXPORTS) \ |
b813574b | 20582 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
20583 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20584 | done; \ | |
b813574b | 20585 | echo "Doing maintainer-clean in uudecode" ; \ |
b00612cc | 20586 | (cd $(HOST_SUBDIR)/uudecode && \ |
4fa63067 NN |
20587 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20588 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20589 | "RANLIB=$${RANLIB}" \ | |
20590 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 20591 | maintainer-clean) \ |
4fa63067 | 20592 | || exit 1 |
16ae0395 | 20593 | |
b813574b | 20594 | @endif uudecode |
3866be5d NN |
20595 | |
20596 | ||
a7254363 | 20597 | |
b813574b PB |
20598 | .PHONY: configure-wdiff maybe-configure-wdiff |
20599 | maybe-configure-wdiff: | |
20600 | @if wdiff | |
20601 | maybe-configure-wdiff: configure-wdiff | |
a7254363 | 20602 | configure-wdiff: |
b00612cc PB |
20603 | @test ! -f $(HOST_SUBDIR)/wdiff/Makefile || exit 0; \ |
20604 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/wdiff ; \ | |
b40e3958 L |
20605 | r=`${PWD_COMMAND}`; export r; \ |
20606 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20607 | $(HOST_EXPORTS) \ |
a7254363 PB |
20608 | echo Configuring in $(HOST_SUBDIR)/wdiff; \ |
20609 | cd "$(HOST_SUBDIR)/wdiff" || exit 1; \ | |
e2b9e2dc | 20610 | case $(srcdir) in \ |
b00612cc PB |
20611 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
20612 | *) topdir=`echo $(HOST_SUBDIR)/wdiff/ | \ | |
20613 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 20614 | esac; \ |
b00612cc PB |
20615 | srcdiroption="--srcdir=$${topdir}/wdiff"; \ |
20616 | libsrcdir="$$s/wdiff"; \ | |
e2b9e2dc | 20617 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 20618 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 20619 | || exit 1 |
b813574b | 20620 | @endif wdiff |
e2b9e2dc | 20621 | |
a7254363 PB |
20622 | |
20623 | ||
b813574b PB |
20624 | .PHONY: all-wdiff maybe-all-wdiff |
20625 | maybe-all-wdiff: | |
20626 | @if wdiff | |
d27cc32e | 20627 | TARGET-wdiff=all |
b813574b PB |
20628 | maybe-all-wdiff: all-wdiff |
20629 | all-wdiff: configure-wdiff | |
b40e3958 L |
20630 | @r=`${PWD_COMMAND}`; export r; \ |
20631 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20632 | $(HOST_EXPORTS) \ |
b00612cc PB |
20633 | (cd $(HOST_SUBDIR)/wdiff && \ |
20634 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-wdiff)) | |
b813574b | 20635 | @endif wdiff |
3866be5d | 20636 | |
a7254363 | 20637 | |
b813574b PB |
20638 | .PHONY: check-wdiff maybe-check-wdiff |
20639 | maybe-check-wdiff: | |
20640 | @if wdiff | |
20641 | maybe-check-wdiff: check-wdiff | |
3866be5d | 20642 | |
b813574b PB |
20643 | check-wdiff: |
20644 | @r=`${PWD_COMMAND}`; export r; \ | |
20645 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b813574b | 20646 | $(HOST_EXPORTS) \ |
b00612cc PB |
20647 | (cd $(HOST_SUBDIR)/wdiff && \ |
20648 | $(MAKE) $(FLAGS_TO_PASS) check) | |
4fa63067 | 20649 | |
b813574b | 20650 | @endif wdiff |
4fa63067 | 20651 | |
b813574b PB |
20652 | .PHONY: install-wdiff maybe-install-wdiff |
20653 | maybe-install-wdiff: | |
20654 | @if wdiff | |
20655 | maybe-install-wdiff: install-wdiff | |
4fa63067 | 20656 | |
b813574b | 20657 | install-wdiff: installdirs |
b40e3958 L |
20658 | @r=`${PWD_COMMAND}`; export r; \ |
20659 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20660 | $(HOST_EXPORTS) \ |
b00612cc | 20661 | (cd $(HOST_SUBDIR)/wdiff && \ |
2da12f12 | 20662 | $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d | 20663 | |
b813574b | 20664 | @endif wdiff |
3866be5d | 20665 | |
4fa63067 | 20666 | # Other targets (info, dvi, etc.) |
16ae0395 | 20667 | |
b813574b PB |
20668 | .PHONY: maybe-info-wdiff info-wdiff |
20669 | maybe-info-wdiff: | |
20670 | @if wdiff | |
20671 | maybe-info-wdiff: info-wdiff | |
4fa63067 | 20672 | |
b813574b PB |
20673 | info-wdiff: \ |
20674 | configure-wdiff | |
20675 | @[ -f ./wdiff/Makefile ] || exit 0; \ | |
4fa63067 | 20676 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 20677 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 20678 | $(HOST_EXPORTS) \ |
b813574b | 20679 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
20680 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20681 | done; \ | |
b813574b | 20682 | echo "Doing info in wdiff" ; \ |
b00612cc | 20683 | (cd $(HOST_SUBDIR)/wdiff && \ |
4fa63067 NN |
20684 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20685 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20686 | "RANLIB=$${RANLIB}" \ | |
20687 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 20688 | info) \ |
4fa63067 | 20689 | || exit 1 |
3866be5d | 20690 | |
b813574b | 20691 | @endif wdiff |
3866be5d | 20692 | |
b813574b PB |
20693 | .PHONY: maybe-dvi-wdiff dvi-wdiff |
20694 | maybe-dvi-wdiff: | |
20695 | @if wdiff | |
20696 | maybe-dvi-wdiff: dvi-wdiff | |
4fa63067 | 20697 | |
b813574b PB |
20698 | dvi-wdiff: \ |
20699 | configure-wdiff | |
20700 | @[ -f ./wdiff/Makefile ] || exit 0; \ | |
4fa63067 NN |
20701 | r=`${PWD_COMMAND}`; export r; \ |
20702 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20703 | $(HOST_EXPORTS) \ |
b813574b | 20704 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
20705 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20706 | done; \ | |
b813574b | 20707 | echo "Doing dvi in wdiff" ; \ |
b00612cc | 20708 | (cd $(HOST_SUBDIR)/wdiff && \ |
4fa63067 NN |
20709 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20710 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20711 | "RANLIB=$${RANLIB}" \ | |
20712 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 20713 | dvi) \ |
4fa63067 NN |
20714 | || exit 1 |
20715 | ||
b813574b | 20716 | @endif wdiff |
4fa63067 | 20717 | |
6d389afc MS |
20718 | .PHONY: maybe-html-wdiff html-wdiff |
20719 | maybe-html-wdiff: | |
20720 | @if wdiff | |
20721 | maybe-html-wdiff: html-wdiff | |
20722 | ||
20723 | html-wdiff: \ | |
20724 | configure-wdiff | |
20725 | @[ -f ./wdiff/Makefile ] || exit 0; \ | |
20726 | r=`${PWD_COMMAND}`; export r; \ | |
20727 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
20728 | $(HOST_EXPORTS) \ |
20729 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
20730 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
20731 | done; \ | |
20732 | echo "Doing html in wdiff" ; \ | |
b00612cc | 20733 | (cd $(HOST_SUBDIR)/wdiff && \ |
6d389afc MS |
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}" \ | |
20738 | html) \ | |
20739 | || exit 1 | |
20740 | ||
20741 | @endif wdiff | |
20742 | ||
b813574b PB |
20743 | .PHONY: maybe-TAGS-wdiff TAGS-wdiff |
20744 | maybe-TAGS-wdiff: | |
20745 | @if wdiff | |
20746 | maybe-TAGS-wdiff: TAGS-wdiff | |
4fa63067 | 20747 | |
b813574b PB |
20748 | TAGS-wdiff: \ |
20749 | configure-wdiff | |
20750 | @[ -f ./wdiff/Makefile ] || exit 0; \ | |
4fa63067 NN |
20751 | r=`${PWD_COMMAND}`; export r; \ |
20752 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20753 | $(HOST_EXPORTS) \ |
b813574b | 20754 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
20755 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20756 | done; \ | |
b813574b | 20757 | echo "Doing TAGS in wdiff" ; \ |
b00612cc | 20758 | (cd $(HOST_SUBDIR)/wdiff && \ |
4fa63067 NN |
20759 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20760 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20761 | "RANLIB=$${RANLIB}" \ | |
20762 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 20763 | TAGS) \ |
4fa63067 NN |
20764 | || exit 1 |
20765 | ||
b813574b | 20766 | @endif wdiff |
4fa63067 | 20767 | |
b813574b PB |
20768 | .PHONY: maybe-install-info-wdiff install-info-wdiff |
20769 | maybe-install-info-wdiff: | |
20770 | @if wdiff | |
20771 | maybe-install-info-wdiff: install-info-wdiff | |
4fa63067 | 20772 | |
b813574b PB |
20773 | install-info-wdiff: \ |
20774 | configure-wdiff \ | |
20775 | info-wdiff | |
20776 | @[ -f ./wdiff/Makefile ] || exit 0; \ | |
4fa63067 NN |
20777 | r=`${PWD_COMMAND}`; export r; \ |
20778 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20779 | $(HOST_EXPORTS) \ |
b813574b | 20780 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
20781 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20782 | done; \ | |
b813574b | 20783 | echo "Doing install-info in wdiff" ; \ |
b00612cc | 20784 | (cd $(HOST_SUBDIR)/wdiff && \ |
4fa63067 NN |
20785 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20786 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20787 | "RANLIB=$${RANLIB}" \ | |
20788 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 20789 | install-info) \ |
4fa63067 NN |
20790 | || exit 1 |
20791 | ||
b813574b | 20792 | @endif wdiff |
4fa63067 | 20793 | |
b813574b PB |
20794 | .PHONY: maybe-installcheck-wdiff installcheck-wdiff |
20795 | maybe-installcheck-wdiff: | |
20796 | @if wdiff | |
20797 | maybe-installcheck-wdiff: installcheck-wdiff | |
4fa63067 | 20798 | |
b813574b PB |
20799 | installcheck-wdiff: \ |
20800 | configure-wdiff | |
20801 | @[ -f ./wdiff/Makefile ] || exit 0; \ | |
4fa63067 NN |
20802 | r=`${PWD_COMMAND}`; export r; \ |
20803 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20804 | $(HOST_EXPORTS) \ |
b813574b | 20805 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
20806 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20807 | done; \ | |
b813574b | 20808 | echo "Doing installcheck in wdiff" ; \ |
b00612cc | 20809 | (cd $(HOST_SUBDIR)/wdiff && \ |
4fa63067 NN |
20810 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20811 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20812 | "RANLIB=$${RANLIB}" \ | |
20813 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 20814 | installcheck) \ |
4fa63067 NN |
20815 | || exit 1 |
20816 | ||
b813574b | 20817 | @endif wdiff |
4fa63067 | 20818 | |
b813574b PB |
20819 | .PHONY: maybe-mostlyclean-wdiff mostlyclean-wdiff |
20820 | maybe-mostlyclean-wdiff: | |
20821 | @if wdiff | |
20822 | maybe-mostlyclean-wdiff: mostlyclean-wdiff | |
4fa63067 | 20823 | |
b813574b PB |
20824 | mostlyclean-wdiff: |
20825 | @[ -f ./wdiff/Makefile ] || exit 0; \ | |
4fa63067 NN |
20826 | r=`${PWD_COMMAND}`; export r; \ |
20827 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20828 | $(HOST_EXPORTS) \ |
b813574b | 20829 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
20830 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20831 | done; \ | |
b813574b | 20832 | echo "Doing mostlyclean in wdiff" ; \ |
b00612cc | 20833 | (cd $(HOST_SUBDIR)/wdiff && \ |
4fa63067 NN |
20834 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20835 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20836 | "RANLIB=$${RANLIB}" \ | |
20837 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 20838 | mostlyclean) \ |
4fa63067 NN |
20839 | || exit 1 |
20840 | ||
b813574b | 20841 | @endif wdiff |
4fa63067 | 20842 | |
b813574b PB |
20843 | .PHONY: maybe-clean-wdiff clean-wdiff |
20844 | maybe-clean-wdiff: | |
20845 | @if wdiff | |
20846 | maybe-clean-wdiff: clean-wdiff | |
4fa63067 | 20847 | |
b813574b PB |
20848 | clean-wdiff: |
20849 | @[ -f ./wdiff/Makefile ] || exit 0; \ | |
4fa63067 NN |
20850 | r=`${PWD_COMMAND}`; export r; \ |
20851 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20852 | $(HOST_EXPORTS) \ |
b813574b | 20853 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
20854 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20855 | done; \ | |
b813574b | 20856 | echo "Doing clean in wdiff" ; \ |
b00612cc | 20857 | (cd $(HOST_SUBDIR)/wdiff && \ |
4fa63067 NN |
20858 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20859 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20860 | "RANLIB=$${RANLIB}" \ | |
20861 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 20862 | clean) \ |
4fa63067 NN |
20863 | || exit 1 |
20864 | ||
b813574b | 20865 | @endif wdiff |
4fa63067 | 20866 | |
b813574b PB |
20867 | .PHONY: maybe-distclean-wdiff distclean-wdiff |
20868 | maybe-distclean-wdiff: | |
20869 | @if wdiff | |
20870 | maybe-distclean-wdiff: distclean-wdiff | |
4fa63067 | 20871 | |
b813574b PB |
20872 | distclean-wdiff: |
20873 | @[ -f ./wdiff/Makefile ] || exit 0; \ | |
4fa63067 NN |
20874 | r=`${PWD_COMMAND}`; export r; \ |
20875 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20876 | $(HOST_EXPORTS) \ |
b813574b | 20877 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
20878 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20879 | done; \ | |
b813574b | 20880 | echo "Doing distclean in wdiff" ; \ |
b00612cc | 20881 | (cd $(HOST_SUBDIR)/wdiff && \ |
4fa63067 NN |
20882 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20883 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20884 | "RANLIB=$${RANLIB}" \ | |
20885 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 20886 | distclean) \ |
4fa63067 NN |
20887 | || exit 1 |
20888 | ||
b813574b | 20889 | @endif wdiff |
4fa63067 | 20890 | |
b813574b PB |
20891 | .PHONY: maybe-maintainer-clean-wdiff maintainer-clean-wdiff |
20892 | maybe-maintainer-clean-wdiff: | |
20893 | @if wdiff | |
20894 | maybe-maintainer-clean-wdiff: maintainer-clean-wdiff | |
4fa63067 | 20895 | |
b813574b PB |
20896 | maintainer-clean-wdiff: |
20897 | @[ -f ./wdiff/Makefile ] || exit 0; \ | |
4fa63067 NN |
20898 | r=`${PWD_COMMAND}`; export r; \ |
20899 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20900 | $(HOST_EXPORTS) \ |
b813574b | 20901 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
20902 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20903 | done; \ | |
b813574b | 20904 | echo "Doing maintainer-clean in wdiff" ; \ |
b00612cc | 20905 | (cd $(HOST_SUBDIR)/wdiff && \ |
4fa63067 NN |
20906 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20907 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20908 | "RANLIB=$${RANLIB}" \ | |
20909 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 20910 | maintainer-clean) \ |
4fa63067 NN |
20911 | || exit 1 |
20912 | ||
b813574b | 20913 | @endif wdiff |
4fa63067 NN |
20914 | |
20915 | ||
a7254363 | 20916 | |
b813574b PB |
20917 | .PHONY: configure-zip maybe-configure-zip |
20918 | maybe-configure-zip: | |
20919 | @if zip | |
20920 | maybe-configure-zip: configure-zip | |
a7254363 | 20921 | configure-zip: |
b00612cc PB |
20922 | @test ! -f $(HOST_SUBDIR)/zip/Makefile || exit 0; \ |
20923 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zip ; \ | |
b40e3958 L |
20924 | r=`${PWD_COMMAND}`; export r; \ |
20925 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20926 | $(HOST_EXPORTS) \ |
a7254363 PB |
20927 | echo Configuring in $(HOST_SUBDIR)/zip; \ |
20928 | cd "$(HOST_SUBDIR)/zip" || exit 1; \ | |
e2b9e2dc | 20929 | case $(srcdir) in \ |
b00612cc PB |
20930 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
20931 | *) topdir=`echo $(HOST_SUBDIR)/zip/ | \ | |
20932 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 20933 | esac; \ |
b00612cc PB |
20934 | srcdiroption="--srcdir=$${topdir}/zip"; \ |
20935 | libsrcdir="$$s/zip"; \ | |
e2b9e2dc | 20936 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 20937 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 20938 | || exit 1 |
b813574b | 20939 | @endif zip |
e2b9e2dc | 20940 | |
a7254363 PB |
20941 | |
20942 | ||
b813574b PB |
20943 | .PHONY: all-zip maybe-all-zip |
20944 | maybe-all-zip: | |
20945 | @if zip | |
d27cc32e | 20946 | TARGET-zip=all |
b813574b PB |
20947 | maybe-all-zip: all-zip |
20948 | all-zip: configure-zip | |
b40e3958 L |
20949 | @r=`${PWD_COMMAND}`; export r; \ |
20950 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20951 | $(HOST_EXPORTS) \ |
b00612cc PB |
20952 | (cd $(HOST_SUBDIR)/zip && \ |
20953 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-zip)) | |
b813574b | 20954 | @endif zip |
3866be5d | 20955 | |
a7254363 | 20956 | |
b813574b PB |
20957 | .PHONY: check-zip maybe-check-zip |
20958 | maybe-check-zip: | |
20959 | @if zip | |
20960 | maybe-check-zip: check-zip | |
3866be5d | 20961 | |
b813574b PB |
20962 | # This module is only tested in a native toolchain. |
20963 | check-zip: | |
20964 | @if [ '$(host)' = '$(target)' ] ; then \ | |
20965 | r=`${PWD_COMMAND}`; export r; \ | |
20966 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b813574b | 20967 | $(HOST_EXPORTS) \ |
b00612cc | 20968 | (cd $(HOST_SUBDIR)/zip && \ |
4cfaf6d5 | 20969 | $(MAKE) $(FLAGS_TO_PASS) check); \ |
b813574b | 20970 | fi |
4fa63067 | 20971 | |
b813574b | 20972 | @endif zip |
4fa63067 | 20973 | |
b813574b PB |
20974 | .PHONY: install-zip maybe-install-zip |
20975 | maybe-install-zip: | |
20976 | @if zip | |
20977 | maybe-install-zip: install-zip | |
4fa63067 | 20978 | |
b813574b PB |
20979 | install-zip: installdirs |
20980 | @r=`${PWD_COMMAND}`; export r; \ | |
20981 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b813574b | 20982 | $(HOST_EXPORTS) \ |
b00612cc | 20983 | (cd $(HOST_SUBDIR)/zip && \ |
2da12f12 | 20984 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 20985 | |
b813574b | 20986 | @endif zip |
4fa63067 NN |
20987 | |
20988 | # Other targets (info, dvi, etc.) | |
20989 | ||
b813574b PB |
20990 | .PHONY: maybe-info-zip info-zip |
20991 | maybe-info-zip: | |
20992 | @if zip | |
20993 | maybe-info-zip: info-zip | |
4fa63067 | 20994 | |
b813574b PB |
20995 | info-zip: \ |
20996 | configure-zip | |
20997 | @[ -f ./zip/Makefile ] || exit 0; \ | |
4fa63067 | 20998 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 20999 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 21000 | $(HOST_EXPORTS) \ |
b813574b | 21001 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
21002 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21003 | done; \ | |
b813574b | 21004 | echo "Doing info in zip" ; \ |
b00612cc | 21005 | (cd $(HOST_SUBDIR)/zip && \ |
4fa63067 NN |
21006 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21007 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21008 | "RANLIB=$${RANLIB}" \ | |
21009 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 21010 | info) \ |
4fa63067 | 21011 | || exit 1 |
3866be5d | 21012 | |
b813574b | 21013 | @endif zip |
3866be5d | 21014 | |
b813574b PB |
21015 | .PHONY: maybe-dvi-zip dvi-zip |
21016 | maybe-dvi-zip: | |
21017 | @if zip | |
21018 | maybe-dvi-zip: dvi-zip | |
16ae0395 | 21019 | |
b813574b PB |
21020 | dvi-zip: \ |
21021 | configure-zip | |
21022 | @[ -f ./zip/Makefile ] || exit 0; \ | |
4fa63067 | 21023 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 21024 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 21025 | $(HOST_EXPORTS) \ |
b813574b | 21026 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
21027 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21028 | done; \ | |
b813574b | 21029 | echo "Doing dvi in zip" ; \ |
b00612cc | 21030 | (cd $(HOST_SUBDIR)/zip && \ |
4fa63067 NN |
21031 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21032 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21033 | "RANLIB=$${RANLIB}" \ | |
21034 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 21035 | dvi) \ |
4fa63067 | 21036 | || exit 1 |
3866be5d | 21037 | |
b813574b | 21038 | @endif zip |
3866be5d | 21039 | |
6d389afc MS |
21040 | .PHONY: maybe-html-zip html-zip |
21041 | maybe-html-zip: | |
21042 | @if zip | |
21043 | maybe-html-zip: html-zip | |
21044 | ||
21045 | html-zip: \ | |
21046 | configure-zip | |
21047 | @[ -f ./zip/Makefile ] || exit 0; \ | |
21048 | r=`${PWD_COMMAND}`; export r; \ | |
21049 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
21050 | $(HOST_EXPORTS) \ |
21051 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
21052 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
21053 | done; \ | |
21054 | echo "Doing html in zip" ; \ | |
b00612cc | 21055 | (cd $(HOST_SUBDIR)/zip && \ |
6d389afc MS |
21056 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21057 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21058 | "RANLIB=$${RANLIB}" \ | |
21059 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
21060 | html) \ | |
21061 | || exit 1 | |
21062 | ||
21063 | @endif zip | |
21064 | ||
b813574b PB |
21065 | .PHONY: maybe-TAGS-zip TAGS-zip |
21066 | maybe-TAGS-zip: | |
21067 | @if zip | |
21068 | maybe-TAGS-zip: TAGS-zip | |
4fa63067 | 21069 | |
b813574b PB |
21070 | TAGS-zip: \ |
21071 | configure-zip | |
21072 | @[ -f ./zip/Makefile ] || exit 0; \ | |
b40e3958 L |
21073 | r=`${PWD_COMMAND}`; export r; \ |
21074 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21075 | $(HOST_EXPORTS) \ |
b813574b | 21076 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
21077 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21078 | done; \ | |
b813574b | 21079 | echo "Doing TAGS in zip" ; \ |
b00612cc | 21080 | (cd $(HOST_SUBDIR)/zip && \ |
4fa63067 NN |
21081 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21082 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21083 | "RANLIB=$${RANLIB}" \ | |
21084 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 21085 | TAGS) \ |
e2b9e2dc NN |
21086 | || exit 1 |
21087 | ||
b813574b | 21088 | @endif zip |
4fa63067 | 21089 | |
b813574b PB |
21090 | .PHONY: maybe-install-info-zip install-info-zip |
21091 | maybe-install-info-zip: | |
21092 | @if zip | |
21093 | maybe-install-info-zip: install-info-zip | |
4fa63067 | 21094 | |
b813574b PB |
21095 | install-info-zip: \ |
21096 | configure-zip \ | |
21097 | info-zip | |
21098 | @[ -f ./zip/Makefile ] || exit 0; \ | |
4fa63067 | 21099 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 21100 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 21101 | $(HOST_EXPORTS) \ |
b813574b | 21102 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
21103 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21104 | done; \ | |
b813574b | 21105 | echo "Doing install-info in zip" ; \ |
b00612cc | 21106 | (cd $(HOST_SUBDIR)/zip && \ |
4fa63067 NN |
21107 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21108 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21109 | "RANLIB=$${RANLIB}" \ | |
21110 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 21111 | install-info) \ |
4fa63067 | 21112 | || exit 1 |
3866be5d | 21113 | |
b813574b | 21114 | @endif zip |
3866be5d | 21115 | |
b813574b PB |
21116 | .PHONY: maybe-installcheck-zip installcheck-zip |
21117 | maybe-installcheck-zip: | |
21118 | @if zip | |
21119 | maybe-installcheck-zip: installcheck-zip | |
4fa63067 | 21120 | |
b813574b PB |
21121 | installcheck-zip: \ |
21122 | configure-zip | |
21123 | @[ -f ./zip/Makefile ] || exit 0; \ | |
4fa63067 | 21124 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 21125 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 21126 | $(HOST_EXPORTS) \ |
b813574b | 21127 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
21128 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21129 | done; \ | |
b813574b | 21130 | echo "Doing installcheck in zip" ; \ |
b00612cc | 21131 | (cd $(HOST_SUBDIR)/zip && \ |
4fa63067 NN |
21132 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21133 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21134 | "RANLIB=$${RANLIB}" \ | |
21135 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 21136 | installcheck) \ |
4fa63067 | 21137 | || exit 1 |
3866be5d | 21138 | |
b813574b | 21139 | @endif zip |
3866be5d | 21140 | |
b813574b PB |
21141 | .PHONY: maybe-mostlyclean-zip mostlyclean-zip |
21142 | maybe-mostlyclean-zip: | |
21143 | @if zip | |
21144 | maybe-mostlyclean-zip: mostlyclean-zip | |
16ae0395 | 21145 | |
b813574b PB |
21146 | mostlyclean-zip: |
21147 | @[ -f ./zip/Makefile ] || exit 0; \ | |
4fa63067 NN |
21148 | r=`${PWD_COMMAND}`; export r; \ |
21149 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21150 | $(HOST_EXPORTS) \ |
b813574b | 21151 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
21152 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21153 | done; \ | |
b813574b | 21154 | echo "Doing mostlyclean in zip" ; \ |
b00612cc | 21155 | (cd $(HOST_SUBDIR)/zip && \ |
4fa63067 NN |
21156 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21157 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21158 | "RANLIB=$${RANLIB}" \ | |
21159 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 21160 | mostlyclean) \ |
4fa63067 NN |
21161 | || exit 1 |
21162 | ||
b813574b | 21163 | @endif zip |
4fa63067 | 21164 | |
b813574b PB |
21165 | .PHONY: maybe-clean-zip clean-zip |
21166 | maybe-clean-zip: | |
21167 | @if zip | |
21168 | maybe-clean-zip: clean-zip | |
4fa63067 | 21169 | |
b813574b PB |
21170 | clean-zip: |
21171 | @[ -f ./zip/Makefile ] || exit 0; \ | |
4fa63067 NN |
21172 | r=`${PWD_COMMAND}`; export r; \ |
21173 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21174 | $(HOST_EXPORTS) \ |
b813574b | 21175 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
21176 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21177 | done; \ | |
b813574b | 21178 | echo "Doing clean in zip" ; \ |
b00612cc | 21179 | (cd $(HOST_SUBDIR)/zip && \ |
4fa63067 NN |
21180 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21181 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21182 | "RANLIB=$${RANLIB}" \ | |
21183 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 21184 | clean) \ |
4fa63067 NN |
21185 | || exit 1 |
21186 | ||
b813574b | 21187 | @endif zip |
4fa63067 | 21188 | |
b813574b PB |
21189 | .PHONY: maybe-distclean-zip distclean-zip |
21190 | maybe-distclean-zip: | |
21191 | @if zip | |
21192 | maybe-distclean-zip: distclean-zip | |
4fa63067 | 21193 | |
b813574b PB |
21194 | distclean-zip: |
21195 | @[ -f ./zip/Makefile ] || exit 0; \ | |
4fa63067 NN |
21196 | r=`${PWD_COMMAND}`; export r; \ |
21197 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21198 | $(HOST_EXPORTS) \ |
b813574b | 21199 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
21200 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21201 | done; \ | |
b813574b | 21202 | echo "Doing distclean in zip" ; \ |
b00612cc | 21203 | (cd $(HOST_SUBDIR)/zip && \ |
4fa63067 NN |
21204 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21205 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21206 | "RANLIB=$${RANLIB}" \ | |
21207 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 21208 | distclean) \ |
4fa63067 NN |
21209 | || exit 1 |
21210 | ||
b813574b | 21211 | @endif zip |
4fa63067 | 21212 | |
b813574b PB |
21213 | .PHONY: maybe-maintainer-clean-zip maintainer-clean-zip |
21214 | maybe-maintainer-clean-zip: | |
21215 | @if zip | |
21216 | maybe-maintainer-clean-zip: maintainer-clean-zip | |
4fa63067 | 21217 | |
b813574b PB |
21218 | maintainer-clean-zip: |
21219 | @[ -f ./zip/Makefile ] || exit 0; \ | |
4fa63067 | 21220 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 21221 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 21222 | $(HOST_EXPORTS) \ |
b813574b | 21223 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
21224 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21225 | done; \ | |
b813574b | 21226 | echo "Doing maintainer-clean in zip" ; \ |
b00612cc | 21227 | (cd $(HOST_SUBDIR)/zip && \ |
4fa63067 NN |
21228 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21229 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21230 | "RANLIB=$${RANLIB}" \ | |
21231 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 21232 | maintainer-clean) \ |
4fa63067 | 21233 | || exit 1 |
3866be5d | 21234 | |
b813574b | 21235 | @endif zip |
3866be5d | 21236 | |
4fa63067 | 21237 | |
a7254363 | 21238 | |
b813574b PB |
21239 | .PHONY: configure-zlib maybe-configure-zlib |
21240 | maybe-configure-zlib: | |
21241 | @if zlib | |
21242 | maybe-configure-zlib: configure-zlib | |
a7254363 | 21243 | configure-zlib: |
72b2455a | 21244 | @test -f stage_last && exit 0; \ |
b00612cc PB |
21245 | test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \ |
21246 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \ | |
b40e3958 L |
21247 | r=`${PWD_COMMAND}`; export r; \ |
21248 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21249 | $(HOST_EXPORTS) \ |
a7254363 PB |
21250 | echo Configuring in $(HOST_SUBDIR)/zlib; \ |
21251 | cd "$(HOST_SUBDIR)/zlib" || exit 1; \ | |
e2b9e2dc | 21252 | case $(srcdir) in \ |
b00612cc PB |
21253 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
21254 | *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \ | |
21255 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 21256 | esac; \ |
b00612cc PB |
21257 | srcdiroption="--srcdir=$${topdir}/zlib"; \ |
21258 | libsrcdir="$$s/zlib"; \ | |
e2b9e2dc | 21259 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 21260 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 21261 | || exit 1 |
b813574b | 21262 | @endif zlib |
e2b9e2dc | 21263 | |
a7254363 PB |
21264 | |
21265 | ||
b813574b PB |
21266 | .PHONY: all-zlib maybe-all-zlib |
21267 | maybe-all-zlib: | |
21268 | @if zlib | |
d27cc32e | 21269 | TARGET-zlib=all |
b813574b PB |
21270 | maybe-all-zlib: all-zlib |
21271 | all-zlib: configure-zlib | |
72b2455a PB |
21272 | @test -f stage_last && exit 0; \ |
21273 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 21274 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 21275 | $(HOST_EXPORTS) \ |
b00612cc PB |
21276 | (cd $(HOST_SUBDIR)/zlib && \ |
21277 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-zlib)) | |
b813574b | 21278 | @endif zlib |
3866be5d | 21279 | |
a7254363 | 21280 | |
b813574b PB |
21281 | .PHONY: check-zlib maybe-check-zlib |
21282 | maybe-check-zlib: | |
21283 | @if zlib | |
21284 | maybe-check-zlib: check-zlib | |
3866be5d | 21285 | |
b813574b | 21286 | check-zlib: |
3866be5d | 21287 | |
b813574b | 21288 | @endif zlib |
3866be5d | 21289 | |
b813574b PB |
21290 | .PHONY: install-zlib maybe-install-zlib |
21291 | maybe-install-zlib: | |
21292 | @if zlib | |
21293 | maybe-install-zlib: install-zlib | |
4fa63067 | 21294 | |
b813574b | 21295 | install-zlib: |
4fa63067 | 21296 | |
b813574b | 21297 | @endif zlib |
4fa63067 NN |
21298 | |
21299 | # Other targets (info, dvi, etc.) | |
21300 | ||
b813574b PB |
21301 | .PHONY: maybe-info-zlib info-zlib |
21302 | maybe-info-zlib: | |
21303 | @if zlib | |
21304 | maybe-info-zlib: info-zlib | |
4fa63067 | 21305 | |
6d389afc MS |
21306 | info-zlib: \ |
21307 | configure-zlib | |
21308 | @[ -f ./zlib/Makefile ] || exit 0; \ | |
21309 | r=`${PWD_COMMAND}`; export r; \ | |
21310 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
21311 | $(HOST_EXPORTS) \ |
21312 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
21313 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
21314 | done; \ | |
21315 | echo "Doing info in zlib" ; \ | |
b00612cc | 21316 | (cd $(HOST_SUBDIR)/zlib && \ |
6d389afc MS |
21317 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21318 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21319 | "RANLIB=$${RANLIB}" \ | |
21320 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
21321 | info) \ | |
21322 | || exit 1 | |
21323 | ||
21324 | @endif zlib | |
21325 | ||
21326 | .PHONY: maybe-dvi-zlib dvi-zlib | |
21327 | maybe-dvi-zlib: | |
21328 | @if zlib | |
21329 | maybe-dvi-zlib: dvi-zlib | |
21330 | ||
21331 | dvi-zlib: \ | |
b813574b PB |
21332 | configure-zlib |
21333 | @[ -f ./zlib/Makefile ] || exit 0; \ | |
4fa63067 NN |
21334 | r=`${PWD_COMMAND}`; export r; \ |
21335 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21336 | $(HOST_EXPORTS) \ |
b813574b | 21337 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
21338 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21339 | done; \ | |
6d389afc | 21340 | echo "Doing dvi in zlib" ; \ |
b00612cc | 21341 | (cd $(HOST_SUBDIR)/zlib && \ |
4fa63067 NN |
21342 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21343 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21344 | "RANLIB=$${RANLIB}" \ | |
21345 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
6d389afc | 21346 | dvi) \ |
4fa63067 NN |
21347 | || exit 1 |
21348 | ||
b813574b | 21349 | @endif zlib |
4fa63067 | 21350 | |
6d389afc MS |
21351 | .PHONY: maybe-html-zlib html-zlib |
21352 | maybe-html-zlib: | |
b813574b | 21353 | @if zlib |
6d389afc | 21354 | maybe-html-zlib: html-zlib |
4fa63067 | 21355 | |
6d389afc | 21356 | html-zlib: \ |
b813574b PB |
21357 | configure-zlib |
21358 | @[ -f ./zlib/Makefile ] || exit 0; \ | |
4fa63067 NN |
21359 | r=`${PWD_COMMAND}`; export r; \ |
21360 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21361 | $(HOST_EXPORTS) \ |
b813574b | 21362 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
21363 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21364 | done; \ | |
6d389afc | 21365 | echo "Doing html in zlib" ; \ |
b00612cc | 21366 | (cd $(HOST_SUBDIR)/zlib && \ |
4fa63067 NN |
21367 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21368 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21369 | "RANLIB=$${RANLIB}" \ | |
21370 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
6d389afc | 21371 | html) \ |
4fa63067 NN |
21372 | || exit 1 |
21373 | ||
b813574b | 21374 | @endif zlib |
4fa63067 | 21375 | |
b813574b PB |
21376 | .PHONY: maybe-TAGS-zlib TAGS-zlib |
21377 | maybe-TAGS-zlib: | |
21378 | @if zlib | |
21379 | maybe-TAGS-zlib: TAGS-zlib | |
4fa63067 | 21380 | |
b813574b PB |
21381 | TAGS-zlib: \ |
21382 | configure-zlib | |
21383 | @[ -f ./zlib/Makefile ] || exit 0; \ | |
4fa63067 NN |
21384 | r=`${PWD_COMMAND}`; export r; \ |
21385 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21386 | $(HOST_EXPORTS) \ |
b813574b | 21387 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
21388 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21389 | done; \ | |
b813574b | 21390 | echo "Doing TAGS in zlib" ; \ |
b00612cc | 21391 | (cd $(HOST_SUBDIR)/zlib && \ |
4fa63067 NN |
21392 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21393 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21394 | "RANLIB=$${RANLIB}" \ | |
21395 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 21396 | TAGS) \ |
4fa63067 NN |
21397 | || exit 1 |
21398 | ||
b813574b | 21399 | @endif zlib |
4fa63067 | 21400 | |
b813574b PB |
21401 | .PHONY: maybe-install-info-zlib install-info-zlib |
21402 | maybe-install-info-zlib: | |
21403 | @if zlib | |
21404 | maybe-install-info-zlib: install-info-zlib | |
4fa63067 | 21405 | |
b813574b PB |
21406 | install-info-zlib: \ |
21407 | configure-zlib \ | |
21408 | info-zlib | |
21409 | @[ -f ./zlib/Makefile ] || exit 0; \ | |
4fa63067 NN |
21410 | r=`${PWD_COMMAND}`; export r; \ |
21411 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21412 | $(HOST_EXPORTS) \ |
b813574b | 21413 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
21414 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21415 | done; \ | |
b813574b | 21416 | echo "Doing install-info in zlib" ; \ |
b00612cc | 21417 | (cd $(HOST_SUBDIR)/zlib && \ |
4fa63067 NN |
21418 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21419 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21420 | "RANLIB=$${RANLIB}" \ | |
21421 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 21422 | install-info) \ |
4fa63067 NN |
21423 | || exit 1 |
21424 | ||
b813574b | 21425 | @endif zlib |
4fa63067 | 21426 | |
b813574b PB |
21427 | .PHONY: maybe-installcheck-zlib installcheck-zlib |
21428 | maybe-installcheck-zlib: | |
21429 | @if zlib | |
21430 | maybe-installcheck-zlib: installcheck-zlib | |
4fa63067 | 21431 | |
b813574b PB |
21432 | installcheck-zlib: \ |
21433 | configure-zlib | |
21434 | @[ -f ./zlib/Makefile ] || exit 0; \ | |
4fa63067 NN |
21435 | r=`${PWD_COMMAND}`; export r; \ |
21436 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21437 | $(HOST_EXPORTS) \ |
b813574b | 21438 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
21439 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21440 | done; \ | |
b813574b | 21441 | echo "Doing installcheck in zlib" ; \ |
b00612cc | 21442 | (cd $(HOST_SUBDIR)/zlib && \ |
4fa63067 NN |
21443 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21444 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21445 | "RANLIB=$${RANLIB}" \ | |
21446 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 21447 | installcheck) \ |
4fa63067 NN |
21448 | || exit 1 |
21449 | ||
b813574b | 21450 | @endif zlib |
4fa63067 | 21451 | |
b813574b PB |
21452 | .PHONY: maybe-mostlyclean-zlib mostlyclean-zlib |
21453 | maybe-mostlyclean-zlib: | |
21454 | @if zlib | |
21455 | maybe-mostlyclean-zlib: mostlyclean-zlib | |
4fa63067 | 21456 | |
b813574b PB |
21457 | mostlyclean-zlib: |
21458 | @[ -f ./zlib/Makefile ] || exit 0; \ | |
4fa63067 NN |
21459 | r=`${PWD_COMMAND}`; export r; \ |
21460 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21461 | $(HOST_EXPORTS) \ |
b813574b | 21462 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
21463 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21464 | done; \ | |
b813574b | 21465 | echo "Doing mostlyclean in zlib" ; \ |
b00612cc | 21466 | (cd $(HOST_SUBDIR)/zlib && \ |
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 | mostlyclean) \ |
4fa63067 NN |
21472 | || exit 1 |
21473 | ||
b813574b | 21474 | @endif zlib |
4fa63067 | 21475 | |
b813574b PB |
21476 | .PHONY: maybe-clean-zlib clean-zlib |
21477 | maybe-clean-zlib: | |
21478 | @if zlib | |
21479 | maybe-clean-zlib: clean-zlib | |
4fa63067 | 21480 | |
b813574b PB |
21481 | clean-zlib: |
21482 | @[ -f ./zlib/Makefile ] || exit 0; \ | |
4fa63067 NN |
21483 | r=`${PWD_COMMAND}`; export r; \ |
21484 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21485 | $(HOST_EXPORTS) \ |
b813574b | 21486 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
21487 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21488 | done; \ | |
b813574b | 21489 | echo "Doing clean in zlib" ; \ |
b00612cc | 21490 | (cd $(HOST_SUBDIR)/zlib && \ |
4fa63067 NN |
21491 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21492 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21493 | "RANLIB=$${RANLIB}" \ | |
21494 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 21495 | clean) \ |
4fa63067 NN |
21496 | || exit 1 |
21497 | ||
b813574b | 21498 | @endif zlib |
4fa63067 | 21499 | |
b813574b PB |
21500 | .PHONY: maybe-distclean-zlib distclean-zlib |
21501 | maybe-distclean-zlib: | |
21502 | @if zlib | |
21503 | maybe-distclean-zlib: distclean-zlib | |
4fa63067 | 21504 | |
b813574b PB |
21505 | distclean-zlib: |
21506 | @[ -f ./zlib/Makefile ] || exit 0; \ | |
4fa63067 NN |
21507 | r=`${PWD_COMMAND}`; export r; \ |
21508 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21509 | $(HOST_EXPORTS) \ |
b813574b | 21510 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
21511 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21512 | done; \ | |
b813574b | 21513 | echo "Doing distclean in zlib" ; \ |
b00612cc | 21514 | (cd $(HOST_SUBDIR)/zlib && \ |
4fa63067 NN |
21515 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21516 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21517 | "RANLIB=$${RANLIB}" \ | |
21518 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 21519 | distclean) \ |
4fa63067 NN |
21520 | || exit 1 |
21521 | ||
b813574b | 21522 | @endif zlib |
4fa63067 | 21523 | |
b813574b PB |
21524 | .PHONY: maybe-maintainer-clean-zlib maintainer-clean-zlib |
21525 | maybe-maintainer-clean-zlib: | |
21526 | @if zlib | |
21527 | maybe-maintainer-clean-zlib: maintainer-clean-zlib | |
4fa63067 | 21528 | |
b813574b PB |
21529 | maintainer-clean-zlib: |
21530 | @[ -f ./zlib/Makefile ] || exit 0; \ | |
4fa63067 NN |
21531 | r=`${PWD_COMMAND}`; export r; \ |
21532 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21533 | $(HOST_EXPORTS) \ |
b813574b | 21534 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
21535 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21536 | done; \ | |
b813574b | 21537 | echo "Doing maintainer-clean in zlib" ; \ |
b00612cc | 21538 | (cd $(HOST_SUBDIR)/zlib && \ |
4fa63067 NN |
21539 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21540 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21541 | "RANLIB=$${RANLIB}" \ | |
21542 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 21543 | maintainer-clean) \ |
4fa63067 | 21544 | || exit 1 |
16ae0395 | 21545 | |
b813574b | 21546 | @endif zlib |
3866be5d NN |
21547 | |
21548 | ||
a7254363 | 21549 | |
b813574b PB |
21550 | .PHONY: configure-gdb maybe-configure-gdb |
21551 | maybe-configure-gdb: | |
21552 | @if gdb | |
21553 | maybe-configure-gdb: configure-gdb | |
a7254363 | 21554 | configure-gdb: |
b00612cc PB |
21555 | @test ! -f $(HOST_SUBDIR)/gdb/Makefile || exit 0; \ |
21556 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gdb ; \ | |
b40e3958 L |
21557 | r=`${PWD_COMMAND}`; export r; \ |
21558 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21559 | $(HOST_EXPORTS) \ |
a7254363 PB |
21560 | echo Configuring in $(HOST_SUBDIR)/gdb; \ |
21561 | cd "$(HOST_SUBDIR)/gdb" || exit 1; \ | |
e2b9e2dc | 21562 | case $(srcdir) in \ |
b00612cc PB |
21563 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
21564 | *) topdir=`echo $(HOST_SUBDIR)/gdb/ | \ | |
21565 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 21566 | esac; \ |
b00612cc PB |
21567 | srcdiroption="--srcdir=$${topdir}/gdb"; \ |
21568 | libsrcdir="$$s/gdb"; \ | |
e2b9e2dc | 21569 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 21570 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 21571 | || exit 1 |
b813574b | 21572 | @endif gdb |
e2b9e2dc | 21573 | |
a7254363 PB |
21574 | |
21575 | ||
b813574b PB |
21576 | .PHONY: all-gdb maybe-all-gdb |
21577 | maybe-all-gdb: | |
21578 | @if gdb | |
d27cc32e | 21579 | TARGET-gdb=all |
b813574b PB |
21580 | maybe-all-gdb: all-gdb |
21581 | all-gdb: configure-gdb | |
b40e3958 L |
21582 | @r=`${PWD_COMMAND}`; export r; \ |
21583 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21584 | $(HOST_EXPORTS) \ |
b00612cc PB |
21585 | (cd $(HOST_SUBDIR)/gdb && \ |
21586 | $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) $(TARGET-gdb)) | |
b813574b | 21587 | @endif gdb |
3866be5d | 21588 | |
a7254363 | 21589 | |
b813574b PB |
21590 | .PHONY: check-gdb maybe-check-gdb |
21591 | maybe-check-gdb: | |
21592 | @if gdb | |
21593 | maybe-check-gdb: check-gdb | |
3866be5d | 21594 | |
b813574b | 21595 | check-gdb: |
b40e3958 L |
21596 | @r=`${PWD_COMMAND}`; export r; \ |
21597 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21598 | $(HOST_EXPORTS) \ |
b00612cc PB |
21599 | (cd $(HOST_SUBDIR)/gdb && \ |
21600 | $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check) | |
3866be5d | 21601 | |
b813574b | 21602 | @endif gdb |
3866be5d | 21603 | |
b813574b PB |
21604 | .PHONY: install-gdb maybe-install-gdb |
21605 | maybe-install-gdb: | |
21606 | @if gdb | |
21607 | maybe-install-gdb: install-gdb | |
16ae0395 | 21608 | |
b813574b | 21609 | install-gdb: installdirs |
b40e3958 L |
21610 | @r=`${PWD_COMMAND}`; export r; \ |
21611 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21612 | $(HOST_EXPORTS) \ |
b00612cc | 21613 | (cd $(HOST_SUBDIR)/gdb && \ |
2da12f12 | 21614 | $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install) |
3866be5d | 21615 | |
b813574b | 21616 | @endif gdb |
3866be5d | 21617 | |
4fa63067 NN |
21618 | # Other targets (info, dvi, etc.) |
21619 | ||
b813574b PB |
21620 | .PHONY: maybe-info-gdb info-gdb |
21621 | maybe-info-gdb: | |
21622 | @if gdb | |
21623 | maybe-info-gdb: info-gdb | |
4fa63067 | 21624 | |
b813574b PB |
21625 | info-gdb: \ |
21626 | configure-gdb | |
21627 | @[ -f ./gdb/Makefile ] || exit 0; \ | |
4fa63067 NN |
21628 | r=`${PWD_COMMAND}`; export r; \ |
21629 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21630 | $(HOST_EXPORTS) \ |
72b2455a | 21631 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
21632 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21633 | done; \ | |
b813574b | 21634 | echo "Doing info in gdb" ; \ |
b00612cc | 21635 | (cd $(HOST_SUBDIR)/gdb && \ |
4fa63067 NN |
21636 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21637 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21638 | "RANLIB=$${RANLIB}" \ | |
21639 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 21640 | info) \ |
4fa63067 NN |
21641 | || exit 1 |
21642 | ||
b813574b | 21643 | @endif gdb |
4fa63067 | 21644 | |
b813574b PB |
21645 | .PHONY: maybe-dvi-gdb dvi-gdb |
21646 | maybe-dvi-gdb: | |
21647 | @if gdb | |
21648 | maybe-dvi-gdb: dvi-gdb | |
4fa63067 | 21649 | |
b813574b PB |
21650 | dvi-gdb: \ |
21651 | configure-gdb | |
21652 | @[ -f ./gdb/Makefile ] || exit 0; \ | |
4fa63067 NN |
21653 | r=`${PWD_COMMAND}`; export r; \ |
21654 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21655 | $(HOST_EXPORTS) \ |
72b2455a | 21656 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
21657 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21658 | done; \ | |
b813574b | 21659 | echo "Doing dvi in gdb" ; \ |
b00612cc | 21660 | (cd $(HOST_SUBDIR)/gdb && \ |
4fa63067 NN |
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 | dvi) \ |
4fa63067 NN |
21666 | || exit 1 |
21667 | ||
b813574b | 21668 | @endif gdb |
4fa63067 | 21669 | |
6d389afc MS |
21670 | .PHONY: maybe-html-gdb html-gdb |
21671 | maybe-html-gdb: | |
21672 | @if gdb | |
21673 | maybe-html-gdb: html-gdb | |
21674 | ||
21675 | html-gdb: \ | |
21676 | configure-gdb | |
21677 | @[ -f ./gdb/Makefile ] || exit 0; \ | |
21678 | r=`${PWD_COMMAND}`; export r; \ | |
21679 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
21680 | $(HOST_EXPORTS) \ |
21681 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ | |
21682 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
21683 | done; \ | |
21684 | echo "Doing html in gdb" ; \ | |
b00612cc | 21685 | (cd $(HOST_SUBDIR)/gdb && \ |
6d389afc MS |
21686 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21687 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21688 | "RANLIB=$${RANLIB}" \ | |
21689 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
21690 | html) \ | |
21691 | || exit 1 | |
21692 | ||
21693 | @endif gdb | |
21694 | ||
b813574b PB |
21695 | .PHONY: maybe-TAGS-gdb TAGS-gdb |
21696 | maybe-TAGS-gdb: | |
21697 | @if gdb | |
21698 | maybe-TAGS-gdb: TAGS-gdb | |
4fa63067 | 21699 | |
b813574b PB |
21700 | TAGS-gdb: \ |
21701 | configure-gdb | |
21702 | @[ -f ./gdb/Makefile ] || exit 0; \ | |
4fa63067 NN |
21703 | r=`${PWD_COMMAND}`; export r; \ |
21704 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21705 | $(HOST_EXPORTS) \ |
72b2455a | 21706 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
21707 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21708 | done; \ | |
b813574b | 21709 | echo "Doing TAGS in gdb" ; \ |
b00612cc | 21710 | (cd $(HOST_SUBDIR)/gdb && \ |
4fa63067 NN |
21711 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21712 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21713 | "RANLIB=$${RANLIB}" \ | |
21714 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 21715 | TAGS) \ |
4fa63067 NN |
21716 | || exit 1 |
21717 | ||
b813574b | 21718 | @endif gdb |
4fa63067 | 21719 | |
b813574b PB |
21720 | .PHONY: maybe-install-info-gdb install-info-gdb |
21721 | maybe-install-info-gdb: | |
21722 | @if gdb | |
21723 | maybe-install-info-gdb: install-info-gdb | |
4fa63067 | 21724 | |
b813574b PB |
21725 | install-info-gdb: \ |
21726 | configure-gdb \ | |
21727 | info-gdb | |
21728 | @[ -f ./gdb/Makefile ] || exit 0; \ | |
4fa63067 NN |
21729 | r=`${PWD_COMMAND}`; export r; \ |
21730 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21731 | $(HOST_EXPORTS) \ |
72b2455a | 21732 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
21733 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21734 | done; \ | |
b813574b | 21735 | echo "Doing install-info in gdb" ; \ |
b00612cc | 21736 | (cd $(HOST_SUBDIR)/gdb && \ |
4fa63067 NN |
21737 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21738 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21739 | "RANLIB=$${RANLIB}" \ | |
21740 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 21741 | install-info) \ |
4fa63067 NN |
21742 | || exit 1 |
21743 | ||
b813574b | 21744 | @endif gdb |
4fa63067 | 21745 | |
b813574b PB |
21746 | .PHONY: maybe-installcheck-gdb installcheck-gdb |
21747 | maybe-installcheck-gdb: | |
21748 | @if gdb | |
21749 | maybe-installcheck-gdb: installcheck-gdb | |
4fa63067 | 21750 | |
b813574b PB |
21751 | installcheck-gdb: \ |
21752 | configure-gdb | |
21753 | @[ -f ./gdb/Makefile ] || exit 0; \ | |
4fa63067 NN |
21754 | r=`${PWD_COMMAND}`; export r; \ |
21755 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21756 | $(HOST_EXPORTS) \ |
72b2455a | 21757 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
21758 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21759 | done; \ | |
b813574b | 21760 | echo "Doing installcheck in gdb" ; \ |
b00612cc | 21761 | (cd $(HOST_SUBDIR)/gdb && \ |
4fa63067 NN |
21762 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21763 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21764 | "RANLIB=$${RANLIB}" \ | |
21765 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 21766 | installcheck) \ |
4fa63067 NN |
21767 | || exit 1 |
21768 | ||
b813574b | 21769 | @endif gdb |
4fa63067 | 21770 | |
b813574b PB |
21771 | .PHONY: maybe-mostlyclean-gdb mostlyclean-gdb |
21772 | maybe-mostlyclean-gdb: | |
21773 | @if gdb | |
21774 | maybe-mostlyclean-gdb: mostlyclean-gdb | |
4fa63067 | 21775 | |
b813574b PB |
21776 | mostlyclean-gdb: |
21777 | @[ -f ./gdb/Makefile ] || exit 0; \ | |
4fa63067 NN |
21778 | r=`${PWD_COMMAND}`; export r; \ |
21779 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21780 | $(HOST_EXPORTS) \ |
72b2455a | 21781 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
21782 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21783 | done; \ | |
b813574b | 21784 | echo "Doing mostlyclean in gdb" ; \ |
b00612cc | 21785 | (cd $(HOST_SUBDIR)/gdb && \ |
4fa63067 NN |
21786 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21787 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21788 | "RANLIB=$${RANLIB}" \ | |
21789 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 21790 | mostlyclean) \ |
4fa63067 NN |
21791 | || exit 1 |
21792 | ||
b813574b | 21793 | @endif gdb |
4fa63067 | 21794 | |
b813574b PB |
21795 | .PHONY: maybe-clean-gdb clean-gdb |
21796 | maybe-clean-gdb: | |
21797 | @if gdb | |
21798 | maybe-clean-gdb: clean-gdb | |
4fa63067 | 21799 | |
b813574b PB |
21800 | clean-gdb: |
21801 | @[ -f ./gdb/Makefile ] || exit 0; \ | |
4fa63067 NN |
21802 | r=`${PWD_COMMAND}`; export r; \ |
21803 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21804 | $(HOST_EXPORTS) \ |
72b2455a | 21805 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
21806 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21807 | done; \ | |
b813574b | 21808 | echo "Doing clean in gdb" ; \ |
b00612cc | 21809 | (cd $(HOST_SUBDIR)/gdb && \ |
4fa63067 NN |
21810 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21811 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21812 | "RANLIB=$${RANLIB}" \ | |
21813 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 21814 | clean) \ |
4fa63067 NN |
21815 | || exit 1 |
21816 | ||
b813574b | 21817 | @endif gdb |
4fa63067 | 21818 | |
b813574b PB |
21819 | .PHONY: maybe-distclean-gdb distclean-gdb |
21820 | maybe-distclean-gdb: | |
21821 | @if gdb | |
21822 | maybe-distclean-gdb: distclean-gdb | |
4fa63067 | 21823 | |
b813574b PB |
21824 | distclean-gdb: |
21825 | @[ -f ./gdb/Makefile ] || exit 0; \ | |
4fa63067 NN |
21826 | r=`${PWD_COMMAND}`; export r; \ |
21827 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21828 | $(HOST_EXPORTS) \ |
72b2455a | 21829 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
21830 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21831 | done; \ | |
b813574b | 21832 | echo "Doing distclean in gdb" ; \ |
b00612cc | 21833 | (cd $(HOST_SUBDIR)/gdb && \ |
4fa63067 NN |
21834 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21835 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21836 | "RANLIB=$${RANLIB}" \ | |
21837 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 21838 | distclean) \ |
4fa63067 NN |
21839 | || exit 1 |
21840 | ||
b813574b | 21841 | @endif gdb |
4fa63067 | 21842 | |
b813574b PB |
21843 | .PHONY: maybe-maintainer-clean-gdb maintainer-clean-gdb |
21844 | maybe-maintainer-clean-gdb: | |
21845 | @if gdb | |
21846 | maybe-maintainer-clean-gdb: maintainer-clean-gdb | |
4fa63067 | 21847 | |
b813574b PB |
21848 | maintainer-clean-gdb: |
21849 | @[ -f ./gdb/Makefile ] || exit 0; \ | |
4fa63067 NN |
21850 | r=`${PWD_COMMAND}`; export r; \ |
21851 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21852 | $(HOST_EXPORTS) \ |
72b2455a | 21853 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
21854 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21855 | done; \ | |
b813574b | 21856 | echo "Doing maintainer-clean in gdb" ; \ |
b00612cc | 21857 | (cd $(HOST_SUBDIR)/gdb && \ |
4fa63067 NN |
21858 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21859 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21860 | "RANLIB=$${RANLIB}" \ | |
21861 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 21862 | maintainer-clean) \ |
4fa63067 NN |
21863 | || exit 1 |
21864 | ||
b813574b | 21865 | @endif gdb |
4fa63067 NN |
21866 | |
21867 | ||
a7254363 | 21868 | |
b813574b PB |
21869 | .PHONY: configure-expect maybe-configure-expect |
21870 | maybe-configure-expect: | |
21871 | @if expect | |
21872 | maybe-configure-expect: configure-expect | |
a7254363 | 21873 | configure-expect: |
b00612cc PB |
21874 | @test ! -f $(HOST_SUBDIR)/expect/Makefile || exit 0; \ |
21875 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/expect ; \ | |
b40e3958 L |
21876 | r=`${PWD_COMMAND}`; export r; \ |
21877 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21878 | $(HOST_EXPORTS) \ |
a7254363 PB |
21879 | echo Configuring in $(HOST_SUBDIR)/expect; \ |
21880 | cd "$(HOST_SUBDIR)/expect" || exit 1; \ | |
e2b9e2dc | 21881 | case $(srcdir) in \ |
b00612cc PB |
21882 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
21883 | *) topdir=`echo $(HOST_SUBDIR)/expect/ | \ | |
21884 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 21885 | esac; \ |
b00612cc PB |
21886 | srcdiroption="--srcdir=$${topdir}/expect"; \ |
21887 | libsrcdir="$$s/expect"; \ | |
e2b9e2dc | 21888 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 21889 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 21890 | || exit 1 |
b813574b | 21891 | @endif expect |
e2b9e2dc | 21892 | |
a7254363 PB |
21893 | |
21894 | ||
b813574b PB |
21895 | .PHONY: all-expect maybe-all-expect |
21896 | maybe-all-expect: | |
21897 | @if expect | |
d27cc32e | 21898 | TARGET-expect=all |
b813574b PB |
21899 | maybe-all-expect: all-expect |
21900 | all-expect: configure-expect | |
b40e3958 L |
21901 | @r=`${PWD_COMMAND}`; export r; \ |
21902 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21903 | $(HOST_EXPORTS) \ |
b00612cc PB |
21904 | (cd $(HOST_SUBDIR)/expect && \ |
21905 | $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) $(TARGET-expect)) | |
b813574b | 21906 | @endif expect |
3866be5d | 21907 | |
a7254363 | 21908 | |
b813574b PB |
21909 | .PHONY: check-expect maybe-check-expect |
21910 | maybe-check-expect: | |
21911 | @if expect | |
21912 | maybe-check-expect: check-expect | |
3866be5d | 21913 | |
b813574b | 21914 | check-expect: |
b40e3958 L |
21915 | @r=`${PWD_COMMAND}`; export r; \ |
21916 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21917 | $(HOST_EXPORTS) \ |
b00612cc PB |
21918 | (cd $(HOST_SUBDIR)/expect && \ |
21919 | $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check) | |
3866be5d | 21920 | |
b813574b | 21921 | @endif expect |
3866be5d | 21922 | |
b813574b PB |
21923 | .PHONY: install-expect maybe-install-expect |
21924 | maybe-install-expect: | |
21925 | @if expect | |
21926 | maybe-install-expect: install-expect | |
16ae0395 | 21927 | |
b813574b | 21928 | install-expect: installdirs |
b40e3958 L |
21929 | @r=`${PWD_COMMAND}`; export r; \ |
21930 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21931 | $(HOST_EXPORTS) \ |
b00612cc | 21932 | (cd $(HOST_SUBDIR)/expect && \ |
2da12f12 | 21933 | $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install) |
3866be5d | 21934 | |
b813574b | 21935 | @endif expect |
3866be5d | 21936 | |
4fa63067 NN |
21937 | # Other targets (info, dvi, etc.) |
21938 | ||
b813574b PB |
21939 | .PHONY: maybe-info-expect info-expect |
21940 | maybe-info-expect: | |
21941 | @if expect | |
21942 | maybe-info-expect: info-expect | |
4fa63067 | 21943 | |
b813574b PB |
21944 | info-expect: \ |
21945 | configure-expect | |
21946 | @[ -f ./expect/Makefile ] || exit 0; \ | |
b40e3958 L |
21947 | r=`${PWD_COMMAND}`; export r; \ |
21948 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21949 | $(HOST_EXPORTS) \ |
72b2455a | 21950 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
21951 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21952 | done; \ | |
b813574b | 21953 | echo "Doing info in expect" ; \ |
b00612cc | 21954 | (cd $(HOST_SUBDIR)/expect && \ |
4fa63067 NN |
21955 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21956 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21957 | "RANLIB=$${RANLIB}" \ | |
21958 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 21959 | info) \ |
e2b9e2dc NN |
21960 | || exit 1 |
21961 | ||
b813574b | 21962 | @endif expect |
4fa63067 | 21963 | |
b813574b PB |
21964 | .PHONY: maybe-dvi-expect dvi-expect |
21965 | maybe-dvi-expect: | |
21966 | @if expect | |
21967 | maybe-dvi-expect: dvi-expect | |
4fa63067 | 21968 | |
b813574b PB |
21969 | dvi-expect: \ |
21970 | configure-expect | |
21971 | @[ -f ./expect/Makefile ] || exit 0; \ | |
4fa63067 | 21972 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 21973 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 21974 | $(HOST_EXPORTS) \ |
72b2455a | 21975 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
21976 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21977 | done; \ | |
b813574b | 21978 | echo "Doing dvi in expect" ; \ |
b00612cc | 21979 | (cd $(HOST_SUBDIR)/expect && \ |
4fa63067 NN |
21980 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21981 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21982 | "RANLIB=$${RANLIB}" \ | |
21983 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 21984 | dvi) \ |
4fa63067 | 21985 | || exit 1 |
3866be5d | 21986 | |
b813574b | 21987 | @endif expect |
3866be5d | 21988 | |
6d389afc MS |
21989 | .PHONY: maybe-html-expect html-expect |
21990 | maybe-html-expect: | |
21991 | @if expect | |
21992 | maybe-html-expect: html-expect | |
21993 | ||
21994 | html-expect: \ | |
21995 | configure-expect | |
21996 | @[ -f ./expect/Makefile ] || exit 0; \ | |
21997 | r=`${PWD_COMMAND}`; export r; \ | |
21998 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
21999 | $(HOST_EXPORTS) \ |
22000 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ | |
22001 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
22002 | done; \ | |
22003 | echo "Doing html in expect" ; \ | |
b00612cc | 22004 | (cd $(HOST_SUBDIR)/expect && \ |
6d389afc MS |
22005 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22006 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22007 | "RANLIB=$${RANLIB}" \ | |
22008 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
22009 | html) \ | |
22010 | || exit 1 | |
22011 | ||
22012 | @endif expect | |
22013 | ||
b813574b PB |
22014 | .PHONY: maybe-TAGS-expect TAGS-expect |
22015 | maybe-TAGS-expect: | |
22016 | @if expect | |
22017 | maybe-TAGS-expect: TAGS-expect | |
4fa63067 | 22018 | |
b813574b PB |
22019 | TAGS-expect: \ |
22020 | configure-expect | |
22021 | @[ -f ./expect/Makefile ] || exit 0; \ | |
4fa63067 | 22022 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 22023 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 22024 | $(HOST_EXPORTS) \ |
72b2455a | 22025 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
22026 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22027 | done; \ | |
b813574b | 22028 | echo "Doing TAGS in expect" ; \ |
b00612cc | 22029 | (cd $(HOST_SUBDIR)/expect && \ |
4fa63067 NN |
22030 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22031 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22032 | "RANLIB=$${RANLIB}" \ | |
22033 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 22034 | TAGS) \ |
4fa63067 | 22035 | || exit 1 |
3866be5d | 22036 | |
b813574b | 22037 | @endif expect |
3866be5d | 22038 | |
b813574b PB |
22039 | .PHONY: maybe-install-info-expect install-info-expect |
22040 | maybe-install-info-expect: | |
22041 | @if expect | |
22042 | maybe-install-info-expect: install-info-expect | |
16ae0395 | 22043 | |
b813574b PB |
22044 | install-info-expect: \ |
22045 | configure-expect \ | |
22046 | info-expect | |
22047 | @[ -f ./expect/Makefile ] || exit 0; \ | |
4fa63067 NN |
22048 | r=`${PWD_COMMAND}`; export r; \ |
22049 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22050 | $(HOST_EXPORTS) \ |
72b2455a | 22051 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
22052 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22053 | done; \ | |
b813574b | 22054 | echo "Doing install-info in expect" ; \ |
b00612cc | 22055 | (cd $(HOST_SUBDIR)/expect && \ |
4fa63067 NN |
22056 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22057 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22058 | "RANLIB=$${RANLIB}" \ | |
22059 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 22060 | install-info) \ |
4fa63067 NN |
22061 | || exit 1 |
22062 | ||
b813574b | 22063 | @endif expect |
4fa63067 | 22064 | |
b813574b PB |
22065 | .PHONY: maybe-installcheck-expect installcheck-expect |
22066 | maybe-installcheck-expect: | |
22067 | @if expect | |
22068 | maybe-installcheck-expect: installcheck-expect | |
4fa63067 | 22069 | |
b813574b PB |
22070 | installcheck-expect: \ |
22071 | configure-expect | |
22072 | @[ -f ./expect/Makefile ] || exit 0; \ | |
4fa63067 NN |
22073 | r=`${PWD_COMMAND}`; export r; \ |
22074 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22075 | $(HOST_EXPORTS) \ |
72b2455a | 22076 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
22077 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22078 | done; \ | |
b813574b | 22079 | echo "Doing installcheck in expect" ; \ |
b00612cc | 22080 | (cd $(HOST_SUBDIR)/expect && \ |
4fa63067 NN |
22081 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22082 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22083 | "RANLIB=$${RANLIB}" \ | |
22084 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 22085 | installcheck) \ |
4fa63067 NN |
22086 | || exit 1 |
22087 | ||
b813574b | 22088 | @endif expect |
4fa63067 | 22089 | |
b813574b PB |
22090 | .PHONY: maybe-mostlyclean-expect mostlyclean-expect |
22091 | maybe-mostlyclean-expect: | |
22092 | @if expect | |
22093 | maybe-mostlyclean-expect: mostlyclean-expect | |
4fa63067 | 22094 | |
b813574b PB |
22095 | mostlyclean-expect: |
22096 | @[ -f ./expect/Makefile ] || exit 0; \ | |
4fa63067 NN |
22097 | r=`${PWD_COMMAND}`; export r; \ |
22098 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22099 | $(HOST_EXPORTS) \ |
72b2455a | 22100 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
22101 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22102 | done; \ | |
b813574b | 22103 | echo "Doing mostlyclean in expect" ; \ |
b00612cc | 22104 | (cd $(HOST_SUBDIR)/expect && \ |
4fa63067 NN |
22105 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22106 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22107 | "RANLIB=$${RANLIB}" \ | |
22108 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 22109 | mostlyclean) \ |
4fa63067 NN |
22110 | || exit 1 |
22111 | ||
b813574b | 22112 | @endif expect |
4fa63067 | 22113 | |
b813574b PB |
22114 | .PHONY: maybe-clean-expect clean-expect |
22115 | maybe-clean-expect: | |
22116 | @if expect | |
22117 | maybe-clean-expect: clean-expect | |
4fa63067 | 22118 | |
b813574b PB |
22119 | clean-expect: |
22120 | @[ -f ./expect/Makefile ] || exit 0; \ | |
4fa63067 NN |
22121 | r=`${PWD_COMMAND}`; export r; \ |
22122 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22123 | $(HOST_EXPORTS) \ |
72b2455a | 22124 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
22125 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22126 | done; \ | |
b813574b | 22127 | echo "Doing clean in expect" ; \ |
b00612cc | 22128 | (cd $(HOST_SUBDIR)/expect && \ |
4fa63067 NN |
22129 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22130 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22131 | "RANLIB=$${RANLIB}" \ | |
22132 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 22133 | clean) \ |
4fa63067 NN |
22134 | || exit 1 |
22135 | ||
b813574b | 22136 | @endif expect |
4fa63067 | 22137 | |
b813574b PB |
22138 | .PHONY: maybe-distclean-expect distclean-expect |
22139 | maybe-distclean-expect: | |
22140 | @if expect | |
22141 | maybe-distclean-expect: distclean-expect | |
4fa63067 | 22142 | |
b813574b PB |
22143 | distclean-expect: |
22144 | @[ -f ./expect/Makefile ] || exit 0; \ | |
4fa63067 NN |
22145 | r=`${PWD_COMMAND}`; export r; \ |
22146 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22147 | $(HOST_EXPORTS) \ |
72b2455a | 22148 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
22149 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22150 | done; \ | |
b813574b | 22151 | echo "Doing distclean in expect" ; \ |
b00612cc | 22152 | (cd $(HOST_SUBDIR)/expect && \ |
4fa63067 NN |
22153 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22154 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22155 | "RANLIB=$${RANLIB}" \ | |
22156 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 22157 | distclean) \ |
4fa63067 NN |
22158 | || exit 1 |
22159 | ||
b813574b | 22160 | @endif expect |
4fa63067 | 22161 | |
b813574b PB |
22162 | .PHONY: maybe-maintainer-clean-expect maintainer-clean-expect |
22163 | maybe-maintainer-clean-expect: | |
22164 | @if expect | |
22165 | maybe-maintainer-clean-expect: maintainer-clean-expect | |
4fa63067 | 22166 | |
b813574b PB |
22167 | maintainer-clean-expect: |
22168 | @[ -f ./expect/Makefile ] || exit 0; \ | |
4fa63067 | 22169 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 22170 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 22171 | $(HOST_EXPORTS) \ |
72b2455a | 22172 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
22173 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22174 | done; \ | |
b813574b | 22175 | echo "Doing maintainer-clean in expect" ; \ |
b00612cc | 22176 | (cd $(HOST_SUBDIR)/expect && \ |
4fa63067 NN |
22177 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22178 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22179 | "RANLIB=$${RANLIB}" \ | |
22180 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 22181 | maintainer-clean) \ |
4fa63067 | 22182 | || exit 1 |
3866be5d | 22183 | |
b813574b | 22184 | @endif expect |
3866be5d | 22185 | |
4fa63067 | 22186 | |
a7254363 | 22187 | |
b813574b PB |
22188 | .PHONY: configure-guile maybe-configure-guile |
22189 | maybe-configure-guile: | |
22190 | @if guile | |
22191 | maybe-configure-guile: configure-guile | |
a7254363 | 22192 | configure-guile: |
b00612cc PB |
22193 | @test ! -f $(HOST_SUBDIR)/guile/Makefile || exit 0; \ |
22194 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/guile ; \ | |
b40e3958 L |
22195 | r=`${PWD_COMMAND}`; export r; \ |
22196 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22197 | $(HOST_EXPORTS) \ |
a7254363 PB |
22198 | echo Configuring in $(HOST_SUBDIR)/guile; \ |
22199 | cd "$(HOST_SUBDIR)/guile" || exit 1; \ | |
e2b9e2dc | 22200 | case $(srcdir) in \ |
b00612cc PB |
22201 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
22202 | *) topdir=`echo $(HOST_SUBDIR)/guile/ | \ | |
22203 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 22204 | esac; \ |
b00612cc PB |
22205 | srcdiroption="--srcdir=$${topdir}/guile"; \ |
22206 | libsrcdir="$$s/guile"; \ | |
e2b9e2dc | 22207 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 22208 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 22209 | || exit 1 |
b813574b | 22210 | @endif guile |
e2b9e2dc | 22211 | |
a7254363 PB |
22212 | |
22213 | ||
b813574b PB |
22214 | .PHONY: all-guile maybe-all-guile |
22215 | maybe-all-guile: | |
22216 | @if guile | |
d27cc32e | 22217 | TARGET-guile=all |
b813574b PB |
22218 | maybe-all-guile: all-guile |
22219 | all-guile: configure-guile | |
b40e3958 L |
22220 | @r=`${PWD_COMMAND}`; export r; \ |
22221 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22222 | $(HOST_EXPORTS) \ |
b00612cc PB |
22223 | (cd $(HOST_SUBDIR)/guile && \ |
22224 | $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) $(TARGET-guile)) | |
b813574b | 22225 | @endif guile |
3866be5d | 22226 | |
a7254363 | 22227 | |
b813574b PB |
22228 | .PHONY: check-guile maybe-check-guile |
22229 | maybe-check-guile: | |
22230 | @if guile | |
22231 | maybe-check-guile: check-guile | |
3866be5d | 22232 | |
b813574b | 22233 | check-guile: |
b40e3958 L |
22234 | @r=`${PWD_COMMAND}`; export r; \ |
22235 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22236 | $(HOST_EXPORTS) \ |
b00612cc PB |
22237 | (cd $(HOST_SUBDIR)/guile && \ |
22238 | $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check) | |
3866be5d | 22239 | |
b813574b | 22240 | @endif guile |
16ae0395 | 22241 | |
b813574b PB |
22242 | .PHONY: install-guile maybe-install-guile |
22243 | maybe-install-guile: | |
22244 | @if guile | |
22245 | maybe-install-guile: install-guile | |
22246 | ||
22247 | install-guile: installdirs | |
b40e3958 L |
22248 | @r=`${PWD_COMMAND}`; export r; \ |
22249 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22250 | $(HOST_EXPORTS) \ |
b00612cc | 22251 | (cd $(HOST_SUBDIR)/guile && \ |
2da12f12 | 22252 | $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install) |
4fa63067 | 22253 | |
b813574b | 22254 | @endif guile |
4fa63067 NN |
22255 | |
22256 | # Other targets (info, dvi, etc.) | |
22257 | ||
b813574b PB |
22258 | .PHONY: maybe-info-guile info-guile |
22259 | maybe-info-guile: | |
22260 | @if guile | |
22261 | maybe-info-guile: info-guile | |
4fa63067 | 22262 | |
b813574b PB |
22263 | info-guile: \ |
22264 | configure-guile | |
22265 | @[ -f ./guile/Makefile ] || exit 0; \ | |
4fa63067 NN |
22266 | r=`${PWD_COMMAND}`; export r; \ |
22267 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22268 | $(HOST_EXPORTS) \ |
72b2455a | 22269 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
22270 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22271 | done; \ | |
b813574b | 22272 | echo "Doing info in guile" ; \ |
b00612cc | 22273 | (cd $(HOST_SUBDIR)/guile && \ |
4fa63067 NN |
22274 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22275 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22276 | "RANLIB=$${RANLIB}" \ | |
22277 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 22278 | info) \ |
4fa63067 NN |
22279 | || exit 1 |
22280 | ||
b813574b | 22281 | @endif guile |
4fa63067 | 22282 | |
b813574b PB |
22283 | .PHONY: maybe-dvi-guile dvi-guile |
22284 | maybe-dvi-guile: | |
22285 | @if guile | |
22286 | maybe-dvi-guile: dvi-guile | |
4fa63067 | 22287 | |
b813574b PB |
22288 | dvi-guile: \ |
22289 | configure-guile | |
22290 | @[ -f ./guile/Makefile ] || exit 0; \ | |
4fa63067 NN |
22291 | r=`${PWD_COMMAND}`; export r; \ |
22292 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22293 | $(HOST_EXPORTS) \ |
72b2455a | 22294 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
22295 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22296 | done; \ | |
b813574b | 22297 | echo "Doing dvi in guile" ; \ |
b00612cc | 22298 | (cd $(HOST_SUBDIR)/guile && \ |
4fa63067 NN |
22299 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22300 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22301 | "RANLIB=$${RANLIB}" \ | |
22302 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 22303 | dvi) \ |
4fa63067 NN |
22304 | || exit 1 |
22305 | ||
b813574b | 22306 | @endif guile |
4fa63067 | 22307 | |
6d389afc MS |
22308 | .PHONY: maybe-html-guile html-guile |
22309 | maybe-html-guile: | |
22310 | @if guile | |
22311 | maybe-html-guile: html-guile | |
22312 | ||
22313 | html-guile: \ | |
22314 | configure-guile | |
22315 | @[ -f ./guile/Makefile ] || exit 0; \ | |
22316 | r=`${PWD_COMMAND}`; export r; \ | |
22317 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
22318 | $(HOST_EXPORTS) \ |
22319 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ | |
22320 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
22321 | done; \ | |
22322 | echo "Doing html in guile" ; \ | |
b00612cc | 22323 | (cd $(HOST_SUBDIR)/guile && \ |
6d389afc MS |
22324 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22325 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22326 | "RANLIB=$${RANLIB}" \ | |
22327 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
22328 | html) \ | |
22329 | || exit 1 | |
22330 | ||
22331 | @endif guile | |
22332 | ||
b813574b PB |
22333 | .PHONY: maybe-TAGS-guile TAGS-guile |
22334 | maybe-TAGS-guile: | |
22335 | @if guile | |
22336 | maybe-TAGS-guile: TAGS-guile | |
4fa63067 | 22337 | |
b813574b PB |
22338 | TAGS-guile: \ |
22339 | configure-guile | |
22340 | @[ -f ./guile/Makefile ] || exit 0; \ | |
4fa63067 NN |
22341 | r=`${PWD_COMMAND}`; export r; \ |
22342 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22343 | $(HOST_EXPORTS) \ |
72b2455a | 22344 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
22345 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22346 | done; \ | |
b813574b | 22347 | echo "Doing TAGS in guile" ; \ |
b00612cc | 22348 | (cd $(HOST_SUBDIR)/guile && \ |
4fa63067 NN |
22349 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22350 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22351 | "RANLIB=$${RANLIB}" \ | |
22352 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 22353 | TAGS) \ |
4fa63067 NN |
22354 | || exit 1 |
22355 | ||
b813574b | 22356 | @endif guile |
4fa63067 | 22357 | |
b813574b PB |
22358 | .PHONY: maybe-install-info-guile install-info-guile |
22359 | maybe-install-info-guile: | |
22360 | @if guile | |
22361 | maybe-install-info-guile: install-info-guile | |
4fa63067 | 22362 | |
b813574b PB |
22363 | install-info-guile: \ |
22364 | configure-guile \ | |
22365 | info-guile | |
22366 | @[ -f ./guile/Makefile ] || exit 0; \ | |
4fa63067 NN |
22367 | r=`${PWD_COMMAND}`; export r; \ |
22368 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22369 | $(HOST_EXPORTS) \ |
72b2455a | 22370 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
22371 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22372 | done; \ | |
b813574b | 22373 | echo "Doing install-info in guile" ; \ |
b00612cc | 22374 | (cd $(HOST_SUBDIR)/guile && \ |
4fa63067 NN |
22375 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22376 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22377 | "RANLIB=$${RANLIB}" \ | |
22378 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 22379 | install-info) \ |
4fa63067 NN |
22380 | || exit 1 |
22381 | ||
b813574b | 22382 | @endif guile |
4fa63067 | 22383 | |
b813574b PB |
22384 | .PHONY: maybe-installcheck-guile installcheck-guile |
22385 | maybe-installcheck-guile: | |
22386 | @if guile | |
22387 | maybe-installcheck-guile: installcheck-guile | |
4fa63067 | 22388 | |
b813574b PB |
22389 | installcheck-guile: \ |
22390 | configure-guile | |
22391 | @[ -f ./guile/Makefile ] || exit 0; \ | |
4fa63067 NN |
22392 | r=`${PWD_COMMAND}`; export r; \ |
22393 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22394 | $(HOST_EXPORTS) \ |
72b2455a | 22395 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
22396 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22397 | done; \ | |
b813574b | 22398 | echo "Doing installcheck in guile" ; \ |
b00612cc | 22399 | (cd $(HOST_SUBDIR)/guile && \ |
4fa63067 NN |
22400 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22401 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22402 | "RANLIB=$${RANLIB}" \ | |
22403 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 22404 | installcheck) \ |
4fa63067 NN |
22405 | || exit 1 |
22406 | ||
b813574b | 22407 | @endif guile |
4fa63067 | 22408 | |
b813574b PB |
22409 | .PHONY: maybe-mostlyclean-guile mostlyclean-guile |
22410 | maybe-mostlyclean-guile: | |
22411 | @if guile | |
22412 | maybe-mostlyclean-guile: mostlyclean-guile | |
4fa63067 | 22413 | |
b813574b PB |
22414 | mostlyclean-guile: |
22415 | @[ -f ./guile/Makefile ] || exit 0; \ | |
4fa63067 NN |
22416 | r=`${PWD_COMMAND}`; export r; \ |
22417 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22418 | $(HOST_EXPORTS) \ |
72b2455a | 22419 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
22420 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22421 | done; \ | |
b813574b | 22422 | echo "Doing mostlyclean in guile" ; \ |
b00612cc | 22423 | (cd $(HOST_SUBDIR)/guile && \ |
4fa63067 NN |
22424 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22425 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22426 | "RANLIB=$${RANLIB}" \ | |
22427 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 22428 | mostlyclean) \ |
4fa63067 NN |
22429 | || exit 1 |
22430 | ||
b813574b | 22431 | @endif guile |
4fa63067 | 22432 | |
b813574b PB |
22433 | .PHONY: maybe-clean-guile clean-guile |
22434 | maybe-clean-guile: | |
22435 | @if guile | |
22436 | maybe-clean-guile: clean-guile | |
4fa63067 | 22437 | |
b813574b PB |
22438 | clean-guile: |
22439 | @[ -f ./guile/Makefile ] || exit 0; \ | |
4fa63067 NN |
22440 | r=`${PWD_COMMAND}`; export r; \ |
22441 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22442 | $(HOST_EXPORTS) \ |
72b2455a | 22443 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
22444 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22445 | done; \ | |
b813574b | 22446 | echo "Doing clean in guile" ; \ |
b00612cc | 22447 | (cd $(HOST_SUBDIR)/guile && \ |
4fa63067 NN |
22448 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22449 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22450 | "RANLIB=$${RANLIB}" \ | |
22451 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 22452 | clean) \ |
4fa63067 NN |
22453 | || exit 1 |
22454 | ||
b813574b | 22455 | @endif guile |
4fa63067 | 22456 | |
b813574b PB |
22457 | .PHONY: maybe-distclean-guile distclean-guile |
22458 | maybe-distclean-guile: | |
22459 | @if guile | |
22460 | maybe-distclean-guile: distclean-guile | |
4fa63067 | 22461 | |
b813574b PB |
22462 | distclean-guile: |
22463 | @[ -f ./guile/Makefile ] || exit 0; \ | |
4fa63067 NN |
22464 | r=`${PWD_COMMAND}`; export r; \ |
22465 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22466 | $(HOST_EXPORTS) \ |
72b2455a | 22467 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
22468 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22469 | done; \ | |
b813574b | 22470 | echo "Doing distclean in guile" ; \ |
b00612cc | 22471 | (cd $(HOST_SUBDIR)/guile && \ |
4fa63067 NN |
22472 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22473 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22474 | "RANLIB=$${RANLIB}" \ | |
22475 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 22476 | distclean) \ |
4fa63067 NN |
22477 | || exit 1 |
22478 | ||
b813574b | 22479 | @endif guile |
4fa63067 | 22480 | |
b813574b PB |
22481 | .PHONY: maybe-maintainer-clean-guile maintainer-clean-guile |
22482 | maybe-maintainer-clean-guile: | |
22483 | @if guile | |
22484 | maybe-maintainer-clean-guile: maintainer-clean-guile | |
4fa63067 | 22485 | |
b813574b PB |
22486 | maintainer-clean-guile: |
22487 | @[ -f ./guile/Makefile ] || exit 0; \ | |
4fa63067 NN |
22488 | r=`${PWD_COMMAND}`; export r; \ |
22489 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22490 | $(HOST_EXPORTS) \ |
72b2455a | 22491 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
22492 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22493 | done; \ | |
b813574b | 22494 | echo "Doing maintainer-clean in guile" ; \ |
b00612cc | 22495 | (cd $(HOST_SUBDIR)/guile && \ |
4fa63067 NN |
22496 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22497 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22498 | "RANLIB=$${RANLIB}" \ | |
22499 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 22500 | maintainer-clean) \ |
4fa63067 NN |
22501 | || exit 1 |
22502 | ||
b813574b | 22503 | @endif guile |
3866be5d NN |
22504 | |
22505 | ||
a7254363 | 22506 | |
b813574b PB |
22507 | .PHONY: configure-tk maybe-configure-tk |
22508 | maybe-configure-tk: | |
22509 | @if tk | |
22510 | maybe-configure-tk: configure-tk | |
a7254363 | 22511 | configure-tk: |
b00612cc PB |
22512 | @test ! -f $(HOST_SUBDIR)/tk/Makefile || exit 0; \ |
22513 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tk ; \ | |
b40e3958 L |
22514 | r=`${PWD_COMMAND}`; export r; \ |
22515 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22516 | $(HOST_EXPORTS) \ |
a7254363 PB |
22517 | echo Configuring in $(HOST_SUBDIR)/tk; \ |
22518 | cd "$(HOST_SUBDIR)/tk" || exit 1; \ | |
e2b9e2dc | 22519 | case $(srcdir) in \ |
b00612cc PB |
22520 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
22521 | *) topdir=`echo $(HOST_SUBDIR)/tk/ | \ | |
22522 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 22523 | esac; \ |
b00612cc PB |
22524 | srcdiroption="--srcdir=$${topdir}/tk"; \ |
22525 | libsrcdir="$$s/tk"; \ | |
e2b9e2dc | 22526 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 22527 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 22528 | || exit 1 |
b813574b | 22529 | @endif tk |
e2b9e2dc | 22530 | |
a7254363 PB |
22531 | |
22532 | ||
b813574b PB |
22533 | .PHONY: all-tk maybe-all-tk |
22534 | maybe-all-tk: | |
22535 | @if tk | |
d27cc32e | 22536 | TARGET-tk=all |
b813574b PB |
22537 | maybe-all-tk: all-tk |
22538 | all-tk: configure-tk | |
b40e3958 L |
22539 | @r=`${PWD_COMMAND}`; export r; \ |
22540 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22541 | $(HOST_EXPORTS) \ |
b00612cc PB |
22542 | (cd $(HOST_SUBDIR)/tk && \ |
22543 | $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) $(TARGET-tk)) | |
b813574b | 22544 | @endif tk |
3866be5d | 22545 | |
a7254363 | 22546 | |
b813574b PB |
22547 | .PHONY: check-tk maybe-check-tk |
22548 | maybe-check-tk: | |
22549 | @if tk | |
22550 | maybe-check-tk: check-tk | |
3866be5d | 22551 | |
b813574b | 22552 | check-tk: |
b40e3958 L |
22553 | @r=`${PWD_COMMAND}`; export r; \ |
22554 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22555 | $(HOST_EXPORTS) \ |
b00612cc PB |
22556 | (cd $(HOST_SUBDIR)/tk && \ |
22557 | $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check) | |
3866be5d | 22558 | |
b813574b | 22559 | @endif tk |
3866be5d | 22560 | |
b813574b PB |
22561 | .PHONY: install-tk maybe-install-tk |
22562 | maybe-install-tk: | |
22563 | @if tk | |
22564 | maybe-install-tk: install-tk | |
16ae0395 | 22565 | |
b813574b | 22566 | install-tk: installdirs |
b40e3958 L |
22567 | @r=`${PWD_COMMAND}`; export r; \ |
22568 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22569 | $(HOST_EXPORTS) \ |
b00612cc | 22570 | (cd $(HOST_SUBDIR)/tk && \ |
2da12f12 | 22571 | $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install) |
3866be5d | 22572 | |
b813574b | 22573 | @endif tk |
3866be5d | 22574 | |
4fa63067 NN |
22575 | # Other targets (info, dvi, etc.) |
22576 | ||
b813574b PB |
22577 | .PHONY: maybe-info-tk info-tk |
22578 | maybe-info-tk: | |
22579 | @if tk | |
22580 | maybe-info-tk: info-tk | |
4fa63067 | 22581 | |
b813574b PB |
22582 | info-tk: \ |
22583 | configure-tk | |
22584 | @[ -f ./tk/Makefile ] || exit 0; \ | |
b40e3958 L |
22585 | r=`${PWD_COMMAND}`; export r; \ |
22586 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22587 | $(HOST_EXPORTS) \ |
72b2455a | 22588 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
22589 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22590 | done; \ | |
b813574b | 22591 | echo "Doing info in tk" ; \ |
b00612cc | 22592 | (cd $(HOST_SUBDIR)/tk && \ |
4fa63067 NN |
22593 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22594 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22595 | "RANLIB=$${RANLIB}" \ | |
22596 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 22597 | info) \ |
e2b9e2dc NN |
22598 | || exit 1 |
22599 | ||
b813574b | 22600 | @endif tk |
4fa63067 | 22601 | |
b813574b PB |
22602 | .PHONY: maybe-dvi-tk dvi-tk |
22603 | maybe-dvi-tk: | |
22604 | @if tk | |
22605 | maybe-dvi-tk: dvi-tk | |
4fa63067 | 22606 | |
b813574b PB |
22607 | dvi-tk: \ |
22608 | configure-tk | |
22609 | @[ -f ./tk/Makefile ] || exit 0; \ | |
4fa63067 | 22610 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 22611 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 22612 | $(HOST_EXPORTS) \ |
72b2455a | 22613 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
22614 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22615 | done; \ | |
b813574b | 22616 | echo "Doing dvi in tk" ; \ |
b00612cc | 22617 | (cd $(HOST_SUBDIR)/tk && \ |
4fa63067 NN |
22618 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22619 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22620 | "RANLIB=$${RANLIB}" \ | |
22621 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 22622 | dvi) \ |
4fa63067 | 22623 | || exit 1 |
3866be5d | 22624 | |
b813574b | 22625 | @endif tk |
3866be5d | 22626 | |
6d389afc MS |
22627 | .PHONY: maybe-html-tk html-tk |
22628 | maybe-html-tk: | |
22629 | @if tk | |
22630 | maybe-html-tk: html-tk | |
22631 | ||
22632 | html-tk: \ | |
22633 | configure-tk | |
22634 | @[ -f ./tk/Makefile ] || exit 0; \ | |
22635 | r=`${PWD_COMMAND}`; export r; \ | |
22636 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
22637 | $(HOST_EXPORTS) \ |
22638 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ | |
22639 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
22640 | done; \ | |
22641 | echo "Doing html in tk" ; \ | |
b00612cc | 22642 | (cd $(HOST_SUBDIR)/tk && \ |
6d389afc MS |
22643 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22644 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22645 | "RANLIB=$${RANLIB}" \ | |
22646 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
22647 | html) \ | |
22648 | || exit 1 | |
22649 | ||
22650 | @endif tk | |
22651 | ||
b813574b PB |
22652 | .PHONY: maybe-TAGS-tk TAGS-tk |
22653 | maybe-TAGS-tk: | |
22654 | @if tk | |
22655 | maybe-TAGS-tk: TAGS-tk | |
4fa63067 | 22656 | |
b813574b PB |
22657 | TAGS-tk: \ |
22658 | configure-tk | |
22659 | @[ -f ./tk/Makefile ] || exit 0; \ | |
4fa63067 | 22660 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 22661 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 22662 | $(HOST_EXPORTS) \ |
72b2455a | 22663 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
22664 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22665 | done; \ | |
b813574b | 22666 | echo "Doing TAGS in tk" ; \ |
b00612cc | 22667 | (cd $(HOST_SUBDIR)/tk && \ |
4fa63067 NN |
22668 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22669 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22670 | "RANLIB=$${RANLIB}" \ | |
22671 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 22672 | TAGS) \ |
4fa63067 | 22673 | || exit 1 |
3866be5d | 22674 | |
b813574b | 22675 | @endif tk |
3866be5d | 22676 | |
b813574b PB |
22677 | .PHONY: maybe-install-info-tk install-info-tk |
22678 | maybe-install-info-tk: | |
22679 | @if tk | |
22680 | maybe-install-info-tk: install-info-tk | |
4fa63067 | 22681 | |
b813574b PB |
22682 | install-info-tk: \ |
22683 | configure-tk \ | |
22684 | info-tk | |
22685 | @[ -f ./tk/Makefile ] || exit 0; \ | |
4fa63067 NN |
22686 | r=`${PWD_COMMAND}`; export r; \ |
22687 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22688 | $(HOST_EXPORTS) \ |
72b2455a | 22689 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
22690 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22691 | done; \ | |
b813574b | 22692 | echo "Doing install-info in tk" ; \ |
b00612cc | 22693 | (cd $(HOST_SUBDIR)/tk && \ |
4fa63067 NN |
22694 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22695 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22696 | "RANLIB=$${RANLIB}" \ | |
22697 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 22698 | install-info) \ |
4fa63067 NN |
22699 | || exit 1 |
22700 | ||
b813574b | 22701 | @endif tk |
4fa63067 | 22702 | |
b813574b PB |
22703 | .PHONY: maybe-installcheck-tk installcheck-tk |
22704 | maybe-installcheck-tk: | |
22705 | @if tk | |
22706 | maybe-installcheck-tk: installcheck-tk | |
4fa63067 | 22707 | |
b813574b PB |
22708 | installcheck-tk: \ |
22709 | configure-tk | |
22710 | @[ -f ./tk/Makefile ] || exit 0; \ | |
4fa63067 NN |
22711 | r=`${PWD_COMMAND}`; export r; \ |
22712 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22713 | $(HOST_EXPORTS) \ |
72b2455a | 22714 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
22715 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22716 | done; \ | |
b813574b | 22717 | echo "Doing installcheck in tk" ; \ |
b00612cc | 22718 | (cd $(HOST_SUBDIR)/tk && \ |
4fa63067 NN |
22719 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22720 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22721 | "RANLIB=$${RANLIB}" \ | |
22722 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 22723 | installcheck) \ |
4fa63067 NN |
22724 | || exit 1 |
22725 | ||
b813574b | 22726 | @endif tk |
4fa63067 | 22727 | |
b813574b PB |
22728 | .PHONY: maybe-mostlyclean-tk mostlyclean-tk |
22729 | maybe-mostlyclean-tk: | |
22730 | @if tk | |
22731 | maybe-mostlyclean-tk: mostlyclean-tk | |
4fa63067 | 22732 | |
b813574b PB |
22733 | mostlyclean-tk: |
22734 | @[ -f ./tk/Makefile ] || exit 0; \ | |
4fa63067 NN |
22735 | r=`${PWD_COMMAND}`; export r; \ |
22736 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22737 | $(HOST_EXPORTS) \ |
72b2455a | 22738 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
22739 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22740 | done; \ | |
b813574b | 22741 | echo "Doing mostlyclean in tk" ; \ |
b00612cc | 22742 | (cd $(HOST_SUBDIR)/tk && \ |
4fa63067 NN |
22743 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22744 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22745 | "RANLIB=$${RANLIB}" \ | |
22746 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 22747 | mostlyclean) \ |
4fa63067 NN |
22748 | || exit 1 |
22749 | ||
b813574b | 22750 | @endif tk |
4fa63067 | 22751 | |
b813574b PB |
22752 | .PHONY: maybe-clean-tk clean-tk |
22753 | maybe-clean-tk: | |
22754 | @if tk | |
22755 | maybe-clean-tk: clean-tk | |
4fa63067 | 22756 | |
b813574b PB |
22757 | clean-tk: |
22758 | @[ -f ./tk/Makefile ] || exit 0; \ | |
4fa63067 NN |
22759 | r=`${PWD_COMMAND}`; export r; \ |
22760 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22761 | $(HOST_EXPORTS) \ |
72b2455a | 22762 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
22763 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22764 | done; \ | |
b813574b | 22765 | echo "Doing clean in tk" ; \ |
b00612cc | 22766 | (cd $(HOST_SUBDIR)/tk && \ |
4fa63067 NN |
22767 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22768 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22769 | "RANLIB=$${RANLIB}" \ | |
22770 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 22771 | clean) \ |
4fa63067 NN |
22772 | || exit 1 |
22773 | ||
b813574b | 22774 | @endif tk |
4fa63067 | 22775 | |
b813574b PB |
22776 | .PHONY: maybe-distclean-tk distclean-tk |
22777 | maybe-distclean-tk: | |
22778 | @if tk | |
22779 | maybe-distclean-tk: distclean-tk | |
4fa63067 | 22780 | |
b813574b PB |
22781 | distclean-tk: |
22782 | @[ -f ./tk/Makefile ] || exit 0; \ | |
4fa63067 NN |
22783 | r=`${PWD_COMMAND}`; export r; \ |
22784 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22785 | $(HOST_EXPORTS) \ |
72b2455a | 22786 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
22787 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22788 | done; \ | |
b813574b | 22789 | echo "Doing distclean in tk" ; \ |
b00612cc | 22790 | (cd $(HOST_SUBDIR)/tk && \ |
4fa63067 NN |
22791 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22792 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22793 | "RANLIB=$${RANLIB}" \ | |
22794 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 22795 | distclean) \ |
4fa63067 NN |
22796 | || exit 1 |
22797 | ||
b813574b | 22798 | @endif tk |
4fa63067 | 22799 | |
b813574b PB |
22800 | .PHONY: maybe-maintainer-clean-tk maintainer-clean-tk |
22801 | maybe-maintainer-clean-tk: | |
22802 | @if tk | |
22803 | maybe-maintainer-clean-tk: maintainer-clean-tk | |
16ae0395 | 22804 | |
b813574b PB |
22805 | maintainer-clean-tk: |
22806 | @[ -f ./tk/Makefile ] || exit 0; \ | |
4fa63067 | 22807 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 22808 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 22809 | $(HOST_EXPORTS) \ |
72b2455a | 22810 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
22811 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22812 | done; \ | |
b813574b | 22813 | echo "Doing maintainer-clean in tk" ; \ |
b00612cc | 22814 | (cd $(HOST_SUBDIR)/tk && \ |
4fa63067 NN |
22815 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22816 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22817 | "RANLIB=$${RANLIB}" \ | |
22818 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 22819 | maintainer-clean) \ |
4fa63067 | 22820 | || exit 1 |
3866be5d | 22821 | |
b813574b | 22822 | @endif tk |
3866be5d | 22823 | |
4fa63067 | 22824 | |
a7254363 | 22825 | |
b813574b PB |
22826 | .PHONY: configure-libtermcap maybe-configure-libtermcap |
22827 | maybe-configure-libtermcap: | |
22828 | @if libtermcap | |
22829 | maybe-configure-libtermcap: configure-libtermcap | |
a7254363 | 22830 | configure-libtermcap: |
b00612cc PB |
22831 | @test ! -f $(HOST_SUBDIR)/libtermcap/Makefile || exit 0; \ |
22832 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libtermcap ; \ | |
b813574b PB |
22833 | r=`${PWD_COMMAND}`; export r; \ |
22834 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
22835 | $(HOST_EXPORTS) \ | |
a7254363 PB |
22836 | echo Configuring in $(HOST_SUBDIR)/libtermcap; \ |
22837 | cd "$(HOST_SUBDIR)/libtermcap" || exit 1; \ | |
b813574b | 22838 | case $(srcdir) in \ |
b00612cc PB |
22839 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
22840 | *) topdir=`echo $(HOST_SUBDIR)/libtermcap/ | \ | |
22841 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
b813574b | 22842 | esac; \ |
b00612cc PB |
22843 | srcdiroption="--srcdir=$${topdir}/libtermcap"; \ |
22844 | libsrcdir="$$s/libtermcap"; \ | |
b813574b PB |
22845 | $(SHELL) $${libsrcdir}/configure \ |
22846 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
22847 | || exit 1 | |
22848 | @endif libtermcap | |
22849 | ||
a7254363 PB |
22850 | |
22851 | ||
b813574b PB |
22852 | .PHONY: all-libtermcap maybe-all-libtermcap |
22853 | maybe-all-libtermcap: | |
22854 | @if libtermcap | |
d27cc32e | 22855 | TARGET-libtermcap=all |
b813574b PB |
22856 | maybe-all-libtermcap: all-libtermcap |
22857 | all-libtermcap: configure-libtermcap | |
22858 | @r=`${PWD_COMMAND}`; export r; \ | |
22859 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b813574b | 22860 | $(HOST_EXPORTS) \ |
b00612cc PB |
22861 | (cd $(HOST_SUBDIR)/libtermcap && \ |
22862 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-libtermcap)) | |
b813574b PB |
22863 | @endif libtermcap |
22864 | ||
a7254363 | 22865 | |
b813574b PB |
22866 | .PHONY: check-libtermcap maybe-check-libtermcap |
22867 | maybe-check-libtermcap: | |
22868 | @if libtermcap | |
22869 | maybe-check-libtermcap: check-libtermcap | |
22870 | ||
22871 | check-libtermcap: | |
4fa63067 | 22872 | |
6bd3dfaa | 22873 | @endif libtermcap |
4fa63067 NN |
22874 | |
22875 | .PHONY: install-libtermcap maybe-install-libtermcap | |
22876 | maybe-install-libtermcap: | |
6bd3dfaa PB |
22877 | @if libtermcap |
22878 | maybe-install-libtermcap: install-libtermcap | |
4fa63067 NN |
22879 | |
22880 | install-libtermcap: installdirs | |
b40e3958 L |
22881 | @r=`${PWD_COMMAND}`; export r; \ |
22882 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22883 | $(HOST_EXPORTS) \ |
b00612cc | 22884 | (cd $(HOST_SUBDIR)/libtermcap && \ |
2da12f12 | 22885 | $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d | 22886 | |
6bd3dfaa | 22887 | @endif libtermcap |
3866be5d | 22888 | |
4fa63067 | 22889 | # Other targets (info, dvi, etc.) |
16ae0395 | 22890 | |
4fa63067 NN |
22891 | .PHONY: maybe-info-libtermcap info-libtermcap |
22892 | maybe-info-libtermcap: | |
6bd3dfaa PB |
22893 | @if libtermcap |
22894 | maybe-info-libtermcap: info-libtermcap | |
4fa63067 NN |
22895 | |
22896 | info-libtermcap: \ | |
22897 | configure-libtermcap | |
22898 | @[ -f ./libtermcap/Makefile ] || exit 0; \ | |
22899 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 22900 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 22901 | $(HOST_EXPORTS) \ |
b813574b | 22902 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
22903 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22904 | done; \ | |
22905 | echo "Doing info in libtermcap" ; \ | |
b00612cc | 22906 | (cd $(HOST_SUBDIR)/libtermcap && \ |
4fa63067 NN |
22907 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22908 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22909 | "RANLIB=$${RANLIB}" \ | |
22910 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 22911 | info) \ |
4fa63067 | 22912 | || exit 1 |
3866be5d | 22913 | |
6bd3dfaa | 22914 | @endif libtermcap |
3866be5d | 22915 | |
4fa63067 NN |
22916 | .PHONY: maybe-dvi-libtermcap dvi-libtermcap |
22917 | maybe-dvi-libtermcap: | |
6bd3dfaa PB |
22918 | @if libtermcap |
22919 | maybe-dvi-libtermcap: dvi-libtermcap | |
4fa63067 NN |
22920 | |
22921 | dvi-libtermcap: \ | |
22922 | configure-libtermcap | |
22923 | @[ -f ./libtermcap/Makefile ] || exit 0; \ | |
22924 | r=`${PWD_COMMAND}`; export r; \ | |
22925 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22926 | $(HOST_EXPORTS) \ |
b813574b | 22927 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
22928 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22929 | done; \ | |
22930 | echo "Doing dvi in libtermcap" ; \ | |
b00612cc | 22931 | (cd $(HOST_SUBDIR)/libtermcap && \ |
4fa63067 NN |
22932 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22933 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22934 | "RANLIB=$${RANLIB}" \ | |
22935 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 22936 | dvi) \ |
4fa63067 NN |
22937 | || exit 1 |
22938 | ||
6bd3dfaa | 22939 | @endif libtermcap |
4fa63067 | 22940 | |
6d389afc MS |
22941 | .PHONY: maybe-html-libtermcap html-libtermcap |
22942 | maybe-html-libtermcap: | |
22943 | @if libtermcap | |
22944 | maybe-html-libtermcap: html-libtermcap | |
22945 | ||
22946 | html-libtermcap: \ | |
22947 | configure-libtermcap | |
22948 | @[ -f ./libtermcap/Makefile ] || exit 0; \ | |
22949 | r=`${PWD_COMMAND}`; export r; \ | |
22950 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
22951 | $(HOST_EXPORTS) \ |
22952 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
22953 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
22954 | done; \ | |
22955 | echo "Doing html in libtermcap" ; \ | |
b00612cc | 22956 | (cd $(HOST_SUBDIR)/libtermcap && \ |
6d389afc MS |
22957 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22958 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22959 | "RANLIB=$${RANLIB}" \ | |
22960 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
22961 | html) \ | |
22962 | || exit 1 | |
22963 | ||
22964 | @endif libtermcap | |
22965 | ||
4fa63067 NN |
22966 | .PHONY: maybe-TAGS-libtermcap TAGS-libtermcap |
22967 | maybe-TAGS-libtermcap: | |
6bd3dfaa PB |
22968 | @if libtermcap |
22969 | maybe-TAGS-libtermcap: TAGS-libtermcap | |
4fa63067 NN |
22970 | |
22971 | TAGS-libtermcap: \ | |
22972 | configure-libtermcap | |
22973 | @[ -f ./libtermcap/Makefile ] || exit 0; \ | |
22974 | r=`${PWD_COMMAND}`; export r; \ | |
22975 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22976 | $(HOST_EXPORTS) \ |
b813574b | 22977 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
22978 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22979 | done; \ | |
22980 | echo "Doing TAGS in libtermcap" ; \ | |
b00612cc | 22981 | (cd $(HOST_SUBDIR)/libtermcap && \ |
4fa63067 NN |
22982 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22983 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22984 | "RANLIB=$${RANLIB}" \ | |
22985 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 22986 | TAGS) \ |
4fa63067 NN |
22987 | || exit 1 |
22988 | ||
6bd3dfaa | 22989 | @endif libtermcap |
4fa63067 NN |
22990 | |
22991 | .PHONY: maybe-install-info-libtermcap install-info-libtermcap | |
22992 | maybe-install-info-libtermcap: | |
6bd3dfaa PB |
22993 | @if libtermcap |
22994 | maybe-install-info-libtermcap: install-info-libtermcap | |
4fa63067 NN |
22995 | |
22996 | install-info-libtermcap: \ | |
22997 | configure-libtermcap \ | |
22998 | info-libtermcap | |
22999 | @[ -f ./libtermcap/Makefile ] || exit 0; \ | |
23000 | r=`${PWD_COMMAND}`; export r; \ | |
23001 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 23002 | $(HOST_EXPORTS) \ |
b813574b | 23003 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
23004 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
23005 | done; \ | |
23006 | echo "Doing install-info in libtermcap" ; \ | |
b00612cc | 23007 | (cd $(HOST_SUBDIR)/libtermcap && \ |
4fa63067 NN |
23008 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
23009 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23010 | "RANLIB=$${RANLIB}" \ | |
23011 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 23012 | install-info) \ |
4fa63067 NN |
23013 | || exit 1 |
23014 | ||
6bd3dfaa | 23015 | @endif libtermcap |
4fa63067 NN |
23016 | |
23017 | .PHONY: maybe-installcheck-libtermcap installcheck-libtermcap | |
23018 | maybe-installcheck-libtermcap: | |
6bd3dfaa PB |
23019 | @if libtermcap |
23020 | maybe-installcheck-libtermcap: installcheck-libtermcap | |
4fa63067 NN |
23021 | |
23022 | installcheck-libtermcap: \ | |
23023 | configure-libtermcap | |
23024 | @[ -f ./libtermcap/Makefile ] || exit 0; \ | |
23025 | r=`${PWD_COMMAND}`; export r; \ | |
23026 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 23027 | $(HOST_EXPORTS) \ |
b813574b | 23028 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
23029 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
23030 | done; \ | |
23031 | echo "Doing installcheck in libtermcap" ; \ | |
b00612cc | 23032 | (cd $(HOST_SUBDIR)/libtermcap && \ |
4fa63067 NN |
23033 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
23034 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23035 | "RANLIB=$${RANLIB}" \ | |
23036 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 23037 | installcheck) \ |
4fa63067 NN |
23038 | || exit 1 |
23039 | ||
6bd3dfaa | 23040 | @endif libtermcap |
4fa63067 NN |
23041 | |
23042 | .PHONY: maybe-mostlyclean-libtermcap mostlyclean-libtermcap | |
23043 | maybe-mostlyclean-libtermcap: | |
6bd3dfaa PB |
23044 | @if libtermcap |
23045 | maybe-mostlyclean-libtermcap: mostlyclean-libtermcap | |
4fa63067 NN |
23046 | |
23047 | # libtermcap doesn't support mostlyclean. | |
23048 | mostlyclean-libtermcap: | |
23049 | ||
6bd3dfaa | 23050 | @endif libtermcap |
4fa63067 NN |
23051 | |
23052 | .PHONY: maybe-clean-libtermcap clean-libtermcap | |
23053 | maybe-clean-libtermcap: | |
6bd3dfaa PB |
23054 | @if libtermcap |
23055 | maybe-clean-libtermcap: clean-libtermcap | |
4fa63067 NN |
23056 | |
23057 | # libtermcap doesn't support clean. | |
23058 | clean-libtermcap: | |
23059 | ||
6bd3dfaa | 23060 | @endif libtermcap |
4fa63067 NN |
23061 | |
23062 | .PHONY: maybe-distclean-libtermcap distclean-libtermcap | |
23063 | maybe-distclean-libtermcap: | |
6bd3dfaa PB |
23064 | @if libtermcap |
23065 | maybe-distclean-libtermcap: distclean-libtermcap | |
4fa63067 NN |
23066 | |
23067 | # libtermcap doesn't support distclean. | |
23068 | distclean-libtermcap: | |
23069 | ||
6bd3dfaa | 23070 | @endif libtermcap |
4fa63067 NN |
23071 | |
23072 | .PHONY: maybe-maintainer-clean-libtermcap maintainer-clean-libtermcap | |
23073 | maybe-maintainer-clean-libtermcap: | |
6bd3dfaa PB |
23074 | @if libtermcap |
23075 | maybe-maintainer-clean-libtermcap: maintainer-clean-libtermcap | |
4fa63067 NN |
23076 | |
23077 | # libtermcap doesn't support maintainer-clean. | |
23078 | maintainer-clean-libtermcap: | |
23079 | ||
6bd3dfaa | 23080 | @endif libtermcap |
4fa63067 NN |
23081 | |
23082 | ||
a7254363 | 23083 | |
4fa63067 NN |
23084 | .PHONY: configure-utils maybe-configure-utils |
23085 | maybe-configure-utils: | |
6bd3dfaa PB |
23086 | @if utils |
23087 | maybe-configure-utils: configure-utils | |
a7254363 | 23088 | configure-utils: |
b00612cc PB |
23089 | @test ! -f $(HOST_SUBDIR)/utils/Makefile || exit 0; \ |
23090 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/utils ; \ | |
b40e3958 L |
23091 | r=`${PWD_COMMAND}`; export r; \ |
23092 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 23093 | $(HOST_EXPORTS) \ |
a7254363 PB |
23094 | echo Configuring in $(HOST_SUBDIR)/utils; \ |
23095 | cd "$(HOST_SUBDIR)/utils" || exit 1; \ | |
e2b9e2dc | 23096 | case $(srcdir) in \ |
b00612cc PB |
23097 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
23098 | *) topdir=`echo $(HOST_SUBDIR)/utils/ | \ | |
23099 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 23100 | esac; \ |
b00612cc PB |
23101 | srcdiroption="--srcdir=$${topdir}/utils"; \ |
23102 | libsrcdir="$$s/utils"; \ | |
e2b9e2dc | 23103 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 23104 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 23105 | || exit 1 |
6bd3dfaa | 23106 | @endif utils |
e2b9e2dc | 23107 | |
a7254363 PB |
23108 | |
23109 | ||
4fa63067 NN |
23110 | .PHONY: all-utils maybe-all-utils |
23111 | maybe-all-utils: | |
6bd3dfaa | 23112 | @if utils |
d27cc32e | 23113 | TARGET-utils=all |
6bd3dfaa | 23114 | maybe-all-utils: all-utils |
4fa63067 NN |
23115 | all-utils: configure-utils |
23116 | @r=`${PWD_COMMAND}`; export r; \ | |
23117 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 23118 | $(HOST_EXPORTS) \ |
b00612cc PB |
23119 | (cd $(HOST_SUBDIR)/utils && \ |
23120 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-utils)) | |
6bd3dfaa | 23121 | @endif utils |
4fa63067 | 23122 | |
a7254363 | 23123 | |
4fa63067 NN |
23124 | .PHONY: check-utils maybe-check-utils |
23125 | maybe-check-utils: | |
6bd3dfaa PB |
23126 | @if utils |
23127 | maybe-check-utils: check-utils | |
4fa63067 NN |
23128 | |
23129 | check-utils: | |
23130 | ||
6bd3dfaa | 23131 | @endif utils |
4fa63067 NN |
23132 | |
23133 | .PHONY: install-utils maybe-install-utils | |
23134 | maybe-install-utils: | |
6bd3dfaa PB |
23135 | @if utils |
23136 | maybe-install-utils: install-utils | |
4fa63067 NN |
23137 | |
23138 | install-utils: installdirs | |
23139 | @r=`${PWD_COMMAND}`; export r; \ | |
23140 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 23141 | $(HOST_EXPORTS) \ |
b00612cc | 23142 | (cd $(HOST_SUBDIR)/utils && \ |
2da12f12 | 23143 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 23144 | |
6bd3dfaa | 23145 | @endif utils |
4fa63067 NN |
23146 | |
23147 | # Other targets (info, dvi, etc.) | |
23148 | ||
23149 | .PHONY: maybe-info-utils info-utils | |
23150 | maybe-info-utils: | |
6bd3dfaa PB |
23151 | @if utils |
23152 | maybe-info-utils: info-utils | |
4fa63067 NN |
23153 | |
23154 | info-utils: \ | |
23155 | configure-utils | |
23156 | @[ -f ./utils/Makefile ] || exit 0; \ | |
23157 | r=`${PWD_COMMAND}`; export r; \ | |
23158 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 23159 | $(HOST_EXPORTS) \ |
b813574b | 23160 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
23161 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
23162 | done; \ | |
23163 | echo "Doing info in utils" ; \ | |
b00612cc | 23164 | (cd $(HOST_SUBDIR)/utils && \ |
4fa63067 NN |
23165 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
23166 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23167 | "RANLIB=$${RANLIB}" \ | |
23168 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 23169 | info) \ |
4fa63067 NN |
23170 | || exit 1 |
23171 | ||
6bd3dfaa | 23172 | @endif utils |
4fa63067 NN |
23173 | |
23174 | .PHONY: maybe-dvi-utils dvi-utils | |
23175 | maybe-dvi-utils: | |
6bd3dfaa PB |
23176 | @if utils |
23177 | maybe-dvi-utils: dvi-utils | |
4fa63067 NN |
23178 | |
23179 | dvi-utils: \ | |
23180 | configure-utils | |
23181 | @[ -f ./utils/Makefile ] || exit 0; \ | |
23182 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 23183 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 23184 | $(HOST_EXPORTS) \ |
b813574b | 23185 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
23186 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
23187 | done; \ | |
23188 | echo "Doing dvi in utils" ; \ | |
b00612cc | 23189 | (cd $(HOST_SUBDIR)/utils && \ |
4fa63067 NN |
23190 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
23191 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23192 | "RANLIB=$${RANLIB}" \ | |
23193 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 23194 | dvi) \ |
4fa63067 | 23195 | || exit 1 |
3866be5d | 23196 | |
6bd3dfaa | 23197 | @endif utils |
3866be5d | 23198 | |
6d389afc MS |
23199 | .PHONY: maybe-html-utils html-utils |
23200 | maybe-html-utils: | |
23201 | @if utils | |
23202 | maybe-html-utils: html-utils | |
23203 | ||
23204 | html-utils: \ | |
23205 | configure-utils | |
23206 | @[ -f ./utils/Makefile ] || exit 0; \ | |
23207 | r=`${PWD_COMMAND}`; export r; \ | |
23208 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
23209 | $(HOST_EXPORTS) \ |
23210 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
23211 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
23212 | done; \ | |
23213 | echo "Doing html in utils" ; \ | |
b00612cc | 23214 | (cd $(HOST_SUBDIR)/utils && \ |
6d389afc MS |
23215 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
23216 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23217 | "RANLIB=$${RANLIB}" \ | |
23218 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
23219 | html) \ | |
23220 | || exit 1 | |
23221 | ||
23222 | @endif utils | |
23223 | ||
4fa63067 NN |
23224 | .PHONY: maybe-TAGS-utils TAGS-utils |
23225 | maybe-TAGS-utils: | |
6bd3dfaa PB |
23226 | @if utils |
23227 | maybe-TAGS-utils: TAGS-utils | |
4fa63067 NN |
23228 | |
23229 | TAGS-utils: \ | |
23230 | configure-utils | |
23231 | @[ -f ./utils/Makefile ] || exit 0; \ | |
23232 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 23233 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 23234 | $(HOST_EXPORTS) \ |
b813574b | 23235 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
23236 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
23237 | done; \ | |
23238 | echo "Doing TAGS in utils" ; \ | |
b00612cc | 23239 | (cd $(HOST_SUBDIR)/utils && \ |
4fa63067 NN |
23240 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
23241 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23242 | "RANLIB=$${RANLIB}" \ | |
23243 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 23244 | TAGS) \ |
4fa63067 | 23245 | || exit 1 |
3866be5d | 23246 | |
6bd3dfaa | 23247 | @endif utils |
3866be5d | 23248 | |
4fa63067 NN |
23249 | .PHONY: maybe-install-info-utils install-info-utils |
23250 | maybe-install-info-utils: | |
6bd3dfaa PB |
23251 | @if utils |
23252 | maybe-install-info-utils: install-info-utils | |
16ae0395 | 23253 | |
4fa63067 NN |
23254 | install-info-utils: \ |
23255 | configure-utils \ | |
23256 | info-utils | |
23257 | @[ -f ./utils/Makefile ] || exit 0; \ | |
23258 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 23259 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 23260 | $(HOST_EXPORTS) \ |
b813574b | 23261 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
23262 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
23263 | done; \ | |
23264 | echo "Doing install-info in utils" ; \ | |
b00612cc | 23265 | (cd $(HOST_SUBDIR)/utils && \ |
4fa63067 NN |
23266 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
23267 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23268 | "RANLIB=$${RANLIB}" \ | |
23269 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 23270 | install-info) \ |
4fa63067 | 23271 | || exit 1 |
3866be5d | 23272 | |
6bd3dfaa | 23273 | @endif utils |
3866be5d | 23274 | |
4fa63067 NN |
23275 | .PHONY: maybe-installcheck-utils installcheck-utils |
23276 | maybe-installcheck-utils: | |
6bd3dfaa PB |
23277 | @if utils |
23278 | maybe-installcheck-utils: installcheck-utils | |
4fa63067 NN |
23279 | |
23280 | installcheck-utils: \ | |
23281 | configure-utils | |
23282 | @[ -f ./utils/Makefile ] || exit 0; \ | |
b40e3958 L |
23283 | r=`${PWD_COMMAND}`; export r; \ |
23284 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 23285 | $(HOST_EXPORTS) \ |
b813574b | 23286 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
23287 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
23288 | done; \ | |
23289 | echo "Doing installcheck in utils" ; \ | |
b00612cc | 23290 | (cd $(HOST_SUBDIR)/utils && \ |
4fa63067 NN |
23291 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
23292 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23293 | "RANLIB=$${RANLIB}" \ | |
23294 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 23295 | installcheck) \ |
e2b9e2dc NN |
23296 | || exit 1 |
23297 | ||
6bd3dfaa | 23298 | @endif utils |
4fa63067 NN |
23299 | |
23300 | .PHONY: maybe-mostlyclean-utils mostlyclean-utils | |
23301 | maybe-mostlyclean-utils: | |
6bd3dfaa PB |
23302 | @if utils |
23303 | maybe-mostlyclean-utils: mostlyclean-utils | |
4fa63067 NN |
23304 | |
23305 | mostlyclean-utils: | |
23306 | @[ -f ./utils/Makefile ] || exit 0; \ | |
23307 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 23308 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 23309 | $(HOST_EXPORTS) \ |
b813574b | 23310 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
23311 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
23312 | done; \ | |
23313 | echo "Doing mostlyclean in utils" ; \ | |
b00612cc | 23314 | (cd $(HOST_SUBDIR)/utils && \ |
4fa63067 NN |
23315 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
23316 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23317 | "RANLIB=$${RANLIB}" \ | |
23318 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 23319 | mostlyclean) \ |
4fa63067 | 23320 | || exit 1 |
3866be5d | 23321 | |
6bd3dfaa | 23322 | @endif utils |
3866be5d | 23323 | |
4fa63067 NN |
23324 | .PHONY: maybe-clean-utils clean-utils |
23325 | maybe-clean-utils: | |
6bd3dfaa PB |
23326 | @if utils |
23327 | maybe-clean-utils: clean-utils | |
4fa63067 NN |
23328 | |
23329 | clean-utils: | |
23330 | @[ -f ./utils/Makefile ] || exit 0; \ | |
23331 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 23332 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 23333 | $(HOST_EXPORTS) \ |
b813574b | 23334 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
23335 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
23336 | done; \ | |
23337 | echo "Doing clean in utils" ; \ | |
b00612cc | 23338 | (cd $(HOST_SUBDIR)/utils && \ |
4fa63067 NN |
23339 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
23340 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23341 | "RANLIB=$${RANLIB}" \ | |
23342 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 23343 | clean) \ |
4fa63067 | 23344 | || exit 1 |
3866be5d | 23345 | |
6bd3dfaa | 23346 | @endif utils |
3866be5d | 23347 | |
4fa63067 NN |
23348 | .PHONY: maybe-distclean-utils distclean-utils |
23349 | maybe-distclean-utils: | |
6bd3dfaa PB |
23350 | @if utils |
23351 | maybe-distclean-utils: distclean-utils | |
16ae0395 | 23352 | |
4fa63067 NN |
23353 | distclean-utils: |
23354 | @[ -f ./utils/Makefile ] || exit 0; \ | |
23355 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 23356 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 23357 | $(HOST_EXPORTS) \ |
b813574b | 23358 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
23359 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
23360 | done; \ | |
23361 | echo "Doing distclean in utils" ; \ | |
b00612cc | 23362 | (cd $(HOST_SUBDIR)/utils && \ |
4fa63067 NN |
23363 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
23364 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23365 | "RANLIB=$${RANLIB}" \ | |
23366 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 23367 | distclean) \ |
4fa63067 | 23368 | || exit 1 |
3866be5d | 23369 | |
6bd3dfaa | 23370 | @endif utils |
3866be5d | 23371 | |
4fa63067 NN |
23372 | .PHONY: maybe-maintainer-clean-utils maintainer-clean-utils |
23373 | maybe-maintainer-clean-utils: | |
6bd3dfaa PB |
23374 | @if utils |
23375 | maybe-maintainer-clean-utils: maintainer-clean-utils | |
4fa63067 NN |
23376 | |
23377 | maintainer-clean-utils: | |
23378 | @[ -f ./utils/Makefile ] || exit 0; \ | |
b40e3958 L |
23379 | r=`${PWD_COMMAND}`; export r; \ |
23380 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 23381 | $(HOST_EXPORTS) \ |
b813574b | 23382 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
23383 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
23384 | done; \ | |
23385 | echo "Doing maintainer-clean in utils" ; \ | |
b00612cc | 23386 | (cd $(HOST_SUBDIR)/utils && \ |
4fa63067 NN |
23387 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
23388 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23389 | "RANLIB=$${RANLIB}" \ | |
23390 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 23391 | maintainer-clean) \ |
e2b9e2dc NN |
23392 | || exit 1 |
23393 | ||
6bd3dfaa | 23394 | @endif utils |
3866be5d | 23395 | |
3866be5d | 23396 | |
a7254363 | 23397 | |
b00612cc PB |
23398 | .PHONY: configure-gnattools maybe-configure-gnattools |
23399 | maybe-configure-gnattools: | |
23400 | @if gnattools | |
23401 | maybe-configure-gnattools: configure-gnattools | |
a7254363 | 23402 | configure-gnattools: |
b00612cc PB |
23403 | @test ! -f $(HOST_SUBDIR)/gnattools/Makefile || exit 0; \ |
23404 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gnattools ; \ | |
23405 | r=`${PWD_COMMAND}`; export r; \ | |
23406 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
23407 | $(HOST_EXPORTS) \ | |
a7254363 PB |
23408 | echo Configuring in $(HOST_SUBDIR)/gnattools; \ |
23409 | cd "$(HOST_SUBDIR)/gnattools" || exit 1; \ | |
b00612cc PB |
23410 | case $(srcdir) in \ |
23411 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
23412 | *) topdir=`echo $(HOST_SUBDIR)/gnattools/ | \ | |
23413 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
23414 | esac; \ | |
23415 | srcdiroption="--srcdir=$${topdir}/gnattools"; \ | |
23416 | libsrcdir="$$s/gnattools"; \ | |
23417 | $(SHELL) $${libsrcdir}/configure \ | |
23418 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
23419 | || exit 1 | |
23420 | @endif gnattools | |
23421 | ||
a7254363 PB |
23422 | |
23423 | ||
b00612cc PB |
23424 | .PHONY: all-gnattools maybe-all-gnattools |
23425 | maybe-all-gnattools: | |
23426 | @if gnattools | |
23427 | TARGET-gnattools=all | |
23428 | maybe-all-gnattools: all-gnattools | |
23429 | all-gnattools: configure-gnattools | |
23430 | @r=`${PWD_COMMAND}`; export r; \ | |
23431 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b00612cc PB |
23432 | $(HOST_EXPORTS) \ |
23433 | (cd $(HOST_SUBDIR)/gnattools && \ | |
23434 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-gnattools)) | |
23435 | @endif gnattools | |
23436 | ||
a7254363 | 23437 | |
b00612cc PB |
23438 | .PHONY: check-gnattools maybe-check-gnattools |
23439 | maybe-check-gnattools: | |
23440 | @if gnattools | |
23441 | maybe-check-gnattools: check-gnattools | |
23442 | ||
23443 | check-gnattools: | |
23444 | @r=`${PWD_COMMAND}`; export r; \ | |
23445 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b00612cc PB |
23446 | $(HOST_EXPORTS) \ |
23447 | (cd $(HOST_SUBDIR)/gnattools && \ | |
23448 | $(MAKE) $(FLAGS_TO_PASS) check) | |
23449 | ||
23450 | @endif gnattools | |
23451 | ||
23452 | .PHONY: install-gnattools maybe-install-gnattools | |
23453 | maybe-install-gnattools: | |
23454 | @if gnattools | |
23455 | maybe-install-gnattools: install-gnattools | |
23456 | ||
23457 | install-gnattools: installdirs | |
23458 | @r=`${PWD_COMMAND}`; export r; \ | |
23459 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b00612cc PB |
23460 | $(HOST_EXPORTS) \ |
23461 | (cd $(HOST_SUBDIR)/gnattools && \ | |
2da12f12 | 23462 | $(MAKE) $(FLAGS_TO_PASS) install) |
b00612cc PB |
23463 | |
23464 | @endif gnattools | |
23465 | ||
23466 | # Other targets (info, dvi, etc.) | |
23467 | ||
23468 | .PHONY: maybe-info-gnattools info-gnattools | |
23469 | maybe-info-gnattools: | |
23470 | @if gnattools | |
23471 | maybe-info-gnattools: info-gnattools | |
23472 | ||
23473 | info-gnattools: \ | |
23474 | configure-gnattools | |
23475 | @[ -f ./gnattools/Makefile ] || exit 0; \ | |
23476 | r=`${PWD_COMMAND}`; export r; \ | |
23477 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b00612cc PB |
23478 | $(HOST_EXPORTS) \ |
23479 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
23480 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
23481 | done; \ | |
23482 | echo "Doing info in gnattools" ; \ | |
23483 | (cd $(HOST_SUBDIR)/gnattools && \ | |
23484 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
23485 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23486 | "RANLIB=$${RANLIB}" \ | |
23487 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
23488 | info) \ | |
23489 | || exit 1 | |
23490 | ||
23491 | @endif gnattools | |
23492 | ||
23493 | .PHONY: maybe-dvi-gnattools dvi-gnattools | |
23494 | maybe-dvi-gnattools: | |
23495 | @if gnattools | |
23496 | maybe-dvi-gnattools: dvi-gnattools | |
23497 | ||
23498 | dvi-gnattools: \ | |
23499 | configure-gnattools | |
23500 | @[ -f ./gnattools/Makefile ] || exit 0; \ | |
23501 | r=`${PWD_COMMAND}`; export r; \ | |
23502 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b00612cc PB |
23503 | $(HOST_EXPORTS) \ |
23504 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
23505 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
23506 | done; \ | |
23507 | echo "Doing dvi in gnattools" ; \ | |
23508 | (cd $(HOST_SUBDIR)/gnattools && \ | |
23509 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
23510 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23511 | "RANLIB=$${RANLIB}" \ | |
23512 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
23513 | dvi) \ | |
23514 | || exit 1 | |
23515 | ||
23516 | @endif gnattools | |
23517 | ||
23518 | .PHONY: maybe-html-gnattools html-gnattools | |
23519 | maybe-html-gnattools: | |
23520 | @if gnattools | |
23521 | maybe-html-gnattools: html-gnattools | |
23522 | ||
23523 | html-gnattools: \ | |
23524 | configure-gnattools | |
23525 | @[ -f ./gnattools/Makefile ] || exit 0; \ | |
23526 | r=`${PWD_COMMAND}`; export r; \ | |
23527 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b00612cc PB |
23528 | $(HOST_EXPORTS) \ |
23529 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
23530 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
23531 | done; \ | |
23532 | echo "Doing html in gnattools" ; \ | |
23533 | (cd $(HOST_SUBDIR)/gnattools && \ | |
23534 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
23535 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23536 | "RANLIB=$${RANLIB}" \ | |
23537 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
23538 | html) \ | |
23539 | || exit 1 | |
23540 | ||
23541 | @endif gnattools | |
23542 | ||
23543 | .PHONY: maybe-TAGS-gnattools TAGS-gnattools | |
23544 | maybe-TAGS-gnattools: | |
23545 | @if gnattools | |
23546 | maybe-TAGS-gnattools: TAGS-gnattools | |
23547 | ||
23548 | TAGS-gnattools: \ | |
23549 | configure-gnattools | |
23550 | @[ -f ./gnattools/Makefile ] || exit 0; \ | |
23551 | r=`${PWD_COMMAND}`; export r; \ | |
23552 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b00612cc PB |
23553 | $(HOST_EXPORTS) \ |
23554 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
23555 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
23556 | done; \ | |
23557 | echo "Doing TAGS in gnattools" ; \ | |
23558 | (cd $(HOST_SUBDIR)/gnattools && \ | |
23559 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
23560 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23561 | "RANLIB=$${RANLIB}" \ | |
23562 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
23563 | TAGS) \ | |
23564 | || exit 1 | |
23565 | ||
23566 | @endif gnattools | |
23567 | ||
23568 | .PHONY: maybe-install-info-gnattools install-info-gnattools | |
23569 | maybe-install-info-gnattools: | |
23570 | @if gnattools | |
23571 | maybe-install-info-gnattools: install-info-gnattools | |
23572 | ||
23573 | install-info-gnattools: \ | |
23574 | configure-gnattools \ | |
23575 | info-gnattools | |
23576 | @[ -f ./gnattools/Makefile ] || exit 0; \ | |
23577 | r=`${PWD_COMMAND}`; export r; \ | |
23578 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b00612cc PB |
23579 | $(HOST_EXPORTS) \ |
23580 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
23581 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
23582 | done; \ | |
23583 | echo "Doing install-info in gnattools" ; \ | |
23584 | (cd $(HOST_SUBDIR)/gnattools && \ | |
23585 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
23586 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23587 | "RANLIB=$${RANLIB}" \ | |
23588 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
23589 | install-info) \ | |
23590 | || exit 1 | |
23591 | ||
23592 | @endif gnattools | |
23593 | ||
23594 | .PHONY: maybe-installcheck-gnattools installcheck-gnattools | |
23595 | maybe-installcheck-gnattools: | |
23596 | @if gnattools | |
23597 | maybe-installcheck-gnattools: installcheck-gnattools | |
23598 | ||
23599 | installcheck-gnattools: \ | |
23600 | configure-gnattools | |
23601 | @[ -f ./gnattools/Makefile ] || exit 0; \ | |
23602 | r=`${PWD_COMMAND}`; export r; \ | |
23603 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b00612cc PB |
23604 | $(HOST_EXPORTS) \ |
23605 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
23606 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
23607 | done; \ | |
23608 | echo "Doing installcheck in gnattools" ; \ | |
23609 | (cd $(HOST_SUBDIR)/gnattools && \ | |
23610 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
23611 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23612 | "RANLIB=$${RANLIB}" \ | |
23613 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
23614 | installcheck) \ | |
23615 | || exit 1 | |
23616 | ||
23617 | @endif gnattools | |
23618 | ||
23619 | .PHONY: maybe-mostlyclean-gnattools mostlyclean-gnattools | |
23620 | maybe-mostlyclean-gnattools: | |
23621 | @if gnattools | |
23622 | maybe-mostlyclean-gnattools: mostlyclean-gnattools | |
23623 | ||
23624 | mostlyclean-gnattools: | |
23625 | @[ -f ./gnattools/Makefile ] || exit 0; \ | |
23626 | r=`${PWD_COMMAND}`; export r; \ | |
23627 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b00612cc PB |
23628 | $(HOST_EXPORTS) \ |
23629 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
23630 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
23631 | done; \ | |
23632 | echo "Doing mostlyclean in gnattools" ; \ | |
23633 | (cd $(HOST_SUBDIR)/gnattools && \ | |
23634 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
23635 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23636 | "RANLIB=$${RANLIB}" \ | |
23637 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
23638 | mostlyclean) \ | |
23639 | || exit 1 | |
23640 | ||
23641 | @endif gnattools | |
23642 | ||
23643 | .PHONY: maybe-clean-gnattools clean-gnattools | |
23644 | maybe-clean-gnattools: | |
23645 | @if gnattools | |
23646 | maybe-clean-gnattools: clean-gnattools | |
23647 | ||
23648 | clean-gnattools: | |
23649 | @[ -f ./gnattools/Makefile ] || exit 0; \ | |
23650 | r=`${PWD_COMMAND}`; export r; \ | |
23651 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b00612cc PB |
23652 | $(HOST_EXPORTS) \ |
23653 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
23654 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
23655 | done; \ | |
23656 | echo "Doing clean in gnattools" ; \ | |
23657 | (cd $(HOST_SUBDIR)/gnattools && \ | |
23658 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
23659 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23660 | "RANLIB=$${RANLIB}" \ | |
23661 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
23662 | clean) \ | |
23663 | || exit 1 | |
23664 | ||
23665 | @endif gnattools | |
23666 | ||
23667 | .PHONY: maybe-distclean-gnattools distclean-gnattools | |
23668 | maybe-distclean-gnattools: | |
23669 | @if gnattools | |
23670 | maybe-distclean-gnattools: distclean-gnattools | |
23671 | ||
23672 | distclean-gnattools: | |
23673 | @[ -f ./gnattools/Makefile ] || exit 0; \ | |
23674 | r=`${PWD_COMMAND}`; export r; \ | |
23675 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b00612cc PB |
23676 | $(HOST_EXPORTS) \ |
23677 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
23678 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
23679 | done; \ | |
23680 | echo "Doing distclean in gnattools" ; \ | |
23681 | (cd $(HOST_SUBDIR)/gnattools && \ | |
23682 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
23683 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23684 | "RANLIB=$${RANLIB}" \ | |
23685 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
23686 | distclean) \ | |
23687 | || exit 1 | |
23688 | ||
23689 | @endif gnattools | |
23690 | ||
23691 | .PHONY: maybe-maintainer-clean-gnattools maintainer-clean-gnattools | |
23692 | maybe-maintainer-clean-gnattools: | |
23693 | @if gnattools | |
23694 | maybe-maintainer-clean-gnattools: maintainer-clean-gnattools | |
23695 | ||
23696 | maintainer-clean-gnattools: | |
23697 | @[ -f ./gnattools/Makefile ] || exit 0; \ | |
23698 | r=`${PWD_COMMAND}`; export r; \ | |
23699 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b00612cc PB |
23700 | $(HOST_EXPORTS) \ |
23701 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
23702 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
23703 | done; \ | |
23704 | echo "Doing maintainer-clean in gnattools" ; \ | |
23705 | (cd $(HOST_SUBDIR)/gnattools && \ | |
23706 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
23707 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23708 | "RANLIB=$${RANLIB}" \ | |
23709 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
23710 | maintainer-clean) \ | |
23711 | || exit 1 | |
23712 | ||
23713 | @endif gnattools | |
23714 | ||
23715 | ||
3866be5d | 23716 | |
4fa63067 NN |
23717 | # --------------------------------------- |
23718 | # Modules which run on the target machine | |
23719 | # --------------------------------------- | |
16ae0395 | 23720 | |
3866be5d | 23721 | |
4fa63067 | 23722 | # There's only one multilib.out. Cleverer subdirs shouldn't need it copied. |
a7254363 | 23723 | @if target-libstdc++-v3 |
4fa63067 NN |
23724 | $(TARGET_SUBDIR)/libstdc++-v3/multilib.out: multilib.out |
23725 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \ | |
23726 | rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || : ; \ | |
23727 | cp multilib.out $(TARGET_SUBDIR)/libstdc++-v3/multilib.out | |
a7254363 | 23728 | @endif target-libstdc++-v3 |
3866be5d | 23729 | |
a7254363 PB |
23730 | |
23731 | ||
23732 | .PHONY: configure-target-libstdc++-v3 maybe-configure-target-libstdc++-v3 | |
23733 | maybe-configure-target-libstdc++-v3: | |
23734 | @if target-libstdc++-v3 | |
23735 | maybe-configure-target-libstdc++-v3: configure-target-libstdc++-v3 | |
4fa63067 NN |
23736 | configure-target-libstdc++-v3: $(TARGET_SUBDIR)/libstdc++-v3/multilib.out |
23737 | @test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \ | |
23738 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \ | |
b40e3958 L |
23739 | r=`${PWD_COMMAND}`; export r; \ |
23740 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 23741 | $(RAW_CXX_TARGET_EXPORTS) \ |
4fa63067 NN |
23742 | echo Configuring in $(TARGET_SUBDIR)/libstdc++-v3; \ |
23743 | cd "$(TARGET_SUBDIR)/libstdc++-v3" || exit 1; \ | |
e2b9e2dc | 23744 | case $(srcdir) in \ |
b00612cc PB |
23745 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
23746 | *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \ | |
23747 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 23748 | esac; \ |
b00612cc PB |
23749 | srcdiroption="--srcdir=$${topdir}/libstdc++-v3"; \ |
23750 | libsrcdir="$$s/libstdc++-v3"; \ | |
4fa63067 NN |
23751 | rm -f no-such-file || : ; \ |
23752 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
a7254363 | 23753 | $(TARGET_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 23754 | || exit 1 |
6bd3dfaa | 23755 | @endif target-libstdc++-v3 |
e2b9e2dc | 23756 | |
a7254363 PB |
23757 | |
23758 | ||
4fa63067 NN |
23759 | .PHONY: all-target-libstdc++-v3 maybe-all-target-libstdc++-v3 |
23760 | maybe-all-target-libstdc++-v3: | |
6bd3dfaa | 23761 | @if target-libstdc++-v3 |
72b2455a | 23762 | TARGET-target-libstdc++-v3=all |
6bd3dfaa | 23763 | maybe-all-target-libstdc++-v3: all-target-libstdc++-v3 |
4fa63067 | 23764 | all-target-libstdc++-v3: configure-target-libstdc++-v3 |
b40e3958 L |
23765 | @r=`${PWD_COMMAND}`; export r; \ |
23766 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 23767 | $(RAW_CXX_TARGET_EXPORTS) \ |
4fa63067 | 23768 | (cd $(TARGET_SUBDIR)/libstdc++-v3 && \ |
a7254363 | 23769 | $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' $(TARGET-target-libstdc++-v3)) |
6bd3dfaa | 23770 | @endif target-libstdc++-v3 |
3866be5d | 23771 | |
a7254363 PB |
23772 | |
23773 | ||
4fa63067 NN |
23774 | .PHONY: check-target-libstdc++-v3 maybe-check-target-libstdc++-v3 |
23775 | maybe-check-target-libstdc++-v3: | |
6bd3dfaa PB |
23776 | @if target-libstdc++-v3 |
23777 | maybe-check-target-libstdc++-v3: check-target-libstdc++-v3 | |
3866be5d | 23778 | |
4fa63067 | 23779 | check-target-libstdc++-v3: |
b40e3958 L |
23780 | @r=`${PWD_COMMAND}`; export r; \ |
23781 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 23782 | $(RAW_CXX_TARGET_EXPORTS) \ |
4fa63067 | 23783 | (cd $(TARGET_SUBDIR)/libstdc++-v3 && \ |
7ffa0b57 | 23784 | $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check) |
3866be5d | 23785 | |
6bd3dfaa | 23786 | @endif target-libstdc++-v3 |
3866be5d | 23787 | |
4fa63067 NN |
23788 | .PHONY: install-target-libstdc++-v3 maybe-install-target-libstdc++-v3 |
23789 | maybe-install-target-libstdc++-v3: | |
6bd3dfaa PB |
23790 | @if target-libstdc++-v3 |
23791 | maybe-install-target-libstdc++-v3: install-target-libstdc++-v3 | |
16ae0395 | 23792 | |
4fa63067 | 23793 | install-target-libstdc++-v3: installdirs |
b40e3958 L |
23794 | @r=`${PWD_COMMAND}`; export r; \ |
23795 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 23796 | $(RAW_CXX_TARGET_EXPORTS) \ |
4fa63067 | 23797 | (cd $(TARGET_SUBDIR)/libstdc++-v3 && \ |
7ffa0b57 | 23798 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
3866be5d | 23799 | |
6bd3dfaa | 23800 | @endif target-libstdc++-v3 |
e2b9e2dc | 23801 | |
4fa63067 | 23802 | # Other targets (info, dvi, etc.) |
3866be5d | 23803 | |
4fa63067 NN |
23804 | .PHONY: maybe-info-target-libstdc++-v3 info-target-libstdc++-v3 |
23805 | maybe-info-target-libstdc++-v3: | |
6bd3dfaa PB |
23806 | @if target-libstdc++-v3 |
23807 | maybe-info-target-libstdc++-v3: info-target-libstdc++-v3 | |
3866be5d | 23808 | |
4fa63067 NN |
23809 | info-target-libstdc++-v3: \ |
23810 | configure-target-libstdc++-v3 | |
23811 | @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \ | |
23812 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 23813 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 23814 | $(RAW_CXX_TARGET_EXPORTS) \ |
4fa63067 NN |
23815 | echo "Doing info in $(TARGET_SUBDIR)/libstdc++-v3" ; \ |
23816 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
23817 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
23818 | done; \ | |
23819 | (cd $(TARGET_SUBDIR)/libstdc++-v3 && \ | |
23820 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
23821 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23822 | "RANLIB=$${RANLIB}" \ | |
23823 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 23824 | info) \ |
4fa63067 | 23825 | || exit 1 |
3866be5d | 23826 | |
6bd3dfaa | 23827 | @endif target-libstdc++-v3 |
3866be5d | 23828 | |
4fa63067 NN |
23829 | .PHONY: maybe-dvi-target-libstdc++-v3 dvi-target-libstdc++-v3 |
23830 | maybe-dvi-target-libstdc++-v3: | |
6bd3dfaa PB |
23831 | @if target-libstdc++-v3 |
23832 | maybe-dvi-target-libstdc++-v3: dvi-target-libstdc++-v3 | |
16ae0395 | 23833 | |
4fa63067 NN |
23834 | dvi-target-libstdc++-v3: \ |
23835 | configure-target-libstdc++-v3 | |
23836 | @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \ | |
23837 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 23838 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 23839 | $(RAW_CXX_TARGET_EXPORTS) \ |
4fa63067 NN |
23840 | echo "Doing dvi in $(TARGET_SUBDIR)/libstdc++-v3" ; \ |
23841 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
23842 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
23843 | done; \ | |
23844 | (cd $(TARGET_SUBDIR)/libstdc++-v3 && \ | |
23845 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
23846 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23847 | "RANLIB=$${RANLIB}" \ | |
23848 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 23849 | dvi) \ |
4fa63067 | 23850 | || exit 1 |
3866be5d | 23851 | |
6bd3dfaa | 23852 | @endif target-libstdc++-v3 |
3866be5d | 23853 | |
6d389afc MS |
23854 | .PHONY: maybe-html-target-libstdc++-v3 html-target-libstdc++-v3 |
23855 | maybe-html-target-libstdc++-v3: | |
23856 | @if target-libstdc++-v3 | |
23857 | maybe-html-target-libstdc++-v3: html-target-libstdc++-v3 | |
23858 | ||
23859 | html-target-libstdc++-v3: \ | |
23860 | configure-target-libstdc++-v3 | |
23861 | @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \ | |
23862 | r=`${PWD_COMMAND}`; export r; \ | |
23863 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
23864 | $(RAW_CXX_TARGET_EXPORTS) \ |
23865 | echo "Doing html in $(TARGET_SUBDIR)/libstdc++-v3" ; \ | |
23866 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
23867 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
23868 | done; \ | |
23869 | (cd $(TARGET_SUBDIR)/libstdc++-v3 && \ | |
23870 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
23871 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23872 | "RANLIB=$${RANLIB}" \ | |
23873 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
23874 | html) \ | |
23875 | || exit 1 | |
23876 | ||
23877 | @endif target-libstdc++-v3 | |
23878 | ||
4fa63067 NN |
23879 | .PHONY: maybe-TAGS-target-libstdc++-v3 TAGS-target-libstdc++-v3 |
23880 | maybe-TAGS-target-libstdc++-v3: | |
6bd3dfaa PB |
23881 | @if target-libstdc++-v3 |
23882 | maybe-TAGS-target-libstdc++-v3: TAGS-target-libstdc++-v3 | |
4fa63067 NN |
23883 | |
23884 | TAGS-target-libstdc++-v3: \ | |
23885 | configure-target-libstdc++-v3 | |
23886 | @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \ | |
b40e3958 L |
23887 | r=`${PWD_COMMAND}`; export r; \ |
23888 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 23889 | $(RAW_CXX_TARGET_EXPORTS) \ |
4fa63067 NN |
23890 | echo "Doing TAGS in $(TARGET_SUBDIR)/libstdc++-v3" ; \ |
23891 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
23892 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
23893 | done; \ | |
23894 | (cd $(TARGET_SUBDIR)/libstdc++-v3 && \ | |
23895 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
23896 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23897 | "RANLIB=$${RANLIB}" \ | |
23898 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 23899 | TAGS) \ |
e2b9e2dc NN |
23900 | || exit 1 |
23901 | ||
6bd3dfaa | 23902 | @endif target-libstdc++-v3 |
3866be5d | 23903 | |
4fa63067 NN |
23904 | .PHONY: maybe-install-info-target-libstdc++-v3 install-info-target-libstdc++-v3 |
23905 | maybe-install-info-target-libstdc++-v3: | |
6bd3dfaa PB |
23906 | @if target-libstdc++-v3 |
23907 | maybe-install-info-target-libstdc++-v3: install-info-target-libstdc++-v3 | |
3866be5d | 23908 | |
4fa63067 NN |
23909 | install-info-target-libstdc++-v3: \ |
23910 | configure-target-libstdc++-v3 \ | |
23911 | info-target-libstdc++-v3 | |
23912 | @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \ | |
23913 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 23914 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 23915 | $(RAW_CXX_TARGET_EXPORTS) \ |
4fa63067 NN |
23916 | echo "Doing install-info in $(TARGET_SUBDIR)/libstdc++-v3" ; \ |
23917 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
23918 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
23919 | done; \ | |
23920 | (cd $(TARGET_SUBDIR)/libstdc++-v3 && \ | |
23921 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
23922 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23923 | "RANLIB=$${RANLIB}" \ | |
23924 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 23925 | install-info) \ |
4fa63067 | 23926 | || exit 1 |
3866be5d | 23927 | |
6bd3dfaa | 23928 | @endif target-libstdc++-v3 |
3866be5d | 23929 | |
4fa63067 NN |
23930 | .PHONY: maybe-installcheck-target-libstdc++-v3 installcheck-target-libstdc++-v3 |
23931 | maybe-installcheck-target-libstdc++-v3: | |
6bd3dfaa PB |
23932 | @if target-libstdc++-v3 |
23933 | maybe-installcheck-target-libstdc++-v3: installcheck-target-libstdc++-v3 | |
16ae0395 | 23934 | |
4fa63067 NN |
23935 | installcheck-target-libstdc++-v3: \ |
23936 | configure-target-libstdc++-v3 | |
23937 | @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \ | |
23938 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 23939 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 23940 | $(RAW_CXX_TARGET_EXPORTS) \ |
4fa63067 NN |
23941 | echo "Doing installcheck in $(TARGET_SUBDIR)/libstdc++-v3" ; \ |
23942 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
23943 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
23944 | done; \ | |
23945 | (cd $(TARGET_SUBDIR)/libstdc++-v3 && \ | |
23946 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
23947 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23948 | "RANLIB=$${RANLIB}" \ | |
23949 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 23950 | installcheck) \ |
4fa63067 | 23951 | || exit 1 |
3866be5d | 23952 | |
6bd3dfaa | 23953 | @endif target-libstdc++-v3 |
3866be5d | 23954 | |
4fa63067 NN |
23955 | .PHONY: maybe-mostlyclean-target-libstdc++-v3 mostlyclean-target-libstdc++-v3 |
23956 | maybe-mostlyclean-target-libstdc++-v3: | |
6bd3dfaa PB |
23957 | @if target-libstdc++-v3 |
23958 | maybe-mostlyclean-target-libstdc++-v3: mostlyclean-target-libstdc++-v3 | |
4fa63067 NN |
23959 | |
23960 | mostlyclean-target-libstdc++-v3: | |
23961 | @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \ | |
b40e3958 L |
23962 | r=`${PWD_COMMAND}`; export r; \ |
23963 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 23964 | $(RAW_CXX_TARGET_EXPORTS) \ |
4fa63067 NN |
23965 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/libstdc++-v3" ; \ |
23966 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
23967 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
23968 | done; \ | |
23969 | (cd $(TARGET_SUBDIR)/libstdc++-v3 && \ | |
23970 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
23971 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23972 | "RANLIB=$${RANLIB}" \ | |
23973 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 23974 | mostlyclean) \ |
e2b9e2dc NN |
23975 | || exit 1 |
23976 | ||
6bd3dfaa | 23977 | @endif target-libstdc++-v3 |
4fa63067 NN |
23978 | |
23979 | .PHONY: maybe-clean-target-libstdc++-v3 clean-target-libstdc++-v3 | |
23980 | maybe-clean-target-libstdc++-v3: | |
6bd3dfaa PB |
23981 | @if target-libstdc++-v3 |
23982 | maybe-clean-target-libstdc++-v3: clean-target-libstdc++-v3 | |
4fa63067 NN |
23983 | |
23984 | clean-target-libstdc++-v3: | |
23985 | @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \ | |
23986 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 23987 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 23988 | $(RAW_CXX_TARGET_EXPORTS) \ |
4fa63067 NN |
23989 | echo "Doing clean in $(TARGET_SUBDIR)/libstdc++-v3" ; \ |
23990 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
23991 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
23992 | done; \ | |
23993 | (cd $(TARGET_SUBDIR)/libstdc++-v3 && \ | |
23994 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
23995 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23996 | "RANLIB=$${RANLIB}" \ | |
23997 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 23998 | clean) \ |
4fa63067 | 23999 | || exit 1 |
3866be5d | 24000 | |
6bd3dfaa | 24001 | @endif target-libstdc++-v3 |
3866be5d | 24002 | |
4fa63067 NN |
24003 | .PHONY: maybe-distclean-target-libstdc++-v3 distclean-target-libstdc++-v3 |
24004 | maybe-distclean-target-libstdc++-v3: | |
6bd3dfaa PB |
24005 | @if target-libstdc++-v3 |
24006 | maybe-distclean-target-libstdc++-v3: distclean-target-libstdc++-v3 | |
4fa63067 NN |
24007 | |
24008 | distclean-target-libstdc++-v3: | |
24009 | @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \ | |
24010 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 24011 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 24012 | $(RAW_CXX_TARGET_EXPORTS) \ |
4fa63067 NN |
24013 | echo "Doing distclean in $(TARGET_SUBDIR)/libstdc++-v3" ; \ |
24014 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
24015 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
24016 | done; \ | |
24017 | (cd $(TARGET_SUBDIR)/libstdc++-v3 && \ | |
24018 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
24019 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24020 | "RANLIB=$${RANLIB}" \ | |
24021 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 24022 | distclean) \ |
4fa63067 | 24023 | || exit 1 |
3866be5d | 24024 | |
6bd3dfaa | 24025 | @endif target-libstdc++-v3 |
3866be5d | 24026 | |
4fa63067 NN |
24027 | .PHONY: maybe-maintainer-clean-target-libstdc++-v3 maintainer-clean-target-libstdc++-v3 |
24028 | maybe-maintainer-clean-target-libstdc++-v3: | |
6bd3dfaa PB |
24029 | @if target-libstdc++-v3 |
24030 | maybe-maintainer-clean-target-libstdc++-v3: maintainer-clean-target-libstdc++-v3 | |
16ae0395 | 24031 | |
4fa63067 NN |
24032 | maintainer-clean-target-libstdc++-v3: |
24033 | @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \ | |
24034 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 24035 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 24036 | $(RAW_CXX_TARGET_EXPORTS) \ |
4fa63067 NN |
24037 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libstdc++-v3" ; \ |
24038 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
24039 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
24040 | done; \ | |
24041 | (cd $(TARGET_SUBDIR)/libstdc++-v3 && \ | |
24042 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
24043 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24044 | "RANLIB=$${RANLIB}" \ | |
24045 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 24046 | maintainer-clean) \ |
4fa63067 | 24047 | || exit 1 |
3866be5d | 24048 | |
6bd3dfaa | 24049 | @endif target-libstdc++-v3 |
3866be5d | 24050 | |
4fa63067 | 24051 | |
4fa63067 NN |
24052 | |
24053 | # There's only one multilib.out. Cleverer subdirs shouldn't need it copied. | |
a7254363 | 24054 | @if target-libmudflap |
4b1cb4fe DD |
24055 | $(TARGET_SUBDIR)/libmudflap/multilib.out: multilib.out |
24056 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmudflap ; \ | |
24057 | rm -f $(TARGET_SUBDIR)/libmudflap/Makefile || : ; \ | |
24058 | cp multilib.out $(TARGET_SUBDIR)/libmudflap/multilib.out | |
a7254363 | 24059 | @endif target-libmudflap |
e90269c8 | 24060 | |
a7254363 PB |
24061 | |
24062 | ||
24063 | .PHONY: configure-target-libmudflap maybe-configure-target-libmudflap | |
24064 | maybe-configure-target-libmudflap: | |
24065 | @if target-libmudflap | |
24066 | maybe-configure-target-libmudflap: configure-target-libmudflap | |
4b1cb4fe DD |
24067 | configure-target-libmudflap: $(TARGET_SUBDIR)/libmudflap/multilib.out |
24068 | @test ! -f $(TARGET_SUBDIR)/libmudflap/Makefile || exit 0; \ | |
24069 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmudflap ; \ | |
b40e3958 L |
24070 | r=`${PWD_COMMAND}`; export r; \ |
24071 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24072 | $(NORMAL_TARGET_EXPORTS) \ |
4b1cb4fe DD |
24073 | echo Configuring in $(TARGET_SUBDIR)/libmudflap; \ |
24074 | cd "$(TARGET_SUBDIR)/libmudflap" || exit 1; \ | |
e2b9e2dc | 24075 | case $(srcdir) in \ |
b00612cc PB |
24076 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
24077 | *) topdir=`echo $(TARGET_SUBDIR)/libmudflap/ | \ | |
24078 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 24079 | esac; \ |
b00612cc PB |
24080 | srcdiroption="--srcdir=$${topdir}/libmudflap"; \ |
24081 | libsrcdir="$$s/libmudflap"; \ | |
4fa63067 NN |
24082 | rm -f no-such-file || : ; \ |
24083 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
a7254363 | 24084 | $(TARGET_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 24085 | || exit 1 |
6bd3dfaa | 24086 | @endif target-libmudflap |
e2b9e2dc | 24087 | |
a7254363 PB |
24088 | |
24089 | ||
4b1cb4fe DD |
24090 | .PHONY: all-target-libmudflap maybe-all-target-libmudflap |
24091 | maybe-all-target-libmudflap: | |
6bd3dfaa | 24092 | @if target-libmudflap |
72b2455a | 24093 | TARGET-target-libmudflap=all |
6bd3dfaa | 24094 | maybe-all-target-libmudflap: all-target-libmudflap |
4b1cb4fe | 24095 | all-target-libmudflap: configure-target-libmudflap |
b40e3958 L |
24096 | @r=`${PWD_COMMAND}`; export r; \ |
24097 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24098 | $(NORMAL_TARGET_EXPORTS) \ |
4b1cb4fe | 24099 | (cd $(TARGET_SUBDIR)/libmudflap && \ |
a7254363 | 24100 | $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libmudflap)) |
6bd3dfaa | 24101 | @endif target-libmudflap |
3866be5d | 24102 | |
a7254363 PB |
24103 | |
24104 | ||
4b1cb4fe DD |
24105 | .PHONY: check-target-libmudflap maybe-check-target-libmudflap |
24106 | maybe-check-target-libmudflap: | |
6bd3dfaa PB |
24107 | @if target-libmudflap |
24108 | maybe-check-target-libmudflap: check-target-libmudflap | |
16ae0395 | 24109 | |
4b1cb4fe DD |
24110 | check-target-libmudflap: |
24111 | @r=`${PWD_COMMAND}`; export r; \ | |
24112 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24113 | $(NORMAL_TARGET_EXPORTS) \ |
4b1cb4fe | 24114 | (cd $(TARGET_SUBDIR)/libmudflap && \ |
7ffa0b57 | 24115 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) |
4b1cb4fe | 24116 | |
6bd3dfaa | 24117 | @endif target-libmudflap |
4b1cb4fe DD |
24118 | |
24119 | .PHONY: install-target-libmudflap maybe-install-target-libmudflap | |
24120 | maybe-install-target-libmudflap: | |
6bd3dfaa PB |
24121 | @if target-libmudflap |
24122 | maybe-install-target-libmudflap: install-target-libmudflap | |
4b1cb4fe DD |
24123 | |
24124 | install-target-libmudflap: installdirs | |
24125 | @r=`${PWD_COMMAND}`; export r; \ | |
24126 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24127 | $(NORMAL_TARGET_EXPORTS) \ |
4b1cb4fe | 24128 | (cd $(TARGET_SUBDIR)/libmudflap && \ |
7ffa0b57 | 24129 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
4b1cb4fe | 24130 | |
6bd3dfaa | 24131 | @endif target-libmudflap |
4b1cb4fe DD |
24132 | |
24133 | # Other targets (info, dvi, etc.) | |
24134 | ||
24135 | .PHONY: maybe-info-target-libmudflap info-target-libmudflap | |
24136 | maybe-info-target-libmudflap: | |
6bd3dfaa PB |
24137 | @if target-libmudflap |
24138 | maybe-info-target-libmudflap: info-target-libmudflap | |
4b1cb4fe DD |
24139 | |
24140 | info-target-libmudflap: \ | |
24141 | configure-target-libmudflap | |
24142 | @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \ | |
24143 | r=`${PWD_COMMAND}`; export r; \ | |
24144 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24145 | $(NORMAL_TARGET_EXPORTS) \ |
4b1cb4fe DD |
24146 | echo "Doing info in $(TARGET_SUBDIR)/libmudflap" ; \ |
24147 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
24148 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
24149 | done; \ | |
24150 | (cd $(TARGET_SUBDIR)/libmudflap && \ | |
24151 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
24152 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24153 | "RANLIB=$${RANLIB}" \ | |
24154 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 24155 | info) \ |
4b1cb4fe DD |
24156 | || exit 1 |
24157 | ||
6bd3dfaa | 24158 | @endif target-libmudflap |
4b1cb4fe DD |
24159 | |
24160 | .PHONY: maybe-dvi-target-libmudflap dvi-target-libmudflap | |
24161 | maybe-dvi-target-libmudflap: | |
6bd3dfaa PB |
24162 | @if target-libmudflap |
24163 | maybe-dvi-target-libmudflap: dvi-target-libmudflap | |
4b1cb4fe DD |
24164 | |
24165 | dvi-target-libmudflap: \ | |
24166 | configure-target-libmudflap | |
24167 | @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \ | |
24168 | r=`${PWD_COMMAND}`; export r; \ | |
24169 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24170 | $(NORMAL_TARGET_EXPORTS) \ |
4b1cb4fe DD |
24171 | echo "Doing dvi in $(TARGET_SUBDIR)/libmudflap" ; \ |
24172 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
24173 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
24174 | done; \ | |
24175 | (cd $(TARGET_SUBDIR)/libmudflap && \ | |
24176 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
24177 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24178 | "RANLIB=$${RANLIB}" \ | |
24179 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 24180 | dvi) \ |
4b1cb4fe DD |
24181 | || exit 1 |
24182 | ||
6bd3dfaa | 24183 | @endif target-libmudflap |
4b1cb4fe | 24184 | |
6d389afc MS |
24185 | .PHONY: maybe-html-target-libmudflap html-target-libmudflap |
24186 | maybe-html-target-libmudflap: | |
24187 | @if target-libmudflap | |
24188 | maybe-html-target-libmudflap: html-target-libmudflap | |
24189 | ||
24190 | html-target-libmudflap: \ | |
24191 | configure-target-libmudflap | |
24192 | @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \ | |
24193 | r=`${PWD_COMMAND}`; export r; \ | |
24194 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
24195 | $(NORMAL_TARGET_EXPORTS) \ |
24196 | echo "Doing html in $(TARGET_SUBDIR)/libmudflap" ; \ | |
24197 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
24198 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
24199 | done; \ | |
24200 | (cd $(TARGET_SUBDIR)/libmudflap && \ | |
24201 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
24202 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24203 | "RANLIB=$${RANLIB}" \ | |
24204 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
24205 | html) \ | |
24206 | || exit 1 | |
24207 | ||
24208 | @endif target-libmudflap | |
24209 | ||
4b1cb4fe DD |
24210 | .PHONY: maybe-TAGS-target-libmudflap TAGS-target-libmudflap |
24211 | maybe-TAGS-target-libmudflap: | |
6bd3dfaa PB |
24212 | @if target-libmudflap |
24213 | maybe-TAGS-target-libmudflap: TAGS-target-libmudflap | |
4b1cb4fe DD |
24214 | |
24215 | TAGS-target-libmudflap: \ | |
24216 | configure-target-libmudflap | |
24217 | @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \ | |
24218 | r=`${PWD_COMMAND}`; export r; \ | |
24219 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24220 | $(NORMAL_TARGET_EXPORTS) \ |
4b1cb4fe DD |
24221 | echo "Doing TAGS in $(TARGET_SUBDIR)/libmudflap" ; \ |
24222 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
24223 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
24224 | done; \ | |
24225 | (cd $(TARGET_SUBDIR)/libmudflap && \ | |
24226 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
24227 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24228 | "RANLIB=$${RANLIB}" \ | |
24229 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 24230 | TAGS) \ |
4b1cb4fe DD |
24231 | || exit 1 |
24232 | ||
6bd3dfaa | 24233 | @endif target-libmudflap |
4b1cb4fe DD |
24234 | |
24235 | .PHONY: maybe-install-info-target-libmudflap install-info-target-libmudflap | |
24236 | maybe-install-info-target-libmudflap: | |
6bd3dfaa PB |
24237 | @if target-libmudflap |
24238 | maybe-install-info-target-libmudflap: install-info-target-libmudflap | |
4b1cb4fe DD |
24239 | |
24240 | install-info-target-libmudflap: \ | |
24241 | configure-target-libmudflap \ | |
24242 | info-target-libmudflap | |
24243 | @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \ | |
24244 | r=`${PWD_COMMAND}`; export r; \ | |
24245 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24246 | $(NORMAL_TARGET_EXPORTS) \ |
4b1cb4fe DD |
24247 | echo "Doing install-info in $(TARGET_SUBDIR)/libmudflap" ; \ |
24248 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
24249 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
24250 | done; \ | |
24251 | (cd $(TARGET_SUBDIR)/libmudflap && \ | |
24252 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
24253 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24254 | "RANLIB=$${RANLIB}" \ | |
24255 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 24256 | install-info) \ |
4b1cb4fe DD |
24257 | || exit 1 |
24258 | ||
6bd3dfaa | 24259 | @endif target-libmudflap |
4b1cb4fe DD |
24260 | |
24261 | .PHONY: maybe-installcheck-target-libmudflap installcheck-target-libmudflap | |
24262 | maybe-installcheck-target-libmudflap: | |
6bd3dfaa PB |
24263 | @if target-libmudflap |
24264 | maybe-installcheck-target-libmudflap: installcheck-target-libmudflap | |
4b1cb4fe DD |
24265 | |
24266 | installcheck-target-libmudflap: \ | |
24267 | configure-target-libmudflap | |
24268 | @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \ | |
24269 | r=`${PWD_COMMAND}`; export r; \ | |
24270 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24271 | $(NORMAL_TARGET_EXPORTS) \ |
4b1cb4fe DD |
24272 | echo "Doing installcheck in $(TARGET_SUBDIR)/libmudflap" ; \ |
24273 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
24274 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
24275 | done; \ | |
24276 | (cd $(TARGET_SUBDIR)/libmudflap && \ | |
24277 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
24278 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24279 | "RANLIB=$${RANLIB}" \ | |
24280 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 24281 | installcheck) \ |
4b1cb4fe DD |
24282 | || exit 1 |
24283 | ||
6bd3dfaa | 24284 | @endif target-libmudflap |
4b1cb4fe DD |
24285 | |
24286 | .PHONY: maybe-mostlyclean-target-libmudflap mostlyclean-target-libmudflap | |
24287 | maybe-mostlyclean-target-libmudflap: | |
6bd3dfaa PB |
24288 | @if target-libmudflap |
24289 | maybe-mostlyclean-target-libmudflap: mostlyclean-target-libmudflap | |
4b1cb4fe DD |
24290 | |
24291 | mostlyclean-target-libmudflap: | |
24292 | @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \ | |
24293 | r=`${PWD_COMMAND}`; export r; \ | |
24294 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24295 | $(NORMAL_TARGET_EXPORTS) \ |
4b1cb4fe DD |
24296 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/libmudflap" ; \ |
24297 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
24298 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
24299 | done; \ | |
24300 | (cd $(TARGET_SUBDIR)/libmudflap && \ | |
24301 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
24302 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24303 | "RANLIB=$${RANLIB}" \ | |
24304 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 24305 | mostlyclean) \ |
4b1cb4fe DD |
24306 | || exit 1 |
24307 | ||
6bd3dfaa | 24308 | @endif target-libmudflap |
4b1cb4fe DD |
24309 | |
24310 | .PHONY: maybe-clean-target-libmudflap clean-target-libmudflap | |
24311 | maybe-clean-target-libmudflap: | |
6bd3dfaa PB |
24312 | @if target-libmudflap |
24313 | maybe-clean-target-libmudflap: clean-target-libmudflap | |
4b1cb4fe DD |
24314 | |
24315 | clean-target-libmudflap: | |
24316 | @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \ | |
24317 | r=`${PWD_COMMAND}`; export r; \ | |
24318 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24319 | $(NORMAL_TARGET_EXPORTS) \ |
4b1cb4fe DD |
24320 | echo "Doing clean in $(TARGET_SUBDIR)/libmudflap" ; \ |
24321 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
24322 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
24323 | done; \ | |
24324 | (cd $(TARGET_SUBDIR)/libmudflap && \ | |
24325 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
24326 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24327 | "RANLIB=$${RANLIB}" \ | |
24328 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 24329 | clean) \ |
4b1cb4fe DD |
24330 | || exit 1 |
24331 | ||
6bd3dfaa | 24332 | @endif target-libmudflap |
4b1cb4fe DD |
24333 | |
24334 | .PHONY: maybe-distclean-target-libmudflap distclean-target-libmudflap | |
24335 | maybe-distclean-target-libmudflap: | |
6bd3dfaa PB |
24336 | @if target-libmudflap |
24337 | maybe-distclean-target-libmudflap: distclean-target-libmudflap | |
4b1cb4fe DD |
24338 | |
24339 | distclean-target-libmudflap: | |
24340 | @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \ | |
24341 | r=`${PWD_COMMAND}`; export r; \ | |
24342 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24343 | $(NORMAL_TARGET_EXPORTS) \ |
4b1cb4fe DD |
24344 | echo "Doing distclean in $(TARGET_SUBDIR)/libmudflap" ; \ |
24345 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
24346 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
24347 | done; \ | |
24348 | (cd $(TARGET_SUBDIR)/libmudflap && \ | |
24349 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
24350 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24351 | "RANLIB=$${RANLIB}" \ | |
24352 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 24353 | distclean) \ |
4b1cb4fe DD |
24354 | || exit 1 |
24355 | ||
6bd3dfaa | 24356 | @endif target-libmudflap |
4b1cb4fe DD |
24357 | |
24358 | .PHONY: maybe-maintainer-clean-target-libmudflap maintainer-clean-target-libmudflap | |
24359 | maybe-maintainer-clean-target-libmudflap: | |
6bd3dfaa PB |
24360 | @if target-libmudflap |
24361 | maybe-maintainer-clean-target-libmudflap: maintainer-clean-target-libmudflap | |
4b1cb4fe DD |
24362 | |
24363 | maintainer-clean-target-libmudflap: | |
24364 | @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \ | |
24365 | r=`${PWD_COMMAND}`; export r; \ | |
24366 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24367 | $(NORMAL_TARGET_EXPORTS) \ |
4b1cb4fe DD |
24368 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libmudflap" ; \ |
24369 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
24370 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
24371 | done; \ | |
24372 | (cd $(TARGET_SUBDIR)/libmudflap && \ | |
24373 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
24374 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24375 | "RANLIB=$${RANLIB}" \ | |
24376 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 24377 | maintainer-clean) \ |
4b1cb4fe DD |
24378 | || exit 1 |
24379 | ||
6bd3dfaa | 24380 | @endif target-libmudflap |
4b1cb4fe DD |
24381 | |
24382 | ||
4b1cb4fe DD |
24383 | |
24384 | # There's only one multilib.out. Cleverer subdirs shouldn't need it copied. | |
a7254363 | 24385 | @if target-newlib |
4b1cb4fe DD |
24386 | $(TARGET_SUBDIR)/newlib/multilib.out: multilib.out |
24387 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib ; \ | |
24388 | rm -f $(TARGET_SUBDIR)/newlib/Makefile || : ; \ | |
24389 | cp multilib.out $(TARGET_SUBDIR)/newlib/multilib.out | |
a7254363 PB |
24390 | @endif target-newlib |
24391 | ||
24392 | ||
e90269c8 | 24393 | |
a7254363 PB |
24394 | .PHONY: configure-target-newlib maybe-configure-target-newlib |
24395 | maybe-configure-target-newlib: | |
24396 | @if target-newlib | |
24397 | maybe-configure-target-newlib: configure-target-newlib | |
4b1cb4fe DD |
24398 | configure-target-newlib: $(TARGET_SUBDIR)/newlib/multilib.out |
24399 | @test ! -f $(TARGET_SUBDIR)/newlib/Makefile || exit 0; \ | |
24400 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib ; \ | |
24401 | r=`${PWD_COMMAND}`; export r; \ | |
24402 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24403 | $(NORMAL_TARGET_EXPORTS) \ |
4b1cb4fe DD |
24404 | echo Configuring in $(TARGET_SUBDIR)/newlib; \ |
24405 | cd "$(TARGET_SUBDIR)/newlib" || exit 1; \ | |
24406 | case $(srcdir) in \ | |
b00612cc PB |
24407 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
24408 | *) topdir=`echo $(TARGET_SUBDIR)/newlib/ | \ | |
24409 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4b1cb4fe | 24410 | esac; \ |
b00612cc PB |
24411 | srcdiroption="--srcdir=$${topdir}/newlib"; \ |
24412 | libsrcdir="$$s/newlib"; \ | |
4b1cb4fe DD |
24413 | rm -f no-such-file || : ; \ |
24414 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
a7254363 | 24415 | $(TARGET_CONFIGARGS) $${srcdiroption} \ |
4b1cb4fe | 24416 | || exit 1 |
6bd3dfaa | 24417 | @endif target-newlib |
4b1cb4fe | 24418 | |
a7254363 PB |
24419 | |
24420 | ||
4b1cb4fe DD |
24421 | .PHONY: all-target-newlib maybe-all-target-newlib |
24422 | maybe-all-target-newlib: | |
6bd3dfaa | 24423 | @if target-newlib |
72b2455a | 24424 | TARGET-target-newlib=all |
6bd3dfaa | 24425 | maybe-all-target-newlib: all-target-newlib |
4b1cb4fe DD |
24426 | all-target-newlib: configure-target-newlib |
24427 | @r=`${PWD_COMMAND}`; export r; \ | |
24428 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24429 | $(NORMAL_TARGET_EXPORTS) \ |
4b1cb4fe | 24430 | (cd $(TARGET_SUBDIR)/newlib && \ |
a7254363 | 24431 | $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-newlib)) |
6bd3dfaa | 24432 | @endif target-newlib |
4b1cb4fe | 24433 | |
a7254363 PB |
24434 | |
24435 | ||
4b1cb4fe DD |
24436 | .PHONY: check-target-newlib maybe-check-target-newlib |
24437 | maybe-check-target-newlib: | |
6bd3dfaa PB |
24438 | @if target-newlib |
24439 | maybe-check-target-newlib: check-target-newlib | |
4b1cb4fe DD |
24440 | |
24441 | check-target-newlib: | |
b40e3958 L |
24442 | @r=`${PWD_COMMAND}`; export r; \ |
24443 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24444 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 24445 | (cd $(TARGET_SUBDIR)/newlib && \ |
7ffa0b57 | 24446 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) |
3866be5d | 24447 | |
6bd3dfaa | 24448 | @endif target-newlib |
3866be5d | 24449 | |
4fa63067 NN |
24450 | .PHONY: install-target-newlib maybe-install-target-newlib |
24451 | maybe-install-target-newlib: | |
6bd3dfaa PB |
24452 | @if target-newlib |
24453 | maybe-install-target-newlib: install-target-newlib | |
e2b9e2dc | 24454 | |
4fa63067 | 24455 | install-target-newlib: installdirs |
b40e3958 L |
24456 | @r=`${PWD_COMMAND}`; export r; \ |
24457 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24458 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 24459 | (cd $(TARGET_SUBDIR)/newlib && \ |
7ffa0b57 | 24460 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
3866be5d | 24461 | |
6bd3dfaa | 24462 | @endif target-newlib |
3866be5d | 24463 | |
4fa63067 | 24464 | # Other targets (info, dvi, etc.) |
3866be5d | 24465 | |
4fa63067 NN |
24466 | .PHONY: maybe-info-target-newlib info-target-newlib |
24467 | maybe-info-target-newlib: | |
6bd3dfaa PB |
24468 | @if target-newlib |
24469 | maybe-info-target-newlib: info-target-newlib | |
3866be5d | 24470 | |
4fa63067 NN |
24471 | info-target-newlib: \ |
24472 | configure-target-newlib | |
24473 | @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \ | |
24474 | r=`${PWD_COMMAND}`; export r; \ | |
24475 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24476 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
24477 | echo "Doing info in $(TARGET_SUBDIR)/newlib" ; \ |
24478 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
24479 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
24480 | done; \ | |
24481 | (cd $(TARGET_SUBDIR)/newlib && \ | |
24482 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
24483 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24484 | "RANLIB=$${RANLIB}" \ | |
24485 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 24486 | info) \ |
4fa63067 | 24487 | || exit 1 |
16ae0395 | 24488 | |
6bd3dfaa | 24489 | @endif target-newlib |
3866be5d | 24490 | |
4fa63067 NN |
24491 | .PHONY: maybe-dvi-target-newlib dvi-target-newlib |
24492 | maybe-dvi-target-newlib: | |
6bd3dfaa PB |
24493 | @if target-newlib |
24494 | maybe-dvi-target-newlib: dvi-target-newlib | |
3866be5d | 24495 | |
4fa63067 NN |
24496 | dvi-target-newlib: \ |
24497 | configure-target-newlib | |
24498 | @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \ | |
b40e3958 L |
24499 | r=`${PWD_COMMAND}`; export r; \ |
24500 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24501 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
24502 | echo "Doing dvi in $(TARGET_SUBDIR)/newlib" ; \ |
24503 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
24504 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
24505 | done; \ | |
24506 | (cd $(TARGET_SUBDIR)/newlib && \ | |
24507 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
24508 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24509 | "RANLIB=$${RANLIB}" \ | |
24510 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 24511 | dvi) \ |
e2b9e2dc NN |
24512 | || exit 1 |
24513 | ||
6bd3dfaa | 24514 | @endif target-newlib |
3866be5d | 24515 | |
6d389afc MS |
24516 | .PHONY: maybe-html-target-newlib html-target-newlib |
24517 | maybe-html-target-newlib: | |
24518 | @if target-newlib | |
24519 | maybe-html-target-newlib: html-target-newlib | |
24520 | ||
24521 | html-target-newlib: \ | |
24522 | configure-target-newlib | |
24523 | @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \ | |
24524 | r=`${PWD_COMMAND}`; export r; \ | |
24525 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
24526 | $(NORMAL_TARGET_EXPORTS) \ |
24527 | echo "Doing html in $(TARGET_SUBDIR)/newlib" ; \ | |
24528 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
24529 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
24530 | done; \ | |
24531 | (cd $(TARGET_SUBDIR)/newlib && \ | |
24532 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
24533 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24534 | "RANLIB=$${RANLIB}" \ | |
24535 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
24536 | html) \ | |
24537 | || exit 1 | |
24538 | ||
24539 | @endif target-newlib | |
24540 | ||
4fa63067 NN |
24541 | .PHONY: maybe-TAGS-target-newlib TAGS-target-newlib |
24542 | maybe-TAGS-target-newlib: | |
6bd3dfaa PB |
24543 | @if target-newlib |
24544 | maybe-TAGS-target-newlib: TAGS-target-newlib | |
3866be5d | 24545 | |
4fa63067 NN |
24546 | TAGS-target-newlib: \ |
24547 | configure-target-newlib | |
24548 | @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \ | |
24549 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 24550 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 24551 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
24552 | echo "Doing TAGS in $(TARGET_SUBDIR)/newlib" ; \ |
24553 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
24554 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
24555 | done; \ | |
24556 | (cd $(TARGET_SUBDIR)/newlib && \ | |
24557 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
24558 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24559 | "RANLIB=$${RANLIB}" \ | |
24560 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 24561 | TAGS) \ |
4fa63067 | 24562 | || exit 1 |
3866be5d | 24563 | |
6bd3dfaa | 24564 | @endif target-newlib |
3866be5d | 24565 | |
4fa63067 NN |
24566 | .PHONY: maybe-install-info-target-newlib install-info-target-newlib |
24567 | maybe-install-info-target-newlib: | |
6bd3dfaa PB |
24568 | @if target-newlib |
24569 | maybe-install-info-target-newlib: install-info-target-newlib | |
16ae0395 | 24570 | |
4fa63067 NN |
24571 | install-info-target-newlib: \ |
24572 | configure-target-newlib \ | |
24573 | info-target-newlib | |
24574 | @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \ | |
24575 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 24576 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 24577 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
24578 | echo "Doing install-info in $(TARGET_SUBDIR)/newlib" ; \ |
24579 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
24580 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
24581 | done; \ | |
24582 | (cd $(TARGET_SUBDIR)/newlib && \ | |
24583 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
24584 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24585 | "RANLIB=$${RANLIB}" \ | |
24586 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 24587 | install-info) \ |
4fa63067 | 24588 | || exit 1 |
3866be5d | 24589 | |
6bd3dfaa | 24590 | @endif target-newlib |
3866be5d | 24591 | |
4fa63067 NN |
24592 | .PHONY: maybe-installcheck-target-newlib installcheck-target-newlib |
24593 | maybe-installcheck-target-newlib: | |
6bd3dfaa PB |
24594 | @if target-newlib |
24595 | maybe-installcheck-target-newlib: installcheck-target-newlib | |
4fa63067 NN |
24596 | |
24597 | installcheck-target-newlib: \ | |
24598 | configure-target-newlib | |
24599 | @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \ | |
b40e3958 L |
24600 | r=`${PWD_COMMAND}`; export r; \ |
24601 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24602 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
24603 | echo "Doing installcheck in $(TARGET_SUBDIR)/newlib" ; \ |
24604 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
24605 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
24606 | done; \ | |
24607 | (cd $(TARGET_SUBDIR)/newlib && \ | |
24608 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
24609 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24610 | "RANLIB=$${RANLIB}" \ | |
24611 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 24612 | installcheck) \ |
e2b9e2dc NN |
24613 | || exit 1 |
24614 | ||
6bd3dfaa | 24615 | @endif target-newlib |
3866be5d | 24616 | |
4fa63067 NN |
24617 | .PHONY: maybe-mostlyclean-target-newlib mostlyclean-target-newlib |
24618 | maybe-mostlyclean-target-newlib: | |
6bd3dfaa PB |
24619 | @if target-newlib |
24620 | maybe-mostlyclean-target-newlib: mostlyclean-target-newlib | |
3866be5d | 24621 | |
4fa63067 NN |
24622 | mostlyclean-target-newlib: |
24623 | @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \ | |
24624 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 24625 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 24626 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
24627 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/newlib" ; \ |
24628 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
24629 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
24630 | done; \ | |
24631 | (cd $(TARGET_SUBDIR)/newlib && \ | |
24632 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
24633 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24634 | "RANLIB=$${RANLIB}" \ | |
24635 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 24636 | mostlyclean) \ |
4fa63067 | 24637 | || exit 1 |
3866be5d | 24638 | |
6bd3dfaa | 24639 | @endif target-newlib |
3866be5d | 24640 | |
4fa63067 NN |
24641 | .PHONY: maybe-clean-target-newlib clean-target-newlib |
24642 | maybe-clean-target-newlib: | |
6bd3dfaa PB |
24643 | @if target-newlib |
24644 | maybe-clean-target-newlib: clean-target-newlib | |
16ae0395 | 24645 | |
4fa63067 NN |
24646 | clean-target-newlib: |
24647 | @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \ | |
24648 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 24649 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 24650 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
24651 | echo "Doing clean in $(TARGET_SUBDIR)/newlib" ; \ |
24652 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
24653 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
24654 | done; \ | |
24655 | (cd $(TARGET_SUBDIR)/newlib && \ | |
24656 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
24657 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24658 | "RANLIB=$${RANLIB}" \ | |
24659 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 24660 | clean) \ |
4fa63067 | 24661 | || exit 1 |
3866be5d | 24662 | |
6bd3dfaa | 24663 | @endif target-newlib |
3866be5d | 24664 | |
4fa63067 NN |
24665 | .PHONY: maybe-distclean-target-newlib distclean-target-newlib |
24666 | maybe-distclean-target-newlib: | |
6bd3dfaa PB |
24667 | @if target-newlib |
24668 | maybe-distclean-target-newlib: distclean-target-newlib | |
4fa63067 NN |
24669 | |
24670 | distclean-target-newlib: | |
24671 | @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \ | |
b40e3958 L |
24672 | r=`${PWD_COMMAND}`; export r; \ |
24673 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24674 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
24675 | echo "Doing distclean in $(TARGET_SUBDIR)/newlib" ; \ |
24676 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
24677 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
24678 | done; \ | |
24679 | (cd $(TARGET_SUBDIR)/newlib && \ | |
24680 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
24681 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24682 | "RANLIB=$${RANLIB}" \ | |
24683 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 24684 | distclean) \ |
e2b9e2dc NN |
24685 | || exit 1 |
24686 | ||
6bd3dfaa | 24687 | @endif target-newlib |
3866be5d | 24688 | |
4fa63067 NN |
24689 | .PHONY: maybe-maintainer-clean-target-newlib maintainer-clean-target-newlib |
24690 | maybe-maintainer-clean-target-newlib: | |
6bd3dfaa PB |
24691 | @if target-newlib |
24692 | maybe-maintainer-clean-target-newlib: maintainer-clean-target-newlib | |
3866be5d | 24693 | |
4fa63067 NN |
24694 | maintainer-clean-target-newlib: |
24695 | @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \ | |
24696 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 24697 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 24698 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
24699 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/newlib" ; \ |
24700 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
24701 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
24702 | done; \ | |
24703 | (cd $(TARGET_SUBDIR)/newlib && \ | |
24704 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
24705 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24706 | "RANLIB=$${RANLIB}" \ | |
24707 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 24708 | maintainer-clean) \ |
4fa63067 | 24709 | || exit 1 |
3866be5d | 24710 | |
6bd3dfaa | 24711 | @endif target-newlib |
3866be5d | 24712 | |
16ae0395 | 24713 | |
4b1cb4fe DD |
24714 | |
24715 | # There's only one multilib.out. Cleverer subdirs shouldn't need it copied. | |
a7254363 | 24716 | @if target-libgfortran |
4b1cb4fe DD |
24717 | $(TARGET_SUBDIR)/libgfortran/multilib.out: multilib.out |
24718 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran ; \ | |
24719 | rm -f $(TARGET_SUBDIR)/libgfortran/Makefile || : ; \ | |
24720 | cp multilib.out $(TARGET_SUBDIR)/libgfortran/multilib.out | |
a7254363 PB |
24721 | @endif target-libgfortran |
24722 | ||
24723 | ||
4b1cb4fe | 24724 | |
a7254363 PB |
24725 | .PHONY: configure-target-libgfortran maybe-configure-target-libgfortran |
24726 | maybe-configure-target-libgfortran: | |
24727 | @if target-libgfortran | |
24728 | maybe-configure-target-libgfortran: configure-target-libgfortran | |
4b1cb4fe DD |
24729 | configure-target-libgfortran: $(TARGET_SUBDIR)/libgfortran/multilib.out |
24730 | @test ! -f $(TARGET_SUBDIR)/libgfortran/Makefile || exit 0; \ | |
24731 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran ; \ | |
24732 | r=`${PWD_COMMAND}`; export r; \ | |
24733 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24734 | $(NORMAL_TARGET_EXPORTS) \ |
4b1cb4fe DD |
24735 | echo Configuring in $(TARGET_SUBDIR)/libgfortran; \ |
24736 | cd "$(TARGET_SUBDIR)/libgfortran" || exit 1; \ | |
24737 | case $(srcdir) in \ | |
b00612cc PB |
24738 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
24739 | *) topdir=`echo $(TARGET_SUBDIR)/libgfortran/ | \ | |
24740 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4b1cb4fe | 24741 | esac; \ |
b00612cc PB |
24742 | srcdiroption="--srcdir=$${topdir}/libgfortran"; \ |
24743 | libsrcdir="$$s/libgfortran"; \ | |
4b1cb4fe DD |
24744 | rm -f no-such-file || : ; \ |
24745 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
a7254363 | 24746 | $(TARGET_CONFIGARGS) $${srcdiroption} \ |
4b1cb4fe | 24747 | || exit 1 |
6bd3dfaa | 24748 | @endif target-libgfortran |
4b1cb4fe | 24749 | |
a7254363 PB |
24750 | |
24751 | ||
4b1cb4fe DD |
24752 | .PHONY: all-target-libgfortran maybe-all-target-libgfortran |
24753 | maybe-all-target-libgfortran: | |
6bd3dfaa | 24754 | @if target-libgfortran |
72b2455a | 24755 | TARGET-target-libgfortran=all |
6bd3dfaa | 24756 | maybe-all-target-libgfortran: all-target-libgfortran |
4b1cb4fe DD |
24757 | all-target-libgfortran: configure-target-libgfortran |
24758 | @r=`${PWD_COMMAND}`; export r; \ | |
24759 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24760 | $(NORMAL_TARGET_EXPORTS) \ |
4b1cb4fe | 24761 | (cd $(TARGET_SUBDIR)/libgfortran && \ |
a7254363 | 24762 | $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libgfortran)) |
6bd3dfaa | 24763 | @endif target-libgfortran |
4b1cb4fe | 24764 | |
a7254363 PB |
24765 | |
24766 | ||
4b1cb4fe DD |
24767 | .PHONY: check-target-libgfortran maybe-check-target-libgfortran |
24768 | maybe-check-target-libgfortran: | |
6bd3dfaa PB |
24769 | @if target-libgfortran |
24770 | maybe-check-target-libgfortran: check-target-libgfortran | |
4b1cb4fe DD |
24771 | |
24772 | check-target-libgfortran: | |
24773 | @r=`${PWD_COMMAND}`; export r; \ | |
24774 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24775 | $(NORMAL_TARGET_EXPORTS) \ |
4b1cb4fe | 24776 | (cd $(TARGET_SUBDIR)/libgfortran && \ |
7ffa0b57 | 24777 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) |
4b1cb4fe | 24778 | |
6bd3dfaa | 24779 | @endif target-libgfortran |
4b1cb4fe DD |
24780 | |
24781 | .PHONY: install-target-libgfortran maybe-install-target-libgfortran | |
24782 | maybe-install-target-libgfortran: | |
6bd3dfaa PB |
24783 | @if target-libgfortran |
24784 | maybe-install-target-libgfortran: install-target-libgfortran | |
4b1cb4fe DD |
24785 | |
24786 | install-target-libgfortran: installdirs | |
24787 | @r=`${PWD_COMMAND}`; export r; \ | |
24788 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24789 | $(NORMAL_TARGET_EXPORTS) \ |
4b1cb4fe | 24790 | (cd $(TARGET_SUBDIR)/libgfortran && \ |
7ffa0b57 | 24791 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
4b1cb4fe | 24792 | |
6bd3dfaa | 24793 | @endif target-libgfortran |
4b1cb4fe DD |
24794 | |
24795 | # Other targets (info, dvi, etc.) | |
24796 | ||
24797 | .PHONY: maybe-info-target-libgfortran info-target-libgfortran | |
24798 | maybe-info-target-libgfortran: | |
6bd3dfaa PB |
24799 | @if target-libgfortran |
24800 | maybe-info-target-libgfortran: info-target-libgfortran | |
4b1cb4fe DD |
24801 | |
24802 | info-target-libgfortran: \ | |
24803 | configure-target-libgfortran | |
24804 | @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \ | |
24805 | r=`${PWD_COMMAND}`; export r; \ | |
24806 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24807 | $(NORMAL_TARGET_EXPORTS) \ |
4b1cb4fe DD |
24808 | echo "Doing info in $(TARGET_SUBDIR)/libgfortran" ; \ |
24809 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
24810 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
24811 | done; \ | |
24812 | (cd $(TARGET_SUBDIR)/libgfortran && \ | |
24813 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
24814 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24815 | "RANLIB=$${RANLIB}" \ | |
24816 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 24817 | info) \ |
4b1cb4fe DD |
24818 | || exit 1 |
24819 | ||
6bd3dfaa | 24820 | @endif target-libgfortran |
4b1cb4fe DD |
24821 | |
24822 | .PHONY: maybe-dvi-target-libgfortran dvi-target-libgfortran | |
24823 | maybe-dvi-target-libgfortran: | |
6bd3dfaa PB |
24824 | @if target-libgfortran |
24825 | maybe-dvi-target-libgfortran: dvi-target-libgfortran | |
4b1cb4fe DD |
24826 | |
24827 | dvi-target-libgfortran: \ | |
24828 | configure-target-libgfortran | |
24829 | @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \ | |
24830 | r=`${PWD_COMMAND}`; export r; \ | |
24831 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24832 | $(NORMAL_TARGET_EXPORTS) \ |
4b1cb4fe DD |
24833 | echo "Doing dvi in $(TARGET_SUBDIR)/libgfortran" ; \ |
24834 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
24835 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
24836 | done; \ | |
24837 | (cd $(TARGET_SUBDIR)/libgfortran && \ | |
24838 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
24839 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24840 | "RANLIB=$${RANLIB}" \ | |
24841 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 24842 | dvi) \ |
4b1cb4fe DD |
24843 | || exit 1 |
24844 | ||
6bd3dfaa | 24845 | @endif target-libgfortran |
4b1cb4fe | 24846 | |
6d389afc MS |
24847 | .PHONY: maybe-html-target-libgfortran html-target-libgfortran |
24848 | maybe-html-target-libgfortran: | |
24849 | @if target-libgfortran | |
24850 | maybe-html-target-libgfortran: html-target-libgfortran | |
24851 | ||
24852 | html-target-libgfortran: \ | |
24853 | configure-target-libgfortran | |
24854 | @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \ | |
24855 | r=`${PWD_COMMAND}`; export r; \ | |
24856 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
24857 | $(NORMAL_TARGET_EXPORTS) \ |
24858 | echo "Doing html in $(TARGET_SUBDIR)/libgfortran" ; \ | |
24859 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
24860 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
24861 | done; \ | |
24862 | (cd $(TARGET_SUBDIR)/libgfortran && \ | |
24863 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
24864 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24865 | "RANLIB=$${RANLIB}" \ | |
24866 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
24867 | html) \ | |
24868 | || exit 1 | |
24869 | ||
24870 | @endif target-libgfortran | |
24871 | ||
4b1cb4fe DD |
24872 | .PHONY: maybe-TAGS-target-libgfortran TAGS-target-libgfortran |
24873 | maybe-TAGS-target-libgfortran: | |
6bd3dfaa PB |
24874 | @if target-libgfortran |
24875 | maybe-TAGS-target-libgfortran: TAGS-target-libgfortran | |
4b1cb4fe DD |
24876 | |
24877 | TAGS-target-libgfortran: \ | |
24878 | configure-target-libgfortran | |
24879 | @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \ | |
24880 | r=`${PWD_COMMAND}`; export r; \ | |
24881 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24882 | $(NORMAL_TARGET_EXPORTS) \ |
4b1cb4fe DD |
24883 | echo "Doing TAGS in $(TARGET_SUBDIR)/libgfortran" ; \ |
24884 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
24885 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
24886 | done; \ | |
24887 | (cd $(TARGET_SUBDIR)/libgfortran && \ | |
24888 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
24889 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24890 | "RANLIB=$${RANLIB}" \ | |
24891 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 24892 | TAGS) \ |
4b1cb4fe DD |
24893 | || exit 1 |
24894 | ||
6bd3dfaa | 24895 | @endif target-libgfortran |
4b1cb4fe DD |
24896 | |
24897 | .PHONY: maybe-install-info-target-libgfortran install-info-target-libgfortran | |
24898 | maybe-install-info-target-libgfortran: | |
6bd3dfaa PB |
24899 | @if target-libgfortran |
24900 | maybe-install-info-target-libgfortran: install-info-target-libgfortran | |
4b1cb4fe DD |
24901 | |
24902 | install-info-target-libgfortran: \ | |
24903 | configure-target-libgfortran \ | |
24904 | info-target-libgfortran | |
24905 | @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \ | |
24906 | r=`${PWD_COMMAND}`; export r; \ | |
24907 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24908 | $(NORMAL_TARGET_EXPORTS) \ |
4b1cb4fe DD |
24909 | echo "Doing install-info in $(TARGET_SUBDIR)/libgfortran" ; \ |
24910 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
24911 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
24912 | done; \ | |
24913 | (cd $(TARGET_SUBDIR)/libgfortran && \ | |
24914 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
24915 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24916 | "RANLIB=$${RANLIB}" \ | |
24917 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 24918 | install-info) \ |
4b1cb4fe DD |
24919 | || exit 1 |
24920 | ||
6bd3dfaa | 24921 | @endif target-libgfortran |
4b1cb4fe DD |
24922 | |
24923 | .PHONY: maybe-installcheck-target-libgfortran installcheck-target-libgfortran | |
24924 | maybe-installcheck-target-libgfortran: | |
6bd3dfaa PB |
24925 | @if target-libgfortran |
24926 | maybe-installcheck-target-libgfortran: installcheck-target-libgfortran | |
4b1cb4fe DD |
24927 | |
24928 | installcheck-target-libgfortran: \ | |
24929 | configure-target-libgfortran | |
24930 | @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \ | |
24931 | r=`${PWD_COMMAND}`; export r; \ | |
24932 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24933 | $(NORMAL_TARGET_EXPORTS) \ |
4b1cb4fe DD |
24934 | echo "Doing installcheck in $(TARGET_SUBDIR)/libgfortran" ; \ |
24935 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
24936 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
24937 | done; \ | |
24938 | (cd $(TARGET_SUBDIR)/libgfortran && \ | |
24939 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
24940 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24941 | "RANLIB=$${RANLIB}" \ | |
24942 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 24943 | installcheck) \ |
4b1cb4fe DD |
24944 | || exit 1 |
24945 | ||
6bd3dfaa | 24946 | @endif target-libgfortran |
4b1cb4fe DD |
24947 | |
24948 | .PHONY: maybe-mostlyclean-target-libgfortran mostlyclean-target-libgfortran | |
24949 | maybe-mostlyclean-target-libgfortran: | |
6bd3dfaa PB |
24950 | @if target-libgfortran |
24951 | maybe-mostlyclean-target-libgfortran: mostlyclean-target-libgfortran | |
4b1cb4fe DD |
24952 | |
24953 | mostlyclean-target-libgfortran: | |
24954 | @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \ | |
24955 | r=`${PWD_COMMAND}`; export r; \ | |
24956 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24957 | $(NORMAL_TARGET_EXPORTS) \ |
4b1cb4fe DD |
24958 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgfortran" ; \ |
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)/libgfortran && \ | |
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 | mostlyclean) \ |
4b1cb4fe DD |
24968 | || exit 1 |
24969 | ||
6bd3dfaa | 24970 | @endif target-libgfortran |
4b1cb4fe DD |
24971 | |
24972 | .PHONY: maybe-clean-target-libgfortran clean-target-libgfortran | |
24973 | maybe-clean-target-libgfortran: | |
6bd3dfaa PB |
24974 | @if target-libgfortran |
24975 | maybe-clean-target-libgfortran: clean-target-libgfortran | |
4b1cb4fe DD |
24976 | |
24977 | clean-target-libgfortran: | |
24978 | @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \ | |
24979 | r=`${PWD_COMMAND}`; export r; \ | |
24980 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24981 | $(NORMAL_TARGET_EXPORTS) \ |
4b1cb4fe DD |
24982 | echo "Doing clean in $(TARGET_SUBDIR)/libgfortran" ; \ |
24983 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
24984 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
24985 | done; \ | |
24986 | (cd $(TARGET_SUBDIR)/libgfortran && \ | |
24987 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
24988 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24989 | "RANLIB=$${RANLIB}" \ | |
24990 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 24991 | clean) \ |
4b1cb4fe DD |
24992 | || exit 1 |
24993 | ||
6bd3dfaa | 24994 | @endif target-libgfortran |
4b1cb4fe DD |
24995 | |
24996 | .PHONY: maybe-distclean-target-libgfortran distclean-target-libgfortran | |
24997 | maybe-distclean-target-libgfortran: | |
6bd3dfaa PB |
24998 | @if target-libgfortran |
24999 | maybe-distclean-target-libgfortran: distclean-target-libgfortran | |
4b1cb4fe DD |
25000 | |
25001 | distclean-target-libgfortran: | |
25002 | @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \ | |
25003 | r=`${PWD_COMMAND}`; export r; \ | |
25004 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25005 | $(NORMAL_TARGET_EXPORTS) \ |
4b1cb4fe DD |
25006 | echo "Doing distclean in $(TARGET_SUBDIR)/libgfortran" ; \ |
25007 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
25008 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
25009 | done; \ | |
25010 | (cd $(TARGET_SUBDIR)/libgfortran && \ | |
25011 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
25012 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25013 | "RANLIB=$${RANLIB}" \ | |
25014 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 25015 | distclean) \ |
4b1cb4fe DD |
25016 | || exit 1 |
25017 | ||
6bd3dfaa | 25018 | @endif target-libgfortran |
4b1cb4fe DD |
25019 | |
25020 | .PHONY: maybe-maintainer-clean-target-libgfortran maintainer-clean-target-libgfortran | |
25021 | maybe-maintainer-clean-target-libgfortran: | |
6bd3dfaa PB |
25022 | @if target-libgfortran |
25023 | maybe-maintainer-clean-target-libgfortran: maintainer-clean-target-libgfortran | |
4b1cb4fe DD |
25024 | |
25025 | maintainer-clean-target-libgfortran: | |
25026 | @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \ | |
25027 | r=`${PWD_COMMAND}`; export r; \ | |
25028 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25029 | $(NORMAL_TARGET_EXPORTS) \ |
4b1cb4fe DD |
25030 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgfortran" ; \ |
25031 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
25032 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
25033 | done; \ | |
25034 | (cd $(TARGET_SUBDIR)/libgfortran && \ | |
25035 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
25036 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25037 | "RANLIB=$${RANLIB}" \ | |
25038 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 25039 | maintainer-clean) \ |
4b1cb4fe DD |
25040 | || exit 1 |
25041 | ||
6bd3dfaa | 25042 | @endif target-libgfortran |
4b1cb4fe DD |
25043 | |
25044 | ||
3866be5d | 25045 | |
4fa63067 | 25046 | # There's only one multilib.out. Cleverer subdirs shouldn't need it copied. |
a7254363 | 25047 | @if target-libobjc |
4fa63067 NN |
25048 | $(TARGET_SUBDIR)/libobjc/multilib.out: multilib.out |
25049 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc ; \ | |
25050 | rm -f $(TARGET_SUBDIR)/libobjc/Makefile || : ; \ | |
25051 | cp multilib.out $(TARGET_SUBDIR)/libobjc/multilib.out | |
a7254363 PB |
25052 | @endif target-libobjc |
25053 | ||
25054 | ||
e90269c8 | 25055 | |
a7254363 PB |
25056 | .PHONY: configure-target-libobjc maybe-configure-target-libobjc |
25057 | maybe-configure-target-libobjc: | |
25058 | @if target-libobjc | |
25059 | maybe-configure-target-libobjc: configure-target-libobjc | |
4fa63067 NN |
25060 | configure-target-libobjc: $(TARGET_SUBDIR)/libobjc/multilib.out |
25061 | @test ! -f $(TARGET_SUBDIR)/libobjc/Makefile || exit 0; \ | |
25062 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc ; \ | |
b40e3958 | 25063 | r=`${PWD_COMMAND}`; export r; \ |
378fce5b | 25064 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 25065 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
25066 | echo Configuring in $(TARGET_SUBDIR)/libobjc; \ |
25067 | cd "$(TARGET_SUBDIR)/libobjc" || exit 1; \ | |
e2b9e2dc | 25068 | case $(srcdir) in \ |
b00612cc PB |
25069 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
25070 | *) topdir=`echo $(TARGET_SUBDIR)/libobjc/ | \ | |
25071 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 25072 | esac; \ |
b00612cc PB |
25073 | srcdiroption="--srcdir=$${topdir}/libobjc"; \ |
25074 | libsrcdir="$$s/libobjc"; \ | |
4fa63067 NN |
25075 | rm -f no-such-file || : ; \ |
25076 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
a7254363 | 25077 | $(TARGET_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 25078 | || exit 1 |
6bd3dfaa | 25079 | @endif target-libobjc |
e2b9e2dc | 25080 | |
a7254363 PB |
25081 | |
25082 | ||
4fa63067 NN |
25083 | .PHONY: all-target-libobjc maybe-all-target-libobjc |
25084 | maybe-all-target-libobjc: | |
6bd3dfaa | 25085 | @if target-libobjc |
72b2455a | 25086 | TARGET-target-libobjc=all |
6bd3dfaa | 25087 | maybe-all-target-libobjc: all-target-libobjc |
4fa63067 | 25088 | all-target-libobjc: configure-target-libobjc |
b40e3958 L |
25089 | @r=`${PWD_COMMAND}`; export r; \ |
25090 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25091 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 25092 | (cd $(TARGET_SUBDIR)/libobjc && \ |
a7254363 | 25093 | $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libobjc)) |
6bd3dfaa | 25094 | @endif target-libobjc |
3866be5d | 25095 | |
a7254363 PB |
25096 | |
25097 | ||
4fa63067 NN |
25098 | .PHONY: check-target-libobjc maybe-check-target-libobjc |
25099 | maybe-check-target-libobjc: | |
6bd3dfaa PB |
25100 | @if target-libobjc |
25101 | maybe-check-target-libobjc: check-target-libobjc | |
3866be5d | 25102 | |
4fa63067 | 25103 | check-target-libobjc: |
b40e3958 L |
25104 | @r=`${PWD_COMMAND}`; export r; \ |
25105 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25106 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 25107 | (cd $(TARGET_SUBDIR)/libobjc && \ |
7ffa0b57 | 25108 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) |
3866be5d | 25109 | |
6bd3dfaa | 25110 | @endif target-libobjc |
3866be5d | 25111 | |
4fa63067 NN |
25112 | .PHONY: install-target-libobjc maybe-install-target-libobjc |
25113 | maybe-install-target-libobjc: | |
6bd3dfaa PB |
25114 | @if target-libobjc |
25115 | maybe-install-target-libobjc: install-target-libobjc | |
e2b9e2dc | 25116 | |
4fa63067 | 25117 | install-target-libobjc: installdirs |
b40e3958 L |
25118 | @r=`${PWD_COMMAND}`; export r; \ |
25119 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25120 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 25121 | (cd $(TARGET_SUBDIR)/libobjc && \ |
7ffa0b57 | 25122 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
3866be5d | 25123 | |
6bd3dfaa | 25124 | @endif target-libobjc |
3866be5d | 25125 | |
4fa63067 NN |
25126 | # Other targets (info, dvi, etc.) |
25127 | ||
25128 | .PHONY: maybe-info-target-libobjc info-target-libobjc | |
25129 | maybe-info-target-libobjc: | |
6bd3dfaa PB |
25130 | @if target-libobjc |
25131 | maybe-info-target-libobjc: info-target-libobjc | |
4fa63067 NN |
25132 | |
25133 | info-target-libobjc: \ | |
25134 | configure-target-libobjc | |
25135 | @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \ | |
25136 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 25137 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 25138 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
25139 | echo "Doing info in $(TARGET_SUBDIR)/libobjc" ; \ |
25140 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
25141 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
25142 | done; \ | |
25143 | (cd $(TARGET_SUBDIR)/libobjc && \ | |
25144 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
25145 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25146 | "RANLIB=$${RANLIB}" \ | |
25147 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 25148 | info) \ |
4fa63067 | 25149 | || exit 1 |
3866be5d | 25150 | |
6bd3dfaa | 25151 | @endif target-libobjc |
3866be5d | 25152 | |
4fa63067 NN |
25153 | .PHONY: maybe-dvi-target-libobjc dvi-target-libobjc |
25154 | maybe-dvi-target-libobjc: | |
6bd3dfaa PB |
25155 | @if target-libobjc |
25156 | maybe-dvi-target-libobjc: dvi-target-libobjc | |
16ae0395 | 25157 | |
4fa63067 NN |
25158 | dvi-target-libobjc: \ |
25159 | configure-target-libobjc | |
25160 | @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \ | |
25161 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 25162 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 25163 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
25164 | echo "Doing dvi in $(TARGET_SUBDIR)/libobjc" ; \ |
25165 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
25166 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
25167 | done; \ | |
25168 | (cd $(TARGET_SUBDIR)/libobjc && \ | |
25169 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
25170 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25171 | "RANLIB=$${RANLIB}" \ | |
25172 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 25173 | dvi) \ |
4fa63067 | 25174 | || exit 1 |
3866be5d | 25175 | |
6bd3dfaa | 25176 | @endif target-libobjc |
3866be5d | 25177 | |
6d389afc MS |
25178 | .PHONY: maybe-html-target-libobjc html-target-libobjc |
25179 | maybe-html-target-libobjc: | |
25180 | @if target-libobjc | |
25181 | maybe-html-target-libobjc: html-target-libobjc | |
25182 | ||
25183 | html-target-libobjc: \ | |
25184 | configure-target-libobjc | |
25185 | @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \ | |
25186 | r=`${PWD_COMMAND}`; export r; \ | |
25187 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
25188 | $(NORMAL_TARGET_EXPORTS) \ |
25189 | echo "Doing html in $(TARGET_SUBDIR)/libobjc" ; \ | |
25190 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
25191 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
25192 | done; \ | |
25193 | (cd $(TARGET_SUBDIR)/libobjc && \ | |
25194 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
25195 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25196 | "RANLIB=$${RANLIB}" \ | |
25197 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
25198 | html) \ | |
25199 | || exit 1 | |
25200 | ||
25201 | @endif target-libobjc | |
25202 | ||
4fa63067 NN |
25203 | .PHONY: maybe-TAGS-target-libobjc TAGS-target-libobjc |
25204 | maybe-TAGS-target-libobjc: | |
6bd3dfaa PB |
25205 | @if target-libobjc |
25206 | maybe-TAGS-target-libobjc: TAGS-target-libobjc | |
4fa63067 NN |
25207 | |
25208 | TAGS-target-libobjc: \ | |
25209 | configure-target-libobjc | |
25210 | @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \ | |
b40e3958 L |
25211 | r=`${PWD_COMMAND}`; export r; \ |
25212 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25213 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
25214 | echo "Doing TAGS in $(TARGET_SUBDIR)/libobjc" ; \ |
25215 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
25216 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
25217 | done; \ | |
25218 | (cd $(TARGET_SUBDIR)/libobjc && \ | |
25219 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
25220 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25221 | "RANLIB=$${RANLIB}" \ | |
25222 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 25223 | TAGS) \ |
e2b9e2dc NN |
25224 | || exit 1 |
25225 | ||
6bd3dfaa | 25226 | @endif target-libobjc |
4fa63067 NN |
25227 | |
25228 | .PHONY: maybe-install-info-target-libobjc install-info-target-libobjc | |
25229 | maybe-install-info-target-libobjc: | |
6bd3dfaa PB |
25230 | @if target-libobjc |
25231 | maybe-install-info-target-libobjc: install-info-target-libobjc | |
4fa63067 NN |
25232 | |
25233 | install-info-target-libobjc: \ | |
25234 | configure-target-libobjc \ | |
25235 | info-target-libobjc | |
25236 | @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \ | |
25237 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 25238 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 25239 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
25240 | echo "Doing install-info in $(TARGET_SUBDIR)/libobjc" ; \ |
25241 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
25242 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
25243 | done; \ | |
25244 | (cd $(TARGET_SUBDIR)/libobjc && \ | |
25245 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
25246 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25247 | "RANLIB=$${RANLIB}" \ | |
25248 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 25249 | install-info) \ |
4fa63067 | 25250 | || exit 1 |
3866be5d | 25251 | |
6bd3dfaa | 25252 | @endif target-libobjc |
3866be5d | 25253 | |
4fa63067 NN |
25254 | .PHONY: maybe-installcheck-target-libobjc installcheck-target-libobjc |
25255 | maybe-installcheck-target-libobjc: | |
6bd3dfaa PB |
25256 | @if target-libobjc |
25257 | maybe-installcheck-target-libobjc: installcheck-target-libobjc | |
4fa63067 NN |
25258 | |
25259 | installcheck-target-libobjc: \ | |
25260 | configure-target-libobjc | |
25261 | @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \ | |
25262 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 25263 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 25264 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
25265 | echo "Doing installcheck in $(TARGET_SUBDIR)/libobjc" ; \ |
25266 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
25267 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
25268 | done; \ | |
25269 | (cd $(TARGET_SUBDIR)/libobjc && \ | |
25270 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
25271 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25272 | "RANLIB=$${RANLIB}" \ | |
25273 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 25274 | installcheck) \ |
4fa63067 | 25275 | || exit 1 |
3866be5d | 25276 | |
6bd3dfaa | 25277 | @endif target-libobjc |
3866be5d | 25278 | |
4fa63067 NN |
25279 | .PHONY: maybe-mostlyclean-target-libobjc mostlyclean-target-libobjc |
25280 | maybe-mostlyclean-target-libobjc: | |
6bd3dfaa PB |
25281 | @if target-libobjc |
25282 | maybe-mostlyclean-target-libobjc: mostlyclean-target-libobjc | |
16ae0395 | 25283 | |
4fa63067 NN |
25284 | mostlyclean-target-libobjc: |
25285 | @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \ | |
25286 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 25287 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 25288 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
25289 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/libobjc" ; \ |
25290 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
25291 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
25292 | done; \ | |
25293 | (cd $(TARGET_SUBDIR)/libobjc && \ | |
25294 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
25295 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25296 | "RANLIB=$${RANLIB}" \ | |
25297 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 25298 | mostlyclean) \ |
4fa63067 | 25299 | || exit 1 |
3866be5d | 25300 | |
6bd3dfaa | 25301 | @endif target-libobjc |
3866be5d | 25302 | |
4fa63067 NN |
25303 | .PHONY: maybe-clean-target-libobjc clean-target-libobjc |
25304 | maybe-clean-target-libobjc: | |
6bd3dfaa PB |
25305 | @if target-libobjc |
25306 | maybe-clean-target-libobjc: clean-target-libobjc | |
4fa63067 NN |
25307 | |
25308 | clean-target-libobjc: | |
25309 | @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \ | |
b40e3958 L |
25310 | r=`${PWD_COMMAND}`; export r; \ |
25311 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25312 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
25313 | echo "Doing clean in $(TARGET_SUBDIR)/libobjc" ; \ |
25314 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
25315 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
25316 | done; \ | |
25317 | (cd $(TARGET_SUBDIR)/libobjc && \ | |
25318 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
25319 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25320 | "RANLIB=$${RANLIB}" \ | |
25321 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 25322 | clean) \ |
e2b9e2dc NN |
25323 | || exit 1 |
25324 | ||
6bd3dfaa | 25325 | @endif target-libobjc |
3866be5d | 25326 | |
4fa63067 NN |
25327 | .PHONY: maybe-distclean-target-libobjc distclean-target-libobjc |
25328 | maybe-distclean-target-libobjc: | |
6bd3dfaa PB |
25329 | @if target-libobjc |
25330 | maybe-distclean-target-libobjc: distclean-target-libobjc | |
3866be5d | 25331 | |
4fa63067 NN |
25332 | distclean-target-libobjc: |
25333 | @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \ | |
25334 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 25335 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 25336 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
25337 | echo "Doing distclean in $(TARGET_SUBDIR)/libobjc" ; \ |
25338 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
25339 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
25340 | done; \ | |
25341 | (cd $(TARGET_SUBDIR)/libobjc && \ | |
25342 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
25343 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25344 | "RANLIB=$${RANLIB}" \ | |
25345 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 25346 | distclean) \ |
4fa63067 | 25347 | || exit 1 |
3866be5d | 25348 | |
6bd3dfaa | 25349 | @endif target-libobjc |
3866be5d | 25350 | |
4fa63067 NN |
25351 | .PHONY: maybe-maintainer-clean-target-libobjc maintainer-clean-target-libobjc |
25352 | maybe-maintainer-clean-target-libobjc: | |
6bd3dfaa PB |
25353 | @if target-libobjc |
25354 | maybe-maintainer-clean-target-libobjc: maintainer-clean-target-libobjc | |
16ae0395 | 25355 | |
4fa63067 NN |
25356 | maintainer-clean-target-libobjc: |
25357 | @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \ | |
25358 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 25359 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 25360 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
25361 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libobjc" ; \ |
25362 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
25363 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
25364 | done; \ | |
25365 | (cd $(TARGET_SUBDIR)/libobjc && \ | |
25366 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
25367 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25368 | "RANLIB=$${RANLIB}" \ | |
25369 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 25370 | maintainer-clean) \ |
4fa63067 | 25371 | || exit 1 |
3866be5d | 25372 | |
6bd3dfaa | 25373 | @endif target-libobjc |
3866be5d | 25374 | |
4fa63067 | 25375 | |
4fa63067 NN |
25376 | |
25377 | # There's only one multilib.out. Cleverer subdirs shouldn't need it copied. | |
a7254363 | 25378 | @if target-libtermcap |
4fa63067 NN |
25379 | $(TARGET_SUBDIR)/libtermcap/multilib.out: multilib.out |
25380 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap ; \ | |
25381 | rm -f $(TARGET_SUBDIR)/libtermcap/Makefile || : ; \ | |
25382 | cp multilib.out $(TARGET_SUBDIR)/libtermcap/multilib.out | |
a7254363 PB |
25383 | @endif target-libtermcap |
25384 | ||
25385 | ||
e90269c8 | 25386 | |
a7254363 PB |
25387 | .PHONY: configure-target-libtermcap maybe-configure-target-libtermcap |
25388 | maybe-configure-target-libtermcap: | |
25389 | @if target-libtermcap | |
25390 | maybe-configure-target-libtermcap: configure-target-libtermcap | |
4fa63067 NN |
25391 | configure-target-libtermcap: $(TARGET_SUBDIR)/libtermcap/multilib.out |
25392 | @test ! -f $(TARGET_SUBDIR)/libtermcap/Makefile || exit 0; \ | |
25393 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap ; \ | |
b40e3958 L |
25394 | r=`${PWD_COMMAND}`; export r; \ |
25395 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25396 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
25397 | echo Configuring in $(TARGET_SUBDIR)/libtermcap; \ |
25398 | cd "$(TARGET_SUBDIR)/libtermcap" || exit 1; \ | |
e2b9e2dc | 25399 | case $(srcdir) in \ |
b00612cc PB |
25400 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
25401 | *) topdir=`echo $(TARGET_SUBDIR)/libtermcap/ | \ | |
25402 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 25403 | esac; \ |
b00612cc PB |
25404 | srcdiroption="--srcdir=$${topdir}/libtermcap"; \ |
25405 | libsrcdir="$$s/libtermcap"; \ | |
4fa63067 NN |
25406 | rm -f no-such-file || : ; \ |
25407 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
a7254363 | 25408 | $(TARGET_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 25409 | || exit 1 |
6bd3dfaa | 25410 | @endif target-libtermcap |
e2b9e2dc | 25411 | |
a7254363 PB |
25412 | |
25413 | ||
4fa63067 NN |
25414 | .PHONY: all-target-libtermcap maybe-all-target-libtermcap |
25415 | maybe-all-target-libtermcap: | |
6bd3dfaa | 25416 | @if target-libtermcap |
72b2455a | 25417 | TARGET-target-libtermcap=all |
6bd3dfaa | 25418 | maybe-all-target-libtermcap: all-target-libtermcap |
4fa63067 | 25419 | all-target-libtermcap: configure-target-libtermcap |
b40e3958 L |
25420 | @r=`${PWD_COMMAND}`; export r; \ |
25421 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25422 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 25423 | (cd $(TARGET_SUBDIR)/libtermcap && \ |
a7254363 | 25424 | $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libtermcap)) |
6bd3dfaa | 25425 | @endif target-libtermcap |
3866be5d | 25426 | |
a7254363 PB |
25427 | |
25428 | ||
4fa63067 NN |
25429 | .PHONY: check-target-libtermcap maybe-check-target-libtermcap |
25430 | maybe-check-target-libtermcap: | |
6bd3dfaa PB |
25431 | @if target-libtermcap |
25432 | maybe-check-target-libtermcap: check-target-libtermcap | |
3866be5d | 25433 | |
4fa63067 NN |
25434 | # Dummy target for uncheckable module. |
25435 | check-target-libtermcap: | |
25436 | ||
6bd3dfaa | 25437 | @endif target-libtermcap |
4fa63067 NN |
25438 | |
25439 | .PHONY: install-target-libtermcap maybe-install-target-libtermcap | |
25440 | maybe-install-target-libtermcap: | |
6bd3dfaa PB |
25441 | @if target-libtermcap |
25442 | maybe-install-target-libtermcap: install-target-libtermcap | |
4fa63067 NN |
25443 | |
25444 | install-target-libtermcap: installdirs | |
b40e3958 L |
25445 | @r=`${PWD_COMMAND}`; export r; \ |
25446 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25447 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 25448 | (cd $(TARGET_SUBDIR)/libtermcap && \ |
7ffa0b57 | 25449 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
3866be5d | 25450 | |
6bd3dfaa | 25451 | @endif target-libtermcap |
3866be5d | 25452 | |
4fa63067 | 25453 | # Other targets (info, dvi, etc.) |
16ae0395 | 25454 | |
4fa63067 NN |
25455 | .PHONY: maybe-info-target-libtermcap info-target-libtermcap |
25456 | maybe-info-target-libtermcap: | |
6bd3dfaa | 25457 | @if target-libtermcap |
6d389afc MS |
25458 | maybe-info-target-libtermcap: info-target-libtermcap |
25459 | ||
25460 | info-target-libtermcap: \ | |
25461 | configure-target-libtermcap | |
25462 | @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \ | |
25463 | r=`${PWD_COMMAND}`; export r; \ | |
25464 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
25465 | $(NORMAL_TARGET_EXPORTS) \ |
25466 | echo "Doing info in $(TARGET_SUBDIR)/libtermcap" ; \ | |
25467 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
25468 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
25469 | done; \ | |
25470 | (cd $(TARGET_SUBDIR)/libtermcap && \ | |
25471 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
25472 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25473 | "RANLIB=$${RANLIB}" \ | |
25474 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
25475 | info) \ | |
25476 | || exit 1 | |
25477 | ||
25478 | @endif target-libtermcap | |
25479 | ||
25480 | .PHONY: maybe-dvi-target-libtermcap dvi-target-libtermcap | |
25481 | maybe-dvi-target-libtermcap: | |
25482 | @if target-libtermcap | |
25483 | maybe-dvi-target-libtermcap: dvi-target-libtermcap | |
4fa63067 | 25484 | |
6d389afc | 25485 | dvi-target-libtermcap: \ |
4fa63067 NN |
25486 | configure-target-libtermcap |
25487 | @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \ | |
25488 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 25489 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 25490 | $(NORMAL_TARGET_EXPORTS) \ |
6d389afc | 25491 | echo "Doing dvi in $(TARGET_SUBDIR)/libtermcap" ; \ |
4fa63067 NN |
25492 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
25493 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
25494 | done; \ | |
25495 | (cd $(TARGET_SUBDIR)/libtermcap && \ | |
25496 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
25497 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25498 | "RANLIB=$${RANLIB}" \ | |
25499 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
6d389afc | 25500 | dvi) \ |
4fa63067 | 25501 | || exit 1 |
3866be5d | 25502 | |
6bd3dfaa | 25503 | @endif target-libtermcap |
3866be5d | 25504 | |
6d389afc MS |
25505 | .PHONY: maybe-html-target-libtermcap html-target-libtermcap |
25506 | maybe-html-target-libtermcap: | |
6bd3dfaa | 25507 | @if target-libtermcap |
6d389afc | 25508 | maybe-html-target-libtermcap: html-target-libtermcap |
4fa63067 | 25509 | |
6d389afc | 25510 | html-target-libtermcap: \ |
4fa63067 NN |
25511 | configure-target-libtermcap |
25512 | @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \ | |
b40e3958 L |
25513 | r=`${PWD_COMMAND}`; export r; \ |
25514 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25515 | $(NORMAL_TARGET_EXPORTS) \ |
6d389afc | 25516 | echo "Doing html in $(TARGET_SUBDIR)/libtermcap" ; \ |
4fa63067 NN |
25517 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
25518 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
25519 | done; \ | |
25520 | (cd $(TARGET_SUBDIR)/libtermcap && \ | |
25521 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
25522 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25523 | "RANLIB=$${RANLIB}" \ | |
25524 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
6d389afc | 25525 | html) \ |
e2b9e2dc NN |
25526 | || exit 1 |
25527 | ||
6bd3dfaa | 25528 | @endif target-libtermcap |
4fa63067 NN |
25529 | |
25530 | .PHONY: maybe-TAGS-target-libtermcap TAGS-target-libtermcap | |
25531 | maybe-TAGS-target-libtermcap: | |
6bd3dfaa PB |
25532 | @if target-libtermcap |
25533 | maybe-TAGS-target-libtermcap: TAGS-target-libtermcap | |
4fa63067 NN |
25534 | |
25535 | TAGS-target-libtermcap: \ | |
25536 | configure-target-libtermcap | |
25537 | @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \ | |
25538 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 25539 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 25540 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
25541 | echo "Doing TAGS in $(TARGET_SUBDIR)/libtermcap" ; \ |
25542 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
25543 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
25544 | done; \ | |
25545 | (cd $(TARGET_SUBDIR)/libtermcap && \ | |
25546 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
25547 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25548 | "RANLIB=$${RANLIB}" \ | |
25549 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 25550 | TAGS) \ |
4fa63067 | 25551 | || exit 1 |
3866be5d | 25552 | |
6bd3dfaa | 25553 | @endif target-libtermcap |
3866be5d | 25554 | |
4fa63067 NN |
25555 | .PHONY: maybe-install-info-target-libtermcap install-info-target-libtermcap |
25556 | maybe-install-info-target-libtermcap: | |
6bd3dfaa PB |
25557 | @if target-libtermcap |
25558 | maybe-install-info-target-libtermcap: install-info-target-libtermcap | |
3866be5d | 25559 | |
4fa63067 NN |
25560 | install-info-target-libtermcap: \ |
25561 | configure-target-libtermcap \ | |
25562 | info-target-libtermcap | |
25563 | @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \ | |
25564 | r=`${PWD_COMMAND}`; export r; \ | |
25565 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25566 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
25567 | echo "Doing install-info in $(TARGET_SUBDIR)/libtermcap" ; \ |
25568 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
25569 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
25570 | done; \ | |
25571 | (cd $(TARGET_SUBDIR)/libtermcap && \ | |
25572 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
25573 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25574 | "RANLIB=$${RANLIB}" \ | |
25575 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 25576 | install-info) \ |
4fa63067 | 25577 | || exit 1 |
3866be5d | 25578 | |
6bd3dfaa | 25579 | @endif target-libtermcap |
16ae0395 | 25580 | |
4fa63067 NN |
25581 | .PHONY: maybe-installcheck-target-libtermcap installcheck-target-libtermcap |
25582 | maybe-installcheck-target-libtermcap: | |
6bd3dfaa PB |
25583 | @if target-libtermcap |
25584 | maybe-installcheck-target-libtermcap: installcheck-target-libtermcap | |
4fa63067 NN |
25585 | |
25586 | installcheck-target-libtermcap: \ | |
25587 | configure-target-libtermcap | |
25588 | @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \ | |
25589 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 25590 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 25591 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
25592 | echo "Doing installcheck in $(TARGET_SUBDIR)/libtermcap" ; \ |
25593 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
25594 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
25595 | done; \ | |
25596 | (cd $(TARGET_SUBDIR)/libtermcap && \ | |
25597 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
25598 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25599 | "RANLIB=$${RANLIB}" \ | |
25600 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 25601 | installcheck) \ |
4fa63067 | 25602 | || exit 1 |
3866be5d | 25603 | |
6bd3dfaa | 25604 | @endif target-libtermcap |
3866be5d | 25605 | |
4fa63067 NN |
25606 | .PHONY: maybe-mostlyclean-target-libtermcap mostlyclean-target-libtermcap |
25607 | maybe-mostlyclean-target-libtermcap: | |
6bd3dfaa PB |
25608 | @if target-libtermcap |
25609 | maybe-mostlyclean-target-libtermcap: mostlyclean-target-libtermcap | |
4fa63067 NN |
25610 | |
25611 | # libtermcap doesn't support mostlyclean. | |
25612 | mostlyclean-target-libtermcap: | |
25613 | ||
6bd3dfaa | 25614 | @endif target-libtermcap |
4fa63067 NN |
25615 | |
25616 | .PHONY: maybe-clean-target-libtermcap clean-target-libtermcap | |
25617 | maybe-clean-target-libtermcap: | |
6bd3dfaa PB |
25618 | @if target-libtermcap |
25619 | maybe-clean-target-libtermcap: clean-target-libtermcap | |
4fa63067 NN |
25620 | |
25621 | # libtermcap doesn't support clean. | |
25622 | clean-target-libtermcap: | |
25623 | ||
6bd3dfaa | 25624 | @endif target-libtermcap |
4fa63067 NN |
25625 | |
25626 | .PHONY: maybe-distclean-target-libtermcap distclean-target-libtermcap | |
25627 | maybe-distclean-target-libtermcap: | |
6bd3dfaa PB |
25628 | @if target-libtermcap |
25629 | maybe-distclean-target-libtermcap: distclean-target-libtermcap | |
4fa63067 NN |
25630 | |
25631 | # libtermcap doesn't support distclean. | |
25632 | distclean-target-libtermcap: | |
25633 | ||
6bd3dfaa | 25634 | @endif target-libtermcap |
4fa63067 NN |
25635 | |
25636 | .PHONY: maybe-maintainer-clean-target-libtermcap maintainer-clean-target-libtermcap | |
25637 | maybe-maintainer-clean-target-libtermcap: | |
6bd3dfaa PB |
25638 | @if target-libtermcap |
25639 | maybe-maintainer-clean-target-libtermcap: maintainer-clean-target-libtermcap | |
4fa63067 NN |
25640 | |
25641 | # libtermcap doesn't support maintainer-clean. | |
25642 | maintainer-clean-target-libtermcap: | |
25643 | ||
6bd3dfaa | 25644 | @endif target-libtermcap |
4fa63067 NN |
25645 | |
25646 | ||
4fa63067 NN |
25647 | |
25648 | # There's only one multilib.out. Cleverer subdirs shouldn't need it copied. | |
a7254363 | 25649 | @if target-winsup |
4fa63067 NN |
25650 | $(TARGET_SUBDIR)/winsup/multilib.out: multilib.out |
25651 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup ; \ | |
25652 | rm -f $(TARGET_SUBDIR)/winsup/Makefile || : ; \ | |
25653 | cp multilib.out $(TARGET_SUBDIR)/winsup/multilib.out | |
a7254363 PB |
25654 | @endif target-winsup |
25655 | ||
4fa63067 | 25656 | |
a7254363 PB |
25657 | |
25658 | .PHONY: configure-target-winsup maybe-configure-target-winsup | |
25659 | maybe-configure-target-winsup: | |
25660 | @if target-winsup | |
25661 | maybe-configure-target-winsup: configure-target-winsup | |
4fa63067 NN |
25662 | configure-target-winsup: $(TARGET_SUBDIR)/winsup/multilib.out |
25663 | @test ! -f $(TARGET_SUBDIR)/winsup/Makefile || exit 0; \ | |
25664 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup ; \ | |
b40e3958 L |
25665 | r=`${PWD_COMMAND}`; export r; \ |
25666 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25667 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
25668 | echo Configuring in $(TARGET_SUBDIR)/winsup; \ |
25669 | cd "$(TARGET_SUBDIR)/winsup" || exit 1; \ | |
e2b9e2dc | 25670 | case $(srcdir) in \ |
b00612cc PB |
25671 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
25672 | *) topdir=`echo $(TARGET_SUBDIR)/winsup/ | \ | |
25673 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 25674 | esac; \ |
b00612cc PB |
25675 | srcdiroption="--srcdir=$${topdir}/winsup"; \ |
25676 | libsrcdir="$$s/winsup"; \ | |
4fa63067 NN |
25677 | rm -f no-such-file || : ; \ |
25678 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
a7254363 | 25679 | $(TARGET_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 25680 | || exit 1 |
6bd3dfaa | 25681 | @endif target-winsup |
e2b9e2dc | 25682 | |
a7254363 PB |
25683 | |
25684 | ||
4fa63067 NN |
25685 | .PHONY: all-target-winsup maybe-all-target-winsup |
25686 | maybe-all-target-winsup: | |
6bd3dfaa | 25687 | @if target-winsup |
72b2455a | 25688 | TARGET-target-winsup=all |
6bd3dfaa | 25689 | maybe-all-target-winsup: all-target-winsup |
4fa63067 | 25690 | all-target-winsup: configure-target-winsup |
b40e3958 L |
25691 | @r=`${PWD_COMMAND}`; export r; \ |
25692 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25693 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 25694 | (cd $(TARGET_SUBDIR)/winsup && \ |
a7254363 | 25695 | $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-winsup)) |
6bd3dfaa | 25696 | @endif target-winsup |
3866be5d | 25697 | |
a7254363 PB |
25698 | |
25699 | ||
4fa63067 NN |
25700 | .PHONY: check-target-winsup maybe-check-target-winsup |
25701 | maybe-check-target-winsup: | |
6bd3dfaa PB |
25702 | @if target-winsup |
25703 | maybe-check-target-winsup: check-target-winsup | |
3866be5d | 25704 | |
4fa63067 NN |
25705 | check-target-winsup: |
25706 | @r=`${PWD_COMMAND}`; export r; \ | |
25707 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25708 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 25709 | (cd $(TARGET_SUBDIR)/winsup && \ |
7ffa0b57 | 25710 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) |
3866be5d | 25711 | |
6bd3dfaa | 25712 | @endif target-winsup |
3866be5d | 25713 | |
4fa63067 NN |
25714 | .PHONY: install-target-winsup maybe-install-target-winsup |
25715 | maybe-install-target-winsup: | |
6bd3dfaa PB |
25716 | @if target-winsup |
25717 | maybe-install-target-winsup: install-target-winsup | |
16ae0395 | 25718 | |
4fa63067 NN |
25719 | install-target-winsup: installdirs |
25720 | @r=`${PWD_COMMAND}`; export r; \ | |
25721 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25722 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 25723 | (cd $(TARGET_SUBDIR)/winsup && \ |
7ffa0b57 | 25724 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
3866be5d | 25725 | |
6bd3dfaa | 25726 | @endif target-winsup |
3866be5d | 25727 | |
4fa63067 NN |
25728 | # Other targets (info, dvi, etc.) |
25729 | ||
25730 | .PHONY: maybe-info-target-winsup info-target-winsup | |
25731 | maybe-info-target-winsup: | |
6bd3dfaa PB |
25732 | @if target-winsup |
25733 | maybe-info-target-winsup: info-target-winsup | |
4fa63067 NN |
25734 | |
25735 | info-target-winsup: \ | |
25736 | configure-target-winsup | |
25737 | @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \ | |
b40e3958 L |
25738 | r=`${PWD_COMMAND}`; export r; \ |
25739 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25740 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
25741 | echo "Doing info in $(TARGET_SUBDIR)/winsup" ; \ |
25742 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
25743 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
25744 | done; \ | |
25745 | (cd $(TARGET_SUBDIR)/winsup && \ | |
25746 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
25747 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25748 | "RANLIB=$${RANLIB}" \ | |
25749 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 25750 | info) \ |
e2b9e2dc NN |
25751 | || exit 1 |
25752 | ||
6bd3dfaa | 25753 | @endif target-winsup |
3866be5d | 25754 | |
4fa63067 NN |
25755 | .PHONY: maybe-dvi-target-winsup dvi-target-winsup |
25756 | maybe-dvi-target-winsup: | |
6bd3dfaa PB |
25757 | @if target-winsup |
25758 | maybe-dvi-target-winsup: dvi-target-winsup | |
3866be5d | 25759 | |
4fa63067 NN |
25760 | dvi-target-winsup: \ |
25761 | configure-target-winsup | |
25762 | @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \ | |
25763 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 25764 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 25765 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
25766 | echo "Doing dvi in $(TARGET_SUBDIR)/winsup" ; \ |
25767 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
25768 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
25769 | done; \ | |
25770 | (cd $(TARGET_SUBDIR)/winsup && \ | |
25771 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
25772 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25773 | "RANLIB=$${RANLIB}" \ | |
25774 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 25775 | dvi) \ |
4fa63067 | 25776 | || exit 1 |
3866be5d | 25777 | |
6bd3dfaa | 25778 | @endif target-winsup |
3866be5d | 25779 | |
6d389afc MS |
25780 | .PHONY: maybe-html-target-winsup html-target-winsup |
25781 | maybe-html-target-winsup: | |
25782 | @if target-winsup | |
25783 | maybe-html-target-winsup: html-target-winsup | |
25784 | ||
25785 | html-target-winsup: \ | |
25786 | configure-target-winsup | |
25787 | @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \ | |
25788 | r=`${PWD_COMMAND}`; export r; \ | |
25789 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
25790 | $(NORMAL_TARGET_EXPORTS) \ |
25791 | echo "Doing html in $(TARGET_SUBDIR)/winsup" ; \ | |
25792 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
25793 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
25794 | done; \ | |
25795 | (cd $(TARGET_SUBDIR)/winsup && \ | |
25796 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
25797 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25798 | "RANLIB=$${RANLIB}" \ | |
25799 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
25800 | html) \ | |
25801 | || exit 1 | |
25802 | ||
25803 | @endif target-winsup | |
25804 | ||
4fa63067 NN |
25805 | .PHONY: maybe-TAGS-target-winsup TAGS-target-winsup |
25806 | maybe-TAGS-target-winsup: | |
6bd3dfaa PB |
25807 | @if target-winsup |
25808 | maybe-TAGS-target-winsup: TAGS-target-winsup | |
16ae0395 | 25809 | |
4fa63067 NN |
25810 | TAGS-target-winsup: \ |
25811 | configure-target-winsup | |
25812 | @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \ | |
25813 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 25814 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 25815 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
25816 | echo "Doing TAGS in $(TARGET_SUBDIR)/winsup" ; \ |
25817 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
25818 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
25819 | done; \ | |
25820 | (cd $(TARGET_SUBDIR)/winsup && \ | |
25821 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
25822 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25823 | "RANLIB=$${RANLIB}" \ | |
25824 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 25825 | TAGS) \ |
4fa63067 | 25826 | || exit 1 |
3866be5d | 25827 | |
6bd3dfaa | 25828 | @endif target-winsup |
3866be5d | 25829 | |
4fa63067 NN |
25830 | .PHONY: maybe-install-info-target-winsup install-info-target-winsup |
25831 | maybe-install-info-target-winsup: | |
6bd3dfaa PB |
25832 | @if target-winsup |
25833 | maybe-install-info-target-winsup: install-info-target-winsup | |
4fa63067 NN |
25834 | |
25835 | install-info-target-winsup: \ | |
25836 | configure-target-winsup \ | |
25837 | info-target-winsup | |
25838 | @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \ | |
b40e3958 L |
25839 | r=`${PWD_COMMAND}`; export r; \ |
25840 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25841 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
25842 | echo "Doing install-info in $(TARGET_SUBDIR)/winsup" ; \ |
25843 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
25844 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
25845 | done; \ | |
25846 | (cd $(TARGET_SUBDIR)/winsup && \ | |
25847 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
25848 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25849 | "RANLIB=$${RANLIB}" \ | |
25850 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 25851 | install-info) \ |
e2b9e2dc NN |
25852 | || exit 1 |
25853 | ||
6bd3dfaa | 25854 | @endif target-winsup |
4fa63067 NN |
25855 | |
25856 | .PHONY: maybe-installcheck-target-winsup installcheck-target-winsup | |
25857 | maybe-installcheck-target-winsup: | |
6bd3dfaa PB |
25858 | @if target-winsup |
25859 | maybe-installcheck-target-winsup: installcheck-target-winsup | |
4fa63067 NN |
25860 | |
25861 | installcheck-target-winsup: \ | |
25862 | configure-target-winsup | |
25863 | @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \ | |
25864 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 25865 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 25866 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
25867 | echo "Doing installcheck in $(TARGET_SUBDIR)/winsup" ; \ |
25868 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
25869 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
25870 | done; \ | |
25871 | (cd $(TARGET_SUBDIR)/winsup && \ | |
25872 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
25873 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25874 | "RANLIB=$${RANLIB}" \ | |
25875 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 25876 | installcheck) \ |
4fa63067 | 25877 | || exit 1 |
3866be5d | 25878 | |
6bd3dfaa | 25879 | @endif target-winsup |
3866be5d | 25880 | |
4fa63067 NN |
25881 | .PHONY: maybe-mostlyclean-target-winsup mostlyclean-target-winsup |
25882 | maybe-mostlyclean-target-winsup: | |
6bd3dfaa PB |
25883 | @if target-winsup |
25884 | maybe-mostlyclean-target-winsup: mostlyclean-target-winsup | |
4fa63067 NN |
25885 | |
25886 | mostlyclean-target-winsup: | |
25887 | @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \ | |
25888 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 25889 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 25890 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
25891 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/winsup" ; \ |
25892 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
25893 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
25894 | done; \ | |
25895 | (cd $(TARGET_SUBDIR)/winsup && \ | |
25896 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
25897 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25898 | "RANLIB=$${RANLIB}" \ | |
25899 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 25900 | mostlyclean) \ |
4fa63067 | 25901 | || exit 1 |
3866be5d | 25902 | |
6bd3dfaa | 25903 | @endif target-winsup |
3866be5d | 25904 | |
4fa63067 NN |
25905 | .PHONY: maybe-clean-target-winsup clean-target-winsup |
25906 | maybe-clean-target-winsup: | |
6bd3dfaa PB |
25907 | @if target-winsup |
25908 | maybe-clean-target-winsup: clean-target-winsup | |
16ae0395 | 25909 | |
4fa63067 NN |
25910 | clean-target-winsup: |
25911 | @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \ | |
25912 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 25913 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 25914 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
25915 | echo "Doing clean in $(TARGET_SUBDIR)/winsup" ; \ |
25916 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
25917 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
25918 | done; \ | |
25919 | (cd $(TARGET_SUBDIR)/winsup && \ | |
25920 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
25921 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25922 | "RANLIB=$${RANLIB}" \ | |
25923 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 25924 | clean) \ |
4fa63067 | 25925 | || exit 1 |
3866be5d | 25926 | |
6bd3dfaa | 25927 | @endif target-winsup |
3866be5d | 25928 | |
4fa63067 NN |
25929 | .PHONY: maybe-distclean-target-winsup distclean-target-winsup |
25930 | maybe-distclean-target-winsup: | |
6bd3dfaa PB |
25931 | @if target-winsup |
25932 | maybe-distclean-target-winsup: distclean-target-winsup | |
4fa63067 NN |
25933 | |
25934 | distclean-target-winsup: | |
25935 | @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \ | |
b40e3958 L |
25936 | r=`${PWD_COMMAND}`; export r; \ |
25937 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25938 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
25939 | echo "Doing distclean in $(TARGET_SUBDIR)/winsup" ; \ |
25940 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
25941 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
25942 | done; \ | |
25943 | (cd $(TARGET_SUBDIR)/winsup && \ | |
25944 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
25945 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25946 | "RANLIB=$${RANLIB}" \ | |
25947 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 25948 | distclean) \ |
e2b9e2dc NN |
25949 | || exit 1 |
25950 | ||
6bd3dfaa | 25951 | @endif target-winsup |
3866be5d | 25952 | |
4fa63067 NN |
25953 | .PHONY: maybe-maintainer-clean-target-winsup maintainer-clean-target-winsup |
25954 | maybe-maintainer-clean-target-winsup: | |
6bd3dfaa PB |
25955 | @if target-winsup |
25956 | maybe-maintainer-clean-target-winsup: maintainer-clean-target-winsup | |
3866be5d | 25957 | |
4fa63067 NN |
25958 | maintainer-clean-target-winsup: |
25959 | @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \ | |
25960 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 25961 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 25962 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
25963 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/winsup" ; \ |
25964 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
25965 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
25966 | done; \ | |
25967 | (cd $(TARGET_SUBDIR)/winsup && \ | |
25968 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
25969 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25970 | "RANLIB=$${RANLIB}" \ | |
25971 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 25972 | maintainer-clean) \ |
4fa63067 | 25973 | || exit 1 |
3866be5d | 25974 | |
6bd3dfaa | 25975 | @endif target-winsup |
3866be5d | 25976 | |
16ae0395 | 25977 | |
3866be5d | 25978 | |
4fa63067 | 25979 | # There's only one multilib.out. Cleverer subdirs shouldn't need it copied. |
a7254363 | 25980 | @if target-libgloss |
4fa63067 NN |
25981 | $(TARGET_SUBDIR)/libgloss/multilib.out: multilib.out |
25982 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss ; \ | |
25983 | rm -f $(TARGET_SUBDIR)/libgloss/Makefile || : ; \ | |
25984 | cp multilib.out $(TARGET_SUBDIR)/libgloss/multilib.out | |
a7254363 PB |
25985 | @endif target-libgloss |
25986 | ||
e90269c8 | 25987 | |
a7254363 PB |
25988 | |
25989 | .PHONY: configure-target-libgloss maybe-configure-target-libgloss | |
25990 | maybe-configure-target-libgloss: | |
25991 | @if target-libgloss | |
25992 | maybe-configure-target-libgloss: configure-target-libgloss | |
4fa63067 NN |
25993 | configure-target-libgloss: $(TARGET_SUBDIR)/libgloss/multilib.out |
25994 | @test ! -f $(TARGET_SUBDIR)/libgloss/Makefile || exit 0; \ | |
25995 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss ; \ | |
b40e3958 L |
25996 | r=`${PWD_COMMAND}`; export r; \ |
25997 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25998 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
25999 | echo Configuring in $(TARGET_SUBDIR)/libgloss; \ |
26000 | cd "$(TARGET_SUBDIR)/libgloss" || exit 1; \ | |
e2b9e2dc | 26001 | case $(srcdir) in \ |
b00612cc PB |
26002 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
26003 | *) topdir=`echo $(TARGET_SUBDIR)/libgloss/ | \ | |
26004 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 26005 | esac; \ |
b00612cc PB |
26006 | srcdiroption="--srcdir=$${topdir}/libgloss"; \ |
26007 | libsrcdir="$$s/libgloss"; \ | |
4fa63067 NN |
26008 | rm -f no-such-file || : ; \ |
26009 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
a7254363 | 26010 | $(TARGET_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 26011 | || exit 1 |
6bd3dfaa | 26012 | @endif target-libgloss |
e2b9e2dc | 26013 | |
a7254363 PB |
26014 | |
26015 | ||
4fa63067 NN |
26016 | .PHONY: all-target-libgloss maybe-all-target-libgloss |
26017 | maybe-all-target-libgloss: | |
6bd3dfaa | 26018 | @if target-libgloss |
72b2455a | 26019 | TARGET-target-libgloss=all |
6bd3dfaa | 26020 | maybe-all-target-libgloss: all-target-libgloss |
4fa63067 | 26021 | all-target-libgloss: configure-target-libgloss |
b40e3958 L |
26022 | @r=`${PWD_COMMAND}`; export r; \ |
26023 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26024 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 26025 | (cd $(TARGET_SUBDIR)/libgloss && \ |
a7254363 | 26026 | $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libgloss)) |
6bd3dfaa | 26027 | @endif target-libgloss |
e393202e | 26028 | |
a7254363 PB |
26029 | |
26030 | ||
4fa63067 NN |
26031 | .PHONY: check-target-libgloss maybe-check-target-libgloss |
26032 | maybe-check-target-libgloss: | |
6bd3dfaa PB |
26033 | @if target-libgloss |
26034 | maybe-check-target-libgloss: check-target-libgloss | |
e393202e | 26035 | |
4fa63067 NN |
26036 | # Dummy target for uncheckable module. |
26037 | check-target-libgloss: | |
e393202e | 26038 | |
6bd3dfaa | 26039 | @endif target-libgloss |
e393202e | 26040 | |
4fa63067 NN |
26041 | .PHONY: install-target-libgloss maybe-install-target-libgloss |
26042 | maybe-install-target-libgloss: | |
6bd3dfaa PB |
26043 | @if target-libgloss |
26044 | maybe-install-target-libgloss: install-target-libgloss | |
16ae0395 | 26045 | |
4fa63067 | 26046 | install-target-libgloss: installdirs |
b40e3958 L |
26047 | @r=`${PWD_COMMAND}`; export r; \ |
26048 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26049 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 26050 | (cd $(TARGET_SUBDIR)/libgloss && \ |
7ffa0b57 | 26051 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
e393202e | 26052 | |
6bd3dfaa | 26053 | @endif target-libgloss |
3866be5d | 26054 | |
4fa63067 NN |
26055 | # Other targets (info, dvi, etc.) |
26056 | ||
26057 | .PHONY: maybe-info-target-libgloss info-target-libgloss | |
26058 | maybe-info-target-libgloss: | |
6bd3dfaa PB |
26059 | @if target-libgloss |
26060 | maybe-info-target-libgloss: info-target-libgloss | |
4fa63067 NN |
26061 | |
26062 | info-target-libgloss: \ | |
26063 | configure-target-libgloss | |
26064 | @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \ | |
b40e3958 L |
26065 | r=`${PWD_COMMAND}`; export r; \ |
26066 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26067 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
26068 | echo "Doing info in $(TARGET_SUBDIR)/libgloss" ; \ |
26069 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
26070 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
26071 | done; \ | |
26072 | (cd $(TARGET_SUBDIR)/libgloss && \ | |
26073 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
26074 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26075 | "RANLIB=$${RANLIB}" \ | |
26076 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 26077 | info) \ |
ce5b542e MC |
26078 | || exit 1 |
26079 | ||
6bd3dfaa | 26080 | @endif target-libgloss |
ce5b542e | 26081 | |
4fa63067 NN |
26082 | .PHONY: maybe-dvi-target-libgloss dvi-target-libgloss |
26083 | maybe-dvi-target-libgloss: | |
6bd3dfaa PB |
26084 | @if target-libgloss |
26085 | maybe-dvi-target-libgloss: dvi-target-libgloss | |
ce5b542e | 26086 | |
4fa63067 NN |
26087 | dvi-target-libgloss: \ |
26088 | configure-target-libgloss | |
26089 | @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \ | |
26090 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 26091 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 26092 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
26093 | echo "Doing dvi in $(TARGET_SUBDIR)/libgloss" ; \ |
26094 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
26095 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
26096 | done; \ | |
26097 | (cd $(TARGET_SUBDIR)/libgloss && \ | |
26098 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
26099 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26100 | "RANLIB=$${RANLIB}" \ | |
26101 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 26102 | dvi) \ |
4fa63067 | 26103 | || exit 1 |
ce5b542e | 26104 | |
6bd3dfaa | 26105 | @endif target-libgloss |
ce5b542e | 26106 | |
6d389afc MS |
26107 | .PHONY: maybe-html-target-libgloss html-target-libgloss |
26108 | maybe-html-target-libgloss: | |
26109 | @if target-libgloss | |
26110 | maybe-html-target-libgloss: html-target-libgloss | |
26111 | ||
26112 | html-target-libgloss: \ | |
26113 | configure-target-libgloss | |
26114 | @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \ | |
26115 | r=`${PWD_COMMAND}`; export r; \ | |
26116 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
26117 | $(NORMAL_TARGET_EXPORTS) \ |
26118 | echo "Doing html in $(TARGET_SUBDIR)/libgloss" ; \ | |
26119 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
26120 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
26121 | done; \ | |
26122 | (cd $(TARGET_SUBDIR)/libgloss && \ | |
26123 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
26124 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26125 | "RANLIB=$${RANLIB}" \ | |
26126 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
26127 | html) \ | |
26128 | || exit 1 | |
26129 | ||
26130 | @endif target-libgloss | |
26131 | ||
4fa63067 NN |
26132 | .PHONY: maybe-TAGS-target-libgloss TAGS-target-libgloss |
26133 | maybe-TAGS-target-libgloss: | |
6bd3dfaa PB |
26134 | @if target-libgloss |
26135 | maybe-TAGS-target-libgloss: TAGS-target-libgloss | |
16ae0395 | 26136 | |
4fa63067 NN |
26137 | TAGS-target-libgloss: \ |
26138 | configure-target-libgloss | |
26139 | @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \ | |
26140 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 26141 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 26142 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
26143 | echo "Doing TAGS in $(TARGET_SUBDIR)/libgloss" ; \ |
26144 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
26145 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
26146 | done; \ | |
26147 | (cd $(TARGET_SUBDIR)/libgloss && \ | |
26148 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
26149 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26150 | "RANLIB=$${RANLIB}" \ | |
26151 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 26152 | TAGS) \ |
4fa63067 | 26153 | || exit 1 |
ce5b542e | 26154 | |
6bd3dfaa | 26155 | @endif target-libgloss |
ce5b542e | 26156 | |
4fa63067 NN |
26157 | .PHONY: maybe-install-info-target-libgloss install-info-target-libgloss |
26158 | maybe-install-info-target-libgloss: | |
6bd3dfaa PB |
26159 | @if target-libgloss |
26160 | maybe-install-info-target-libgloss: install-info-target-libgloss | |
4fa63067 NN |
26161 | |
26162 | install-info-target-libgloss: \ | |
26163 | configure-target-libgloss \ | |
26164 | info-target-libgloss | |
26165 | @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \ | |
b40e3958 L |
26166 | r=`${PWD_COMMAND}`; export r; \ |
26167 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26168 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
26169 | echo "Doing install-info in $(TARGET_SUBDIR)/libgloss" ; \ |
26170 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
26171 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
26172 | done; \ | |
26173 | (cd $(TARGET_SUBDIR)/libgloss && \ | |
26174 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
26175 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26176 | "RANLIB=$${RANLIB}" \ | |
26177 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 26178 | install-info) \ |
e2b9e2dc NN |
26179 | || exit 1 |
26180 | ||
6bd3dfaa | 26181 | @endif target-libgloss |
e393202e | 26182 | |
4fa63067 NN |
26183 | .PHONY: maybe-installcheck-target-libgloss installcheck-target-libgloss |
26184 | maybe-installcheck-target-libgloss: | |
6bd3dfaa PB |
26185 | @if target-libgloss |
26186 | maybe-installcheck-target-libgloss: installcheck-target-libgloss | |
e393202e | 26187 | |
4fa63067 NN |
26188 | installcheck-target-libgloss: \ |
26189 | configure-target-libgloss | |
26190 | @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \ | |
26191 | r=`${PWD_COMMAND}`; export r; \ | |
26192 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26193 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
26194 | echo "Doing installcheck in $(TARGET_SUBDIR)/libgloss" ; \ |
26195 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
26196 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
26197 | done; \ | |
26198 | (cd $(TARGET_SUBDIR)/libgloss && \ | |
26199 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
26200 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26201 | "RANLIB=$${RANLIB}" \ | |
26202 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 26203 | installcheck) \ |
4fa63067 | 26204 | || exit 1 |
3866be5d | 26205 | |
6bd3dfaa | 26206 | @endif target-libgloss |
3866be5d | 26207 | |
4fa63067 NN |
26208 | .PHONY: maybe-mostlyclean-target-libgloss mostlyclean-target-libgloss |
26209 | maybe-mostlyclean-target-libgloss: | |
6bd3dfaa PB |
26210 | @if target-libgloss |
26211 | maybe-mostlyclean-target-libgloss: mostlyclean-target-libgloss | |
16ae0395 | 26212 | |
4fa63067 NN |
26213 | mostlyclean-target-libgloss: |
26214 | @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \ | |
26215 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 26216 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 26217 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
26218 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgloss" ; \ |
26219 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
26220 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
26221 | done; \ | |
26222 | (cd $(TARGET_SUBDIR)/libgloss && \ | |
26223 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
26224 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26225 | "RANLIB=$${RANLIB}" \ | |
26226 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 26227 | mostlyclean) \ |
4fa63067 | 26228 | || exit 1 |
e393202e | 26229 | |
6bd3dfaa | 26230 | @endif target-libgloss |
3866be5d | 26231 | |
4fa63067 NN |
26232 | .PHONY: maybe-clean-target-libgloss clean-target-libgloss |
26233 | maybe-clean-target-libgloss: | |
6bd3dfaa PB |
26234 | @if target-libgloss |
26235 | maybe-clean-target-libgloss: clean-target-libgloss | |
4fa63067 NN |
26236 | |
26237 | clean-target-libgloss: | |
26238 | @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \ | |
b40e3958 L |
26239 | r=`${PWD_COMMAND}`; export r; \ |
26240 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26241 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
26242 | echo "Doing clean in $(TARGET_SUBDIR)/libgloss" ; \ |
26243 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
26244 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
26245 | done; \ | |
26246 | (cd $(TARGET_SUBDIR)/libgloss && \ | |
26247 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
26248 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26249 | "RANLIB=$${RANLIB}" \ | |
26250 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 26251 | clean) \ |
e2b9e2dc NN |
26252 | || exit 1 |
26253 | ||
6bd3dfaa | 26254 | @endif target-libgloss |
e393202e | 26255 | |
4fa63067 NN |
26256 | .PHONY: maybe-distclean-target-libgloss distclean-target-libgloss |
26257 | maybe-distclean-target-libgloss: | |
6bd3dfaa PB |
26258 | @if target-libgloss |
26259 | maybe-distclean-target-libgloss: distclean-target-libgloss | |
3866be5d | 26260 | |
4fa63067 NN |
26261 | distclean-target-libgloss: |
26262 | @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \ | |
26263 | r=`${PWD_COMMAND}`; export r; \ | |
26264 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26265 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
26266 | echo "Doing distclean in $(TARGET_SUBDIR)/libgloss" ; \ |
26267 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
26268 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
26269 | done; \ | |
26270 | (cd $(TARGET_SUBDIR)/libgloss && \ | |
26271 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
26272 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26273 | "RANLIB=$${RANLIB}" \ | |
26274 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 26275 | distclean) \ |
4fa63067 | 26276 | || exit 1 |
3866be5d | 26277 | |
6bd3dfaa | 26278 | @endif target-libgloss |
3866be5d | 26279 | |
4fa63067 NN |
26280 | .PHONY: maybe-maintainer-clean-target-libgloss maintainer-clean-target-libgloss |
26281 | maybe-maintainer-clean-target-libgloss: | |
6bd3dfaa PB |
26282 | @if target-libgloss |
26283 | maybe-maintainer-clean-target-libgloss: maintainer-clean-target-libgloss | |
16ae0395 | 26284 | |
4fa63067 NN |
26285 | maintainer-clean-target-libgloss: |
26286 | @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \ | |
26287 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 26288 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 26289 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
26290 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgloss" ; \ |
26291 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
26292 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
26293 | done; \ | |
26294 | (cd $(TARGET_SUBDIR)/libgloss && \ | |
26295 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
26296 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26297 | "RANLIB=$${RANLIB}" \ | |
26298 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 26299 | maintainer-clean) \ |
4fa63067 | 26300 | || exit 1 |
3866be5d | 26301 | |
6bd3dfaa | 26302 | @endif target-libgloss |
3866be5d | 26303 | |
e393202e | 26304 | |
15723a45 | 26305 | |
1086bc09 | 26306 | # There's only one multilib.out. Cleverer subdirs shouldn't need it copied. |
a7254363 | 26307 | @if target-libiberty |
4fa63067 NN |
26308 | $(TARGET_SUBDIR)/libiberty/multilib.out: multilib.out |
26309 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libiberty ; \ | |
26310 | rm -f $(TARGET_SUBDIR)/libiberty/Makefile || : ; \ | |
26311 | cp multilib.out $(TARGET_SUBDIR)/libiberty/multilib.out | |
a7254363 PB |
26312 | @endif target-libiberty |
26313 | ||
e90269c8 | 26314 | |
a7254363 PB |
26315 | |
26316 | .PHONY: configure-target-libiberty maybe-configure-target-libiberty | |
26317 | maybe-configure-target-libiberty: | |
26318 | @if target-libiberty | |
26319 | maybe-configure-target-libiberty: configure-target-libiberty | |
4fa63067 NN |
26320 | configure-target-libiberty: $(TARGET_SUBDIR)/libiberty/multilib.out |
26321 | @test ! -f $(TARGET_SUBDIR)/libiberty/Makefile || exit 0; \ | |
26322 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libiberty ; \ | |
b40e3958 L |
26323 | r=`${PWD_COMMAND}`; export r; \ |
26324 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26325 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
26326 | echo Configuring in $(TARGET_SUBDIR)/libiberty; \ |
26327 | cd "$(TARGET_SUBDIR)/libiberty" || exit 1; \ | |
bba45b8b | 26328 | case $(srcdir) in \ |
b00612cc PB |
26329 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
26330 | *) topdir=`echo $(TARGET_SUBDIR)/libiberty/ | \ | |
26331 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
bba45b8b | 26332 | esac; \ |
b00612cc PB |
26333 | srcdiroption="--srcdir=$${topdir}/libiberty"; \ |
26334 | libsrcdir="$$s/libiberty"; \ | |
bba45b8b NN |
26335 | rm -f no-such-file || : ; \ |
26336 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
a7254363 | 26337 | $(TARGET_CONFIGARGS) $${srcdiroption} \ |
bba45b8b | 26338 | || exit 1 |
6bd3dfaa | 26339 | @endif target-libiberty |
e393202e | 26340 | |
a7254363 PB |
26341 | |
26342 | ||
4fa63067 NN |
26343 | .PHONY: all-target-libiberty maybe-all-target-libiberty |
26344 | maybe-all-target-libiberty: | |
6bd3dfaa | 26345 | @if target-libiberty |
72b2455a | 26346 | TARGET-target-libiberty=all |
6bd3dfaa | 26347 | maybe-all-target-libiberty: all-target-libiberty |
4fa63067 | 26348 | all-target-libiberty: configure-target-libiberty |
b40e3958 L |
26349 | @r=`${PWD_COMMAND}`; export r; \ |
26350 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26351 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 26352 | (cd $(TARGET_SUBDIR)/libiberty && \ |
a7254363 | 26353 | $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libiberty)) |
6bd3dfaa | 26354 | @endif target-libiberty |
e393202e | 26355 | |
a7254363 PB |
26356 | |
26357 | ||
4fa63067 NN |
26358 | .PHONY: check-target-libiberty maybe-check-target-libiberty |
26359 | maybe-check-target-libiberty: | |
6bd3dfaa PB |
26360 | @if target-libiberty |
26361 | maybe-check-target-libiberty: check-target-libiberty | |
16ae0395 | 26362 | |
4fa63067 | 26363 | check-target-libiberty: |
b40e3958 L |
26364 | @r=`${PWD_COMMAND}`; export r; \ |
26365 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26366 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 26367 | (cd $(TARGET_SUBDIR)/libiberty && \ |
7ffa0b57 | 26368 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) |
930314a4 | 26369 | |
6bd3dfaa | 26370 | @endif target-libiberty |
e393202e | 26371 | |
4fa63067 NN |
26372 | .PHONY: install-target-libiberty maybe-install-target-libiberty |
26373 | maybe-install-target-libiberty: | |
6bd3dfaa PB |
26374 | @if target-libiberty |
26375 | maybe-install-target-libiberty: install-target-libiberty | |
4fa63067 NN |
26376 | |
26377 | install-target-libiberty: installdirs | |
26378 | @r=`${PWD_COMMAND}`; export r; \ | |
26379 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26380 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 26381 | (cd $(TARGET_SUBDIR)/libiberty && \ |
7ffa0b57 | 26382 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
4fa63067 | 26383 | |
6bd3dfaa | 26384 | @endif target-libiberty |
4fa63067 NN |
26385 | |
26386 | # Other targets (info, dvi, etc.) | |
26387 | ||
26388 | .PHONY: maybe-info-target-libiberty info-target-libiberty | |
26389 | maybe-info-target-libiberty: | |
6bd3dfaa PB |
26390 | @if target-libiberty |
26391 | maybe-info-target-libiberty: info-target-libiberty | |
4fa63067 NN |
26392 | |
26393 | info-target-libiberty: \ | |
26394 | configure-target-libiberty | |
26395 | @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \ | |
26396 | r=`${PWD_COMMAND}`; export r; \ | |
26397 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26398 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
26399 | echo "Doing info in $(TARGET_SUBDIR)/libiberty" ; \ |
26400 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
26401 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
26402 | done; \ | |
26403 | (cd $(TARGET_SUBDIR)/libiberty && \ | |
26404 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
26405 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26406 | "RANLIB=$${RANLIB}" \ | |
26407 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 26408 | info) \ |
4fa63067 NN |
26409 | || exit 1 |
26410 | ||
6bd3dfaa | 26411 | @endif target-libiberty |
4fa63067 NN |
26412 | |
26413 | .PHONY: maybe-dvi-target-libiberty dvi-target-libiberty | |
26414 | maybe-dvi-target-libiberty: | |
6bd3dfaa PB |
26415 | @if target-libiberty |
26416 | maybe-dvi-target-libiberty: dvi-target-libiberty | |
4fa63067 NN |
26417 | |
26418 | dvi-target-libiberty: \ | |
26419 | configure-target-libiberty | |
26420 | @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \ | |
26421 | r=`${PWD_COMMAND}`; export r; \ | |
26422 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26423 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
26424 | echo "Doing dvi in $(TARGET_SUBDIR)/libiberty" ; \ |
26425 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
26426 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
26427 | done; \ | |
26428 | (cd $(TARGET_SUBDIR)/libiberty && \ | |
26429 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
26430 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26431 | "RANLIB=$${RANLIB}" \ | |
26432 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 26433 | dvi) \ |
4fa63067 NN |
26434 | || exit 1 |
26435 | ||
6bd3dfaa | 26436 | @endif target-libiberty |
4fa63067 | 26437 | |
6d389afc MS |
26438 | .PHONY: maybe-html-target-libiberty html-target-libiberty |
26439 | maybe-html-target-libiberty: | |
26440 | @if target-libiberty | |
26441 | maybe-html-target-libiberty: html-target-libiberty | |
26442 | ||
26443 | html-target-libiberty: \ | |
26444 | configure-target-libiberty | |
26445 | @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \ | |
26446 | r=`${PWD_COMMAND}`; export r; \ | |
26447 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
26448 | $(NORMAL_TARGET_EXPORTS) \ |
26449 | echo "Doing html in $(TARGET_SUBDIR)/libiberty" ; \ | |
26450 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
26451 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
26452 | done; \ | |
26453 | (cd $(TARGET_SUBDIR)/libiberty && \ | |
26454 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
26455 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26456 | "RANLIB=$${RANLIB}" \ | |
26457 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
26458 | html) \ | |
26459 | || exit 1 | |
26460 | ||
26461 | @endif target-libiberty | |
26462 | ||
4fa63067 NN |
26463 | .PHONY: maybe-TAGS-target-libiberty TAGS-target-libiberty |
26464 | maybe-TAGS-target-libiberty: | |
6bd3dfaa PB |
26465 | @if target-libiberty |
26466 | maybe-TAGS-target-libiberty: TAGS-target-libiberty | |
4fa63067 NN |
26467 | |
26468 | TAGS-target-libiberty: \ | |
26469 | configure-target-libiberty | |
26470 | @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \ | |
26471 | r=`${PWD_COMMAND}`; export r; \ | |
26472 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26473 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
26474 | echo "Doing TAGS in $(TARGET_SUBDIR)/libiberty" ; \ |
26475 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
26476 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
26477 | done; \ | |
26478 | (cd $(TARGET_SUBDIR)/libiberty && \ | |
26479 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
26480 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26481 | "RANLIB=$${RANLIB}" \ | |
26482 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 26483 | TAGS) \ |
4fa63067 NN |
26484 | || exit 1 |
26485 | ||
6bd3dfaa | 26486 | @endif target-libiberty |
4fa63067 NN |
26487 | |
26488 | .PHONY: maybe-install-info-target-libiberty install-info-target-libiberty | |
26489 | maybe-install-info-target-libiberty: | |
6bd3dfaa PB |
26490 | @if target-libiberty |
26491 | maybe-install-info-target-libiberty: install-info-target-libiberty | |
4fa63067 NN |
26492 | |
26493 | install-info-target-libiberty: \ | |
26494 | configure-target-libiberty \ | |
26495 | info-target-libiberty | |
26496 | @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \ | |
26497 | r=`${PWD_COMMAND}`; export r; \ | |
26498 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26499 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
26500 | echo "Doing install-info in $(TARGET_SUBDIR)/libiberty" ; \ |
26501 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
26502 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
26503 | done; \ | |
26504 | (cd $(TARGET_SUBDIR)/libiberty && \ | |
26505 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
26506 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26507 | "RANLIB=$${RANLIB}" \ | |
26508 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 26509 | install-info) \ |
4fa63067 NN |
26510 | || exit 1 |
26511 | ||
6bd3dfaa | 26512 | @endif target-libiberty |
4fa63067 NN |
26513 | |
26514 | .PHONY: maybe-installcheck-target-libiberty installcheck-target-libiberty | |
26515 | maybe-installcheck-target-libiberty: | |
6bd3dfaa PB |
26516 | @if target-libiberty |
26517 | maybe-installcheck-target-libiberty: installcheck-target-libiberty | |
4fa63067 NN |
26518 | |
26519 | installcheck-target-libiberty: \ | |
26520 | configure-target-libiberty | |
26521 | @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \ | |
26522 | r=`${PWD_COMMAND}`; export r; \ | |
26523 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26524 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
26525 | echo "Doing installcheck in $(TARGET_SUBDIR)/libiberty" ; \ |
26526 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
26527 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
26528 | done; \ | |
26529 | (cd $(TARGET_SUBDIR)/libiberty && \ | |
26530 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
26531 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26532 | "RANLIB=$${RANLIB}" \ | |
26533 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 26534 | installcheck) \ |
4fa63067 NN |
26535 | || exit 1 |
26536 | ||
6bd3dfaa | 26537 | @endif target-libiberty |
4fa63067 NN |
26538 | |
26539 | .PHONY: maybe-mostlyclean-target-libiberty mostlyclean-target-libiberty | |
26540 | maybe-mostlyclean-target-libiberty: | |
6bd3dfaa PB |
26541 | @if target-libiberty |
26542 | maybe-mostlyclean-target-libiberty: mostlyclean-target-libiberty | |
4fa63067 NN |
26543 | |
26544 | mostlyclean-target-libiberty: | |
26545 | @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \ | |
26546 | r=`${PWD_COMMAND}`; export r; \ | |
26547 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26548 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
26549 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/libiberty" ; \ |
26550 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
26551 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
26552 | done; \ | |
26553 | (cd $(TARGET_SUBDIR)/libiberty && \ | |
26554 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
26555 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26556 | "RANLIB=$${RANLIB}" \ | |
26557 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 26558 | mostlyclean) \ |
4fa63067 NN |
26559 | || exit 1 |
26560 | ||
6bd3dfaa | 26561 | @endif target-libiberty |
4fa63067 NN |
26562 | |
26563 | .PHONY: maybe-clean-target-libiberty clean-target-libiberty | |
26564 | maybe-clean-target-libiberty: | |
6bd3dfaa PB |
26565 | @if target-libiberty |
26566 | maybe-clean-target-libiberty: clean-target-libiberty | |
4fa63067 NN |
26567 | |
26568 | clean-target-libiberty: | |
26569 | @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \ | |
26570 | r=`${PWD_COMMAND}`; export r; \ | |
26571 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26572 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
26573 | echo "Doing clean in $(TARGET_SUBDIR)/libiberty" ; \ |
26574 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
26575 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
26576 | done; \ | |
26577 | (cd $(TARGET_SUBDIR)/libiberty && \ | |
26578 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
26579 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26580 | "RANLIB=$${RANLIB}" \ | |
26581 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 26582 | clean) \ |
4fa63067 NN |
26583 | || exit 1 |
26584 | ||
6bd3dfaa | 26585 | @endif target-libiberty |
4fa63067 NN |
26586 | |
26587 | .PHONY: maybe-distclean-target-libiberty distclean-target-libiberty | |
26588 | maybe-distclean-target-libiberty: | |
6bd3dfaa PB |
26589 | @if target-libiberty |
26590 | maybe-distclean-target-libiberty: distclean-target-libiberty | |
4fa63067 NN |
26591 | |
26592 | distclean-target-libiberty: | |
26593 | @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \ | |
26594 | r=`${PWD_COMMAND}`; export r; \ | |
26595 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26596 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
26597 | echo "Doing distclean in $(TARGET_SUBDIR)/libiberty" ; \ |
26598 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
26599 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
26600 | done; \ | |
26601 | (cd $(TARGET_SUBDIR)/libiberty && \ | |
26602 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
26603 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26604 | "RANLIB=$${RANLIB}" \ | |
26605 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 26606 | distclean) \ |
4fa63067 NN |
26607 | || exit 1 |
26608 | ||
6bd3dfaa | 26609 | @endif target-libiberty |
4fa63067 NN |
26610 | |
26611 | .PHONY: maybe-maintainer-clean-target-libiberty maintainer-clean-target-libiberty | |
26612 | maybe-maintainer-clean-target-libiberty: | |
6bd3dfaa PB |
26613 | @if target-libiberty |
26614 | maybe-maintainer-clean-target-libiberty: maintainer-clean-target-libiberty | |
4fa63067 NN |
26615 | |
26616 | maintainer-clean-target-libiberty: | |
26617 | @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \ | |
26618 | r=`${PWD_COMMAND}`; export r; \ | |
26619 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26620 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
26621 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libiberty" ; \ |
26622 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
26623 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
26624 | done; \ | |
26625 | (cd $(TARGET_SUBDIR)/libiberty && \ | |
26626 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
26627 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26628 | "RANLIB=$${RANLIB}" \ | |
26629 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 26630 | maintainer-clean) \ |
4fa63067 | 26631 | || exit 1 |
16ae0395 | 26632 | |
6bd3dfaa | 26633 | @endif target-libiberty |
e393202e NN |
26634 | |
26635 | ||
15723a45 | 26636 | |
1086bc09 | 26637 | # There's only one multilib.out. Cleverer subdirs shouldn't need it copied. |
a7254363 | 26638 | @if target-gperf |
4fa63067 NN |
26639 | $(TARGET_SUBDIR)/gperf/multilib.out: multilib.out |
26640 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/gperf ; \ | |
26641 | rm -f $(TARGET_SUBDIR)/gperf/Makefile || : ; \ | |
26642 | cp multilib.out $(TARGET_SUBDIR)/gperf/multilib.out | |
a7254363 PB |
26643 | @endif target-gperf |
26644 | ||
e90269c8 | 26645 | |
a7254363 PB |
26646 | |
26647 | .PHONY: configure-target-gperf maybe-configure-target-gperf | |
26648 | maybe-configure-target-gperf: | |
26649 | @if target-gperf | |
26650 | maybe-configure-target-gperf: configure-target-gperf | |
4fa63067 NN |
26651 | configure-target-gperf: $(TARGET_SUBDIR)/gperf/multilib.out |
26652 | @test ! -f $(TARGET_SUBDIR)/gperf/Makefile || exit 0; \ | |
26653 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/gperf ; \ | |
b40e3958 L |
26654 | r=`${PWD_COMMAND}`; export r; \ |
26655 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26656 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
26657 | echo Configuring in $(TARGET_SUBDIR)/gperf; \ |
26658 | cd "$(TARGET_SUBDIR)/gperf" || exit 1; \ | |
bba45b8b | 26659 | case $(srcdir) in \ |
b00612cc PB |
26660 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
26661 | *) topdir=`echo $(TARGET_SUBDIR)/gperf/ | \ | |
26662 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
bba45b8b | 26663 | esac; \ |
b00612cc PB |
26664 | srcdiroption="--srcdir=$${topdir}/gperf"; \ |
26665 | libsrcdir="$$s/gperf"; \ | |
bba45b8b NN |
26666 | rm -f no-such-file || : ; \ |
26667 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
a7254363 | 26668 | $(TARGET_CONFIGARGS) $${srcdiroption} \ |
bba45b8b | 26669 | || exit 1 |
6bd3dfaa | 26670 | @endif target-gperf |
e393202e | 26671 | |
a7254363 PB |
26672 | |
26673 | ||
4fa63067 NN |
26674 | .PHONY: all-target-gperf maybe-all-target-gperf |
26675 | maybe-all-target-gperf: | |
6bd3dfaa | 26676 | @if target-gperf |
72b2455a | 26677 | TARGET-target-gperf=all |
6bd3dfaa | 26678 | maybe-all-target-gperf: all-target-gperf |
4fa63067 | 26679 | all-target-gperf: configure-target-gperf |
b40e3958 L |
26680 | @r=`${PWD_COMMAND}`; export r; \ |
26681 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26682 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 26683 | (cd $(TARGET_SUBDIR)/gperf && \ |
a7254363 | 26684 | $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-gperf)) |
6bd3dfaa | 26685 | @endif target-gperf |
e393202e | 26686 | |
a7254363 PB |
26687 | |
26688 | ||
4fa63067 NN |
26689 | .PHONY: check-target-gperf maybe-check-target-gperf |
26690 | maybe-check-target-gperf: | |
6bd3dfaa PB |
26691 | @if target-gperf |
26692 | maybe-check-target-gperf: check-target-gperf | |
16ae0395 | 26693 | |
4fa63067 | 26694 | check-target-gperf: |
b40e3958 L |
26695 | @r=`${PWD_COMMAND}`; export r; \ |
26696 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26697 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 26698 | (cd $(TARGET_SUBDIR)/gperf && \ |
7ffa0b57 | 26699 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) |
930314a4 | 26700 | |
6bd3dfaa | 26701 | @endif target-gperf |
e393202e | 26702 | |
4fa63067 NN |
26703 | .PHONY: install-target-gperf maybe-install-target-gperf |
26704 | maybe-install-target-gperf: | |
6bd3dfaa PB |
26705 | @if target-gperf |
26706 | maybe-install-target-gperf: install-target-gperf | |
4fa63067 NN |
26707 | |
26708 | install-target-gperf: installdirs | |
26709 | @r=`${PWD_COMMAND}`; export r; \ | |
26710 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26711 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 26712 | (cd $(TARGET_SUBDIR)/gperf && \ |
7ffa0b57 | 26713 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
4fa63067 | 26714 | |
6bd3dfaa | 26715 | @endif target-gperf |
4fa63067 NN |
26716 | |
26717 | # Other targets (info, dvi, etc.) | |
26718 | ||
26719 | .PHONY: maybe-info-target-gperf info-target-gperf | |
26720 | maybe-info-target-gperf: | |
6bd3dfaa PB |
26721 | @if target-gperf |
26722 | maybe-info-target-gperf: info-target-gperf | |
4fa63067 NN |
26723 | |
26724 | info-target-gperf: \ | |
26725 | configure-target-gperf | |
26726 | @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \ | |
26727 | r=`${PWD_COMMAND}`; export r; \ | |
26728 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26729 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
26730 | echo "Doing info in $(TARGET_SUBDIR)/gperf" ; \ |
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)/gperf && \ | |
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 | info) \ |
4fa63067 NN |
26740 | || exit 1 |
26741 | ||
6bd3dfaa | 26742 | @endif target-gperf |
4fa63067 NN |
26743 | |
26744 | .PHONY: maybe-dvi-target-gperf dvi-target-gperf | |
26745 | maybe-dvi-target-gperf: | |
6bd3dfaa PB |
26746 | @if target-gperf |
26747 | maybe-dvi-target-gperf: dvi-target-gperf | |
4fa63067 NN |
26748 | |
26749 | dvi-target-gperf: \ | |
26750 | configure-target-gperf | |
26751 | @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \ | |
26752 | r=`${PWD_COMMAND}`; export r; \ | |
26753 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26754 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
26755 | echo "Doing dvi in $(TARGET_SUBDIR)/gperf" ; \ |
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)/gperf && \ | |
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 | dvi) \ |
4fa63067 NN |
26765 | || exit 1 |
26766 | ||
6bd3dfaa | 26767 | @endif target-gperf |
4fa63067 | 26768 | |
6d389afc MS |
26769 | .PHONY: maybe-html-target-gperf html-target-gperf |
26770 | maybe-html-target-gperf: | |
26771 | @if target-gperf | |
26772 | maybe-html-target-gperf: html-target-gperf | |
26773 | ||
26774 | html-target-gperf: \ | |
26775 | configure-target-gperf | |
26776 | @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \ | |
26777 | r=`${PWD_COMMAND}`; export r; \ | |
26778 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
26779 | $(NORMAL_TARGET_EXPORTS) \ |
26780 | echo "Doing html in $(TARGET_SUBDIR)/gperf" ; \ | |
26781 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
26782 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
26783 | done; \ | |
26784 | (cd $(TARGET_SUBDIR)/gperf && \ | |
26785 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
26786 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26787 | "RANLIB=$${RANLIB}" \ | |
26788 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
26789 | html) \ | |
26790 | || exit 1 | |
26791 | ||
26792 | @endif target-gperf | |
26793 | ||
4fa63067 NN |
26794 | .PHONY: maybe-TAGS-target-gperf TAGS-target-gperf |
26795 | maybe-TAGS-target-gperf: | |
6bd3dfaa PB |
26796 | @if target-gperf |
26797 | maybe-TAGS-target-gperf: TAGS-target-gperf | |
4fa63067 NN |
26798 | |
26799 | TAGS-target-gperf: \ | |
26800 | configure-target-gperf | |
26801 | @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \ | |
26802 | r=`${PWD_COMMAND}`; export r; \ | |
26803 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26804 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
26805 | echo "Doing TAGS in $(TARGET_SUBDIR)/gperf" ; \ |
26806 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
26807 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
26808 | done; \ | |
26809 | (cd $(TARGET_SUBDIR)/gperf && \ | |
26810 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
26811 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26812 | "RANLIB=$${RANLIB}" \ | |
26813 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 26814 | TAGS) \ |
4fa63067 NN |
26815 | || exit 1 |
26816 | ||
6bd3dfaa | 26817 | @endif target-gperf |
4fa63067 NN |
26818 | |
26819 | .PHONY: maybe-install-info-target-gperf install-info-target-gperf | |
26820 | maybe-install-info-target-gperf: | |
6bd3dfaa PB |
26821 | @if target-gperf |
26822 | maybe-install-info-target-gperf: install-info-target-gperf | |
4fa63067 NN |
26823 | |
26824 | install-info-target-gperf: \ | |
26825 | configure-target-gperf \ | |
26826 | info-target-gperf | |
26827 | @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \ | |
26828 | r=`${PWD_COMMAND}`; export r; \ | |
26829 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26830 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
26831 | echo "Doing install-info in $(TARGET_SUBDIR)/gperf" ; \ |
26832 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
26833 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
26834 | done; \ | |
26835 | (cd $(TARGET_SUBDIR)/gperf && \ | |
26836 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
26837 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26838 | "RANLIB=$${RANLIB}" \ | |
26839 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 26840 | install-info) \ |
4fa63067 NN |
26841 | || exit 1 |
26842 | ||
6bd3dfaa | 26843 | @endif target-gperf |
4fa63067 NN |
26844 | |
26845 | .PHONY: maybe-installcheck-target-gperf installcheck-target-gperf | |
26846 | maybe-installcheck-target-gperf: | |
6bd3dfaa PB |
26847 | @if target-gperf |
26848 | maybe-installcheck-target-gperf: installcheck-target-gperf | |
4fa63067 NN |
26849 | |
26850 | installcheck-target-gperf: \ | |
26851 | configure-target-gperf | |
26852 | @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \ | |
26853 | r=`${PWD_COMMAND}`; export r; \ | |
26854 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26855 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
26856 | echo "Doing installcheck in $(TARGET_SUBDIR)/gperf" ; \ |
26857 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
26858 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
26859 | done; \ | |
26860 | (cd $(TARGET_SUBDIR)/gperf && \ | |
26861 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
26862 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26863 | "RANLIB=$${RANLIB}" \ | |
26864 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 26865 | installcheck) \ |
4fa63067 NN |
26866 | || exit 1 |
26867 | ||
6bd3dfaa | 26868 | @endif target-gperf |
4fa63067 NN |
26869 | |
26870 | .PHONY: maybe-mostlyclean-target-gperf mostlyclean-target-gperf | |
26871 | maybe-mostlyclean-target-gperf: | |
6bd3dfaa PB |
26872 | @if target-gperf |
26873 | maybe-mostlyclean-target-gperf: mostlyclean-target-gperf | |
4fa63067 NN |
26874 | |
26875 | mostlyclean-target-gperf: | |
26876 | @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \ | |
26877 | r=`${PWD_COMMAND}`; export r; \ | |
26878 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26879 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
26880 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/gperf" ; \ |
26881 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
26882 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
26883 | done; \ | |
26884 | (cd $(TARGET_SUBDIR)/gperf && \ | |
26885 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
26886 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26887 | "RANLIB=$${RANLIB}" \ | |
26888 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 26889 | mostlyclean) \ |
4fa63067 NN |
26890 | || exit 1 |
26891 | ||
6bd3dfaa | 26892 | @endif target-gperf |
4fa63067 NN |
26893 | |
26894 | .PHONY: maybe-clean-target-gperf clean-target-gperf | |
26895 | maybe-clean-target-gperf: | |
6bd3dfaa PB |
26896 | @if target-gperf |
26897 | maybe-clean-target-gperf: clean-target-gperf | |
4fa63067 NN |
26898 | |
26899 | clean-target-gperf: | |
26900 | @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \ | |
26901 | r=`${PWD_COMMAND}`; export r; \ | |
26902 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26903 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
26904 | echo "Doing clean in $(TARGET_SUBDIR)/gperf" ; \ |
26905 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
26906 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
26907 | done; \ | |
26908 | (cd $(TARGET_SUBDIR)/gperf && \ | |
26909 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
26910 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26911 | "RANLIB=$${RANLIB}" \ | |
26912 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 26913 | clean) \ |
4fa63067 NN |
26914 | || exit 1 |
26915 | ||
6bd3dfaa | 26916 | @endif target-gperf |
4fa63067 NN |
26917 | |
26918 | .PHONY: maybe-distclean-target-gperf distclean-target-gperf | |
26919 | maybe-distclean-target-gperf: | |
6bd3dfaa PB |
26920 | @if target-gperf |
26921 | maybe-distclean-target-gperf: distclean-target-gperf | |
4fa63067 NN |
26922 | |
26923 | distclean-target-gperf: | |
26924 | @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \ | |
26925 | r=`${PWD_COMMAND}`; export r; \ | |
26926 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26927 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
26928 | echo "Doing distclean in $(TARGET_SUBDIR)/gperf" ; \ |
26929 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
26930 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
26931 | done; \ | |
26932 | (cd $(TARGET_SUBDIR)/gperf && \ | |
26933 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
26934 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26935 | "RANLIB=$${RANLIB}" \ | |
26936 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 26937 | distclean) \ |
4fa63067 NN |
26938 | || exit 1 |
26939 | ||
6bd3dfaa | 26940 | @endif target-gperf |
4fa63067 NN |
26941 | |
26942 | .PHONY: maybe-maintainer-clean-target-gperf maintainer-clean-target-gperf | |
26943 | maybe-maintainer-clean-target-gperf: | |
6bd3dfaa PB |
26944 | @if target-gperf |
26945 | maybe-maintainer-clean-target-gperf: maintainer-clean-target-gperf | |
4fa63067 NN |
26946 | |
26947 | maintainer-clean-target-gperf: | |
26948 | @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \ | |
26949 | r=`${PWD_COMMAND}`; export r; \ | |
26950 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26951 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
26952 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/gperf" ; \ |
26953 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
26954 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
26955 | done; \ | |
26956 | (cd $(TARGET_SUBDIR)/gperf && \ | |
26957 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
26958 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26959 | "RANLIB=$${RANLIB}" \ | |
26960 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 26961 | maintainer-clean) \ |
4fa63067 | 26962 | || exit 1 |
16ae0395 | 26963 | |
6bd3dfaa | 26964 | @endif target-gperf |
e393202e NN |
26965 | |
26966 | ||
15723a45 | 26967 | |
1086bc09 | 26968 | # There's only one multilib.out. Cleverer subdirs shouldn't need it copied. |
a7254363 | 26969 | @if target-examples |
4fa63067 NN |
26970 | $(TARGET_SUBDIR)/examples/multilib.out: multilib.out |
26971 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/examples ; \ | |
26972 | rm -f $(TARGET_SUBDIR)/examples/Makefile || : ; \ | |
26973 | cp multilib.out $(TARGET_SUBDIR)/examples/multilib.out | |
a7254363 | 26974 | @endif target-examples |
e90269c8 | 26975 | |
a7254363 PB |
26976 | |
26977 | ||
26978 | .PHONY: configure-target-examples maybe-configure-target-examples | |
26979 | maybe-configure-target-examples: | |
26980 | @if target-examples | |
26981 | maybe-configure-target-examples: configure-target-examples | |
4fa63067 NN |
26982 | configure-target-examples: $(TARGET_SUBDIR)/examples/multilib.out |
26983 | @test ! -f $(TARGET_SUBDIR)/examples/Makefile || exit 0; \ | |
26984 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/examples ; \ | |
b40e3958 L |
26985 | r=`${PWD_COMMAND}`; export r; \ |
26986 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26987 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
26988 | echo Configuring in $(TARGET_SUBDIR)/examples; \ |
26989 | cd "$(TARGET_SUBDIR)/examples" || exit 1; \ | |
bba45b8b | 26990 | case $(srcdir) in \ |
b00612cc PB |
26991 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
26992 | *) topdir=`echo $(TARGET_SUBDIR)/examples/ | \ | |
26993 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
bba45b8b | 26994 | esac; \ |
b00612cc PB |
26995 | srcdiroption="--srcdir=$${topdir}/examples"; \ |
26996 | libsrcdir="$$s/examples"; \ | |
bba45b8b NN |
26997 | rm -f no-such-file || : ; \ |
26998 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
a7254363 | 26999 | $(TARGET_CONFIGARGS) $${srcdiroption} \ |
bba45b8b | 27000 | || exit 1 |
6bd3dfaa | 27001 | @endif target-examples |
e393202e | 27002 | |
a7254363 PB |
27003 | |
27004 | ||
4fa63067 NN |
27005 | .PHONY: all-target-examples maybe-all-target-examples |
27006 | maybe-all-target-examples: | |
6bd3dfaa | 27007 | @if target-examples |
72b2455a | 27008 | TARGET-target-examples=all |
6bd3dfaa | 27009 | maybe-all-target-examples: all-target-examples |
4fa63067 | 27010 | all-target-examples: configure-target-examples |
b40e3958 L |
27011 | @r=`${PWD_COMMAND}`; export r; \ |
27012 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27013 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 27014 | (cd $(TARGET_SUBDIR)/examples && \ |
a7254363 | 27015 | $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-examples)) |
6bd3dfaa | 27016 | @endif target-examples |
e393202e | 27017 | |
a7254363 PB |
27018 | |
27019 | ||
4fa63067 NN |
27020 | .PHONY: check-target-examples maybe-check-target-examples |
27021 | maybe-check-target-examples: | |
6bd3dfaa PB |
27022 | @if target-examples |
27023 | maybe-check-target-examples: check-target-examples | |
16ae0395 | 27024 | |
4fa63067 NN |
27025 | # Dummy target for uncheckable module. |
27026 | check-target-examples: | |
27027 | ||
6bd3dfaa | 27028 | @endif target-examples |
4fa63067 NN |
27029 | |
27030 | .PHONY: install-target-examples maybe-install-target-examples | |
27031 | maybe-install-target-examples: | |
6bd3dfaa PB |
27032 | @if target-examples |
27033 | maybe-install-target-examples: install-target-examples | |
4fa63067 NN |
27034 | |
27035 | # Dummy target for uninstallable. | |
27036 | install-target-examples: | |
27037 | ||
6bd3dfaa | 27038 | @endif target-examples |
4fa63067 NN |
27039 | |
27040 | # Other targets (info, dvi, etc.) | |
27041 | ||
27042 | .PHONY: maybe-info-target-examples info-target-examples | |
27043 | maybe-info-target-examples: | |
6bd3dfaa PB |
27044 | @if target-examples |
27045 | maybe-info-target-examples: info-target-examples | |
4fa63067 NN |
27046 | |
27047 | info-target-examples: \ | |
27048 | configure-target-examples | |
27049 | @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \ | |
27050 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 27051 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 27052 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
27053 | echo "Doing info in $(TARGET_SUBDIR)/examples" ; \ |
27054 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
27055 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
27056 | done; \ | |
27057 | (cd $(TARGET_SUBDIR)/examples && \ | |
27058 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
27059 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27060 | "RANLIB=$${RANLIB}" \ | |
27061 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 27062 | info) \ |
4fa63067 | 27063 | || exit 1 |
930314a4 | 27064 | |
6bd3dfaa | 27065 | @endif target-examples |
e393202e | 27066 | |
4fa63067 NN |
27067 | .PHONY: maybe-dvi-target-examples dvi-target-examples |
27068 | maybe-dvi-target-examples: | |
6bd3dfaa PB |
27069 | @if target-examples |
27070 | maybe-dvi-target-examples: dvi-target-examples | |
16ae0395 | 27071 | |
4fa63067 NN |
27072 | dvi-target-examples: \ |
27073 | configure-target-examples | |
27074 | @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \ | |
27075 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 27076 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 27077 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
27078 | echo "Doing dvi in $(TARGET_SUBDIR)/examples" ; \ |
27079 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
27080 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
27081 | done; \ | |
27082 | (cd $(TARGET_SUBDIR)/examples && \ | |
27083 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
27084 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27085 | "RANLIB=$${RANLIB}" \ | |
27086 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 27087 | dvi) \ |
4fa63067 NN |
27088 | || exit 1 |
27089 | ||
6bd3dfaa | 27090 | @endif target-examples |
4fa63067 | 27091 | |
6d389afc MS |
27092 | .PHONY: maybe-html-target-examples html-target-examples |
27093 | maybe-html-target-examples: | |
27094 | @if target-examples | |
27095 | maybe-html-target-examples: html-target-examples | |
27096 | ||
27097 | html-target-examples: \ | |
27098 | configure-target-examples | |
27099 | @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \ | |
27100 | r=`${PWD_COMMAND}`; export r; \ | |
27101 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
27102 | $(NORMAL_TARGET_EXPORTS) \ |
27103 | echo "Doing html in $(TARGET_SUBDIR)/examples" ; \ | |
27104 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
27105 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
27106 | done; \ | |
27107 | (cd $(TARGET_SUBDIR)/examples && \ | |
27108 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
27109 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27110 | "RANLIB=$${RANLIB}" \ | |
27111 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
27112 | html) \ | |
27113 | || exit 1 | |
27114 | ||
27115 | @endif target-examples | |
27116 | ||
4fa63067 NN |
27117 | .PHONY: maybe-TAGS-target-examples TAGS-target-examples |
27118 | maybe-TAGS-target-examples: | |
6bd3dfaa PB |
27119 | @if target-examples |
27120 | maybe-TAGS-target-examples: TAGS-target-examples | |
4fa63067 NN |
27121 | |
27122 | TAGS-target-examples: \ | |
27123 | configure-target-examples | |
27124 | @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \ | |
27125 | r=`${PWD_COMMAND}`; export r; \ | |
27126 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27127 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
27128 | echo "Doing TAGS in $(TARGET_SUBDIR)/examples" ; \ |
27129 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
27130 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
27131 | done; \ | |
27132 | (cd $(TARGET_SUBDIR)/examples && \ | |
27133 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
27134 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27135 | "RANLIB=$${RANLIB}" \ | |
27136 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 27137 | TAGS) \ |
4fa63067 NN |
27138 | || exit 1 |
27139 | ||
6bd3dfaa | 27140 | @endif target-examples |
4fa63067 NN |
27141 | |
27142 | .PHONY: maybe-install-info-target-examples install-info-target-examples | |
27143 | maybe-install-info-target-examples: | |
6bd3dfaa PB |
27144 | @if target-examples |
27145 | maybe-install-info-target-examples: install-info-target-examples | |
4fa63067 NN |
27146 | |
27147 | install-info-target-examples: \ | |
27148 | configure-target-examples \ | |
27149 | info-target-examples | |
27150 | @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \ | |
27151 | r=`${PWD_COMMAND}`; export r; \ | |
27152 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27153 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
27154 | echo "Doing install-info in $(TARGET_SUBDIR)/examples" ; \ |
27155 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
27156 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
27157 | done; \ | |
27158 | (cd $(TARGET_SUBDIR)/examples && \ | |
27159 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
27160 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27161 | "RANLIB=$${RANLIB}" \ | |
27162 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 27163 | install-info) \ |
4fa63067 NN |
27164 | || exit 1 |
27165 | ||
6bd3dfaa | 27166 | @endif target-examples |
4fa63067 NN |
27167 | |
27168 | .PHONY: maybe-installcheck-target-examples installcheck-target-examples | |
27169 | maybe-installcheck-target-examples: | |
6bd3dfaa PB |
27170 | @if target-examples |
27171 | maybe-installcheck-target-examples: installcheck-target-examples | |
4fa63067 NN |
27172 | |
27173 | installcheck-target-examples: \ | |
27174 | configure-target-examples | |
27175 | @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \ | |
27176 | r=`${PWD_COMMAND}`; export r; \ | |
27177 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27178 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
27179 | echo "Doing installcheck in $(TARGET_SUBDIR)/examples" ; \ |
27180 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
27181 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
27182 | done; \ | |
27183 | (cd $(TARGET_SUBDIR)/examples && \ | |
27184 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
27185 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27186 | "RANLIB=$${RANLIB}" \ | |
27187 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 27188 | installcheck) \ |
4fa63067 NN |
27189 | || exit 1 |
27190 | ||
6bd3dfaa | 27191 | @endif target-examples |
4fa63067 NN |
27192 | |
27193 | .PHONY: maybe-mostlyclean-target-examples mostlyclean-target-examples | |
27194 | maybe-mostlyclean-target-examples: | |
6bd3dfaa PB |
27195 | @if target-examples |
27196 | maybe-mostlyclean-target-examples: mostlyclean-target-examples | |
4fa63067 NN |
27197 | |
27198 | mostlyclean-target-examples: | |
27199 | @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \ | |
27200 | r=`${PWD_COMMAND}`; export r; \ | |
27201 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27202 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
27203 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/examples" ; \ |
27204 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
27205 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
27206 | done; \ | |
27207 | (cd $(TARGET_SUBDIR)/examples && \ | |
27208 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
27209 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27210 | "RANLIB=$${RANLIB}" \ | |
27211 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 27212 | mostlyclean) \ |
4fa63067 NN |
27213 | || exit 1 |
27214 | ||
6bd3dfaa | 27215 | @endif target-examples |
4fa63067 NN |
27216 | |
27217 | .PHONY: maybe-clean-target-examples clean-target-examples | |
27218 | maybe-clean-target-examples: | |
6bd3dfaa PB |
27219 | @if target-examples |
27220 | maybe-clean-target-examples: clean-target-examples | |
4fa63067 NN |
27221 | |
27222 | clean-target-examples: | |
27223 | @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \ | |
27224 | r=`${PWD_COMMAND}`; export r; \ | |
27225 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27226 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
27227 | echo "Doing clean in $(TARGET_SUBDIR)/examples" ; \ |
27228 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
27229 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
27230 | done; \ | |
27231 | (cd $(TARGET_SUBDIR)/examples && \ | |
27232 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
27233 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27234 | "RANLIB=$${RANLIB}" \ | |
27235 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 27236 | clean) \ |
4fa63067 NN |
27237 | || exit 1 |
27238 | ||
6bd3dfaa | 27239 | @endif target-examples |
4fa63067 NN |
27240 | |
27241 | .PHONY: maybe-distclean-target-examples distclean-target-examples | |
27242 | maybe-distclean-target-examples: | |
6bd3dfaa PB |
27243 | @if target-examples |
27244 | maybe-distclean-target-examples: distclean-target-examples | |
4fa63067 NN |
27245 | |
27246 | distclean-target-examples: | |
27247 | @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \ | |
27248 | r=`${PWD_COMMAND}`; export r; \ | |
27249 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27250 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
27251 | echo "Doing distclean in $(TARGET_SUBDIR)/examples" ; \ |
27252 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
27253 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
27254 | done; \ | |
27255 | (cd $(TARGET_SUBDIR)/examples && \ | |
27256 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
27257 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27258 | "RANLIB=$${RANLIB}" \ | |
27259 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 27260 | distclean) \ |
4fa63067 NN |
27261 | || exit 1 |
27262 | ||
6bd3dfaa | 27263 | @endif target-examples |
4fa63067 NN |
27264 | |
27265 | .PHONY: maybe-maintainer-clean-target-examples maintainer-clean-target-examples | |
27266 | maybe-maintainer-clean-target-examples: | |
6bd3dfaa PB |
27267 | @if target-examples |
27268 | maybe-maintainer-clean-target-examples: maintainer-clean-target-examples | |
4fa63067 NN |
27269 | |
27270 | maintainer-clean-target-examples: | |
27271 | @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \ | |
27272 | r=`${PWD_COMMAND}`; export r; \ | |
27273 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27274 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
27275 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/examples" ; \ |
27276 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
27277 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
27278 | done; \ | |
27279 | (cd $(TARGET_SUBDIR)/examples && \ | |
27280 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
27281 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27282 | "RANLIB=$${RANLIB}" \ | |
27283 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 27284 | maintainer-clean) \ |
4fa63067 NN |
27285 | || exit 1 |
27286 | ||
6bd3dfaa | 27287 | @endif target-examples |
e393202e NN |
27288 | |
27289 | ||
15723a45 | 27290 | |
1086bc09 | 27291 | # There's only one multilib.out. Cleverer subdirs shouldn't need it copied. |
a7254363 | 27292 | @if target-libffi |
4fa63067 NN |
27293 | $(TARGET_SUBDIR)/libffi/multilib.out: multilib.out |
27294 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi ; \ | |
27295 | rm -f $(TARGET_SUBDIR)/libffi/Makefile || : ; \ | |
27296 | cp multilib.out $(TARGET_SUBDIR)/libffi/multilib.out | |
a7254363 PB |
27297 | @endif target-libffi |
27298 | ||
27299 | ||
e90269c8 | 27300 | |
a7254363 PB |
27301 | .PHONY: configure-target-libffi maybe-configure-target-libffi |
27302 | maybe-configure-target-libffi: | |
27303 | @if target-libffi | |
27304 | maybe-configure-target-libffi: configure-target-libffi | |
4fa63067 NN |
27305 | configure-target-libffi: $(TARGET_SUBDIR)/libffi/multilib.out |
27306 | @test ! -f $(TARGET_SUBDIR)/libffi/Makefile || exit 0; \ | |
27307 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi ; \ | |
b40e3958 L |
27308 | r=`${PWD_COMMAND}`; export r; \ |
27309 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27310 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
27311 | echo Configuring in $(TARGET_SUBDIR)/libffi; \ |
27312 | cd "$(TARGET_SUBDIR)/libffi" || exit 1; \ | |
bba45b8b | 27313 | case $(srcdir) in \ |
b00612cc PB |
27314 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
27315 | *) topdir=`echo $(TARGET_SUBDIR)/libffi/ | \ | |
27316 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
bba45b8b | 27317 | esac; \ |
b00612cc PB |
27318 | srcdiroption="--srcdir=$${topdir}/libffi"; \ |
27319 | libsrcdir="$$s/libffi"; \ | |
bba45b8b NN |
27320 | rm -f no-such-file || : ; \ |
27321 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
a7254363 | 27322 | $(TARGET_CONFIGARGS) $${srcdiroption} \ |
bba45b8b | 27323 | || exit 1 |
6bd3dfaa | 27324 | @endif target-libffi |
e393202e | 27325 | |
a7254363 PB |
27326 | |
27327 | ||
4fa63067 NN |
27328 | .PHONY: all-target-libffi maybe-all-target-libffi |
27329 | maybe-all-target-libffi: | |
6bd3dfaa | 27330 | @if target-libffi |
72b2455a | 27331 | TARGET-target-libffi=all |
6bd3dfaa | 27332 | maybe-all-target-libffi: all-target-libffi |
4fa63067 | 27333 | all-target-libffi: configure-target-libffi |
b40e3958 L |
27334 | @r=`${PWD_COMMAND}`; export r; \ |
27335 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27336 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 27337 | (cd $(TARGET_SUBDIR)/libffi && \ |
a7254363 | 27338 | $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libffi)) |
6bd3dfaa | 27339 | @endif target-libffi |
e393202e | 27340 | |
a7254363 PB |
27341 | |
27342 | ||
4fa63067 NN |
27343 | .PHONY: check-target-libffi maybe-check-target-libffi |
27344 | maybe-check-target-libffi: | |
6bd3dfaa PB |
27345 | @if target-libffi |
27346 | maybe-check-target-libffi: check-target-libffi | |
16ae0395 | 27347 | |
4fa63067 | 27348 | check-target-libffi: |
b40e3958 L |
27349 | @r=`${PWD_COMMAND}`; export r; \ |
27350 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27351 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 27352 | (cd $(TARGET_SUBDIR)/libffi && \ |
7ffa0b57 | 27353 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) |
930314a4 | 27354 | |
6bd3dfaa | 27355 | @endif target-libffi |
e393202e | 27356 | |
4fa63067 NN |
27357 | .PHONY: install-target-libffi maybe-install-target-libffi |
27358 | maybe-install-target-libffi: | |
6bd3dfaa PB |
27359 | @if target-libffi |
27360 | maybe-install-target-libffi: install-target-libffi | |
16ae0395 | 27361 | |
4fa63067 | 27362 | install-target-libffi: installdirs |
b40e3958 L |
27363 | @r=`${PWD_COMMAND}`; export r; \ |
27364 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27365 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 27366 | (cd $(TARGET_SUBDIR)/libffi && \ |
7ffa0b57 | 27367 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
e393202e | 27368 | |
6bd3dfaa | 27369 | @endif target-libffi |
e393202e | 27370 | |
4fa63067 NN |
27371 | # Other targets (info, dvi, etc.) |
27372 | ||
27373 | .PHONY: maybe-info-target-libffi info-target-libffi | |
27374 | maybe-info-target-libffi: | |
6bd3dfaa PB |
27375 | @if target-libffi |
27376 | maybe-info-target-libffi: info-target-libffi | |
4fa63067 NN |
27377 | |
27378 | info-target-libffi: \ | |
27379 | configure-target-libffi | |
27380 | @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \ | |
27381 | r=`${PWD_COMMAND}`; export r; \ | |
27382 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27383 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
27384 | echo "Doing info in $(TARGET_SUBDIR)/libffi" ; \ |
27385 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
27386 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
27387 | done; \ | |
27388 | (cd $(TARGET_SUBDIR)/libffi && \ | |
27389 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
27390 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27391 | "RANLIB=$${RANLIB}" \ | |
27392 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 27393 | info) \ |
4fa63067 NN |
27394 | || exit 1 |
27395 | ||
6bd3dfaa | 27396 | @endif target-libffi |
4fa63067 NN |
27397 | |
27398 | .PHONY: maybe-dvi-target-libffi dvi-target-libffi | |
27399 | maybe-dvi-target-libffi: | |
6bd3dfaa PB |
27400 | @if target-libffi |
27401 | maybe-dvi-target-libffi: dvi-target-libffi | |
4fa63067 NN |
27402 | |
27403 | dvi-target-libffi: \ | |
27404 | configure-target-libffi | |
27405 | @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \ | |
27406 | r=`${PWD_COMMAND}`; export r; \ | |
27407 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27408 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
27409 | echo "Doing dvi in $(TARGET_SUBDIR)/libffi" ; \ |
27410 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
27411 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
27412 | done; \ | |
27413 | (cd $(TARGET_SUBDIR)/libffi && \ | |
27414 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
27415 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27416 | "RANLIB=$${RANLIB}" \ | |
27417 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 27418 | dvi) \ |
4fa63067 NN |
27419 | || exit 1 |
27420 | ||
6bd3dfaa | 27421 | @endif target-libffi |
4fa63067 | 27422 | |
6d389afc MS |
27423 | .PHONY: maybe-html-target-libffi html-target-libffi |
27424 | maybe-html-target-libffi: | |
27425 | @if target-libffi | |
27426 | maybe-html-target-libffi: html-target-libffi | |
27427 | ||
27428 | html-target-libffi: \ | |
27429 | configure-target-libffi | |
27430 | @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \ | |
27431 | r=`${PWD_COMMAND}`; export r; \ | |
27432 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
27433 | $(NORMAL_TARGET_EXPORTS) \ |
27434 | echo "Doing html in $(TARGET_SUBDIR)/libffi" ; \ | |
27435 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
27436 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
27437 | done; \ | |
27438 | (cd $(TARGET_SUBDIR)/libffi && \ | |
27439 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
27440 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27441 | "RANLIB=$${RANLIB}" \ | |
27442 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
27443 | html) \ | |
27444 | || exit 1 | |
27445 | ||
27446 | @endif target-libffi | |
27447 | ||
4fa63067 NN |
27448 | .PHONY: maybe-TAGS-target-libffi TAGS-target-libffi |
27449 | maybe-TAGS-target-libffi: | |
6bd3dfaa PB |
27450 | @if target-libffi |
27451 | maybe-TAGS-target-libffi: TAGS-target-libffi | |
4fa63067 NN |
27452 | |
27453 | TAGS-target-libffi: \ | |
27454 | configure-target-libffi | |
27455 | @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \ | |
27456 | r=`${PWD_COMMAND}`; export r; \ | |
27457 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27458 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
27459 | echo "Doing TAGS in $(TARGET_SUBDIR)/libffi" ; \ |
27460 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
27461 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
27462 | done; \ | |
27463 | (cd $(TARGET_SUBDIR)/libffi && \ | |
27464 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
27465 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27466 | "RANLIB=$${RANLIB}" \ | |
27467 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 27468 | TAGS) \ |
4fa63067 NN |
27469 | || exit 1 |
27470 | ||
6bd3dfaa | 27471 | @endif target-libffi |
4fa63067 NN |
27472 | |
27473 | .PHONY: maybe-install-info-target-libffi install-info-target-libffi | |
27474 | maybe-install-info-target-libffi: | |
6bd3dfaa PB |
27475 | @if target-libffi |
27476 | maybe-install-info-target-libffi: install-info-target-libffi | |
4fa63067 NN |
27477 | |
27478 | install-info-target-libffi: \ | |
27479 | configure-target-libffi \ | |
27480 | info-target-libffi | |
27481 | @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \ | |
27482 | r=`${PWD_COMMAND}`; export r; \ | |
27483 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27484 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
27485 | echo "Doing install-info in $(TARGET_SUBDIR)/libffi" ; \ |
27486 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
27487 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
27488 | done; \ | |
27489 | (cd $(TARGET_SUBDIR)/libffi && \ | |
27490 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
27491 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27492 | "RANLIB=$${RANLIB}" \ | |
27493 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 27494 | install-info) \ |
4fa63067 NN |
27495 | || exit 1 |
27496 | ||
6bd3dfaa | 27497 | @endif target-libffi |
4fa63067 NN |
27498 | |
27499 | .PHONY: maybe-installcheck-target-libffi installcheck-target-libffi | |
27500 | maybe-installcheck-target-libffi: | |
6bd3dfaa PB |
27501 | @if target-libffi |
27502 | maybe-installcheck-target-libffi: installcheck-target-libffi | |
4fa63067 NN |
27503 | |
27504 | installcheck-target-libffi: \ | |
27505 | configure-target-libffi | |
27506 | @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \ | |
27507 | r=`${PWD_COMMAND}`; export r; \ | |
27508 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27509 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
27510 | echo "Doing installcheck in $(TARGET_SUBDIR)/libffi" ; \ |
27511 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
27512 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
27513 | done; \ | |
27514 | (cd $(TARGET_SUBDIR)/libffi && \ | |
27515 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
27516 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27517 | "RANLIB=$${RANLIB}" \ | |
27518 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 27519 | installcheck) \ |
4fa63067 NN |
27520 | || exit 1 |
27521 | ||
6bd3dfaa | 27522 | @endif target-libffi |
4fa63067 NN |
27523 | |
27524 | .PHONY: maybe-mostlyclean-target-libffi mostlyclean-target-libffi | |
27525 | maybe-mostlyclean-target-libffi: | |
6bd3dfaa PB |
27526 | @if target-libffi |
27527 | maybe-mostlyclean-target-libffi: mostlyclean-target-libffi | |
4fa63067 NN |
27528 | |
27529 | mostlyclean-target-libffi: | |
27530 | @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \ | |
27531 | r=`${PWD_COMMAND}`; export r; \ | |
27532 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27533 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
27534 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/libffi" ; \ |
27535 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
27536 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
27537 | done; \ | |
27538 | (cd $(TARGET_SUBDIR)/libffi && \ | |
27539 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
27540 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27541 | "RANLIB=$${RANLIB}" \ | |
27542 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 27543 | mostlyclean) \ |
4fa63067 NN |
27544 | || exit 1 |
27545 | ||
6bd3dfaa | 27546 | @endif target-libffi |
4fa63067 NN |
27547 | |
27548 | .PHONY: maybe-clean-target-libffi clean-target-libffi | |
27549 | maybe-clean-target-libffi: | |
6bd3dfaa PB |
27550 | @if target-libffi |
27551 | maybe-clean-target-libffi: clean-target-libffi | |
4fa63067 NN |
27552 | |
27553 | clean-target-libffi: | |
27554 | @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \ | |
27555 | r=`${PWD_COMMAND}`; export r; \ | |
27556 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27557 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
27558 | echo "Doing clean in $(TARGET_SUBDIR)/libffi" ; \ |
27559 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
27560 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
27561 | done; \ | |
27562 | (cd $(TARGET_SUBDIR)/libffi && \ | |
27563 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
27564 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27565 | "RANLIB=$${RANLIB}" \ | |
27566 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 27567 | clean) \ |
4fa63067 NN |
27568 | || exit 1 |
27569 | ||
6bd3dfaa | 27570 | @endif target-libffi |
4fa63067 NN |
27571 | |
27572 | .PHONY: maybe-distclean-target-libffi distclean-target-libffi | |
27573 | maybe-distclean-target-libffi: | |
6bd3dfaa PB |
27574 | @if target-libffi |
27575 | maybe-distclean-target-libffi: distclean-target-libffi | |
4fa63067 NN |
27576 | |
27577 | distclean-target-libffi: | |
27578 | @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \ | |
27579 | r=`${PWD_COMMAND}`; export r; \ | |
27580 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27581 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
27582 | echo "Doing distclean in $(TARGET_SUBDIR)/libffi" ; \ |
27583 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
27584 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
27585 | done; \ | |
27586 | (cd $(TARGET_SUBDIR)/libffi && \ | |
27587 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
27588 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27589 | "RANLIB=$${RANLIB}" \ | |
27590 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 27591 | distclean) \ |
4fa63067 NN |
27592 | || exit 1 |
27593 | ||
6bd3dfaa | 27594 | @endif target-libffi |
4fa63067 NN |
27595 | |
27596 | .PHONY: maybe-maintainer-clean-target-libffi maintainer-clean-target-libffi | |
27597 | maybe-maintainer-clean-target-libffi: | |
6bd3dfaa PB |
27598 | @if target-libffi |
27599 | maybe-maintainer-clean-target-libffi: maintainer-clean-target-libffi | |
4fa63067 NN |
27600 | |
27601 | maintainer-clean-target-libffi: | |
27602 | @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \ | |
27603 | r=`${PWD_COMMAND}`; export r; \ | |
27604 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27605 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
27606 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libffi" ; \ |
27607 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
27608 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
27609 | done; \ | |
27610 | (cd $(TARGET_SUBDIR)/libffi && \ | |
27611 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
27612 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27613 | "RANLIB=$${RANLIB}" \ | |
27614 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 27615 | maintainer-clean) \ |
4fa63067 NN |
27616 | || exit 1 |
27617 | ||
6bd3dfaa | 27618 | @endif target-libffi |
4fa63067 NN |
27619 | |
27620 | ||
15723a45 | 27621 | |
1086bc09 | 27622 | # There's only one multilib.out. Cleverer subdirs shouldn't need it copied. |
a7254363 | 27623 | @if target-libjava |
4fa63067 NN |
27624 | $(TARGET_SUBDIR)/libjava/multilib.out: multilib.out |
27625 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libjava ; \ | |
27626 | rm -f $(TARGET_SUBDIR)/libjava/Makefile || : ; \ | |
27627 | cp multilib.out $(TARGET_SUBDIR)/libjava/multilib.out | |
a7254363 PB |
27628 | @endif target-libjava |
27629 | ||
27630 | ||
15723a45 | 27631 | |
a7254363 PB |
27632 | .PHONY: configure-target-libjava maybe-configure-target-libjava |
27633 | maybe-configure-target-libjava: | |
27634 | @if target-libjava | |
27635 | maybe-configure-target-libjava: configure-target-libjava | |
4fa63067 NN |
27636 | configure-target-libjava: $(TARGET_SUBDIR)/libjava/multilib.out |
27637 | @test ! -f $(TARGET_SUBDIR)/libjava/Makefile || exit 0; \ | |
27638 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libjava ; \ | |
b40e3958 L |
27639 | r=`${PWD_COMMAND}`; export r; \ |
27640 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27641 | $(RAW_CXX_TARGET_EXPORTS) \ |
4fa63067 NN |
27642 | echo Configuring in $(TARGET_SUBDIR)/libjava; \ |
27643 | cd "$(TARGET_SUBDIR)/libjava" || exit 1; \ | |
bba45b8b | 27644 | case $(srcdir) in \ |
b00612cc PB |
27645 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
27646 | *) topdir=`echo $(TARGET_SUBDIR)/libjava/ | \ | |
27647 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
bba45b8b | 27648 | esac; \ |
b00612cc PB |
27649 | srcdiroption="--srcdir=$${topdir}/libjava"; \ |
27650 | libsrcdir="$$s/libjava"; \ | |
bba45b8b NN |
27651 | rm -f no-such-file || : ; \ |
27652 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
a7254363 | 27653 | $(TARGET_CONFIGARGS) $${srcdiroption} \ |
bba45b8b | 27654 | || exit 1 |
6bd3dfaa | 27655 | @endif target-libjava |
e393202e | 27656 | |
a7254363 PB |
27657 | |
27658 | ||
4fa63067 NN |
27659 | .PHONY: all-target-libjava maybe-all-target-libjava |
27660 | maybe-all-target-libjava: | |
6bd3dfaa | 27661 | @if target-libjava |
72b2455a | 27662 | TARGET-target-libjava=all |
6bd3dfaa | 27663 | maybe-all-target-libjava: all-target-libjava |
4fa63067 | 27664 | all-target-libjava: configure-target-libjava |
b40e3958 L |
27665 | @r=`${PWD_COMMAND}`; export r; \ |
27666 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27667 | $(RAW_CXX_TARGET_EXPORTS) \ |
4fa63067 | 27668 | (cd $(TARGET_SUBDIR)/libjava && \ |
a7254363 | 27669 | $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' $(TARGET-target-libjava)) |
6bd3dfaa | 27670 | @endif target-libjava |
e393202e | 27671 | |
a7254363 PB |
27672 | |
27673 | ||
4fa63067 NN |
27674 | .PHONY: check-target-libjava maybe-check-target-libjava |
27675 | maybe-check-target-libjava: | |
6bd3dfaa PB |
27676 | @if target-libjava |
27677 | maybe-check-target-libjava: check-target-libjava | |
16ae0395 | 27678 | |
4fa63067 NN |
27679 | check-target-libjava: |
27680 | @r=`${PWD_COMMAND}`; export r; \ | |
27681 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27682 | $(RAW_CXX_TARGET_EXPORTS) \ |
4fa63067 | 27683 | (cd $(TARGET_SUBDIR)/libjava && \ |
7ffa0b57 | 27684 | $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check) |
3866be5d | 27685 | |
6bd3dfaa | 27686 | @endif target-libjava |
930314a4 | 27687 | |
4fa63067 NN |
27688 | .PHONY: install-target-libjava maybe-install-target-libjava |
27689 | maybe-install-target-libjava: | |
6bd3dfaa PB |
27690 | @if target-libjava |
27691 | maybe-install-target-libjava: install-target-libjava | |
16ae0395 | 27692 | |
4fa63067 | 27693 | install-target-libjava: installdirs |
b40e3958 L |
27694 | @r=`${PWD_COMMAND}`; export r; \ |
27695 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27696 | $(RAW_CXX_TARGET_EXPORTS) \ |
4fa63067 | 27697 | (cd $(TARGET_SUBDIR)/libjava && \ |
7ffa0b57 | 27698 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
e393202e | 27699 | |
6bd3dfaa | 27700 | @endif target-libjava |
e393202e | 27701 | |
4fa63067 | 27702 | # Other targets (info, dvi, etc.) |
15723a45 | 27703 | |
4fa63067 NN |
27704 | .PHONY: maybe-info-target-libjava info-target-libjava |
27705 | maybe-info-target-libjava: | |
6bd3dfaa PB |
27706 | @if target-libjava |
27707 | maybe-info-target-libjava: info-target-libjava | |
15723a45 | 27708 | |
4fa63067 NN |
27709 | info-target-libjava: \ |
27710 | configure-target-libjava | |
27711 | @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \ | |
b40e3958 L |
27712 | r=`${PWD_COMMAND}`; export r; \ |
27713 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27714 | $(RAW_CXX_TARGET_EXPORTS) \ |
4fa63067 NN |
27715 | echo "Doing info in $(TARGET_SUBDIR)/libjava" ; \ |
27716 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
27717 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
27718 | done; \ | |
27719 | (cd $(TARGET_SUBDIR)/libjava && \ | |
27720 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
27721 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27722 | "RANLIB=$${RANLIB}" \ | |
27723 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 27724 | info) \ |
bba45b8b | 27725 | || exit 1 |
e393202e | 27726 | |
6bd3dfaa | 27727 | @endif target-libjava |
4fa63067 NN |
27728 | |
27729 | .PHONY: maybe-dvi-target-libjava dvi-target-libjava | |
27730 | maybe-dvi-target-libjava: | |
6bd3dfaa PB |
27731 | @if target-libjava |
27732 | maybe-dvi-target-libjava: dvi-target-libjava | |
4fa63067 NN |
27733 | |
27734 | dvi-target-libjava: \ | |
27735 | configure-target-libjava | |
27736 | @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \ | |
27737 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 27738 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 27739 | $(RAW_CXX_TARGET_EXPORTS) \ |
4fa63067 NN |
27740 | echo "Doing dvi in $(TARGET_SUBDIR)/libjava" ; \ |
27741 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
27742 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
27743 | done; \ | |
27744 | (cd $(TARGET_SUBDIR)/libjava && \ | |
27745 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
27746 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27747 | "RANLIB=$${RANLIB}" \ | |
27748 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 27749 | dvi) \ |
4fa63067 | 27750 | || exit 1 |
e393202e | 27751 | |
6bd3dfaa | 27752 | @endif target-libjava |
16ae0395 | 27753 | |
6d389afc MS |
27754 | .PHONY: maybe-html-target-libjava html-target-libjava |
27755 | maybe-html-target-libjava: | |
27756 | @if target-libjava | |
27757 | maybe-html-target-libjava: html-target-libjava | |
27758 | ||
27759 | html-target-libjava: \ | |
27760 | configure-target-libjava | |
27761 | @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \ | |
27762 | r=`${PWD_COMMAND}`; export r; \ | |
27763 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
27764 | $(RAW_CXX_TARGET_EXPORTS) \ |
27765 | echo "Doing html in $(TARGET_SUBDIR)/libjava" ; \ | |
27766 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
27767 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
27768 | done; \ | |
27769 | (cd $(TARGET_SUBDIR)/libjava && \ | |
27770 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
27771 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27772 | "RANLIB=$${RANLIB}" \ | |
27773 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
27774 | html) \ | |
27775 | || exit 1 | |
27776 | ||
27777 | @endif target-libjava | |
27778 | ||
4fa63067 NN |
27779 | .PHONY: maybe-TAGS-target-libjava TAGS-target-libjava |
27780 | maybe-TAGS-target-libjava: | |
6bd3dfaa PB |
27781 | @if target-libjava |
27782 | maybe-TAGS-target-libjava: TAGS-target-libjava | |
4fa63067 NN |
27783 | |
27784 | TAGS-target-libjava: \ | |
27785 | configure-target-libjava | |
27786 | @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \ | |
27787 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 27788 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 27789 | $(RAW_CXX_TARGET_EXPORTS) \ |
4fa63067 NN |
27790 | echo "Doing TAGS in $(TARGET_SUBDIR)/libjava" ; \ |
27791 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
27792 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
27793 | done; \ | |
27794 | (cd $(TARGET_SUBDIR)/libjava && \ | |
27795 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
27796 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27797 | "RANLIB=$${RANLIB}" \ | |
27798 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 27799 | TAGS) \ |
4fa63067 | 27800 | || exit 1 |
e393202e | 27801 | |
6bd3dfaa | 27802 | @endif target-libjava |
930314a4 | 27803 | |
4fa63067 NN |
27804 | .PHONY: maybe-install-info-target-libjava install-info-target-libjava |
27805 | maybe-install-info-target-libjava: | |
6bd3dfaa PB |
27806 | @if target-libjava |
27807 | maybe-install-info-target-libjava: install-info-target-libjava | |
16ae0395 | 27808 | |
4fa63067 NN |
27809 | install-info-target-libjava: \ |
27810 | configure-target-libjava \ | |
27811 | info-target-libjava | |
27812 | @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \ | |
27813 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 27814 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 27815 | $(RAW_CXX_TARGET_EXPORTS) \ |
4fa63067 NN |
27816 | echo "Doing install-info in $(TARGET_SUBDIR)/libjava" ; \ |
27817 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
27818 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
27819 | done; \ | |
27820 | (cd $(TARGET_SUBDIR)/libjava && \ | |
27821 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
27822 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27823 | "RANLIB=$${RANLIB}" \ | |
27824 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 27825 | install-info) \ |
4fa63067 | 27826 | || exit 1 |
e393202e | 27827 | |
6bd3dfaa | 27828 | @endif target-libjava |
e393202e | 27829 | |
4fa63067 NN |
27830 | .PHONY: maybe-installcheck-target-libjava installcheck-target-libjava |
27831 | maybe-installcheck-target-libjava: | |
6bd3dfaa PB |
27832 | @if target-libjava |
27833 | maybe-installcheck-target-libjava: installcheck-target-libjava | |
15723a45 | 27834 | |
4fa63067 NN |
27835 | installcheck-target-libjava: \ |
27836 | configure-target-libjava | |
27837 | @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \ | |
27838 | r=`${PWD_COMMAND}`; export r; \ | |
27839 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27840 | $(RAW_CXX_TARGET_EXPORTS) \ |
4fa63067 NN |
27841 | echo "Doing installcheck in $(TARGET_SUBDIR)/libjava" ; \ |
27842 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
27843 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
27844 | done; \ | |
27845 | (cd $(TARGET_SUBDIR)/libjava && \ | |
27846 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
27847 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27848 | "RANLIB=$${RANLIB}" \ | |
27849 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 27850 | installcheck) \ |
4fa63067 | 27851 | || exit 1 |
15723a45 | 27852 | |
6bd3dfaa | 27853 | @endif target-libjava |
4fa63067 NN |
27854 | |
27855 | .PHONY: maybe-mostlyclean-target-libjava mostlyclean-target-libjava | |
27856 | maybe-mostlyclean-target-libjava: | |
6bd3dfaa PB |
27857 | @if target-libjava |
27858 | maybe-mostlyclean-target-libjava: mostlyclean-target-libjava | |
4fa63067 NN |
27859 | |
27860 | mostlyclean-target-libjava: | |
27861 | @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \ | |
27862 | r=`${PWD_COMMAND}`; export r; \ | |
27863 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27864 | $(RAW_CXX_TARGET_EXPORTS) \ |
4fa63067 NN |
27865 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/libjava" ; \ |
27866 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
27867 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
27868 | done; \ | |
27869 | (cd $(TARGET_SUBDIR)/libjava && \ | |
27870 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
27871 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27872 | "RANLIB=$${RANLIB}" \ | |
27873 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 27874 | mostlyclean) \ |
4fa63067 NN |
27875 | || exit 1 |
27876 | ||
6bd3dfaa | 27877 | @endif target-libjava |
4fa63067 NN |
27878 | |
27879 | .PHONY: maybe-clean-target-libjava clean-target-libjava | |
27880 | maybe-clean-target-libjava: | |
6bd3dfaa PB |
27881 | @if target-libjava |
27882 | maybe-clean-target-libjava: clean-target-libjava | |
4fa63067 NN |
27883 | |
27884 | clean-target-libjava: | |
27885 | @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \ | |
b40e3958 L |
27886 | r=`${PWD_COMMAND}`; export r; \ |
27887 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27888 | $(RAW_CXX_TARGET_EXPORTS) \ |
4fa63067 NN |
27889 | echo "Doing clean in $(TARGET_SUBDIR)/libjava" ; \ |
27890 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
27891 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
27892 | done; \ | |
27893 | (cd $(TARGET_SUBDIR)/libjava && \ | |
27894 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
27895 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27896 | "RANLIB=$${RANLIB}" \ | |
27897 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 27898 | clean) \ |
bba45b8b | 27899 | || exit 1 |
e393202e | 27900 | |
6bd3dfaa | 27901 | @endif target-libjava |
e393202e | 27902 | |
4fa63067 NN |
27903 | .PHONY: maybe-distclean-target-libjava distclean-target-libjava |
27904 | maybe-distclean-target-libjava: | |
6bd3dfaa PB |
27905 | @if target-libjava |
27906 | maybe-distclean-target-libjava: distclean-target-libjava | |
16ae0395 | 27907 | |
4fa63067 NN |
27908 | distclean-target-libjava: |
27909 | @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \ | |
27910 | r=`${PWD_COMMAND}`; export r; \ | |
27911 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27912 | $(RAW_CXX_TARGET_EXPORTS) \ |
4fa63067 NN |
27913 | echo "Doing distclean in $(TARGET_SUBDIR)/libjava" ; \ |
27914 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
27915 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
27916 | done; \ | |
27917 | (cd $(TARGET_SUBDIR)/libjava && \ | |
27918 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
27919 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27920 | "RANLIB=$${RANLIB}" \ | |
27921 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 27922 | distclean) \ |
4fa63067 | 27923 | || exit 1 |
3866be5d | 27924 | |
6bd3dfaa | 27925 | @endif target-libjava |
930314a4 | 27926 | |
4fa63067 NN |
27927 | .PHONY: maybe-maintainer-clean-target-libjava maintainer-clean-target-libjava |
27928 | maybe-maintainer-clean-target-libjava: | |
6bd3dfaa PB |
27929 | @if target-libjava |
27930 | maybe-maintainer-clean-target-libjava: maintainer-clean-target-libjava | |
16ae0395 | 27931 | |
4fa63067 NN |
27932 | maintainer-clean-target-libjava: |
27933 | @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \ | |
27934 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 27935 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 27936 | $(RAW_CXX_TARGET_EXPORTS) \ |
4fa63067 NN |
27937 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libjava" ; \ |
27938 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
27939 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
27940 | done; \ | |
27941 | (cd $(TARGET_SUBDIR)/libjava && \ | |
27942 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
27943 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27944 | "RANLIB=$${RANLIB}" \ | |
27945 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 27946 | maintainer-clean) \ |
4fa63067 | 27947 | || exit 1 |
e393202e | 27948 | |
6bd3dfaa | 27949 | @endif target-libjava |
e393202e | 27950 | |
4fa63067 | 27951 | |
15723a45 | 27952 | |
1086bc09 | 27953 | # There's only one multilib.out. Cleverer subdirs shouldn't need it copied. |
a7254363 | 27954 | @if target-zlib |
4fa63067 NN |
27955 | $(TARGET_SUBDIR)/zlib/multilib.out: multilib.out |
27956 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib ; \ | |
27957 | rm -f $(TARGET_SUBDIR)/zlib/Makefile || : ; \ | |
27958 | cp multilib.out $(TARGET_SUBDIR)/zlib/multilib.out | |
a7254363 PB |
27959 | @endif target-zlib |
27960 | ||
27961 | ||
e90269c8 | 27962 | |
a7254363 PB |
27963 | .PHONY: configure-target-zlib maybe-configure-target-zlib |
27964 | maybe-configure-target-zlib: | |
27965 | @if target-zlib | |
27966 | maybe-configure-target-zlib: configure-target-zlib | |
4fa63067 NN |
27967 | configure-target-zlib: $(TARGET_SUBDIR)/zlib/multilib.out |
27968 | @test ! -f $(TARGET_SUBDIR)/zlib/Makefile || exit 0; \ | |
27969 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib ; \ | |
b40e3958 L |
27970 | r=`${PWD_COMMAND}`; export r; \ |
27971 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27972 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
27973 | echo Configuring in $(TARGET_SUBDIR)/zlib; \ |
27974 | cd "$(TARGET_SUBDIR)/zlib" || exit 1; \ | |
bba45b8b | 27975 | case $(srcdir) in \ |
b00612cc PB |
27976 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
27977 | *) topdir=`echo $(TARGET_SUBDIR)/zlib/ | \ | |
27978 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
bba45b8b | 27979 | esac; \ |
b00612cc PB |
27980 | srcdiroption="--srcdir=$${topdir}/zlib"; \ |
27981 | libsrcdir="$$s/zlib"; \ | |
bba45b8b NN |
27982 | rm -f no-such-file || : ; \ |
27983 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
a7254363 | 27984 | $(TARGET_CONFIGARGS) $${srcdiroption} \ |
bba45b8b | 27985 | || exit 1 |
6bd3dfaa | 27986 | @endif target-zlib |
e393202e | 27987 | |
a7254363 PB |
27988 | |
27989 | ||
4fa63067 NN |
27990 | .PHONY: all-target-zlib maybe-all-target-zlib |
27991 | maybe-all-target-zlib: | |
6bd3dfaa | 27992 | @if target-zlib |
72b2455a | 27993 | TARGET-target-zlib=all |
6bd3dfaa | 27994 | maybe-all-target-zlib: all-target-zlib |
4fa63067 | 27995 | all-target-zlib: configure-target-zlib |
b40e3958 L |
27996 | @r=`${PWD_COMMAND}`; export r; \ |
27997 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27998 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 27999 | (cd $(TARGET_SUBDIR)/zlib && \ |
a7254363 | 28000 | $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-zlib)) |
6bd3dfaa | 28001 | @endif target-zlib |
e393202e | 28002 | |
a7254363 PB |
28003 | |
28004 | ||
4fa63067 NN |
28005 | .PHONY: check-target-zlib maybe-check-target-zlib |
28006 | maybe-check-target-zlib: | |
6bd3dfaa PB |
28007 | @if target-zlib |
28008 | maybe-check-target-zlib: check-target-zlib | |
16ae0395 | 28009 | |
4fa63067 | 28010 | check-target-zlib: |
b40e3958 L |
28011 | @r=`${PWD_COMMAND}`; export r; \ |
28012 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28013 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 28014 | (cd $(TARGET_SUBDIR)/zlib && \ |
7ffa0b57 | 28015 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) |
e393202e | 28016 | |
6bd3dfaa | 28017 | @endif target-zlib |
930314a4 | 28018 | |
4fa63067 NN |
28019 | .PHONY: install-target-zlib maybe-install-target-zlib |
28020 | maybe-install-target-zlib: | |
6bd3dfaa PB |
28021 | @if target-zlib |
28022 | maybe-install-target-zlib: install-target-zlib | |
16ae0395 | 28023 | |
4fa63067 | 28024 | install-target-zlib: installdirs |
b40e3958 L |
28025 | @r=`${PWD_COMMAND}`; export r; \ |
28026 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28027 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 28028 | (cd $(TARGET_SUBDIR)/zlib && \ |
7ffa0b57 | 28029 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
e393202e | 28030 | |
6bd3dfaa | 28031 | @endif target-zlib |
e393202e | 28032 | |
4fa63067 | 28033 | # Other targets (info, dvi, etc.) |
15723a45 | 28034 | |
4fa63067 NN |
28035 | .PHONY: maybe-info-target-zlib info-target-zlib |
28036 | maybe-info-target-zlib: | |
6bd3dfaa PB |
28037 | @if target-zlib |
28038 | maybe-info-target-zlib: info-target-zlib | |
15723a45 | 28039 | |
4fa63067 NN |
28040 | info-target-zlib: \ |
28041 | configure-target-zlib | |
28042 | @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \ | |
b40e3958 L |
28043 | r=`${PWD_COMMAND}`; export r; \ |
28044 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28045 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
28046 | echo "Doing info in $(TARGET_SUBDIR)/zlib" ; \ |
28047 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
28048 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
28049 | done; \ | |
28050 | (cd $(TARGET_SUBDIR)/zlib && \ | |
28051 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
28052 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28053 | "RANLIB=$${RANLIB}" \ | |
28054 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 28055 | info) \ |
bba45b8b | 28056 | || exit 1 |
e393202e | 28057 | |
6bd3dfaa | 28058 | @endif target-zlib |
e393202e | 28059 | |
4fa63067 NN |
28060 | .PHONY: maybe-dvi-target-zlib dvi-target-zlib |
28061 | maybe-dvi-target-zlib: | |
6bd3dfaa PB |
28062 | @if target-zlib |
28063 | maybe-dvi-target-zlib: dvi-target-zlib | |
16ae0395 | 28064 | |
4fa63067 NN |
28065 | dvi-target-zlib: \ |
28066 | configure-target-zlib | |
28067 | @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \ | |
28068 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 28069 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 28070 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
28071 | echo "Doing dvi in $(TARGET_SUBDIR)/zlib" ; \ |
28072 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
28073 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
28074 | done; \ | |
28075 | (cd $(TARGET_SUBDIR)/zlib && \ | |
28076 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
28077 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28078 | "RANLIB=$${RANLIB}" \ | |
28079 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 28080 | dvi) \ |
4fa63067 | 28081 | || exit 1 |
e393202e | 28082 | |
6bd3dfaa | 28083 | @endif target-zlib |
930314a4 | 28084 | |
6d389afc MS |
28085 | .PHONY: maybe-html-target-zlib html-target-zlib |
28086 | maybe-html-target-zlib: | |
28087 | @if target-zlib | |
28088 | maybe-html-target-zlib: html-target-zlib | |
28089 | ||
28090 | html-target-zlib: \ | |
28091 | configure-target-zlib | |
28092 | @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \ | |
28093 | r=`${PWD_COMMAND}`; export r; \ | |
28094 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
28095 | $(NORMAL_TARGET_EXPORTS) \ |
28096 | echo "Doing html in $(TARGET_SUBDIR)/zlib" ; \ | |
28097 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
28098 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
28099 | done; \ | |
28100 | (cd $(TARGET_SUBDIR)/zlib && \ | |
28101 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
28102 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28103 | "RANLIB=$${RANLIB}" \ | |
28104 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
28105 | html) \ | |
28106 | || exit 1 | |
28107 | ||
28108 | @endif target-zlib | |
28109 | ||
4fa63067 NN |
28110 | .PHONY: maybe-TAGS-target-zlib TAGS-target-zlib |
28111 | maybe-TAGS-target-zlib: | |
6bd3dfaa PB |
28112 | @if target-zlib |
28113 | maybe-TAGS-target-zlib: TAGS-target-zlib | |
16ae0395 | 28114 | |
4fa63067 NN |
28115 | TAGS-target-zlib: \ |
28116 | configure-target-zlib | |
28117 | @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \ | |
28118 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 28119 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 28120 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
28121 | echo "Doing TAGS in $(TARGET_SUBDIR)/zlib" ; \ |
28122 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
28123 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
28124 | done; \ | |
28125 | (cd $(TARGET_SUBDIR)/zlib && \ | |
28126 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
28127 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28128 | "RANLIB=$${RANLIB}" \ | |
28129 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 28130 | TAGS) \ |
4fa63067 | 28131 | || exit 1 |
e393202e | 28132 | |
6bd3dfaa | 28133 | @endif target-zlib |
15723a45 | 28134 | |
4fa63067 NN |
28135 | .PHONY: maybe-install-info-target-zlib install-info-target-zlib |
28136 | maybe-install-info-target-zlib: | |
6bd3dfaa PB |
28137 | @if target-zlib |
28138 | maybe-install-info-target-zlib: install-info-target-zlib | |
15723a45 | 28139 | |
4fa63067 NN |
28140 | install-info-target-zlib: \ |
28141 | configure-target-zlib \ | |
28142 | info-target-zlib | |
28143 | @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \ | |
b40e3958 L |
28144 | r=`${PWD_COMMAND}`; export r; \ |
28145 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28146 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
28147 | echo "Doing install-info in $(TARGET_SUBDIR)/zlib" ; \ |
28148 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
28149 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
28150 | done; \ | |
28151 | (cd $(TARGET_SUBDIR)/zlib && \ | |
28152 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
28153 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28154 | "RANLIB=$${RANLIB}" \ | |
28155 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 28156 | install-info) \ |
bba45b8b | 28157 | || exit 1 |
e393202e | 28158 | |
6bd3dfaa | 28159 | @endif target-zlib |
16ae0395 | 28160 | |
4fa63067 NN |
28161 | .PHONY: maybe-installcheck-target-zlib installcheck-target-zlib |
28162 | maybe-installcheck-target-zlib: | |
6bd3dfaa PB |
28163 | @if target-zlib |
28164 | maybe-installcheck-target-zlib: installcheck-target-zlib | |
3866be5d | 28165 | |
4fa63067 NN |
28166 | installcheck-target-zlib: \ |
28167 | configure-target-zlib | |
28168 | @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \ | |
28169 | r=`${PWD_COMMAND}`; export r; \ | |
28170 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28171 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
28172 | echo "Doing installcheck in $(TARGET_SUBDIR)/zlib" ; \ |
28173 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
28174 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
28175 | done; \ | |
28176 | (cd $(TARGET_SUBDIR)/zlib && \ | |
28177 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
28178 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28179 | "RANLIB=$${RANLIB}" \ | |
28180 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 28181 | installcheck) \ |
4fa63067 | 28182 | || exit 1 |
e393202e | 28183 | |
6bd3dfaa | 28184 | @endif target-zlib |
16ae0395 | 28185 | |
4fa63067 NN |
28186 | .PHONY: maybe-mostlyclean-target-zlib mostlyclean-target-zlib |
28187 | maybe-mostlyclean-target-zlib: | |
6bd3dfaa PB |
28188 | @if target-zlib |
28189 | maybe-mostlyclean-target-zlib: mostlyclean-target-zlib | |
930314a4 | 28190 | |
4fa63067 NN |
28191 | mostlyclean-target-zlib: |
28192 | @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \ | |
28193 | r=`${PWD_COMMAND}`; export r; \ | |
28194 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28195 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
28196 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/zlib" ; \ |
28197 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
28198 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
28199 | done; \ | |
28200 | (cd $(TARGET_SUBDIR)/zlib && \ | |
28201 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
28202 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28203 | "RANLIB=$${RANLIB}" \ | |
28204 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 28205 | mostlyclean) \ |
4fa63067 | 28206 | || exit 1 |
e393202e | 28207 | |
6bd3dfaa | 28208 | @endif target-zlib |
15723a45 | 28209 | |
4fa63067 NN |
28210 | .PHONY: maybe-clean-target-zlib clean-target-zlib |
28211 | maybe-clean-target-zlib: | |
6bd3dfaa PB |
28212 | @if target-zlib |
28213 | maybe-clean-target-zlib: clean-target-zlib | |
15723a45 | 28214 | |
4fa63067 NN |
28215 | clean-target-zlib: |
28216 | @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \ | |
b40e3958 L |
28217 | r=`${PWD_COMMAND}`; export r; \ |
28218 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28219 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
28220 | echo "Doing clean in $(TARGET_SUBDIR)/zlib" ; \ |
28221 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
28222 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
28223 | done; \ | |
28224 | (cd $(TARGET_SUBDIR)/zlib && \ | |
28225 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
28226 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28227 | "RANLIB=$${RANLIB}" \ | |
28228 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 28229 | clean) \ |
bba45b8b | 28230 | || exit 1 |
e393202e | 28231 | |
6bd3dfaa | 28232 | @endif target-zlib |
e393202e | 28233 | |
4fa63067 NN |
28234 | .PHONY: maybe-distclean-target-zlib distclean-target-zlib |
28235 | maybe-distclean-target-zlib: | |
6bd3dfaa PB |
28236 | @if target-zlib |
28237 | maybe-distclean-target-zlib: distclean-target-zlib | |
16ae0395 | 28238 | |
4fa63067 NN |
28239 | distclean-target-zlib: |
28240 | @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \ | |
28241 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 28242 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 28243 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
28244 | echo "Doing distclean in $(TARGET_SUBDIR)/zlib" ; \ |
28245 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
28246 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
28247 | done; \ | |
28248 | (cd $(TARGET_SUBDIR)/zlib && \ | |
28249 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
28250 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28251 | "RANLIB=$${RANLIB}" \ | |
28252 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 28253 | distclean) \ |
4fa63067 | 28254 | || exit 1 |
e393202e | 28255 | |
6bd3dfaa | 28256 | @endif target-zlib |
e393202e | 28257 | |
4fa63067 NN |
28258 | .PHONY: maybe-maintainer-clean-target-zlib maintainer-clean-target-zlib |
28259 | maybe-maintainer-clean-target-zlib: | |
6bd3dfaa PB |
28260 | @if target-zlib |
28261 | maybe-maintainer-clean-target-zlib: maintainer-clean-target-zlib | |
16ae0395 | 28262 | |
4fa63067 NN |
28263 | maintainer-clean-target-zlib: |
28264 | @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \ | |
28265 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 28266 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 28267 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
28268 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/zlib" ; \ |
28269 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
28270 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
28271 | done; \ | |
28272 | (cd $(TARGET_SUBDIR)/zlib && \ | |
28273 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
28274 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28275 | "RANLIB=$${RANLIB}" \ | |
28276 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 28277 | maintainer-clean) \ |
4fa63067 | 28278 | || exit 1 |
e393202e | 28279 | |
6bd3dfaa | 28280 | @endif target-zlib |
930314a4 | 28281 | |
4fa63067 | 28282 | |
15723a45 | 28283 | |
1086bc09 | 28284 | # There's only one multilib.out. Cleverer subdirs shouldn't need it copied. |
a7254363 | 28285 | @if target-boehm-gc |
4fa63067 NN |
28286 | $(TARGET_SUBDIR)/boehm-gc/multilib.out: multilib.out |
28287 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/boehm-gc ; \ | |
28288 | rm -f $(TARGET_SUBDIR)/boehm-gc/Makefile || : ; \ | |
28289 | cp multilib.out $(TARGET_SUBDIR)/boehm-gc/multilib.out | |
a7254363 PB |
28290 | @endif target-boehm-gc |
28291 | ||
28292 | ||
e90269c8 | 28293 | |
a7254363 PB |
28294 | .PHONY: configure-target-boehm-gc maybe-configure-target-boehm-gc |
28295 | maybe-configure-target-boehm-gc: | |
28296 | @if target-boehm-gc | |
28297 | maybe-configure-target-boehm-gc: configure-target-boehm-gc | |
4fa63067 NN |
28298 | configure-target-boehm-gc: $(TARGET_SUBDIR)/boehm-gc/multilib.out |
28299 | @test ! -f $(TARGET_SUBDIR)/boehm-gc/Makefile || exit 0; \ | |
28300 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/boehm-gc ; \ | |
b40e3958 L |
28301 | r=`${PWD_COMMAND}`; export r; \ |
28302 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28303 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
28304 | echo Configuring in $(TARGET_SUBDIR)/boehm-gc; \ |
28305 | cd "$(TARGET_SUBDIR)/boehm-gc" || exit 1; \ | |
bba45b8b | 28306 | case $(srcdir) in \ |
b00612cc PB |
28307 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
28308 | *) topdir=`echo $(TARGET_SUBDIR)/boehm-gc/ | \ | |
28309 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
bba45b8b | 28310 | esac; \ |
b00612cc PB |
28311 | srcdiroption="--srcdir=$${topdir}/boehm-gc"; \ |
28312 | libsrcdir="$$s/boehm-gc"; \ | |
bba45b8b NN |
28313 | rm -f no-such-file || : ; \ |
28314 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
a7254363 | 28315 | $(TARGET_CONFIGARGS) $${srcdiroption} \ |
bba45b8b | 28316 | || exit 1 |
6bd3dfaa | 28317 | @endif target-boehm-gc |
e393202e | 28318 | |
a7254363 PB |
28319 | |
28320 | ||
4fa63067 NN |
28321 | .PHONY: all-target-boehm-gc maybe-all-target-boehm-gc |
28322 | maybe-all-target-boehm-gc: | |
6bd3dfaa | 28323 | @if target-boehm-gc |
72b2455a | 28324 | TARGET-target-boehm-gc=all |
6bd3dfaa | 28325 | maybe-all-target-boehm-gc: all-target-boehm-gc |
4fa63067 | 28326 | all-target-boehm-gc: configure-target-boehm-gc |
b40e3958 L |
28327 | @r=`${PWD_COMMAND}`; export r; \ |
28328 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28329 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 28330 | (cd $(TARGET_SUBDIR)/boehm-gc && \ |
a7254363 | 28331 | $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-boehm-gc)) |
6bd3dfaa | 28332 | @endif target-boehm-gc |
e393202e | 28333 | |
a7254363 PB |
28334 | |
28335 | ||
4fa63067 NN |
28336 | .PHONY: check-target-boehm-gc maybe-check-target-boehm-gc |
28337 | maybe-check-target-boehm-gc: | |
6bd3dfaa PB |
28338 | @if target-boehm-gc |
28339 | maybe-check-target-boehm-gc: check-target-boehm-gc | |
16ae0395 | 28340 | |
4fa63067 | 28341 | check-target-boehm-gc: |
b40e3958 L |
28342 | @r=`${PWD_COMMAND}`; export r; \ |
28343 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28344 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 28345 | (cd $(TARGET_SUBDIR)/boehm-gc && \ |
7ffa0b57 | 28346 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) |
e393202e | 28347 | |
6bd3dfaa | 28348 | @endif target-boehm-gc |
930314a4 | 28349 | |
4fa63067 NN |
28350 | .PHONY: install-target-boehm-gc maybe-install-target-boehm-gc |
28351 | maybe-install-target-boehm-gc: | |
6bd3dfaa PB |
28352 | @if target-boehm-gc |
28353 | maybe-install-target-boehm-gc: install-target-boehm-gc | |
16ae0395 | 28354 | |
4fa63067 | 28355 | install-target-boehm-gc: installdirs |
b40e3958 L |
28356 | @r=`${PWD_COMMAND}`; export r; \ |
28357 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28358 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 28359 | (cd $(TARGET_SUBDIR)/boehm-gc && \ |
7ffa0b57 | 28360 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
e393202e | 28361 | |
6bd3dfaa | 28362 | @endif target-boehm-gc |
e393202e | 28363 | |
4fa63067 NN |
28364 | # Other targets (info, dvi, etc.) |
28365 | ||
28366 | .PHONY: maybe-info-target-boehm-gc info-target-boehm-gc | |
28367 | maybe-info-target-boehm-gc: | |
6bd3dfaa PB |
28368 | @if target-boehm-gc |
28369 | maybe-info-target-boehm-gc: info-target-boehm-gc | |
4fa63067 NN |
28370 | |
28371 | info-target-boehm-gc: \ | |
28372 | configure-target-boehm-gc | |
28373 | @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \ | |
28374 | r=`${PWD_COMMAND}`; export r; \ | |
28375 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28376 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
28377 | echo "Doing info in $(TARGET_SUBDIR)/boehm-gc" ; \ |
28378 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
28379 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
28380 | done; \ | |
28381 | (cd $(TARGET_SUBDIR)/boehm-gc && \ | |
28382 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
28383 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28384 | "RANLIB=$${RANLIB}" \ | |
28385 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 28386 | info) \ |
4fa63067 NN |
28387 | || exit 1 |
28388 | ||
6bd3dfaa | 28389 | @endif target-boehm-gc |
4fa63067 NN |
28390 | |
28391 | .PHONY: maybe-dvi-target-boehm-gc dvi-target-boehm-gc | |
28392 | maybe-dvi-target-boehm-gc: | |
6bd3dfaa PB |
28393 | @if target-boehm-gc |
28394 | maybe-dvi-target-boehm-gc: dvi-target-boehm-gc | |
4fa63067 NN |
28395 | |
28396 | dvi-target-boehm-gc: \ | |
28397 | configure-target-boehm-gc | |
28398 | @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \ | |
28399 | r=`${PWD_COMMAND}`; export r; \ | |
28400 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28401 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
28402 | echo "Doing dvi in $(TARGET_SUBDIR)/boehm-gc" ; \ |
28403 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
28404 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
28405 | done; \ | |
28406 | (cd $(TARGET_SUBDIR)/boehm-gc && \ | |
28407 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
28408 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28409 | "RANLIB=$${RANLIB}" \ | |
28410 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 28411 | dvi) \ |
4fa63067 NN |
28412 | || exit 1 |
28413 | ||
6bd3dfaa | 28414 | @endif target-boehm-gc |
4fa63067 | 28415 | |
6d389afc MS |
28416 | .PHONY: maybe-html-target-boehm-gc html-target-boehm-gc |
28417 | maybe-html-target-boehm-gc: | |
28418 | @if target-boehm-gc | |
28419 | maybe-html-target-boehm-gc: html-target-boehm-gc | |
28420 | ||
28421 | html-target-boehm-gc: \ | |
28422 | configure-target-boehm-gc | |
28423 | @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \ | |
28424 | r=`${PWD_COMMAND}`; export r; \ | |
28425 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
28426 | $(NORMAL_TARGET_EXPORTS) \ |
28427 | echo "Doing html in $(TARGET_SUBDIR)/boehm-gc" ; \ | |
28428 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
28429 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
28430 | done; \ | |
28431 | (cd $(TARGET_SUBDIR)/boehm-gc && \ | |
28432 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
28433 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28434 | "RANLIB=$${RANLIB}" \ | |
28435 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
28436 | html) \ | |
28437 | || exit 1 | |
28438 | ||
28439 | @endif target-boehm-gc | |
28440 | ||
4fa63067 NN |
28441 | .PHONY: maybe-TAGS-target-boehm-gc TAGS-target-boehm-gc |
28442 | maybe-TAGS-target-boehm-gc: | |
6bd3dfaa PB |
28443 | @if target-boehm-gc |
28444 | maybe-TAGS-target-boehm-gc: TAGS-target-boehm-gc | |
4fa63067 NN |
28445 | |
28446 | TAGS-target-boehm-gc: \ | |
28447 | configure-target-boehm-gc | |
28448 | @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \ | |
28449 | r=`${PWD_COMMAND}`; export r; \ | |
28450 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28451 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
28452 | echo "Doing TAGS in $(TARGET_SUBDIR)/boehm-gc" ; \ |
28453 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
28454 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
28455 | done; \ | |
28456 | (cd $(TARGET_SUBDIR)/boehm-gc && \ | |
28457 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
28458 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28459 | "RANLIB=$${RANLIB}" \ | |
28460 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 28461 | TAGS) \ |
4fa63067 NN |
28462 | || exit 1 |
28463 | ||
6bd3dfaa | 28464 | @endif target-boehm-gc |
4fa63067 NN |
28465 | |
28466 | .PHONY: maybe-install-info-target-boehm-gc install-info-target-boehm-gc | |
28467 | maybe-install-info-target-boehm-gc: | |
6bd3dfaa PB |
28468 | @if target-boehm-gc |
28469 | maybe-install-info-target-boehm-gc: install-info-target-boehm-gc | |
4fa63067 NN |
28470 | |
28471 | install-info-target-boehm-gc: \ | |
28472 | configure-target-boehm-gc \ | |
28473 | info-target-boehm-gc | |
28474 | @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \ | |
28475 | r=`${PWD_COMMAND}`; export r; \ | |
28476 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28477 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
28478 | echo "Doing install-info in $(TARGET_SUBDIR)/boehm-gc" ; \ |
28479 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
28480 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
28481 | done; \ | |
28482 | (cd $(TARGET_SUBDIR)/boehm-gc && \ | |
28483 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
28484 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28485 | "RANLIB=$${RANLIB}" \ | |
28486 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 28487 | install-info) \ |
4fa63067 NN |
28488 | || exit 1 |
28489 | ||
6bd3dfaa | 28490 | @endif target-boehm-gc |
4fa63067 NN |
28491 | |
28492 | .PHONY: maybe-installcheck-target-boehm-gc installcheck-target-boehm-gc | |
28493 | maybe-installcheck-target-boehm-gc: | |
6bd3dfaa PB |
28494 | @if target-boehm-gc |
28495 | maybe-installcheck-target-boehm-gc: installcheck-target-boehm-gc | |
4fa63067 NN |
28496 | |
28497 | installcheck-target-boehm-gc: \ | |
28498 | configure-target-boehm-gc | |
28499 | @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \ | |
28500 | r=`${PWD_COMMAND}`; export r; \ | |
28501 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28502 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
28503 | echo "Doing installcheck in $(TARGET_SUBDIR)/boehm-gc" ; \ |
28504 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
28505 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
28506 | done; \ | |
28507 | (cd $(TARGET_SUBDIR)/boehm-gc && \ | |
28508 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
28509 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28510 | "RANLIB=$${RANLIB}" \ | |
28511 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 28512 | installcheck) \ |
4fa63067 NN |
28513 | || exit 1 |
28514 | ||
6bd3dfaa | 28515 | @endif target-boehm-gc |
4fa63067 NN |
28516 | |
28517 | .PHONY: maybe-mostlyclean-target-boehm-gc mostlyclean-target-boehm-gc | |
28518 | maybe-mostlyclean-target-boehm-gc: | |
6bd3dfaa PB |
28519 | @if target-boehm-gc |
28520 | maybe-mostlyclean-target-boehm-gc: mostlyclean-target-boehm-gc | |
4fa63067 NN |
28521 | |
28522 | mostlyclean-target-boehm-gc: | |
28523 | @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \ | |
28524 | r=`${PWD_COMMAND}`; export r; \ | |
28525 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28526 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
28527 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/boehm-gc" ; \ |
28528 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
28529 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
28530 | done; \ | |
28531 | (cd $(TARGET_SUBDIR)/boehm-gc && \ | |
28532 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
28533 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28534 | "RANLIB=$${RANLIB}" \ | |
28535 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 28536 | mostlyclean) \ |
4fa63067 NN |
28537 | || exit 1 |
28538 | ||
6bd3dfaa | 28539 | @endif target-boehm-gc |
4fa63067 NN |
28540 | |
28541 | .PHONY: maybe-clean-target-boehm-gc clean-target-boehm-gc | |
28542 | maybe-clean-target-boehm-gc: | |
6bd3dfaa PB |
28543 | @if target-boehm-gc |
28544 | maybe-clean-target-boehm-gc: clean-target-boehm-gc | |
4fa63067 NN |
28545 | |
28546 | clean-target-boehm-gc: | |
28547 | @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \ | |
28548 | r=`${PWD_COMMAND}`; export r; \ | |
28549 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28550 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
28551 | echo "Doing clean in $(TARGET_SUBDIR)/boehm-gc" ; \ |
28552 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
28553 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
28554 | done; \ | |
28555 | (cd $(TARGET_SUBDIR)/boehm-gc && \ | |
28556 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
28557 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28558 | "RANLIB=$${RANLIB}" \ | |
28559 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 28560 | clean) \ |
4fa63067 NN |
28561 | || exit 1 |
28562 | ||
6bd3dfaa | 28563 | @endif target-boehm-gc |
4fa63067 NN |
28564 | |
28565 | .PHONY: maybe-distclean-target-boehm-gc distclean-target-boehm-gc | |
28566 | maybe-distclean-target-boehm-gc: | |
6bd3dfaa PB |
28567 | @if target-boehm-gc |
28568 | maybe-distclean-target-boehm-gc: distclean-target-boehm-gc | |
4fa63067 NN |
28569 | |
28570 | distclean-target-boehm-gc: | |
28571 | @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \ | |
28572 | r=`${PWD_COMMAND}`; export r; \ | |
28573 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28574 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
28575 | echo "Doing distclean in $(TARGET_SUBDIR)/boehm-gc" ; \ |
28576 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
28577 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
28578 | done; \ | |
28579 | (cd $(TARGET_SUBDIR)/boehm-gc && \ | |
28580 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
28581 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28582 | "RANLIB=$${RANLIB}" \ | |
28583 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 28584 | distclean) \ |
4fa63067 NN |
28585 | || exit 1 |
28586 | ||
6bd3dfaa | 28587 | @endif target-boehm-gc |
4fa63067 NN |
28588 | |
28589 | .PHONY: maybe-maintainer-clean-target-boehm-gc maintainer-clean-target-boehm-gc | |
28590 | maybe-maintainer-clean-target-boehm-gc: | |
6bd3dfaa PB |
28591 | @if target-boehm-gc |
28592 | maybe-maintainer-clean-target-boehm-gc: maintainer-clean-target-boehm-gc | |
4fa63067 NN |
28593 | |
28594 | maintainer-clean-target-boehm-gc: | |
28595 | @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \ | |
28596 | r=`${PWD_COMMAND}`; export r; \ | |
28597 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28598 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
28599 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/boehm-gc" ; \ |
28600 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
28601 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
28602 | done; \ | |
28603 | (cd $(TARGET_SUBDIR)/boehm-gc && \ | |
28604 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
28605 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28606 | "RANLIB=$${RANLIB}" \ | |
28607 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 28608 | maintainer-clean) \ |
4fa63067 NN |
28609 | || exit 1 |
28610 | ||
6bd3dfaa | 28611 | @endif target-boehm-gc |
4fa63067 NN |
28612 | |
28613 | ||
15723a45 | 28614 | |
1086bc09 | 28615 | # There's only one multilib.out. Cleverer subdirs shouldn't need it copied. |
a7254363 | 28616 | @if target-qthreads |
4fa63067 NN |
28617 | $(TARGET_SUBDIR)/qthreads/multilib.out: multilib.out |
28618 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/qthreads ; \ | |
28619 | rm -f $(TARGET_SUBDIR)/qthreads/Makefile || : ; \ | |
28620 | cp multilib.out $(TARGET_SUBDIR)/qthreads/multilib.out | |
a7254363 PB |
28621 | @endif target-qthreads |
28622 | ||
15723a45 | 28623 | |
a7254363 PB |
28624 | |
28625 | .PHONY: configure-target-qthreads maybe-configure-target-qthreads | |
28626 | maybe-configure-target-qthreads: | |
28627 | @if target-qthreads | |
28628 | maybe-configure-target-qthreads: configure-target-qthreads | |
4fa63067 NN |
28629 | configure-target-qthreads: $(TARGET_SUBDIR)/qthreads/multilib.out |
28630 | @test ! -f $(TARGET_SUBDIR)/qthreads/Makefile || exit 0; \ | |
28631 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/qthreads ; \ | |
b40e3958 L |
28632 | r=`${PWD_COMMAND}`; export r; \ |
28633 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28634 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
28635 | echo Configuring in $(TARGET_SUBDIR)/qthreads; \ |
28636 | cd "$(TARGET_SUBDIR)/qthreads" || exit 1; \ | |
bba45b8b | 28637 | case $(srcdir) in \ |
b00612cc PB |
28638 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
28639 | *) topdir=`echo $(TARGET_SUBDIR)/qthreads/ | \ | |
28640 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
bba45b8b | 28641 | esac; \ |
b00612cc PB |
28642 | srcdiroption="--srcdir=$${topdir}/qthreads"; \ |
28643 | libsrcdir="$$s/qthreads"; \ | |
bba45b8b NN |
28644 | rm -f no-such-file || : ; \ |
28645 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
a7254363 | 28646 | $(TARGET_CONFIGARGS) $${srcdiroption} \ |
bba45b8b | 28647 | || exit 1 |
6bd3dfaa | 28648 | @endif target-qthreads |
252b5132 | 28649 | |
a7254363 PB |
28650 | |
28651 | ||
4fa63067 NN |
28652 | .PHONY: all-target-qthreads maybe-all-target-qthreads |
28653 | maybe-all-target-qthreads: | |
6bd3dfaa | 28654 | @if target-qthreads |
72b2455a | 28655 | TARGET-target-qthreads=all |
6bd3dfaa | 28656 | maybe-all-target-qthreads: all-target-qthreads |
4fa63067 | 28657 | all-target-qthreads: configure-target-qthreads |
b40e3958 L |
28658 | @r=`${PWD_COMMAND}`; export r; \ |
28659 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28660 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 28661 | (cd $(TARGET_SUBDIR)/qthreads && \ |
a7254363 | 28662 | $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-qthreads)) |
6bd3dfaa | 28663 | @endif target-qthreads |
252b5132 | 28664 | |
a7254363 PB |
28665 | |
28666 | ||
4fa63067 NN |
28667 | .PHONY: check-target-qthreads maybe-check-target-qthreads |
28668 | maybe-check-target-qthreads: | |
6bd3dfaa PB |
28669 | @if target-qthreads |
28670 | maybe-check-target-qthreads: check-target-qthreads | |
16ae0395 | 28671 | |
4fa63067 | 28672 | check-target-qthreads: |
b40e3958 L |
28673 | @r=`${PWD_COMMAND}`; export r; \ |
28674 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28675 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 28676 | (cd $(TARGET_SUBDIR)/qthreads && \ |
7ffa0b57 | 28677 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) |
252b5132 | 28678 | |
6bd3dfaa | 28679 | @endif target-qthreads |
930314a4 | 28680 | |
4fa63067 NN |
28681 | .PHONY: install-target-qthreads maybe-install-target-qthreads |
28682 | maybe-install-target-qthreads: | |
6bd3dfaa PB |
28683 | @if target-qthreads |
28684 | maybe-install-target-qthreads: install-target-qthreads | |
4fa63067 NN |
28685 | |
28686 | install-target-qthreads: installdirs | |
28687 | @r=`${PWD_COMMAND}`; export r; \ | |
28688 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28689 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 28690 | (cd $(TARGET_SUBDIR)/qthreads && \ |
7ffa0b57 | 28691 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
4fa63067 | 28692 | |
6bd3dfaa | 28693 | @endif target-qthreads |
4fa63067 NN |
28694 | |
28695 | # Other targets (info, dvi, etc.) | |
28696 | ||
28697 | .PHONY: maybe-info-target-qthreads info-target-qthreads | |
28698 | maybe-info-target-qthreads: | |
6bd3dfaa PB |
28699 | @if target-qthreads |
28700 | maybe-info-target-qthreads: info-target-qthreads | |
4fa63067 NN |
28701 | |
28702 | info-target-qthreads: \ | |
28703 | configure-target-qthreads | |
28704 | @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \ | |
28705 | r=`${PWD_COMMAND}`; export r; \ | |
28706 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28707 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
28708 | echo "Doing info in $(TARGET_SUBDIR)/qthreads" ; \ |
28709 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
28710 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
28711 | done; \ | |
28712 | (cd $(TARGET_SUBDIR)/qthreads && \ | |
28713 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
28714 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28715 | "RANLIB=$${RANLIB}" \ | |
28716 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 28717 | info) \ |
4fa63067 NN |
28718 | || exit 1 |
28719 | ||
6bd3dfaa | 28720 | @endif target-qthreads |
4fa63067 NN |
28721 | |
28722 | .PHONY: maybe-dvi-target-qthreads dvi-target-qthreads | |
28723 | maybe-dvi-target-qthreads: | |
6bd3dfaa PB |
28724 | @if target-qthreads |
28725 | maybe-dvi-target-qthreads: dvi-target-qthreads | |
4fa63067 NN |
28726 | |
28727 | dvi-target-qthreads: \ | |
28728 | configure-target-qthreads | |
28729 | @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \ | |
28730 | r=`${PWD_COMMAND}`; export r; \ | |
28731 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28732 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
28733 | echo "Doing dvi in $(TARGET_SUBDIR)/qthreads" ; \ |
28734 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
28735 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
28736 | done; \ | |
28737 | (cd $(TARGET_SUBDIR)/qthreads && \ | |
28738 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
28739 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28740 | "RANLIB=$${RANLIB}" \ | |
28741 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 28742 | dvi) \ |
4fa63067 NN |
28743 | || exit 1 |
28744 | ||
6bd3dfaa | 28745 | @endif target-qthreads |
4fa63067 | 28746 | |
6d389afc MS |
28747 | .PHONY: maybe-html-target-qthreads html-target-qthreads |
28748 | maybe-html-target-qthreads: | |
28749 | @if target-qthreads | |
28750 | maybe-html-target-qthreads: html-target-qthreads | |
28751 | ||
28752 | html-target-qthreads: \ | |
28753 | configure-target-qthreads | |
28754 | @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \ | |
28755 | r=`${PWD_COMMAND}`; export r; \ | |
28756 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
28757 | $(NORMAL_TARGET_EXPORTS) \ |
28758 | echo "Doing html in $(TARGET_SUBDIR)/qthreads" ; \ | |
28759 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
28760 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
28761 | done; \ | |
28762 | (cd $(TARGET_SUBDIR)/qthreads && \ | |
28763 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
28764 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28765 | "RANLIB=$${RANLIB}" \ | |
28766 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
28767 | html) \ | |
28768 | || exit 1 | |
28769 | ||
28770 | @endif target-qthreads | |
28771 | ||
4fa63067 NN |
28772 | .PHONY: maybe-TAGS-target-qthreads TAGS-target-qthreads |
28773 | maybe-TAGS-target-qthreads: | |
6bd3dfaa PB |
28774 | @if target-qthreads |
28775 | maybe-TAGS-target-qthreads: TAGS-target-qthreads | |
4fa63067 NN |
28776 | |
28777 | TAGS-target-qthreads: \ | |
28778 | configure-target-qthreads | |
28779 | @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \ | |
28780 | r=`${PWD_COMMAND}`; export r; \ | |
28781 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28782 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
28783 | echo "Doing TAGS in $(TARGET_SUBDIR)/qthreads" ; \ |
28784 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
28785 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
28786 | done; \ | |
28787 | (cd $(TARGET_SUBDIR)/qthreads && \ | |
28788 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
28789 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28790 | "RANLIB=$${RANLIB}" \ | |
28791 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 28792 | TAGS) \ |
4fa63067 NN |
28793 | || exit 1 |
28794 | ||
6bd3dfaa | 28795 | @endif target-qthreads |
4fa63067 NN |
28796 | |
28797 | .PHONY: maybe-install-info-target-qthreads install-info-target-qthreads | |
28798 | maybe-install-info-target-qthreads: | |
6bd3dfaa PB |
28799 | @if target-qthreads |
28800 | maybe-install-info-target-qthreads: install-info-target-qthreads | |
4fa63067 NN |
28801 | |
28802 | install-info-target-qthreads: \ | |
28803 | configure-target-qthreads \ | |
28804 | info-target-qthreads | |
28805 | @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \ | |
28806 | r=`${PWD_COMMAND}`; export r; \ | |
28807 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28808 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
28809 | echo "Doing install-info in $(TARGET_SUBDIR)/qthreads" ; \ |
28810 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
28811 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
28812 | done; \ | |
28813 | (cd $(TARGET_SUBDIR)/qthreads && \ | |
28814 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
28815 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28816 | "RANLIB=$${RANLIB}" \ | |
28817 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 28818 | install-info) \ |
4fa63067 NN |
28819 | || exit 1 |
28820 | ||
6bd3dfaa | 28821 | @endif target-qthreads |
4fa63067 NN |
28822 | |
28823 | .PHONY: maybe-installcheck-target-qthreads installcheck-target-qthreads | |
28824 | maybe-installcheck-target-qthreads: | |
6bd3dfaa PB |
28825 | @if target-qthreads |
28826 | maybe-installcheck-target-qthreads: installcheck-target-qthreads | |
4fa63067 NN |
28827 | |
28828 | installcheck-target-qthreads: \ | |
28829 | configure-target-qthreads | |
28830 | @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \ | |
28831 | r=`${PWD_COMMAND}`; export r; \ | |
28832 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28833 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
28834 | echo "Doing installcheck in $(TARGET_SUBDIR)/qthreads" ; \ |
28835 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
28836 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
28837 | done; \ | |
28838 | (cd $(TARGET_SUBDIR)/qthreads && \ | |
28839 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
28840 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28841 | "RANLIB=$${RANLIB}" \ | |
28842 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 28843 | installcheck) \ |
4fa63067 NN |
28844 | || exit 1 |
28845 | ||
6bd3dfaa | 28846 | @endif target-qthreads |
4fa63067 NN |
28847 | |
28848 | .PHONY: maybe-mostlyclean-target-qthreads mostlyclean-target-qthreads | |
28849 | maybe-mostlyclean-target-qthreads: | |
6bd3dfaa PB |
28850 | @if target-qthreads |
28851 | maybe-mostlyclean-target-qthreads: mostlyclean-target-qthreads | |
4fa63067 NN |
28852 | |
28853 | mostlyclean-target-qthreads: | |
28854 | @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \ | |
28855 | r=`${PWD_COMMAND}`; export r; \ | |
28856 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28857 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
28858 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/qthreads" ; \ |
28859 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
28860 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
28861 | done; \ | |
28862 | (cd $(TARGET_SUBDIR)/qthreads && \ | |
28863 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
28864 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28865 | "RANLIB=$${RANLIB}" \ | |
28866 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 28867 | mostlyclean) \ |
4fa63067 NN |
28868 | || exit 1 |
28869 | ||
6bd3dfaa | 28870 | @endif target-qthreads |
4fa63067 NN |
28871 | |
28872 | .PHONY: maybe-clean-target-qthreads clean-target-qthreads | |
28873 | maybe-clean-target-qthreads: | |
6bd3dfaa PB |
28874 | @if target-qthreads |
28875 | maybe-clean-target-qthreads: clean-target-qthreads | |
4fa63067 NN |
28876 | |
28877 | clean-target-qthreads: | |
28878 | @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \ | |
28879 | r=`${PWD_COMMAND}`; export r; \ | |
28880 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28881 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
28882 | echo "Doing clean in $(TARGET_SUBDIR)/qthreads" ; \ |
28883 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
28884 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
28885 | done; \ | |
28886 | (cd $(TARGET_SUBDIR)/qthreads && \ | |
28887 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
28888 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28889 | "RANLIB=$${RANLIB}" \ | |
28890 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 28891 | clean) \ |
4fa63067 NN |
28892 | || exit 1 |
28893 | ||
6bd3dfaa | 28894 | @endif target-qthreads |
4fa63067 NN |
28895 | |
28896 | .PHONY: maybe-distclean-target-qthreads distclean-target-qthreads | |
28897 | maybe-distclean-target-qthreads: | |
6bd3dfaa PB |
28898 | @if target-qthreads |
28899 | maybe-distclean-target-qthreads: distclean-target-qthreads | |
4fa63067 NN |
28900 | |
28901 | distclean-target-qthreads: | |
28902 | @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \ | |
28903 | r=`${PWD_COMMAND}`; export r; \ | |
28904 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28905 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
28906 | echo "Doing distclean in $(TARGET_SUBDIR)/qthreads" ; \ |
28907 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
28908 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
28909 | done; \ | |
28910 | (cd $(TARGET_SUBDIR)/qthreads && \ | |
28911 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
28912 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28913 | "RANLIB=$${RANLIB}" \ | |
28914 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 28915 | distclean) \ |
4fa63067 NN |
28916 | || exit 1 |
28917 | ||
6bd3dfaa | 28918 | @endif target-qthreads |
4fa63067 NN |
28919 | |
28920 | .PHONY: maybe-maintainer-clean-target-qthreads maintainer-clean-target-qthreads | |
28921 | maybe-maintainer-clean-target-qthreads: | |
6bd3dfaa PB |
28922 | @if target-qthreads |
28923 | maybe-maintainer-clean-target-qthreads: maintainer-clean-target-qthreads | |
4fa63067 NN |
28924 | |
28925 | maintainer-clean-target-qthreads: | |
28926 | @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \ | |
28927 | r=`${PWD_COMMAND}`; export r; \ | |
28928 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28929 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
28930 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/qthreads" ; \ |
28931 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
28932 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
28933 | done; \ | |
28934 | (cd $(TARGET_SUBDIR)/qthreads && \ | |
28935 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
28936 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28937 | "RANLIB=$${RANLIB}" \ | |
28938 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 28939 | maintainer-clean) \ |
4fa63067 | 28940 | || exit 1 |
16ae0395 | 28941 | |
6bd3dfaa | 28942 | @endif target-qthreads |
49b7683b | 28943 | |
e393202e | 28944 | |
15723a45 | 28945 | |
1086bc09 | 28946 | # There's only one multilib.out. Cleverer subdirs shouldn't need it copied. |
a7254363 | 28947 | @if target-rda |
4fa63067 NN |
28948 | $(TARGET_SUBDIR)/rda/multilib.out: multilib.out |
28949 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda ; \ | |
28950 | rm -f $(TARGET_SUBDIR)/rda/Makefile || : ; \ | |
28951 | cp multilib.out $(TARGET_SUBDIR)/rda/multilib.out | |
a7254363 PB |
28952 | @endif target-rda |
28953 | ||
e90269c8 | 28954 | |
a7254363 PB |
28955 | |
28956 | .PHONY: configure-target-rda maybe-configure-target-rda | |
28957 | maybe-configure-target-rda: | |
28958 | @if target-rda | |
28959 | maybe-configure-target-rda: configure-target-rda | |
4fa63067 NN |
28960 | configure-target-rda: $(TARGET_SUBDIR)/rda/multilib.out |
28961 | @test ! -f $(TARGET_SUBDIR)/rda/Makefile || exit 0; \ | |
28962 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda ; \ | |
b40e3958 L |
28963 | r=`${PWD_COMMAND}`; export r; \ |
28964 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28965 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
28966 | echo Configuring in $(TARGET_SUBDIR)/rda; \ |
28967 | cd "$(TARGET_SUBDIR)/rda" || exit 1; \ | |
bba45b8b | 28968 | case $(srcdir) in \ |
b00612cc PB |
28969 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
28970 | *) topdir=`echo $(TARGET_SUBDIR)/rda/ | \ | |
28971 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
bba45b8b | 28972 | esac; \ |
b00612cc PB |
28973 | srcdiroption="--srcdir=$${topdir}/rda"; \ |
28974 | libsrcdir="$$s/rda"; \ | |
bba45b8b NN |
28975 | rm -f no-such-file || : ; \ |
28976 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
a7254363 | 28977 | $(TARGET_CONFIGARGS) $${srcdiroption} \ |
bba45b8b | 28978 | || exit 1 |
6bd3dfaa | 28979 | @endif target-rda |
49b7683b | 28980 | |
a7254363 PB |
28981 | |
28982 | ||
4fa63067 NN |
28983 | .PHONY: all-target-rda maybe-all-target-rda |
28984 | maybe-all-target-rda: | |
6bd3dfaa | 28985 | @if target-rda |
72b2455a | 28986 | TARGET-target-rda=all |
6bd3dfaa | 28987 | maybe-all-target-rda: all-target-rda |
4fa63067 | 28988 | all-target-rda: configure-target-rda |
b40e3958 L |
28989 | @r=`${PWD_COMMAND}`; export r; \ |
28990 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28991 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 28992 | (cd $(TARGET_SUBDIR)/rda && \ |
a7254363 | 28993 | $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-rda)) |
6bd3dfaa | 28994 | @endif target-rda |
252b5132 | 28995 | |
a7254363 PB |
28996 | |
28997 | ||
4fa63067 NN |
28998 | .PHONY: check-target-rda maybe-check-target-rda |
28999 | maybe-check-target-rda: | |
6bd3dfaa PB |
29000 | @if target-rda |
29001 | maybe-check-target-rda: check-target-rda | |
16ae0395 | 29002 | |
4fa63067 | 29003 | check-target-rda: |
b40e3958 L |
29004 | @r=`${PWD_COMMAND}`; export r; \ |
29005 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29006 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 29007 | (cd $(TARGET_SUBDIR)/rda && \ |
7ffa0b57 | 29008 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) |
252b5132 | 29009 | |
6bd3dfaa | 29010 | @endif target-rda |
930314a4 | 29011 | |
4fa63067 NN |
29012 | .PHONY: install-target-rda maybe-install-target-rda |
29013 | maybe-install-target-rda: | |
6bd3dfaa PB |
29014 | @if target-rda |
29015 | maybe-install-target-rda: install-target-rda | |
16ae0395 | 29016 | |
4fa63067 | 29017 | install-target-rda: installdirs |
b40e3958 L |
29018 | @r=`${PWD_COMMAND}`; export r; \ |
29019 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29020 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 29021 | (cd $(TARGET_SUBDIR)/rda && \ |
7ffa0b57 | 29022 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
e393202e | 29023 | |
6bd3dfaa | 29024 | @endif target-rda |
e393202e | 29025 | |
4fa63067 | 29026 | # Other targets (info, dvi, etc.) |
15723a45 | 29027 | |
4fa63067 NN |
29028 | .PHONY: maybe-info-target-rda info-target-rda |
29029 | maybe-info-target-rda: | |
6bd3dfaa PB |
29030 | @if target-rda |
29031 | maybe-info-target-rda: info-target-rda | |
15723a45 | 29032 | |
4fa63067 NN |
29033 | info-target-rda: \ |
29034 | configure-target-rda | |
29035 | @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \ | |
b40e3958 L |
29036 | r=`${PWD_COMMAND}`; export r; \ |
29037 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29038 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
29039 | echo "Doing info in $(TARGET_SUBDIR)/rda" ; \ |
29040 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
29041 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
29042 | done; \ | |
29043 | (cd $(TARGET_SUBDIR)/rda && \ | |
29044 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
29045 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29046 | "RANLIB=$${RANLIB}" \ | |
29047 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 29048 | info) \ |
bba45b8b | 29049 | || exit 1 |
252b5132 | 29050 | |
6bd3dfaa | 29051 | @endif target-rda |
4fa63067 NN |
29052 | |
29053 | .PHONY: maybe-dvi-target-rda dvi-target-rda | |
29054 | maybe-dvi-target-rda: | |
6bd3dfaa PB |
29055 | @if target-rda |
29056 | maybe-dvi-target-rda: dvi-target-rda | |
4fa63067 NN |
29057 | |
29058 | dvi-target-rda: \ | |
29059 | configure-target-rda | |
29060 | @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \ | |
29061 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 29062 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 29063 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
29064 | echo "Doing dvi in $(TARGET_SUBDIR)/rda" ; \ |
29065 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
29066 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
29067 | done; \ | |
29068 | (cd $(TARGET_SUBDIR)/rda && \ | |
29069 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
29070 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29071 | "RANLIB=$${RANLIB}" \ | |
29072 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 29073 | dvi) \ |
4fa63067 | 29074 | || exit 1 |
252b5132 | 29075 | |
6bd3dfaa | 29076 | @endif target-rda |
16ae0395 | 29077 | |
6d389afc MS |
29078 | .PHONY: maybe-html-target-rda html-target-rda |
29079 | maybe-html-target-rda: | |
29080 | @if target-rda | |
29081 | maybe-html-target-rda: html-target-rda | |
29082 | ||
29083 | html-target-rda: \ | |
29084 | configure-target-rda | |
29085 | @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \ | |
29086 | r=`${PWD_COMMAND}`; export r; \ | |
29087 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
29088 | $(NORMAL_TARGET_EXPORTS) \ |
29089 | echo "Doing html in $(TARGET_SUBDIR)/rda" ; \ | |
29090 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
29091 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
29092 | done; \ | |
29093 | (cd $(TARGET_SUBDIR)/rda && \ | |
29094 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
29095 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29096 | "RANLIB=$${RANLIB}" \ | |
29097 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
29098 | html) \ | |
29099 | || exit 1 | |
29100 | ||
29101 | @endif target-rda | |
29102 | ||
4fa63067 NN |
29103 | .PHONY: maybe-TAGS-target-rda TAGS-target-rda |
29104 | maybe-TAGS-target-rda: | |
6bd3dfaa PB |
29105 | @if target-rda |
29106 | maybe-TAGS-target-rda: TAGS-target-rda | |
4fa63067 NN |
29107 | |
29108 | TAGS-target-rda: \ | |
29109 | configure-target-rda | |
29110 | @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \ | |
29111 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 29112 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 29113 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
29114 | echo "Doing TAGS in $(TARGET_SUBDIR)/rda" ; \ |
29115 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
29116 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
29117 | done; \ | |
29118 | (cd $(TARGET_SUBDIR)/rda && \ | |
29119 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
29120 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29121 | "RANLIB=$${RANLIB}" \ | |
29122 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 29123 | TAGS) \ |
4fa63067 | 29124 | || exit 1 |
e393202e | 29125 | |
6bd3dfaa | 29126 | @endif target-rda |
930314a4 | 29127 | |
4fa63067 NN |
29128 | .PHONY: maybe-install-info-target-rda install-info-target-rda |
29129 | maybe-install-info-target-rda: | |
6bd3dfaa PB |
29130 | @if target-rda |
29131 | maybe-install-info-target-rda: install-info-target-rda | |
16ae0395 | 29132 | |
4fa63067 NN |
29133 | install-info-target-rda: \ |
29134 | configure-target-rda \ | |
29135 | info-target-rda | |
29136 | @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \ | |
29137 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 29138 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 29139 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
29140 | echo "Doing install-info in $(TARGET_SUBDIR)/rda" ; \ |
29141 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
29142 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
29143 | done; \ | |
29144 | (cd $(TARGET_SUBDIR)/rda && \ | |
29145 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
29146 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29147 | "RANLIB=$${RANLIB}" \ | |
29148 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 29149 | install-info) \ |
4fa63067 | 29150 | || exit 1 |
252b5132 | 29151 | |
6bd3dfaa | 29152 | @endif target-rda |
e393202e | 29153 | |
4fa63067 NN |
29154 | .PHONY: maybe-installcheck-target-rda installcheck-target-rda |
29155 | maybe-installcheck-target-rda: | |
6bd3dfaa PB |
29156 | @if target-rda |
29157 | maybe-installcheck-target-rda: installcheck-target-rda | |
15723a45 | 29158 | |
4fa63067 NN |
29159 | installcheck-target-rda: \ |
29160 | configure-target-rda | |
29161 | @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \ | |
29162 | r=`${PWD_COMMAND}`; export r; \ | |
29163 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29164 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
29165 | echo "Doing installcheck in $(TARGET_SUBDIR)/rda" ; \ |
29166 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
29167 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
29168 | done; \ | |
29169 | (cd $(TARGET_SUBDIR)/rda && \ | |
29170 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
29171 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29172 | "RANLIB=$${RANLIB}" \ | |
29173 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 29174 | installcheck) \ |
4fa63067 | 29175 | || exit 1 |
15723a45 | 29176 | |
6bd3dfaa | 29177 | @endif target-rda |
4fa63067 NN |
29178 | |
29179 | .PHONY: maybe-mostlyclean-target-rda mostlyclean-target-rda | |
29180 | maybe-mostlyclean-target-rda: | |
6bd3dfaa PB |
29181 | @if target-rda |
29182 | maybe-mostlyclean-target-rda: mostlyclean-target-rda | |
4fa63067 NN |
29183 | |
29184 | mostlyclean-target-rda: | |
29185 | @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \ | |
b40e3958 L |
29186 | r=`${PWD_COMMAND}`; export r; \ |
29187 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29188 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
29189 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/rda" ; \ |
29190 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
29191 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
29192 | done; \ | |
29193 | (cd $(TARGET_SUBDIR)/rda && \ | |
29194 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
29195 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29196 | "RANLIB=$${RANLIB}" \ | |
29197 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 29198 | mostlyclean) \ |
bba45b8b | 29199 | || exit 1 |
252b5132 | 29200 | |
6bd3dfaa | 29201 | @endif target-rda |
4fa63067 NN |
29202 | |
29203 | .PHONY: maybe-clean-target-rda clean-target-rda | |
29204 | maybe-clean-target-rda: | |
6bd3dfaa PB |
29205 | @if target-rda |
29206 | maybe-clean-target-rda: clean-target-rda | |
4fa63067 NN |
29207 | |
29208 | clean-target-rda: | |
29209 | @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \ | |
29210 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 29211 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 29212 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
29213 | echo "Doing clean in $(TARGET_SUBDIR)/rda" ; \ |
29214 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
29215 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
29216 | done; \ | |
bba45b8b | 29217 | (cd $(TARGET_SUBDIR)/rda && \ |
4fa63067 NN |
29218 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29219 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29220 | "RANLIB=$${RANLIB}" \ | |
29221 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 29222 | clean) \ |
4fa63067 | 29223 | || exit 1 |
252b5132 | 29224 | |
6bd3dfaa | 29225 | @endif target-rda |
16ae0395 | 29226 | |
4fa63067 NN |
29227 | .PHONY: maybe-distclean-target-rda distclean-target-rda |
29228 | maybe-distclean-target-rda: | |
6bd3dfaa PB |
29229 | @if target-rda |
29230 | maybe-distclean-target-rda: distclean-target-rda | |
4fa63067 NN |
29231 | |
29232 | distclean-target-rda: | |
29233 | @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \ | |
29234 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 29235 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 29236 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
29237 | echo "Doing distclean in $(TARGET_SUBDIR)/rda" ; \ |
29238 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
29239 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
29240 | done; \ | |
bba45b8b | 29241 | (cd $(TARGET_SUBDIR)/rda && \ |
4fa63067 NN |
29242 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29243 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29244 | "RANLIB=$${RANLIB}" \ | |
29245 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 29246 | distclean) \ |
4fa63067 | 29247 | || exit 1 |
252b5132 | 29248 | |
6bd3dfaa | 29249 | @endif target-rda |
930314a4 | 29250 | |
4fa63067 NN |
29251 | .PHONY: maybe-maintainer-clean-target-rda maintainer-clean-target-rda |
29252 | maybe-maintainer-clean-target-rda: | |
6bd3dfaa PB |
29253 | @if target-rda |
29254 | maybe-maintainer-clean-target-rda: maintainer-clean-target-rda | |
16ae0395 | 29255 | |
4fa63067 NN |
29256 | maintainer-clean-target-rda: |
29257 | @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \ | |
29258 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 29259 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 29260 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
29261 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/rda" ; \ |
29262 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
29263 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
29264 | done; \ | |
bba45b8b | 29265 | (cd $(TARGET_SUBDIR)/rda && \ |
4fa63067 NN |
29266 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29267 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29268 | "RANLIB=$${RANLIB}" \ | |
29269 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 29270 | maintainer-clean) \ |
4fa63067 NN |
29271 | || exit 1 |
29272 | ||
6bd3dfaa | 29273 | @endif target-rda |
252b5132 | 29274 | |
e393202e | 29275 | |
a2592b1b DD |
29276 | |
29277 | # There's only one multilib.out. Cleverer subdirs shouldn't need it copied. | |
a7254363 | 29278 | @if target-libada |
a2592b1b DD |
29279 | $(TARGET_SUBDIR)/libada/multilib.out: multilib.out |
29280 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada ; \ | |
29281 | rm -f $(TARGET_SUBDIR)/libada/Makefile || : ; \ | |
29282 | cp multilib.out $(TARGET_SUBDIR)/libada/multilib.out | |
a7254363 | 29283 | @endif target-libada |
e90269c8 | 29284 | |
a7254363 PB |
29285 | |
29286 | ||
29287 | .PHONY: configure-target-libada maybe-configure-target-libada | |
29288 | maybe-configure-target-libada: | |
29289 | @if target-libada | |
29290 | maybe-configure-target-libada: configure-target-libada | |
a2592b1b DD |
29291 | configure-target-libada: $(TARGET_SUBDIR)/libada/multilib.out |
29292 | @test ! -f $(TARGET_SUBDIR)/libada/Makefile || exit 0; \ | |
29293 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada ; \ | |
29294 | r=`${PWD_COMMAND}`; export r; \ | |
29295 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29296 | $(NORMAL_TARGET_EXPORTS) \ |
a2592b1b DD |
29297 | echo Configuring in $(TARGET_SUBDIR)/libada; \ |
29298 | cd "$(TARGET_SUBDIR)/libada" || exit 1; \ | |
29299 | case $(srcdir) in \ | |
b00612cc PB |
29300 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
29301 | *) topdir=`echo $(TARGET_SUBDIR)/libada/ | \ | |
29302 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
a2592b1b | 29303 | esac; \ |
b00612cc PB |
29304 | srcdiroption="--srcdir=$${topdir}/libada"; \ |
29305 | libsrcdir="$$s/libada"; \ | |
a2592b1b DD |
29306 | rm -f no-such-file || : ; \ |
29307 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
a7254363 | 29308 | $(TARGET_CONFIGARGS) $${srcdiroption} \ |
a2592b1b | 29309 | || exit 1 |
6bd3dfaa | 29310 | @endif target-libada |
a2592b1b | 29311 | |
a7254363 PB |
29312 | |
29313 | ||
4fa63067 NN |
29314 | .PHONY: all-target-libada maybe-all-target-libada |
29315 | maybe-all-target-libada: | |
6bd3dfaa | 29316 | @if target-libada |
72b2455a | 29317 | TARGET-target-libada=all |
6bd3dfaa | 29318 | maybe-all-target-libada: all-target-libada |
4fa63067 NN |
29319 | all-target-libada: configure-target-libada |
29320 | @r=`${PWD_COMMAND}`; export r; \ | |
29321 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29322 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 29323 | (cd $(TARGET_SUBDIR)/libada && \ |
a7254363 | 29324 | $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libada)) |
6bd3dfaa | 29325 | @endif target-libada |
4fa63067 | 29326 | |
a7254363 PB |
29327 | |
29328 | ||
4fa63067 NN |
29329 | .PHONY: check-target-libada maybe-check-target-libada |
29330 | maybe-check-target-libada: | |
6bd3dfaa PB |
29331 | @if target-libada |
29332 | maybe-check-target-libada: check-target-libada | |
4fa63067 NN |
29333 | |
29334 | check-target-libada: | |
29335 | @r=`${PWD_COMMAND}`; export r; \ | |
29336 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29337 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 29338 | (cd $(TARGET_SUBDIR)/libada && \ |
7ffa0b57 | 29339 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) |
4fa63067 | 29340 | |
6bd3dfaa | 29341 | @endif target-libada |
4fa63067 NN |
29342 | |
29343 | .PHONY: install-target-libada maybe-install-target-libada | |
29344 | maybe-install-target-libada: | |
6bd3dfaa PB |
29345 | @if target-libada |
29346 | maybe-install-target-libada: install-target-libada | |
4fa63067 NN |
29347 | |
29348 | install-target-libada: installdirs | |
29349 | @r=`${PWD_COMMAND}`; export r; \ | |
29350 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29351 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 29352 | (cd $(TARGET_SUBDIR)/libada && \ |
7ffa0b57 | 29353 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
4fa63067 | 29354 | |
6bd3dfaa | 29355 | @endif target-libada |
4fa63067 NN |
29356 | |
29357 | # Other targets (info, dvi, etc.) | |
29358 | ||
29359 | .PHONY: maybe-info-target-libada info-target-libada | |
29360 | maybe-info-target-libada: | |
6bd3dfaa PB |
29361 | @if target-libada |
29362 | maybe-info-target-libada: info-target-libada | |
4fa63067 NN |
29363 | |
29364 | info-target-libada: \ | |
29365 | configure-target-libada | |
29366 | @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \ | |
29367 | r=`${PWD_COMMAND}`; export r; \ | |
29368 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29369 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
29370 | echo "Doing info in $(TARGET_SUBDIR)/libada" ; \ |
29371 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
29372 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
29373 | done; \ | |
29374 | (cd $(TARGET_SUBDIR)/libada && \ | |
29375 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
29376 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29377 | "RANLIB=$${RANLIB}" \ | |
29378 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 29379 | info) \ |
4fa63067 NN |
29380 | || exit 1 |
29381 | ||
6bd3dfaa | 29382 | @endif target-libada |
4fa63067 NN |
29383 | |
29384 | .PHONY: maybe-dvi-target-libada dvi-target-libada | |
29385 | maybe-dvi-target-libada: | |
6bd3dfaa PB |
29386 | @if target-libada |
29387 | maybe-dvi-target-libada: dvi-target-libada | |
4fa63067 NN |
29388 | |
29389 | dvi-target-libada: \ | |
29390 | configure-target-libada | |
29391 | @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \ | |
29392 | r=`${PWD_COMMAND}`; export r; \ | |
29393 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29394 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
29395 | echo "Doing dvi in $(TARGET_SUBDIR)/libada" ; \ |
29396 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
29397 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
29398 | done; \ | |
29399 | (cd $(TARGET_SUBDIR)/libada && \ | |
29400 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
29401 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29402 | "RANLIB=$${RANLIB}" \ | |
29403 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 29404 | dvi) \ |
4fa63067 NN |
29405 | || exit 1 |
29406 | ||
6bd3dfaa | 29407 | @endif target-libada |
4fa63067 | 29408 | |
6d389afc MS |
29409 | .PHONY: maybe-html-target-libada html-target-libada |
29410 | maybe-html-target-libada: | |
29411 | @if target-libada | |
29412 | maybe-html-target-libada: html-target-libada | |
29413 | ||
29414 | html-target-libada: \ | |
29415 | configure-target-libada | |
29416 | @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \ | |
29417 | r=`${PWD_COMMAND}`; export r; \ | |
29418 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
29419 | $(NORMAL_TARGET_EXPORTS) \ |
29420 | echo "Doing html in $(TARGET_SUBDIR)/libada" ; \ | |
29421 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
29422 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
29423 | done; \ | |
29424 | (cd $(TARGET_SUBDIR)/libada && \ | |
29425 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
29426 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29427 | "RANLIB=$${RANLIB}" \ | |
29428 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
29429 | html) \ | |
29430 | || exit 1 | |
29431 | ||
29432 | @endif target-libada | |
29433 | ||
4fa63067 NN |
29434 | .PHONY: maybe-TAGS-target-libada TAGS-target-libada |
29435 | maybe-TAGS-target-libada: | |
6bd3dfaa PB |
29436 | @if target-libada |
29437 | maybe-TAGS-target-libada: TAGS-target-libada | |
4fa63067 NN |
29438 | |
29439 | TAGS-target-libada: \ | |
29440 | configure-target-libada | |
29441 | @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \ | |
29442 | r=`${PWD_COMMAND}`; export r; \ | |
29443 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29444 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
29445 | echo "Doing TAGS in $(TARGET_SUBDIR)/libada" ; \ |
29446 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
29447 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
29448 | done; \ | |
29449 | (cd $(TARGET_SUBDIR)/libada && \ | |
29450 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
29451 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29452 | "RANLIB=$${RANLIB}" \ | |
29453 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 29454 | TAGS) \ |
4fa63067 NN |
29455 | || exit 1 |
29456 | ||
6bd3dfaa | 29457 | @endif target-libada |
4fa63067 NN |
29458 | |
29459 | .PHONY: maybe-install-info-target-libada install-info-target-libada | |
29460 | maybe-install-info-target-libada: | |
6bd3dfaa PB |
29461 | @if target-libada |
29462 | maybe-install-info-target-libada: install-info-target-libada | |
4fa63067 NN |
29463 | |
29464 | install-info-target-libada: \ | |
29465 | configure-target-libada \ | |
29466 | info-target-libada | |
29467 | @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \ | |
29468 | r=`${PWD_COMMAND}`; export r; \ | |
29469 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29470 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
29471 | echo "Doing install-info in $(TARGET_SUBDIR)/libada" ; \ |
29472 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
29473 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
29474 | done; \ | |
29475 | (cd $(TARGET_SUBDIR)/libada && \ | |
29476 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
29477 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29478 | "RANLIB=$${RANLIB}" \ | |
29479 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 29480 | install-info) \ |
4fa63067 NN |
29481 | || exit 1 |
29482 | ||
6bd3dfaa | 29483 | @endif target-libada |
4fa63067 NN |
29484 | |
29485 | .PHONY: maybe-installcheck-target-libada installcheck-target-libada | |
29486 | maybe-installcheck-target-libada: | |
6bd3dfaa PB |
29487 | @if target-libada |
29488 | maybe-installcheck-target-libada: installcheck-target-libada | |
4fa63067 NN |
29489 | |
29490 | installcheck-target-libada: \ | |
29491 | configure-target-libada | |
29492 | @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \ | |
29493 | r=`${PWD_COMMAND}`; export r; \ | |
29494 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29495 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
29496 | echo "Doing installcheck in $(TARGET_SUBDIR)/libada" ; \ |
29497 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
29498 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
29499 | done; \ | |
29500 | (cd $(TARGET_SUBDIR)/libada && \ | |
29501 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
29502 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29503 | "RANLIB=$${RANLIB}" \ | |
29504 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 29505 | installcheck) \ |
4fa63067 NN |
29506 | || exit 1 |
29507 | ||
6bd3dfaa | 29508 | @endif target-libada |
4fa63067 NN |
29509 | |
29510 | .PHONY: maybe-mostlyclean-target-libada mostlyclean-target-libada | |
29511 | maybe-mostlyclean-target-libada: | |
6bd3dfaa PB |
29512 | @if target-libada |
29513 | maybe-mostlyclean-target-libada: mostlyclean-target-libada | |
4fa63067 NN |
29514 | |
29515 | mostlyclean-target-libada: | |
29516 | @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \ | |
29517 | r=`${PWD_COMMAND}`; export r; \ | |
29518 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29519 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
29520 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/libada" ; \ |
29521 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
29522 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
29523 | done; \ | |
29524 | (cd $(TARGET_SUBDIR)/libada && \ | |
29525 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
29526 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29527 | "RANLIB=$${RANLIB}" \ | |
29528 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 29529 | mostlyclean) \ |
4fa63067 NN |
29530 | || exit 1 |
29531 | ||
6bd3dfaa | 29532 | @endif target-libada |
4fa63067 NN |
29533 | |
29534 | .PHONY: maybe-clean-target-libada clean-target-libada | |
29535 | maybe-clean-target-libada: | |
6bd3dfaa PB |
29536 | @if target-libada |
29537 | maybe-clean-target-libada: clean-target-libada | |
4fa63067 NN |
29538 | |
29539 | clean-target-libada: | |
29540 | @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \ | |
29541 | r=`${PWD_COMMAND}`; export r; \ | |
29542 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29543 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
29544 | echo "Doing clean in $(TARGET_SUBDIR)/libada" ; \ |
29545 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
29546 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
29547 | done; \ | |
29548 | (cd $(TARGET_SUBDIR)/libada && \ | |
29549 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
29550 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29551 | "RANLIB=$${RANLIB}" \ | |
29552 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 29553 | clean) \ |
4fa63067 NN |
29554 | || exit 1 |
29555 | ||
6bd3dfaa | 29556 | @endif target-libada |
a2592b1b | 29557 | |
4fa63067 NN |
29558 | .PHONY: maybe-distclean-target-libada distclean-target-libada |
29559 | maybe-distclean-target-libada: | |
6bd3dfaa PB |
29560 | @if target-libada |
29561 | maybe-distclean-target-libada: distclean-target-libada | |
a2592b1b | 29562 | |
4fa63067 NN |
29563 | distclean-target-libada: |
29564 | @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \ | |
29565 | r=`${PWD_COMMAND}`; export r; \ | |
a2592b1b | 29566 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 29567 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
29568 | echo "Doing distclean in $(TARGET_SUBDIR)/libada" ; \ |
29569 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
29570 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
29571 | done; \ | |
a2592b1b | 29572 | (cd $(TARGET_SUBDIR)/libada && \ |
4fa63067 NN |
29573 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29574 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29575 | "RANLIB=$${RANLIB}" \ | |
29576 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 29577 | distclean) \ |
4fa63067 | 29578 | || exit 1 |
a2592b1b | 29579 | |
6bd3dfaa | 29580 | @endif target-libada |
a2592b1b | 29581 | |
4fa63067 NN |
29582 | .PHONY: maybe-maintainer-clean-target-libada maintainer-clean-target-libada |
29583 | maybe-maintainer-clean-target-libada: | |
6bd3dfaa PB |
29584 | @if target-libada |
29585 | maybe-maintainer-clean-target-libada: maintainer-clean-target-libada | |
a2592b1b | 29586 | |
4fa63067 NN |
29587 | maintainer-clean-target-libada: |
29588 | @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \ | |
29589 | r=`${PWD_COMMAND}`; export r; \ | |
a2592b1b | 29590 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 29591 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
29592 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libada" ; \ |
29593 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
29594 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
29595 | done; \ | |
a2592b1b | 29596 | (cd $(TARGET_SUBDIR)/libada && \ |
4fa63067 NN |
29597 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29598 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29599 | "RANLIB=$${RANLIB}" \ | |
29600 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 29601 | maintainer-clean) \ |
4fa63067 NN |
29602 | || exit 1 |
29603 | ||
6bd3dfaa | 29604 | @endif target-libada |
a2592b1b DD |
29605 | |
29606 | ||
e393202e | 29607 | |
15723a45 NN |
29608 | # ---------- |
29609 | # GCC module | |
29610 | # ---------- | |
29611 | ||
319cab08 | 29612 | @if gcc-no-bootstrap |
b813574b PB |
29613 | # GCC has some more recursive targets, which trigger the old |
29614 | # (but still current, until the toplevel bootstrap project | |
29615 | # is finished) compiler bootstrapping rules. | |
252b5132 | 29616 | |
5b474aa8 DD |
29617 | GCC_STRAP_TARGETS = bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean bubblestrap quickstrap cleanstrap restrap |
29618 | .PHONY: $(GCC_STRAP_TARGETS) | |
9e6ce191 | 29619 | $(GCC_STRAP_TARGETS): all-prebootstrap configure-gcc |
b40e3958 L |
29620 | @r=`${PWD_COMMAND}`; export r; \ |
29621 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
7ffa0b57 | 29622 | $(HOST_EXPORTS) \ |
252b5132 | 29623 | echo "Bootstrapping the compiler"; \ |
e90269c8 | 29624 | $(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,:[ :]*,:,g;s,^[ :]*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \ |
5cec67bf | 29625 | cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $@ |
b40e3958 L |
29626 | @r=`${PWD_COMMAND}`; export r; \ |
29627 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
252b5132 RH |
29628 | case "$@" in \ |
29629 | *bootstrap4-lean ) \ | |
bba45b8b NN |
29630 | msg="Comparing stage3 and stage4 of the compiler"; \ |
29631 | compare=compare3-lean ;; \ | |
29632 | *bootstrap4 ) \ | |
29633 | msg="Comparing stage3 and stage4 of the compiler"; \ | |
29634 | compare=compare3 ;; \ | |
29635 | *-lean ) \ | |
29636 | msg="Comparing stage2 and stage3 of the compiler"; \ | |
29637 | compare=compare-lean ;; \ | |
29638 | * ) \ | |
29639 | msg="Comparing stage2 and stage3 of the compiler"; \ | |
29640 | compare=compare ;; \ | |
252b5132 | 29641 | esac; \ |
7ffa0b57 | 29642 | $(HOST_EXPORTS) \ |
252b5132 | 29643 | echo "$$msg"; \ |
5cec67bf | 29644 | cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $$compare |
b40e3958 L |
29645 | @r=`${PWD_COMMAND}`; export r; \ |
29646 | s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \ | |
252b5132 | 29647 | echo "Building runtime libraries"; \ |
656fdd47 | 29648 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) all |
252b5132 | 29649 | |
9e6ce191 | 29650 | profiledbootstrap: all-prebootstrap configure-gcc |
b40e3958 L |
29651 | @r=`${PWD_COMMAND}`; export r; \ |
29652 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
7ffa0b57 | 29653 | $(HOST_EXPORTS) \ |
e90269c8 | 29654 | $(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,:[ :]*,:,g;s,^[ :]*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \ |
3e707e94 | 29655 | echo "Bootstrapping training compiler"; \ |
ec7e0995 | 29656 | cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) stageprofile_build |
b40e3958 | 29657 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 29658 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
7ffa0b57 | 29659 | $(HOST_EXPORTS) \ |
ec7e0995 NN |
29660 | echo "Building feedback based compiler"; \ |
29661 | cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) stagefeedback_build | |
3e707e94 PB |
29662 | @r=`${PWD_COMMAND}`; export r; \ |
29663 | s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \ | |
3e707e94 PB |
29664 | echo "Building runtime libraries"; \ |
29665 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) all | |
ec7e0995 | 29666 | |
252b5132 | 29667 | .PHONY: cross |
72b2455a | 29668 | cross: all-build all-gas all-ld |
b40e3958 L |
29669 | @r=`${PWD_COMMAND}`; export r; \ |
29670 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
7ffa0b57 | 29671 | $(HOST_EXPORTS) \ |
252b5132 | 29672 | echo "Building the C and C++ compiler"; \ |
5cec67bf | 29673 | cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++" |
b40e3958 L |
29674 | @r=`${PWD_COMMAND}`; export r; \ |
29675 | s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \ | |
252b5132 | 29676 | echo "Building runtime libraries"; \ |
656fdd47 | 29677 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) LANGUAGES="c c++" all |
319cab08 | 29678 | @endif gcc-no-bootstrap |
252b5132 | 29679 | |
6bd3dfaa | 29680 | @if gcc |
7d695d07 JM |
29681 | .PHONY: check-gcc-c++ |
29682 | check-gcc-c++: | |
75205f78 | 29683 | @if [ -f ./gcc/Makefile ] ; then \ |
b40e3958 L |
29684 | r=`${PWD_COMMAND}`; export r; \ |
29685 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
7ffa0b57 | 29686 | $(HOST_EXPORTS) \ |
1086bc09 | 29687 | (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++); \ |
75205f78 DD |
29688 | else \ |
29689 | true; \ | |
7d695d07 JM |
29690 | fi |
29691 | ||
29692 | .PHONY: check-c++ | |
ede4fbe4 | 29693 | check-c++: check-target-libstdc++-v3 check-gcc-c++ |
252b5132 | 29694 | |
15723a45 NN |
29695 | # Install the gcc headers files, but not the fixed include files, |
29696 | # which Cygnus is not allowed to distribute. This rule is very | |
29697 | # dependent on the workings of the gcc Makefile.in. | |
29698 | .PHONY: gcc-no-fixedincludes | |
29699 | gcc-no-fixedincludes: | |
29700 | @if [ -f ./gcc/Makefile ]; then \ | |
29701 | rm -rf gcc/tmp-include; \ | |
29702 | mv gcc/include gcc/tmp-include 2>/dev/null; \ | |
29703 | mkdir gcc/include; \ | |
29704 | cp $(srcdir)/gcc/gsyslimits.h gcc/include/syslimits.h; \ | |
29705 | touch gcc/stmp-fixinc gcc/include/fixed; \ | |
29706 | rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \ | |
b40e3958 L |
29707 | r=`${PWD_COMMAND}`; export r; \ |
29708 | s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \ | |
7ffa0b57 | 29709 | $(HOST_EXPORTS) \ |
1086bc09 | 29710 | (cd ./gcc && \ |
15723a45 NN |
29711 | $(MAKE) $(GCC_FLAGS_TO_PASS) install); \ |
29712 | rm -rf gcc/include; \ | |
29713 | mv gcc/tmp-include gcc/include 2>/dev/null; \ | |
29714 | else true; fi | |
6bd3dfaa | 29715 | @endif gcc |
4fa63067 | 29716 | |
b813574b PB |
29717 | # --------------------- |
29718 | # GCC bootstrap support | |
29719 | # --------------------- | |
4fa63067 | 29720 | |
b813574b PB |
29721 | # We track the current stage (the one in 'gcc') in the stage_current file. |
29722 | # stage_last instead tracks the stage that was built last. These targets | |
29723 | # are dummy when toplevel bootstrap is not active. | |
4fa63067 | 29724 | |
b813574b PB |
29725 | .PHONY: unstage |
29726 | unstage: | |
29727 | @if gcc-bootstrap | |
29728 | @[ -f stage_current ] || $(MAKE) `cat stage_last`-start | |
29729 | @endif gcc-bootstrap | |
4fa63067 | 29730 | |
b813574b PB |
29731 | .PHONY: stage |
29732 | stage: | |
319cab08 | 29733 | @if gcc-bootstrap |
b813574b PB |
29734 | @$(MAKE) `cat stage_current`-end |
29735 | @endif gcc-bootstrap | |
1d39f329 | 29736 | |
dfdffa2c PB |
29737 | # We name the build directories for the various stages "stage1-gcc", |
29738 | # "stage2-gcc","stage3-gcc", etc. | |
29739 | ||
29740 | # Since the 'compare' process will fail (on debugging information) if any | |
29741 | # directory names are different, we need to link the gcc directory for | |
29742 | # the previous stage to a constant name ('gcc-prev'), and to make the name of | |
29743 | # the build directories constant as well. For the latter, we use naked names | |
29744 | # like 'gcc', because the scripts in that directory assume it. We use | |
29745 | # mv on platforms where symlinks to directories do not work or are not | |
29746 | # reliable. | |
29747 | ||
29748 | # At the end of the bootstrap, a symlink to 'stage3-gcc' named 'gcc' must | |
29749 | # be kept, so that libraries can find it. Ick! | |
29750 | ||
29751 | # It would be best to preinstall gcc into a staging area (and in the | |
29752 | # future, gather there all prebootstrap packages). This would allow | |
29753 | # assemblers and linkers can be bootstrapped as well as the compiler | |
29754 | # (both in a combined tree, or separately). This however requires some | |
29755 | # change to the gcc driver, again in order to avoid comparison failures. | |
1d39f329 | 29756 | |
0df3d27f PB |
29757 | # Bugs: This is crippled when doing parallel make, the `make all-host' |
29758 | # and `make all-target' phases can be parallelized. | |
29759 | ||
1d39f329 NN |
29760 | |
29761 | # 'touch' doesn't work right on some platforms. | |
29762 | STAMP = echo timestamp > | |
29763 | ||
29764 | # Only build the C compiler for stage1, because that is the only one that | |
29765 | # we can guarantee will build with the native compiler, and also it is the | |
29766 | # only thing useful for building stage2. STAGE1_CFLAGS (via CFLAGS), | |
29767 | # MAKEINFO and MAKEINFOFLAGS are explicitly passed here to make them | |
29768 | # overrideable (for a bootstrap build stage1 also builds gcc.info). | |
29769 | ||
29770 | STAGE1_CFLAGS=@stage1_cflags@ | |
29771 | STAGE1_LANGUAGES=@stage1_languages@ | |
29772 | ||
dfdffa2c PB |
29773 | # We only want to compare .o files, so set this! |
29774 | objext = .o | |
29775 | ||
dfdffa2c | 29776 | # Flags to pass to stage2 and later makes. |
dfdffa2c | 29777 | POSTSTAGE1_FLAGS_TO_PASS = \ |
656fdd47 PB |
29778 | CC="$${CC}" CC_FOR_BUILD="$${CC_FOR_BUILD}" \ |
29779 | STAGE_PREFIX=$$r/stage-gcc/ \ | |
dfdffa2c PB |
29780 | CFLAGS="$(BOOT_CFLAGS)" \ |
29781 | ADAC="\$$(CC)" | |
29782 | ||
4fa63067 NN |
29783 | # For stage 1: |
29784 | # * We force-disable intermodule optimizations, even if | |
29785 | # --enable-intermodule was passed, since the installed compiler probably | |
29786 | # can't handle them. Luckily, autoconf always respects | |
29787 | # the last argument when conflicting --enable arguments are passed. | |
29788 | # * Likewise, we force-disable coverage flags, since the installed compiler | |
29789 | # probably has never heard of them. | |
29790 | # * We build only C (and possibly Ada). | |
dfdffa2c PB |
29791 | |
29792 | ||
319cab08 | 29793 | .PHONY: stage1-start stage1-end |
dfdffa2c | 29794 | |
656fdd47 | 29795 | stage1-start:: |
9cb3fa6f | 29796 | @[ -f stage_current ] && $(MAKE) `cat stage_current`-end || : ; \ |
b813574b | 29797 | echo stage1 > stage_current ; \ |
b00612cc PB |
29798 | echo stage1 > stage_last; \ |
29799 | $(mkinstalldirs) $(HOST_SUBDIR) | |
72b2455a | 29800 | @if bfd |
b00612cc PB |
29801 | @cd $(HOST_SUBDIR); [ -d stage1-bfd ] || \ |
29802 | mkdir stage1-bfd; \ | |
29803 | set stage1-bfd bfd ; \ | |
29804 | @CREATE_LINK_TO_DIR@ | |
72b2455a PB |
29805 | @endif bfd |
29806 | @if opcodes | |
b00612cc PB |
29807 | @cd $(HOST_SUBDIR); [ -d stage1-opcodes ] || \ |
29808 | mkdir stage1-opcodes; \ | |
29809 | set stage1-opcodes opcodes ; \ | |
29810 | @CREATE_LINK_TO_DIR@ | |
72b2455a PB |
29811 | @endif opcodes |
29812 | @if binutils | |
b00612cc PB |
29813 | @cd $(HOST_SUBDIR); [ -d stage1-binutils ] || \ |
29814 | mkdir stage1-binutils; \ | |
29815 | set stage1-binutils binutils ; \ | |
29816 | @CREATE_LINK_TO_DIR@ | |
72b2455a PB |
29817 | @endif binutils |
29818 | @if gas | |
b00612cc PB |
29819 | @cd $(HOST_SUBDIR); [ -d stage1-gas ] || \ |
29820 | mkdir stage1-gas; \ | |
29821 | set stage1-gas gas ; \ | |
29822 | @CREATE_LINK_TO_DIR@ | |
72b2455a PB |
29823 | @endif gas |
29824 | @if gcc | |
b00612cc PB |
29825 | @cd $(HOST_SUBDIR); [ -d stage1-gcc ] || \ |
29826 | mkdir stage1-gcc; \ | |
29827 | set stage1-gcc gcc ; \ | |
29828 | @CREATE_LINK_TO_DIR@ | |
72b2455a PB |
29829 | @endif gcc |
29830 | @if intl | |
b00612cc PB |
29831 | @cd $(HOST_SUBDIR); [ -d stage1-intl ] || \ |
29832 | mkdir stage1-intl; \ | |
29833 | set stage1-intl intl ; \ | |
29834 | @CREATE_LINK_TO_DIR@ | |
72b2455a PB |
29835 | @endif intl |
29836 | @if ld | |
b00612cc PB |
29837 | @cd $(HOST_SUBDIR); [ -d stage1-ld ] || \ |
29838 | mkdir stage1-ld; \ | |
29839 | set stage1-ld ld ; \ | |
29840 | @CREATE_LINK_TO_DIR@ | |
72b2455a PB |
29841 | @endif ld |
29842 | @if libcpp | |
b00612cc PB |
29843 | @cd $(HOST_SUBDIR); [ -d stage1-libcpp ] || \ |
29844 | mkdir stage1-libcpp; \ | |
29845 | set stage1-libcpp libcpp ; \ | |
29846 | @CREATE_LINK_TO_DIR@ | |
72b2455a | 29847 | @endif libcpp |
72b2455a | 29848 | @if libiberty |
b00612cc PB |
29849 | @cd $(HOST_SUBDIR); [ -d stage1-libiberty ] || \ |
29850 | mkdir stage1-libiberty; \ | |
29851 | set stage1-libiberty libiberty ; \ | |
29852 | @CREATE_LINK_TO_DIR@ | |
72b2455a PB |
29853 | @endif libiberty |
29854 | @if zlib | |
b00612cc PB |
29855 | @cd $(HOST_SUBDIR); [ -d stage1-zlib ] || \ |
29856 | mkdir stage1-zlib; \ | |
29857 | set stage1-zlib zlib ; \ | |
29858 | @CREATE_LINK_TO_DIR@ | |
72b2455a | 29859 | @endif zlib |
dfdffa2c | 29860 | |
656fdd47 | 29861 | stage1-end:: |
9cb3fa6f | 29862 | @rm -f stage_current |
72b2455a | 29863 | @if bfd |
b00612cc PB |
29864 | @cd $(HOST_SUBDIR); set bfd stage1-bfd ; \ |
29865 | @UNDO_LINK_TO_DIR@ | |
72b2455a PB |
29866 | @endif bfd |
29867 | @if opcodes | |
b00612cc PB |
29868 | @cd $(HOST_SUBDIR); set opcodes stage1-opcodes ; \ |
29869 | @UNDO_LINK_TO_DIR@ | |
72b2455a PB |
29870 | @endif opcodes |
29871 | @if binutils | |
b00612cc PB |
29872 | @cd $(HOST_SUBDIR); set binutils stage1-binutils ; \ |
29873 | @UNDO_LINK_TO_DIR@ | |
72b2455a PB |
29874 | @endif binutils |
29875 | @if gas | |
b00612cc PB |
29876 | @cd $(HOST_SUBDIR); set gas stage1-gas ; \ |
29877 | @UNDO_LINK_TO_DIR@ | |
72b2455a PB |
29878 | @endif gas |
29879 | @if gcc | |
b00612cc PB |
29880 | @cd $(HOST_SUBDIR); set gcc stage1-gcc ; \ |
29881 | @UNDO_LINK_TO_DIR@ | |
72b2455a PB |
29882 | @endif gcc |
29883 | @if intl | |
b00612cc PB |
29884 | @cd $(HOST_SUBDIR); set intl stage1-intl ; \ |
29885 | @UNDO_LINK_TO_DIR@ | |
72b2455a PB |
29886 | @endif intl |
29887 | @if ld | |
b00612cc PB |
29888 | @cd $(HOST_SUBDIR); set ld stage1-ld ; \ |
29889 | @UNDO_LINK_TO_DIR@ | |
72b2455a PB |
29890 | @endif ld |
29891 | @if libcpp | |
b00612cc PB |
29892 | @cd $(HOST_SUBDIR); set libcpp stage1-libcpp ; \ |
29893 | @UNDO_LINK_TO_DIR@ | |
72b2455a | 29894 | @endif libcpp |
72b2455a | 29895 | @if libiberty |
b00612cc PB |
29896 | @cd $(HOST_SUBDIR); set libiberty stage1-libiberty ; \ |
29897 | @UNDO_LINK_TO_DIR@ | |
72b2455a PB |
29898 | @endif libiberty |
29899 | @if zlib | |
b00612cc PB |
29900 | @cd $(HOST_SUBDIR); set zlib stage1-zlib ; \ |
29901 | @UNDO_LINK_TO_DIR@ | |
72b2455a | 29902 | @endif zlib |
dfdffa2c PB |
29903 | |
29904 | # Bubble a bugfix through all the stages up to stage 1. They | |
29905 | # are remade, but not reconfigured. The next stage (if any) will not | |
29906 | # be reconfigured as well. | |
319cab08 | 29907 | .PHONY: stage1-bubble |
656fdd47 | 29908 | stage1-bubble:: |
9cb3fa6f PB |
29909 | @if test -f stage1-lean ; then \ |
29910 | echo Skipping rebuild of stage1 ; \ | |
29911 | else \ | |
0df3d27f | 29912 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) NOTPARALLEL= all-stage1; \ |
9cb3fa6f | 29913 | fi |
72b2455a | 29914 | |
0df3d27f | 29915 | .PHONY: all-stage1 clean-stage1 |
72b2455a PB |
29916 | all-stage1: \ |
29917 | maybe-all-stage1-bfd \ | |
29918 | maybe-all-stage1-opcodes \ | |
d3ed111c | 29919 | maybe-all-stage1-binutils \ |
72b2455a PB |
29920 | maybe-all-stage1-gas \ |
29921 | maybe-all-stage1-gcc \ | |
29922 | maybe-all-stage1-intl \ | |
29923 | maybe-all-stage1-ld \ | |
29924 | maybe-all-stage1-libcpp \ | |
72b2455a | 29925 | maybe-all-stage1-libiberty \ |
b00612cc | 29926 | maybe-all-stage1-zlib |
72b2455a | 29927 | |
0df3d27f PB |
29928 | do-clean: clean-stage1 |
29929 | clean-stage1: \ | |
29930 | maybe-clean-stage1-bfd \ | |
29931 | maybe-clean-stage1-opcodes \ | |
d3ed111c | 29932 | maybe-clean-stage1-binutils \ |
0df3d27f PB |
29933 | maybe-clean-stage1-gas \ |
29934 | maybe-clean-stage1-gcc \ | |
29935 | maybe-clean-stage1-intl \ | |
29936 | maybe-clean-stage1-ld \ | |
29937 | maybe-clean-stage1-libcpp \ | |
0df3d27f | 29938 | maybe-clean-stage1-libiberty \ |
b00612cc | 29939 | maybe-clean-stage1-zlib |
0df3d27f | 29940 | |
72b2455a | 29941 | |
9cb3fa6f PB |
29942 | .PHONY: configure-stage1-bfd maybe-configure-stage1-bfd |
29943 | .PHONY: all-stage1-bfd maybe-all-stage1-bfd | |
0df3d27f | 29944 | .PHONY: clean-stage1-bfd maybe-clean-stage1-bfd |
9cb3fa6f | 29945 | |
72b2455a PB |
29946 | maybe-configure-stage1-bfd: |
29947 | maybe-all-stage1-bfd: | |
0df3d27f | 29948 | maybe-clean-stage1-bfd: |
72b2455a PB |
29949 | |
29950 | @if bfd-bootstrap | |
29951 | maybe-configure-stage1-bfd: configure-stage1-bfd | |
9cb3fa6f PB |
29952 | configure-stage1-bfd: |
29953 | @$(MAKE) stage1-start | |
29954 | @[ -f bfd/Makefile ] && exit 0 || : ; \ | |
1d39f329 | 29955 | r=`${PWD_COMMAND}`; export r; \ |
378fce5b | 29956 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
7ffa0b57 | 29957 | $(HOST_EXPORTS) \ |
72b2455a | 29958 | echo Configuring stage 1 in bfd ; \ |
b00612cc | 29959 | cd $(HOST_SUBDIR)/bfd || exit 1; \ |
1d39f329 | 29960 | case $(srcdir) in \ |
b00612cc PB |
29961 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
29962 | *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \ | |
29963 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
1d39f329 | 29964 | esac; \ |
b00612cc PB |
29965 | srcdiroption="--srcdir=$${topdir}/bfd"; \ |
29966 | libsrcdir="$$s/bfd"; \ | |
1d39f329 | 29967 | $(SHELL) $${libsrcdir}/configure \ |
4fa63067 | 29968 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
9cb3fa6f | 29969 | --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)" |
1d39f329 | 29970 | |
72b2455a PB |
29971 | maybe-all-stage1-bfd: all-stage1-bfd |
29972 | all-stage1-bfd: configure-stage1-bfd | |
9cb3fa6f | 29973 | @$(MAKE) stage1-start |
dfdffa2c | 29974 | @r=`${PWD_COMMAND}`; export r; \ |
378fce5b | 29975 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
7ffa0b57 | 29976 | $(HOST_EXPORTS) \ |
b00612cc | 29977 | cd $(HOST_SUBDIR)/bfd && \ |
72b2455a | 29978 | $(MAKE) $(FLAGS_TO_PASS) \ |
9cb3fa6f | 29979 | CFLAGS="$(STAGE1_CFLAGS)" |
0df3d27f PB |
29980 | |
29981 | maybe-clean-stage1-bfd: clean-stage1-bfd | |
29982 | clean-stage1-bfd: | |
29983 | @[ -f bfd/Makefile ] || [ -f stage1-bfd/Makefile ] \ | |
29984 | || exit 0 ; \ | |
29985 | [ -f bfd/Makefile ] || $(MAKE) stage1-start ; \ | |
b00612cc | 29986 | cd $(HOST_SUBDIR)/bfd && \ |
0df3d27f PB |
29987 | $(MAKE) $(FLAGS_TO_PASS) \ |
29988 | CFLAGS="$(STAGE1_CFLAGS)" clean | |
72b2455a PB |
29989 | @endif bfd-bootstrap |
29990 | ||
0df3d27f | 29991 | |
9cb3fa6f PB |
29992 | .PHONY: configure-stage1-opcodes maybe-configure-stage1-opcodes |
29993 | .PHONY: all-stage1-opcodes maybe-all-stage1-opcodes | |
0df3d27f | 29994 | .PHONY: clean-stage1-opcodes maybe-clean-stage1-opcodes |
9cb3fa6f | 29995 | |
72b2455a PB |
29996 | maybe-configure-stage1-opcodes: |
29997 | maybe-all-stage1-opcodes: | |
0df3d27f | 29998 | maybe-clean-stage1-opcodes: |
72b2455a PB |
29999 | |
30000 | @if opcodes-bootstrap | |
30001 | maybe-configure-stage1-opcodes: configure-stage1-opcodes | |
9cb3fa6f PB |
30002 | configure-stage1-opcodes: |
30003 | @$(MAKE) stage1-start | |
30004 | @[ -f opcodes/Makefile ] && exit 0 || : ; \ | |
1d39f329 | 30005 | r=`${PWD_COMMAND}`; export r; \ |
378fce5b | 30006 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
72b2455a PB |
30007 | $(HOST_EXPORTS) \ |
30008 | echo Configuring stage 1 in opcodes ; \ | |
b00612cc | 30009 | cd $(HOST_SUBDIR)/opcodes || exit 1; \ |
1d39f329 | 30010 | case $(srcdir) in \ |
b00612cc PB |
30011 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
30012 | *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \ | |
30013 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
1d39f329 | 30014 | esac; \ |
b00612cc PB |
30015 | srcdiroption="--srcdir=$${topdir}/opcodes"; \ |
30016 | libsrcdir="$$s/opcodes"; \ | |
1d39f329 | 30017 | $(SHELL) $${libsrcdir}/configure \ |
dfdffa2c | 30018 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
9cb3fa6f | 30019 | --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)" |
1d39f329 | 30020 | |
72b2455a PB |
30021 | maybe-all-stage1-opcodes: all-stage1-opcodes |
30022 | all-stage1-opcodes: configure-stage1-opcodes | |
9cb3fa6f | 30023 | @$(MAKE) stage1-start |
dfdffa2c | 30024 | @r=`${PWD_COMMAND}`; export r; \ |
378fce5b | 30025 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
72b2455a | 30026 | $(HOST_EXPORTS) \ |
b00612cc | 30027 | cd $(HOST_SUBDIR)/opcodes && \ |
72b2455a | 30028 | $(MAKE) $(FLAGS_TO_PASS) \ |
9cb3fa6f | 30029 | CFLAGS="$(STAGE1_CFLAGS)" |
0df3d27f PB |
30030 | |
30031 | maybe-clean-stage1-opcodes: clean-stage1-opcodes | |
30032 | clean-stage1-opcodes: | |
30033 | @[ -f opcodes/Makefile ] || [ -f stage1-opcodes/Makefile ] \ | |
30034 | || exit 0 ; \ | |
30035 | [ -f opcodes/Makefile ] || $(MAKE) stage1-start ; \ | |
b00612cc | 30036 | cd $(HOST_SUBDIR)/opcodes && \ |
0df3d27f PB |
30037 | $(MAKE) $(FLAGS_TO_PASS) \ |
30038 | CFLAGS="$(STAGE1_CFLAGS)" clean | |
72b2455a PB |
30039 | @endif opcodes-bootstrap |
30040 | ||
0df3d27f | 30041 | |
9cb3fa6f PB |
30042 | .PHONY: configure-stage1-binutils maybe-configure-stage1-binutils |
30043 | .PHONY: all-stage1-binutils maybe-all-stage1-binutils | |
0df3d27f | 30044 | .PHONY: clean-stage1-binutils maybe-clean-stage1-binutils |
9cb3fa6f | 30045 | |
72b2455a PB |
30046 | maybe-configure-stage1-binutils: |
30047 | maybe-all-stage1-binutils: | |
0df3d27f | 30048 | maybe-clean-stage1-binutils: |
72b2455a PB |
30049 | |
30050 | @if binutils-bootstrap | |
30051 | maybe-configure-stage1-binutils: configure-stage1-binutils | |
9cb3fa6f PB |
30052 | configure-stage1-binutils: |
30053 | @$(MAKE) stage1-start | |
30054 | @[ -f binutils/Makefile ] && exit 0 || : ; \ | |
72b2455a PB |
30055 | r=`${PWD_COMMAND}`; export r; \ |
30056 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
30057 | $(HOST_EXPORTS) \ | |
30058 | echo Configuring stage 1 in binutils ; \ | |
b00612cc | 30059 | cd $(HOST_SUBDIR)/binutils || exit 1; \ |
72b2455a | 30060 | case $(srcdir) in \ |
b00612cc PB |
30061 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
30062 | *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \ | |
30063 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
72b2455a | 30064 | esac; \ |
b00612cc PB |
30065 | srcdiroption="--srcdir=$${topdir}/binutils"; \ |
30066 | libsrcdir="$$s/binutils"; \ | |
72b2455a PB |
30067 | $(SHELL) $${libsrcdir}/configure \ |
30068 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 30069 | --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)" |
72b2455a PB |
30070 | |
30071 | maybe-all-stage1-binutils: all-stage1-binutils | |
30072 | all-stage1-binutils: configure-stage1-binutils | |
9cb3fa6f | 30073 | @$(MAKE) stage1-start |
72b2455a PB |
30074 | @r=`${PWD_COMMAND}`; export r; \ |
30075 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
30076 | $(HOST_EXPORTS) \ | |
b00612cc | 30077 | cd $(HOST_SUBDIR)/binutils && \ |
72b2455a | 30078 | $(MAKE) $(FLAGS_TO_PASS) \ |
9cb3fa6f | 30079 | CFLAGS="$(STAGE1_CFLAGS)" |
0df3d27f PB |
30080 | |
30081 | maybe-clean-stage1-binutils: clean-stage1-binutils | |
30082 | clean-stage1-binutils: | |
30083 | @[ -f binutils/Makefile ] || [ -f stage1-binutils/Makefile ] \ | |
30084 | || exit 0 ; \ | |
30085 | [ -f binutils/Makefile ] || $(MAKE) stage1-start ; \ | |
b00612cc | 30086 | cd $(HOST_SUBDIR)/binutils && \ |
0df3d27f PB |
30087 | $(MAKE) $(FLAGS_TO_PASS) \ |
30088 | CFLAGS="$(STAGE1_CFLAGS)" clean | |
72b2455a PB |
30089 | @endif binutils-bootstrap |
30090 | ||
0df3d27f | 30091 | |
9cb3fa6f PB |
30092 | .PHONY: configure-stage1-gas maybe-configure-stage1-gas |
30093 | .PHONY: all-stage1-gas maybe-all-stage1-gas | |
0df3d27f | 30094 | .PHONY: clean-stage1-gas maybe-clean-stage1-gas |
9cb3fa6f | 30095 | |
72b2455a PB |
30096 | maybe-configure-stage1-gas: |
30097 | maybe-all-stage1-gas: | |
0df3d27f | 30098 | maybe-clean-stage1-gas: |
72b2455a PB |
30099 | |
30100 | @if gas-bootstrap | |
30101 | maybe-configure-stage1-gas: configure-stage1-gas | |
9cb3fa6f PB |
30102 | configure-stage1-gas: |
30103 | @$(MAKE) stage1-start | |
30104 | @[ -f gas/Makefile ] && exit 0 || : ; \ | |
72b2455a PB |
30105 | r=`${PWD_COMMAND}`; export r; \ |
30106 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
30107 | $(HOST_EXPORTS) \ | |
30108 | echo Configuring stage 1 in gas ; \ | |
b00612cc | 30109 | cd $(HOST_SUBDIR)/gas || exit 1; \ |
72b2455a | 30110 | case $(srcdir) in \ |
b00612cc PB |
30111 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
30112 | *) topdir=`echo $(HOST_SUBDIR)/gas/ | \ | |
30113 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
72b2455a | 30114 | esac; \ |
b00612cc PB |
30115 | srcdiroption="--srcdir=$${topdir}/gas"; \ |
30116 | libsrcdir="$$s/gas"; \ | |
72b2455a PB |
30117 | $(SHELL) $${libsrcdir}/configure \ |
30118 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 30119 | --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)" |
72b2455a PB |
30120 | |
30121 | maybe-all-stage1-gas: all-stage1-gas | |
30122 | all-stage1-gas: configure-stage1-gas | |
9cb3fa6f | 30123 | @$(MAKE) stage1-start |
72b2455a PB |
30124 | @r=`${PWD_COMMAND}`; export r; \ |
30125 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
30126 | $(HOST_EXPORTS) \ | |
b00612cc | 30127 | cd $(HOST_SUBDIR)/gas && \ |
72b2455a | 30128 | $(MAKE) $(FLAGS_TO_PASS) \ |
9cb3fa6f | 30129 | CFLAGS="$(STAGE1_CFLAGS)" |
0df3d27f PB |
30130 | |
30131 | maybe-clean-stage1-gas: clean-stage1-gas | |
30132 | clean-stage1-gas: | |
30133 | @[ -f gas/Makefile ] || [ -f stage1-gas/Makefile ] \ | |
30134 | || exit 0 ; \ | |
30135 | [ -f gas/Makefile ] || $(MAKE) stage1-start ; \ | |
b00612cc | 30136 | cd $(HOST_SUBDIR)/gas && \ |
0df3d27f PB |
30137 | $(MAKE) $(FLAGS_TO_PASS) \ |
30138 | CFLAGS="$(STAGE1_CFLAGS)" clean | |
72b2455a PB |
30139 | @endif gas-bootstrap |
30140 | ||
0df3d27f | 30141 | |
9cb3fa6f PB |
30142 | .PHONY: configure-stage1-gcc maybe-configure-stage1-gcc |
30143 | .PHONY: all-stage1-gcc maybe-all-stage1-gcc | |
0df3d27f | 30144 | .PHONY: clean-stage1-gcc maybe-clean-stage1-gcc |
9cb3fa6f | 30145 | |
72b2455a PB |
30146 | maybe-configure-stage1-gcc: |
30147 | maybe-all-stage1-gcc: | |
0df3d27f | 30148 | maybe-clean-stage1-gcc: |
72b2455a PB |
30149 | |
30150 | @if gcc-bootstrap | |
30151 | maybe-configure-stage1-gcc: configure-stage1-gcc | |
9cb3fa6f PB |
30152 | configure-stage1-gcc: |
30153 | @$(MAKE) stage1-start | |
30154 | @[ -f gcc/Makefile ] && exit 0 || : ; \ | |
72b2455a PB |
30155 | r=`${PWD_COMMAND}`; export r; \ |
30156 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
30157 | $(HOST_EXPORTS) \ | |
30158 | echo Configuring stage 1 in gcc ; \ | |
b00612cc | 30159 | cd $(HOST_SUBDIR)/gcc || exit 1; \ |
72b2455a | 30160 | case $(srcdir) in \ |
b00612cc PB |
30161 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
30162 | *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \ | |
30163 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
72b2455a | 30164 | esac; \ |
b00612cc PB |
30165 | srcdiroption="--srcdir=$${topdir}/gcc"; \ |
30166 | libsrcdir="$$s/gcc"; \ | |
72b2455a PB |
30167 | $(SHELL) $${libsrcdir}/configure \ |
30168 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 30169 | --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)" |
72b2455a PB |
30170 | |
30171 | maybe-all-stage1-gcc: all-stage1-gcc | |
30172 | all-stage1-gcc: configure-stage1-gcc | |
9cb3fa6f | 30173 | @$(MAKE) stage1-start |
72b2455a PB |
30174 | @r=`${PWD_COMMAND}`; export r; \ |
30175 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
30176 | $(HOST_EXPORTS) \ | |
b00612cc | 30177 | cd $(HOST_SUBDIR)/gcc && \ |
72b2455a | 30178 | $(MAKE) $(FLAGS_TO_PASS) \ |
9cb3fa6f | 30179 | CFLAGS="$(STAGE1_CFLAGS)" $(EXTRA_GCC_FLAGS) |
0df3d27f PB |
30180 | |
30181 | maybe-clean-stage1-gcc: clean-stage1-gcc | |
30182 | clean-stage1-gcc: | |
30183 | @[ -f gcc/Makefile ] || [ -f stage1-gcc/Makefile ] \ | |
30184 | || exit 0 ; \ | |
30185 | [ -f gcc/Makefile ] || $(MAKE) stage1-start ; \ | |
b00612cc | 30186 | cd $(HOST_SUBDIR)/gcc && \ |
0df3d27f PB |
30187 | $(MAKE) $(FLAGS_TO_PASS) \ |
30188 | CFLAGS="$(STAGE1_CFLAGS)" $(EXTRA_GCC_FLAGS) clean | |
72b2455a PB |
30189 | @endif gcc-bootstrap |
30190 | ||
0df3d27f | 30191 | |
9cb3fa6f PB |
30192 | .PHONY: configure-stage1-intl maybe-configure-stage1-intl |
30193 | .PHONY: all-stage1-intl maybe-all-stage1-intl | |
0df3d27f | 30194 | .PHONY: clean-stage1-intl maybe-clean-stage1-intl |
9cb3fa6f | 30195 | |
72b2455a PB |
30196 | maybe-configure-stage1-intl: |
30197 | maybe-all-stage1-intl: | |
0df3d27f | 30198 | maybe-clean-stage1-intl: |
72b2455a PB |
30199 | |
30200 | @if intl-bootstrap | |
30201 | maybe-configure-stage1-intl: configure-stage1-intl | |
9cb3fa6f PB |
30202 | configure-stage1-intl: |
30203 | @$(MAKE) stage1-start | |
30204 | @[ -f intl/Makefile ] && exit 0 || : ; \ | |
72b2455a PB |
30205 | r=`${PWD_COMMAND}`; export r; \ |
30206 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
30207 | $(HOST_EXPORTS) \ | |
30208 | echo Configuring stage 1 in intl ; \ | |
b00612cc | 30209 | cd $(HOST_SUBDIR)/intl || exit 1; \ |
72b2455a | 30210 | case $(srcdir) in \ |
b00612cc PB |
30211 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
30212 | *) topdir=`echo $(HOST_SUBDIR)/intl/ | \ | |
30213 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
72b2455a | 30214 | esac; \ |
b00612cc PB |
30215 | srcdiroption="--srcdir=$${topdir}/intl"; \ |
30216 | libsrcdir="$$s/intl"; \ | |
72b2455a PB |
30217 | $(SHELL) $${libsrcdir}/configure \ |
30218 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 30219 | --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)" |
72b2455a PB |
30220 | |
30221 | maybe-all-stage1-intl: all-stage1-intl | |
30222 | all-stage1-intl: configure-stage1-intl | |
9cb3fa6f | 30223 | @$(MAKE) stage1-start |
72b2455a PB |
30224 | @r=`${PWD_COMMAND}`; export r; \ |
30225 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
30226 | $(HOST_EXPORTS) \ | |
b00612cc | 30227 | cd $(HOST_SUBDIR)/intl && \ |
72b2455a | 30228 | $(MAKE) $(FLAGS_TO_PASS) \ |
9cb3fa6f | 30229 | CFLAGS="$(STAGE1_CFLAGS)" |
0df3d27f PB |
30230 | |
30231 | maybe-clean-stage1-intl: clean-stage1-intl | |
30232 | clean-stage1-intl: | |
30233 | @[ -f intl/Makefile ] || [ -f stage1-intl/Makefile ] \ | |
30234 | || exit 0 ; \ | |
30235 | [ -f intl/Makefile ] || $(MAKE) stage1-start ; \ | |
b00612cc | 30236 | cd $(HOST_SUBDIR)/intl && \ |
0df3d27f PB |
30237 | $(MAKE) $(FLAGS_TO_PASS) \ |
30238 | CFLAGS="$(STAGE1_CFLAGS)" clean | |
72b2455a PB |
30239 | @endif intl-bootstrap |
30240 | ||
0df3d27f | 30241 | |
9cb3fa6f PB |
30242 | .PHONY: configure-stage1-ld maybe-configure-stage1-ld |
30243 | .PHONY: all-stage1-ld maybe-all-stage1-ld | |
0df3d27f | 30244 | .PHONY: clean-stage1-ld maybe-clean-stage1-ld |
9cb3fa6f | 30245 | |
72b2455a PB |
30246 | maybe-configure-stage1-ld: |
30247 | maybe-all-stage1-ld: | |
0df3d27f | 30248 | maybe-clean-stage1-ld: |
72b2455a PB |
30249 | |
30250 | @if ld-bootstrap | |
30251 | maybe-configure-stage1-ld: configure-stage1-ld | |
9cb3fa6f PB |
30252 | configure-stage1-ld: |
30253 | @$(MAKE) stage1-start | |
30254 | @[ -f ld/Makefile ] && exit 0 || : ; \ | |
72b2455a PB |
30255 | r=`${PWD_COMMAND}`; export r; \ |
30256 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
30257 | $(HOST_EXPORTS) \ | |
30258 | echo Configuring stage 1 in ld ; \ | |
b00612cc | 30259 | cd $(HOST_SUBDIR)/ld || exit 1; \ |
72b2455a | 30260 | case $(srcdir) in \ |
b00612cc PB |
30261 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
30262 | *) topdir=`echo $(HOST_SUBDIR)/ld/ | \ | |
30263 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
72b2455a | 30264 | esac; \ |
b00612cc PB |
30265 | srcdiroption="--srcdir=$${topdir}/ld"; \ |
30266 | libsrcdir="$$s/ld"; \ | |
72b2455a PB |
30267 | $(SHELL) $${libsrcdir}/configure \ |
30268 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 30269 | --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)" |
72b2455a PB |
30270 | |
30271 | maybe-all-stage1-ld: all-stage1-ld | |
30272 | all-stage1-ld: configure-stage1-ld | |
9cb3fa6f | 30273 | @$(MAKE) stage1-start |
72b2455a PB |
30274 | @r=`${PWD_COMMAND}`; export r; \ |
30275 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
30276 | $(HOST_EXPORTS) \ | |
b00612cc | 30277 | cd $(HOST_SUBDIR)/ld && \ |
72b2455a | 30278 | $(MAKE) $(FLAGS_TO_PASS) \ |
9cb3fa6f | 30279 | CFLAGS="$(STAGE1_CFLAGS)" |
0df3d27f PB |
30280 | |
30281 | maybe-clean-stage1-ld: clean-stage1-ld | |
30282 | clean-stage1-ld: | |
30283 | @[ -f ld/Makefile ] || [ -f stage1-ld/Makefile ] \ | |
30284 | || exit 0 ; \ | |
30285 | [ -f ld/Makefile ] || $(MAKE) stage1-start ; \ | |
b00612cc | 30286 | cd $(HOST_SUBDIR)/ld && \ |
0df3d27f PB |
30287 | $(MAKE) $(FLAGS_TO_PASS) \ |
30288 | CFLAGS="$(STAGE1_CFLAGS)" clean | |
72b2455a PB |
30289 | @endif ld-bootstrap |
30290 | ||
0df3d27f | 30291 | |
9cb3fa6f PB |
30292 | .PHONY: configure-stage1-libcpp maybe-configure-stage1-libcpp |
30293 | .PHONY: all-stage1-libcpp maybe-all-stage1-libcpp | |
0df3d27f | 30294 | .PHONY: clean-stage1-libcpp maybe-clean-stage1-libcpp |
9cb3fa6f | 30295 | |
72b2455a PB |
30296 | maybe-configure-stage1-libcpp: |
30297 | maybe-all-stage1-libcpp: | |
0df3d27f | 30298 | maybe-clean-stage1-libcpp: |
72b2455a PB |
30299 | |
30300 | @if libcpp-bootstrap | |
30301 | maybe-configure-stage1-libcpp: configure-stage1-libcpp | |
9cb3fa6f PB |
30302 | configure-stage1-libcpp: |
30303 | @$(MAKE) stage1-start | |
30304 | @[ -f libcpp/Makefile ] && exit 0 || : ; \ | |
72b2455a PB |
30305 | r=`${PWD_COMMAND}`; export r; \ |
30306 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
30307 | $(HOST_EXPORTS) \ | |
30308 | echo Configuring stage 1 in libcpp ; \ | |
b00612cc | 30309 | cd $(HOST_SUBDIR)/libcpp || exit 1; \ |
72b2455a | 30310 | case $(srcdir) in \ |
b00612cc PB |
30311 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
30312 | *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \ | |
30313 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
72b2455a | 30314 | esac; \ |
b00612cc PB |
30315 | srcdiroption="--srcdir=$${topdir}/libcpp"; \ |
30316 | libsrcdir="$$s/libcpp"; \ | |
72b2455a PB |
30317 | $(SHELL) $${libsrcdir}/configure \ |
30318 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 30319 | --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)" |
72b2455a PB |
30320 | |
30321 | maybe-all-stage1-libcpp: all-stage1-libcpp | |
30322 | all-stage1-libcpp: configure-stage1-libcpp | |
9cb3fa6f | 30323 | @$(MAKE) stage1-start |
72b2455a PB |
30324 | @r=`${PWD_COMMAND}`; export r; \ |
30325 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
30326 | $(HOST_EXPORTS) \ | |
b00612cc | 30327 | cd $(HOST_SUBDIR)/libcpp && \ |
72b2455a | 30328 | $(MAKE) $(FLAGS_TO_PASS) \ |
9cb3fa6f | 30329 | CFLAGS="$(STAGE1_CFLAGS)" |
0df3d27f PB |
30330 | |
30331 | maybe-clean-stage1-libcpp: clean-stage1-libcpp | |
30332 | clean-stage1-libcpp: | |
30333 | @[ -f libcpp/Makefile ] || [ -f stage1-libcpp/Makefile ] \ | |
30334 | || exit 0 ; \ | |
30335 | [ -f libcpp/Makefile ] || $(MAKE) stage1-start ; \ | |
b00612cc | 30336 | cd $(HOST_SUBDIR)/libcpp && \ |
0df3d27f PB |
30337 | $(MAKE) $(FLAGS_TO_PASS) \ |
30338 | CFLAGS="$(STAGE1_CFLAGS)" clean | |
72b2455a PB |
30339 | @endif libcpp-bootstrap |
30340 | ||
0df3d27f | 30341 | |
9cb3fa6f PB |
30342 | .PHONY: configure-stage1-libiberty maybe-configure-stage1-libiberty |
30343 | .PHONY: all-stage1-libiberty maybe-all-stage1-libiberty | |
0df3d27f | 30344 | .PHONY: clean-stage1-libiberty maybe-clean-stage1-libiberty |
9cb3fa6f | 30345 | |
72b2455a PB |
30346 | maybe-configure-stage1-libiberty: |
30347 | maybe-all-stage1-libiberty: | |
0df3d27f | 30348 | maybe-clean-stage1-libiberty: |
72b2455a PB |
30349 | |
30350 | @if libiberty-bootstrap | |
30351 | maybe-configure-stage1-libiberty: configure-stage1-libiberty | |
9cb3fa6f PB |
30352 | configure-stage1-libiberty: |
30353 | @$(MAKE) stage1-start | |
30354 | @[ -f libiberty/Makefile ] && exit 0 || : ; \ | |
72b2455a PB |
30355 | r=`${PWD_COMMAND}`; export r; \ |
30356 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
30357 | $(HOST_EXPORTS) \ | |
30358 | echo Configuring stage 1 in libiberty ; \ | |
b00612cc | 30359 | cd $(HOST_SUBDIR)/libiberty || exit 1; \ |
72b2455a | 30360 | case $(srcdir) in \ |
b00612cc PB |
30361 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
30362 | *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \ | |
30363 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
72b2455a | 30364 | esac; \ |
b00612cc PB |
30365 | srcdiroption="--srcdir=$${topdir}/libiberty"; \ |
30366 | libsrcdir="$$s/libiberty"; \ | |
72b2455a PB |
30367 | $(SHELL) $${libsrcdir}/configure \ |
30368 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 30369 | --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)" |
72b2455a PB |
30370 | |
30371 | maybe-all-stage1-libiberty: all-stage1-libiberty | |
30372 | all-stage1-libiberty: configure-stage1-libiberty | |
9cb3fa6f | 30373 | @$(MAKE) stage1-start |
72b2455a PB |
30374 | @r=`${PWD_COMMAND}`; export r; \ |
30375 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
30376 | $(HOST_EXPORTS) \ | |
b00612cc | 30377 | cd $(HOST_SUBDIR)/libiberty && \ |
72b2455a | 30378 | $(MAKE) $(FLAGS_TO_PASS) \ |
9cb3fa6f | 30379 | CFLAGS="$(STAGE1_CFLAGS)" |
0df3d27f PB |
30380 | |
30381 | maybe-clean-stage1-libiberty: clean-stage1-libiberty | |
30382 | clean-stage1-libiberty: | |
30383 | @[ -f libiberty/Makefile ] || [ -f stage1-libiberty/Makefile ] \ | |
30384 | || exit 0 ; \ | |
30385 | [ -f libiberty/Makefile ] || $(MAKE) stage1-start ; \ | |
b00612cc | 30386 | cd $(HOST_SUBDIR)/libiberty && \ |
0df3d27f PB |
30387 | $(MAKE) $(FLAGS_TO_PASS) \ |
30388 | CFLAGS="$(STAGE1_CFLAGS)" clean | |
72b2455a PB |
30389 | @endif libiberty-bootstrap |
30390 | ||
0df3d27f | 30391 | |
9cb3fa6f PB |
30392 | .PHONY: configure-stage1-zlib maybe-configure-stage1-zlib |
30393 | .PHONY: all-stage1-zlib maybe-all-stage1-zlib | |
0df3d27f | 30394 | .PHONY: clean-stage1-zlib maybe-clean-stage1-zlib |
9cb3fa6f | 30395 | |
72b2455a PB |
30396 | maybe-configure-stage1-zlib: |
30397 | maybe-all-stage1-zlib: | |
0df3d27f | 30398 | maybe-clean-stage1-zlib: |
72b2455a PB |
30399 | |
30400 | @if zlib-bootstrap | |
30401 | maybe-configure-stage1-zlib: configure-stage1-zlib | |
9cb3fa6f PB |
30402 | configure-stage1-zlib: |
30403 | @$(MAKE) stage1-start | |
30404 | @[ -f zlib/Makefile ] && exit 0 || : ; \ | |
72b2455a PB |
30405 | r=`${PWD_COMMAND}`; export r; \ |
30406 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
30407 | $(HOST_EXPORTS) \ | |
30408 | echo Configuring stage 1 in zlib ; \ | |
b00612cc | 30409 | cd $(HOST_SUBDIR)/zlib || exit 1; \ |
72b2455a | 30410 | case $(srcdir) in \ |
b00612cc PB |
30411 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
30412 | *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \ | |
30413 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
72b2455a | 30414 | esac; \ |
b00612cc PB |
30415 | srcdiroption="--srcdir=$${topdir}/zlib"; \ |
30416 | libsrcdir="$$s/zlib"; \ | |
72b2455a PB |
30417 | $(SHELL) $${libsrcdir}/configure \ |
30418 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 30419 | --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)" |
72b2455a PB |
30420 | |
30421 | maybe-all-stage1-zlib: all-stage1-zlib | |
30422 | all-stage1-zlib: configure-stage1-zlib | |
9cb3fa6f | 30423 | @$(MAKE) stage1-start |
72b2455a PB |
30424 | @r=`${PWD_COMMAND}`; export r; \ |
30425 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
30426 | $(HOST_EXPORTS) \ | |
b00612cc | 30427 | cd $(HOST_SUBDIR)/zlib && \ |
72b2455a | 30428 | $(MAKE) $(FLAGS_TO_PASS) \ |
9cb3fa6f | 30429 | CFLAGS="$(STAGE1_CFLAGS)" |
0df3d27f PB |
30430 | |
30431 | maybe-clean-stage1-zlib: clean-stage1-zlib | |
30432 | clean-stage1-zlib: | |
30433 | @[ -f zlib/Makefile ] || [ -f stage1-zlib/Makefile ] \ | |
30434 | || exit 0 ; \ | |
30435 | [ -f zlib/Makefile ] || $(MAKE) stage1-start ; \ | |
b00612cc | 30436 | cd $(HOST_SUBDIR)/zlib && \ |
0df3d27f PB |
30437 | $(MAKE) $(FLAGS_TO_PASS) \ |
30438 | CFLAGS="$(STAGE1_CFLAGS)" clean | |
72b2455a PB |
30439 | @endif zlib-bootstrap |
30440 | ||
30441 | ||
0df3d27f | 30442 | |
72b2455a PB |
30443 | # FIXME: Will not need to be conditional when toplevel bootstrap is the |
30444 | # only possibility, but now it conflicts with no-bootstrap rules | |
30445 | @if gcc-bootstrap | |
30446 | ||
30447 | ||
30448 | ||
30449 | ||
0df3d27f | 30450 | # Rules to wipe a stage and all the following ones, also used for cleanstrap |
72b2455a | 30451 | |
0df3d27f | 30452 | .PHONY: distclean-stage1 |
72b2455a PB |
30453 | distclean-stage1:: |
30454 | [ -f stage_current ] && $(MAKE) `cat stage_current`-end || : | |
9cb3fa6f | 30455 | rm -rf stage1-* |
72b2455a PB |
30456 | |
30457 | ||
30458 | @endif gcc-bootstrap | |
30459 | ||
30460 | ||
30461 | .PHONY: stage2-start stage2-end | |
30462 | ||
30463 | stage2-start:: | |
9cb3fa6f | 30464 | @[ -f stage_current ] && $(MAKE) `cat stage_current`-end || : ; \ |
72b2455a | 30465 | echo stage2 > stage_current ; \ |
b00612cc PB |
30466 | echo stage2 > stage_last; \ |
30467 | $(mkinstalldirs) $(HOST_SUBDIR) | |
72b2455a | 30468 | @if bfd |
b00612cc PB |
30469 | @cd $(HOST_SUBDIR); [ -d stage2-bfd ] || \ |
30470 | mkdir stage2-bfd; \ | |
30471 | set stage2-bfd bfd ; \ | |
30472 | @CREATE_LINK_TO_DIR@ ; \ | |
30473 | set stage1-bfd prev-bfd ; \ | |
30474 | @CREATE_LINK_TO_DIR@ | |
72b2455a PB |
30475 | @endif bfd |
30476 | @if opcodes | |
b00612cc PB |
30477 | @cd $(HOST_SUBDIR); [ -d stage2-opcodes ] || \ |
30478 | mkdir stage2-opcodes; \ | |
30479 | set stage2-opcodes opcodes ; \ | |
30480 | @CREATE_LINK_TO_DIR@ ; \ | |
30481 | set stage1-opcodes prev-opcodes ; \ | |
30482 | @CREATE_LINK_TO_DIR@ | |
72b2455a PB |
30483 | @endif opcodes |
30484 | @if binutils | |
b00612cc PB |
30485 | @cd $(HOST_SUBDIR); [ -d stage2-binutils ] || \ |
30486 | mkdir stage2-binutils; \ | |
30487 | set stage2-binutils binutils ; \ | |
30488 | @CREATE_LINK_TO_DIR@ ; \ | |
30489 | set stage1-binutils prev-binutils ; \ | |
30490 | @CREATE_LINK_TO_DIR@ | |
72b2455a PB |
30491 | @endif binutils |
30492 | @if gas | |
b00612cc PB |
30493 | @cd $(HOST_SUBDIR); [ -d stage2-gas ] || \ |
30494 | mkdir stage2-gas; \ | |
30495 | set stage2-gas gas ; \ | |
30496 | @CREATE_LINK_TO_DIR@ ; \ | |
30497 | set stage1-gas prev-gas ; \ | |
30498 | @CREATE_LINK_TO_DIR@ | |
72b2455a PB |
30499 | @endif gas |
30500 | @if gcc | |
b00612cc PB |
30501 | @cd $(HOST_SUBDIR); [ -d stage2-gcc ] || \ |
30502 | mkdir stage2-gcc; \ | |
30503 | set stage2-gcc gcc ; \ | |
30504 | @CREATE_LINK_TO_DIR@ ; \ | |
30505 | set stage1-gcc prev-gcc ; \ | |
30506 | @CREATE_LINK_TO_DIR@ | |
72b2455a PB |
30507 | @endif gcc |
30508 | @if intl | |
b00612cc PB |
30509 | @cd $(HOST_SUBDIR); [ -d stage2-intl ] || \ |
30510 | mkdir stage2-intl; \ | |
30511 | set stage2-intl intl ; \ | |
30512 | @CREATE_LINK_TO_DIR@ ; \ | |
30513 | set stage1-intl prev-intl ; \ | |
30514 | @CREATE_LINK_TO_DIR@ | |
72b2455a PB |
30515 | @endif intl |
30516 | @if ld | |
b00612cc PB |
30517 | @cd $(HOST_SUBDIR); [ -d stage2-ld ] || \ |
30518 | mkdir stage2-ld; \ | |
30519 | set stage2-ld ld ; \ | |
30520 | @CREATE_LINK_TO_DIR@ ; \ | |
30521 | set stage1-ld prev-ld ; \ | |
30522 | @CREATE_LINK_TO_DIR@ | |
72b2455a PB |
30523 | @endif ld |
30524 | @if libcpp | |
b00612cc PB |
30525 | @cd $(HOST_SUBDIR); [ -d stage2-libcpp ] || \ |
30526 | mkdir stage2-libcpp; \ | |
30527 | set stage2-libcpp libcpp ; \ | |
30528 | @CREATE_LINK_TO_DIR@ ; \ | |
30529 | set stage1-libcpp prev-libcpp ; \ | |
30530 | @CREATE_LINK_TO_DIR@ | |
72b2455a | 30531 | @endif libcpp |
72b2455a | 30532 | @if libiberty |
b00612cc PB |
30533 | @cd $(HOST_SUBDIR); [ -d stage2-libiberty ] || \ |
30534 | mkdir stage2-libiberty; \ | |
30535 | set stage2-libiberty libiberty ; \ | |
30536 | @CREATE_LINK_TO_DIR@ ; \ | |
30537 | set stage1-libiberty prev-libiberty ; \ | |
30538 | @CREATE_LINK_TO_DIR@ | |
72b2455a PB |
30539 | @endif libiberty |
30540 | @if zlib | |
b00612cc PB |
30541 | @cd $(HOST_SUBDIR); [ -d stage2-zlib ] || \ |
30542 | mkdir stage2-zlib; \ | |
30543 | set stage2-zlib zlib ; \ | |
30544 | @CREATE_LINK_TO_DIR@ ; \ | |
30545 | set stage1-zlib prev-zlib ; \ | |
30546 | @CREATE_LINK_TO_DIR@ | |
72b2455a PB |
30547 | @endif zlib |
30548 | ||
30549 | stage2-end:: | |
9cb3fa6f | 30550 | @rm -f stage_current |
72b2455a | 30551 | @if bfd |
b00612cc PB |
30552 | @cd $(HOST_SUBDIR); set bfd stage2-bfd ; \ |
30553 | @UNDO_LINK_TO_DIR@ ; \ | |
30554 | set prev-bfd stage1-bfd ; \ | |
30555 | @UNDO_LINK_TO_DIR@ | |
72b2455a PB |
30556 | @endif bfd |
30557 | @if opcodes | |
b00612cc PB |
30558 | @cd $(HOST_SUBDIR); set opcodes stage2-opcodes ; \ |
30559 | @UNDO_LINK_TO_DIR@ ; \ | |
30560 | set prev-opcodes stage1-opcodes ; \ | |
30561 | @UNDO_LINK_TO_DIR@ | |
72b2455a PB |
30562 | @endif opcodes |
30563 | @if binutils | |
b00612cc PB |
30564 | @cd $(HOST_SUBDIR); set binutils stage2-binutils ; \ |
30565 | @UNDO_LINK_TO_DIR@ ; \ | |
30566 | set prev-binutils stage1-binutils ; \ | |
30567 | @UNDO_LINK_TO_DIR@ | |
72b2455a PB |
30568 | @endif binutils |
30569 | @if gas | |
b00612cc PB |
30570 | @cd $(HOST_SUBDIR); set gas stage2-gas ; \ |
30571 | @UNDO_LINK_TO_DIR@ ; \ | |
30572 | set prev-gas stage1-gas ; \ | |
30573 | @UNDO_LINK_TO_DIR@ | |
72b2455a PB |
30574 | @endif gas |
30575 | @if gcc | |
b00612cc PB |
30576 | @cd $(HOST_SUBDIR); set gcc stage2-gcc ; \ |
30577 | @UNDO_LINK_TO_DIR@ ; \ | |
30578 | set prev-gcc stage1-gcc ; \ | |
30579 | @UNDO_LINK_TO_DIR@ | |
72b2455a PB |
30580 | @endif gcc |
30581 | @if intl | |
b00612cc PB |
30582 | @cd $(HOST_SUBDIR); set intl stage2-intl ; \ |
30583 | @UNDO_LINK_TO_DIR@ ; \ | |
30584 | set prev-intl stage1-intl ; \ | |
30585 | @UNDO_LINK_TO_DIR@ | |
72b2455a PB |
30586 | @endif intl |
30587 | @if ld | |
b00612cc PB |
30588 | @cd $(HOST_SUBDIR); set ld stage2-ld ; \ |
30589 | @UNDO_LINK_TO_DIR@ ; \ | |
30590 | set prev-ld stage1-ld ; \ | |
30591 | @UNDO_LINK_TO_DIR@ | |
72b2455a PB |
30592 | @endif ld |
30593 | @if libcpp | |
b00612cc PB |
30594 | @cd $(HOST_SUBDIR); set libcpp stage2-libcpp ; \ |
30595 | @UNDO_LINK_TO_DIR@ ; \ | |
30596 | set prev-libcpp stage1-libcpp ; \ | |
30597 | @UNDO_LINK_TO_DIR@ | |
72b2455a | 30598 | @endif libcpp |
72b2455a | 30599 | @if libiberty |
b00612cc PB |
30600 | @cd $(HOST_SUBDIR); set libiberty stage2-libiberty ; \ |
30601 | @UNDO_LINK_TO_DIR@ ; \ | |
30602 | set prev-libiberty stage1-libiberty ; \ | |
30603 | @UNDO_LINK_TO_DIR@ | |
72b2455a PB |
30604 | @endif libiberty |
30605 | @if zlib | |
b00612cc PB |
30606 | @cd $(HOST_SUBDIR); set zlib stage2-zlib ; \ |
30607 | @UNDO_LINK_TO_DIR@ ; \ | |
30608 | set prev-zlib stage1-zlib ; \ | |
30609 | @UNDO_LINK_TO_DIR@ | |
72b2455a PB |
30610 | @endif zlib |
30611 | ||
30612 | # Bubble a bugfix through all the stages up to stage 2. They | |
30613 | # are remade, but not reconfigured. The next stage (if any) will not | |
30614 | # be reconfigured as well. | |
30615 | .PHONY: stage2-bubble | |
30616 | stage2-bubble:: stage1-bubble | |
9cb3fa6f PB |
30617 | @if test -f stage2-lean || test -f stage1-lean ; then \ |
30618 | echo Skipping rebuild of stage2 ; \ | |
30619 | else \ | |
0df3d27f | 30620 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) NOTPARALLEL= all-stage2; \ |
9cb3fa6f | 30621 | fi |
72b2455a | 30622 | |
0df3d27f | 30623 | .PHONY: all-stage2 clean-stage2 |
72b2455a PB |
30624 | all-stage2: \ |
30625 | maybe-all-stage2-bfd \ | |
30626 | maybe-all-stage2-opcodes \ | |
d3ed111c | 30627 | maybe-all-stage2-binutils \ |
72b2455a PB |
30628 | maybe-all-stage2-gas \ |
30629 | maybe-all-stage2-gcc \ | |
30630 | maybe-all-stage2-intl \ | |
30631 | maybe-all-stage2-ld \ | |
30632 | maybe-all-stage2-libcpp \ | |
72b2455a | 30633 | maybe-all-stage2-libiberty \ |
b00612cc | 30634 | maybe-all-stage2-zlib |
72b2455a | 30635 | |
0df3d27f PB |
30636 | do-clean: clean-stage2 |
30637 | clean-stage2: \ | |
30638 | maybe-clean-stage2-bfd \ | |
30639 | maybe-clean-stage2-opcodes \ | |
d3ed111c | 30640 | maybe-clean-stage2-binutils \ |
0df3d27f PB |
30641 | maybe-clean-stage2-gas \ |
30642 | maybe-clean-stage2-gcc \ | |
30643 | maybe-clean-stage2-intl \ | |
30644 | maybe-clean-stage2-ld \ | |
30645 | maybe-clean-stage2-libcpp \ | |
0df3d27f | 30646 | maybe-clean-stage2-libiberty \ |
b00612cc | 30647 | maybe-clean-stage2-zlib |
0df3d27f | 30648 | |
72b2455a | 30649 | |
9cb3fa6f PB |
30650 | .PHONY: configure-stage2-bfd maybe-configure-stage2-bfd |
30651 | .PHONY: all-stage2-bfd maybe-all-stage2-bfd | |
0df3d27f | 30652 | .PHONY: clean-stage2-bfd maybe-clean-stage2-bfd |
9cb3fa6f | 30653 | |
72b2455a PB |
30654 | maybe-configure-stage2-bfd: |
30655 | maybe-all-stage2-bfd: | |
0df3d27f | 30656 | maybe-clean-stage2-bfd: |
72b2455a PB |
30657 | |
30658 | @if bfd-bootstrap | |
30659 | maybe-configure-stage2-bfd: configure-stage2-bfd | |
9cb3fa6f PB |
30660 | configure-stage2-bfd: |
30661 | @$(MAKE) stage2-start | |
30662 | @[ -f bfd/Makefile ] && exit 0 || : ; \ | |
72b2455a PB |
30663 | r=`${PWD_COMMAND}`; export r; \ |
30664 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
30665 | $(STAGE_HOST_EXPORTS) \ | |
30666 | echo Configuring stage 2 in bfd ; \ | |
b00612cc | 30667 | cd $(HOST_SUBDIR)/bfd || exit 1; \ |
72b2455a | 30668 | case $(srcdir) in \ |
b00612cc PB |
30669 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
30670 | *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \ | |
30671 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
72b2455a | 30672 | esac; \ |
b00612cc PB |
30673 | srcdiroption="--srcdir=$${topdir}/bfd"; \ |
30674 | libsrcdir="$$s/bfd"; \ | |
72b2455a PB |
30675 | $(SHELL) $${libsrcdir}/configure \ |
30676 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 30677 | @stage2_werror_flag@ |
72b2455a PB |
30678 | |
30679 | maybe-all-stage2-bfd: all-stage2-bfd | |
30680 | all-stage2-bfd: configure-stage2-bfd | |
9cb3fa6f | 30681 | @$(MAKE) stage2-start |
72b2455a PB |
30682 | @r=`${PWD_COMMAND}`; export r; \ |
30683 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
30684 | $(STAGE_HOST_EXPORTS) \ | |
b00612cc | 30685 | cd $(HOST_SUBDIR)/bfd && \ |
72b2455a PB |
30686 | $(MAKE) $(FLAGS_TO_PASS) \ |
30687 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
9cb3fa6f | 30688 | |
0df3d27f PB |
30689 | |
30690 | maybe-clean-stage2-bfd: clean-stage2-bfd | |
30691 | clean-stage2-bfd: | |
30692 | @[ -f bfd/Makefile ] || [ -f stage2-bfd/Makefile ] \ | |
30693 | || exit 0 ; \ | |
30694 | [ -f bfd/Makefile ] || $(MAKE) stage2-start ; \ | |
b00612cc | 30695 | cd $(HOST_SUBDIR)/bfd && \ |
0df3d27f PB |
30696 | $(MAKE) $(FLAGS_TO_PASS) \ |
30697 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
30698 | clean | |
72b2455a PB |
30699 | @endif bfd-bootstrap |
30700 | ||
0df3d27f | 30701 | |
9cb3fa6f PB |
30702 | .PHONY: configure-stage2-opcodes maybe-configure-stage2-opcodes |
30703 | .PHONY: all-stage2-opcodes maybe-all-stage2-opcodes | |
0df3d27f | 30704 | .PHONY: clean-stage2-opcodes maybe-clean-stage2-opcodes |
9cb3fa6f | 30705 | |
72b2455a PB |
30706 | maybe-configure-stage2-opcodes: |
30707 | maybe-all-stage2-opcodes: | |
0df3d27f | 30708 | maybe-clean-stage2-opcodes: |
72b2455a PB |
30709 | |
30710 | @if opcodes-bootstrap | |
30711 | maybe-configure-stage2-opcodes: configure-stage2-opcodes | |
9cb3fa6f PB |
30712 | configure-stage2-opcodes: |
30713 | @$(MAKE) stage2-start | |
30714 | @[ -f opcodes/Makefile ] && exit 0 || : ; \ | |
72b2455a PB |
30715 | r=`${PWD_COMMAND}`; export r; \ |
30716 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
30717 | $(STAGE_HOST_EXPORTS) \ | |
30718 | echo Configuring stage 2 in opcodes ; \ | |
b00612cc | 30719 | cd $(HOST_SUBDIR)/opcodes || exit 1; \ |
72b2455a | 30720 | case $(srcdir) in \ |
b00612cc PB |
30721 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
30722 | *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \ | |
30723 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
72b2455a | 30724 | esac; \ |
b00612cc PB |
30725 | srcdiroption="--srcdir=$${topdir}/opcodes"; \ |
30726 | libsrcdir="$$s/opcodes"; \ | |
72b2455a PB |
30727 | $(SHELL) $${libsrcdir}/configure \ |
30728 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 30729 | @stage2_werror_flag@ |
72b2455a PB |
30730 | |
30731 | maybe-all-stage2-opcodes: all-stage2-opcodes | |
30732 | all-stage2-opcodes: configure-stage2-opcodes | |
9cb3fa6f | 30733 | @$(MAKE) stage2-start |
72b2455a PB |
30734 | @r=`${PWD_COMMAND}`; export r; \ |
30735 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
30736 | $(STAGE_HOST_EXPORTS) \ | |
b00612cc | 30737 | cd $(HOST_SUBDIR)/opcodes && \ |
72b2455a PB |
30738 | $(MAKE) $(FLAGS_TO_PASS) \ |
30739 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
9cb3fa6f | 30740 | |
0df3d27f PB |
30741 | |
30742 | maybe-clean-stage2-opcodes: clean-stage2-opcodes | |
30743 | clean-stage2-opcodes: | |
30744 | @[ -f opcodes/Makefile ] || [ -f stage2-opcodes/Makefile ] \ | |
30745 | || exit 0 ; \ | |
30746 | [ -f opcodes/Makefile ] || $(MAKE) stage2-start ; \ | |
b00612cc | 30747 | cd $(HOST_SUBDIR)/opcodes && \ |
0df3d27f PB |
30748 | $(MAKE) $(FLAGS_TO_PASS) \ |
30749 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
30750 | clean | |
72b2455a PB |
30751 | @endif opcodes-bootstrap |
30752 | ||
0df3d27f | 30753 | |
9cb3fa6f PB |
30754 | .PHONY: configure-stage2-binutils maybe-configure-stage2-binutils |
30755 | .PHONY: all-stage2-binutils maybe-all-stage2-binutils | |
0df3d27f | 30756 | .PHONY: clean-stage2-binutils maybe-clean-stage2-binutils |
9cb3fa6f | 30757 | |
72b2455a PB |
30758 | maybe-configure-stage2-binutils: |
30759 | maybe-all-stage2-binutils: | |
0df3d27f | 30760 | maybe-clean-stage2-binutils: |
72b2455a PB |
30761 | |
30762 | @if binutils-bootstrap | |
30763 | maybe-configure-stage2-binutils: configure-stage2-binutils | |
9cb3fa6f PB |
30764 | configure-stage2-binutils: |
30765 | @$(MAKE) stage2-start | |
30766 | @[ -f binutils/Makefile ] && exit 0 || : ; \ | |
72b2455a PB |
30767 | r=`${PWD_COMMAND}`; export r; \ |
30768 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
30769 | $(STAGE_HOST_EXPORTS) \ | |
30770 | echo Configuring stage 2 in binutils ; \ | |
b00612cc | 30771 | cd $(HOST_SUBDIR)/binutils || exit 1; \ |
72b2455a | 30772 | case $(srcdir) in \ |
b00612cc PB |
30773 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
30774 | *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \ | |
30775 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
72b2455a | 30776 | esac; \ |
b00612cc PB |
30777 | srcdiroption="--srcdir=$${topdir}/binutils"; \ |
30778 | libsrcdir="$$s/binutils"; \ | |
72b2455a PB |
30779 | $(SHELL) $${libsrcdir}/configure \ |
30780 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 30781 | @stage2_werror_flag@ |
72b2455a PB |
30782 | |
30783 | maybe-all-stage2-binutils: all-stage2-binutils | |
30784 | all-stage2-binutils: configure-stage2-binutils | |
9cb3fa6f | 30785 | @$(MAKE) stage2-start |
72b2455a PB |
30786 | @r=`${PWD_COMMAND}`; export r; \ |
30787 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
30788 | $(STAGE_HOST_EXPORTS) \ | |
b00612cc | 30789 | cd $(HOST_SUBDIR)/binutils && \ |
72b2455a PB |
30790 | $(MAKE) $(FLAGS_TO_PASS) \ |
30791 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
9cb3fa6f | 30792 | |
0df3d27f PB |
30793 | |
30794 | maybe-clean-stage2-binutils: clean-stage2-binutils | |
30795 | clean-stage2-binutils: | |
30796 | @[ -f binutils/Makefile ] || [ -f stage2-binutils/Makefile ] \ | |
30797 | || exit 0 ; \ | |
30798 | [ -f binutils/Makefile ] || $(MAKE) stage2-start ; \ | |
b00612cc | 30799 | cd $(HOST_SUBDIR)/binutils && \ |
0df3d27f PB |
30800 | $(MAKE) $(FLAGS_TO_PASS) \ |
30801 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
30802 | clean | |
72b2455a PB |
30803 | @endif binutils-bootstrap |
30804 | ||
0df3d27f | 30805 | |
9cb3fa6f PB |
30806 | .PHONY: configure-stage2-gas maybe-configure-stage2-gas |
30807 | .PHONY: all-stage2-gas maybe-all-stage2-gas | |
0df3d27f | 30808 | .PHONY: clean-stage2-gas maybe-clean-stage2-gas |
9cb3fa6f | 30809 | |
72b2455a PB |
30810 | maybe-configure-stage2-gas: |
30811 | maybe-all-stage2-gas: | |
0df3d27f | 30812 | maybe-clean-stage2-gas: |
72b2455a PB |
30813 | |
30814 | @if gas-bootstrap | |
30815 | maybe-configure-stage2-gas: configure-stage2-gas | |
9cb3fa6f PB |
30816 | configure-stage2-gas: |
30817 | @$(MAKE) stage2-start | |
30818 | @[ -f gas/Makefile ] && exit 0 || : ; \ | |
72b2455a PB |
30819 | r=`${PWD_COMMAND}`; export r; \ |
30820 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
30821 | $(STAGE_HOST_EXPORTS) \ | |
30822 | echo Configuring stage 2 in gas ; \ | |
b00612cc | 30823 | cd $(HOST_SUBDIR)/gas || exit 1; \ |
72b2455a | 30824 | case $(srcdir) in \ |
b00612cc PB |
30825 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
30826 | *) topdir=`echo $(HOST_SUBDIR)/gas/ | \ | |
30827 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
72b2455a | 30828 | esac; \ |
b00612cc PB |
30829 | srcdiroption="--srcdir=$${topdir}/gas"; \ |
30830 | libsrcdir="$$s/gas"; \ | |
72b2455a PB |
30831 | $(SHELL) $${libsrcdir}/configure \ |
30832 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 30833 | @stage2_werror_flag@ |
72b2455a PB |
30834 | |
30835 | maybe-all-stage2-gas: all-stage2-gas | |
30836 | all-stage2-gas: configure-stage2-gas | |
9cb3fa6f | 30837 | @$(MAKE) stage2-start |
72b2455a PB |
30838 | @r=`${PWD_COMMAND}`; export r; \ |
30839 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
30840 | $(STAGE_HOST_EXPORTS) \ | |
b00612cc | 30841 | cd $(HOST_SUBDIR)/gas && \ |
72b2455a PB |
30842 | $(MAKE) $(FLAGS_TO_PASS) \ |
30843 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
9cb3fa6f | 30844 | |
0df3d27f PB |
30845 | |
30846 | maybe-clean-stage2-gas: clean-stage2-gas | |
30847 | clean-stage2-gas: | |
30848 | @[ -f gas/Makefile ] || [ -f stage2-gas/Makefile ] \ | |
30849 | || exit 0 ; \ | |
30850 | [ -f gas/Makefile ] || $(MAKE) stage2-start ; \ | |
b00612cc | 30851 | cd $(HOST_SUBDIR)/gas && \ |
0df3d27f PB |
30852 | $(MAKE) $(FLAGS_TO_PASS) \ |
30853 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
30854 | clean | |
72b2455a PB |
30855 | @endif gas-bootstrap |
30856 | ||
0df3d27f | 30857 | |
9cb3fa6f PB |
30858 | .PHONY: configure-stage2-gcc maybe-configure-stage2-gcc |
30859 | .PHONY: all-stage2-gcc maybe-all-stage2-gcc | |
0df3d27f | 30860 | .PHONY: clean-stage2-gcc maybe-clean-stage2-gcc |
9cb3fa6f | 30861 | |
72b2455a PB |
30862 | maybe-configure-stage2-gcc: |
30863 | maybe-all-stage2-gcc: | |
0df3d27f | 30864 | maybe-clean-stage2-gcc: |
72b2455a PB |
30865 | |
30866 | @if gcc-bootstrap | |
30867 | maybe-configure-stage2-gcc: configure-stage2-gcc | |
9cb3fa6f PB |
30868 | configure-stage2-gcc: |
30869 | @$(MAKE) stage2-start | |
30870 | @[ -f gcc/Makefile ] && exit 0 || : ; \ | |
72b2455a PB |
30871 | r=`${PWD_COMMAND}`; export r; \ |
30872 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
30873 | $(STAGE_HOST_EXPORTS) \ | |
30874 | echo Configuring stage 2 in gcc ; \ | |
b00612cc | 30875 | cd $(HOST_SUBDIR)/gcc || exit 1; \ |
72b2455a | 30876 | case $(srcdir) in \ |
b00612cc PB |
30877 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
30878 | *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \ | |
30879 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
72b2455a | 30880 | esac; \ |
b00612cc PB |
30881 | srcdiroption="--srcdir=$${topdir}/gcc"; \ |
30882 | libsrcdir="$$s/gcc"; \ | |
72b2455a PB |
30883 | $(SHELL) $${libsrcdir}/configure \ |
30884 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 30885 | @stage2_werror_flag@ |
72b2455a PB |
30886 | |
30887 | maybe-all-stage2-gcc: all-stage2-gcc | |
30888 | all-stage2-gcc: configure-stage2-gcc | |
9cb3fa6f | 30889 | @$(MAKE) stage2-start |
72b2455a PB |
30890 | @r=`${PWD_COMMAND}`; export r; \ |
30891 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
30892 | $(STAGE_HOST_EXPORTS) \ | |
b00612cc | 30893 | cd $(HOST_SUBDIR)/gcc && \ |
72b2455a PB |
30894 | $(MAKE) $(FLAGS_TO_PASS) \ |
30895 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
9cb3fa6f | 30896 | $(EXTRA_GCC_FLAGS) |
0df3d27f PB |
30897 | |
30898 | maybe-clean-stage2-gcc: clean-stage2-gcc | |
30899 | clean-stage2-gcc: | |
30900 | @[ -f gcc/Makefile ] || [ -f stage2-gcc/Makefile ] \ | |
30901 | || exit 0 ; \ | |
30902 | [ -f gcc/Makefile ] || $(MAKE) stage2-start ; \ | |
b00612cc | 30903 | cd $(HOST_SUBDIR)/gcc && \ |
0df3d27f PB |
30904 | $(MAKE) $(FLAGS_TO_PASS) \ |
30905 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
30906 | $(EXTRA_GCC_FLAGS) clean | |
72b2455a PB |
30907 | @endif gcc-bootstrap |
30908 | ||
0df3d27f | 30909 | |
9cb3fa6f PB |
30910 | .PHONY: configure-stage2-intl maybe-configure-stage2-intl |
30911 | .PHONY: all-stage2-intl maybe-all-stage2-intl | |
0df3d27f | 30912 | .PHONY: clean-stage2-intl maybe-clean-stage2-intl |
9cb3fa6f | 30913 | |
72b2455a PB |
30914 | maybe-configure-stage2-intl: |
30915 | maybe-all-stage2-intl: | |
0df3d27f | 30916 | maybe-clean-stage2-intl: |
72b2455a PB |
30917 | |
30918 | @if intl-bootstrap | |
30919 | maybe-configure-stage2-intl: configure-stage2-intl | |
9cb3fa6f PB |
30920 | configure-stage2-intl: |
30921 | @$(MAKE) stage2-start | |
30922 | @[ -f intl/Makefile ] && exit 0 || : ; \ | |
72b2455a PB |
30923 | r=`${PWD_COMMAND}`; export r; \ |
30924 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
30925 | $(STAGE_HOST_EXPORTS) \ | |
30926 | echo Configuring stage 2 in intl ; \ | |
b00612cc | 30927 | cd $(HOST_SUBDIR)/intl || exit 1; \ |
72b2455a | 30928 | case $(srcdir) in \ |
b00612cc PB |
30929 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
30930 | *) topdir=`echo $(HOST_SUBDIR)/intl/ | \ | |
30931 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
72b2455a | 30932 | esac; \ |
b00612cc PB |
30933 | srcdiroption="--srcdir=$${topdir}/intl"; \ |
30934 | libsrcdir="$$s/intl"; \ | |
72b2455a PB |
30935 | $(SHELL) $${libsrcdir}/configure \ |
30936 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 30937 | @stage2_werror_flag@ |
72b2455a PB |
30938 | |
30939 | maybe-all-stage2-intl: all-stage2-intl | |
30940 | all-stage2-intl: configure-stage2-intl | |
9cb3fa6f | 30941 | @$(MAKE) stage2-start |
72b2455a PB |
30942 | @r=`${PWD_COMMAND}`; export r; \ |
30943 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
30944 | $(STAGE_HOST_EXPORTS) \ | |
b00612cc | 30945 | cd $(HOST_SUBDIR)/intl && \ |
72b2455a PB |
30946 | $(MAKE) $(FLAGS_TO_PASS) \ |
30947 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
9cb3fa6f | 30948 | |
0df3d27f PB |
30949 | |
30950 | maybe-clean-stage2-intl: clean-stage2-intl | |
30951 | clean-stage2-intl: | |
30952 | @[ -f intl/Makefile ] || [ -f stage2-intl/Makefile ] \ | |
30953 | || exit 0 ; \ | |
30954 | [ -f intl/Makefile ] || $(MAKE) stage2-start ; \ | |
b00612cc | 30955 | cd $(HOST_SUBDIR)/intl && \ |
0df3d27f PB |
30956 | $(MAKE) $(FLAGS_TO_PASS) \ |
30957 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
30958 | clean | |
72b2455a PB |
30959 | @endif intl-bootstrap |
30960 | ||
0df3d27f | 30961 | |
9cb3fa6f PB |
30962 | .PHONY: configure-stage2-ld maybe-configure-stage2-ld |
30963 | .PHONY: all-stage2-ld maybe-all-stage2-ld | |
0df3d27f | 30964 | .PHONY: clean-stage2-ld maybe-clean-stage2-ld |
9cb3fa6f | 30965 | |
72b2455a PB |
30966 | maybe-configure-stage2-ld: |
30967 | maybe-all-stage2-ld: | |
0df3d27f | 30968 | maybe-clean-stage2-ld: |
72b2455a PB |
30969 | |
30970 | @if ld-bootstrap | |
30971 | maybe-configure-stage2-ld: configure-stage2-ld | |
9cb3fa6f PB |
30972 | configure-stage2-ld: |
30973 | @$(MAKE) stage2-start | |
30974 | @[ -f ld/Makefile ] && exit 0 || : ; \ | |
72b2455a PB |
30975 | r=`${PWD_COMMAND}`; export r; \ |
30976 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
30977 | $(STAGE_HOST_EXPORTS) \ | |
30978 | echo Configuring stage 2 in ld ; \ | |
b00612cc | 30979 | cd $(HOST_SUBDIR)/ld || exit 1; \ |
72b2455a | 30980 | case $(srcdir) in \ |
b00612cc PB |
30981 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
30982 | *) topdir=`echo $(HOST_SUBDIR)/ld/ | \ | |
30983 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
72b2455a | 30984 | esac; \ |
b00612cc PB |
30985 | srcdiroption="--srcdir=$${topdir}/ld"; \ |
30986 | libsrcdir="$$s/ld"; \ | |
72b2455a PB |
30987 | $(SHELL) $${libsrcdir}/configure \ |
30988 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 30989 | @stage2_werror_flag@ |
72b2455a PB |
30990 | |
30991 | maybe-all-stage2-ld: all-stage2-ld | |
30992 | all-stage2-ld: configure-stage2-ld | |
9cb3fa6f | 30993 | @$(MAKE) stage2-start |
72b2455a PB |
30994 | @r=`${PWD_COMMAND}`; export r; \ |
30995 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
30996 | $(STAGE_HOST_EXPORTS) \ | |
b00612cc | 30997 | cd $(HOST_SUBDIR)/ld && \ |
72b2455a PB |
30998 | $(MAKE) $(FLAGS_TO_PASS) \ |
30999 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
9cb3fa6f | 31000 | |
0df3d27f PB |
31001 | |
31002 | maybe-clean-stage2-ld: clean-stage2-ld | |
31003 | clean-stage2-ld: | |
31004 | @[ -f ld/Makefile ] || [ -f stage2-ld/Makefile ] \ | |
31005 | || exit 0 ; \ | |
31006 | [ -f ld/Makefile ] || $(MAKE) stage2-start ; \ | |
b00612cc | 31007 | cd $(HOST_SUBDIR)/ld && \ |
0df3d27f PB |
31008 | $(MAKE) $(FLAGS_TO_PASS) \ |
31009 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
31010 | clean | |
72b2455a PB |
31011 | @endif ld-bootstrap |
31012 | ||
0df3d27f | 31013 | |
9cb3fa6f PB |
31014 | .PHONY: configure-stage2-libcpp maybe-configure-stage2-libcpp |
31015 | .PHONY: all-stage2-libcpp maybe-all-stage2-libcpp | |
0df3d27f | 31016 | .PHONY: clean-stage2-libcpp maybe-clean-stage2-libcpp |
9cb3fa6f | 31017 | |
72b2455a PB |
31018 | maybe-configure-stage2-libcpp: |
31019 | maybe-all-stage2-libcpp: | |
0df3d27f | 31020 | maybe-clean-stage2-libcpp: |
72b2455a PB |
31021 | |
31022 | @if libcpp-bootstrap | |
31023 | maybe-configure-stage2-libcpp: configure-stage2-libcpp | |
9cb3fa6f PB |
31024 | configure-stage2-libcpp: |
31025 | @$(MAKE) stage2-start | |
31026 | @[ -f libcpp/Makefile ] && exit 0 || : ; \ | |
72b2455a PB |
31027 | r=`${PWD_COMMAND}`; export r; \ |
31028 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
31029 | $(STAGE_HOST_EXPORTS) \ | |
31030 | echo Configuring stage 2 in libcpp ; \ | |
b00612cc | 31031 | cd $(HOST_SUBDIR)/libcpp || exit 1; \ |
72b2455a | 31032 | case $(srcdir) in \ |
b00612cc PB |
31033 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
31034 | *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \ | |
31035 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
72b2455a | 31036 | esac; \ |
b00612cc PB |
31037 | srcdiroption="--srcdir=$${topdir}/libcpp"; \ |
31038 | libsrcdir="$$s/libcpp"; \ | |
72b2455a PB |
31039 | $(SHELL) $${libsrcdir}/configure \ |
31040 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 31041 | @stage2_werror_flag@ |
72b2455a PB |
31042 | |
31043 | maybe-all-stage2-libcpp: all-stage2-libcpp | |
31044 | all-stage2-libcpp: configure-stage2-libcpp | |
9cb3fa6f | 31045 | @$(MAKE) stage2-start |
72b2455a PB |
31046 | @r=`${PWD_COMMAND}`; export r; \ |
31047 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
31048 | $(STAGE_HOST_EXPORTS) \ | |
b00612cc | 31049 | cd $(HOST_SUBDIR)/libcpp && \ |
72b2455a PB |
31050 | $(MAKE) $(FLAGS_TO_PASS) \ |
31051 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
9cb3fa6f | 31052 | |
0df3d27f PB |
31053 | |
31054 | maybe-clean-stage2-libcpp: clean-stage2-libcpp | |
31055 | clean-stage2-libcpp: | |
31056 | @[ -f libcpp/Makefile ] || [ -f stage2-libcpp/Makefile ] \ | |
31057 | || exit 0 ; \ | |
31058 | [ -f libcpp/Makefile ] || $(MAKE) stage2-start ; \ | |
b00612cc | 31059 | cd $(HOST_SUBDIR)/libcpp && \ |
0df3d27f PB |
31060 | $(MAKE) $(FLAGS_TO_PASS) \ |
31061 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
31062 | clean | |
72b2455a PB |
31063 | @endif libcpp-bootstrap |
31064 | ||
0df3d27f | 31065 | |
9cb3fa6f PB |
31066 | .PHONY: configure-stage2-libiberty maybe-configure-stage2-libiberty |
31067 | .PHONY: all-stage2-libiberty maybe-all-stage2-libiberty | |
0df3d27f | 31068 | .PHONY: clean-stage2-libiberty maybe-clean-stage2-libiberty |
9cb3fa6f | 31069 | |
72b2455a PB |
31070 | maybe-configure-stage2-libiberty: |
31071 | maybe-all-stage2-libiberty: | |
0df3d27f | 31072 | maybe-clean-stage2-libiberty: |
72b2455a PB |
31073 | |
31074 | @if libiberty-bootstrap | |
31075 | maybe-configure-stage2-libiberty: configure-stage2-libiberty | |
9cb3fa6f PB |
31076 | configure-stage2-libiberty: |
31077 | @$(MAKE) stage2-start | |
31078 | @[ -f libiberty/Makefile ] && exit 0 || : ; \ | |
72b2455a PB |
31079 | r=`${PWD_COMMAND}`; export r; \ |
31080 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
31081 | $(STAGE_HOST_EXPORTS) \ | |
31082 | echo Configuring stage 2 in libiberty ; \ | |
b00612cc | 31083 | cd $(HOST_SUBDIR)/libiberty || exit 1; \ |
72b2455a | 31084 | case $(srcdir) in \ |
b00612cc PB |
31085 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
31086 | *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \ | |
31087 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
72b2455a | 31088 | esac; \ |
b00612cc PB |
31089 | srcdiroption="--srcdir=$${topdir}/libiberty"; \ |
31090 | libsrcdir="$$s/libiberty"; \ | |
72b2455a PB |
31091 | $(SHELL) $${libsrcdir}/configure \ |
31092 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 31093 | @stage2_werror_flag@ |
72b2455a PB |
31094 | |
31095 | maybe-all-stage2-libiberty: all-stage2-libiberty | |
31096 | all-stage2-libiberty: configure-stage2-libiberty | |
9cb3fa6f | 31097 | @$(MAKE) stage2-start |
72b2455a PB |
31098 | @r=`${PWD_COMMAND}`; export r; \ |
31099 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
31100 | $(STAGE_HOST_EXPORTS) \ | |
b00612cc | 31101 | cd $(HOST_SUBDIR)/libiberty && \ |
72b2455a PB |
31102 | $(MAKE) $(FLAGS_TO_PASS) \ |
31103 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
9cb3fa6f | 31104 | |
0df3d27f PB |
31105 | |
31106 | maybe-clean-stage2-libiberty: clean-stage2-libiberty | |
31107 | clean-stage2-libiberty: | |
31108 | @[ -f libiberty/Makefile ] || [ -f stage2-libiberty/Makefile ] \ | |
31109 | || exit 0 ; \ | |
31110 | [ -f libiberty/Makefile ] || $(MAKE) stage2-start ; \ | |
b00612cc | 31111 | cd $(HOST_SUBDIR)/libiberty && \ |
0df3d27f PB |
31112 | $(MAKE) $(FLAGS_TO_PASS) \ |
31113 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
31114 | clean | |
72b2455a PB |
31115 | @endif libiberty-bootstrap |
31116 | ||
0df3d27f | 31117 | |
9cb3fa6f PB |
31118 | .PHONY: configure-stage2-zlib maybe-configure-stage2-zlib |
31119 | .PHONY: all-stage2-zlib maybe-all-stage2-zlib | |
0df3d27f | 31120 | .PHONY: clean-stage2-zlib maybe-clean-stage2-zlib |
9cb3fa6f | 31121 | |
72b2455a PB |
31122 | maybe-configure-stage2-zlib: |
31123 | maybe-all-stage2-zlib: | |
0df3d27f | 31124 | maybe-clean-stage2-zlib: |
72b2455a PB |
31125 | |
31126 | @if zlib-bootstrap | |
31127 | maybe-configure-stage2-zlib: configure-stage2-zlib | |
9cb3fa6f PB |
31128 | configure-stage2-zlib: |
31129 | @$(MAKE) stage2-start | |
31130 | @[ -f zlib/Makefile ] && exit 0 || : ; \ | |
72b2455a PB |
31131 | r=`${PWD_COMMAND}`; export r; \ |
31132 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
31133 | $(STAGE_HOST_EXPORTS) \ | |
31134 | echo Configuring stage 2 in zlib ; \ | |
b00612cc | 31135 | cd $(HOST_SUBDIR)/zlib || exit 1; \ |
72b2455a | 31136 | case $(srcdir) in \ |
b00612cc PB |
31137 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
31138 | *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \ | |
31139 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
72b2455a | 31140 | esac; \ |
b00612cc PB |
31141 | srcdiroption="--srcdir=$${topdir}/zlib"; \ |
31142 | libsrcdir="$$s/zlib"; \ | |
72b2455a PB |
31143 | $(SHELL) $${libsrcdir}/configure \ |
31144 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 31145 | @stage2_werror_flag@ |
72b2455a PB |
31146 | |
31147 | maybe-all-stage2-zlib: all-stage2-zlib | |
31148 | all-stage2-zlib: configure-stage2-zlib | |
9cb3fa6f | 31149 | @$(MAKE) stage2-start |
72b2455a PB |
31150 | @r=`${PWD_COMMAND}`; export r; \ |
31151 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
31152 | $(STAGE_HOST_EXPORTS) \ | |
b00612cc | 31153 | cd $(HOST_SUBDIR)/zlib && \ |
72b2455a PB |
31154 | $(MAKE) $(FLAGS_TO_PASS) \ |
31155 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
9cb3fa6f | 31156 | |
0df3d27f PB |
31157 | |
31158 | maybe-clean-stage2-zlib: clean-stage2-zlib | |
31159 | clean-stage2-zlib: | |
31160 | @[ -f zlib/Makefile ] || [ -f stage2-zlib/Makefile ] \ | |
31161 | || exit 0 ; \ | |
31162 | [ -f zlib/Makefile ] || $(MAKE) stage2-start ; \ | |
b00612cc | 31163 | cd $(HOST_SUBDIR)/zlib && \ |
0df3d27f PB |
31164 | $(MAKE) $(FLAGS_TO_PASS) \ |
31165 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
31166 | clean | |
72b2455a PB |
31167 | @endif zlib-bootstrap |
31168 | ||
31169 | ||
0df3d27f | 31170 | |
72b2455a PB |
31171 | # FIXME: Will not need to be conditional when toplevel bootstrap is the |
31172 | # only possibility, but now it conflicts with no-bootstrap rules | |
31173 | @if gcc-bootstrap | |
31174 | ||
31175 | ||
31176 | ||
31177 | .PHONY: bootstrap2 | |
31178 | bootstrap2: stage2-bubble all | |
31179 | ||
31180 | ||
0df3d27f | 31181 | # Rules to wipe a stage and all the following ones, also used for cleanstrap |
72b2455a | 31182 | distclean-stage1:: distclean-stage2 |
0df3d27f | 31183 | .PHONY: distclean-stage2 |
72b2455a PB |
31184 | distclean-stage2:: |
31185 | [ -f stage_current ] && $(MAKE) `cat stage_current`-end || : | |
9cb3fa6f | 31186 | rm -rf stage2-* |
72b2455a PB |
31187 | |
31188 | ||
31189 | @endif gcc-bootstrap | |
31190 | ||
31191 | ||
31192 | .PHONY: stage3-start stage3-end | |
31193 | ||
31194 | stage3-start:: | |
9cb3fa6f | 31195 | @[ -f stage_current ] && $(MAKE) `cat stage_current`-end || : ; \ |
72b2455a | 31196 | echo stage3 > stage_current ; \ |
b00612cc PB |
31197 | echo stage3 > stage_last; \ |
31198 | $(mkinstalldirs) $(HOST_SUBDIR) | |
72b2455a | 31199 | @if bfd |
b00612cc PB |
31200 | @cd $(HOST_SUBDIR); [ -d stage3-bfd ] || \ |
31201 | mkdir stage3-bfd; \ | |
31202 | set stage3-bfd bfd ; \ | |
31203 | @CREATE_LINK_TO_DIR@ ; \ | |
31204 | set stage2-bfd prev-bfd ; \ | |
31205 | @CREATE_LINK_TO_DIR@ | |
72b2455a PB |
31206 | @endif bfd |
31207 | @if opcodes | |
b00612cc PB |
31208 | @cd $(HOST_SUBDIR); [ -d stage3-opcodes ] || \ |
31209 | mkdir stage3-opcodes; \ | |
31210 | set stage3-opcodes opcodes ; \ | |
31211 | @CREATE_LINK_TO_DIR@ ; \ | |
31212 | set stage2-opcodes prev-opcodes ; \ | |
31213 | @CREATE_LINK_TO_DIR@ | |
72b2455a PB |
31214 | @endif opcodes |
31215 | @if binutils | |
b00612cc PB |
31216 | @cd $(HOST_SUBDIR); [ -d stage3-binutils ] || \ |
31217 | mkdir stage3-binutils; \ | |
31218 | set stage3-binutils binutils ; \ | |
31219 | @CREATE_LINK_TO_DIR@ ; \ | |
31220 | set stage2-binutils prev-binutils ; \ | |
31221 | @CREATE_LINK_TO_DIR@ | |
72b2455a PB |
31222 | @endif binutils |
31223 | @if gas | |
b00612cc PB |
31224 | @cd $(HOST_SUBDIR); [ -d stage3-gas ] || \ |
31225 | mkdir stage3-gas; \ | |
31226 | set stage3-gas gas ; \ | |
31227 | @CREATE_LINK_TO_DIR@ ; \ | |
31228 | set stage2-gas prev-gas ; \ | |
31229 | @CREATE_LINK_TO_DIR@ | |
72b2455a PB |
31230 | @endif gas |
31231 | @if gcc | |
b00612cc PB |
31232 | @cd $(HOST_SUBDIR); [ -d stage3-gcc ] || \ |
31233 | mkdir stage3-gcc; \ | |
31234 | set stage3-gcc gcc ; \ | |
31235 | @CREATE_LINK_TO_DIR@ ; \ | |
31236 | set stage2-gcc prev-gcc ; \ | |
31237 | @CREATE_LINK_TO_DIR@ | |
72b2455a PB |
31238 | @endif gcc |
31239 | @if intl | |
b00612cc PB |
31240 | @cd $(HOST_SUBDIR); [ -d stage3-intl ] || \ |
31241 | mkdir stage3-intl; \ | |
31242 | set stage3-intl intl ; \ | |
31243 | @CREATE_LINK_TO_DIR@ ; \ | |
31244 | set stage2-intl prev-intl ; \ | |
31245 | @CREATE_LINK_TO_DIR@ | |
72b2455a PB |
31246 | @endif intl |
31247 | @if ld | |
b00612cc PB |
31248 | @cd $(HOST_SUBDIR); [ -d stage3-ld ] || \ |
31249 | mkdir stage3-ld; \ | |
31250 | set stage3-ld ld ; \ | |
31251 | @CREATE_LINK_TO_DIR@ ; \ | |
31252 | set stage2-ld prev-ld ; \ | |
31253 | @CREATE_LINK_TO_DIR@ | |
72b2455a PB |
31254 | @endif ld |
31255 | @if libcpp | |
b00612cc PB |
31256 | @cd $(HOST_SUBDIR); [ -d stage3-libcpp ] || \ |
31257 | mkdir stage3-libcpp; \ | |
31258 | set stage3-libcpp libcpp ; \ | |
31259 | @CREATE_LINK_TO_DIR@ ; \ | |
31260 | set stage2-libcpp prev-libcpp ; \ | |
31261 | @CREATE_LINK_TO_DIR@ | |
72b2455a | 31262 | @endif libcpp |
72b2455a | 31263 | @if libiberty |
b00612cc PB |
31264 | @cd $(HOST_SUBDIR); [ -d stage3-libiberty ] || \ |
31265 | mkdir stage3-libiberty; \ | |
31266 | set stage3-libiberty libiberty ; \ | |
31267 | @CREATE_LINK_TO_DIR@ ; \ | |
31268 | set stage2-libiberty prev-libiberty ; \ | |
31269 | @CREATE_LINK_TO_DIR@ | |
72b2455a PB |
31270 | @endif libiberty |
31271 | @if zlib | |
b00612cc PB |
31272 | @cd $(HOST_SUBDIR); [ -d stage3-zlib ] || \ |
31273 | mkdir stage3-zlib; \ | |
31274 | set stage3-zlib zlib ; \ | |
31275 | @CREATE_LINK_TO_DIR@ ; \ | |
31276 | set stage2-zlib prev-zlib ; \ | |
31277 | @CREATE_LINK_TO_DIR@ | |
72b2455a PB |
31278 | @endif zlib |
31279 | ||
31280 | stage3-end:: | |
9cb3fa6f | 31281 | @rm -f stage_current |
72b2455a | 31282 | @if bfd |
b00612cc PB |
31283 | @cd $(HOST_SUBDIR); set bfd stage3-bfd ; \ |
31284 | @UNDO_LINK_TO_DIR@ ; \ | |
31285 | set prev-bfd stage2-bfd ; \ | |
31286 | @UNDO_LINK_TO_DIR@ | |
72b2455a PB |
31287 | @endif bfd |
31288 | @if opcodes | |
b00612cc PB |
31289 | @cd $(HOST_SUBDIR); set opcodes stage3-opcodes ; \ |
31290 | @UNDO_LINK_TO_DIR@ ; \ | |
31291 | set prev-opcodes stage2-opcodes ; \ | |
31292 | @UNDO_LINK_TO_DIR@ | |
72b2455a PB |
31293 | @endif opcodes |
31294 | @if binutils | |
b00612cc PB |
31295 | @cd $(HOST_SUBDIR); set binutils stage3-binutils ; \ |
31296 | @UNDO_LINK_TO_DIR@ ; \ | |
31297 | set prev-binutils stage2-binutils ; \ | |
31298 | @UNDO_LINK_TO_DIR@ | |
72b2455a PB |
31299 | @endif binutils |
31300 | @if gas | |
b00612cc PB |
31301 | @cd $(HOST_SUBDIR); set gas stage3-gas ; \ |
31302 | @UNDO_LINK_TO_DIR@ ; \ | |
31303 | set prev-gas stage2-gas ; \ | |
31304 | @UNDO_LINK_TO_DIR@ | |
72b2455a PB |
31305 | @endif gas |
31306 | @if gcc | |
b00612cc PB |
31307 | @cd $(HOST_SUBDIR); set gcc stage3-gcc ; \ |
31308 | @UNDO_LINK_TO_DIR@ ; \ | |
31309 | set prev-gcc stage2-gcc ; \ | |
31310 | @UNDO_LINK_TO_DIR@ | |
72b2455a PB |
31311 | @endif gcc |
31312 | @if intl | |
b00612cc PB |
31313 | @cd $(HOST_SUBDIR); set intl stage3-intl ; \ |
31314 | @UNDO_LINK_TO_DIR@ ; \ | |
31315 | set prev-intl stage2-intl ; \ | |
31316 | @UNDO_LINK_TO_DIR@ | |
72b2455a PB |
31317 | @endif intl |
31318 | @if ld | |
b00612cc PB |
31319 | @cd $(HOST_SUBDIR); set ld stage3-ld ; \ |
31320 | @UNDO_LINK_TO_DIR@ ; \ | |
31321 | set prev-ld stage2-ld ; \ | |
31322 | @UNDO_LINK_TO_DIR@ | |
72b2455a PB |
31323 | @endif ld |
31324 | @if libcpp | |
b00612cc PB |
31325 | @cd $(HOST_SUBDIR); set libcpp stage3-libcpp ; \ |
31326 | @UNDO_LINK_TO_DIR@ ; \ | |
31327 | set prev-libcpp stage2-libcpp ; \ | |
31328 | @UNDO_LINK_TO_DIR@ | |
72b2455a | 31329 | @endif libcpp |
72b2455a | 31330 | @if libiberty |
b00612cc PB |
31331 | @cd $(HOST_SUBDIR); set libiberty stage3-libiberty ; \ |
31332 | @UNDO_LINK_TO_DIR@ ; \ | |
31333 | set prev-libiberty stage2-libiberty ; \ | |
31334 | @UNDO_LINK_TO_DIR@ | |
72b2455a PB |
31335 | @endif libiberty |
31336 | @if zlib | |
b00612cc PB |
31337 | @cd $(HOST_SUBDIR); set zlib stage3-zlib ; \ |
31338 | @UNDO_LINK_TO_DIR@ ; \ | |
31339 | set prev-zlib stage2-zlib ; \ | |
31340 | @UNDO_LINK_TO_DIR@ | |
72b2455a PB |
31341 | @endif zlib |
31342 | ||
31343 | # Bubble a bugfix through all the stages up to stage 3. They | |
31344 | # are remade, but not reconfigured. The next stage (if any) will not | |
31345 | # be reconfigured as well. | |
31346 | .PHONY: stage3-bubble | |
31347 | stage3-bubble:: stage2-bubble | |
9cb3fa6f PB |
31348 | @bootstrap_lean@-rm -rf stage1-* ; $(STAMP) stage1-lean |
31349 | @if test -f stage3-lean || test -f stage2-lean ; then \ | |
31350 | echo Skipping rebuild of stage3 ; \ | |
31351 | else \ | |
0df3d27f | 31352 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) NOTPARALLEL= all-stage3; \ |
9cb3fa6f | 31353 | fi |
72b2455a | 31354 | |
0df3d27f | 31355 | .PHONY: all-stage3 clean-stage3 |
72b2455a PB |
31356 | all-stage3: \ |
31357 | maybe-all-stage3-bfd \ | |
31358 | maybe-all-stage3-opcodes \ | |
d3ed111c | 31359 | maybe-all-stage3-binutils \ |
72b2455a PB |
31360 | maybe-all-stage3-gas \ |
31361 | maybe-all-stage3-gcc \ | |
31362 | maybe-all-stage3-intl \ | |
31363 | maybe-all-stage3-ld \ | |
31364 | maybe-all-stage3-libcpp \ | |
72b2455a | 31365 | maybe-all-stage3-libiberty \ |
b00612cc | 31366 | maybe-all-stage3-zlib |
72b2455a | 31367 | |
0df3d27f PB |
31368 | do-clean: clean-stage3 |
31369 | clean-stage3: \ | |
31370 | maybe-clean-stage3-bfd \ | |
31371 | maybe-clean-stage3-opcodes \ | |
d3ed111c | 31372 | maybe-clean-stage3-binutils \ |
0df3d27f PB |
31373 | maybe-clean-stage3-gas \ |
31374 | maybe-clean-stage3-gcc \ | |
31375 | maybe-clean-stage3-intl \ | |
31376 | maybe-clean-stage3-ld \ | |
31377 | maybe-clean-stage3-libcpp \ | |
0df3d27f | 31378 | maybe-clean-stage3-libiberty \ |
b00612cc | 31379 | maybe-clean-stage3-zlib |
0df3d27f | 31380 | |
72b2455a | 31381 | |
9cb3fa6f PB |
31382 | .PHONY: configure-stage3-bfd maybe-configure-stage3-bfd |
31383 | .PHONY: all-stage3-bfd maybe-all-stage3-bfd | |
0df3d27f | 31384 | .PHONY: clean-stage3-bfd maybe-clean-stage3-bfd |
9cb3fa6f | 31385 | |
72b2455a PB |
31386 | maybe-configure-stage3-bfd: |
31387 | maybe-all-stage3-bfd: | |
0df3d27f | 31388 | maybe-clean-stage3-bfd: |
72b2455a PB |
31389 | |
31390 | @if bfd-bootstrap | |
31391 | maybe-configure-stage3-bfd: configure-stage3-bfd | |
9cb3fa6f PB |
31392 | configure-stage3-bfd: |
31393 | @$(MAKE) stage3-start | |
31394 | @[ -f bfd/Makefile ] && exit 0 || : ; \ | |
72b2455a PB |
31395 | r=`${PWD_COMMAND}`; export r; \ |
31396 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
31397 | $(STAGE_HOST_EXPORTS) \ | |
31398 | echo Configuring stage 3 in bfd ; \ | |
b00612cc | 31399 | cd $(HOST_SUBDIR)/bfd || exit 1; \ |
72b2455a | 31400 | case $(srcdir) in \ |
b00612cc PB |
31401 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
31402 | *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \ | |
31403 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
72b2455a | 31404 | esac; \ |
b00612cc PB |
31405 | srcdiroption="--srcdir=$${topdir}/bfd"; \ |
31406 | libsrcdir="$$s/bfd"; \ | |
72b2455a PB |
31407 | $(SHELL) $${libsrcdir}/configure \ |
31408 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 31409 | @stage2_werror_flag@ |
72b2455a PB |
31410 | |
31411 | maybe-all-stage3-bfd: all-stage3-bfd | |
31412 | all-stage3-bfd: configure-stage3-bfd | |
9cb3fa6f | 31413 | @$(MAKE) stage3-start |
72b2455a PB |
31414 | @r=`${PWD_COMMAND}`; export r; \ |
31415 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
31416 | $(STAGE_HOST_EXPORTS) \ | |
b00612cc | 31417 | cd $(HOST_SUBDIR)/bfd && \ |
72b2455a PB |
31418 | $(MAKE) $(FLAGS_TO_PASS) \ |
31419 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
9cb3fa6f | 31420 | |
0df3d27f PB |
31421 | |
31422 | maybe-clean-stage3-bfd: clean-stage3-bfd | |
31423 | clean-stage3-bfd: | |
31424 | @[ -f bfd/Makefile ] || [ -f stage3-bfd/Makefile ] \ | |
31425 | || exit 0 ; \ | |
31426 | [ -f bfd/Makefile ] || $(MAKE) stage3-start ; \ | |
b00612cc | 31427 | cd $(HOST_SUBDIR)/bfd && \ |
0df3d27f PB |
31428 | $(MAKE) $(FLAGS_TO_PASS) \ |
31429 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
31430 | clean | |
72b2455a PB |
31431 | @endif bfd-bootstrap |
31432 | ||
0df3d27f | 31433 | |
9cb3fa6f PB |
31434 | .PHONY: configure-stage3-opcodes maybe-configure-stage3-opcodes |
31435 | .PHONY: all-stage3-opcodes maybe-all-stage3-opcodes | |
0df3d27f | 31436 | .PHONY: clean-stage3-opcodes maybe-clean-stage3-opcodes |
9cb3fa6f | 31437 | |
72b2455a PB |
31438 | maybe-configure-stage3-opcodes: |
31439 | maybe-all-stage3-opcodes: | |
0df3d27f | 31440 | maybe-clean-stage3-opcodes: |
72b2455a PB |
31441 | |
31442 | @if opcodes-bootstrap | |
31443 | maybe-configure-stage3-opcodes: configure-stage3-opcodes | |
9cb3fa6f PB |
31444 | configure-stage3-opcodes: |
31445 | @$(MAKE) stage3-start | |
31446 | @[ -f opcodes/Makefile ] && exit 0 || : ; \ | |
72b2455a PB |
31447 | r=`${PWD_COMMAND}`; export r; \ |
31448 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
31449 | $(STAGE_HOST_EXPORTS) \ | |
31450 | echo Configuring stage 3 in opcodes ; \ | |
b00612cc | 31451 | cd $(HOST_SUBDIR)/opcodes || exit 1; \ |
72b2455a | 31452 | case $(srcdir) in \ |
b00612cc PB |
31453 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
31454 | *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \ | |
31455 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
72b2455a | 31456 | esac; \ |
b00612cc PB |
31457 | srcdiroption="--srcdir=$${topdir}/opcodes"; \ |
31458 | libsrcdir="$$s/opcodes"; \ | |
72b2455a PB |
31459 | $(SHELL) $${libsrcdir}/configure \ |
31460 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 31461 | @stage2_werror_flag@ |
72b2455a PB |
31462 | |
31463 | maybe-all-stage3-opcodes: all-stage3-opcodes | |
31464 | all-stage3-opcodes: configure-stage3-opcodes | |
9cb3fa6f | 31465 | @$(MAKE) stage3-start |
72b2455a PB |
31466 | @r=`${PWD_COMMAND}`; export r; \ |
31467 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
31468 | $(STAGE_HOST_EXPORTS) \ | |
b00612cc | 31469 | cd $(HOST_SUBDIR)/opcodes && \ |
72b2455a PB |
31470 | $(MAKE) $(FLAGS_TO_PASS) \ |
31471 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
9cb3fa6f | 31472 | |
0df3d27f PB |
31473 | |
31474 | maybe-clean-stage3-opcodes: clean-stage3-opcodes | |
31475 | clean-stage3-opcodes: | |
31476 | @[ -f opcodes/Makefile ] || [ -f stage3-opcodes/Makefile ] \ | |
31477 | || exit 0 ; \ | |
31478 | [ -f opcodes/Makefile ] || $(MAKE) stage3-start ; \ | |
b00612cc | 31479 | cd $(HOST_SUBDIR)/opcodes && \ |
0df3d27f PB |
31480 | $(MAKE) $(FLAGS_TO_PASS) \ |
31481 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
31482 | clean | |
72b2455a PB |
31483 | @endif opcodes-bootstrap |
31484 | ||
0df3d27f | 31485 | |
9cb3fa6f PB |
31486 | .PHONY: configure-stage3-binutils maybe-configure-stage3-binutils |
31487 | .PHONY: all-stage3-binutils maybe-all-stage3-binutils | |
0df3d27f | 31488 | .PHONY: clean-stage3-binutils maybe-clean-stage3-binutils |
9cb3fa6f | 31489 | |
72b2455a PB |
31490 | maybe-configure-stage3-binutils: |
31491 | maybe-all-stage3-binutils: | |
0df3d27f | 31492 | maybe-clean-stage3-binutils: |
72b2455a PB |
31493 | |
31494 | @if binutils-bootstrap | |
31495 | maybe-configure-stage3-binutils: configure-stage3-binutils | |
9cb3fa6f PB |
31496 | configure-stage3-binutils: |
31497 | @$(MAKE) stage3-start | |
31498 | @[ -f binutils/Makefile ] && exit 0 || : ; \ | |
72b2455a PB |
31499 | r=`${PWD_COMMAND}`; export r; \ |
31500 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
31501 | $(STAGE_HOST_EXPORTS) \ | |
31502 | echo Configuring stage 3 in binutils ; \ | |
b00612cc | 31503 | cd $(HOST_SUBDIR)/binutils || exit 1; \ |
72b2455a | 31504 | case $(srcdir) in \ |
b00612cc PB |
31505 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
31506 | *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \ | |
31507 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
72b2455a | 31508 | esac; \ |
b00612cc PB |
31509 | srcdiroption="--srcdir=$${topdir}/binutils"; \ |
31510 | libsrcdir="$$s/binutils"; \ | |
72b2455a PB |
31511 | $(SHELL) $${libsrcdir}/configure \ |
31512 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 31513 | @stage2_werror_flag@ |
72b2455a PB |
31514 | |
31515 | maybe-all-stage3-binutils: all-stage3-binutils | |
31516 | all-stage3-binutils: configure-stage3-binutils | |
9cb3fa6f | 31517 | @$(MAKE) stage3-start |
72b2455a PB |
31518 | @r=`${PWD_COMMAND}`; export r; \ |
31519 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
31520 | $(STAGE_HOST_EXPORTS) \ | |
b00612cc | 31521 | cd $(HOST_SUBDIR)/binutils && \ |
72b2455a PB |
31522 | $(MAKE) $(FLAGS_TO_PASS) \ |
31523 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
9cb3fa6f | 31524 | |
0df3d27f PB |
31525 | |
31526 | maybe-clean-stage3-binutils: clean-stage3-binutils | |
31527 | clean-stage3-binutils: | |
31528 | @[ -f binutils/Makefile ] || [ -f stage3-binutils/Makefile ] \ | |
31529 | || exit 0 ; \ | |
31530 | [ -f binutils/Makefile ] || $(MAKE) stage3-start ; \ | |
b00612cc | 31531 | cd $(HOST_SUBDIR)/binutils && \ |
0df3d27f PB |
31532 | $(MAKE) $(FLAGS_TO_PASS) \ |
31533 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
31534 | clean | |
72b2455a PB |
31535 | @endif binutils-bootstrap |
31536 | ||
0df3d27f | 31537 | |
9cb3fa6f PB |
31538 | .PHONY: configure-stage3-gas maybe-configure-stage3-gas |
31539 | .PHONY: all-stage3-gas maybe-all-stage3-gas | |
0df3d27f | 31540 | .PHONY: clean-stage3-gas maybe-clean-stage3-gas |
9cb3fa6f | 31541 | |
72b2455a PB |
31542 | maybe-configure-stage3-gas: |
31543 | maybe-all-stage3-gas: | |
0df3d27f | 31544 | maybe-clean-stage3-gas: |
72b2455a PB |
31545 | |
31546 | @if gas-bootstrap | |
31547 | maybe-configure-stage3-gas: configure-stage3-gas | |
9cb3fa6f PB |
31548 | configure-stage3-gas: |
31549 | @$(MAKE) stage3-start | |
31550 | @[ -f gas/Makefile ] && exit 0 || : ; \ | |
72b2455a PB |
31551 | r=`${PWD_COMMAND}`; export r; \ |
31552 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
31553 | $(STAGE_HOST_EXPORTS) \ | |
31554 | echo Configuring stage 3 in gas ; \ | |
b00612cc | 31555 | cd $(HOST_SUBDIR)/gas || exit 1; \ |
72b2455a | 31556 | case $(srcdir) in \ |
b00612cc PB |
31557 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
31558 | *) topdir=`echo $(HOST_SUBDIR)/gas/ | \ | |
31559 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
72b2455a | 31560 | esac; \ |
b00612cc PB |
31561 | srcdiroption="--srcdir=$${topdir}/gas"; \ |
31562 | libsrcdir="$$s/gas"; \ | |
72b2455a PB |
31563 | $(SHELL) $${libsrcdir}/configure \ |
31564 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 31565 | @stage2_werror_flag@ |
72b2455a PB |
31566 | |
31567 | maybe-all-stage3-gas: all-stage3-gas | |
31568 | all-stage3-gas: configure-stage3-gas | |
9cb3fa6f | 31569 | @$(MAKE) stage3-start |
72b2455a PB |
31570 | @r=`${PWD_COMMAND}`; export r; \ |
31571 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
31572 | $(STAGE_HOST_EXPORTS) \ | |
b00612cc | 31573 | cd $(HOST_SUBDIR)/gas && \ |
72b2455a PB |
31574 | $(MAKE) $(FLAGS_TO_PASS) \ |
31575 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
9cb3fa6f | 31576 | |
0df3d27f PB |
31577 | |
31578 | maybe-clean-stage3-gas: clean-stage3-gas | |
31579 | clean-stage3-gas: | |
31580 | @[ -f gas/Makefile ] || [ -f stage3-gas/Makefile ] \ | |
31581 | || exit 0 ; \ | |
31582 | [ -f gas/Makefile ] || $(MAKE) stage3-start ; \ | |
b00612cc | 31583 | cd $(HOST_SUBDIR)/gas && \ |
0df3d27f PB |
31584 | $(MAKE) $(FLAGS_TO_PASS) \ |
31585 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
31586 | clean | |
72b2455a PB |
31587 | @endif gas-bootstrap |
31588 | ||
0df3d27f | 31589 | |
9cb3fa6f PB |
31590 | .PHONY: configure-stage3-gcc maybe-configure-stage3-gcc |
31591 | .PHONY: all-stage3-gcc maybe-all-stage3-gcc | |
0df3d27f | 31592 | .PHONY: clean-stage3-gcc maybe-clean-stage3-gcc |
9cb3fa6f | 31593 | |
72b2455a PB |
31594 | maybe-configure-stage3-gcc: |
31595 | maybe-all-stage3-gcc: | |
0df3d27f | 31596 | maybe-clean-stage3-gcc: |
72b2455a PB |
31597 | |
31598 | @if gcc-bootstrap | |
31599 | maybe-configure-stage3-gcc: configure-stage3-gcc | |
9cb3fa6f PB |
31600 | configure-stage3-gcc: |
31601 | @$(MAKE) stage3-start | |
31602 | @[ -f gcc/Makefile ] && exit 0 || : ; \ | |
72b2455a PB |
31603 | r=`${PWD_COMMAND}`; export r; \ |
31604 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
31605 | $(STAGE_HOST_EXPORTS) \ | |
31606 | echo Configuring stage 3 in gcc ; \ | |
b00612cc | 31607 | cd $(HOST_SUBDIR)/gcc || exit 1; \ |
72b2455a | 31608 | case $(srcdir) in \ |
b00612cc PB |
31609 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
31610 | *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \ | |
31611 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
72b2455a | 31612 | esac; \ |
b00612cc PB |
31613 | srcdiroption="--srcdir=$${topdir}/gcc"; \ |
31614 | libsrcdir="$$s/gcc"; \ | |
72b2455a PB |
31615 | $(SHELL) $${libsrcdir}/configure \ |
31616 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 31617 | @stage2_werror_flag@ |
72b2455a PB |
31618 | |
31619 | maybe-all-stage3-gcc: all-stage3-gcc | |
31620 | all-stage3-gcc: configure-stage3-gcc | |
9cb3fa6f | 31621 | @$(MAKE) stage3-start |
72b2455a PB |
31622 | @r=`${PWD_COMMAND}`; export r; \ |
31623 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
31624 | $(STAGE_HOST_EXPORTS) \ | |
b00612cc | 31625 | cd $(HOST_SUBDIR)/gcc && \ |
72b2455a PB |
31626 | $(MAKE) $(FLAGS_TO_PASS) \ |
31627 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
9cb3fa6f | 31628 | $(EXTRA_GCC_FLAGS) |
0df3d27f PB |
31629 | |
31630 | maybe-clean-stage3-gcc: clean-stage3-gcc | |
31631 | clean-stage3-gcc: | |
31632 | @[ -f gcc/Makefile ] || [ -f stage3-gcc/Makefile ] \ | |
31633 | || exit 0 ; \ | |
31634 | [ -f gcc/Makefile ] || $(MAKE) stage3-start ; \ | |
b00612cc | 31635 | cd $(HOST_SUBDIR)/gcc && \ |
0df3d27f PB |
31636 | $(MAKE) $(FLAGS_TO_PASS) \ |
31637 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
31638 | $(EXTRA_GCC_FLAGS) clean | |
72b2455a PB |
31639 | @endif gcc-bootstrap |
31640 | ||
0df3d27f | 31641 | |
9cb3fa6f PB |
31642 | .PHONY: configure-stage3-intl maybe-configure-stage3-intl |
31643 | .PHONY: all-stage3-intl maybe-all-stage3-intl | |
0df3d27f | 31644 | .PHONY: clean-stage3-intl maybe-clean-stage3-intl |
9cb3fa6f | 31645 | |
72b2455a PB |
31646 | maybe-configure-stage3-intl: |
31647 | maybe-all-stage3-intl: | |
0df3d27f | 31648 | maybe-clean-stage3-intl: |
72b2455a PB |
31649 | |
31650 | @if intl-bootstrap | |
31651 | maybe-configure-stage3-intl: configure-stage3-intl | |
9cb3fa6f PB |
31652 | configure-stage3-intl: |
31653 | @$(MAKE) stage3-start | |
31654 | @[ -f intl/Makefile ] && exit 0 || : ; \ | |
72b2455a PB |
31655 | r=`${PWD_COMMAND}`; export r; \ |
31656 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
31657 | $(STAGE_HOST_EXPORTS) \ | |
31658 | echo Configuring stage 3 in intl ; \ | |
b00612cc | 31659 | cd $(HOST_SUBDIR)/intl || exit 1; \ |
72b2455a | 31660 | case $(srcdir) in \ |
b00612cc PB |
31661 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
31662 | *) topdir=`echo $(HOST_SUBDIR)/intl/ | \ | |
31663 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
72b2455a | 31664 | esac; \ |
b00612cc PB |
31665 | srcdiroption="--srcdir=$${topdir}/intl"; \ |
31666 | libsrcdir="$$s/intl"; \ | |
72b2455a PB |
31667 | $(SHELL) $${libsrcdir}/configure \ |
31668 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 31669 | @stage2_werror_flag@ |
72b2455a PB |
31670 | |
31671 | maybe-all-stage3-intl: all-stage3-intl | |
31672 | all-stage3-intl: configure-stage3-intl | |
9cb3fa6f | 31673 | @$(MAKE) stage3-start |
72b2455a PB |
31674 | @r=`${PWD_COMMAND}`; export r; \ |
31675 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
31676 | $(STAGE_HOST_EXPORTS) \ | |
b00612cc | 31677 | cd $(HOST_SUBDIR)/intl && \ |
72b2455a PB |
31678 | $(MAKE) $(FLAGS_TO_PASS) \ |
31679 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
9cb3fa6f | 31680 | |
0df3d27f PB |
31681 | |
31682 | maybe-clean-stage3-intl: clean-stage3-intl | |
31683 | clean-stage3-intl: | |
31684 | @[ -f intl/Makefile ] || [ -f stage3-intl/Makefile ] \ | |
31685 | || exit 0 ; \ | |
31686 | [ -f intl/Makefile ] || $(MAKE) stage3-start ; \ | |
b00612cc | 31687 | cd $(HOST_SUBDIR)/intl && \ |
0df3d27f PB |
31688 | $(MAKE) $(FLAGS_TO_PASS) \ |
31689 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
31690 | clean | |
72b2455a PB |
31691 | @endif intl-bootstrap |
31692 | ||
0df3d27f | 31693 | |
9cb3fa6f PB |
31694 | .PHONY: configure-stage3-ld maybe-configure-stage3-ld |
31695 | .PHONY: all-stage3-ld maybe-all-stage3-ld | |
0df3d27f | 31696 | .PHONY: clean-stage3-ld maybe-clean-stage3-ld |
9cb3fa6f | 31697 | |
72b2455a PB |
31698 | maybe-configure-stage3-ld: |
31699 | maybe-all-stage3-ld: | |
0df3d27f | 31700 | maybe-clean-stage3-ld: |
72b2455a PB |
31701 | |
31702 | @if ld-bootstrap | |
31703 | maybe-configure-stage3-ld: configure-stage3-ld | |
9cb3fa6f PB |
31704 | configure-stage3-ld: |
31705 | @$(MAKE) stage3-start | |
31706 | @[ -f ld/Makefile ] && exit 0 || : ; \ | |
72b2455a PB |
31707 | r=`${PWD_COMMAND}`; export r; \ |
31708 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
31709 | $(STAGE_HOST_EXPORTS) \ | |
31710 | echo Configuring stage 3 in ld ; \ | |
b00612cc | 31711 | cd $(HOST_SUBDIR)/ld || exit 1; \ |
72b2455a | 31712 | case $(srcdir) in \ |
b00612cc PB |
31713 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
31714 | *) topdir=`echo $(HOST_SUBDIR)/ld/ | \ | |
31715 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
72b2455a | 31716 | esac; \ |
b00612cc PB |
31717 | srcdiroption="--srcdir=$${topdir}/ld"; \ |
31718 | libsrcdir="$$s/ld"; \ | |
72b2455a PB |
31719 | $(SHELL) $${libsrcdir}/configure \ |
31720 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 31721 | @stage2_werror_flag@ |
72b2455a PB |
31722 | |
31723 | maybe-all-stage3-ld: all-stage3-ld | |
31724 | all-stage3-ld: configure-stage3-ld | |
9cb3fa6f | 31725 | @$(MAKE) stage3-start |
72b2455a PB |
31726 | @r=`${PWD_COMMAND}`; export r; \ |
31727 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
31728 | $(STAGE_HOST_EXPORTS) \ | |
b00612cc | 31729 | cd $(HOST_SUBDIR)/ld && \ |
72b2455a PB |
31730 | $(MAKE) $(FLAGS_TO_PASS) \ |
31731 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
9cb3fa6f | 31732 | |
0df3d27f PB |
31733 | |
31734 | maybe-clean-stage3-ld: clean-stage3-ld | |
31735 | clean-stage3-ld: | |
31736 | @[ -f ld/Makefile ] || [ -f stage3-ld/Makefile ] \ | |
31737 | || exit 0 ; \ | |
31738 | [ -f ld/Makefile ] || $(MAKE) stage3-start ; \ | |
b00612cc | 31739 | cd $(HOST_SUBDIR)/ld && \ |
0df3d27f PB |
31740 | $(MAKE) $(FLAGS_TO_PASS) \ |
31741 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
31742 | clean | |
72b2455a PB |
31743 | @endif ld-bootstrap |
31744 | ||
0df3d27f | 31745 | |
9cb3fa6f PB |
31746 | .PHONY: configure-stage3-libcpp maybe-configure-stage3-libcpp |
31747 | .PHONY: all-stage3-libcpp maybe-all-stage3-libcpp | |
0df3d27f | 31748 | .PHONY: clean-stage3-libcpp maybe-clean-stage3-libcpp |
9cb3fa6f | 31749 | |
72b2455a PB |
31750 | maybe-configure-stage3-libcpp: |
31751 | maybe-all-stage3-libcpp: | |
0df3d27f | 31752 | maybe-clean-stage3-libcpp: |
72b2455a PB |
31753 | |
31754 | @if libcpp-bootstrap | |
31755 | maybe-configure-stage3-libcpp: configure-stage3-libcpp | |
9cb3fa6f PB |
31756 | configure-stage3-libcpp: |
31757 | @$(MAKE) stage3-start | |
31758 | @[ -f libcpp/Makefile ] && exit 0 || : ; \ | |
72b2455a PB |
31759 | r=`${PWD_COMMAND}`; export r; \ |
31760 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
31761 | $(STAGE_HOST_EXPORTS) \ | |
31762 | echo Configuring stage 3 in libcpp ; \ | |
b00612cc | 31763 | cd $(HOST_SUBDIR)/libcpp || exit 1; \ |
72b2455a | 31764 | case $(srcdir) in \ |
b00612cc PB |
31765 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
31766 | *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \ | |
31767 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
72b2455a | 31768 | esac; \ |
b00612cc PB |
31769 | srcdiroption="--srcdir=$${topdir}/libcpp"; \ |
31770 | libsrcdir="$$s/libcpp"; \ | |
72b2455a PB |
31771 | $(SHELL) $${libsrcdir}/configure \ |
31772 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 31773 | @stage2_werror_flag@ |
72b2455a PB |
31774 | |
31775 | maybe-all-stage3-libcpp: all-stage3-libcpp | |
31776 | all-stage3-libcpp: configure-stage3-libcpp | |
9cb3fa6f | 31777 | @$(MAKE) stage3-start |
72b2455a PB |
31778 | @r=`${PWD_COMMAND}`; export r; \ |
31779 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
31780 | $(STAGE_HOST_EXPORTS) \ | |
b00612cc | 31781 | cd $(HOST_SUBDIR)/libcpp && \ |
72b2455a PB |
31782 | $(MAKE) $(FLAGS_TO_PASS) \ |
31783 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
9cb3fa6f | 31784 | |
0df3d27f PB |
31785 | |
31786 | maybe-clean-stage3-libcpp: clean-stage3-libcpp | |
31787 | clean-stage3-libcpp: | |
31788 | @[ -f libcpp/Makefile ] || [ -f stage3-libcpp/Makefile ] \ | |
31789 | || exit 0 ; \ | |
31790 | [ -f libcpp/Makefile ] || $(MAKE) stage3-start ; \ | |
b00612cc | 31791 | cd $(HOST_SUBDIR)/libcpp && \ |
0df3d27f PB |
31792 | $(MAKE) $(FLAGS_TO_PASS) \ |
31793 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
31794 | clean | |
72b2455a PB |
31795 | @endif libcpp-bootstrap |
31796 | ||
0df3d27f | 31797 | |
9cb3fa6f PB |
31798 | .PHONY: configure-stage3-libiberty maybe-configure-stage3-libiberty |
31799 | .PHONY: all-stage3-libiberty maybe-all-stage3-libiberty | |
0df3d27f | 31800 | .PHONY: clean-stage3-libiberty maybe-clean-stage3-libiberty |
9cb3fa6f | 31801 | |
72b2455a PB |
31802 | maybe-configure-stage3-libiberty: |
31803 | maybe-all-stage3-libiberty: | |
0df3d27f | 31804 | maybe-clean-stage3-libiberty: |
72b2455a PB |
31805 | |
31806 | @if libiberty-bootstrap | |
31807 | maybe-configure-stage3-libiberty: configure-stage3-libiberty | |
9cb3fa6f PB |
31808 | configure-stage3-libiberty: |
31809 | @$(MAKE) stage3-start | |
31810 | @[ -f libiberty/Makefile ] && exit 0 || : ; \ | |
72b2455a PB |
31811 | r=`${PWD_COMMAND}`; export r; \ |
31812 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
31813 | $(STAGE_HOST_EXPORTS) \ | |
31814 | echo Configuring stage 3 in libiberty ; \ | |
b00612cc | 31815 | cd $(HOST_SUBDIR)/libiberty || exit 1; \ |
72b2455a | 31816 | case $(srcdir) in \ |
b00612cc PB |
31817 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
31818 | *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \ | |
31819 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
72b2455a | 31820 | esac; \ |
b00612cc PB |
31821 | srcdiroption="--srcdir=$${topdir}/libiberty"; \ |
31822 | libsrcdir="$$s/libiberty"; \ | |
72b2455a PB |
31823 | $(SHELL) $${libsrcdir}/configure \ |
31824 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 31825 | @stage2_werror_flag@ |
72b2455a PB |
31826 | |
31827 | maybe-all-stage3-libiberty: all-stage3-libiberty | |
31828 | all-stage3-libiberty: configure-stage3-libiberty | |
9cb3fa6f | 31829 | @$(MAKE) stage3-start |
72b2455a PB |
31830 | @r=`${PWD_COMMAND}`; export r; \ |
31831 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
31832 | $(STAGE_HOST_EXPORTS) \ | |
b00612cc | 31833 | cd $(HOST_SUBDIR)/libiberty && \ |
72b2455a PB |
31834 | $(MAKE) $(FLAGS_TO_PASS) \ |
31835 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
9cb3fa6f | 31836 | |
0df3d27f PB |
31837 | |
31838 | maybe-clean-stage3-libiberty: clean-stage3-libiberty | |
31839 | clean-stage3-libiberty: | |
31840 | @[ -f libiberty/Makefile ] || [ -f stage3-libiberty/Makefile ] \ | |
31841 | || exit 0 ; \ | |
31842 | [ -f libiberty/Makefile ] || $(MAKE) stage3-start ; \ | |
b00612cc | 31843 | cd $(HOST_SUBDIR)/libiberty && \ |
0df3d27f PB |
31844 | $(MAKE) $(FLAGS_TO_PASS) \ |
31845 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
31846 | clean | |
72b2455a PB |
31847 | @endif libiberty-bootstrap |
31848 | ||
0df3d27f | 31849 | |
9cb3fa6f PB |
31850 | .PHONY: configure-stage3-zlib maybe-configure-stage3-zlib |
31851 | .PHONY: all-stage3-zlib maybe-all-stage3-zlib | |
0df3d27f | 31852 | .PHONY: clean-stage3-zlib maybe-clean-stage3-zlib |
9cb3fa6f | 31853 | |
72b2455a PB |
31854 | maybe-configure-stage3-zlib: |
31855 | maybe-all-stage3-zlib: | |
0df3d27f | 31856 | maybe-clean-stage3-zlib: |
72b2455a PB |
31857 | |
31858 | @if zlib-bootstrap | |
31859 | maybe-configure-stage3-zlib: configure-stage3-zlib | |
9cb3fa6f PB |
31860 | configure-stage3-zlib: |
31861 | @$(MAKE) stage3-start | |
31862 | @[ -f zlib/Makefile ] && exit 0 || : ; \ | |
72b2455a PB |
31863 | r=`${PWD_COMMAND}`; export r; \ |
31864 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
31865 | $(STAGE_HOST_EXPORTS) \ | |
31866 | echo Configuring stage 3 in zlib ; \ | |
b00612cc | 31867 | cd $(HOST_SUBDIR)/zlib || exit 1; \ |
72b2455a | 31868 | case $(srcdir) in \ |
b00612cc PB |
31869 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
31870 | *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \ | |
31871 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
72b2455a | 31872 | esac; \ |
b00612cc PB |
31873 | srcdiroption="--srcdir=$${topdir}/zlib"; \ |
31874 | libsrcdir="$$s/zlib"; \ | |
72b2455a PB |
31875 | $(SHELL) $${libsrcdir}/configure \ |
31876 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 31877 | @stage2_werror_flag@ |
72b2455a PB |
31878 | |
31879 | maybe-all-stage3-zlib: all-stage3-zlib | |
31880 | all-stage3-zlib: configure-stage3-zlib | |
9cb3fa6f | 31881 | @$(MAKE) stage3-start |
72b2455a PB |
31882 | @r=`${PWD_COMMAND}`; export r; \ |
31883 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
31884 | $(STAGE_HOST_EXPORTS) \ | |
b00612cc | 31885 | cd $(HOST_SUBDIR)/zlib && \ |
72b2455a PB |
31886 | $(MAKE) $(FLAGS_TO_PASS) \ |
31887 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
9cb3fa6f | 31888 | |
0df3d27f PB |
31889 | |
31890 | maybe-clean-stage3-zlib: clean-stage3-zlib | |
31891 | clean-stage3-zlib: | |
31892 | @[ -f zlib/Makefile ] || [ -f stage3-zlib/Makefile ] \ | |
31893 | || exit 0 ; \ | |
31894 | [ -f zlib/Makefile ] || $(MAKE) stage3-start ; \ | |
b00612cc | 31895 | cd $(HOST_SUBDIR)/zlib && \ |
0df3d27f PB |
31896 | $(MAKE) $(FLAGS_TO_PASS) \ |
31897 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
31898 | clean | |
72b2455a PB |
31899 | @endif zlib-bootstrap |
31900 | ||
31901 | ||
0df3d27f | 31902 | |
72b2455a PB |
31903 | # FIXME: Will not need to be conditional when toplevel bootstrap is the |
31904 | # only possibility, but now it conflicts with no-bootstrap rules | |
31905 | @if gcc-bootstrap | |
31906 | ||
9cb3fa6f PB |
31907 | compare: |
31908 | @if test -f stage2-lean; then \ | |
31909 | echo Cannot compare object files as stage 2 was deleted. ; \ | |
31910 | exit 0 ; \ | |
31911 | fi; \ | |
31912 | [ -f stage_current ] && $(MAKE) `cat stage_current`-end || : ; \ | |
72b2455a PB |
31913 | @r=`${PWD_COMMAND}`; export r; \ |
31914 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
31915 | rm -f .bad_compare ; \ | |
31916 | cd stage3-gcc; \ | |
31917 | files=`find . -name "*$(objext)" -print` ; \ | |
31918 | cd .. ; \ | |
31919 | for file in $${files} ; do \ | |
31920 | f1=$$r/stage2-gcc/$$file; f2=$$r/stage3-gcc/$$file; \ | |
31921 | @do_compare@ > /dev/null 2>&1; \ | |
31922 | test $$? -eq 1 && echo $$file differs >> .bad_compare || true; \ | |
31923 | done ; \ | |
31924 | if [ -f .bad_compare ]; then \ | |
31925 | echo "Bootstrap comparison failure!"; \ | |
31926 | cat .bad_compare; \ | |
31927 | exit 1; \ | |
31928 | else \ | |
31929 | true; \ | |
31930 | fi ; \ | |
31931 | $(STAMP) compare | |
9cb3fa6f | 31932 | @bootstrap_lean@-rm -rf stage2-* ; $(STAMP) stage2-lean |
72b2455a PB |
31933 | |
31934 | ||
31935 | ||
31936 | .PHONY: bootstrap | |
9cb3fa6f | 31937 | bootstrap: stage3-bubble compare all |
72b2455a PB |
31938 | |
31939 | ||
0df3d27f | 31940 | # Rules to wipe a stage and all the following ones, also used for cleanstrap |
72b2455a | 31941 | distclean-stage2:: distclean-stage3 |
0df3d27f | 31942 | .PHONY: distclean-stage3 |
72b2455a PB |
31943 | distclean-stage3:: |
31944 | [ -f stage_current ] && $(MAKE) `cat stage_current`-end || : | |
9cb3fa6f | 31945 | rm -rf stage3-* compare |
72b2455a PB |
31946 | |
31947 | ||
31948 | .PHONY: cleanstrap | |
0df3d27f | 31949 | cleanstrap: distclean bootstrap |
72b2455a PB |
31950 | |
31951 | @endif gcc-bootstrap | |
31952 | ||
31953 | ||
31954 | .PHONY: stage4-start stage4-end | |
31955 | ||
31956 | stage4-start:: | |
9cb3fa6f | 31957 | @[ -f stage_current ] && $(MAKE) `cat stage_current`-end || : ; \ |
72b2455a | 31958 | echo stage4 > stage_current ; \ |
b00612cc PB |
31959 | echo stage4 > stage_last; \ |
31960 | $(mkinstalldirs) $(HOST_SUBDIR) | |
72b2455a | 31961 | @if bfd |
b00612cc PB |
31962 | @cd $(HOST_SUBDIR); [ -d stage4-bfd ] || \ |
31963 | mkdir stage4-bfd; \ | |
31964 | set stage4-bfd bfd ; \ | |
31965 | @CREATE_LINK_TO_DIR@ ; \ | |
31966 | set stage3-bfd prev-bfd ; \ | |
31967 | @CREATE_LINK_TO_DIR@ | |
72b2455a PB |
31968 | @endif bfd |
31969 | @if opcodes | |
b00612cc PB |
31970 | @cd $(HOST_SUBDIR); [ -d stage4-opcodes ] || \ |
31971 | mkdir stage4-opcodes; \ | |
31972 | set stage4-opcodes opcodes ; \ | |
31973 | @CREATE_LINK_TO_DIR@ ; \ | |
31974 | set stage3-opcodes prev-opcodes ; \ | |
31975 | @CREATE_LINK_TO_DIR@ | |
72b2455a PB |
31976 | @endif opcodes |
31977 | @if binutils | |
b00612cc PB |
31978 | @cd $(HOST_SUBDIR); [ -d stage4-binutils ] || \ |
31979 | mkdir stage4-binutils; \ | |
31980 | set stage4-binutils binutils ; \ | |
31981 | @CREATE_LINK_TO_DIR@ ; \ | |
31982 | set stage3-binutils prev-binutils ; \ | |
31983 | @CREATE_LINK_TO_DIR@ | |
72b2455a PB |
31984 | @endif binutils |
31985 | @if gas | |
b00612cc PB |
31986 | @cd $(HOST_SUBDIR); [ -d stage4-gas ] || \ |
31987 | mkdir stage4-gas; \ | |
31988 | set stage4-gas gas ; \ | |
31989 | @CREATE_LINK_TO_DIR@ ; \ | |
31990 | set stage3-gas prev-gas ; \ | |
31991 | @CREATE_LINK_TO_DIR@ | |
72b2455a PB |
31992 | @endif gas |
31993 | @if gcc | |
b00612cc PB |
31994 | @cd $(HOST_SUBDIR); [ -d stage4-gcc ] || \ |
31995 | mkdir stage4-gcc; \ | |
31996 | set stage4-gcc gcc ; \ | |
31997 | @CREATE_LINK_TO_DIR@ ; \ | |
31998 | set stage3-gcc prev-gcc ; \ | |
31999 | @CREATE_LINK_TO_DIR@ | |
72b2455a PB |
32000 | @endif gcc |
32001 | @if intl | |
b00612cc PB |
32002 | @cd $(HOST_SUBDIR); [ -d stage4-intl ] || \ |
32003 | mkdir stage4-intl; \ | |
32004 | set stage4-intl intl ; \ | |
32005 | @CREATE_LINK_TO_DIR@ ; \ | |
32006 | set stage3-intl prev-intl ; \ | |
32007 | @CREATE_LINK_TO_DIR@ | |
72b2455a PB |
32008 | @endif intl |
32009 | @if ld | |
b00612cc PB |
32010 | @cd $(HOST_SUBDIR); [ -d stage4-ld ] || \ |
32011 | mkdir stage4-ld; \ | |
32012 | set stage4-ld ld ; \ | |
32013 | @CREATE_LINK_TO_DIR@ ; \ | |
32014 | set stage3-ld prev-ld ; \ | |
32015 | @CREATE_LINK_TO_DIR@ | |
72b2455a PB |
32016 | @endif ld |
32017 | @if libcpp | |
b00612cc PB |
32018 | @cd $(HOST_SUBDIR); [ -d stage4-libcpp ] || \ |
32019 | mkdir stage4-libcpp; \ | |
32020 | set stage4-libcpp libcpp ; \ | |
32021 | @CREATE_LINK_TO_DIR@ ; \ | |
32022 | set stage3-libcpp prev-libcpp ; \ | |
32023 | @CREATE_LINK_TO_DIR@ | |
72b2455a | 32024 | @endif libcpp |
72b2455a | 32025 | @if libiberty |
b00612cc PB |
32026 | @cd $(HOST_SUBDIR); [ -d stage4-libiberty ] || \ |
32027 | mkdir stage4-libiberty; \ | |
32028 | set stage4-libiberty libiberty ; \ | |
32029 | @CREATE_LINK_TO_DIR@ ; \ | |
32030 | set stage3-libiberty prev-libiberty ; \ | |
32031 | @CREATE_LINK_TO_DIR@ | |
72b2455a PB |
32032 | @endif libiberty |
32033 | @if zlib | |
b00612cc PB |
32034 | @cd $(HOST_SUBDIR); [ -d stage4-zlib ] || \ |
32035 | mkdir stage4-zlib; \ | |
32036 | set stage4-zlib zlib ; \ | |
32037 | @CREATE_LINK_TO_DIR@ ; \ | |
32038 | set stage3-zlib prev-zlib ; \ | |
32039 | @CREATE_LINK_TO_DIR@ | |
72b2455a PB |
32040 | @endif zlib |
32041 | ||
32042 | stage4-end:: | |
9cb3fa6f | 32043 | @rm -f stage_current |
72b2455a | 32044 | @if bfd |
b00612cc PB |
32045 | @cd $(HOST_SUBDIR); set bfd stage4-bfd ; \ |
32046 | @UNDO_LINK_TO_DIR@ ; \ | |
32047 | set prev-bfd stage3-bfd ; \ | |
32048 | @UNDO_LINK_TO_DIR@ | |
72b2455a PB |
32049 | @endif bfd |
32050 | @if opcodes | |
b00612cc PB |
32051 | @cd $(HOST_SUBDIR); set opcodes stage4-opcodes ; \ |
32052 | @UNDO_LINK_TO_DIR@ ; \ | |
32053 | set prev-opcodes stage3-opcodes ; \ | |
32054 | @UNDO_LINK_TO_DIR@ | |
72b2455a PB |
32055 | @endif opcodes |
32056 | @if binutils | |
b00612cc PB |
32057 | @cd $(HOST_SUBDIR); set binutils stage4-binutils ; \ |
32058 | @UNDO_LINK_TO_DIR@ ; \ | |
32059 | set prev-binutils stage3-binutils ; \ | |
32060 | @UNDO_LINK_TO_DIR@ | |
72b2455a PB |
32061 | @endif binutils |
32062 | @if gas | |
b00612cc PB |
32063 | @cd $(HOST_SUBDIR); set gas stage4-gas ; \ |
32064 | @UNDO_LINK_TO_DIR@ ; \ | |
32065 | set prev-gas stage3-gas ; \ | |
32066 | @UNDO_LINK_TO_DIR@ | |
72b2455a PB |
32067 | @endif gas |
32068 | @if gcc | |
b00612cc PB |
32069 | @cd $(HOST_SUBDIR); set gcc stage4-gcc ; \ |
32070 | @UNDO_LINK_TO_DIR@ ; \ | |
32071 | set prev-gcc stage3-gcc ; \ | |
32072 | @UNDO_LINK_TO_DIR@ | |
72b2455a PB |
32073 | @endif gcc |
32074 | @if intl | |
b00612cc PB |
32075 | @cd $(HOST_SUBDIR); set intl stage4-intl ; \ |
32076 | @UNDO_LINK_TO_DIR@ ; \ | |
32077 | set prev-intl stage3-intl ; \ | |
32078 | @UNDO_LINK_TO_DIR@ | |
72b2455a PB |
32079 | @endif intl |
32080 | @if ld | |
b00612cc PB |
32081 | @cd $(HOST_SUBDIR); set ld stage4-ld ; \ |
32082 | @UNDO_LINK_TO_DIR@ ; \ | |
32083 | set prev-ld stage3-ld ; \ | |
32084 | @UNDO_LINK_TO_DIR@ | |
72b2455a PB |
32085 | @endif ld |
32086 | @if libcpp | |
b00612cc PB |
32087 | @cd $(HOST_SUBDIR); set libcpp stage4-libcpp ; \ |
32088 | @UNDO_LINK_TO_DIR@ ; \ | |
32089 | set prev-libcpp stage3-libcpp ; \ | |
32090 | @UNDO_LINK_TO_DIR@ | |
72b2455a | 32091 | @endif libcpp |
72b2455a | 32092 | @if libiberty |
b00612cc PB |
32093 | @cd $(HOST_SUBDIR); set libiberty stage4-libiberty ; \ |
32094 | @UNDO_LINK_TO_DIR@ ; \ | |
32095 | set prev-libiberty stage3-libiberty ; \ | |
32096 | @UNDO_LINK_TO_DIR@ | |
72b2455a PB |
32097 | @endif libiberty |
32098 | @if zlib | |
b00612cc PB |
32099 | @cd $(HOST_SUBDIR); set zlib stage4-zlib ; \ |
32100 | @UNDO_LINK_TO_DIR@ ; \ | |
32101 | set prev-zlib stage3-zlib ; \ | |
32102 | @UNDO_LINK_TO_DIR@ | |
72b2455a PB |
32103 | @endif zlib |
32104 | ||
32105 | # Bubble a bugfix through all the stages up to stage 4. They | |
32106 | # are remade, but not reconfigured. The next stage (if any) will not | |
32107 | # be reconfigured as well. | |
32108 | .PHONY: stage4-bubble | |
32109 | stage4-bubble:: stage3-bubble | |
9cb3fa6f PB |
32110 | @bootstrap_lean@-rm -rf stage2-* ; $(STAMP) stage2-lean |
32111 | @if test -f stage4-lean || test -f stage3-lean ; then \ | |
32112 | echo Skipping rebuild of stage4 ; \ | |
32113 | else \ | |
0df3d27f | 32114 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) NOTPARALLEL= all-stage4; \ |
9cb3fa6f | 32115 | fi |
72b2455a | 32116 | |
0df3d27f | 32117 | .PHONY: all-stage4 clean-stage4 |
72b2455a PB |
32118 | all-stage4: \ |
32119 | maybe-all-stage4-bfd \ | |
32120 | maybe-all-stage4-opcodes \ | |
d3ed111c | 32121 | maybe-all-stage4-binutils \ |
72b2455a PB |
32122 | maybe-all-stage4-gas \ |
32123 | maybe-all-stage4-gcc \ | |
32124 | maybe-all-stage4-intl \ | |
32125 | maybe-all-stage4-ld \ | |
32126 | maybe-all-stage4-libcpp \ | |
72b2455a | 32127 | maybe-all-stage4-libiberty \ |
b00612cc | 32128 | maybe-all-stage4-zlib |
72b2455a | 32129 | |
0df3d27f PB |
32130 | do-clean: clean-stage4 |
32131 | clean-stage4: \ | |
32132 | maybe-clean-stage4-bfd \ | |
32133 | maybe-clean-stage4-opcodes \ | |
d3ed111c | 32134 | maybe-clean-stage4-binutils \ |
0df3d27f PB |
32135 | maybe-clean-stage4-gas \ |
32136 | maybe-clean-stage4-gcc \ | |
32137 | maybe-clean-stage4-intl \ | |
32138 | maybe-clean-stage4-ld \ | |
32139 | maybe-clean-stage4-libcpp \ | |
0df3d27f | 32140 | maybe-clean-stage4-libiberty \ |
b00612cc | 32141 | maybe-clean-stage4-zlib |
0df3d27f | 32142 | |
72b2455a | 32143 | |
9cb3fa6f PB |
32144 | .PHONY: configure-stage4-bfd maybe-configure-stage4-bfd |
32145 | .PHONY: all-stage4-bfd maybe-all-stage4-bfd | |
0df3d27f | 32146 | .PHONY: clean-stage4-bfd maybe-clean-stage4-bfd |
9cb3fa6f | 32147 | |
72b2455a PB |
32148 | maybe-configure-stage4-bfd: |
32149 | maybe-all-stage4-bfd: | |
0df3d27f | 32150 | maybe-clean-stage4-bfd: |
72b2455a PB |
32151 | |
32152 | @if bfd-bootstrap | |
32153 | maybe-configure-stage4-bfd: configure-stage4-bfd | |
9cb3fa6f PB |
32154 | configure-stage4-bfd: |
32155 | @$(MAKE) stage4-start | |
32156 | @[ -f bfd/Makefile ] && exit 0 || : ; \ | |
72b2455a PB |
32157 | r=`${PWD_COMMAND}`; export r; \ |
32158 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32159 | $(STAGE_HOST_EXPORTS) \ | |
32160 | echo Configuring stage 4 in bfd ; \ | |
b00612cc | 32161 | cd $(HOST_SUBDIR)/bfd || exit 1; \ |
72b2455a | 32162 | case $(srcdir) in \ |
b00612cc PB |
32163 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
32164 | *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \ | |
32165 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
72b2455a | 32166 | esac; \ |
b00612cc PB |
32167 | srcdiroption="--srcdir=$${topdir}/bfd"; \ |
32168 | libsrcdir="$$s/bfd"; \ | |
72b2455a PB |
32169 | $(SHELL) $${libsrcdir}/configure \ |
32170 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 32171 | @stage2_werror_flag@ |
72b2455a PB |
32172 | |
32173 | maybe-all-stage4-bfd: all-stage4-bfd | |
32174 | all-stage4-bfd: configure-stage4-bfd | |
9cb3fa6f | 32175 | @$(MAKE) stage4-start |
72b2455a PB |
32176 | @r=`${PWD_COMMAND}`; export r; \ |
32177 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32178 | $(STAGE_HOST_EXPORTS) \ | |
b00612cc | 32179 | cd $(HOST_SUBDIR)/bfd && \ |
72b2455a PB |
32180 | $(MAKE) $(FLAGS_TO_PASS) \ |
32181 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
9cb3fa6f | 32182 | |
0df3d27f PB |
32183 | |
32184 | maybe-clean-stage4-bfd: clean-stage4-bfd | |
32185 | clean-stage4-bfd: | |
32186 | @[ -f bfd/Makefile ] || [ -f stage4-bfd/Makefile ] \ | |
32187 | || exit 0 ; \ | |
32188 | [ -f bfd/Makefile ] || $(MAKE) stage4-start ; \ | |
b00612cc | 32189 | cd $(HOST_SUBDIR)/bfd && \ |
0df3d27f PB |
32190 | $(MAKE) $(FLAGS_TO_PASS) \ |
32191 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
32192 | clean | |
72b2455a PB |
32193 | @endif bfd-bootstrap |
32194 | ||
0df3d27f | 32195 | |
9cb3fa6f PB |
32196 | .PHONY: configure-stage4-opcodes maybe-configure-stage4-opcodes |
32197 | .PHONY: all-stage4-opcodes maybe-all-stage4-opcodes | |
0df3d27f | 32198 | .PHONY: clean-stage4-opcodes maybe-clean-stage4-opcodes |
9cb3fa6f | 32199 | |
72b2455a PB |
32200 | maybe-configure-stage4-opcodes: |
32201 | maybe-all-stage4-opcodes: | |
0df3d27f | 32202 | maybe-clean-stage4-opcodes: |
72b2455a PB |
32203 | |
32204 | @if opcodes-bootstrap | |
32205 | maybe-configure-stage4-opcodes: configure-stage4-opcodes | |
9cb3fa6f PB |
32206 | configure-stage4-opcodes: |
32207 | @$(MAKE) stage4-start | |
32208 | @[ -f opcodes/Makefile ] && exit 0 || : ; \ | |
72b2455a PB |
32209 | r=`${PWD_COMMAND}`; export r; \ |
32210 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32211 | $(STAGE_HOST_EXPORTS) \ | |
32212 | echo Configuring stage 4 in opcodes ; \ | |
b00612cc | 32213 | cd $(HOST_SUBDIR)/opcodes || exit 1; \ |
72b2455a | 32214 | case $(srcdir) in \ |
b00612cc PB |
32215 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
32216 | *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \ | |
32217 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
72b2455a | 32218 | esac; \ |
b00612cc PB |
32219 | srcdiroption="--srcdir=$${topdir}/opcodes"; \ |
32220 | libsrcdir="$$s/opcodes"; \ | |
72b2455a PB |
32221 | $(SHELL) $${libsrcdir}/configure \ |
32222 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 32223 | @stage2_werror_flag@ |
72b2455a PB |
32224 | |
32225 | maybe-all-stage4-opcodes: all-stage4-opcodes | |
32226 | all-stage4-opcodes: configure-stage4-opcodes | |
9cb3fa6f | 32227 | @$(MAKE) stage4-start |
72b2455a PB |
32228 | @r=`${PWD_COMMAND}`; export r; \ |
32229 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32230 | $(STAGE_HOST_EXPORTS) \ | |
b00612cc | 32231 | cd $(HOST_SUBDIR)/opcodes && \ |
72b2455a PB |
32232 | $(MAKE) $(FLAGS_TO_PASS) \ |
32233 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
9cb3fa6f | 32234 | |
0df3d27f PB |
32235 | |
32236 | maybe-clean-stage4-opcodes: clean-stage4-opcodes | |
32237 | clean-stage4-opcodes: | |
32238 | @[ -f opcodes/Makefile ] || [ -f stage4-opcodes/Makefile ] \ | |
32239 | || exit 0 ; \ | |
32240 | [ -f opcodes/Makefile ] || $(MAKE) stage4-start ; \ | |
b00612cc | 32241 | cd $(HOST_SUBDIR)/opcodes && \ |
0df3d27f PB |
32242 | $(MAKE) $(FLAGS_TO_PASS) \ |
32243 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
32244 | clean | |
72b2455a PB |
32245 | @endif opcodes-bootstrap |
32246 | ||
0df3d27f | 32247 | |
9cb3fa6f PB |
32248 | .PHONY: configure-stage4-binutils maybe-configure-stage4-binutils |
32249 | .PHONY: all-stage4-binutils maybe-all-stage4-binutils | |
0df3d27f | 32250 | .PHONY: clean-stage4-binutils maybe-clean-stage4-binutils |
9cb3fa6f | 32251 | |
72b2455a PB |
32252 | maybe-configure-stage4-binutils: |
32253 | maybe-all-stage4-binutils: | |
0df3d27f | 32254 | maybe-clean-stage4-binutils: |
72b2455a PB |
32255 | |
32256 | @if binutils-bootstrap | |
32257 | maybe-configure-stage4-binutils: configure-stage4-binutils | |
9cb3fa6f PB |
32258 | configure-stage4-binutils: |
32259 | @$(MAKE) stage4-start | |
32260 | @[ -f binutils/Makefile ] && exit 0 || : ; \ | |
72b2455a PB |
32261 | r=`${PWD_COMMAND}`; export r; \ |
32262 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32263 | $(STAGE_HOST_EXPORTS) \ | |
32264 | echo Configuring stage 4 in binutils ; \ | |
b00612cc | 32265 | cd $(HOST_SUBDIR)/binutils || exit 1; \ |
72b2455a | 32266 | case $(srcdir) in \ |
b00612cc PB |
32267 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
32268 | *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \ | |
32269 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
72b2455a | 32270 | esac; \ |
b00612cc PB |
32271 | srcdiroption="--srcdir=$${topdir}/binutils"; \ |
32272 | libsrcdir="$$s/binutils"; \ | |
72b2455a PB |
32273 | $(SHELL) $${libsrcdir}/configure \ |
32274 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 32275 | @stage2_werror_flag@ |
72b2455a PB |
32276 | |
32277 | maybe-all-stage4-binutils: all-stage4-binutils | |
32278 | all-stage4-binutils: configure-stage4-binutils | |
9cb3fa6f | 32279 | @$(MAKE) stage4-start |
72b2455a PB |
32280 | @r=`${PWD_COMMAND}`; export r; \ |
32281 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32282 | $(STAGE_HOST_EXPORTS) \ | |
b00612cc | 32283 | cd $(HOST_SUBDIR)/binutils && \ |
72b2455a PB |
32284 | $(MAKE) $(FLAGS_TO_PASS) \ |
32285 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
9cb3fa6f | 32286 | |
0df3d27f PB |
32287 | |
32288 | maybe-clean-stage4-binutils: clean-stage4-binutils | |
32289 | clean-stage4-binutils: | |
32290 | @[ -f binutils/Makefile ] || [ -f stage4-binutils/Makefile ] \ | |
32291 | || exit 0 ; \ | |
32292 | [ -f binutils/Makefile ] || $(MAKE) stage4-start ; \ | |
b00612cc | 32293 | cd $(HOST_SUBDIR)/binutils && \ |
0df3d27f PB |
32294 | $(MAKE) $(FLAGS_TO_PASS) \ |
32295 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
32296 | clean | |
72b2455a PB |
32297 | @endif binutils-bootstrap |
32298 | ||
0df3d27f | 32299 | |
9cb3fa6f PB |
32300 | .PHONY: configure-stage4-gas maybe-configure-stage4-gas |
32301 | .PHONY: all-stage4-gas maybe-all-stage4-gas | |
0df3d27f | 32302 | .PHONY: clean-stage4-gas maybe-clean-stage4-gas |
9cb3fa6f | 32303 | |
72b2455a PB |
32304 | maybe-configure-stage4-gas: |
32305 | maybe-all-stage4-gas: | |
0df3d27f | 32306 | maybe-clean-stage4-gas: |
72b2455a PB |
32307 | |
32308 | @if gas-bootstrap | |
32309 | maybe-configure-stage4-gas: configure-stage4-gas | |
9cb3fa6f PB |
32310 | configure-stage4-gas: |
32311 | @$(MAKE) stage4-start | |
32312 | @[ -f gas/Makefile ] && exit 0 || : ; \ | |
72b2455a PB |
32313 | r=`${PWD_COMMAND}`; export r; \ |
32314 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32315 | $(STAGE_HOST_EXPORTS) \ | |
32316 | echo Configuring stage 4 in gas ; \ | |
b00612cc | 32317 | cd $(HOST_SUBDIR)/gas || exit 1; \ |
72b2455a | 32318 | case $(srcdir) in \ |
b00612cc PB |
32319 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
32320 | *) topdir=`echo $(HOST_SUBDIR)/gas/ | \ | |
32321 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
72b2455a | 32322 | esac; \ |
b00612cc PB |
32323 | srcdiroption="--srcdir=$${topdir}/gas"; \ |
32324 | libsrcdir="$$s/gas"; \ | |
72b2455a PB |
32325 | $(SHELL) $${libsrcdir}/configure \ |
32326 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 32327 | @stage2_werror_flag@ |
72b2455a PB |
32328 | |
32329 | maybe-all-stage4-gas: all-stage4-gas | |
32330 | all-stage4-gas: configure-stage4-gas | |
9cb3fa6f | 32331 | @$(MAKE) stage4-start |
72b2455a PB |
32332 | @r=`${PWD_COMMAND}`; export r; \ |
32333 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32334 | $(STAGE_HOST_EXPORTS) \ | |
b00612cc | 32335 | cd $(HOST_SUBDIR)/gas && \ |
72b2455a PB |
32336 | $(MAKE) $(FLAGS_TO_PASS) \ |
32337 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
9cb3fa6f | 32338 | |
0df3d27f PB |
32339 | |
32340 | maybe-clean-stage4-gas: clean-stage4-gas | |
32341 | clean-stage4-gas: | |
32342 | @[ -f gas/Makefile ] || [ -f stage4-gas/Makefile ] \ | |
32343 | || exit 0 ; \ | |
32344 | [ -f gas/Makefile ] || $(MAKE) stage4-start ; \ | |
b00612cc | 32345 | cd $(HOST_SUBDIR)/gas && \ |
0df3d27f PB |
32346 | $(MAKE) $(FLAGS_TO_PASS) \ |
32347 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
32348 | clean | |
72b2455a PB |
32349 | @endif gas-bootstrap |
32350 | ||
0df3d27f | 32351 | |
9cb3fa6f PB |
32352 | .PHONY: configure-stage4-gcc maybe-configure-stage4-gcc |
32353 | .PHONY: all-stage4-gcc maybe-all-stage4-gcc | |
0df3d27f | 32354 | .PHONY: clean-stage4-gcc maybe-clean-stage4-gcc |
9cb3fa6f | 32355 | |
72b2455a PB |
32356 | maybe-configure-stage4-gcc: |
32357 | maybe-all-stage4-gcc: | |
0df3d27f | 32358 | maybe-clean-stage4-gcc: |
72b2455a PB |
32359 | |
32360 | @if gcc-bootstrap | |
32361 | maybe-configure-stage4-gcc: configure-stage4-gcc | |
9cb3fa6f PB |
32362 | configure-stage4-gcc: |
32363 | @$(MAKE) stage4-start | |
32364 | @[ -f gcc/Makefile ] && exit 0 || : ; \ | |
72b2455a PB |
32365 | r=`${PWD_COMMAND}`; export r; \ |
32366 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32367 | $(STAGE_HOST_EXPORTS) \ | |
32368 | echo Configuring stage 4 in gcc ; \ | |
b00612cc | 32369 | cd $(HOST_SUBDIR)/gcc || exit 1; \ |
72b2455a | 32370 | case $(srcdir) in \ |
b00612cc PB |
32371 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
32372 | *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \ | |
32373 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
72b2455a | 32374 | esac; \ |
b00612cc PB |
32375 | srcdiroption="--srcdir=$${topdir}/gcc"; \ |
32376 | libsrcdir="$$s/gcc"; \ | |
72b2455a PB |
32377 | $(SHELL) $${libsrcdir}/configure \ |
32378 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 32379 | @stage2_werror_flag@ |
72b2455a PB |
32380 | |
32381 | maybe-all-stage4-gcc: all-stage4-gcc | |
32382 | all-stage4-gcc: configure-stage4-gcc | |
9cb3fa6f | 32383 | @$(MAKE) stage4-start |
72b2455a PB |
32384 | @r=`${PWD_COMMAND}`; export r; \ |
32385 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32386 | $(STAGE_HOST_EXPORTS) \ | |
b00612cc | 32387 | cd $(HOST_SUBDIR)/gcc && \ |
72b2455a PB |
32388 | $(MAKE) $(FLAGS_TO_PASS) \ |
32389 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
9cb3fa6f | 32390 | $(EXTRA_GCC_FLAGS) |
0df3d27f PB |
32391 | |
32392 | maybe-clean-stage4-gcc: clean-stage4-gcc | |
32393 | clean-stage4-gcc: | |
32394 | @[ -f gcc/Makefile ] || [ -f stage4-gcc/Makefile ] \ | |
32395 | || exit 0 ; \ | |
32396 | [ -f gcc/Makefile ] || $(MAKE) stage4-start ; \ | |
b00612cc | 32397 | cd $(HOST_SUBDIR)/gcc && \ |
0df3d27f PB |
32398 | $(MAKE) $(FLAGS_TO_PASS) \ |
32399 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
32400 | $(EXTRA_GCC_FLAGS) clean | |
72b2455a PB |
32401 | @endif gcc-bootstrap |
32402 | ||
0df3d27f | 32403 | |
9cb3fa6f PB |
32404 | .PHONY: configure-stage4-intl maybe-configure-stage4-intl |
32405 | .PHONY: all-stage4-intl maybe-all-stage4-intl | |
0df3d27f | 32406 | .PHONY: clean-stage4-intl maybe-clean-stage4-intl |
9cb3fa6f | 32407 | |
72b2455a PB |
32408 | maybe-configure-stage4-intl: |
32409 | maybe-all-stage4-intl: | |
0df3d27f | 32410 | maybe-clean-stage4-intl: |
72b2455a PB |
32411 | |
32412 | @if intl-bootstrap | |
32413 | maybe-configure-stage4-intl: configure-stage4-intl | |
9cb3fa6f PB |
32414 | configure-stage4-intl: |
32415 | @$(MAKE) stage4-start | |
32416 | @[ -f intl/Makefile ] && exit 0 || : ; \ | |
72b2455a PB |
32417 | r=`${PWD_COMMAND}`; export r; \ |
32418 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32419 | $(STAGE_HOST_EXPORTS) \ | |
32420 | echo Configuring stage 4 in intl ; \ | |
b00612cc | 32421 | cd $(HOST_SUBDIR)/intl || exit 1; \ |
72b2455a | 32422 | case $(srcdir) in \ |
b00612cc PB |
32423 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
32424 | *) topdir=`echo $(HOST_SUBDIR)/intl/ | \ | |
32425 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
72b2455a | 32426 | esac; \ |
b00612cc PB |
32427 | srcdiroption="--srcdir=$${topdir}/intl"; \ |
32428 | libsrcdir="$$s/intl"; \ | |
72b2455a PB |
32429 | $(SHELL) $${libsrcdir}/configure \ |
32430 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 32431 | @stage2_werror_flag@ |
72b2455a PB |
32432 | |
32433 | maybe-all-stage4-intl: all-stage4-intl | |
32434 | all-stage4-intl: configure-stage4-intl | |
9cb3fa6f | 32435 | @$(MAKE) stage4-start |
72b2455a PB |
32436 | @r=`${PWD_COMMAND}`; export r; \ |
32437 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32438 | $(STAGE_HOST_EXPORTS) \ | |
b00612cc | 32439 | cd $(HOST_SUBDIR)/intl && \ |
72b2455a PB |
32440 | $(MAKE) $(FLAGS_TO_PASS) \ |
32441 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
9cb3fa6f | 32442 | |
0df3d27f PB |
32443 | |
32444 | maybe-clean-stage4-intl: clean-stage4-intl | |
32445 | clean-stage4-intl: | |
32446 | @[ -f intl/Makefile ] || [ -f stage4-intl/Makefile ] \ | |
32447 | || exit 0 ; \ | |
32448 | [ -f intl/Makefile ] || $(MAKE) stage4-start ; \ | |
b00612cc | 32449 | cd $(HOST_SUBDIR)/intl && \ |
0df3d27f PB |
32450 | $(MAKE) $(FLAGS_TO_PASS) \ |
32451 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
32452 | clean | |
72b2455a PB |
32453 | @endif intl-bootstrap |
32454 | ||
0df3d27f | 32455 | |
9cb3fa6f PB |
32456 | .PHONY: configure-stage4-ld maybe-configure-stage4-ld |
32457 | .PHONY: all-stage4-ld maybe-all-stage4-ld | |
0df3d27f | 32458 | .PHONY: clean-stage4-ld maybe-clean-stage4-ld |
9cb3fa6f | 32459 | |
72b2455a PB |
32460 | maybe-configure-stage4-ld: |
32461 | maybe-all-stage4-ld: | |
0df3d27f | 32462 | maybe-clean-stage4-ld: |
72b2455a PB |
32463 | |
32464 | @if ld-bootstrap | |
32465 | maybe-configure-stage4-ld: configure-stage4-ld | |
9cb3fa6f PB |
32466 | configure-stage4-ld: |
32467 | @$(MAKE) stage4-start | |
32468 | @[ -f ld/Makefile ] && exit 0 || : ; \ | |
72b2455a PB |
32469 | r=`${PWD_COMMAND}`; export r; \ |
32470 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32471 | $(STAGE_HOST_EXPORTS) \ | |
32472 | echo Configuring stage 4 in ld ; \ | |
b00612cc | 32473 | cd $(HOST_SUBDIR)/ld || exit 1; \ |
72b2455a | 32474 | case $(srcdir) in \ |
b00612cc PB |
32475 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
32476 | *) topdir=`echo $(HOST_SUBDIR)/ld/ | \ | |
32477 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
72b2455a | 32478 | esac; \ |
b00612cc PB |
32479 | srcdiroption="--srcdir=$${topdir}/ld"; \ |
32480 | libsrcdir="$$s/ld"; \ | |
72b2455a PB |
32481 | $(SHELL) $${libsrcdir}/configure \ |
32482 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 32483 | @stage2_werror_flag@ |
72b2455a PB |
32484 | |
32485 | maybe-all-stage4-ld: all-stage4-ld | |
32486 | all-stage4-ld: configure-stage4-ld | |
9cb3fa6f | 32487 | @$(MAKE) stage4-start |
72b2455a PB |
32488 | @r=`${PWD_COMMAND}`; export r; \ |
32489 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32490 | $(STAGE_HOST_EXPORTS) \ | |
b00612cc | 32491 | cd $(HOST_SUBDIR)/ld && \ |
72b2455a PB |
32492 | $(MAKE) $(FLAGS_TO_PASS) \ |
32493 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
9cb3fa6f | 32494 | |
0df3d27f PB |
32495 | |
32496 | maybe-clean-stage4-ld: clean-stage4-ld | |
32497 | clean-stage4-ld: | |
32498 | @[ -f ld/Makefile ] || [ -f stage4-ld/Makefile ] \ | |
32499 | || exit 0 ; \ | |
32500 | [ -f ld/Makefile ] || $(MAKE) stage4-start ; \ | |
b00612cc | 32501 | cd $(HOST_SUBDIR)/ld && \ |
0df3d27f PB |
32502 | $(MAKE) $(FLAGS_TO_PASS) \ |
32503 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
32504 | clean | |
72b2455a PB |
32505 | @endif ld-bootstrap |
32506 | ||
0df3d27f | 32507 | |
9cb3fa6f PB |
32508 | .PHONY: configure-stage4-libcpp maybe-configure-stage4-libcpp |
32509 | .PHONY: all-stage4-libcpp maybe-all-stage4-libcpp | |
0df3d27f | 32510 | .PHONY: clean-stage4-libcpp maybe-clean-stage4-libcpp |
9cb3fa6f | 32511 | |
72b2455a PB |
32512 | maybe-configure-stage4-libcpp: |
32513 | maybe-all-stage4-libcpp: | |
0df3d27f | 32514 | maybe-clean-stage4-libcpp: |
72b2455a PB |
32515 | |
32516 | @if libcpp-bootstrap | |
32517 | maybe-configure-stage4-libcpp: configure-stage4-libcpp | |
9cb3fa6f PB |
32518 | configure-stage4-libcpp: |
32519 | @$(MAKE) stage4-start | |
32520 | @[ -f libcpp/Makefile ] && exit 0 || : ; \ | |
72b2455a PB |
32521 | r=`${PWD_COMMAND}`; export r; \ |
32522 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32523 | $(STAGE_HOST_EXPORTS) \ | |
32524 | echo Configuring stage 4 in libcpp ; \ | |
b00612cc | 32525 | cd $(HOST_SUBDIR)/libcpp || exit 1; \ |
72b2455a | 32526 | case $(srcdir) in \ |
b00612cc PB |
32527 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
32528 | *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \ | |
32529 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
72b2455a | 32530 | esac; \ |
b00612cc PB |
32531 | srcdiroption="--srcdir=$${topdir}/libcpp"; \ |
32532 | libsrcdir="$$s/libcpp"; \ | |
72b2455a PB |
32533 | $(SHELL) $${libsrcdir}/configure \ |
32534 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 32535 | @stage2_werror_flag@ |
72b2455a PB |
32536 | |
32537 | maybe-all-stage4-libcpp: all-stage4-libcpp | |
32538 | all-stage4-libcpp: configure-stage4-libcpp | |
9cb3fa6f | 32539 | @$(MAKE) stage4-start |
72b2455a PB |
32540 | @r=`${PWD_COMMAND}`; export r; \ |
32541 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32542 | $(STAGE_HOST_EXPORTS) \ | |
b00612cc | 32543 | cd $(HOST_SUBDIR)/libcpp && \ |
72b2455a PB |
32544 | $(MAKE) $(FLAGS_TO_PASS) \ |
32545 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
9cb3fa6f | 32546 | |
0df3d27f PB |
32547 | |
32548 | maybe-clean-stage4-libcpp: clean-stage4-libcpp | |
32549 | clean-stage4-libcpp: | |
32550 | @[ -f libcpp/Makefile ] || [ -f stage4-libcpp/Makefile ] \ | |
32551 | || exit 0 ; \ | |
32552 | [ -f libcpp/Makefile ] || $(MAKE) stage4-start ; \ | |
b00612cc | 32553 | cd $(HOST_SUBDIR)/libcpp && \ |
0df3d27f PB |
32554 | $(MAKE) $(FLAGS_TO_PASS) \ |
32555 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
32556 | clean | |
72b2455a PB |
32557 | @endif libcpp-bootstrap |
32558 | ||
0df3d27f | 32559 | |
9cb3fa6f PB |
32560 | .PHONY: configure-stage4-libiberty maybe-configure-stage4-libiberty |
32561 | .PHONY: all-stage4-libiberty maybe-all-stage4-libiberty | |
0df3d27f | 32562 | .PHONY: clean-stage4-libiberty maybe-clean-stage4-libiberty |
9cb3fa6f | 32563 | |
72b2455a PB |
32564 | maybe-configure-stage4-libiberty: |
32565 | maybe-all-stage4-libiberty: | |
0df3d27f | 32566 | maybe-clean-stage4-libiberty: |
72b2455a PB |
32567 | |
32568 | @if libiberty-bootstrap | |
32569 | maybe-configure-stage4-libiberty: configure-stage4-libiberty | |
9cb3fa6f PB |
32570 | configure-stage4-libiberty: |
32571 | @$(MAKE) stage4-start | |
32572 | @[ -f libiberty/Makefile ] && exit 0 || : ; \ | |
72b2455a PB |
32573 | r=`${PWD_COMMAND}`; export r; \ |
32574 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32575 | $(STAGE_HOST_EXPORTS) \ | |
32576 | echo Configuring stage 4 in libiberty ; \ | |
b00612cc | 32577 | cd $(HOST_SUBDIR)/libiberty || exit 1; \ |
72b2455a | 32578 | case $(srcdir) in \ |
b00612cc PB |
32579 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
32580 | *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \ | |
32581 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
72b2455a | 32582 | esac; \ |
b00612cc PB |
32583 | srcdiroption="--srcdir=$${topdir}/libiberty"; \ |
32584 | libsrcdir="$$s/libiberty"; \ | |
72b2455a PB |
32585 | $(SHELL) $${libsrcdir}/configure \ |
32586 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 32587 | @stage2_werror_flag@ |
72b2455a PB |
32588 | |
32589 | maybe-all-stage4-libiberty: all-stage4-libiberty | |
32590 | all-stage4-libiberty: configure-stage4-libiberty | |
9cb3fa6f | 32591 | @$(MAKE) stage4-start |
72b2455a PB |
32592 | @r=`${PWD_COMMAND}`; export r; \ |
32593 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32594 | $(STAGE_HOST_EXPORTS) \ | |
b00612cc | 32595 | cd $(HOST_SUBDIR)/libiberty && \ |
72b2455a PB |
32596 | $(MAKE) $(FLAGS_TO_PASS) \ |
32597 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
9cb3fa6f | 32598 | |
0df3d27f PB |
32599 | |
32600 | maybe-clean-stage4-libiberty: clean-stage4-libiberty | |
32601 | clean-stage4-libiberty: | |
32602 | @[ -f libiberty/Makefile ] || [ -f stage4-libiberty/Makefile ] \ | |
32603 | || exit 0 ; \ | |
32604 | [ -f libiberty/Makefile ] || $(MAKE) stage4-start ; \ | |
b00612cc | 32605 | cd $(HOST_SUBDIR)/libiberty && \ |
0df3d27f PB |
32606 | $(MAKE) $(FLAGS_TO_PASS) \ |
32607 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
32608 | clean | |
72b2455a PB |
32609 | @endif libiberty-bootstrap |
32610 | ||
0df3d27f | 32611 | |
9cb3fa6f PB |
32612 | .PHONY: configure-stage4-zlib maybe-configure-stage4-zlib |
32613 | .PHONY: all-stage4-zlib maybe-all-stage4-zlib | |
0df3d27f | 32614 | .PHONY: clean-stage4-zlib maybe-clean-stage4-zlib |
9cb3fa6f | 32615 | |
72b2455a PB |
32616 | maybe-configure-stage4-zlib: |
32617 | maybe-all-stage4-zlib: | |
0df3d27f | 32618 | maybe-clean-stage4-zlib: |
72b2455a PB |
32619 | |
32620 | @if zlib-bootstrap | |
32621 | maybe-configure-stage4-zlib: configure-stage4-zlib | |
9cb3fa6f PB |
32622 | configure-stage4-zlib: |
32623 | @$(MAKE) stage4-start | |
32624 | @[ -f zlib/Makefile ] && exit 0 || : ; \ | |
72b2455a PB |
32625 | r=`${PWD_COMMAND}`; export r; \ |
32626 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32627 | $(STAGE_HOST_EXPORTS) \ | |
32628 | echo Configuring stage 4 in zlib ; \ | |
b00612cc | 32629 | cd $(HOST_SUBDIR)/zlib || exit 1; \ |
72b2455a | 32630 | case $(srcdir) in \ |
b00612cc PB |
32631 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
32632 | *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \ | |
32633 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
72b2455a | 32634 | esac; \ |
b00612cc PB |
32635 | srcdiroption="--srcdir=$${topdir}/zlib"; \ |
32636 | libsrcdir="$$s/zlib"; \ | |
72b2455a PB |
32637 | $(SHELL) $${libsrcdir}/configure \ |
32638 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 32639 | @stage2_werror_flag@ |
72b2455a PB |
32640 | |
32641 | maybe-all-stage4-zlib: all-stage4-zlib | |
32642 | all-stage4-zlib: configure-stage4-zlib | |
9cb3fa6f | 32643 | @$(MAKE) stage4-start |
72b2455a PB |
32644 | @r=`${PWD_COMMAND}`; export r; \ |
32645 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32646 | $(STAGE_HOST_EXPORTS) \ | |
b00612cc | 32647 | cd $(HOST_SUBDIR)/zlib && \ |
72b2455a PB |
32648 | $(MAKE) $(FLAGS_TO_PASS) \ |
32649 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
9cb3fa6f | 32650 | |
0df3d27f PB |
32651 | |
32652 | maybe-clean-stage4-zlib: clean-stage4-zlib | |
32653 | clean-stage4-zlib: | |
32654 | @[ -f zlib/Makefile ] || [ -f stage4-zlib/Makefile ] \ | |
32655 | || exit 0 ; \ | |
32656 | [ -f zlib/Makefile ] || $(MAKE) stage4-start ; \ | |
b00612cc | 32657 | cd $(HOST_SUBDIR)/zlib && \ |
0df3d27f PB |
32658 | $(MAKE) $(FLAGS_TO_PASS) \ |
32659 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
32660 | clean | |
72b2455a PB |
32661 | @endif zlib-bootstrap |
32662 | ||
32663 | ||
0df3d27f | 32664 | |
72b2455a PB |
32665 | # FIXME: Will not need to be conditional when toplevel bootstrap is the |
32666 | # only possibility, but now it conflicts with no-bootstrap rules | |
32667 | @if gcc-bootstrap | |
32668 | ||
9cb3fa6f PB |
32669 | compare3: |
32670 | @if test -f stage3-lean; then \ | |
32671 | echo Cannot compare object files as stage 3 was deleted. ; \ | |
32672 | exit 0 ; \ | |
32673 | fi; \ | |
32674 | [ -f stage_current ] && $(MAKE) `cat stage_current`-end || : ; \ | |
72b2455a PB |
32675 | @r=`${PWD_COMMAND}`; export r; \ |
32676 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32677 | rm -f .bad_compare ; \ | |
32678 | cd stage4-gcc; \ | |
32679 | files=`find . -name "*$(objext)" -print` ; \ | |
32680 | cd .. ; \ | |
32681 | for file in $${files} ; do \ | |
32682 | f1=$$r/stage3-gcc/$$file; f2=$$r/stage4-gcc/$$file; \ | |
32683 | @do_compare@ > /dev/null 2>&1; \ | |
32684 | test $$? -eq 1 && echo $$file differs >> .bad_compare || true; \ | |
32685 | done ; \ | |
32686 | if [ -f .bad_compare ]; then \ | |
32687 | echo "Bootstrap comparison failure!"; \ | |
32688 | cat .bad_compare; \ | |
32689 | exit 1; \ | |
32690 | else \ | |
32691 | true; \ | |
32692 | fi ; \ | |
32693 | $(STAMP) compare3 | |
9cb3fa6f | 32694 | @bootstrap_lean@-rm -rf stage3-* ; $(STAMP) stage3-lean |
72b2455a PB |
32695 | |
32696 | ||
32697 | ||
32698 | .PHONY: bootstrap4 | |
9cb3fa6f | 32699 | bootstrap4: stage4-bubble compare3 all |
72b2455a PB |
32700 | |
32701 | ||
0df3d27f | 32702 | # Rules to wipe a stage and all the following ones, also used for cleanstrap |
72b2455a | 32703 | distclean-stage3:: distclean-stage4 |
0df3d27f | 32704 | .PHONY: distclean-stage4 |
72b2455a PB |
32705 | distclean-stage4:: |
32706 | [ -f stage_current ] && $(MAKE) `cat stage_current`-end || : | |
9cb3fa6f | 32707 | rm -rf stage4-* compare3 |
72b2455a PB |
32708 | |
32709 | ||
32710 | @endif gcc-bootstrap | |
32711 | ||
32712 | ||
32713 | .PHONY: stageprofile-start stageprofile-end | |
32714 | ||
32715 | stageprofile-start:: | |
9cb3fa6f | 32716 | @[ -f stage_current ] && $(MAKE) `cat stage_current`-end || : ; \ |
72b2455a | 32717 | echo stageprofile > stage_current ; \ |
b00612cc PB |
32718 | echo stageprofile > stage_last; \ |
32719 | $(mkinstalldirs) $(HOST_SUBDIR) | |
72b2455a | 32720 | @if bfd |
b00612cc PB |
32721 | @cd $(HOST_SUBDIR); [ -d stageprofile-bfd ] || \ |
32722 | mkdir stageprofile-bfd; \ | |
32723 | set stageprofile-bfd bfd ; \ | |
32724 | @CREATE_LINK_TO_DIR@ ; \ | |
32725 | set stage1-bfd prev-bfd ; \ | |
32726 | @CREATE_LINK_TO_DIR@ | |
72b2455a PB |
32727 | @endif bfd |
32728 | @if opcodes | |
b00612cc PB |
32729 | @cd $(HOST_SUBDIR); [ -d stageprofile-opcodes ] || \ |
32730 | mkdir stageprofile-opcodes; \ | |
32731 | set stageprofile-opcodes opcodes ; \ | |
32732 | @CREATE_LINK_TO_DIR@ ; \ | |
32733 | set stage1-opcodes prev-opcodes ; \ | |
32734 | @CREATE_LINK_TO_DIR@ | |
72b2455a PB |
32735 | @endif opcodes |
32736 | @if binutils | |
b00612cc PB |
32737 | @cd $(HOST_SUBDIR); [ -d stageprofile-binutils ] || \ |
32738 | mkdir stageprofile-binutils; \ | |
32739 | set stageprofile-binutils binutils ; \ | |
32740 | @CREATE_LINK_TO_DIR@ ; \ | |
32741 | set stage1-binutils prev-binutils ; \ | |
32742 | @CREATE_LINK_TO_DIR@ | |
72b2455a PB |
32743 | @endif binutils |
32744 | @if gas | |
b00612cc PB |
32745 | @cd $(HOST_SUBDIR); [ -d stageprofile-gas ] || \ |
32746 | mkdir stageprofile-gas; \ | |
32747 | set stageprofile-gas gas ; \ | |
32748 | @CREATE_LINK_TO_DIR@ ; \ | |
32749 | set stage1-gas prev-gas ; \ | |
32750 | @CREATE_LINK_TO_DIR@ | |
72b2455a PB |
32751 | @endif gas |
32752 | @if gcc | |
b00612cc PB |
32753 | @cd $(HOST_SUBDIR); [ -d stageprofile-gcc ] || \ |
32754 | mkdir stageprofile-gcc; \ | |
32755 | set stageprofile-gcc gcc ; \ | |
32756 | @CREATE_LINK_TO_DIR@ ; \ | |
32757 | set stage1-gcc prev-gcc ; \ | |
32758 | @CREATE_LINK_TO_DIR@ | |
72b2455a PB |
32759 | @endif gcc |
32760 | @if intl | |
b00612cc PB |
32761 | @cd $(HOST_SUBDIR); [ -d stageprofile-intl ] || \ |
32762 | mkdir stageprofile-intl; \ | |
32763 | set stageprofile-intl intl ; \ | |
32764 | @CREATE_LINK_TO_DIR@ ; \ | |
32765 | set stage1-intl prev-intl ; \ | |
32766 | @CREATE_LINK_TO_DIR@ | |
72b2455a PB |
32767 | @endif intl |
32768 | @if ld | |
b00612cc PB |
32769 | @cd $(HOST_SUBDIR); [ -d stageprofile-ld ] || \ |
32770 | mkdir stageprofile-ld; \ | |
32771 | set stageprofile-ld ld ; \ | |
32772 | @CREATE_LINK_TO_DIR@ ; \ | |
32773 | set stage1-ld prev-ld ; \ | |
32774 | @CREATE_LINK_TO_DIR@ | |
72b2455a PB |
32775 | @endif ld |
32776 | @if libcpp | |
b00612cc PB |
32777 | @cd $(HOST_SUBDIR); [ -d stageprofile-libcpp ] || \ |
32778 | mkdir stageprofile-libcpp; \ | |
32779 | set stageprofile-libcpp libcpp ; \ | |
32780 | @CREATE_LINK_TO_DIR@ ; \ | |
32781 | set stage1-libcpp prev-libcpp ; \ | |
32782 | @CREATE_LINK_TO_DIR@ | |
72b2455a | 32783 | @endif libcpp |
72b2455a | 32784 | @if libiberty |
b00612cc PB |
32785 | @cd $(HOST_SUBDIR); [ -d stageprofile-libiberty ] || \ |
32786 | mkdir stageprofile-libiberty; \ | |
32787 | set stageprofile-libiberty libiberty ; \ | |
32788 | @CREATE_LINK_TO_DIR@ ; \ | |
32789 | set stage1-libiberty prev-libiberty ; \ | |
32790 | @CREATE_LINK_TO_DIR@ | |
72b2455a PB |
32791 | @endif libiberty |
32792 | @if zlib | |
b00612cc PB |
32793 | @cd $(HOST_SUBDIR); [ -d stageprofile-zlib ] || \ |
32794 | mkdir stageprofile-zlib; \ | |
32795 | set stageprofile-zlib zlib ; \ | |
32796 | @CREATE_LINK_TO_DIR@ ; \ | |
32797 | set stage1-zlib prev-zlib ; \ | |
32798 | @CREATE_LINK_TO_DIR@ | |
72b2455a PB |
32799 | @endif zlib |
32800 | ||
32801 | stageprofile-end:: | |
9cb3fa6f | 32802 | @rm -f stage_current |
72b2455a | 32803 | @if bfd |
b00612cc PB |
32804 | @cd $(HOST_SUBDIR); set bfd stageprofile-bfd ; \ |
32805 | @UNDO_LINK_TO_DIR@ ; \ | |
32806 | set prev-bfd stage1-bfd ; \ | |
32807 | @UNDO_LINK_TO_DIR@ | |
72b2455a PB |
32808 | @endif bfd |
32809 | @if opcodes | |
b00612cc PB |
32810 | @cd $(HOST_SUBDIR); set opcodes stageprofile-opcodes ; \ |
32811 | @UNDO_LINK_TO_DIR@ ; \ | |
32812 | set prev-opcodes stage1-opcodes ; \ | |
32813 | @UNDO_LINK_TO_DIR@ | |
72b2455a PB |
32814 | @endif opcodes |
32815 | @if binutils | |
b00612cc PB |
32816 | @cd $(HOST_SUBDIR); set binutils stageprofile-binutils ; \ |
32817 | @UNDO_LINK_TO_DIR@ ; \ | |
32818 | set prev-binutils stage1-binutils ; \ | |
32819 | @UNDO_LINK_TO_DIR@ | |
72b2455a PB |
32820 | @endif binutils |
32821 | @if gas | |
b00612cc PB |
32822 | @cd $(HOST_SUBDIR); set gas stageprofile-gas ; \ |
32823 | @UNDO_LINK_TO_DIR@ ; \ | |
32824 | set prev-gas stage1-gas ; \ | |
32825 | @UNDO_LINK_TO_DIR@ | |
72b2455a PB |
32826 | @endif gas |
32827 | @if gcc | |
b00612cc PB |
32828 | @cd $(HOST_SUBDIR); set gcc stageprofile-gcc ; \ |
32829 | @UNDO_LINK_TO_DIR@ ; \ | |
32830 | set prev-gcc stage1-gcc ; \ | |
32831 | @UNDO_LINK_TO_DIR@ | |
72b2455a PB |
32832 | @endif gcc |
32833 | @if intl | |
b00612cc PB |
32834 | @cd $(HOST_SUBDIR); set intl stageprofile-intl ; \ |
32835 | @UNDO_LINK_TO_DIR@ ; \ | |
32836 | set prev-intl stage1-intl ; \ | |
32837 | @UNDO_LINK_TO_DIR@ | |
72b2455a PB |
32838 | @endif intl |
32839 | @if ld | |
b00612cc PB |
32840 | @cd $(HOST_SUBDIR); set ld stageprofile-ld ; \ |
32841 | @UNDO_LINK_TO_DIR@ ; \ | |
32842 | set prev-ld stage1-ld ; \ | |
32843 | @UNDO_LINK_TO_DIR@ | |
72b2455a PB |
32844 | @endif ld |
32845 | @if libcpp | |
b00612cc PB |
32846 | @cd $(HOST_SUBDIR); set libcpp stageprofile-libcpp ; \ |
32847 | @UNDO_LINK_TO_DIR@ ; \ | |
32848 | set prev-libcpp stage1-libcpp ; \ | |
32849 | @UNDO_LINK_TO_DIR@ | |
72b2455a | 32850 | @endif libcpp |
72b2455a | 32851 | @if libiberty |
b00612cc PB |
32852 | @cd $(HOST_SUBDIR); set libiberty stageprofile-libiberty ; \ |
32853 | @UNDO_LINK_TO_DIR@ ; \ | |
32854 | set prev-libiberty stage1-libiberty ; \ | |
32855 | @UNDO_LINK_TO_DIR@ | |
72b2455a PB |
32856 | @endif libiberty |
32857 | @if zlib | |
b00612cc PB |
32858 | @cd $(HOST_SUBDIR); set zlib stageprofile-zlib ; \ |
32859 | @UNDO_LINK_TO_DIR@ ; \ | |
32860 | set prev-zlib stage1-zlib ; \ | |
32861 | @UNDO_LINK_TO_DIR@ | |
72b2455a PB |
32862 | @endif zlib |
32863 | ||
32864 | # Bubble a bugfix through all the stages up to stage profile. They | |
32865 | # are remade, but not reconfigured. The next stage (if any) will not | |
32866 | # be reconfigured as well. | |
32867 | .PHONY: stageprofile-bubble | |
32868 | stageprofile-bubble:: stage1-bubble | |
9cb3fa6f PB |
32869 | @if test -f stageprofile-lean || test -f stage1-lean ; then \ |
32870 | echo Skipping rebuild of stageprofile ; \ | |
32871 | else \ | |
0df3d27f | 32872 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) NOTPARALLEL= all-stageprofile; \ |
9cb3fa6f | 32873 | fi |
72b2455a | 32874 | |
0df3d27f | 32875 | .PHONY: all-stageprofile clean-stageprofile |
72b2455a PB |
32876 | all-stageprofile: \ |
32877 | maybe-all-stageprofile-bfd \ | |
32878 | maybe-all-stageprofile-opcodes \ | |
d3ed111c | 32879 | maybe-all-stageprofile-binutils \ |
72b2455a PB |
32880 | maybe-all-stageprofile-gas \ |
32881 | maybe-all-stageprofile-gcc \ | |
32882 | maybe-all-stageprofile-intl \ | |
32883 | maybe-all-stageprofile-ld \ | |
32884 | maybe-all-stageprofile-libcpp \ | |
72b2455a | 32885 | maybe-all-stageprofile-libiberty \ |
b00612cc | 32886 | maybe-all-stageprofile-zlib |
72b2455a | 32887 | |
0df3d27f PB |
32888 | do-clean: clean-stageprofile |
32889 | clean-stageprofile: \ | |
32890 | maybe-clean-stageprofile-bfd \ | |
32891 | maybe-clean-stageprofile-opcodes \ | |
d3ed111c | 32892 | maybe-clean-stageprofile-binutils \ |
0df3d27f PB |
32893 | maybe-clean-stageprofile-gas \ |
32894 | maybe-clean-stageprofile-gcc \ | |
32895 | maybe-clean-stageprofile-intl \ | |
32896 | maybe-clean-stageprofile-ld \ | |
32897 | maybe-clean-stageprofile-libcpp \ | |
0df3d27f | 32898 | maybe-clean-stageprofile-libiberty \ |
b00612cc | 32899 | maybe-clean-stageprofile-zlib |
0df3d27f | 32900 | |
72b2455a | 32901 | |
9cb3fa6f PB |
32902 | .PHONY: configure-stageprofile-bfd maybe-configure-stageprofile-bfd |
32903 | .PHONY: all-stageprofile-bfd maybe-all-stageprofile-bfd | |
0df3d27f | 32904 | .PHONY: clean-stageprofile-bfd maybe-clean-stageprofile-bfd |
9cb3fa6f | 32905 | |
72b2455a PB |
32906 | maybe-configure-stageprofile-bfd: |
32907 | maybe-all-stageprofile-bfd: | |
0df3d27f | 32908 | maybe-clean-stageprofile-bfd: |
72b2455a PB |
32909 | |
32910 | @if bfd-bootstrap | |
32911 | maybe-configure-stageprofile-bfd: configure-stageprofile-bfd | |
9cb3fa6f PB |
32912 | configure-stageprofile-bfd: |
32913 | @$(MAKE) stageprofile-start | |
32914 | @[ -f bfd/Makefile ] && exit 0 || : ; \ | |
72b2455a PB |
32915 | r=`${PWD_COMMAND}`; export r; \ |
32916 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32917 | $(STAGE_HOST_EXPORTS) \ | |
32918 | echo Configuring stage profile in bfd ; \ | |
b00612cc | 32919 | cd $(HOST_SUBDIR)/bfd || exit 1; \ |
72b2455a | 32920 | case $(srcdir) in \ |
b00612cc PB |
32921 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
32922 | *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \ | |
32923 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
72b2455a | 32924 | esac; \ |
b00612cc PB |
32925 | srcdiroption="--srcdir=$${topdir}/bfd"; \ |
32926 | libsrcdir="$$s/bfd"; \ | |
72b2455a PB |
32927 | $(SHELL) $${libsrcdir}/configure \ |
32928 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 32929 | @stage2_werror_flag@ |
72b2455a PB |
32930 | |
32931 | maybe-all-stageprofile-bfd: all-stageprofile-bfd | |
32932 | all-stageprofile-bfd: configure-stageprofile-bfd | |
9cb3fa6f | 32933 | @$(MAKE) stageprofile-start |
72b2455a PB |
32934 | @r=`${PWD_COMMAND}`; export r; \ |
32935 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32936 | $(STAGE_HOST_EXPORTS) \ | |
b00612cc | 32937 | cd $(HOST_SUBDIR)/bfd && \ |
72b2455a PB |
32938 | $(MAKE) $(FLAGS_TO_PASS) \ |
32939 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
9cb3fa6f | 32940 | CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" |
0df3d27f PB |
32941 | |
32942 | maybe-clean-stageprofile-bfd: clean-stageprofile-bfd | |
32943 | clean-stageprofile-bfd: | |
32944 | @[ -f bfd/Makefile ] || [ -f stageprofile-bfd/Makefile ] \ | |
32945 | || exit 0 ; \ | |
32946 | [ -f bfd/Makefile ] || $(MAKE) stageprofile-start ; \ | |
b00612cc | 32947 | cd $(HOST_SUBDIR)/bfd && \ |
0df3d27f PB |
32948 | $(MAKE) $(FLAGS_TO_PASS) \ |
32949 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
32950 | CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean | |
72b2455a PB |
32951 | @endif bfd-bootstrap |
32952 | ||
0df3d27f | 32953 | |
9cb3fa6f PB |
32954 | .PHONY: configure-stageprofile-opcodes maybe-configure-stageprofile-opcodes |
32955 | .PHONY: all-stageprofile-opcodes maybe-all-stageprofile-opcodes | |
0df3d27f | 32956 | .PHONY: clean-stageprofile-opcodes maybe-clean-stageprofile-opcodes |
9cb3fa6f | 32957 | |
72b2455a PB |
32958 | maybe-configure-stageprofile-opcodes: |
32959 | maybe-all-stageprofile-opcodes: | |
0df3d27f | 32960 | maybe-clean-stageprofile-opcodes: |
72b2455a PB |
32961 | |
32962 | @if opcodes-bootstrap | |
32963 | maybe-configure-stageprofile-opcodes: configure-stageprofile-opcodes | |
9cb3fa6f PB |
32964 | configure-stageprofile-opcodes: |
32965 | @$(MAKE) stageprofile-start | |
32966 | @[ -f opcodes/Makefile ] && exit 0 || : ; \ | |
72b2455a PB |
32967 | r=`${PWD_COMMAND}`; export r; \ |
32968 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32969 | $(STAGE_HOST_EXPORTS) \ | |
32970 | echo Configuring stage profile in opcodes ; \ | |
b00612cc | 32971 | cd $(HOST_SUBDIR)/opcodes || exit 1; \ |
72b2455a | 32972 | case $(srcdir) in \ |
b00612cc PB |
32973 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
32974 | *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \ | |
32975 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
72b2455a | 32976 | esac; \ |
b00612cc PB |
32977 | srcdiroption="--srcdir=$${topdir}/opcodes"; \ |
32978 | libsrcdir="$$s/opcodes"; \ | |
72b2455a PB |
32979 | $(SHELL) $${libsrcdir}/configure \ |
32980 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 32981 | @stage2_werror_flag@ |
72b2455a PB |
32982 | |
32983 | maybe-all-stageprofile-opcodes: all-stageprofile-opcodes | |
32984 | all-stageprofile-opcodes: configure-stageprofile-opcodes | |
9cb3fa6f | 32985 | @$(MAKE) stageprofile-start |
72b2455a PB |
32986 | @r=`${PWD_COMMAND}`; export r; \ |
32987 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32988 | $(STAGE_HOST_EXPORTS) \ | |
b00612cc | 32989 | cd $(HOST_SUBDIR)/opcodes && \ |
72b2455a PB |
32990 | $(MAKE) $(FLAGS_TO_PASS) \ |
32991 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
9cb3fa6f | 32992 | CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" |
0df3d27f PB |
32993 | |
32994 | maybe-clean-stageprofile-opcodes: clean-stageprofile-opcodes | |
32995 | clean-stageprofile-opcodes: | |
32996 | @[ -f opcodes/Makefile ] || [ -f stageprofile-opcodes/Makefile ] \ | |
32997 | || exit 0 ; \ | |
32998 | [ -f opcodes/Makefile ] || $(MAKE) stageprofile-start ; \ | |
b00612cc | 32999 | cd $(HOST_SUBDIR)/opcodes && \ |
0df3d27f PB |
33000 | $(MAKE) $(FLAGS_TO_PASS) \ |
33001 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
33002 | CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean | |
72b2455a PB |
33003 | @endif opcodes-bootstrap |
33004 | ||
0df3d27f | 33005 | |
9cb3fa6f PB |
33006 | .PHONY: configure-stageprofile-binutils maybe-configure-stageprofile-binutils |
33007 | .PHONY: all-stageprofile-binutils maybe-all-stageprofile-binutils | |
0df3d27f | 33008 | .PHONY: clean-stageprofile-binutils maybe-clean-stageprofile-binutils |
9cb3fa6f | 33009 | |
72b2455a PB |
33010 | maybe-configure-stageprofile-binutils: |
33011 | maybe-all-stageprofile-binutils: | |
0df3d27f | 33012 | maybe-clean-stageprofile-binutils: |
72b2455a PB |
33013 | |
33014 | @if binutils-bootstrap | |
33015 | maybe-configure-stageprofile-binutils: configure-stageprofile-binutils | |
9cb3fa6f PB |
33016 | configure-stageprofile-binutils: |
33017 | @$(MAKE) stageprofile-start | |
33018 | @[ -f binutils/Makefile ] && exit 0 || : ; \ | |
72b2455a PB |
33019 | r=`${PWD_COMMAND}`; export r; \ |
33020 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33021 | $(STAGE_HOST_EXPORTS) \ | |
33022 | echo Configuring stage profile in binutils ; \ | |
b00612cc | 33023 | cd $(HOST_SUBDIR)/binutils || exit 1; \ |
72b2455a | 33024 | case $(srcdir) in \ |
b00612cc PB |
33025 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
33026 | *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \ | |
33027 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
72b2455a | 33028 | esac; \ |
b00612cc PB |
33029 | srcdiroption="--srcdir=$${topdir}/binutils"; \ |
33030 | libsrcdir="$$s/binutils"; \ | |
72b2455a PB |
33031 | $(SHELL) $${libsrcdir}/configure \ |
33032 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 33033 | @stage2_werror_flag@ |
72b2455a PB |
33034 | |
33035 | maybe-all-stageprofile-binutils: all-stageprofile-binutils | |
33036 | all-stageprofile-binutils: configure-stageprofile-binutils | |
9cb3fa6f | 33037 | @$(MAKE) stageprofile-start |
72b2455a PB |
33038 | @r=`${PWD_COMMAND}`; export r; \ |
33039 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33040 | $(STAGE_HOST_EXPORTS) \ | |
b00612cc | 33041 | cd $(HOST_SUBDIR)/binutils && \ |
72b2455a PB |
33042 | $(MAKE) $(FLAGS_TO_PASS) \ |
33043 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
9cb3fa6f | 33044 | CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" |
0df3d27f PB |
33045 | |
33046 | maybe-clean-stageprofile-binutils: clean-stageprofile-binutils | |
33047 | clean-stageprofile-binutils: | |
33048 | @[ -f binutils/Makefile ] || [ -f stageprofile-binutils/Makefile ] \ | |
33049 | || exit 0 ; \ | |
33050 | [ -f binutils/Makefile ] || $(MAKE) stageprofile-start ; \ | |
b00612cc | 33051 | cd $(HOST_SUBDIR)/binutils && \ |
0df3d27f PB |
33052 | $(MAKE) $(FLAGS_TO_PASS) \ |
33053 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
33054 | CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean | |
72b2455a PB |
33055 | @endif binutils-bootstrap |
33056 | ||
0df3d27f | 33057 | |
9cb3fa6f PB |
33058 | .PHONY: configure-stageprofile-gas maybe-configure-stageprofile-gas |
33059 | .PHONY: all-stageprofile-gas maybe-all-stageprofile-gas | |
0df3d27f | 33060 | .PHONY: clean-stageprofile-gas maybe-clean-stageprofile-gas |
9cb3fa6f | 33061 | |
72b2455a PB |
33062 | maybe-configure-stageprofile-gas: |
33063 | maybe-all-stageprofile-gas: | |
0df3d27f | 33064 | maybe-clean-stageprofile-gas: |
72b2455a PB |
33065 | |
33066 | @if gas-bootstrap | |
33067 | maybe-configure-stageprofile-gas: configure-stageprofile-gas | |
9cb3fa6f PB |
33068 | configure-stageprofile-gas: |
33069 | @$(MAKE) stageprofile-start | |
33070 | @[ -f gas/Makefile ] && exit 0 || : ; \ | |
72b2455a PB |
33071 | r=`${PWD_COMMAND}`; export r; \ |
33072 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33073 | $(STAGE_HOST_EXPORTS) \ | |
33074 | echo Configuring stage profile in gas ; \ | |
b00612cc | 33075 | cd $(HOST_SUBDIR)/gas || exit 1; \ |
72b2455a | 33076 | case $(srcdir) in \ |
b00612cc PB |
33077 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
33078 | *) topdir=`echo $(HOST_SUBDIR)/gas/ | \ | |
33079 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
72b2455a | 33080 | esac; \ |
b00612cc PB |
33081 | srcdiroption="--srcdir=$${topdir}/gas"; \ |
33082 | libsrcdir="$$s/gas"; \ | |
72b2455a PB |
33083 | $(SHELL) $${libsrcdir}/configure \ |
33084 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 33085 | @stage2_werror_flag@ |
72b2455a PB |
33086 | |
33087 | maybe-all-stageprofile-gas: all-stageprofile-gas | |
33088 | all-stageprofile-gas: configure-stageprofile-gas | |
9cb3fa6f | 33089 | @$(MAKE) stageprofile-start |
72b2455a PB |
33090 | @r=`${PWD_COMMAND}`; export r; \ |
33091 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33092 | $(STAGE_HOST_EXPORTS) \ | |
b00612cc | 33093 | cd $(HOST_SUBDIR)/gas && \ |
72b2455a PB |
33094 | $(MAKE) $(FLAGS_TO_PASS) \ |
33095 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
9cb3fa6f | 33096 | CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" |
0df3d27f PB |
33097 | |
33098 | maybe-clean-stageprofile-gas: clean-stageprofile-gas | |
33099 | clean-stageprofile-gas: | |
33100 | @[ -f gas/Makefile ] || [ -f stageprofile-gas/Makefile ] \ | |
33101 | || exit 0 ; \ | |
33102 | [ -f gas/Makefile ] || $(MAKE) stageprofile-start ; \ | |
b00612cc | 33103 | cd $(HOST_SUBDIR)/gas && \ |
0df3d27f PB |
33104 | $(MAKE) $(FLAGS_TO_PASS) \ |
33105 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
33106 | CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean | |
72b2455a PB |
33107 | @endif gas-bootstrap |
33108 | ||
0df3d27f | 33109 | |
9cb3fa6f PB |
33110 | .PHONY: configure-stageprofile-gcc maybe-configure-stageprofile-gcc |
33111 | .PHONY: all-stageprofile-gcc maybe-all-stageprofile-gcc | |
0df3d27f | 33112 | .PHONY: clean-stageprofile-gcc maybe-clean-stageprofile-gcc |
9cb3fa6f | 33113 | |
72b2455a PB |
33114 | maybe-configure-stageprofile-gcc: |
33115 | maybe-all-stageprofile-gcc: | |
0df3d27f | 33116 | maybe-clean-stageprofile-gcc: |
72b2455a PB |
33117 | |
33118 | @if gcc-bootstrap | |
33119 | maybe-configure-stageprofile-gcc: configure-stageprofile-gcc | |
9cb3fa6f PB |
33120 | configure-stageprofile-gcc: |
33121 | @$(MAKE) stageprofile-start | |
33122 | @[ -f gcc/Makefile ] && exit 0 || : ; \ | |
72b2455a PB |
33123 | r=`${PWD_COMMAND}`; export r; \ |
33124 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33125 | $(STAGE_HOST_EXPORTS) \ | |
33126 | echo Configuring stage profile in gcc ; \ | |
b00612cc | 33127 | cd $(HOST_SUBDIR)/gcc || exit 1; \ |
72b2455a | 33128 | case $(srcdir) in \ |
b00612cc PB |
33129 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
33130 | *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \ | |
33131 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
72b2455a | 33132 | esac; \ |
b00612cc PB |
33133 | srcdiroption="--srcdir=$${topdir}/gcc"; \ |
33134 | libsrcdir="$$s/gcc"; \ | |
72b2455a PB |
33135 | $(SHELL) $${libsrcdir}/configure \ |
33136 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 33137 | @stage2_werror_flag@ |
72b2455a PB |
33138 | |
33139 | maybe-all-stageprofile-gcc: all-stageprofile-gcc | |
33140 | all-stageprofile-gcc: configure-stageprofile-gcc | |
9cb3fa6f | 33141 | @$(MAKE) stageprofile-start |
72b2455a PB |
33142 | @r=`${PWD_COMMAND}`; export r; \ |
33143 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33144 | $(STAGE_HOST_EXPORTS) \ | |
b00612cc | 33145 | cd $(HOST_SUBDIR)/gcc && \ |
72b2455a PB |
33146 | $(MAKE) $(FLAGS_TO_PASS) \ |
33147 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
9cb3fa6f | 33148 | CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" $(EXTRA_GCC_FLAGS) |
0df3d27f PB |
33149 | |
33150 | maybe-clean-stageprofile-gcc: clean-stageprofile-gcc | |
33151 | clean-stageprofile-gcc: | |
33152 | @[ -f gcc/Makefile ] || [ -f stageprofile-gcc/Makefile ] \ | |
33153 | || exit 0 ; \ | |
33154 | [ -f gcc/Makefile ] || $(MAKE) stageprofile-start ; \ | |
b00612cc | 33155 | cd $(HOST_SUBDIR)/gcc && \ |
0df3d27f PB |
33156 | $(MAKE) $(FLAGS_TO_PASS) \ |
33157 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
33158 | CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" $(EXTRA_GCC_FLAGS) clean | |
72b2455a PB |
33159 | @endif gcc-bootstrap |
33160 | ||
0df3d27f | 33161 | |
9cb3fa6f PB |
33162 | .PHONY: configure-stageprofile-intl maybe-configure-stageprofile-intl |
33163 | .PHONY: all-stageprofile-intl maybe-all-stageprofile-intl | |
0df3d27f | 33164 | .PHONY: clean-stageprofile-intl maybe-clean-stageprofile-intl |
9cb3fa6f | 33165 | |
72b2455a PB |
33166 | maybe-configure-stageprofile-intl: |
33167 | maybe-all-stageprofile-intl: | |
0df3d27f | 33168 | maybe-clean-stageprofile-intl: |
72b2455a PB |
33169 | |
33170 | @if intl-bootstrap | |
33171 | maybe-configure-stageprofile-intl: configure-stageprofile-intl | |
9cb3fa6f PB |
33172 | configure-stageprofile-intl: |
33173 | @$(MAKE) stageprofile-start | |
33174 | @[ -f intl/Makefile ] && exit 0 || : ; \ | |
72b2455a PB |
33175 | r=`${PWD_COMMAND}`; export r; \ |
33176 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33177 | $(STAGE_HOST_EXPORTS) \ | |
33178 | echo Configuring stage profile in intl ; \ | |
b00612cc | 33179 | cd $(HOST_SUBDIR)/intl || exit 1; \ |
72b2455a | 33180 | case $(srcdir) in \ |
b00612cc PB |
33181 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
33182 | *) topdir=`echo $(HOST_SUBDIR)/intl/ | \ | |
33183 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
72b2455a | 33184 | esac; \ |
b00612cc PB |
33185 | srcdiroption="--srcdir=$${topdir}/intl"; \ |
33186 | libsrcdir="$$s/intl"; \ | |
72b2455a PB |
33187 | $(SHELL) $${libsrcdir}/configure \ |
33188 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 33189 | @stage2_werror_flag@ |
72b2455a PB |
33190 | |
33191 | maybe-all-stageprofile-intl: all-stageprofile-intl | |
33192 | all-stageprofile-intl: configure-stageprofile-intl | |
9cb3fa6f | 33193 | @$(MAKE) stageprofile-start |
72b2455a PB |
33194 | @r=`${PWD_COMMAND}`; export r; \ |
33195 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33196 | $(STAGE_HOST_EXPORTS) \ | |
b00612cc | 33197 | cd $(HOST_SUBDIR)/intl && \ |
72b2455a PB |
33198 | $(MAKE) $(FLAGS_TO_PASS) \ |
33199 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
9cb3fa6f | 33200 | CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" |
0df3d27f PB |
33201 | |
33202 | maybe-clean-stageprofile-intl: clean-stageprofile-intl | |
33203 | clean-stageprofile-intl: | |
33204 | @[ -f intl/Makefile ] || [ -f stageprofile-intl/Makefile ] \ | |
33205 | || exit 0 ; \ | |
33206 | [ -f intl/Makefile ] || $(MAKE) stageprofile-start ; \ | |
b00612cc | 33207 | cd $(HOST_SUBDIR)/intl && \ |
0df3d27f PB |
33208 | $(MAKE) $(FLAGS_TO_PASS) \ |
33209 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
33210 | CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean | |
72b2455a PB |
33211 | @endif intl-bootstrap |
33212 | ||
0df3d27f | 33213 | |
9cb3fa6f PB |
33214 | .PHONY: configure-stageprofile-ld maybe-configure-stageprofile-ld |
33215 | .PHONY: all-stageprofile-ld maybe-all-stageprofile-ld | |
0df3d27f | 33216 | .PHONY: clean-stageprofile-ld maybe-clean-stageprofile-ld |
9cb3fa6f | 33217 | |
72b2455a PB |
33218 | maybe-configure-stageprofile-ld: |
33219 | maybe-all-stageprofile-ld: | |
0df3d27f | 33220 | maybe-clean-stageprofile-ld: |
72b2455a PB |
33221 | |
33222 | @if ld-bootstrap | |
33223 | maybe-configure-stageprofile-ld: configure-stageprofile-ld | |
9cb3fa6f PB |
33224 | configure-stageprofile-ld: |
33225 | @$(MAKE) stageprofile-start | |
33226 | @[ -f ld/Makefile ] && exit 0 || : ; \ | |
72b2455a PB |
33227 | r=`${PWD_COMMAND}`; export r; \ |
33228 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33229 | $(STAGE_HOST_EXPORTS) \ | |
33230 | echo Configuring stage profile in ld ; \ | |
b00612cc | 33231 | cd $(HOST_SUBDIR)/ld || exit 1; \ |
72b2455a | 33232 | case $(srcdir) in \ |
b00612cc PB |
33233 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
33234 | *) topdir=`echo $(HOST_SUBDIR)/ld/ | \ | |
33235 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
72b2455a | 33236 | esac; \ |
b00612cc PB |
33237 | srcdiroption="--srcdir=$${topdir}/ld"; \ |
33238 | libsrcdir="$$s/ld"; \ | |
72b2455a PB |
33239 | $(SHELL) $${libsrcdir}/configure \ |
33240 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 33241 | @stage2_werror_flag@ |
72b2455a PB |
33242 | |
33243 | maybe-all-stageprofile-ld: all-stageprofile-ld | |
33244 | all-stageprofile-ld: configure-stageprofile-ld | |
9cb3fa6f | 33245 | @$(MAKE) stageprofile-start |
72b2455a PB |
33246 | @r=`${PWD_COMMAND}`; export r; \ |
33247 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33248 | $(STAGE_HOST_EXPORTS) \ | |
b00612cc | 33249 | cd $(HOST_SUBDIR)/ld && \ |
72b2455a PB |
33250 | $(MAKE) $(FLAGS_TO_PASS) \ |
33251 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
9cb3fa6f | 33252 | CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" |
0df3d27f PB |
33253 | |
33254 | maybe-clean-stageprofile-ld: clean-stageprofile-ld | |
33255 | clean-stageprofile-ld: | |
33256 | @[ -f ld/Makefile ] || [ -f stageprofile-ld/Makefile ] \ | |
33257 | || exit 0 ; \ | |
33258 | [ -f ld/Makefile ] || $(MAKE) stageprofile-start ; \ | |
b00612cc | 33259 | cd $(HOST_SUBDIR)/ld && \ |
0df3d27f PB |
33260 | $(MAKE) $(FLAGS_TO_PASS) \ |
33261 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
33262 | CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean | |
72b2455a PB |
33263 | @endif ld-bootstrap |
33264 | ||
0df3d27f | 33265 | |
9cb3fa6f PB |
33266 | .PHONY: configure-stageprofile-libcpp maybe-configure-stageprofile-libcpp |
33267 | .PHONY: all-stageprofile-libcpp maybe-all-stageprofile-libcpp | |
0df3d27f | 33268 | .PHONY: clean-stageprofile-libcpp maybe-clean-stageprofile-libcpp |
9cb3fa6f | 33269 | |
72b2455a PB |
33270 | maybe-configure-stageprofile-libcpp: |
33271 | maybe-all-stageprofile-libcpp: | |
0df3d27f | 33272 | maybe-clean-stageprofile-libcpp: |
72b2455a PB |
33273 | |
33274 | @if libcpp-bootstrap | |
33275 | maybe-configure-stageprofile-libcpp: configure-stageprofile-libcpp | |
9cb3fa6f PB |
33276 | configure-stageprofile-libcpp: |
33277 | @$(MAKE) stageprofile-start | |
33278 | @[ -f libcpp/Makefile ] && exit 0 || : ; \ | |
72b2455a PB |
33279 | r=`${PWD_COMMAND}`; export r; \ |
33280 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33281 | $(STAGE_HOST_EXPORTS) \ | |
33282 | echo Configuring stage profile in libcpp ; \ | |
b00612cc | 33283 | cd $(HOST_SUBDIR)/libcpp || exit 1; \ |
72b2455a | 33284 | case $(srcdir) in \ |
b00612cc PB |
33285 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
33286 | *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \ | |
33287 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
72b2455a | 33288 | esac; \ |
b00612cc PB |
33289 | srcdiroption="--srcdir=$${topdir}/libcpp"; \ |
33290 | libsrcdir="$$s/libcpp"; \ | |
72b2455a PB |
33291 | $(SHELL) $${libsrcdir}/configure \ |
33292 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 33293 | @stage2_werror_flag@ |
72b2455a PB |
33294 | |
33295 | maybe-all-stageprofile-libcpp: all-stageprofile-libcpp | |
33296 | all-stageprofile-libcpp: configure-stageprofile-libcpp | |
9cb3fa6f | 33297 | @$(MAKE) stageprofile-start |
72b2455a PB |
33298 | @r=`${PWD_COMMAND}`; export r; \ |
33299 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33300 | $(STAGE_HOST_EXPORTS) \ | |
b00612cc | 33301 | cd $(HOST_SUBDIR)/libcpp && \ |
72b2455a PB |
33302 | $(MAKE) $(FLAGS_TO_PASS) \ |
33303 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
9cb3fa6f | 33304 | CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" |
0df3d27f PB |
33305 | |
33306 | maybe-clean-stageprofile-libcpp: clean-stageprofile-libcpp | |
33307 | clean-stageprofile-libcpp: | |
33308 | @[ -f libcpp/Makefile ] || [ -f stageprofile-libcpp/Makefile ] \ | |
33309 | || exit 0 ; \ | |
33310 | [ -f libcpp/Makefile ] || $(MAKE) stageprofile-start ; \ | |
b00612cc | 33311 | cd $(HOST_SUBDIR)/libcpp && \ |
0df3d27f PB |
33312 | $(MAKE) $(FLAGS_TO_PASS) \ |
33313 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
33314 | CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean | |
72b2455a PB |
33315 | @endif libcpp-bootstrap |
33316 | ||
0df3d27f | 33317 | |
9cb3fa6f PB |
33318 | .PHONY: configure-stageprofile-libiberty maybe-configure-stageprofile-libiberty |
33319 | .PHONY: all-stageprofile-libiberty maybe-all-stageprofile-libiberty | |
0df3d27f | 33320 | .PHONY: clean-stageprofile-libiberty maybe-clean-stageprofile-libiberty |
9cb3fa6f | 33321 | |
72b2455a PB |
33322 | maybe-configure-stageprofile-libiberty: |
33323 | maybe-all-stageprofile-libiberty: | |
0df3d27f | 33324 | maybe-clean-stageprofile-libiberty: |
72b2455a PB |
33325 | |
33326 | @if libiberty-bootstrap | |
33327 | maybe-configure-stageprofile-libiberty: configure-stageprofile-libiberty | |
9cb3fa6f PB |
33328 | configure-stageprofile-libiberty: |
33329 | @$(MAKE) stageprofile-start | |
33330 | @[ -f libiberty/Makefile ] && exit 0 || : ; \ | |
72b2455a PB |
33331 | r=`${PWD_COMMAND}`; export r; \ |
33332 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33333 | $(STAGE_HOST_EXPORTS) \ | |
33334 | echo Configuring stage profile in libiberty ; \ | |
b00612cc | 33335 | cd $(HOST_SUBDIR)/libiberty || exit 1; \ |
72b2455a | 33336 | case $(srcdir) in \ |
b00612cc PB |
33337 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
33338 | *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \ | |
33339 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
72b2455a | 33340 | esac; \ |
b00612cc PB |
33341 | srcdiroption="--srcdir=$${topdir}/libiberty"; \ |
33342 | libsrcdir="$$s/libiberty"; \ | |
72b2455a PB |
33343 | $(SHELL) $${libsrcdir}/configure \ |
33344 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 33345 | @stage2_werror_flag@ |
72b2455a PB |
33346 | |
33347 | maybe-all-stageprofile-libiberty: all-stageprofile-libiberty | |
33348 | all-stageprofile-libiberty: configure-stageprofile-libiberty | |
9cb3fa6f | 33349 | @$(MAKE) stageprofile-start |
72b2455a PB |
33350 | @r=`${PWD_COMMAND}`; export r; \ |
33351 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33352 | $(STAGE_HOST_EXPORTS) \ | |
b00612cc | 33353 | cd $(HOST_SUBDIR)/libiberty && \ |
72b2455a PB |
33354 | $(MAKE) $(FLAGS_TO_PASS) \ |
33355 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
9cb3fa6f | 33356 | CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" |
0df3d27f PB |
33357 | |
33358 | maybe-clean-stageprofile-libiberty: clean-stageprofile-libiberty | |
33359 | clean-stageprofile-libiberty: | |
33360 | @[ -f libiberty/Makefile ] || [ -f stageprofile-libiberty/Makefile ] \ | |
33361 | || exit 0 ; \ | |
33362 | [ -f libiberty/Makefile ] || $(MAKE) stageprofile-start ; \ | |
b00612cc | 33363 | cd $(HOST_SUBDIR)/libiberty && \ |
0df3d27f PB |
33364 | $(MAKE) $(FLAGS_TO_PASS) \ |
33365 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
33366 | CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean | |
72b2455a PB |
33367 | @endif libiberty-bootstrap |
33368 | ||
0df3d27f | 33369 | |
9cb3fa6f PB |
33370 | .PHONY: configure-stageprofile-zlib maybe-configure-stageprofile-zlib |
33371 | .PHONY: all-stageprofile-zlib maybe-all-stageprofile-zlib | |
0df3d27f | 33372 | .PHONY: clean-stageprofile-zlib maybe-clean-stageprofile-zlib |
9cb3fa6f | 33373 | |
72b2455a PB |
33374 | maybe-configure-stageprofile-zlib: |
33375 | maybe-all-stageprofile-zlib: | |
0df3d27f | 33376 | maybe-clean-stageprofile-zlib: |
72b2455a PB |
33377 | |
33378 | @if zlib-bootstrap | |
33379 | maybe-configure-stageprofile-zlib: configure-stageprofile-zlib | |
9cb3fa6f PB |
33380 | configure-stageprofile-zlib: |
33381 | @$(MAKE) stageprofile-start | |
33382 | @[ -f zlib/Makefile ] && exit 0 || : ; \ | |
72b2455a PB |
33383 | r=`${PWD_COMMAND}`; export r; \ |
33384 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33385 | $(STAGE_HOST_EXPORTS) \ | |
33386 | echo Configuring stage profile in zlib ; \ | |
b00612cc | 33387 | cd $(HOST_SUBDIR)/zlib || exit 1; \ |
72b2455a | 33388 | case $(srcdir) in \ |
b00612cc PB |
33389 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
33390 | *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \ | |
33391 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
72b2455a | 33392 | esac; \ |
b00612cc PB |
33393 | srcdiroption="--srcdir=$${topdir}/zlib"; \ |
33394 | libsrcdir="$$s/zlib"; \ | |
72b2455a PB |
33395 | $(SHELL) $${libsrcdir}/configure \ |
33396 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 33397 | @stage2_werror_flag@ |
72b2455a PB |
33398 | |
33399 | maybe-all-stageprofile-zlib: all-stageprofile-zlib | |
33400 | all-stageprofile-zlib: configure-stageprofile-zlib | |
9cb3fa6f | 33401 | @$(MAKE) stageprofile-start |
72b2455a PB |
33402 | @r=`${PWD_COMMAND}`; export r; \ |
33403 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33404 | $(STAGE_HOST_EXPORTS) \ | |
b00612cc | 33405 | cd $(HOST_SUBDIR)/zlib && \ |
72b2455a PB |
33406 | $(MAKE) $(FLAGS_TO_PASS) \ |
33407 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
9cb3fa6f | 33408 | CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" |
0df3d27f PB |
33409 | |
33410 | maybe-clean-stageprofile-zlib: clean-stageprofile-zlib | |
33411 | clean-stageprofile-zlib: | |
33412 | @[ -f zlib/Makefile ] || [ -f stageprofile-zlib/Makefile ] \ | |
33413 | || exit 0 ; \ | |
33414 | [ -f zlib/Makefile ] || $(MAKE) stageprofile-start ; \ | |
b00612cc | 33415 | cd $(HOST_SUBDIR)/zlib && \ |
0df3d27f PB |
33416 | $(MAKE) $(FLAGS_TO_PASS) \ |
33417 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
33418 | CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean | |
72b2455a PB |
33419 | @endif zlib-bootstrap |
33420 | ||
33421 | ||
0df3d27f | 33422 | |
72b2455a PB |
33423 | # FIXME: Will not need to be conditional when toplevel bootstrap is the |
33424 | # only possibility, but now it conflicts with no-bootstrap rules | |
33425 | @if gcc-bootstrap | |
33426 | ||
33427 | ||
33428 | ||
33429 | ||
0df3d27f | 33430 | # Rules to wipe a stage and all the following ones, also used for cleanstrap |
72b2455a | 33431 | distclean-stage1:: distclean-stageprofile |
0df3d27f | 33432 | .PHONY: distclean-stageprofile |
72b2455a PB |
33433 | distclean-stageprofile:: |
33434 | [ -f stage_current ] && $(MAKE) `cat stage_current`-end || : | |
9cb3fa6f | 33435 | rm -rf stageprofile-* |
dfdffa2c PB |
33436 | |
33437 | ||
72b2455a | 33438 | @endif gcc-bootstrap |
dfdffa2c PB |
33439 | |
33440 | ||
72b2455a | 33441 | .PHONY: stagefeedback-start stagefeedback-end |
dfdffa2c | 33442 | |
72b2455a | 33443 | stagefeedback-start:: |
9cb3fa6f | 33444 | @[ -f stage_current ] && $(MAKE) `cat stage_current`-end || : ; \ |
72b2455a | 33445 | echo stagefeedback > stage_current ; \ |
b00612cc PB |
33446 | echo stagefeedback > stage_last; \ |
33447 | $(mkinstalldirs) $(HOST_SUBDIR) | |
72b2455a | 33448 | @if bfd |
b00612cc PB |
33449 | @cd $(HOST_SUBDIR); [ -d stagefeedback-bfd ] || \ |
33450 | mkdir stagefeedback-bfd; \ | |
33451 | set stagefeedback-bfd bfd ; \ | |
33452 | @CREATE_LINK_TO_DIR@ ; \ | |
33453 | set stage1-bfd prev-bfd ; \ | |
33454 | @CREATE_LINK_TO_DIR@ | |
72b2455a PB |
33455 | @endif bfd |
33456 | @if opcodes | |
b00612cc PB |
33457 | @cd $(HOST_SUBDIR); [ -d stagefeedback-opcodes ] || \ |
33458 | mkdir stagefeedback-opcodes; \ | |
33459 | set stagefeedback-opcodes opcodes ; \ | |
33460 | @CREATE_LINK_TO_DIR@ ; \ | |
33461 | set stage1-opcodes prev-opcodes ; \ | |
33462 | @CREATE_LINK_TO_DIR@ | |
72b2455a PB |
33463 | @endif opcodes |
33464 | @if binutils | |
b00612cc PB |
33465 | @cd $(HOST_SUBDIR); [ -d stagefeedback-binutils ] || \ |
33466 | mkdir stagefeedback-binutils; \ | |
33467 | set stagefeedback-binutils binutils ; \ | |
33468 | @CREATE_LINK_TO_DIR@ ; \ | |
33469 | set stage1-binutils prev-binutils ; \ | |
33470 | @CREATE_LINK_TO_DIR@ | |
72b2455a PB |
33471 | @endif binutils |
33472 | @if gas | |
b00612cc PB |
33473 | @cd $(HOST_SUBDIR); [ -d stagefeedback-gas ] || \ |
33474 | mkdir stagefeedback-gas; \ | |
33475 | set stagefeedback-gas gas ; \ | |
33476 | @CREATE_LINK_TO_DIR@ ; \ | |
33477 | set stage1-gas prev-gas ; \ | |
33478 | @CREATE_LINK_TO_DIR@ | |
72b2455a PB |
33479 | @endif gas |
33480 | @if gcc | |
b00612cc PB |
33481 | @cd $(HOST_SUBDIR); [ -d stagefeedback-gcc ] || \ |
33482 | mkdir stagefeedback-gcc; \ | |
33483 | set stagefeedback-gcc gcc ; \ | |
33484 | @CREATE_LINK_TO_DIR@ ; \ | |
33485 | set stage1-gcc prev-gcc ; \ | |
33486 | @CREATE_LINK_TO_DIR@ | |
72b2455a PB |
33487 | @endif gcc |
33488 | @if intl | |
b00612cc PB |
33489 | @cd $(HOST_SUBDIR); [ -d stagefeedback-intl ] || \ |
33490 | mkdir stagefeedback-intl; \ | |
33491 | set stagefeedback-intl intl ; \ | |
33492 | @CREATE_LINK_TO_DIR@ ; \ | |
33493 | set stage1-intl prev-intl ; \ | |
33494 | @CREATE_LINK_TO_DIR@ | |
72b2455a PB |
33495 | @endif intl |
33496 | @if ld | |
b00612cc PB |
33497 | @cd $(HOST_SUBDIR); [ -d stagefeedback-ld ] || \ |
33498 | mkdir stagefeedback-ld; \ | |
33499 | set stagefeedback-ld ld ; \ | |
33500 | @CREATE_LINK_TO_DIR@ ; \ | |
33501 | set stage1-ld prev-ld ; \ | |
33502 | @CREATE_LINK_TO_DIR@ | |
72b2455a PB |
33503 | @endif ld |
33504 | @if libcpp | |
b00612cc PB |
33505 | @cd $(HOST_SUBDIR); [ -d stagefeedback-libcpp ] || \ |
33506 | mkdir stagefeedback-libcpp; \ | |
33507 | set stagefeedback-libcpp libcpp ; \ | |
33508 | @CREATE_LINK_TO_DIR@ ; \ | |
33509 | set stage1-libcpp prev-libcpp ; \ | |
33510 | @CREATE_LINK_TO_DIR@ | |
72b2455a | 33511 | @endif libcpp |
72b2455a | 33512 | @if libiberty |
b00612cc PB |
33513 | @cd $(HOST_SUBDIR); [ -d stagefeedback-libiberty ] || \ |
33514 | mkdir stagefeedback-libiberty; \ | |
33515 | set stagefeedback-libiberty libiberty ; \ | |
33516 | @CREATE_LINK_TO_DIR@ ; \ | |
33517 | set stage1-libiberty prev-libiberty ; \ | |
33518 | @CREATE_LINK_TO_DIR@ | |
72b2455a PB |
33519 | @endif libiberty |
33520 | @if zlib | |
b00612cc PB |
33521 | @cd $(HOST_SUBDIR); [ -d stagefeedback-zlib ] || \ |
33522 | mkdir stagefeedback-zlib; \ | |
33523 | set stagefeedback-zlib zlib ; \ | |
33524 | @CREATE_LINK_TO_DIR@ ; \ | |
33525 | set stage1-zlib prev-zlib ; \ | |
33526 | @CREATE_LINK_TO_DIR@ | |
72b2455a | 33527 | @endif zlib |
dfdffa2c | 33528 | |
72b2455a | 33529 | stagefeedback-end:: |
9cb3fa6f | 33530 | @rm -f stage_current |
72b2455a | 33531 | @if bfd |
b00612cc PB |
33532 | @cd $(HOST_SUBDIR); set bfd stagefeedback-bfd ; \ |
33533 | @UNDO_LINK_TO_DIR@ ; \ | |
33534 | set prev-bfd stage1-bfd ; \ | |
33535 | @UNDO_LINK_TO_DIR@ | |
72b2455a PB |
33536 | @endif bfd |
33537 | @if opcodes | |
b00612cc PB |
33538 | @cd $(HOST_SUBDIR); set opcodes stagefeedback-opcodes ; \ |
33539 | @UNDO_LINK_TO_DIR@ ; \ | |
33540 | set prev-opcodes stage1-opcodes ; \ | |
33541 | @UNDO_LINK_TO_DIR@ | |
72b2455a PB |
33542 | @endif opcodes |
33543 | @if binutils | |
b00612cc PB |
33544 | @cd $(HOST_SUBDIR); set binutils stagefeedback-binutils ; \ |
33545 | @UNDO_LINK_TO_DIR@ ; \ | |
33546 | set prev-binutils stage1-binutils ; \ | |
33547 | @UNDO_LINK_TO_DIR@ | |
72b2455a PB |
33548 | @endif binutils |
33549 | @if gas | |
b00612cc PB |
33550 | @cd $(HOST_SUBDIR); set gas stagefeedback-gas ; \ |
33551 | @UNDO_LINK_TO_DIR@ ; \ | |
33552 | set prev-gas stage1-gas ; \ | |
33553 | @UNDO_LINK_TO_DIR@ | |
72b2455a PB |
33554 | @endif gas |
33555 | @if gcc | |
b00612cc PB |
33556 | @cd $(HOST_SUBDIR); set gcc stagefeedback-gcc ; \ |
33557 | @UNDO_LINK_TO_DIR@ ; \ | |
33558 | set prev-gcc stage1-gcc ; \ | |
33559 | @UNDO_LINK_TO_DIR@ | |
72b2455a PB |
33560 | @endif gcc |
33561 | @if intl | |
b00612cc PB |
33562 | @cd $(HOST_SUBDIR); set intl stagefeedback-intl ; \ |
33563 | @UNDO_LINK_TO_DIR@ ; \ | |
33564 | set prev-intl stage1-intl ; \ | |
33565 | @UNDO_LINK_TO_DIR@ | |
72b2455a PB |
33566 | @endif intl |
33567 | @if ld | |
b00612cc PB |
33568 | @cd $(HOST_SUBDIR); set ld stagefeedback-ld ; \ |
33569 | @UNDO_LINK_TO_DIR@ ; \ | |
33570 | set prev-ld stage1-ld ; \ | |
33571 | @UNDO_LINK_TO_DIR@ | |
72b2455a PB |
33572 | @endif ld |
33573 | @if libcpp | |
b00612cc PB |
33574 | @cd $(HOST_SUBDIR); set libcpp stagefeedback-libcpp ; \ |
33575 | @UNDO_LINK_TO_DIR@ ; \ | |
33576 | set prev-libcpp stage1-libcpp ; \ | |
33577 | @UNDO_LINK_TO_DIR@ | |
72b2455a | 33578 | @endif libcpp |
72b2455a | 33579 | @if libiberty |
b00612cc PB |
33580 | @cd $(HOST_SUBDIR); set libiberty stagefeedback-libiberty ; \ |
33581 | @UNDO_LINK_TO_DIR@ ; \ | |
33582 | set prev-libiberty stage1-libiberty ; \ | |
33583 | @UNDO_LINK_TO_DIR@ | |
72b2455a PB |
33584 | @endif libiberty |
33585 | @if zlib | |
b00612cc PB |
33586 | @cd $(HOST_SUBDIR); set zlib stagefeedback-zlib ; \ |
33587 | @UNDO_LINK_TO_DIR@ ; \ | |
33588 | set prev-zlib stage1-zlib ; \ | |
33589 | @UNDO_LINK_TO_DIR@ | |
72b2455a | 33590 | @endif zlib |
dfdffa2c | 33591 | |
72b2455a | 33592 | # Bubble a bugfix through all the stages up to stage feedback. They |
dfdffa2c PB |
33593 | # are remade, but not reconfigured. The next stage (if any) will not |
33594 | # be reconfigured as well. | |
72b2455a PB |
33595 | .PHONY: stagefeedback-bubble |
33596 | stagefeedback-bubble:: stage1-bubble | |
9cb3fa6f PB |
33597 | @if test -f stagefeedback-lean || test -f stage1-lean ; then \ |
33598 | echo Skipping rebuild of stagefeedback ; \ | |
33599 | else \ | |
0df3d27f | 33600 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) NOTPARALLEL= all-stagefeedback; \ |
9cb3fa6f | 33601 | fi |
72b2455a | 33602 | |
0df3d27f | 33603 | .PHONY: all-stagefeedback clean-stagefeedback |
72b2455a PB |
33604 | all-stagefeedback: \ |
33605 | maybe-all-stagefeedback-bfd \ | |
33606 | maybe-all-stagefeedback-opcodes \ | |
d3ed111c | 33607 | maybe-all-stagefeedback-binutils \ |
72b2455a PB |
33608 | maybe-all-stagefeedback-gas \ |
33609 | maybe-all-stagefeedback-gcc \ | |
33610 | maybe-all-stagefeedback-intl \ | |
33611 | maybe-all-stagefeedback-ld \ | |
33612 | maybe-all-stagefeedback-libcpp \ | |
72b2455a | 33613 | maybe-all-stagefeedback-libiberty \ |
b00612cc | 33614 | maybe-all-stagefeedback-zlib |
72b2455a | 33615 | |
0df3d27f PB |
33616 | do-clean: clean-stagefeedback |
33617 | clean-stagefeedback: \ | |
33618 | maybe-clean-stagefeedback-bfd \ | |
33619 | maybe-clean-stagefeedback-opcodes \ | |
d3ed111c | 33620 | maybe-clean-stagefeedback-binutils \ |
0df3d27f PB |
33621 | maybe-clean-stagefeedback-gas \ |
33622 | maybe-clean-stagefeedback-gcc \ | |
33623 | maybe-clean-stagefeedback-intl \ | |
33624 | maybe-clean-stagefeedback-ld \ | |
33625 | maybe-clean-stagefeedback-libcpp \ | |
0df3d27f | 33626 | maybe-clean-stagefeedback-libiberty \ |
b00612cc | 33627 | maybe-clean-stagefeedback-zlib |
0df3d27f | 33628 | |
72b2455a | 33629 | |
9cb3fa6f PB |
33630 | .PHONY: configure-stagefeedback-bfd maybe-configure-stagefeedback-bfd |
33631 | .PHONY: all-stagefeedback-bfd maybe-all-stagefeedback-bfd | |
0df3d27f | 33632 | .PHONY: clean-stagefeedback-bfd maybe-clean-stagefeedback-bfd |
9cb3fa6f | 33633 | |
72b2455a PB |
33634 | maybe-configure-stagefeedback-bfd: |
33635 | maybe-all-stagefeedback-bfd: | |
0df3d27f | 33636 | maybe-clean-stagefeedback-bfd: |
72b2455a PB |
33637 | |
33638 | @if bfd-bootstrap | |
33639 | maybe-configure-stagefeedback-bfd: configure-stagefeedback-bfd | |
9cb3fa6f PB |
33640 | configure-stagefeedback-bfd: |
33641 | @$(MAKE) stagefeedback-start | |
33642 | @[ -f bfd/Makefile ] && exit 0 || : ; \ | |
72b2455a PB |
33643 | r=`${PWD_COMMAND}`; export r; \ |
33644 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33645 | $(STAGE_HOST_EXPORTS) \ | |
33646 | echo Configuring stage feedback in bfd ; \ | |
b00612cc | 33647 | cd $(HOST_SUBDIR)/bfd || exit 1; \ |
72b2455a | 33648 | case $(srcdir) in \ |
b00612cc PB |
33649 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
33650 | *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \ | |
33651 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
72b2455a | 33652 | esac; \ |
b00612cc PB |
33653 | srcdiroption="--srcdir=$${topdir}/bfd"; \ |
33654 | libsrcdir="$$s/bfd"; \ | |
72b2455a PB |
33655 | $(SHELL) $${libsrcdir}/configure \ |
33656 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 33657 | @stage2_werror_flag@ |
656fdd47 | 33658 | |
72b2455a PB |
33659 | maybe-all-stagefeedback-bfd: all-stagefeedback-bfd |
33660 | all-stagefeedback-bfd: configure-stagefeedback-bfd | |
9cb3fa6f | 33661 | @$(MAKE) stagefeedback-start |
72b2455a PB |
33662 | @r=`${PWD_COMMAND}`; export r; \ |
33663 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33664 | $(STAGE_HOST_EXPORTS) \ | |
b00612cc | 33665 | cd $(HOST_SUBDIR)/bfd && \ |
72b2455a PB |
33666 | $(MAKE) $(FLAGS_TO_PASS) \ |
33667 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
9cb3fa6f | 33668 | CFLAGS="$(BOOT_CFLAGS) -fprofile-use" |
0df3d27f PB |
33669 | |
33670 | maybe-clean-stagefeedback-bfd: clean-stagefeedback-bfd | |
33671 | clean-stagefeedback-bfd: | |
33672 | @[ -f bfd/Makefile ] || [ -f stagefeedback-bfd/Makefile ] \ | |
33673 | || exit 0 ; \ | |
33674 | [ -f bfd/Makefile ] || $(MAKE) stagefeedback-start ; \ | |
b00612cc | 33675 | cd $(HOST_SUBDIR)/bfd && \ |
0df3d27f PB |
33676 | $(MAKE) $(FLAGS_TO_PASS) \ |
33677 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
33678 | CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean | |
72b2455a | 33679 | @endif bfd-bootstrap |
dfdffa2c | 33680 | |
0df3d27f | 33681 | |
9cb3fa6f PB |
33682 | .PHONY: configure-stagefeedback-opcodes maybe-configure-stagefeedback-opcodes |
33683 | .PHONY: all-stagefeedback-opcodes maybe-all-stagefeedback-opcodes | |
0df3d27f | 33684 | .PHONY: clean-stagefeedback-opcodes maybe-clean-stagefeedback-opcodes |
9cb3fa6f | 33685 | |
72b2455a PB |
33686 | maybe-configure-stagefeedback-opcodes: |
33687 | maybe-all-stagefeedback-opcodes: | |
0df3d27f | 33688 | maybe-clean-stagefeedback-opcodes: |
656fdd47 | 33689 | |
72b2455a PB |
33690 | @if opcodes-bootstrap |
33691 | maybe-configure-stagefeedback-opcodes: configure-stagefeedback-opcodes | |
9cb3fa6f PB |
33692 | configure-stagefeedback-opcodes: |
33693 | @$(MAKE) stagefeedback-start | |
33694 | @[ -f opcodes/Makefile ] && exit 0 || : ; \ | |
1d39f329 | 33695 | r=`${PWD_COMMAND}`; export r; \ |
378fce5b DD |
33696 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
33697 | $(STAGE_HOST_EXPORTS) \ | |
72b2455a | 33698 | echo Configuring stage feedback in opcodes ; \ |
b00612cc | 33699 | cd $(HOST_SUBDIR)/opcodes || exit 1; \ |
1d39f329 | 33700 | case $(srcdir) in \ |
b00612cc PB |
33701 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
33702 | *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \ | |
33703 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
1d39f329 | 33704 | esac; \ |
b00612cc PB |
33705 | srcdiroption="--srcdir=$${topdir}/opcodes"; \ |
33706 | libsrcdir="$$s/opcodes"; \ | |
1d39f329 | 33707 | $(SHELL) $${libsrcdir}/configure \ |
dfdffa2c | 33708 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
9cb3fa6f | 33709 | @stage2_werror_flag@ |
1d39f329 | 33710 | |
72b2455a PB |
33711 | maybe-all-stagefeedback-opcodes: all-stagefeedback-opcodes |
33712 | all-stagefeedback-opcodes: configure-stagefeedback-opcodes | |
9cb3fa6f | 33713 | @$(MAKE) stagefeedback-start |
dfdffa2c | 33714 | @r=`${PWD_COMMAND}`; export r; \ |
378fce5b DD |
33715 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
33716 | $(STAGE_HOST_EXPORTS) \ | |
b00612cc | 33717 | cd $(HOST_SUBDIR)/opcodes && \ |
72b2455a | 33718 | $(MAKE) $(FLAGS_TO_PASS) \ |
656fdd47 | 33719 | $(POSTSTAGE1_FLAGS_TO_PASS) \ |
9cb3fa6f | 33720 | CFLAGS="$(BOOT_CFLAGS) -fprofile-use" |
0df3d27f PB |
33721 | |
33722 | maybe-clean-stagefeedback-opcodes: clean-stagefeedback-opcodes | |
33723 | clean-stagefeedback-opcodes: | |
33724 | @[ -f opcodes/Makefile ] || [ -f stagefeedback-opcodes/Makefile ] \ | |
33725 | || exit 0 ; \ | |
33726 | [ -f opcodes/Makefile ] || $(MAKE) stagefeedback-start ; \ | |
b00612cc | 33727 | cd $(HOST_SUBDIR)/opcodes && \ |
0df3d27f PB |
33728 | $(MAKE) $(FLAGS_TO_PASS) \ |
33729 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
33730 | CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean | |
72b2455a | 33731 | @endif opcodes-bootstrap |
1d39f329 | 33732 | |
0df3d27f | 33733 | |
9cb3fa6f PB |
33734 | .PHONY: configure-stagefeedback-binutils maybe-configure-stagefeedback-binutils |
33735 | .PHONY: all-stagefeedback-binutils maybe-all-stagefeedback-binutils | |
0df3d27f | 33736 | .PHONY: clean-stagefeedback-binutils maybe-clean-stagefeedback-binutils |
9cb3fa6f | 33737 | |
72b2455a PB |
33738 | maybe-configure-stagefeedback-binutils: |
33739 | maybe-all-stagefeedback-binutils: | |
0df3d27f | 33740 | maybe-clean-stagefeedback-binutils: |
1d39f329 | 33741 | |
72b2455a PB |
33742 | @if binutils-bootstrap |
33743 | maybe-configure-stagefeedback-binutils: configure-stagefeedback-binutils | |
9cb3fa6f PB |
33744 | configure-stagefeedback-binutils: |
33745 | @$(MAKE) stagefeedback-start | |
33746 | @[ -f binutils/Makefile ] && exit 0 || : ; \ | |
72b2455a PB |
33747 | r=`${PWD_COMMAND}`; export r; \ |
33748 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33749 | $(STAGE_HOST_EXPORTS) \ | |
33750 | echo Configuring stage feedback in binutils ; \ | |
b00612cc | 33751 | cd $(HOST_SUBDIR)/binutils || exit 1; \ |
72b2455a | 33752 | case $(srcdir) in \ |
b00612cc PB |
33753 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
33754 | *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \ | |
33755 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
72b2455a | 33756 | esac; \ |
b00612cc PB |
33757 | srcdiroption="--srcdir=$${topdir}/binutils"; \ |
33758 | libsrcdir="$$s/binutils"; \ | |
72b2455a PB |
33759 | $(SHELL) $${libsrcdir}/configure \ |
33760 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 33761 | @stage2_werror_flag@ |
319cab08 | 33762 | |
72b2455a PB |
33763 | maybe-all-stagefeedback-binutils: all-stagefeedback-binutils |
33764 | all-stagefeedback-binutils: configure-stagefeedback-binutils | |
9cb3fa6f | 33765 | @$(MAKE) stagefeedback-start |
72b2455a PB |
33766 | @r=`${PWD_COMMAND}`; export r; \ |
33767 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33768 | $(STAGE_HOST_EXPORTS) \ | |
b00612cc | 33769 | cd $(HOST_SUBDIR)/binutils && \ |
72b2455a PB |
33770 | $(MAKE) $(FLAGS_TO_PASS) \ |
33771 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
9cb3fa6f | 33772 | CFLAGS="$(BOOT_CFLAGS) -fprofile-use" |
0df3d27f PB |
33773 | |
33774 | maybe-clean-stagefeedback-binutils: clean-stagefeedback-binutils | |
33775 | clean-stagefeedback-binutils: | |
33776 | @[ -f binutils/Makefile ] || [ -f stagefeedback-binutils/Makefile ] \ | |
33777 | || exit 0 ; \ | |
33778 | [ -f binutils/Makefile ] || $(MAKE) stagefeedback-start ; \ | |
b00612cc | 33779 | cd $(HOST_SUBDIR)/binutils && \ |
0df3d27f PB |
33780 | $(MAKE) $(FLAGS_TO_PASS) \ |
33781 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
33782 | CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean | |
72b2455a | 33783 | @endif binutils-bootstrap |
319cab08 | 33784 | |
0df3d27f | 33785 | |
9cb3fa6f PB |
33786 | .PHONY: configure-stagefeedback-gas maybe-configure-stagefeedback-gas |
33787 | .PHONY: all-stagefeedback-gas maybe-all-stagefeedback-gas | |
0df3d27f | 33788 | .PHONY: clean-stagefeedback-gas maybe-clean-stagefeedback-gas |
9cb3fa6f | 33789 | |
72b2455a PB |
33790 | maybe-configure-stagefeedback-gas: |
33791 | maybe-all-stagefeedback-gas: | |
0df3d27f | 33792 | maybe-clean-stagefeedback-gas: |
319cab08 | 33793 | |
72b2455a PB |
33794 | @if gas-bootstrap |
33795 | maybe-configure-stagefeedback-gas: configure-stagefeedback-gas | |
9cb3fa6f PB |
33796 | configure-stagefeedback-gas: |
33797 | @$(MAKE) stagefeedback-start | |
33798 | @[ -f gas/Makefile ] && exit 0 || : ; \ | |
72b2455a PB |
33799 | r=`${PWD_COMMAND}`; export r; \ |
33800 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33801 | $(STAGE_HOST_EXPORTS) \ | |
33802 | echo Configuring stage feedback in gas ; \ | |
b00612cc | 33803 | cd $(HOST_SUBDIR)/gas || exit 1; \ |
72b2455a | 33804 | case $(srcdir) in \ |
b00612cc PB |
33805 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
33806 | *) topdir=`echo $(HOST_SUBDIR)/gas/ | \ | |
33807 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
72b2455a | 33808 | esac; \ |
b00612cc PB |
33809 | srcdiroption="--srcdir=$${topdir}/gas"; \ |
33810 | libsrcdir="$$s/gas"; \ | |
72b2455a PB |
33811 | $(SHELL) $${libsrcdir}/configure \ |
33812 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 33813 | @stage2_werror_flag@ |
319cab08 | 33814 | |
72b2455a PB |
33815 | maybe-all-stagefeedback-gas: all-stagefeedback-gas |
33816 | all-stagefeedback-gas: configure-stagefeedback-gas | |
9cb3fa6f | 33817 | @$(MAKE) stagefeedback-start |
72b2455a PB |
33818 | @r=`${PWD_COMMAND}`; export r; \ |
33819 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33820 | $(STAGE_HOST_EXPORTS) \ | |
b00612cc | 33821 | cd $(HOST_SUBDIR)/gas && \ |
72b2455a PB |
33822 | $(MAKE) $(FLAGS_TO_PASS) \ |
33823 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
9cb3fa6f | 33824 | CFLAGS="$(BOOT_CFLAGS) -fprofile-use" |
0df3d27f PB |
33825 | |
33826 | maybe-clean-stagefeedback-gas: clean-stagefeedback-gas | |
33827 | clean-stagefeedback-gas: | |
33828 | @[ -f gas/Makefile ] || [ -f stagefeedback-gas/Makefile ] \ | |
33829 | || exit 0 ; \ | |
33830 | [ -f gas/Makefile ] || $(MAKE) stagefeedback-start ; \ | |
b00612cc | 33831 | cd $(HOST_SUBDIR)/gas && \ |
0df3d27f PB |
33832 | $(MAKE) $(FLAGS_TO_PASS) \ |
33833 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
33834 | CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean | |
72b2455a | 33835 | @endif gas-bootstrap |
319cab08 | 33836 | |
0df3d27f | 33837 | |
9cb3fa6f PB |
33838 | .PHONY: configure-stagefeedback-gcc maybe-configure-stagefeedback-gcc |
33839 | .PHONY: all-stagefeedback-gcc maybe-all-stagefeedback-gcc | |
0df3d27f | 33840 | .PHONY: clean-stagefeedback-gcc maybe-clean-stagefeedback-gcc |
9cb3fa6f | 33841 | |
72b2455a PB |
33842 | maybe-configure-stagefeedback-gcc: |
33843 | maybe-all-stagefeedback-gcc: | |
0df3d27f | 33844 | maybe-clean-stagefeedback-gcc: |
319cab08 | 33845 | |
72b2455a PB |
33846 | @if gcc-bootstrap |
33847 | maybe-configure-stagefeedback-gcc: configure-stagefeedback-gcc | |
9cb3fa6f PB |
33848 | configure-stagefeedback-gcc: |
33849 | @$(MAKE) stagefeedback-start | |
33850 | @[ -f gcc/Makefile ] && exit 0 || : ; \ | |
72b2455a PB |
33851 | r=`${PWD_COMMAND}`; export r; \ |
33852 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33853 | $(STAGE_HOST_EXPORTS) \ | |
33854 | echo Configuring stage feedback in gcc ; \ | |
b00612cc | 33855 | cd $(HOST_SUBDIR)/gcc || exit 1; \ |
72b2455a | 33856 | case $(srcdir) in \ |
b00612cc PB |
33857 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
33858 | *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \ | |
33859 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
72b2455a | 33860 | esac; \ |
b00612cc PB |
33861 | srcdiroption="--srcdir=$${topdir}/gcc"; \ |
33862 | libsrcdir="$$s/gcc"; \ | |
72b2455a PB |
33863 | $(SHELL) $${libsrcdir}/configure \ |
33864 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 33865 | @stage2_werror_flag@ |
656fdd47 | 33866 | |
72b2455a PB |
33867 | maybe-all-stagefeedback-gcc: all-stagefeedback-gcc |
33868 | all-stagefeedback-gcc: configure-stagefeedback-gcc | |
9cb3fa6f | 33869 | @$(MAKE) stagefeedback-start |
72b2455a PB |
33870 | @r=`${PWD_COMMAND}`; export r; \ |
33871 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33872 | $(STAGE_HOST_EXPORTS) \ | |
b00612cc | 33873 | cd $(HOST_SUBDIR)/gcc && \ |
72b2455a PB |
33874 | $(MAKE) $(FLAGS_TO_PASS) \ |
33875 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
9cb3fa6f | 33876 | CFLAGS="$(BOOT_CFLAGS) -fprofile-use" $(EXTRA_GCC_FLAGS) |
0df3d27f PB |
33877 | |
33878 | maybe-clean-stagefeedback-gcc: clean-stagefeedback-gcc | |
33879 | clean-stagefeedback-gcc: | |
33880 | @[ -f gcc/Makefile ] || [ -f stagefeedback-gcc/Makefile ] \ | |
33881 | || exit 0 ; \ | |
33882 | [ -f gcc/Makefile ] || $(MAKE) stagefeedback-start ; \ | |
b00612cc | 33883 | cd $(HOST_SUBDIR)/gcc && \ |
0df3d27f PB |
33884 | $(MAKE) $(FLAGS_TO_PASS) \ |
33885 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
33886 | CFLAGS="$(BOOT_CFLAGS) -fprofile-use" $(EXTRA_GCC_FLAGS) clean | |
72b2455a | 33887 | @endif gcc-bootstrap |
319cab08 | 33888 | |
0df3d27f | 33889 | |
9cb3fa6f PB |
33890 | .PHONY: configure-stagefeedback-intl maybe-configure-stagefeedback-intl |
33891 | .PHONY: all-stagefeedback-intl maybe-all-stagefeedback-intl | |
0df3d27f | 33892 | .PHONY: clean-stagefeedback-intl maybe-clean-stagefeedback-intl |
9cb3fa6f | 33893 | |
72b2455a PB |
33894 | maybe-configure-stagefeedback-intl: |
33895 | maybe-all-stagefeedback-intl: | |
0df3d27f | 33896 | maybe-clean-stagefeedback-intl: |
656fdd47 | 33897 | |
72b2455a PB |
33898 | @if intl-bootstrap |
33899 | maybe-configure-stagefeedback-intl: configure-stagefeedback-intl | |
9cb3fa6f PB |
33900 | configure-stagefeedback-intl: |
33901 | @$(MAKE) stagefeedback-start | |
33902 | @[ -f intl/Makefile ] && exit 0 || : ; \ | |
319cab08 PB |
33903 | r=`${PWD_COMMAND}`; export r; \ |
33904 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33905 | $(STAGE_HOST_EXPORTS) \ | |
72b2455a | 33906 | echo Configuring stage feedback in intl ; \ |
b00612cc | 33907 | cd $(HOST_SUBDIR)/intl || exit 1; \ |
319cab08 | 33908 | case $(srcdir) in \ |
b00612cc PB |
33909 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
33910 | *) topdir=`echo $(HOST_SUBDIR)/intl/ | \ | |
33911 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
319cab08 | 33912 | esac; \ |
b00612cc PB |
33913 | srcdiroption="--srcdir=$${topdir}/intl"; \ |
33914 | libsrcdir="$$s/intl"; \ | |
319cab08 PB |
33915 | $(SHELL) $${libsrcdir}/configure \ |
33916 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 33917 | @stage2_werror_flag@ |
319cab08 | 33918 | |
72b2455a PB |
33919 | maybe-all-stagefeedback-intl: all-stagefeedback-intl |
33920 | all-stagefeedback-intl: configure-stagefeedback-intl | |
9cb3fa6f | 33921 | @$(MAKE) stagefeedback-start |
319cab08 PB |
33922 | @r=`${PWD_COMMAND}`; export r; \ |
33923 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33924 | $(STAGE_HOST_EXPORTS) \ | |
b00612cc | 33925 | cd $(HOST_SUBDIR)/intl && \ |
72b2455a | 33926 | $(MAKE) $(FLAGS_TO_PASS) \ |
656fdd47 | 33927 | $(POSTSTAGE1_FLAGS_TO_PASS) \ |
9cb3fa6f | 33928 | CFLAGS="$(BOOT_CFLAGS) -fprofile-use" |
0df3d27f PB |
33929 | |
33930 | maybe-clean-stagefeedback-intl: clean-stagefeedback-intl | |
33931 | clean-stagefeedback-intl: | |
33932 | @[ -f intl/Makefile ] || [ -f stagefeedback-intl/Makefile ] \ | |
33933 | || exit 0 ; \ | |
33934 | [ -f intl/Makefile ] || $(MAKE) stagefeedback-start ; \ | |
b00612cc | 33935 | cd $(HOST_SUBDIR)/intl && \ |
0df3d27f PB |
33936 | $(MAKE) $(FLAGS_TO_PASS) \ |
33937 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
33938 | CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean | |
72b2455a | 33939 | @endif intl-bootstrap |
319cab08 | 33940 | |
0df3d27f | 33941 | |
9cb3fa6f PB |
33942 | .PHONY: configure-stagefeedback-ld maybe-configure-stagefeedback-ld |
33943 | .PHONY: all-stagefeedback-ld maybe-all-stagefeedback-ld | |
0df3d27f | 33944 | .PHONY: clean-stagefeedback-ld maybe-clean-stagefeedback-ld |
9cb3fa6f | 33945 | |
72b2455a PB |
33946 | maybe-configure-stagefeedback-ld: |
33947 | maybe-all-stagefeedback-ld: | |
0df3d27f | 33948 | maybe-clean-stagefeedback-ld: |
319cab08 | 33949 | |
72b2455a PB |
33950 | @if ld-bootstrap |
33951 | maybe-configure-stagefeedback-ld: configure-stagefeedback-ld | |
9cb3fa6f PB |
33952 | configure-stagefeedback-ld: |
33953 | @$(MAKE) stagefeedback-start | |
33954 | @[ -f ld/Makefile ] && exit 0 || : ; \ | |
72b2455a PB |
33955 | r=`${PWD_COMMAND}`; export r; \ |
33956 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33957 | $(STAGE_HOST_EXPORTS) \ | |
33958 | echo Configuring stage feedback in ld ; \ | |
b00612cc | 33959 | cd $(HOST_SUBDIR)/ld || exit 1; \ |
72b2455a | 33960 | case $(srcdir) in \ |
b00612cc PB |
33961 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
33962 | *) topdir=`echo $(HOST_SUBDIR)/ld/ | \ | |
33963 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
72b2455a | 33964 | esac; \ |
b00612cc PB |
33965 | srcdiroption="--srcdir=$${topdir}/ld"; \ |
33966 | libsrcdir="$$s/ld"; \ | |
72b2455a PB |
33967 | $(SHELL) $${libsrcdir}/configure \ |
33968 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 33969 | @stage2_werror_flag@ |
656fdd47 | 33970 | |
72b2455a PB |
33971 | maybe-all-stagefeedback-ld: all-stagefeedback-ld |
33972 | all-stagefeedback-ld: configure-stagefeedback-ld | |
9cb3fa6f | 33973 | @$(MAKE) stagefeedback-start |
72b2455a PB |
33974 | @r=`${PWD_COMMAND}`; export r; \ |
33975 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33976 | $(STAGE_HOST_EXPORTS) \ | |
b00612cc | 33977 | cd $(HOST_SUBDIR)/ld && \ |
72b2455a PB |
33978 | $(MAKE) $(FLAGS_TO_PASS) \ |
33979 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
9cb3fa6f | 33980 | CFLAGS="$(BOOT_CFLAGS) -fprofile-use" |
0df3d27f PB |
33981 | |
33982 | maybe-clean-stagefeedback-ld: clean-stagefeedback-ld | |
33983 | clean-stagefeedback-ld: | |
33984 | @[ -f ld/Makefile ] || [ -f stagefeedback-ld/Makefile ] \ | |
33985 | || exit 0 ; \ | |
33986 | [ -f ld/Makefile ] || $(MAKE) stagefeedback-start ; \ | |
b00612cc | 33987 | cd $(HOST_SUBDIR)/ld && \ |
0df3d27f PB |
33988 | $(MAKE) $(FLAGS_TO_PASS) \ |
33989 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
33990 | CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean | |
72b2455a | 33991 | @endif ld-bootstrap |
656fdd47 | 33992 | |
0df3d27f | 33993 | |
9cb3fa6f PB |
33994 | .PHONY: configure-stagefeedback-libcpp maybe-configure-stagefeedback-libcpp |
33995 | .PHONY: all-stagefeedback-libcpp maybe-all-stagefeedback-libcpp | |
0df3d27f | 33996 | .PHONY: clean-stagefeedback-libcpp maybe-clean-stagefeedback-libcpp |
9cb3fa6f | 33997 | |
72b2455a PB |
33998 | maybe-configure-stagefeedback-libcpp: |
33999 | maybe-all-stagefeedback-libcpp: | |
0df3d27f | 34000 | maybe-clean-stagefeedback-libcpp: |
656fdd47 | 34001 | |
72b2455a PB |
34002 | @if libcpp-bootstrap |
34003 | maybe-configure-stagefeedback-libcpp: configure-stagefeedback-libcpp | |
9cb3fa6f PB |
34004 | configure-stagefeedback-libcpp: |
34005 | @$(MAKE) stagefeedback-start | |
34006 | @[ -f libcpp/Makefile ] && exit 0 || : ; \ | |
72b2455a PB |
34007 | r=`${PWD_COMMAND}`; export r; \ |
34008 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
34009 | $(STAGE_HOST_EXPORTS) \ | |
34010 | echo Configuring stage feedback in libcpp ; \ | |
b00612cc | 34011 | cd $(HOST_SUBDIR)/libcpp || exit 1; \ |
72b2455a | 34012 | case $(srcdir) in \ |
b00612cc PB |
34013 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
34014 | *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \ | |
34015 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
72b2455a | 34016 | esac; \ |
b00612cc PB |
34017 | srcdiroption="--srcdir=$${topdir}/libcpp"; \ |
34018 | libsrcdir="$$s/libcpp"; \ | |
72b2455a PB |
34019 | $(SHELL) $${libsrcdir}/configure \ |
34020 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 34021 | @stage2_werror_flag@ |
656fdd47 | 34022 | |
72b2455a PB |
34023 | maybe-all-stagefeedback-libcpp: all-stagefeedback-libcpp |
34024 | all-stagefeedback-libcpp: configure-stagefeedback-libcpp | |
9cb3fa6f | 34025 | @$(MAKE) stagefeedback-start |
72b2455a PB |
34026 | @r=`${PWD_COMMAND}`; export r; \ |
34027 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
34028 | $(STAGE_HOST_EXPORTS) \ | |
b00612cc | 34029 | cd $(HOST_SUBDIR)/libcpp && \ |
72b2455a PB |
34030 | $(MAKE) $(FLAGS_TO_PASS) \ |
34031 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
9cb3fa6f | 34032 | CFLAGS="$(BOOT_CFLAGS) -fprofile-use" |
0df3d27f PB |
34033 | |
34034 | maybe-clean-stagefeedback-libcpp: clean-stagefeedback-libcpp | |
34035 | clean-stagefeedback-libcpp: | |
34036 | @[ -f libcpp/Makefile ] || [ -f stagefeedback-libcpp/Makefile ] \ | |
34037 | || exit 0 ; \ | |
34038 | [ -f libcpp/Makefile ] || $(MAKE) stagefeedback-start ; \ | |
b00612cc | 34039 | cd $(HOST_SUBDIR)/libcpp && \ |
0df3d27f PB |
34040 | $(MAKE) $(FLAGS_TO_PASS) \ |
34041 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
34042 | CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean | |
72b2455a | 34043 | @endif libcpp-bootstrap |
dfdffa2c | 34044 | |
0df3d27f | 34045 | |
9cb3fa6f PB |
34046 | .PHONY: configure-stagefeedback-libiberty maybe-configure-stagefeedback-libiberty |
34047 | .PHONY: all-stagefeedback-libiberty maybe-all-stagefeedback-libiberty | |
0df3d27f | 34048 | .PHONY: clean-stagefeedback-libiberty maybe-clean-stagefeedback-libiberty |
9cb3fa6f | 34049 | |
72b2455a PB |
34050 | maybe-configure-stagefeedback-libiberty: |
34051 | maybe-all-stagefeedback-libiberty: | |
0df3d27f | 34052 | maybe-clean-stagefeedback-libiberty: |
656fdd47 | 34053 | |
72b2455a PB |
34054 | @if libiberty-bootstrap |
34055 | maybe-configure-stagefeedback-libiberty: configure-stagefeedback-libiberty | |
9cb3fa6f PB |
34056 | configure-stagefeedback-libiberty: |
34057 | @$(MAKE) stagefeedback-start | |
34058 | @[ -f libiberty/Makefile ] && exit 0 || : ; \ | |
72b2455a PB |
34059 | r=`${PWD_COMMAND}`; export r; \ |
34060 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
34061 | $(STAGE_HOST_EXPORTS) \ | |
34062 | echo Configuring stage feedback in libiberty ; \ | |
b00612cc | 34063 | cd $(HOST_SUBDIR)/libiberty || exit 1; \ |
72b2455a | 34064 | case $(srcdir) in \ |
b00612cc PB |
34065 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
34066 | *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \ | |
34067 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
72b2455a | 34068 | esac; \ |
b00612cc PB |
34069 | srcdiroption="--srcdir=$${topdir}/libiberty"; \ |
34070 | libsrcdir="$$s/libiberty"; \ | |
72b2455a PB |
34071 | $(SHELL) $${libsrcdir}/configure \ |
34072 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 34073 | @stage2_werror_flag@ |
656fdd47 | 34074 | |
72b2455a PB |
34075 | maybe-all-stagefeedback-libiberty: all-stagefeedback-libiberty |
34076 | all-stagefeedback-libiberty: configure-stagefeedback-libiberty | |
9cb3fa6f | 34077 | @$(MAKE) stagefeedback-start |
72b2455a PB |
34078 | @r=`${PWD_COMMAND}`; export r; \ |
34079 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
34080 | $(STAGE_HOST_EXPORTS) \ | |
b00612cc | 34081 | cd $(HOST_SUBDIR)/libiberty && \ |
72b2455a PB |
34082 | $(MAKE) $(FLAGS_TO_PASS) \ |
34083 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
9cb3fa6f | 34084 | CFLAGS="$(BOOT_CFLAGS) -fprofile-use" |
0df3d27f PB |
34085 | |
34086 | maybe-clean-stagefeedback-libiberty: clean-stagefeedback-libiberty | |
34087 | clean-stagefeedback-libiberty: | |
34088 | @[ -f libiberty/Makefile ] || [ -f stagefeedback-libiberty/Makefile ] \ | |
34089 | || exit 0 ; \ | |
34090 | [ -f libiberty/Makefile ] || $(MAKE) stagefeedback-start ; \ | |
b00612cc | 34091 | cd $(HOST_SUBDIR)/libiberty && \ |
0df3d27f PB |
34092 | $(MAKE) $(FLAGS_TO_PASS) \ |
34093 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
34094 | CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean | |
72b2455a | 34095 | @endif libiberty-bootstrap |
656fdd47 | 34096 | |
0df3d27f | 34097 | |
9cb3fa6f PB |
34098 | .PHONY: configure-stagefeedback-zlib maybe-configure-stagefeedback-zlib |
34099 | .PHONY: all-stagefeedback-zlib maybe-all-stagefeedback-zlib | |
0df3d27f | 34100 | .PHONY: clean-stagefeedback-zlib maybe-clean-stagefeedback-zlib |
9cb3fa6f | 34101 | |
72b2455a PB |
34102 | maybe-configure-stagefeedback-zlib: |
34103 | maybe-all-stagefeedback-zlib: | |
0df3d27f | 34104 | maybe-clean-stagefeedback-zlib: |
656fdd47 | 34105 | |
72b2455a PB |
34106 | @if zlib-bootstrap |
34107 | maybe-configure-stagefeedback-zlib: configure-stagefeedback-zlib | |
9cb3fa6f PB |
34108 | configure-stagefeedback-zlib: |
34109 | @$(MAKE) stagefeedback-start | |
34110 | @[ -f zlib/Makefile ] && exit 0 || : ; \ | |
656fdd47 PB |
34111 | r=`${PWD_COMMAND}`; export r; \ |
34112 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
34113 | $(STAGE_HOST_EXPORTS) \ | |
72b2455a | 34114 | echo Configuring stage feedback in zlib ; \ |
b00612cc | 34115 | cd $(HOST_SUBDIR)/zlib || exit 1; \ |
656fdd47 | 34116 | case $(srcdir) in \ |
b00612cc PB |
34117 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
34118 | *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \ | |
34119 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
656fdd47 | 34120 | esac; \ |
b00612cc PB |
34121 | srcdiroption="--srcdir=$${topdir}/zlib"; \ |
34122 | libsrcdir="$$s/zlib"; \ | |
656fdd47 PB |
34123 | $(SHELL) $${libsrcdir}/configure \ |
34124 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
9cb3fa6f | 34125 | @stage2_werror_flag@ |
656fdd47 | 34126 | |
72b2455a PB |
34127 | maybe-all-stagefeedback-zlib: all-stagefeedback-zlib |
34128 | all-stagefeedback-zlib: configure-stagefeedback-zlib | |
9cb3fa6f | 34129 | @$(MAKE) stagefeedback-start |
656fdd47 PB |
34130 | @r=`${PWD_COMMAND}`; export r; \ |
34131 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
34132 | $(STAGE_HOST_EXPORTS) \ | |
b00612cc | 34133 | cd $(HOST_SUBDIR)/zlib && \ |
72b2455a | 34134 | $(MAKE) $(FLAGS_TO_PASS) \ |
656fdd47 | 34135 | $(POSTSTAGE1_FLAGS_TO_PASS) \ |
9cb3fa6f | 34136 | CFLAGS="$(BOOT_CFLAGS) -fprofile-use" |
0df3d27f PB |
34137 | |
34138 | maybe-clean-stagefeedback-zlib: clean-stagefeedback-zlib | |
34139 | clean-stagefeedback-zlib: | |
34140 | @[ -f zlib/Makefile ] || [ -f stagefeedback-zlib/Makefile ] \ | |
34141 | || exit 0 ; \ | |
34142 | [ -f zlib/Makefile ] || $(MAKE) stagefeedback-start ; \ | |
b00612cc | 34143 | cd $(HOST_SUBDIR)/zlib && \ |
0df3d27f PB |
34144 | $(MAKE) $(FLAGS_TO_PASS) \ |
34145 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
34146 | CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean | |
72b2455a PB |
34147 | @endif zlib-bootstrap |
34148 | ||
656fdd47 | 34149 | |
0df3d27f | 34150 | |
72b2455a PB |
34151 | # FIXME: Will not need to be conditional when toplevel bootstrap is the |
34152 | # only possibility, but now it conflicts with no-bootstrap rules | |
34153 | @if gcc-bootstrap | |
656fdd47 PB |
34154 | |
34155 | ||
34156 | ||
34157 | ||
0df3d27f | 34158 | # Rules to wipe a stage and all the following ones, also used for cleanstrap |
656fdd47 | 34159 | distclean-stage1:: distclean-stagefeedback |
0df3d27f | 34160 | .PHONY: distclean-stagefeedback |
656fdd47 | 34161 | distclean-stagefeedback:: |
b813574b | 34162 | [ -f stage_current ] && $(MAKE) `cat stage_current`-end || : |
9cb3fa6f | 34163 | rm -rf stagefeedback-* |
656fdd47 PB |
34164 | |
34165 | ||
72b2455a | 34166 | @endif gcc-bootstrap |
656fdd47 PB |
34167 | |
34168 | ||
34169 | ||
34170 | stagefeedback-start:: | |
34171 | @r=`${PWD_COMMAND}`; export r; \ | |
34172 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
34173 | cd stageprofile-gcc && \ | |
34174 | { find . -type d | sort | sed 's,.*,$(SHELL) '"$$s"'/mkinstalldirs "../gcc/&",' | $(SHELL); } && \ | |
34175 | { find . -name '*.*da' | sed 's,.*,$(LN) -f "&" "../gcc/&",' | $(SHELL); } | |
34176 | ||
72b2455a PB |
34177 | # FIXME: Will not need to be conditional when toplevel bootstrap is the |
34178 | # only possibility, but now it conflicts with no-bootstrap rules | |
34179 | @if gcc-bootstrap | |
34180 | profiledbootstrap: | |
656fdd47 PB |
34181 | @r=`${PWD_COMMAND}`; export r; \ |
34182 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
7ffa0b57 | 34183 | $(HOST_EXPORTS) \ |
656fdd47 | 34184 | echo "Bootstrapping the compiler"; \ |
b813574b | 34185 | $(MAKE) stageprofile-bubble distclean-stagefeedback |
656fdd47 PB |
34186 | @r=`${PWD_COMMAND}`; export r; \ |
34187 | s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \ | |
656fdd47 PB |
34188 | echo "Building runtime libraries and training compiler"; \ |
34189 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) all | |
34190 | @r=`${PWD_COMMAND}`; export r; \ | |
34191 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
7ffa0b57 | 34192 | $(HOST_EXPORTS) \ |
656fdd47 PB |
34193 | echo "Building feedback based compiler"; \ |
34194 | $(MAKE) stagefeedback-bubble stagefeedback-end | |
319cab08 | 34195 | @endif gcc-bootstrap |
b8908782 | 34196 | |
0df3d27f PB |
34197 | @if gcc-bootstrap |
34198 | NOTPARALLEL = .NOTPARALLEL | |
34199 | $(NOTPARALLEL): | |
34200 | do-distclean: distclean-stage1 | |
34201 | @endif gcc-bootstrap | |
34202 | ||
ae831be5 NN |
34203 | # -------------------------------------- |
34204 | # Dependencies between different modules | |
34205 | # -------------------------------------- | |
252b5132 | 34206 | |
9e6ce191 PB |
34207 | # Generic dependencies for target modules on host stuff, especially gcc |
34208 | ||
34209 | configure-target-libstdc++-v3: maybe-all-gcc | |
34210 | ||
34211 | configure-target-libmudflap: maybe-all-gcc | |
34212 | ||
34213 | configure-target-newlib: maybe-all-gcc | |
34214 | ||
34215 | configure-target-libgfortran: maybe-all-gcc | |
34216 | ||
34217 | configure-target-libobjc: maybe-all-gcc | |
34218 | ||
34219 | configure-target-libtermcap: maybe-all-gcc | |
34220 | ||
34221 | configure-target-winsup: maybe-all-gcc | |
34222 | ||
34223 | configure-target-libgloss: maybe-all-gcc | |
34224 | ||
34225 | configure-target-libiberty: maybe-all-gcc | |
34226 | ||
34227 | configure-target-gperf: maybe-all-gcc | |
34228 | ||
34229 | configure-target-examples: maybe-all-gcc | |
34230 | ||
34231 | configure-target-libffi: maybe-all-gcc | |
34232 | ||
34233 | configure-target-libjava: maybe-all-gcc | |
34234 | ||
34235 | configure-target-zlib: maybe-all-gcc | |
34236 | ||
34237 | configure-target-boehm-gc: maybe-all-gcc | |
34238 | ||
34239 | configure-target-qthreads: maybe-all-gcc | |
34240 | ||
34241 | configure-target-rda: maybe-all-gcc | |
34242 | ||
34243 | configure-target-libada: maybe-all-gcc | |
34244 | ||
34245 | ||
34246 | ||
34247 | configure-target-boehm-gc: maybe-all-target-newlib maybe-all-target-libgloss | |
34248 | ||
34249 | configure-target-gperf: maybe-all-target-newlib maybe-all-target-libgloss | |
34250 | configure-target-gperf: maybe-all-target-libstdc++-v3 | |
34251 | ||
34252 | configure-target-libada: maybe-all-target-newlib maybe-all-target-libgloss | |
34253 | ||
34254 | configure-target-libgfortran: maybe-all-target-newlib maybe-all-target-libgloss | |
34255 | ||
34256 | configure-target-libffi: maybe-all-target-newlib maybe-all-target-libgloss | |
34257 | ||
34258 | configure-target-libjava: maybe-all-target-newlib maybe-all-target-libgloss | |
34259 | configure-target-libjava: maybe-all-target-libstdc++-v3 | |
34260 | ||
34261 | configure-target-libobjc: maybe-all-target-newlib maybe-all-target-libgloss | |
34262 | ||
34263 | configure-target-libstdc++-v3: maybe-all-target-newlib maybe-all-target-libgloss | |
34264 | ||
34265 | configure-target-zlib: maybe-all-target-newlib maybe-all-target-libgloss | |
34266 | ||
34267 | configure-target-examples: maybe-all-target-newlib maybe-all-target-libgloss | |
34268 | ||
34269 | configure-target-libtermcap: maybe-all-target-newlib maybe-all-target-libgloss | |
34270 | ||
34271 | configure-target-rda: maybe-all-target-newlib maybe-all-target-libgloss | |
34272 | ||
34273 | configure-target-winsup: maybe-all-target-newlib maybe-all-target-libgloss | |
34274 | ||
34275 | configure-target-qthreads: maybe-all-target-newlib maybe-all-target-libgloss | |
34276 | ||
34277 | ||
ae831be5 NN |
34278 | # There are two types of dependencies here: 'hard' dependencies, where one |
34279 | # module simply won't build without the other; and 'soft' dependencies, where | |
34280 | # if the depended-on module is missing, the depending module will do without | |
34281 | # or find a substitute somewhere (perhaps installed). Soft dependencies | |
9e6ce191 | 34282 | # are made here to depend on a 'maybe-' target. If you're not sure, |
ae831be5 NN |
34283 | # it's safer to use a soft dependency. |
34284 | ||
9e6ce191 PB |
34285 | |
34286 | ||
34287 | ||
34288 | ||
34289 | # With all the machinery above in place, it is pretty easy to generate | |
34290 | # dependencies. Host dependencies are a bit more complex because we have | |
34291 | # to check for bootstrap/prebootstrap dependencies. To resolve | |
34292 | # prebootstrap dependencies, prebootstrap modules are gathered in | |
34293 | # a hash table. | |
6a9cf61e | 34294 | all-build-bison: maybe-all-build-texinfo |
9e6ce191 | 34295 | all-build-byacc: maybe-all-build-texinfo |
6a9cf61e | 34296 | all-build-flex: maybe-all-build-texinfo |
9e6ce191 PB |
34297 | all-build-flex: maybe-all-build-bison |
34298 | all-build-flex: maybe-all-build-byacc | |
34299 | all-build-flex: maybe-all-build-m4 | |
6a9cf61e | 34300 | all-build-libiberty: maybe-all-build-texinfo |
9e6ce191 | 34301 | all-build-m4: maybe-all-build-texinfo |
ee025550 | 34302 | all-build-fixincludes: maybe-all-build-libiberty |
9e6ce191 PB |
34303 | configure-gcc: maybe-configure-intl |
34304 | ||
34305 | configure-stage1-gcc: maybe-configure-stage1-intl | |
34306 | configure-stage2-gcc: maybe-configure-stage2-intl | |
34307 | configure-stage3-gcc: maybe-configure-stage3-intl | |
34308 | configure-stage4-gcc: maybe-configure-stage4-intl | |
34309 | configure-stageprofile-gcc: maybe-configure-stageprofile-intl | |
34310 | configure-stagefeedback-gcc: maybe-configure-stagefeedback-intl | |
34311 | configure-gcc: maybe-configure-binutils | |
34312 | ||
34313 | configure-stage1-gcc: maybe-configure-stage1-binutils | |
34314 | configure-stage2-gcc: maybe-configure-stage2-binutils | |
34315 | configure-stage3-gcc: maybe-configure-stage3-binutils | |
34316 | configure-stage4-gcc: maybe-configure-stage4-binutils | |
34317 | configure-stageprofile-gcc: maybe-configure-stageprofile-binutils | |
34318 | configure-stagefeedback-gcc: maybe-configure-stagefeedback-binutils | |
34319 | configure-gcc: maybe-configure-gas | |
34320 | ||
34321 | configure-stage1-gcc: maybe-configure-stage1-gas | |
34322 | configure-stage2-gcc: maybe-configure-stage2-gas | |
34323 | configure-stage3-gcc: maybe-configure-stage3-gas | |
34324 | configure-stage4-gcc: maybe-configure-stage4-gas | |
34325 | configure-stageprofile-gcc: maybe-configure-stageprofile-gas | |
34326 | configure-stagefeedback-gcc: maybe-configure-stagefeedback-gas | |
34327 | configure-gcc: maybe-configure-ld | |
34328 | ||
34329 | configure-stage1-gcc: maybe-configure-stage1-ld | |
34330 | configure-stage2-gcc: maybe-configure-stage2-ld | |
34331 | configure-stage3-gcc: maybe-configure-stage3-ld | |
34332 | configure-stage4-gcc: maybe-configure-stage4-ld | |
34333 | configure-stageprofile-gcc: maybe-configure-stageprofile-ld | |
34334 | configure-stagefeedback-gcc: maybe-configure-stagefeedback-ld | |
9e6ce191 PB |
34335 | all-gcc: all-libiberty |
34336 | ||
34337 | all-stage1-gcc: all-stage1-libiberty | |
34338 | all-stage2-gcc: all-stage2-libiberty | |
34339 | all-stage3-gcc: all-stage3-libiberty | |
34340 | all-stage4-gcc: all-stage4-libiberty | |
34341 | all-stageprofile-gcc: all-stageprofile-libiberty | |
34342 | all-stagefeedback-gcc: all-stagefeedback-libiberty | |
34343 | all-gcc: maybe-all-intl | |
34344 | ||
34345 | all-stage1-gcc: maybe-all-stage1-intl | |
34346 | all-stage2-gcc: maybe-all-stage2-intl | |
34347 | all-stage3-gcc: maybe-all-stage3-intl | |
34348 | all-stage4-gcc: maybe-all-stage4-intl | |
34349 | all-stageprofile-gcc: maybe-all-stageprofile-intl | |
34350 | all-stagefeedback-gcc: maybe-all-stagefeedback-intl | |
72b2455a PB |
34351 | all-gcc: maybe-all-build-texinfo |
34352 | ||
34353 | all-stage1-gcc: maybe-all-build-texinfo | |
34354 | all-stage2-gcc: maybe-all-build-texinfo | |
34355 | all-stage3-gcc: maybe-all-build-texinfo | |
34356 | all-stage4-gcc: maybe-all-build-texinfo | |
34357 | all-stageprofile-gcc: maybe-all-build-texinfo | |
34358 | all-stagefeedback-gcc: maybe-all-build-texinfo | |
34359 | all-prebootstrap: maybe-all-build-texinfo | |
34360 | all-gcc: maybe-all-build-bison | |
34361 | ||
34362 | all-stage1-gcc: maybe-all-build-bison | |
34363 | all-stage2-gcc: maybe-all-build-bison | |
34364 | all-stage3-gcc: maybe-all-build-bison | |
34365 | all-stage4-gcc: maybe-all-build-bison | |
34366 | all-stageprofile-gcc: maybe-all-build-bison | |
34367 | all-stagefeedback-gcc: maybe-all-build-bison | |
34368 | all-prebootstrap: maybe-all-build-bison | |
34369 | all-gcc: maybe-all-build-byacc | |
34370 | ||
34371 | all-stage1-gcc: maybe-all-build-byacc | |
34372 | all-stage2-gcc: maybe-all-build-byacc | |
34373 | all-stage3-gcc: maybe-all-build-byacc | |
34374 | all-stage4-gcc: maybe-all-build-byacc | |
34375 | all-stageprofile-gcc: maybe-all-build-byacc | |
34376 | all-stagefeedback-gcc: maybe-all-build-byacc | |
34377 | all-prebootstrap: maybe-all-build-byacc | |
34378 | all-gcc: maybe-all-build-flex | |
34379 | ||
34380 | all-stage1-gcc: maybe-all-build-flex | |
34381 | all-stage2-gcc: maybe-all-build-flex | |
34382 | all-stage3-gcc: maybe-all-build-flex | |
34383 | all-stage4-gcc: maybe-all-build-flex | |
34384 | all-stageprofile-gcc: maybe-all-build-flex | |
34385 | all-stagefeedback-gcc: maybe-all-build-flex | |
34386 | all-prebootstrap: maybe-all-build-flex | |
ee025550 PB |
34387 | all-gcc: maybe-all-build-libiberty |
34388 | ||
34389 | all-stage1-gcc: maybe-all-build-libiberty | |
34390 | all-stage2-gcc: maybe-all-build-libiberty | |
34391 | all-stage3-gcc: maybe-all-build-libiberty | |
34392 | all-stage4-gcc: maybe-all-build-libiberty | |
34393 | all-stageprofile-gcc: maybe-all-build-libiberty | |
34394 | all-stagefeedback-gcc: maybe-all-build-libiberty | |
34395 | all-prebootstrap: maybe-all-build-libiberty | |
34396 | all-gcc: maybe-all-build-fixincludes | |
34397 | ||
34398 | all-stage1-gcc: maybe-all-build-fixincludes | |
34399 | all-stage2-gcc: maybe-all-build-fixincludes | |
34400 | all-stage3-gcc: maybe-all-build-fixincludes | |
34401 | all-stage4-gcc: maybe-all-build-fixincludes | |
34402 | all-stageprofile-gcc: maybe-all-build-fixincludes | |
34403 | all-stagefeedback-gcc: maybe-all-build-fixincludes | |
34404 | all-prebootstrap: maybe-all-build-fixincludes | |
9e6ce191 PB |
34405 | all-gcc: maybe-all-binutils |
34406 | ||
34407 | all-stage1-gcc: maybe-all-stage1-binutils | |
34408 | all-stage2-gcc: maybe-all-stage2-binutils | |
34409 | all-stage3-gcc: maybe-all-stage3-binutils | |
34410 | all-stage4-gcc: maybe-all-stage4-binutils | |
34411 | all-stageprofile-gcc: maybe-all-stageprofile-binutils | |
34412 | all-stagefeedback-gcc: maybe-all-stagefeedback-binutils | |
34413 | all-gcc: maybe-all-gas | |
34414 | ||
34415 | all-stage1-gcc: maybe-all-stage1-gas | |
34416 | all-stage2-gcc: maybe-all-stage2-gas | |
34417 | all-stage3-gcc: maybe-all-stage3-gas | |
34418 | all-stage4-gcc: maybe-all-stage4-gas | |
34419 | all-stageprofile-gcc: maybe-all-stageprofile-gas | |
34420 | all-stagefeedback-gcc: maybe-all-stagefeedback-gas | |
34421 | all-gcc: maybe-all-ld | |
34422 | ||
34423 | all-stage1-gcc: maybe-all-stage1-ld | |
34424 | all-stage2-gcc: maybe-all-stage2-ld | |
34425 | all-stage3-gcc: maybe-all-stage3-ld | |
34426 | all-stage4-gcc: maybe-all-stage4-ld | |
34427 | all-stageprofile-gcc: maybe-all-stageprofile-ld | |
34428 | all-stagefeedback-gcc: maybe-all-stagefeedback-ld | |
34429 | all-gcc: maybe-all-zlib | |
34430 | ||
34431 | all-stage1-gcc: maybe-all-stage1-zlib | |
34432 | all-stage2-gcc: maybe-all-stage2-zlib | |
34433 | all-stage3-gcc: maybe-all-stage3-zlib | |
34434 | all-stage4-gcc: maybe-all-stage4-zlib | |
34435 | all-stageprofile-gcc: maybe-all-stageprofile-zlib | |
34436 | all-stagefeedback-gcc: maybe-all-stagefeedback-zlib | |
9e6ce191 PB |
34437 | all-gcc: all-libcpp |
34438 | ||
34439 | all-stage1-gcc: all-stage1-libcpp | |
34440 | all-stage2-gcc: all-stage2-libcpp | |
34441 | all-stage3-gcc: all-stage3-libcpp | |
34442 | all-stage4-gcc: all-stage4-libcpp | |
34443 | all-stageprofile-gcc: all-stageprofile-libcpp | |
34444 | all-stagefeedback-gcc: all-stagefeedback-libcpp | |
d3ed111c GK |
34445 | all-gcc: maybe-all-libiberty |
34446 | ||
34447 | all-stage1-gcc: maybe-all-stage1-libiberty | |
34448 | all-stage2-gcc: maybe-all-stage2-libiberty | |
34449 | all-stage3-gcc: maybe-all-stage3-libiberty | |
34450 | all-stage4-gcc: maybe-all-stage4-libiberty | |
34451 | all-stageprofile-gcc: maybe-all-stageprofile-libiberty | |
34452 | all-stagefeedback-gcc: maybe-all-stagefeedback-libiberty | |
34453 | all-gcc: maybe-all-fixincludes | |
69e57115 | 34454 | install-gcc: maybe-install-fixincludes |
9e6ce191 PB |
34455 | configure-libcpp: configure-libiberty |
34456 | ||
34457 | configure-stage1-libcpp: configure-stage1-libiberty | |
34458 | configure-stage2-libcpp: configure-stage2-libiberty | |
34459 | configure-stage3-libcpp: configure-stage3-libiberty | |
34460 | configure-stage4-libcpp: configure-stage4-libiberty | |
34461 | configure-stageprofile-libcpp: configure-stageprofile-libiberty | |
34462 | configure-stagefeedback-libcpp: configure-stagefeedback-libiberty | |
34463 | configure-libcpp: maybe-configure-intl | |
34464 | ||
34465 | configure-stage1-libcpp: maybe-configure-stage1-intl | |
34466 | configure-stage2-libcpp: maybe-configure-stage2-intl | |
34467 | configure-stage3-libcpp: maybe-configure-stage3-intl | |
34468 | configure-stage4-libcpp: maybe-configure-stage4-intl | |
34469 | configure-stageprofile-libcpp: maybe-configure-stageprofile-intl | |
34470 | configure-stagefeedback-libcpp: maybe-configure-stagefeedback-intl | |
34471 | all-libcpp: all-libiberty | |
34472 | ||
34473 | all-stage1-libcpp: all-stage1-libiberty | |
34474 | all-stage2-libcpp: all-stage2-libiberty | |
34475 | all-stage3-libcpp: all-stage3-libiberty | |
34476 | all-stage4-libcpp: all-stage4-libiberty | |
34477 | all-stageprofile-libcpp: all-stageprofile-libiberty | |
34478 | all-stagefeedback-libcpp: all-stagefeedback-libiberty | |
34479 | all-libcpp: maybe-all-intl | |
34480 | ||
34481 | all-stage1-libcpp: maybe-all-stage1-intl | |
34482 | all-stage2-libcpp: maybe-all-stage2-intl | |
34483 | all-stage3-libcpp: maybe-all-stage3-intl | |
34484 | all-stage4-libcpp: maybe-all-stage4-intl | |
34485 | all-stageprofile-libcpp: maybe-all-stageprofile-intl | |
34486 | all-stagefeedback-libcpp: maybe-all-stagefeedback-intl | |
d3ed111c | 34487 | all-fixincludes: maybe-all-libiberty |
b00612cc | 34488 | all-gnattools: maybe-all-target-libada |
9e6ce191 PB |
34489 | configure-gdb: maybe-configure-itcl |
34490 | configure-gdb: maybe-configure-tcl | |
34491 | configure-gdb: maybe-configure-tk | |
34492 | configure-gdb: maybe-configure-sim | |
34493 | all-gdb: maybe-all-libiberty | |
34494 | all-gdb: maybe-all-opcodes | |
34495 | all-gdb: maybe-all-bfd | |
9e6ce191 | 34496 | all-gdb: maybe-all-readline |
72b2455a PB |
34497 | all-gdb: maybe-all-build-bison |
34498 | all-gdb: maybe-all-build-byacc | |
9e6ce191 PB |
34499 | all-gdb: maybe-all-sim |
34500 | install-gdb: maybe-install-tcl | |
34501 | install-gdb: maybe-install-tk | |
34502 | install-gdb: maybe-install-itcl | |
9e6ce191 PB |
34503 | install-gdb: maybe-install-libgui |
34504 | configure-libgui: maybe-configure-tcl | |
34505 | configure-libgui: maybe-configure-tk | |
34506 | all-libgui: maybe-all-tcl | |
34507 | all-libgui: maybe-all-tk | |
34508 | all-libgui: maybe-all-itcl | |
b4a77b47 | 34509 | configure-bfd: configure-libiberty |
9e6ce191 PB |
34510 | |
34511 | configure-stage1-bfd: configure-stage1-libiberty | |
34512 | configure-stage2-bfd: configure-stage2-libiberty | |
34513 | configure-stage3-bfd: configure-stage3-libiberty | |
34514 | configure-stage4-bfd: configure-stage4-libiberty | |
34515 | configure-stageprofile-bfd: configure-stageprofile-libiberty | |
34516 | configure-stagefeedback-bfd: configure-stagefeedback-libiberty | |
34517 | all-bfd: maybe-all-libiberty | |
34518 | ||
34519 | all-stage1-bfd: maybe-all-stage1-libiberty | |
34520 | all-stage2-bfd: maybe-all-stage2-libiberty | |
34521 | all-stage3-bfd: maybe-all-stage3-libiberty | |
34522 | all-stage4-bfd: maybe-all-stage4-libiberty | |
34523 | all-stageprofile-bfd: maybe-all-stageprofile-libiberty | |
34524 | all-stagefeedback-bfd: maybe-all-stagefeedback-libiberty | |
34525 | all-bfd: maybe-all-intl | |
34526 | ||
34527 | all-stage1-bfd: maybe-all-stage1-intl | |
34528 | all-stage2-bfd: maybe-all-stage2-intl | |
34529 | all-stage3-bfd: maybe-all-stage3-intl | |
34530 | all-stage4-bfd: maybe-all-stage4-intl | |
34531 | all-stageprofile-bfd: maybe-all-stageprofile-intl | |
34532 | all-stagefeedback-bfd: maybe-all-stagefeedback-intl | |
34533 | all-binutils: maybe-all-libiberty | |
34534 | ||
34535 | all-stage1-binutils: maybe-all-stage1-libiberty | |
34536 | all-stage2-binutils: maybe-all-stage2-libiberty | |
34537 | all-stage3-binutils: maybe-all-stage3-libiberty | |
34538 | all-stage4-binutils: maybe-all-stage4-libiberty | |
34539 | all-stageprofile-binutils: maybe-all-stageprofile-libiberty | |
34540 | all-stagefeedback-binutils: maybe-all-stagefeedback-libiberty | |
34541 | all-binutils: maybe-all-opcodes | |
34542 | ||
34543 | all-stage1-binutils: maybe-all-stage1-opcodes | |
34544 | all-stage2-binutils: maybe-all-stage2-opcodes | |
34545 | all-stage3-binutils: maybe-all-stage3-opcodes | |
34546 | all-stage4-binutils: maybe-all-stage4-opcodes | |
34547 | all-stageprofile-binutils: maybe-all-stageprofile-opcodes | |
34548 | all-stagefeedback-binutils: maybe-all-stagefeedback-opcodes | |
34549 | all-binutils: maybe-all-bfd | |
34550 | ||
34551 | all-stage1-binutils: maybe-all-stage1-bfd | |
34552 | all-stage2-binutils: maybe-all-stage2-bfd | |
34553 | all-stage3-binutils: maybe-all-stage3-bfd | |
34554 | all-stage4-binutils: maybe-all-stage4-bfd | |
34555 | all-stageprofile-binutils: maybe-all-stageprofile-bfd | |
34556 | all-stagefeedback-binutils: maybe-all-stagefeedback-bfd | |
72b2455a PB |
34557 | all-binutils: maybe-all-build-flex |
34558 | ||
34559 | all-stage1-binutils: maybe-all-build-flex | |
34560 | all-stage2-binutils: maybe-all-build-flex | |
34561 | all-stage3-binutils: maybe-all-build-flex | |
34562 | all-stage4-binutils: maybe-all-build-flex | |
34563 | all-stageprofile-binutils: maybe-all-build-flex | |
34564 | all-stagefeedback-binutils: maybe-all-build-flex | |
34565 | all-prebootstrap: maybe-all-build-flex | |
34566 | all-binutils: maybe-all-build-bison | |
34567 | ||
34568 | all-stage1-binutils: maybe-all-build-bison | |
34569 | all-stage2-binutils: maybe-all-build-bison | |
34570 | all-stage3-binutils: maybe-all-build-bison | |
34571 | all-stage4-binutils: maybe-all-build-bison | |
34572 | all-stageprofile-binutils: maybe-all-build-bison | |
34573 | all-stagefeedback-binutils: maybe-all-build-bison | |
34574 | all-prebootstrap: maybe-all-build-bison | |
34575 | all-binutils: maybe-all-build-byacc | |
34576 | ||
34577 | all-stage1-binutils: maybe-all-build-byacc | |
34578 | all-stage2-binutils: maybe-all-build-byacc | |
34579 | all-stage3-binutils: maybe-all-build-byacc | |
34580 | all-stage4-binutils: maybe-all-build-byacc | |
34581 | all-stageprofile-binutils: maybe-all-build-byacc | |
34582 | all-stagefeedback-binutils: maybe-all-build-byacc | |
34583 | all-prebootstrap: maybe-all-build-byacc | |
9e6ce191 PB |
34584 | all-binutils: maybe-all-intl |
34585 | ||
34586 | all-stage1-binutils: maybe-all-stage1-intl | |
34587 | all-stage2-binutils: maybe-all-stage2-intl | |
34588 | all-stage3-binutils: maybe-all-stage3-intl | |
34589 | all-stage4-binutils: maybe-all-stage4-intl | |
34590 | all-stageprofile-binutils: maybe-all-stageprofile-intl | |
34591 | all-stagefeedback-binutils: maybe-all-stagefeedback-intl | |
ae831be5 | 34592 | install-binutils: maybe-install-opcodes |
cf662e21 | 34593 | install-opcodes: maybe-install-bfd |
9e6ce191 PB |
34594 | all-gas: maybe-all-libiberty |
34595 | ||
34596 | all-stage1-gas: maybe-all-stage1-libiberty | |
34597 | all-stage2-gas: maybe-all-stage2-libiberty | |
34598 | all-stage3-gas: maybe-all-stage3-libiberty | |
34599 | all-stage4-gas: maybe-all-stage4-libiberty | |
34600 | all-stageprofile-gas: maybe-all-stageprofile-libiberty | |
34601 | all-stagefeedback-gas: maybe-all-stagefeedback-libiberty | |
34602 | all-gas: maybe-all-opcodes | |
34603 | ||
34604 | all-stage1-gas: maybe-all-stage1-opcodes | |
34605 | all-stage2-gas: maybe-all-stage2-opcodes | |
34606 | all-stage3-gas: maybe-all-stage3-opcodes | |
34607 | all-stage4-gas: maybe-all-stage4-opcodes | |
34608 | all-stageprofile-gas: maybe-all-stageprofile-opcodes | |
34609 | all-stagefeedback-gas: maybe-all-stagefeedback-opcodes | |
34610 | all-gas: maybe-all-bfd | |
34611 | ||
34612 | all-stage1-gas: maybe-all-stage1-bfd | |
34613 | all-stage2-gas: maybe-all-stage2-bfd | |
34614 | all-stage3-gas: maybe-all-stage3-bfd | |
34615 | all-stage4-gas: maybe-all-stage4-bfd | |
34616 | all-stageprofile-gas: maybe-all-stageprofile-bfd | |
34617 | all-stagefeedback-gas: maybe-all-stagefeedback-bfd | |
34618 | all-gas: maybe-all-intl | |
34619 | ||
34620 | all-stage1-gas: maybe-all-stage1-intl | |
34621 | all-stage2-gas: maybe-all-stage2-intl | |
34622 | all-stage3-gas: maybe-all-stage3-intl | |
34623 | all-stage4-gas: maybe-all-stage4-intl | |
34624 | all-stageprofile-gas: maybe-all-stageprofile-intl | |
34625 | all-stagefeedback-gas: maybe-all-stagefeedback-intl | |
34626 | all-gprof: maybe-all-libiberty | |
34627 | all-gprof: maybe-all-bfd | |
34628 | all-gprof: maybe-all-opcodes | |
34629 | all-gprof: maybe-all-intl | |
34630 | all-ld: maybe-all-libiberty | |
34631 | ||
34632 | all-stage1-ld: maybe-all-stage1-libiberty | |
34633 | all-stage2-ld: maybe-all-stage2-libiberty | |
34634 | all-stage3-ld: maybe-all-stage3-libiberty | |
34635 | all-stage4-ld: maybe-all-stage4-libiberty | |
34636 | all-stageprofile-ld: maybe-all-stageprofile-libiberty | |
34637 | all-stagefeedback-ld: maybe-all-stagefeedback-libiberty | |
34638 | all-ld: maybe-all-bfd | |
34639 | ||
34640 | all-stage1-ld: maybe-all-stage1-bfd | |
34641 | all-stage2-ld: maybe-all-stage2-bfd | |
34642 | all-stage3-ld: maybe-all-stage3-bfd | |
34643 | all-stage4-ld: maybe-all-stage4-bfd | |
34644 | all-stageprofile-ld: maybe-all-stageprofile-bfd | |
34645 | all-stagefeedback-ld: maybe-all-stagefeedback-bfd | |
34646 | all-ld: maybe-all-opcodes | |
34647 | ||
34648 | all-stage1-ld: maybe-all-stage1-opcodes | |
34649 | all-stage2-ld: maybe-all-stage2-opcodes | |
34650 | all-stage3-ld: maybe-all-stage3-opcodes | |
34651 | all-stage4-ld: maybe-all-stage4-opcodes | |
34652 | all-stageprofile-ld: maybe-all-stageprofile-opcodes | |
34653 | all-stagefeedback-ld: maybe-all-stagefeedback-opcodes | |
72b2455a PB |
34654 | all-ld: maybe-all-build-bison |
34655 | ||
34656 | all-stage1-ld: maybe-all-build-bison | |
34657 | all-stage2-ld: maybe-all-build-bison | |
34658 | all-stage3-ld: maybe-all-build-bison | |
34659 | all-stage4-ld: maybe-all-build-bison | |
34660 | all-stageprofile-ld: maybe-all-build-bison | |
34661 | all-stagefeedback-ld: maybe-all-build-bison | |
34662 | all-prebootstrap: maybe-all-build-bison | |
34663 | all-ld: maybe-all-build-byacc | |
34664 | ||
34665 | all-stage1-ld: maybe-all-build-byacc | |
34666 | all-stage2-ld: maybe-all-build-byacc | |
34667 | all-stage3-ld: maybe-all-build-byacc | |
34668 | all-stage4-ld: maybe-all-build-byacc | |
34669 | all-stageprofile-ld: maybe-all-build-byacc | |
34670 | all-stagefeedback-ld: maybe-all-build-byacc | |
34671 | all-prebootstrap: maybe-all-build-byacc | |
34672 | all-ld: maybe-all-build-flex | |
34673 | ||
34674 | all-stage1-ld: maybe-all-build-flex | |
34675 | all-stage2-ld: maybe-all-build-flex | |
34676 | all-stage3-ld: maybe-all-build-flex | |
34677 | all-stage4-ld: maybe-all-build-flex | |
34678 | all-stageprofile-ld: maybe-all-build-flex | |
34679 | all-stagefeedback-ld: maybe-all-build-flex | |
34680 | all-prebootstrap: maybe-all-build-flex | |
9e6ce191 PB |
34681 | all-ld: maybe-all-intl |
34682 | ||
34683 | all-stage1-ld: maybe-all-stage1-intl | |
34684 | all-stage2-ld: maybe-all-stage2-intl | |
34685 | all-stage3-ld: maybe-all-stage3-intl | |
34686 | all-stage4-ld: maybe-all-stage4-intl | |
34687 | all-stageprofile-ld: maybe-all-stageprofile-intl | |
34688 | all-stagefeedback-ld: maybe-all-stagefeedback-intl | |
34689 | all-opcodes: maybe-all-bfd | |
34690 | ||
34691 | all-stage1-opcodes: maybe-all-stage1-bfd | |
34692 | all-stage2-opcodes: maybe-all-stage2-bfd | |
34693 | all-stage3-opcodes: maybe-all-stage3-bfd | |
34694 | all-stage4-opcodes: maybe-all-stage4-bfd | |
34695 | all-stageprofile-opcodes: maybe-all-stageprofile-bfd | |
34696 | all-stagefeedback-opcodes: maybe-all-stagefeedback-bfd | |
34697 | all-opcodes: maybe-all-libiberty | |
34698 | ||
34699 | all-stage1-opcodes: maybe-all-stage1-libiberty | |
34700 | all-stage2-opcodes: maybe-all-stage2-libiberty | |
34701 | all-stage3-opcodes: maybe-all-stage3-libiberty | |
34702 | all-stage4-opcodes: maybe-all-stage4-libiberty | |
34703 | all-stageprofile-opcodes: maybe-all-stageprofile-libiberty | |
34704 | all-stagefeedback-opcodes: maybe-all-stagefeedback-libiberty | |
34705 | all-dejagnu: maybe-all-tcl | |
34706 | all-dejagnu: maybe-all-expect | |
34707 | all-dejagnu: maybe-all-tk | |
34708 | configure-expect: maybe-configure-tcl | |
34709 | configure-expect: maybe-configure-tk | |
34710 | all-expect: maybe-all-tcl | |
34711 | all-expect: maybe-all-tk | |
34712 | configure-itcl: maybe-configure-tcl | |
34713 | configure-itcl: maybe-configure-tk | |
34714 | all-itcl: maybe-all-tcl | |
34715 | all-itcl: maybe-all-tk | |
ae831be5 | 34716 | install-itcl: maybe-install-tcl |
b4a77b47 | 34717 | configure-tk: maybe-configure-tcl |
ae831be5 | 34718 | all-tk: maybe-all-tcl |
9e6ce191 PB |
34719 | all-sid: maybe-all-libiberty |
34720 | all-sid: maybe-all-bfd | |
34721 | all-sid: maybe-all-opcodes | |
34722 | all-sid: maybe-all-tcl | |
34723 | all-sid: maybe-all-tk | |
34724 | install-sid: maybe-install-tcl | |
34725 | install-sid: maybe-install-tk | |
34726 | all-sim: maybe-all-libiberty | |
34727 | all-sim: maybe-all-bfd | |
34728 | all-sim: maybe-all-opcodes | |
34729 | all-sim: maybe-all-readline | |
34730 | all-sim: maybe-configure-gdb | |
34731 | all-fastjar: maybe-all-zlib | |
72b2455a | 34732 | all-fastjar: maybe-all-build-texinfo |
9e6ce191 PB |
34733 | all-fastjar: maybe-all-libiberty |
34734 | all-autoconf: maybe-all-m4 | |
72b2455a | 34735 | all-autoconf: maybe-all-build-texinfo |
9e6ce191 | 34736 | all-automake: maybe-all-m4 |
72b2455a | 34737 | all-automake: maybe-all-build-texinfo |
9e6ce191 PB |
34738 | all-automake: maybe-all-autoconf |
34739 | all-bison: maybe-all-intl | |
72b2455a | 34740 | all-bison: maybe-all-build-texinfo |
9e6ce191 | 34741 | all-diff: maybe-all-intl |
72b2455a | 34742 | all-diff: maybe-all-build-texinfo |
9e6ce191 | 34743 | all-fileutils: maybe-all-intl |
72b2455a PB |
34744 | all-fileutils: maybe-all-build-texinfo |
34745 | all-flex: maybe-all-build-bison | |
34746 | all-flex: maybe-all-build-byacc | |
9e6ce191 PB |
34747 | all-flex: maybe-all-intl |
34748 | all-flex: maybe-all-m4 | |
72b2455a | 34749 | all-flex: maybe-all-build-texinfo |
9e6ce191 PB |
34750 | all-gzip: maybe-all-intl |
34751 | all-gzip: maybe-all-zlib | |
72b2455a | 34752 | all-gzip: maybe-all-build-texinfo |
9e6ce191 | 34753 | all-hello: maybe-all-intl |
72b2455a | 34754 | all-hello: maybe-all-build-texinfo |
9e6ce191 | 34755 | all-m4: maybe-all-intl |
72b2455a | 34756 | all-m4: maybe-all-build-texinfo |
9e6ce191 | 34757 | all-make: maybe-all-intl |
72b2455a PB |
34758 | all-make: maybe-all-build-texinfo |
34759 | all-patch: maybe-all-build-texinfo | |
34760 | all-make: maybe-all-build-texinfo | |
930314a4 | 34761 | all-prms: maybe-all-libiberty |
72b2455a PB |
34762 | all-recode: maybe-all-build-texinfo |
34763 | all-sed: maybe-all-build-texinfo | |
930314a4 | 34764 | all-send-pr: maybe-all-prms |
72b2455a PB |
34765 | all-tar: maybe-all-build-texinfo |
34766 | all-uudecode: maybe-all-build-texinfo | |
9e6ce191 | 34767 | configure-target-boehm-gc: maybe-configure-target-qthreads |
b4a77b47 | 34768 | configure-target-fastjar: maybe-configure-target-zlib |
9e6ce191 PB |
34769 | all-target-fastjar: maybe-all-target-zlib |
34770 | all-target-fastjar: maybe-all-target-libiberty | |
34771 | configure-target-libjava: maybe-configure-target-zlib | |
34772 | configure-target-libjava: maybe-configure-target-boehm-gc | |
34773 | configure-target-libjava: maybe-configure-target-qthreads | |
34774 | configure-target-libjava: maybe-configure-target-libffi | |
34775 | all-target-libjava: maybe-all-fastjar | |
34776 | all-target-libjava: maybe-all-target-zlib | |
34777 | all-target-libjava: maybe-all-target-boehm-gc | |
34778 | all-target-libjava: maybe-all-target-qthreads | |
34779 | all-target-libjava: maybe-all-target-libffi | |
ae831be5 | 34780 | all-target-libobjc: maybe-all-target-libiberty |
ae831be5 | 34781 | all-target-libstdc++-v3: maybe-all-target-libiberty |
ae831be5 | 34782 | all-target-libgloss: maybe-configure-target-newlib |
9e6ce191 PB |
34783 | all-target-winsup: maybe-all-target-libiberty |
34784 | all-target-winsup: maybe-all-target-libtermcap | |
34785 | ||
34786 | ||
72b2455a PB |
34787 | # Non-toplevel bootstrap rules must depend on several packages, to be built |
34788 | # before gcc. Another wart that will go away, hopefully soon. | |
9e6ce191 PB |
34789 | @if gcc-no-bootstrap |
34790 | ||
34791 | all-prebootstrap: maybe-all-bfd | |
34792 | all-prebootstrap: maybe-all-opcodes | |
34793 | all-prebootstrap: maybe-all-binutils | |
34794 | all-prebootstrap: maybe-all-gas | |
34795 | all-prebootstrap: maybe-all-intl | |
34796 | all-prebootstrap: maybe-all-ld | |
34797 | all-prebootstrap: maybe-all-libcpp | |
9e6ce191 PB |
34798 | all-prebootstrap: maybe-all-libiberty |
34799 | all-prebootstrap: maybe-all-zlib | |
34800 | @endif gcc-no-bootstrap | |
34801 | ||
34802 | GDB_TK = @GDB_TK@ | |
34803 | all-gdb: $(gdbnlmrequirements) $(GDB_TK) | |
907a7241 | 34804 | |
a2cc058a NN |
34805 | # Serialization dependencies. Host configures don't work well in parallel to |
34806 | # each other, due to contention over config.cache. Target configures and | |
34807 | # build configures are similar. | |
34808 | @serialization_dependencies@ | |
34809 | ||
15723a45 NN |
34810 | # -------------------------------- |
34811 | # Regenerating top level configury | |
34812 | # -------------------------------- | |
252b5132 | 34813 | |
1086bc09 NN |
34814 | # Multilib.out tells target dirs what multilibs they should build. |
34815 | # There is really only one copy. We use the 'timestamp' method to | |
34816 | # work around various timestamp bugs on some systems. | |
34817 | # We use move-if-change so that it's only considered updated when it | |
34818 | # actually changes, because it has to depend on a phony target. | |
e6bfb94a | 34819 | multilib.out: maybe-all-gcc |
b40e3958 | 34820 | @r=`${PWD_COMMAND}`; export r; \ |
1086bc09 NN |
34821 | echo "Checking multilib configuration..."; \ |
34822 | $(CC_FOR_TARGET) --print-multi-lib > multilib.tmp 2> /dev/null ; \ | |
34823 | $(SHELL) $(srcdir)/move-if-change multilib.tmp multilib.out ; \ | |
1086bc09 | 34824 | |
14a2a2f1 | 34825 | # Rebuilding Makefile.in, using autogen. |
43be203f | 34826 | AUTOGEN = autogen |
6b784d9f | 34827 | $(srcdir)/Makefile.in: @MAINT@ $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def |
43be203f | 34828 | cd $(srcdir) && $(AUTOGEN) Makefile.def |
14a2a2f1 | 34829 | |
a0da8069 | 34830 | # Rebuilding Makefile. |
43be203f AO |
34831 | Makefile: $(srcdir)/Makefile.in config.status |
34832 | CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status | |
34833 | ||
479759c8 | 34834 | config.status: configure |
10ecffb9 | 34835 | CONFIG_SHELL="$(SHELL)" $(SHELL) ./config.status --recheck |
252b5132 | 34836 | |
a0da8069 | 34837 | # Rebuilding configure. |
43be203f | 34838 | AUTOCONF = autoconf |
6b784d9f | 34839 | $(srcdir)/configure: @MAINT@ $(srcdir)/configure.in $(srcdir)/config/acx.m4 |
43be203f | 34840 | cd $(srcdir) && $(AUTOCONF) |
252b5132 | 34841 | |
3728fade NN |
34842 | # ------------------------------ |
34843 | # Special directives to GNU Make | |
34844 | # ------------------------------ | |
34845 | ||
3728fade NN |
34846 | # Don't pass command-line variables to submakes. |
34847 | .NOEXPORT: | |
34848 | MAKEOVERRIDES= | |
34849 | ||
252b5132 | 34850 | # end of Makefile.in |